* configure.ac: Add comments delineating libpython and libmcheck.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-28 Doug Evans <xdje42@gmail.com>
2
3 * configure.ac: Add comments delineating python and libmcheck.
4 * configure: Regenerate.
5
6 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
7 Pedro Alves <palves@redhat.com>
8
9 * valprint.c (value_check_printable): If the value is entirely
10 unavailable, print a single "<unavailable>" instead of printing
11 all subfields.
12
13 2013-11-28 Pedro Alves <palves@redhat.com>
14
15 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
16 Add "set debug frame" output.
17 (frame_stop_reason_symbol_string): New function.
18
19 2013-11-28 Pedro Alves <palves@redhat.com>
20
21 * frame-unwind.c (default_frame_unwind_stop_reason): Return
22 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
23 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
24
25 2013-11-28 Pedro Alves <palves@redhat.com>
26
27 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
28 set the unwind stop reason to UNWIND_OUTERMOST, not
29 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
30
31 2013-11-28 Pedro Alves <palves@redhat.com>
32
33 * frame.c (frame_unwind_register): Say the register was "not
34 saved" instead of "optimized out".
35
36 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
37
38 PR 16152
39 * configure: Rebuild.
40 * configure.ac: Tighten cygwin detection check.
41
42 2013-11-27 Pedro Alves <palves@redhat.com>
43
44 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
45 register in the previous frame's arch.
46
47 2013-11-27 Pedro Alves <palves@redhat.com>
48
49 * frame-unwind.c (frame_unwind_got_optimized): Return
50 an lval_register value instead of a not_lval value.
51
52 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
53
54 * frame.c: Include "valprint.h".
55 (frame_unwind_register_value): Use value_optimized_out.
56 * value.c (value_fetch_lazy): Likewise.
57
58 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
59
60 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
61
62 2013-11-26 Tom Tromey <tromey@redhat.com>
63
64 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
65 2013-11-22.
66
67 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
68
69 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
70 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
71 (HAS_MPX): New macro.
72 (HAS_AVX): New macro.
73 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
74
75 2013-11-25 Keith Seitz <keiths@redhat.com>
76
77 PR c++/14819
78 * c-exp.y (classify_inner_name): If no matching symbol was
79 found, try looking up the token as a base class.
80 Likewise if a constructor was found.
81 * cp-namespace.c (find_type_baseclass_by_name): New function.
82 * cp-support.h (find_type_baseclass_by_name): Declare.
83 * valops.c (value_struct_elt_for_reference): If we get
84 a non-static field, try to get a value based on the
85 current instance, if any.
86
87 2013-11-24 Yao Qi <yao@codesourcery.com>
88
89 * disasm.c (dis_asm_read_memory): Call target_read_code
90 instead of target_read_memory.
91
92 2013-11-24 Yao Qi <yao@codesourcery.com>
93
94 * NEWS: Add note on new "set code-cache" option.
95 * target-dcache.c (code_cache_enabled_1): New variable.
96 (code_cache_enabled): New variable.
97 (show_code_cache, set_code_cache): New function.
98 (code_cache_enabled_p): New function.
99 (_initialize_target_dcache): Register command.
100 * target-dcache.h (code_cache_enabled_p): Declare.
101 * target.c (memory_xfer_partial_1):Handle
102 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
103 (target_read_code): New function.
104 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
105 New.
106 (target_read_code): Declare.
107
108 2013-11-24 Yao Qi <yao@codesourcery.com>
109
110 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
111 (stack_cache_enabled_1): ... this. New variable.
112 (stack_cache_enabled_p): Rename to ...
113 (stack_cache_enabled): ... this. New variable.
114 (set_stack_cache_enabled_p): Rename to ...
115 (set_stack_cache): ... this. Update caller.
116 (show_stack_cache_enabled_p): Rename to ...
117 (show_stack_cache): ... this. Update caller.
118 (stack_cache_enabled): Rename to ...
119 (stack_cache_enabled_p): ... this. Update caller.
120 (_initialize_target_dcache): Replace "data cache" with
121 "target memory cache".
122 * target-dcache.h (stack_cache_enabled): Remove declaration.
123 (stack_cache_enabled_p): Add declaration.
124
125 2013-11-23 Doug Evans <xdje42@gmail.com>
126
127 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
128 superfluous.
129
130 2013-11-23 Doug Evans <xdje42@gmail.com>
131
132 * python/py-frame.c (frapy_block): Fix error message text.
133
134 2013-11-23 Doug Evans <xdje42@gmail.com>
135
136 * cli/cli-script.c (multi_line_command_p): New function.
137 (recurse_read_control_structure, read_command_lines_1): Call it.
138 (execute_control_command): Consistently have a blank line between
139 each case.
140
141 2013-11-22 Sterling Augustine <saugustine@google.com>
142
143 PR gdb/16196:
144 * valprint.c (read_string): Set new variable fetchlen based on
145 fetchlimit and size. Use it in call to partial_memory_read.
146 Update comment.
147
148 2013-11-22 Tom Tromey <tromey@redhat.com>
149
150 PR backtrace/16155:
151 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
152 the return address column is unspecified.
153
154 2013-11-22 Tom Tromey <tromey@redhat.com>
155 Pedro Alves <palves@redhat.com>
156
157 PR backtrace/16155
158 * value.c (value_fetch_lazy): Internal error if
159 get_frame_register_value returns the same register.
160
161 2013-11-22 Pedro Alves <palves@redhat.com>
162 Tom Tromey <tromey@redhat.com>
163
164 * frame.c (frame_stash_add): Now returns whether a frame with the
165 same ID was already known.
166 (compute_frame_id): New function, factored out from get_frame_id.
167 (get_frame_id): No longer lazilly compute the frame id here.
168 (get_prev_frame_if_no_cycle): New function. Detects wider stack
169 cycles.
170 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
171 and checking for stack cycles here.
172
173 2013-11-22 Pedro Alves <palves@redhat.com>
174
175 PR 16155
176 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
177 this frame and the new previous frame, not between this frame and
178 the next frame.
179
180 2013-11-22 Pedro Alves <palves@redhat.com>
181
182 PR 16155
183 * dwarf2-frame.c (struct dwarf2_frame_cache)
184 <checked_tailcall_bottom, entry_cfa_sp_offset,
185 entry_cfa_sp_offset_p>: New fields.
186 (dwarf2_frame_cache): Adjust to use the new cache fields instead
187 of locals. Don't call dwarf2_tailcall_sniffer_first here.
188 (dwarf2_frame_prev_register): Call it here, but only once.
189
190 2013-11-21 Doug Evans <xdje42@gmail.com>
191
192 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
193 (type_equality_entry): Move here from python/py-type.c.
194 (type_equality_entry_d): Ditto.
195 (compare_maybe_null_strings, check_types_equal): Ditto.
196 (check_types_worklist, types_deeply_equal): Ditto.
197 * gdbtypes.h (types_deeply_equal): Declare.
198 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
199 (typy_richcompare): Update.
200
201 2013-11-20 Joel Brobecker <brobecker@adacore.com>
202
203 * python/py-value.c (is_intlike): Delete.
204 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
205 by use of is_integral_type.
206 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
207 by use of is_integral_type and check for TYPE_CODE_PTR.
208
209 2013-11-20 Tom Tromey <tromey@redhat.com>
210
211 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
212 strerror module.
213 * gnulib/aclocal.m4: Update.
214 * gnulib/config.in: Update.
215 * gnulib/configure: Update.
216 * gnulib/import/Makefile.am: Update.
217 * gnulib/import/Makefile.in: Update.
218 * gnulib/import/errno.in.h: Remove.
219 * gnulib/import/intprops.h: Remove.
220 * gnulib/import/m4/errno_h.m4: Remove.
221 * gnulib/import/m4/gnulib-cache.m4: Update.
222 * gnulib/import/m4/gnulib-comp.m4: Update.
223 * gnulib/import/m4/strerror.m4: Remove.
224 * gnulib/import/m4/sys_socket_h.m4: Remove.
225 * gnulib/import/strerror-override.c: Remove.
226 * gnulib/import/strerror-override.h: Remove.
227 * gnulib/import/strerror.c: Remove.
228 * gnulib/update-gnulib.sh: Update.
229
230 2013-11-20 Yao Qi <yao@codesourcery.com>
231
232 * target-dcache.c (target_dcache_get_or_init): Call
233 set_address_space_data if 'dcache' is NULL.
234
235 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
236
237 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
238
239 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
240
241 * python/lib/gdb/command/bound_register.py: New file.
242 * data-directory/Makefile.in: Copy bond_register.py to the right path
243 to be initialized at gdb startup.
244
245 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
246
247 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
248 Add MPX registers.
249 (amd64_linux_read_description): Add initialization for MPX and
250 AVX independently.
251 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
252 (amd64_linux_gregset_reg_offset): Add MPX registers.
253 (amd64_linux_core_read_description): Add initialization for MPX
254 registers.
255 (_initialize_amd64_linux_tdep): Initialize MPX targets.
256 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
257 register on the list.
258 (tdesc_amd64_mpx_linux) Add new target for MPX.
259 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
260 (amd64_mpx_names): MPX register names.
261 (amd64_init_abi): Add MPX register while initializing the ABI.
262 (_initialize_amd64_tdep): Initialize MPX targets.
263 * amd64-tdep.h (amd64_regnum): Add MPX registers.
264 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
265
266 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
267
268 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
269 registers on the range of registers to be read from
270 xsave buffer.
271 (i386_linux_read_description): Add case for MPX.
272 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
273 (i386_linux_gregset_reg_offset): Add MPX registers.
274 (i386_linux_core_read_description): Initialize also MPX.
275 (_initialize_i386_linux_tdep): Add mpx initialization.
276 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
277 mpx_register_names.
278 (i386_regnum): Add MPX registers.
279 (I386_MPX_NUM_REGS): New macro.
280 (i386_bnd_regnum_p): New function.
281 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
282 number of registers to be the number of BNDSTATUS.
283 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
284 * i386-tdep.c: Include features/i386/i386-mpx.c.
285 (i386_mpx_names): Add MPX register names array.
286 (i386_bnd_names): Add bnd pseudo register names array.
287 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
288 registers.
289 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
290 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
291 registers.
292 (i386_bnd_type): New function.
293 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
294 register types.
295 (i386_pseudo_register_read_into_value): Add bnd case.
296 (i386_pseudo_register_write): Add bnd pseudo registers.
297 (i386_register_reggroup_p): Add MPX register to the group all.
298 (i386_validate_tdesc_p): Add MPX to the target description
299 validation.
300 (i386_pseudo_register_name): Add bnd pseudo registers.
301 (i386_gdbarch_init): Add MPX for architecture initialization.
302 (_initia_initialize_i386_tdep): Add mpx initialization.
303 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
304 XSAVE buffer.
305 (XSAVE_MPX_ADDR): New macro.
306 (i387_supply_xsave): Add MPX case.
307 (i387_collect_xsave): Add MPX case.
308 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
309 (I387_BNDCFGU_REGNUM): New macro.
310 (I387_NUM_MPX_REGS): New macro.
311 (I387_NUM_BND_REGS): New macro.
312 (I387_NUM_MPX_CTRL_REGS): New macro.
313 (I387_MPXEND_REGNUM): New macro.
314 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
315 (I386_XSTATE_BNDCFG): Likewise.
316 (I386_XSTATE_MPX_MASK): Likewise.
317 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
318 (I386_XSTATE_BNDREGS_SIZE): New macro.
319 (I386_XSTATE_BNDCFG_SIZE): Likewise.
320 (I386_XSTATE_SIZE): Adapt for MPX.
321 (I386_XSTATE_MAX_SIZE): Likewise.
322
323 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
324
325 * features/i386/Makefile: Adapts for using MPX registers.
326 * features/i386/32bit-mpx.xml: New file.
327 * features/i386/64bit-mpx.xml: Likewise.
328 * features/i386/amd64-mpx-linux.c: Likewise.
329 * features/i386/amd64-mpx-linux.xml: Likewise.
330 * features/i386/amd64-mpx.c: Likewise.
331 * features/i386/amd64-mpx.xml: Likewise.
332 * features/i386/i386-mpx-linux.c: Likewise.
333 * features/i386/i386-mpx-linux.xml: Likewise.
334 * features/i386/i386-mpx.c: Likewise.
335 * features/i386/i386-mpx.xml: Likewise.
336 * regformats/i386/amd64-mpx-linux.dat: New file.
337 * regformats/i386/amd64-mpx.dat: Likewise.
338 * regformats/i386/i386-mpx-linux.dat: Likewise.
339 * regformats/i386/i386-mpx.dat: Likewise.
340
341 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
342
343 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
344 Modified logic of creating a bitfield to be in sync with
345 tdesc_gdb_type.
346
347 2013-11-20 Will Newton <will.newton@linaro.org>
348
349 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
350 error message.
351
352 2013-11-20 Yao Qi <yao@codesourcery.com>
353
354 * progspace.h (struct address_space_data): Declare.
355 * target-dcache.c: Include "progspace.h".
356 (target_dache): Remove.
357 (target_dcache_aspace_key): New.
358 (target_dcache_cleanup): New function.
359 (target_dcache_init_p): Get data through
360 target_dcache_aspace_key.
361 (target_dcache_invalidate): Likewise.
362 (target_dcache_get): Likewise.
363 (target_dcache_get_or_init): Likewise.
364 (_initialize_target_dcache): Initialize
365 target_dcache_aspace_key.
366
367 2013-11-20 Yao Qi <yao@codesourcery.com>
368
369 * progspace.c (struct address_space): Update comments.
370 <REGISTRY_FIELDS>: New fields.
371 DEFINE_REGISTRY for address_space.
372 (new_address_space): Call address_space_alloc_data.
373 (free_address_space): Call address_space_free_data.
374 * progspace.h: Use DECLARE_REGISTRY.
375
376 2013-11-20 Yao Qi <yao@codesourcery.com>
377
378 * Makefile.in (SFILES):Add target-dcache.c.
379 (HFILES_NO_SRCDIR): Add target-dcache.h.
380 (COMMON_OBS): Add target-dcache.o.
381 * dcache.c: Remove inclusion to "target.h". Include
382 "target-dcache.h".
383 * memattr.c: Include "target-dcache.h".
384 * top.c: Likewise.
385 * tracepoint.c: Likewise.
386 * target.c: (stack_cache_enabled_p_1): Move to
387 target-dcache.c.
388 (stack_cache_enabled_p): Likewise.
389 (set_stack_cache_enabled_p): Likewise.
390 (show_stack_cache_enabled_p): Likewise.
391 (target_dcache, target_dcache_init_p): Likewise.
392 (target_dcache_invalidate): Likewise.
393 (target_dcache_get, target_dcache_get_or_init): Likewise.
394 (memory_xfer_partial_1): Call function stack_cache_enabled.
395 (initialize_target): Move code to target-dcache.c.
396 * target.h (target_dcache_invalidate): Move to
397 target-dcache.h.
398 (target_dcache_get): Likewise.
399 * target-dcache.c: New.
400 * target-dcache.h: New.
401
402 2013-11-20 Yao Qi <yao@codesourcery.com>
403
404 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
405 it is initialized.
406
407 2013-11-20 Yao Qi <yao@codesourcery.com>
408
409 * dcache.c (last_cache): Remove.
410 (dcache_free, dcache_init): Update.
411 (dcache_update):
412 (dcache_print_line): Add parameter 'dcache'. Replace
413 'target_dcache' with 'dcache'.
414 (dcache_info): Move code to dcache_info_1. Call
415 'dcache_info_1'.
416 (dcache_info_1): New function.
417 (set_dcache_size): Call target_dcache_invalidate.
418 (set_dcache_line_size): Call target_dcache_invalidate.
419 * target.c (target_dcache_init_p): New function.
420 (target_dcache_invalidate): Check target_dcache_init_p first.
421 (target_dcache_get, target_dcache_get_or_init): New function.
422 (memory_xfer_partial_1): Adjust.
423 (initialize_target): Don't initialize 'target_dcache'.
424 * target.h (struct dcache_struct): Declare.
425 (target_dcache_get): Declare.
426
427 2013-11-19 Yao Qi <yao@codesourcery.com>
428
429 * varobj.c (varobj_get_type): Fix typo.
430
431 2013-11-19 Joel Brobecker <brobecker@adacore.com>
432
433 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
434
435 2013-11-19 Joel Brobecker <brobecker@adacore.com>
436
437 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
438 "stat.h".
439
440 2013-11-18 Tom Tromey <tromey@redhat.com>
441
442 * common/gdb_stat.h: Remove.
443 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
444 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
445 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
446 * corefile.c: Use sys/stat.h, not gdb_stat.h.
447 * ctf.c: Use sys/stat.h, not gdb_stat.h.
448 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
449 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
450 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
451 * exec.c: Use sys/stat.h, not gdb_stat.h.
452 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
453 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
454 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
455 * jit.c: Use sys/stat.h, not gdb_stat.h.
456 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
457 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
458 * main.c: Use sys/stat.h, not gdb_stat.h.
459 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
460 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
461 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
462 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
463 * procfs.c: Use sys/stat.h, not gdb_stat.h.
464 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
465 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
466 * remote.c: Use sys/stat.h, not gdb_stat.h.
467 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
468 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
469 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
470 * source.c: Use sys/stat.h, not gdb_stat.h.
471 * symfile.c: Use sys/stat.h, not gdb_stat.h.
472 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
473 * symtab.c: Use sys/stat.h, not gdb_stat.h.
474 * top.c: Use sys/stat.h, not gdb_stat.h.
475 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
476
477 2013-11-18 Tom Tromey <tromey@redhat.com>
478
479 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
480 sys_stat.
481 * gnulib/aclocal.m4: Update.
482 * gnulib/config.in: Update.
483 * gnulib/configure: Update.
484 * gnulib/import/Makefile.am: Update.
485 * gnulib/import/Makefile.in: Update.
486 * gnulib/import/m4/gnulib-cache.m4: Update.
487 * gnulib/import/m4/gnulib-comp.m4: Update.
488 * gnulib/import/m4/sys_stat_h.m4: New.
489 * gnulib/import/m4/time_h.m4: New.
490 * gnulib/import/sys_stat.in.h: New.
491 * gnulib/import/time.in.h: New.
492
493 2013-11-18 Tom Tromey <tromey@redhat.com>
494
495 * configure: Rebuild.
496 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
497
498 2013-11-18 Tom Tromey <tromey@redhat.com>
499
500 * configure: Rebuild.
501 * configure.ac: Don't check for unistd.h.
502
503 2013-11-18 Tom Tromey <tromey@redhat.com>
504
505 * configure: Rebuild.
506 * configure.ac: Don't check for stdlib.h
507 * defs.h: Include stdlib.h unconditionally.
508
509 2013-11-18 Tom Tromey <tromey@redhat.com>
510
511 * config.in: Rebuild.
512 * configure: Rebuild.
513 * configure.ac: Don't check for stddef.h.
514 * defs.h: Unconditionally include stddef.h. Remove duplicate
515 inclusion.
516
517 2013-11-18 Tom Tromey <tromey@redhat.com>
518
519 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
520 * common/gdb_dirent.h: Remove.
521 * common/filestuff.c: Use dirent.h.
522 * common/linux-osdata.c: Use dirent.h.
523 (NAMELEN): Define.
524 * config.in: Rebuild.
525 * configure: Rebuild.
526 * configure.ac: Don't use AC_HEADER_DIRENT.
527 * linux-fork.c: Use dirent.h
528 * linux-nat.c: Use dirent.h.
529 * nto-procfs.c: Use dirent.h.
530 * procfs.c: Use dirent.h.
531
532 2013-11-18 Tom Tromey <tromey@redhat.com>
533
534 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
535 * gnulib/aclocal.m4: Update.
536 * gnulib/config.in: Update.
537 * gnulib/configure: Update.
538 * gnulib/import/Makefile.am: Update.
539 * gnulib/import/Makefile.in: Update.
540 * gnulib/import/dirent.in.h: New.
541 * gnulib/import/m4/dirent_h.m4: New.
542 * gnulib/import/m4/gnulib-cache.m4: Update.
543 * gnulib/import/m4/gnulib-comp.m4: Update.
544
545 2013-11-18 Tom Tromey <tromey@redhat.com>
546
547 * configure: Rebuild.
548 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
549 strings.h.
550
551 2013-11-18 Tom Tromey <tromey@redhat.com>
552
553 * common/gdb_string.h: Remove.
554 * aarch64-tdep.c: Use string.h, not gdb_string.h.
555 * ada-exp.y: Use string.h, not gdb_string.h.
556 * ada-lang.c: Use string.h, not gdb_string.h.
557 * ada-lex.l: Use string.h, not gdb_string.h.
558 * ada-typeprint.c: Use string.h, not gdb_string.h.
559 * ada-valprint.c: Use string.h, not gdb_string.h.
560 * aix-thread.c: Use string.h, not gdb_string.h.
561 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
562 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
563 * alpha-nat.c: Use string.h, not gdb_string.h.
564 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
565 * alpha-tdep.c: Use string.h, not gdb_string.h.
566 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
567 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
568 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
569 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
570 * amd64-nat.c: Use string.h, not gdb_string.h.
571 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
572 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
573 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
574 * arch-utils.c: Use string.h, not gdb_string.h.
575 * arm-linux-nat.c: Use string.h, not gdb_string.h.
576 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
577 * arm-tdep.c: Use string.h, not gdb_string.h.
578 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
579 * armbsd-tdep.c: Use string.h, not gdb_string.h.
580 * armnbsd-nat.c: Use string.h, not gdb_string.h.
581 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
582 * armobsd-tdep.c: Use string.h, not gdb_string.h.
583 * avr-tdep.c: Use string.h, not gdb_string.h.
584 * ax-gdb.c: Use string.h, not gdb_string.h.
585 * ax-general.c: Use string.h, not gdb_string.h.
586 * bcache.c: Use string.h, not gdb_string.h.
587 * bfin-tdep.c: Use string.h, not gdb_string.h.
588 * breakpoint.c: Use string.h, not gdb_string.h.
589 * build-id.c: Use string.h, not gdb_string.h.
590 * buildsym.c: Use string.h, not gdb_string.h.
591 * c-exp.y: Use string.h, not gdb_string.h.
592 * c-lang.c: Use string.h, not gdb_string.h.
593 * c-typeprint.c: Use string.h, not gdb_string.h.
594 * c-valprint.c: Use string.h, not gdb_string.h.
595 * charset.c: Use string.h, not gdb_string.h.
596 * cli-out.c: Use string.h, not gdb_string.h.
597 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
598 * cli/cli-decode.c: Use string.h, not gdb_string.h.
599 * cli/cli-dump.c: Use string.h, not gdb_string.h.
600 * cli/cli-interp.c: Use string.h, not gdb_string.h.
601 * cli/cli-logging.c: Use string.h, not gdb_string.h.
602 * cli/cli-script.c: Use string.h, not gdb_string.h.
603 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
604 * cli/cli-utils.c: Use string.h, not gdb_string.h.
605 * coffread.c: Use string.h, not gdb_string.h.
606 * common/common-utils.c: Use string.h, not gdb_string.h.
607 * common/filestuff.c: Use string.h, not gdb_string.h.
608 * common/linux-procfs.c: Use string.h, not gdb_string.h.
609 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
610 * common/signals.c: Use string.h, not gdb_string.h.
611 * common/vec.h: Use string.h, not gdb_string.h.
612 * core-regset.c: Use string.h, not gdb_string.h.
613 * corefile.c: Use string.h, not gdb_string.h.
614 * corelow.c: Use string.h, not gdb_string.h.
615 * cp-abi.c: Use string.h, not gdb_string.h.
616 * cp-support.c: Use string.h, not gdb_string.h.
617 * cp-valprint.c: Use string.h, not gdb_string.h.
618 * cris-tdep.c: Use string.h, not gdb_string.h.
619 * d-lang.c: Use string.h, not gdb_string.h.
620 * dbxread.c: Use string.h, not gdb_string.h.
621 * dcache.c: Use string.h, not gdb_string.h.
622 * demangle.c: Use string.h, not gdb_string.h.
623 * dicos-tdep.c: Use string.h, not gdb_string.h.
624 * disasm.c: Use string.h, not gdb_string.h.
625 * doublest.c: Use string.h, not gdb_string.h.
626 * dsrec.c: Use string.h, not gdb_string.h.
627 * dummy-frame.c: Use string.h, not gdb_string.h.
628 * dwarf2-frame.c: Use string.h, not gdb_string.h.
629 * dwarf2loc.c: Use string.h, not gdb_string.h.
630 * dwarf2read.c: Use string.h, not gdb_string.h.
631 * elfread.c: Use string.h, not gdb_string.h.
632 * environ.c: Use string.h, not gdb_string.h.
633 * eval.c: Use string.h, not gdb_string.h.
634 * event-loop.c: Use string.h, not gdb_string.h.
635 * exceptions.c: Use string.h, not gdb_string.h.
636 * exec.c: Use string.h, not gdb_string.h.
637 * expprint.c: Use string.h, not gdb_string.h.
638 * f-exp.y: Use string.h, not gdb_string.h.
639 * f-lang.c: Use string.h, not gdb_string.h.
640 * f-typeprint.c: Use string.h, not gdb_string.h.
641 * f-valprint.c: Use string.h, not gdb_string.h.
642 * fbsd-nat.c: Use string.h, not gdb_string.h.
643 * findcmd.c: Use string.h, not gdb_string.h.
644 * findvar.c: Use string.h, not gdb_string.h.
645 * fork-child.c: Use string.h, not gdb_string.h.
646 * frame.c: Use string.h, not gdb_string.h.
647 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
648 * frv-tdep.c: Use string.h, not gdb_string.h.
649 * gdb.c: Use string.h, not gdb_string.h.
650 * gdb_bfd.c: Use string.h, not gdb_string.h.
651 * gdbarch.c: Use string.h, not gdb_string.h.
652 * gdbtypes.c: Use string.h, not gdb_string.h.
653 * gnu-nat.c: Use string.h, not gdb_string.h.
654 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
655 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
656 * go-exp.y: Use string.h, not gdb_string.h.
657 * go-lang.c: Use string.h, not gdb_string.h.
658 * go32-nat.c: Use string.h, not gdb_string.h.
659 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
660 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
661 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
662 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
663 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
664 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
665 * i386-linux-nat.c: Use string.h, not gdb_string.h.
666 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
667 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
668 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
669 * i386-tdep.c: Use string.h, not gdb_string.h.
670 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
671 * i386gnu-nat.c: Use string.h, not gdb_string.h.
672 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
673 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
674 * i387-tdep.c: Use string.h, not gdb_string.h.
675 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
676 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
677 * inf-child.c: Use string.h, not gdb_string.h.
678 * inf-ptrace.c: Use string.h, not gdb_string.h.
679 * inf-ttrace.c: Use string.h, not gdb_string.h.
680 * infcall.c: Use string.h, not gdb_string.h.
681 * infcmd.c: Use string.h, not gdb_string.h.
682 * inflow.c: Use string.h, not gdb_string.h.
683 * infrun.c: Use string.h, not gdb_string.h.
684 * interps.c: Use string.h, not gdb_string.h.
685 * iq2000-tdep.c: Use string.h, not gdb_string.h.
686 * irix5-nat.c: Use string.h, not gdb_string.h.
687 * jv-exp.y: Use string.h, not gdb_string.h.
688 * jv-lang.c: Use string.h, not gdb_string.h.
689 * jv-typeprint.c: Use string.h, not gdb_string.h.
690 * jv-valprint.c: Use string.h, not gdb_string.h.
691 * language.c: Use string.h, not gdb_string.h.
692 * linux-fork.c: Use string.h, not gdb_string.h.
693 * linux-nat.c: Use string.h, not gdb_string.h.
694 * lm32-tdep.c: Use string.h, not gdb_string.h.
695 * m2-exp.y: Use string.h, not gdb_string.h.
696 * m2-typeprint.c: Use string.h, not gdb_string.h.
697 * m32c-tdep.c: Use string.h, not gdb_string.h.
698 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
699 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
700 * m32r-rom.c: Use string.h, not gdb_string.h.
701 * m32r-tdep.c: Use string.h, not gdb_string.h.
702 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
703 * m68k-tdep.c: Use string.h, not gdb_string.h.
704 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
705 * m68klinux-nat.c: Use string.h, not gdb_string.h.
706 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
707 * m88k-tdep.c: Use string.h, not gdb_string.h.
708 * macrocmd.c: Use string.h, not gdb_string.h.
709 * main.c: Use string.h, not gdb_string.h.
710 * mdebugread.c: Use string.h, not gdb_string.h.
711 * mem-break.c: Use string.h, not gdb_string.h.
712 * memattr.c: Use string.h, not gdb_string.h.
713 * memory-map.c: Use string.h, not gdb_string.h.
714 * mep-tdep.c: Use string.h, not gdb_string.h.
715 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
716 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
717 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
718 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
719 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
720 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
721 * mi/mi-console.c: Use string.h, not gdb_string.h.
722 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
723 * mi/mi-interp.c: Use string.h, not gdb_string.h.
724 * mi/mi-main.c: Use string.h, not gdb_string.h.
725 * mi/mi-parse.c: Use string.h, not gdb_string.h.
726 * microblaze-rom.c: Use string.h, not gdb_string.h.
727 * microblaze-tdep.c: Use string.h, not gdb_string.h.
728 * mingw-hdep.c: Use string.h, not gdb_string.h.
729 * minidebug.c: Use string.h, not gdb_string.h.
730 * minsyms.c: Use string.h, not gdb_string.h.
731 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
732 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
733 * mips-tdep.c: Use string.h, not gdb_string.h.
734 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
735 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
736 * mipsread.c: Use string.h, not gdb_string.h.
737 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
738 * mn10300-tdep.c: Use string.h, not gdb_string.h.
739 * monitor.c: Use string.h, not gdb_string.h.
740 * moxie-tdep.c: Use string.h, not gdb_string.h.
741 * mt-tdep.c: Use string.h, not gdb_string.h.
742 * nbsd-tdep.c: Use string.h, not gdb_string.h.
743 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
744 * nto-procfs.c: Use string.h, not gdb_string.h.
745 * nto-tdep.c: Use string.h, not gdb_string.h.
746 * objc-lang.c: Use string.h, not gdb_string.h.
747 * objfiles.c: Use string.h, not gdb_string.h.
748 * opencl-lang.c: Use string.h, not gdb_string.h.
749 * osabi.c: Use string.h, not gdb_string.h.
750 * osdata.c: Use string.h, not gdb_string.h.
751 * p-exp.y: Use string.h, not gdb_string.h.
752 * p-lang.c: Use string.h, not gdb_string.h.
753 * p-typeprint.c: Use string.h, not gdb_string.h.
754 * parse.c: Use string.h, not gdb_string.h.
755 * posix-hdep.c: Use string.h, not gdb_string.h.
756 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
757 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
758 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
759 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
760 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
761 * printcmd.c: Use string.h, not gdb_string.h.
762 * procfs.c: Use string.h, not gdb_string.h.
763 * prologue-value.c: Use string.h, not gdb_string.h.
764 * python/py-auto-load.c: Use string.h, not gdb_string.h.
765 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
766 * ravenscar-thread.c: Use string.h, not gdb_string.h.
767 * regcache.c: Use string.h, not gdb_string.h.
768 * registry.c: Use string.h, not gdb_string.h.
769 * remote-fileio.c: Use string.h, not gdb_string.h.
770 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
771 * remote-mips.c: Use string.h, not gdb_string.h.
772 * remote-sim.c: Use string.h, not gdb_string.h.
773 * remote.c: Use string.h, not gdb_string.h.
774 * reverse.c: Use string.h, not gdb_string.h.
775 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
776 * ser-base.c: Use string.h, not gdb_string.h.
777 * ser-go32.c: Use string.h, not gdb_string.h.
778 * ser-mingw.c: Use string.h, not gdb_string.h.
779 * ser-pipe.c: Use string.h, not gdb_string.h.
780 * ser-tcp.c: Use string.h, not gdb_string.h.
781 * ser-unix.c: Use string.h, not gdb_string.h.
782 * serial.c: Use string.h, not gdb_string.h.
783 * sh-tdep.c: Use string.h, not gdb_string.h.
784 * sh64-tdep.c: Use string.h, not gdb_string.h.
785 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
786 * skip.c: Use string.h, not gdb_string.h.
787 * sol-thread.c: Use string.h, not gdb_string.h.
788 * solib-dsbt.c: Use string.h, not gdb_string.h.
789 * solib-frv.c: Use string.h, not gdb_string.h.
790 * solib-osf.c: Use string.h, not gdb_string.h.
791 * solib-spu.c: Use string.h, not gdb_string.h.
792 * solib-target.c: Use string.h, not gdb_string.h.
793 * solib.c: Use string.h, not gdb_string.h.
794 * somread.c: Use string.h, not gdb_string.h.
795 * source.c: Use string.h, not gdb_string.h.
796 * sparc-nat.c: Use string.h, not gdb_string.h.
797 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
798 * sparc-tdep.c: Use string.h, not gdb_string.h.
799 * sparc64-tdep.c: Use string.h, not gdb_string.h.
800 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
801 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
802 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
803 * spu-linux-nat.c: Use string.h, not gdb_string.h.
804 * spu-multiarch.c: Use string.h, not gdb_string.h.
805 * spu-tdep.c: Use string.h, not gdb_string.h.
806 * stabsread.c: Use string.h, not gdb_string.h.
807 * stack.c: Use string.h, not gdb_string.h.
808 * std-regs.c: Use string.h, not gdb_string.h.
809 * symfile.c: Use string.h, not gdb_string.h.
810 * symmisc.c: Use string.h, not gdb_string.h.
811 * symtab.c: Use string.h, not gdb_string.h.
812 * target.c: Use string.h, not gdb_string.h.
813 * thread.c: Use string.h, not gdb_string.h.
814 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
815 * tilegx-tdep.c: Use string.h, not gdb_string.h.
816 * top.c: Use string.h, not gdb_string.h.
817 * tracepoint.c: Use string.h, not gdb_string.h.
818 * tui/tui-command.c: Use string.h, not gdb_string.h.
819 * tui/tui-data.c: Use string.h, not gdb_string.h.
820 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
821 * tui/tui-file.c: Use string.h, not gdb_string.h.
822 * tui/tui-layout.c: Use string.h, not gdb_string.h.
823 * tui/tui-out.c: Use string.h, not gdb_string.h.
824 * tui/tui-regs.c: Use string.h, not gdb_string.h.
825 * tui/tui-source.c: Use string.h, not gdb_string.h.
826 * tui/tui-stack.c: Use string.h, not gdb_string.h.
827 * tui/tui-win.c: Use string.h, not gdb_string.h.
828 * tui/tui-windata.c: Use string.h, not gdb_string.h.
829 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
830 * typeprint.c: Use string.h, not gdb_string.h.
831 * ui-file.c: Use string.h, not gdb_string.h.
832 * ui-out.c: Use string.h, not gdb_string.h.
833 * user-regs.c: Use string.h, not gdb_string.h.
834 * utils.c: Use string.h, not gdb_string.h.
835 * v850-tdep.c: Use string.h, not gdb_string.h.
836 * valarith.c: Use string.h, not gdb_string.h.
837 * valops.c: Use string.h, not gdb_string.h.
838 * valprint.c: Use string.h, not gdb_string.h.
839 * value.c: Use string.h, not gdb_string.h.
840 * varobj.c: Use string.h, not gdb_string.h.
841 * vax-tdep.c: Use string.h, not gdb_string.h.
842 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
843 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
844 * windows-nat.c: Use string.h, not gdb_string.h.
845 * xcoffread.c: Use string.h, not gdb_string.h.
846 * xml-support.c: Use string.h, not gdb_string.h.
847 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
848 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
849
850 2013-11-18 Tom Tromey <tromey@redhat.com>
851
852 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
853 and strstr.
854 * gnulib/aclocal.m4: Update.
855 * gnulib/config.in: Update.
856 * gnulib/configure: Update.
857 * gnulib/import/Makefile.am: Update.
858 * gnulib/import/Makefile.in: Update.
859 * gnulib/import/errno.in.h: New.
860 * gnulib/import/intprops.h: New.
861 * gnulib/import/m4/errno_h.m4: New.
862 * gnulib/import/m4/gnulib-cache.m4: Update.
863 * gnulib/import/m4/gnulib-comp.m4: Update.
864 * gnulib/import/m4/strerror.m4: New.
865 * gnulib/import/m4/strstr.m4: New.
866 * gnulib/import/m4/sys_socket_h.m4: New.
867 * gnulib/import/strerror-override.c: New.
868 * gnulib/import/strerror-override.h: New.
869 * gnulib/import/strerror.c: New.
870 * gnulib/import/strstr.c: New.
871
872 2013-11-18 Tom Tromey <tromey@redhat.com>
873
874 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
875 multiple lines.
876
877 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
878
879 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
880 * sparc-tdep.h: And its prototype.
881
882 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
883 function.
884 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
885
886 2013-11-18 Pedro Alves <palves@redhat.com>
887
888 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
889 use unpack_pointer.
890
891 2013-11-18 Joel Brobecker <brobecker@adacore.com>
892
893 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
894 to -list-features output.
895
896 2013-11-17 Joel Brobecker <brobecker@adacore.com>
897
898 * dwarf2expr.h (struct dwarf_expr_context_funcs)
899 <read_addr_from_reg>: Renames "read_reg".
900 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
901 Adjust comment.
902 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
903 Use read_addr_from_reg in place of read_reg.
904 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
905 in place of read_reg.
906 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
907 dwarf_expr_read_reg.
908 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
909 with dwarf_expr_read_addr_from_reg.
910 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
911 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
912 needs_frame_read_addr_from_reg.
913
914 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
917
918 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
919
920 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
921 NULL.
922
923 2013-11-15 Tom Tromey <tromey@redhat.com>
924
925 PR c++/16117:
926 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
927 (classify_name): Likewise. Prefer a field of "this" over a
928 filename.
929 (classify_inner_name, yylex): Update.
930
931 2013-11-15 Joel Brobecker <brobecker@adacore.com>
932
933 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
934 Extend the documentation a bit.
935 <get_reg_value>: New field.
936 * dwarf2loc.c (dwarf_expr_get_reg_value)
937 (needs_frame_get_reg_value): New functions.
938 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
939 callback.
940 * dwarf2-frame.c (get_reg_value): New function.
941 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
942 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
943 Use new callback to compute result_val.
944
945 2013-11-15 Alan Modra <amodra@gmail.com>
946
947 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
948 (ppc64_desc_entry_point): ..this. Update comments here and at
949 call points.
950 (ppc64_standard_linkage1, ppc64_standard_linkage2,
951 ppc64_standard_linkage3): Update comments.
952 (ppc64_standard_linkage4, ppc64_standard_linkage5,
953 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
954 patterns.
955 (ppc64_standard_linkage4_target): New function.
956 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
957 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
958 nop match. Fix comment wrap.
959
960 2013-11-14 Pedro Alves <palves@redhat.com>
961
962 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
963 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
964
965 2013-11-14 Pedro Alves <palves@redhat.com>
966
967 * infrun.c (struct execution_control_state)
968 <stepped_after_stopped_by_watchpoint>: New field.
969 (get_inferior_stop_soon): New function.
970 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
971 moved to struct execution_control_state -- adjust. Use
972 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
973 new function.
974 (handle_signal_stop): New function, factored out from
975 handle_inferior_event.
976
977 2013-11-14 Pedro Alves <palves@redhat.com>
978
979 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
980 return a boolean.
981 * breakpoint.c (bpstat_explains_signal): Adjust to return a
982 boolean.
983 (explains_signal_watchpoint, base_breakpoint_explains_signal):
984 Adjust to return a boolean.
985 * breakpoint.h (enum bpstat_signal_value): Delete.
986 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
987 (bpstat_explains_signal): Likewise.
988 * infrun.c (handle_inferior_event) <random signal checks>:
989 bpstat_explains_signal now returns a boolean - adjust. No longer
990 consider hiding signals.
991
992 2013-11-14 Pedro Alves <palves@redhat.com>
993
994 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
995 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
996 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
997 BPSTAT_SIGNAL_HIDE.
998 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
999 instead of BPSTAT_SIGNAL_HIDE.
1000 * infrun.c (handle_inferior_event): Rework random signal checks.
1001
1002 2013-11-14 Pedro Alves <palves@redhat.com>
1003
1004 * infrun.c (struct execution_control_state): Remove
1005 'random_signal' field.
1006 (handle_syscall_event): Use bpstat_causes_stop instead of
1007 bpstat_explains_signal. Don't set ecs->random_signal.
1008 (handle_inferior_event): New 'random_signal' local.
1009 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1010 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1011 bpstat_explains_signal. Don't set ecs->random_signal.
1012 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1013 ecs->random_signal.
1014
1015 2013-11-14 Pedro Alves <palves@redhat.com>
1016
1017 * infrun.c (handle_inferior_event): Move comment from the
1018 function's body to the function's description, adjusted.
1019
1020 2013-11-14 Pedro Alves <palves@redhat.com>
1021
1022 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1023 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1024 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1025 case.
1026
1027 2013-11-14 Tom Tromey <tromey@redhat.com>
1028
1029 * python/py-linetable.c (ltpy_has_line)
1030 (ltpy_get_all_source_lines): Fix loop termination condition.
1031
1032 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1033
1034 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1035 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1036 PARSE->LANGUAGE during command execution, if set.
1037 * mi/mi-parse.c: Add "language.h" #include.
1038 (mi_parse): Add parsing of "--language" command option.
1039
1040 * NEWS: Add entry mentioning the new "--language" command option.
1041
1042 2013-11-14 Pedro Alves <palves@redhat.com>
1043 Joel Brobecker <brobecker@adacore.com>
1044
1045 * cli/cli-utils.h (extract_arg_const): Add declaration.
1046 * cli/cli-utils.c (extract_arg_const): New function.
1047 (extract_arg): Reimplement using extract_arg_const.
1048
1049 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1050
1051 * language.h: Add "symtab.h" #include.
1052
1053 2013-11-13 Doug Evans <xdje42@gmail.com>
1054
1055 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1056 specific breakpoints, don't evaluate breakpoint condition if
1057 different thread.
1058
1059 2013-11-13 Keith Seitz <keiths@redhat.com>
1060
1061 PR c++/7935
1062 PR c++/10541
1063 * cp-support.c (insepct_type): Add support for substituting
1064 namespace aliases, too.
1065 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1066 for DW_TAG_imported_declaration.
1067 (add_partial_symbol): Likewise.
1068 (process_die): Handle namespace aliases with
1069 read_namespace_alias.
1070 (die_needs_namespace): Add DW_TAG_imported_declaration.
1071 (read_namespace_alias): New function.
1072 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1073 (new_symbol_full): Handle DW_TAG_imported_declaration.
1074
1075 2013-11-13 Keith Seitz <keiths@redhat.com>
1076
1077 * p-exp.y (uptok): Make first parameter const.
1078 (yylex): Make `tokstart' and `tokptr' const.
1079 Don't copy the lexer input to a temporary buffer.
1080 Make `p' const.
1081 Remove const workaround for parse_escape.
1082 Create a temporary buffer for a convenience variable instead
1083 of doing in-place modification of the input.
1084 If a match is found with a different case from the input,
1085 do not change the input at all.
1086 Use `tmp' to construct the resultant stoken instead of
1087 `tokstart'.
1088
1089 2013-11-13 Doug Evans <xdje42@gmail.com>
1090
1091 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1092
1093 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1094
1095 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1096 entry with "ada-exceptions".
1097
1098 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1099
1100 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1101 after re-initialization of OBJFILE's obstack.
1102
1103 2013-11-12 Doug Evans <xdje42@gmail.com>
1104
1105 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1106 bs->stop != 0 on entry. Update function comment. Simplify early
1107 exit for frame mismatch. Reindent rest of function.
1108
1109 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1110
1111 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1112 NULL.
1113
1114 2013-11-12 Doug Evans <dje@google.com>
1115
1116 Work around gold/15646.
1117 * dwarf2read.c (read_index_from_section): Update comment.
1118 (struct dw2_symtab_iterator): New member global_seen.
1119 (dw2_symtab_iter_init): Initialize it.
1120 (dw2_symtab_iter_next): Skip duplicate global symbols.
1121 (dw2_expand_symtabs_matching): Ditto.
1122
1123 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1124
1125 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1126 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1127 command.
1128 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1129 (mi_cmd_info_ada_exceptions): New function.
1130 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1131
1132 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1133
1134 * ada-lang.h: #include "vec.h".
1135 (struct ada_exc_info): New.
1136 (ada_exc_info): New typedef.
1137 (DEF_VEC_O(ada_exc_info)): New vector.
1138 (ada_exceptions_list): Add declaration.
1139 * ada-lang.c (ada_is_exception_sym)
1140 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1141 (sort_remove_dups_ada_exceptions_list)
1142 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1143 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1144 (ada_exceptions_list_1, ada_exceptions_list)
1145 (info_exceptions_command): New function.
1146 (_initialize_ada_language): Add "info exception" command.
1147
1148 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1149
1150 PR python/15629
1151 * NEWS: Add linetable feature.
1152 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1153 * python/py-linetable.c: New file.
1154 * python/py-symtab.c (stpy_get_linetable): New function.
1155 * python/python-internal.h (symtab_to_linetable_object): Declare.
1156 (gdbpy_initialize_linetable): Ditto.
1157 * python/python.c (_initialize_python): Call
1158 gdbpy_initialize_linetable.
1159
1160 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1161
1162 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1163 the documentation of fields "except_string" and "condition".
1164 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1165 CONDITION on the heap before passing it to
1166 create_ada_exception_catchpoint.
1167 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1168 CONDITION.
1169
1170 2013-11-11 Tom Tromey <tromey@redhat.com>
1171
1172 * config.in, configure: Rebuild.
1173 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1174
1175 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1176
1177 * remote-sim.c (gdbsim_detach): Break declaration into
1178 shorter lines. No code change.
1179
1180 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1181
1182 * remote-sim.c (gdbsim_detach): Fix prototype.
1183
1184 2013-11-08 Doug Evans <dje@google.com>
1185
1186 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1187 (create_debug_types_hash_table): Only print debugging messages for
1188 each TU if dwarf2-read >= 2.
1189 (process_queue): Ditto.
1190 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1191 Update doc string.
1192
1193 2013-11-08 Tom Tromey <tromey@redhat.com>
1194
1195 * configure: Rebuild.
1196 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1197
1198 2013-11-08 Tom Tromey <tromey@redhat.com>
1199
1200 * configure, config.in: Rebuild.
1201 * configure.ac: Remove unused configury.
1202
1203 2013-11-08 Tom Tromey <tromey@redhat.com>
1204
1205 * m32c-tdep.c: Use gdb_string.h.
1206
1207 2013-11-08 Tom Tromey <tromey@redhat.com>
1208
1209 * configure, config.in: Rebuild.
1210 * configure.ac: Remove all link.h-related checks.
1211
1212 2013-11-08 Tom Tromey <tromey@redhat.com>
1213
1214 * acinclude.m4: Include common.m4.
1215 * common/common.m4: New file.
1216 * configure, config.in: Rebuild.
1217 * configure.ac: Use GDB_AC_COMMON.
1218
1219 2013-11-08 Doug Evans <dje@google.com>
1220
1221 * NEWS: Mention that "set debug symtab-create" now accepts a
1222 verbosity level.
1223 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1224 to set the symtab's primary flag.
1225 * jit.c (finalize_symtab): Ditto.
1226 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1227 * symfile.c (allocate_symtab): Only print debugging messages for
1228 symtab_create_debug levels 2 and higher.
1229 * symtab.c (symtab_create_debug): Change type to unsigned int.
1230 (set_symtab_primary): New function.
1231 (_initialize_symtab): Change "set debug symtab-create" to a
1232 zuinteger option.
1233 * symtab.h (set_symtab_primary): Declare.
1234 (symtab_create_debug): Update decl.
1235
1236 2013-11-08 Tom Tromey <tromey@redhat.com>
1237
1238 * aix-thread.c (aix_thread_detach): Update.
1239 * corelow.c (core_detach): Update.
1240 * darwin-nat.c (darwin_detach): Update.
1241 * dec-thread.c (dec_thread_detach): Update.
1242 * gnu-nat.c (gnu_detach): Update.
1243 * go32-nat.c (go32_detach): Update.
1244 * inf-ptrace.c (inf_ptrace_detach): Update.
1245 * inf-ttrace.c (inf_ttrace_detach): Update.
1246 * linux-fork.c (linux_fork_detach): Update.
1247 * linux-fork.h (linux_fork_detach): Update.
1248 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1249 local for const-correctness.
1250 * linux-thread-db.c (thread_db_detach): Update.
1251 * monitor.c (monitor_detach): Update.
1252 * nto-procfs.c (procfs_detach): Update.
1253 * procfs.c (procfs_detach): Update.
1254 * record.c (record_detach): Update.
1255 * record.h (record_detach): Update.
1256 * remote-m32r-sdi.c (m32r_detach): Update.
1257 * remote-mips.c (mips_detach): Update.
1258 * remote-sim.c (gdbsim_detach): Update.
1259 * remote.c (remote_detach_1, remote_detach)
1260 (extended_remote_detach): Update.
1261 * sol-thread.c (sol_thread_detach): Update.
1262 * target.c (target_detach): Make "args" const.
1263 (init_dummy_target): Update.
1264 * target.h (struct target_ops) <to_detach>: Make argument const.
1265 (target_detach): Likewise.
1266 * windows-nat.c (windows_detach): Update.
1267
1268 2013-11-07 Doug Evans <dje@google.com>
1269
1270 PR 11786
1271 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1272 and align fields for PT_GNU_RELRO segments.
1273
1274 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1275
1276 PR python/15747
1277 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1278
1279 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1280
1281 * NEWS: Document Python temporary breakpoint support.
1282 * python/py-breakpoint.c (bppy_get_temporary): New function.
1283 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1284 to temporary if True.
1285
1286 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1287
1288 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1289 removed to allow analyzing unconditional branch instructions
1290 with PC-relative offsets of zero.
1291
1292 2013-11-07 Yao Qi <yao@codesourcery.com>
1293
1294 * mi/mi-cmd-var.c: Include "language.h".
1295 (mi_cmd_var_info_expression): Get language name from
1296 language_defn.
1297 * varobj.c (varobj_language_string): Remove.
1298 (variable_language): Remove declaration.
1299 (languages): Remove.
1300 (varobj_get_language): Change the type of return value.
1301 (variable_language): Remove.
1302 * varobj.h (enum varobj_languages): Remove.
1303 (varobj_language_string): Remove declaration.
1304 (varobj_get_language): Update declaration.
1305
1306 2013-11-07 Yao Qi <yao@codesourcery.com>
1307
1308 * language.h (struct language_defn) <la_natural_name>: New
1309 field.
1310 * ada-lang.c (ada_language_defn): Initialize field
1311 'la_natural_name'.
1312 * c-lang.c (c_language_defn): Likewise.
1313 (cplus_language_defn, asm_language_defn): Likewise.
1314 * d-lang.c (d_language_defn): Likewise.
1315 * f-lang.c (f_language_defn): Likewise.
1316 * go-lang.c (go_language_defn): Likewise.
1317 * jv-lang.c (java_language_defn): Likewise.
1318 * language.c (unknown_language_defn ): Likewise.
1319 (auto_language_defn): Likewise.
1320 * m2-lang.c (m2_language_defn): Likewise.
1321 * objc-lang.c (objc_language_defn): Likewise.
1322 * opencl-lang.c (opencl_language_defn): Likewise.
1323 * p-lang.c (pascal_language_defn): Likewise.
1324
1325 2013-11-07 Yao Qi <yao@codesourcery.com>
1326
1327 * language.c (language_str): Return const char *.
1328 (add_language): Add const to 'language_names'
1329 * language.h (struct language_defn) <la_name>: Add const.
1330 (language_str: Update declaration.
1331
1332 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333
1334 * s390-linux-nat.c (s390_read_description): Consider the TE field
1335 in the HWCAP for determining 'have_regset_tdb'.
1336
1337 2013-11-06 Will Newton <will.newton@linaro.org>
1338
1339 PR gdb/12866
1340 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1341 values. (read_partial_die): Likewise.
1342
1343 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1344
1345 PR cli/16122
1346 * top.c (command_line_input): Unify interactivity tests to use
1347 input_from_terminal_p.
1348 * event-top.c (command_line_handler): Likewise.
1349
1350 2013-11-06 Yao Qi <yao@codesourcery.com>
1351
1352 * Makefile.in (check-perf): New target.
1353
1354 2013-11-05 Will Newton <will.newton@linaro.org>
1355
1356 PR gdb/7670
1357 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1358 (arm_print_float_info): Likewise.
1359
1360 2013-11-04 Anton Blanchard <anton@samba.org>
1361
1362 * target.c (memory_xfer_partial): Cap write to 4KB.
1363
1364 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1365
1366 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1367 probe scan even when the arch provides no get_longjmp_target.
1368
1369 2013-10-31 Pedro Alves <palves@redhat.com>
1370
1371 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1372 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1373 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1374 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1375 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1376 <bpstat handling>: If the bpstat chain wants the signal to be
1377 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1378 GDB_SIGNAL_TRAP.
1379
1380 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1381
1382 * breakpoint.c (update_watchpoint): Update error message and add
1383 an additional error message.
1384
1385 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386
1387 * s390-tdep.h: Rename to...
1388 * s390-linux-tdep.h: ...here.
1389 * s390-tdep.c: Rename to...
1390 * s390-linux-tdep.c: ...here. Adjust #include.
1391 * s390-nat.c: Rename to...
1392 * s390-linux-nat.c: ...here. Adjust #include.
1393 * config/s390/s390.mh: Rename to...
1394 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1395 s390-linux-nat.o.
1396 * configure.host: Reflect host rename "s390" -> "linux".
1397 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1398 * Makefile.in (ALL_TARGET_OBS): Likewise.
1399 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1400 s390-linux-tdep.h.
1401 (ALLDEPFILES): Reflect rename of .c files.
1402
1403 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404
1405 * s390-nat.c: Whitespace cleanup.
1406 * s390-tdep.c: Likewise.
1407 * s390-tdep.h: Remove empty line at end of file.
1408
1409 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1410
1411 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1412 siginfo_size.
1413
1414 2013-10-29 Tom Tromey <tromey@redhat.com>
1415
1416 * utils.c (reg): Move undefinition...
1417 * gdb_curses.h: ... here. Update comment to mention AIX.
1418
1419 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1420
1421 * exec.h (add_target_sections_of_objfile): New declaration.
1422 * exec.c (add_target_sections_of_objfile): New function.
1423 * symfile.c (add_symbol_file_command): Update current target sections.
1424 (remove_symbol_file_command): New command.
1425 (symfile_free_objfile): New function.
1426 (_initialize_symfile): Register observer for free_objfile events.
1427 * NEWS: Add description of the remove-symbol-file command.
1428 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1429 * objfiles.c (free_objfile): Notify free_objfile.
1430 (is_addr_in_objfile): New function.
1431 * objfiles.h (is_addr_in_objfile): New declaration.
1432 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1433 events instead of solib_unloaded events.
1434 (_initialize_printcmd): Register observer for free_objfile instead
1435 of solib_unloaded notifications.
1436 * solib.c (remove_user_added_objfile): New function.
1437 (_initialize_symfile): Add remove-symbol-file.
1438
1439 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1440
1441 * infcmd.c (default_print_one_register_info): Use val_print to
1442 print all values even optimized out or unavailable ones. Don't
1443 try to print a raw form of optimized out or unavailable values.
1444
1445 2013-10-29 Yao Qi <yao@codesourcery.com>
1446
1447 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1448 parameter 'arg' instead of from program_space_data.
1449 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1450 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1451 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1452 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1453 * inflow.c (inflow_inferior_data_cleanup): Get data from
1454 parameter 'arg' instead of inferior_data.
1455 * registry.h: Add comments.
1456
1457 2013-10-28 Pedro Alves <palves@redhat.com>
1458
1459 * breakpoint.c (watchpoints_triggered)
1460 <!target_stopped_data_address>: Hardcode return 1.
1461
1462 2013-10-28 Pedro Alves <palves@redhat.com>
1463
1464 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1465 level and reindent.
1466
1467 2013-10-28 Pedro Alves <palves@redhat.com>
1468
1469 * infrun.c (process_event_stop_test): New function, factored out
1470 from handle_inferior_event.
1471 (handle_inferior_event): 'process_event_stop_test' is now a
1472 function instead of a goto label -- adjust.
1473
1474 2013-10-28 Pedro Alves <palves@redhat.com>
1475
1476 * infrun.c (handle_inferior_event): Move process_event_stop_test
1477 goto label to the else branch of the ecs->random_signal check,
1478 along with FRAME and GDBARCH re-fetching.
1479
1480 2013-10-28 Pedro Alves <palves@redhat.com>
1481
1482 * infrun.c (switch_back_to_stepped_thread): New function, factored
1483 out from handle_inferior_event.
1484 (handle_inferior_event): Adjust to call
1485 switch_back_to_stepped_thread. Call it also at the tail of the
1486 random signal handling, and return, instead of also handling
1487 random signals just before the stepping tests.
1488
1489 2013-10-28 Pedro Alves <palves@redhat.com>
1490
1491 * infrun.c (clear_stop_func): Delete.
1492 (handle_inferior_event): Don't call clear_stop_func and don't
1493 clear 'ecs->random_signal'.
1494
1495 2013-10-27 Yao Qi <yao@codesourcery.com>
1496
1497 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1498 (varobj_create, varobj_get_path_expr): Update.
1499 (varobj_value_has_mutated, varobj_update): Likewise.
1500 (create_child_with_value, new_root_variable): Likewise.
1501 (number_of_children, name_of_variable): Likewise.
1502 (value_of_child, my_value_of_variable): Likewise.
1503 (varobj_value_is_changeable_p): Likewise.
1504
1505 2013-10-25 Yao Qi <yao@codesourcery.com>
1506
1507 * language.h (struct lang_varobj_ops): Declare.
1508 (struct language_defn) <la_varobj_ops>: New field.
1509 * ada-lang.c: Include "varobj.h"
1510 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1511 ada_varobj_ops.
1512 * c-lang.c: Include "varobj.h"
1513 (c_language_defn): Initialize field 'la_varobj_ops' with
1514 c_varobj_ops.
1515 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1516 cplus_varobj_ops.
1517 (asm_language_defn): Initialize field 'la_varobj_ops' with
1518 default_varobj_ops.
1519 (minimal_language_defn): Likewise.
1520 * d-lang.c (d_language_defn): Likewise.
1521 * f-lang.c (f_language_defn): Likewise.
1522 * go-lang.c (go_language_defn): Likewise.
1523 * m2-lang.c (m2_language_defn): Likewise.
1524 * objc-lang.c (objc_language_defn): Likewise.
1525 * opencl-lang.c (opencl_language_defn): Likewise.
1526 * p-lang.c (pascal_language_defn): Likewise.
1527 * language.c (unknown_language_defn): Likewise.
1528 (auto_language_defn): Likewise.
1529 (local_language_defn): Likewise.
1530 * jv-lang.c (java_language_defn): Initialize field
1531 'la_varobj_ops' with java_varobj_ops.
1532 * varobj.c (varobj_create): Update.
1533 * varobj.h (default_varobj_ops): Define macro.
1534
1535 2013-10-25 Pedro Alves <palves@redhat.com>
1536
1537 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1538 static field value.
1539 (cp_print_static_field): If the value is entirely optimized out,
1540 print <optimized out> here.
1541 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1542 static field value.
1543 * p-valprint.c (pascal_object_print_static_field): If the value is
1544 entirely optimized out, print <optimized out> here.
1545 * valops.c (do_search_struct_field)
1546 (value_struct_elt_for_reference): No longer handle a NULL static
1547 field value.
1548 * value.c (value_static_field): Return an optimized out value
1549 instead of NULL.
1550
1551 2013-10-25 Yao Qi <yao@codesourcery.com>
1552
1553 * remote.c (remote_traceframe_info): Return early if
1554 traceframe is not selected.
1555
1556 2013-10-25 Yao Qi <yao@codesourcery.com>
1557
1558 * tracepoint.c (traceframe_fun): Remove.
1559 (traceframe_sal): Remove.
1560 (set_traceframe_context): Add local variables.
1561
1562 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1563
1564 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1565 and parameter name.
1566
1567 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1568
1569 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1570 failure from register information collection.
1571
1572 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1573
1574 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1575 member.
1576 (linux_corefile_thread_callback): Update accordingly.
1577 (linux_make_corefile_notes): Likewise.
1578
1579 2013-10-24 Pedro Alves <palves@redhat.com>
1580
1581 * NEWS (New options): Mention set/show startup-with-shell.
1582 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1583 instead of 3.
1584 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1585 startup-with-shell'.
1586 (show_startup_with_shell): New function.
1587 (_initialize_fork_child): Register the set/show startup-with-shell
1588 commands.
1589 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1590 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1591 * procfs.c (procfs_init_inferior): Remove comment.
1592 * infcmd.c (startup_with_shell): New global.
1593 * inferior.h (startup_with_shell): Declare global.
1594 (STARTUP_WITH_SHELL): Delete.
1595 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1596
1597 2013-10-23 Pedro Alves <palves@redhat.com>
1598
1599 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1600 * common/signals.c: Include "gdb_assert.h".
1601 (signals): New field 'symbol'.
1602 (SET): Use the 'symbol' parameter.
1603 (gdb_signal_to_symbol_string): New function.
1604 * infrun.c (handle_inferior_event) <random signal>: In debug
1605 output, print the random signal enum as string in addition to its
1606 number.
1607 * target/waitstatus.c (target_waitstatus_to_string): Print the
1608 signal's enum value as string instead of the (POSIX) signal name.
1609
1610 2013-10-23 Gary Benson <gbenson@redhat.com>
1611
1612 PR 16013
1613 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1614 from 32 to 18. Adjusted fscanf format string accordingly.
1615 (Avoids leaving cmd unterminated.)
1616 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1617 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1618 that local_address and remote_address will not overflow.
1619 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1620 leaving dependencies unterminated. Parse size as "%u" to match
1621 definition.
1622
1623 2013-10-22 Pedro Alves <palves@redhat.com>
1624
1625 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1626 set ecs->random signal.
1627
1628 2013-10-22 Pedro Alves <palves@redhat.com>
1629
1630 * infrun.c (keep_going): Update comments.
1631
1632 2013-10-22 Pedro Alves <palves@redhat.com>
1633
1634 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1635 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1636
1637 2013-10-22 Pedro Alves <palves@redhat.com>
1638
1639 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1640 GDB_EXC_BAD_ACCESS.
1641 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1642 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1643 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1644 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1645 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1646 (GDB_SIGNAL_LAST): Change description string.
1647 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1648 Adjust to signal renaming.
1649 * darwin-nat.c (darwin_decode_message): Likewise.
1650
1651 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1652
1653 * MAINTAINERS (Write After Approval): Add myself to the list.
1654
1655 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1656
1657 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1658 forced off, downgrade them to software watchpoints if possible,
1659 and error out if not possible.
1660 (watch_command_1): Move watchpoint type selection closer to
1661 watchpoint creation, and extend the comments.
1662
1663 2013-10-18 Pedro Alves <palves@redhat.com>
1664
1665 PR gdb/16062
1666 * infrun.c (handle_inferior_event): Keep going if we got a random
1667 signal we should not stop for, instead of falling through to the
1668 step tests.
1669
1670 2013-10-18 Yao Qi <yao@codesourcery.com>
1671
1672 * c-varobj.c (cplus_number_of_children): Fix indentation.
1673
1674 2013-10-17 Tom Tromey <tromey@redhat.com>
1675
1676 PR gdb/15995:
1677 * printcmd.c (printcmd): Call gdb_flush.
1678
1679 2013-10-17 Tom Tromey <tromey@redhat.com>
1680
1681 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1682 (elf_locate_sections): Update.
1683
1684 2013-10-17 Yao Qi <yao@codesourcery.com>
1685
1686 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1687 * ada-varobj.c: Remove the include of ada-varobj.h.
1688 (ada_varobj_get_number_of_children): Declare.
1689 (ada_varobj_get_name_of_child): Make it static.
1690 (ada_varobj_get_path_expr_of_child): Likewise.
1691 (ada_varobj_get_value_of_child): Likewise.
1692 (ada_varobj_get_type_of_child): Likewise.
1693 (ada_varobj_get_value_of_array_variable): Likewise.
1694 * ada-varobj.h: Remove.
1695
1696 2013-10-17 Yao Qi <yao@codesourcery.com>
1697
1698 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1699 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1700 * ada-varobj.c: Include "varobj.h".
1701 (ada_number_of_children): New. Moved from varobj.c.
1702 (ada_name_of_variable, ada_name_of_child): Likewise.
1703 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1704 (ada_type_of_child, ada_value_of_variable): Likewise.
1705 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1706 (ada_varobj_ops): New.
1707 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1708 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1709 * gdbtypes.h (get_target_type): Declare.
1710 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1711 "ada-lang.h".
1712 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1713 (ANONYMOUS_UNION_NAME): Likewise.
1714 (get_type, get_value_type, get_target_type): Remove declarations.
1715 (value_get_print_value, varobj_value_get_print_value): Likewise.
1716 (c_number_of_children, c_name_of_variable): Likewise.
1717 (c_name_of_child, c_path_expr_of_child): Likewise.
1718 (c_value_of_child, c_type_of_child): Likewise.
1719 (c_value_of_variable, cplus_number_of_children): Likewise.
1720 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1721 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1722 (cplus_value_of_child, cplus_type_of_child): Likewise.
1723 (cplus_value_of_variable, java_number_of_children): Likewise.
1724 (java_name_of_variable, java_name_of_child): Likewise.
1725 (java_path_expr_of_child, java_value_of_child): Likewise.
1726 (java_type_of_child, java_value_of_variable): Likewise.
1727 (ada_number_of_children, ada_name_of_variable): Likewise.
1728 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1729 (ada_value_of_child, ada_type_of_child): Likewise.
1730 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1731 (ada_value_has_mutated): Likewise.
1732 (struct language_specific): Move it to varobj.h.
1733 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1734 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1735 Callers update.
1736 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1737 Make it extern.
1738 (is_anonymous_child): Move it to c-varobj.c and rename to
1739 varobj_is_anonymous_child. Caller update.
1740 (get_type): Move it to c-varobj.c.
1741 (get_value_type): Rename it varobj_get_value_type. Make it
1742 extern.
1743 (get_target_type): Move it gdbtypes.c.
1744 (varobj_formatted_print_options): New function.
1745 (value_get_print_value): Rename it to
1746 varobj_value_get_print_value and make it extern.
1747 (varobj_value_is_changeable_p): Make it extern.
1748 (adjust_value_for_child_access): Move it to c-varobj.c.
1749 (default_value_is_changeable_p): Rename it to
1750 varobj_default_value_is_changeable_p. Make it extern.
1751 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1752 (c_name_of_child, c_path_expr_of_child): Likewise.
1753 (c_value_of_child, c_type_of_child): Likewise.
1754 (c_value_of_variable, cplus_number_of_children): Likewise.
1755 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1756 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1757 (cplus_value_of_child, cplus_type_of_child): Likewise.
1758 (cplus_value_of_variable): Likewise.
1759 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1760 (java_name_of_child, java_path_expr_of_child): Likewise.
1761 (java_value_of_child, java_type_of_child): Likewise.
1762 (java_value_of_variable): Likewise.
1763 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1764 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1765 (ada_value_of_child, ada_type_of_child): Likewise.
1766 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1767 (ada_value_has_mutated): Likewise.
1768 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1769 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1770 (c_varobj_ops, cplus_varobj_ops): Declare.
1771 (java_varobj_ops, ada_varobj_ops): Declare.
1772 (varobj_default_value_is_changeable_p): Declare.
1773 (varobj_value_is_changeable_p): Declare.
1774 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1775 (varobj_get_path_expr_parent): Declare.
1776 (varobj_value_get_print_value): Declare.
1777 (varobj_formatted_print_options): Declare.
1778 (varobj_restrict_range): Declare.
1779
1780 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1781
1782 * target/waitstatus.h (target_waitkind): Remove spurious
1783 character from the comments.
1784
1785 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1786
1787 * gdbarch.sh (get_longjmp_target): Add method documentation.
1788 * gdbarch.h: Regenerate.
1789
1790 2013-10-16 Tom Tromey <tromey@redhat.com>
1791
1792 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1793 label.
1794
1795 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1796
1797 * gcore.in: Call GDB using the full path to the gcore script.
1798 Error out if the GDB binary is not found.
1799
1800 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1801
1802 PR gdb/16014
1803 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1804 sizeof.
1805
1806 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1807
1808 PR gdb/16042
1809 * target.c (target_disable_btrace): Fix invalid return value for
1810 void function.
1811 (target_teardown_btrace): Likewise.
1812
1813 2013-10-14 Yao Qi <yao@codesourcery.com>
1814
1815 * varobj.c (struct varobj): Move most of the fields to
1816 varobj.h.
1817 (struct varobj_dynamic): New struct.
1818 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1819 (varobj_has_more): Likewise.
1820 (dynamic_varobj_has_child_method): Likewise.
1821 (update_dynamic_varobj_children): Likewise.
1822 (varobj_get_num_children): Likewise.
1823 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1824 (install_new_value_visualizer): Likewise.
1825 (install_new_value_visualizer, install_new_value): Likewise.
1826 (varobj_update, new_variable, free_variable): Likewise.
1827 (my_value_of_variable, value_get_print_value): Likewise.
1828 (install_visualizer): Change the type of parameter 'var' to
1829 'struct varobjd_dynamic *'. Callers update.
1830 * varobj.h (struct varobj): Moved from varobj.c.
1831 (struct varobj) <dynamic>: New field.
1832
1833 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1834
1835 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1836 as the preferred name of r30.
1837 * nios2-linux-tdep.c (reg_offsets): Likewise.
1838 * features/nios2-cpu.xml: Likewise.
1839 * features/nios2-linux.c: Regenerated.
1840 * features/nios2.c: Regenerated.
1841 * regformats/nios2-linux.dat: Regenerated.
1842
1843 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1844
1845 Canonicalize directories for EXEC_FILENAME.
1846 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1847 exec_filename.
1848 * utils.c (gdb_realpath_keepfile): New function.
1849 * utils.h (gdb_realpath_keepfile): New declaration.
1850
1851 2013-10-11 Doug Evans <dje@google.com>
1852
1853 * Makefile.in (GDBFLAGS): New variable.
1854 (run): New rule.
1855
1856 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1857
1858 * NEWS: Add entry documenting the new "-catch-assert" and
1859 "-catch-exception" GDB/MI commands.
1860
1861 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1862
1863 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1864 "enabled".
1865 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1866 "enabled". Set B->ENABLE_STATE accordingly.
1867 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1868 ada-lang.c.
1869 (create_ada_exception_catchpoint): Add declaration.
1870 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1871 (create_ada_exception_catchpoint): Make non-static. Add new
1872 parameter "disabled". Use it in call to
1873 init_ada_exception_breakpoint.
1874 (catch_ada_exception_command): Add parameter "enabled" in call
1875 to create_ada_exception_catchpoint.
1876 (catch_assert_command): Likewise.
1877
1878 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1879 Add declarations.
1880 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1881 "catch-exception" commands.
1882 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1883 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1884
1885 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1886
1887 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1888 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1889 of all its enumerates with "ada_". Update the rest of this
1890 file throughout.
1891
1892 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1893
1894 * ada-lang.c (ada_decode_exception_location): Delete.
1895 (create_ada_exception_catchpoint): Remove arguments "sal",
1896 "addr_string" and "ops". Add argument "ex_kind" instead.
1897 Adjust implementation accordingly, calling ada_exception_sal
1898 to get the entities it no longer gets passed as arguments.
1899 Document the function's arguments.
1900 (catch_ada_exception_command): Use catch_ada_exception_command_split
1901 instead of ada_decode_exception_location, and update call to
1902 create_ada_exception_catchpoint.
1903 (catch_ada_assert_command_split): Renames
1904 ada_decode_assert_location. Remove parameters "addr_string" and
1905 "ops", and now returns void. Adjust implementation accordingly.
1906 Update the function documentation.
1907 (catch_assert_command): Use catch_ada_assert_command_split
1908 instead of ada_decode_assert_location. Update call to
1909 create_ada_exception_catchpoint.
1910
1911 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1912
1913 * utils.h (perror_warning_with_name): Add declaration.
1914 * utils.c (perror_warning_with_name): New function.
1915 * cli/cli-cmds.c (source_script_with_search): Add call to
1916 perror_warning_with_name if from_tty is nul.
1917
1918 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1919
1920 * utils.c (perror_string): New function, extracted out of
1921 throw_perror_with_name.
1922 (throw_perror_with_name): Rework to use perror_string.
1923
1924 2013-10-11 Yao Qi <yao@codesourcery.com>
1925
1926 * remote.c (discard_pending_stop_replies_in_queue): Update
1927 declaration.
1928 (struct stop_reply) <rs>: New field.
1929 (remove_stop_reply_of_remote_state): New function.
1930 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1931 Callers update. Pass remove_stop_reply_of_remote_state to
1932 QUEUE_iterate.
1933 (remote_parse_stop_reply): Initialize field 'rs'.
1934
1935 2013-10-10 Will Newton <will.newton@linaro.org>
1936
1937 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1938 linux_init_abi.
1939
1940 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1941
1942 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1943 serial_baud_show_cmd.
1944 (_initialize_cli_cmds): Delete the code creating the
1945 "set/show remotebaud" commands.
1946 * serial.c (baud_rate): Move here from top.c.
1947 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1948 (_initialize_serial): Create "set/show serial baud" commands.
1949 Add "set/show remotebaud" command aliases.
1950 * top.c (baud_rate): Moved to serial.c.
1951 * NEWS: Document the new "set/show serial baud" commands,
1952 replacing "set/show remotebaud".
1953
1954 2013-10-09 Pedro Alves <palves@redhat.com>
1955
1956 * breakpoint.c (insert_bp_location): Use memory_error_message to
1957 build the memory error string.
1958 * c-lang.c: Include "gdbcore.h".
1959 (c_get_string): Use memory_error to throw error.
1960 (target_xfer_memory_error): Delete.
1961 (memory_error_message): New, factored out from
1962 target_xfer_memory_error.
1963 (memory_error): Change parameter type to target_xfer_error.
1964 Rewrite.
1965 (read_memory): Use memory_error instead of
1966 target_xfer_memory_error.
1967 * gdbcore.h: Include "target.h".
1968 (memory_error): Change parameter type to target_xfer_error.
1969 (memory_error_message): Declare function.
1970 * target.c (target_read_memory, target_read_stack)
1971 (target_write_memory, target_write_raw_memory): Return
1972 TARGET_XFER_E_IO on error. Adjust comments.
1973 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1974 instead of EIO.
1975 * target.h (target_read, target_insert_breakpoint)
1976 (target_remove_breakpoint): Adjust comments.
1977 * valprint.c (partial_memory_read): Rename parameter, and adjust
1978 comment.
1979 (val_print_string): Use memory_error_message to build the memory
1980 error string.
1981
1982 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1985 result variable. Rename variable fopen_e_ever_failed to
1986 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1987
1988 2013-10-09 Pedro Alves <palves@redhat.com>
1989
1990 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1991 (monitor_write_memory_longlongs, monitor_write_memory_block):
1992 Constify 'myaddr' parameter.
1993 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1994 helper.
1995 (monitor_xfer_partial): New function.
1996 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1997 hook. Install a to_xfer_partial hook.
1998
1999 2013-10-09 Tom Tromey <tromey@redhat.com>
2000
2001 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2002 bfd_get_alt_debug_link_info.
2003
2004 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 New flag OBJF_NOT_FILENAME.
2007 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2008 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2009 allocate_objfile.
2010 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2011 symbol_file_add_from_bfd.
2012 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2013 allocate_objfile.
2014 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2015 NULL.
2016 * objfiles.h (OBJF_NOT_FILENAME): New.
2017
2018 2013-10-08 Tom Tromey <tromey@redhat.com>
2019
2020 * Makefile.in (SFILES): Add build-id.c.
2021 (HFILES_NO_SRCDIR): Add build-id.h.
2022 * build-id.c: New file, largely from elfread.c. Modified
2023 most functions.
2024 * build-id.h: New file.
2025 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2026 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2027 Search for dwz file using build-id.
2028 * elfread.c (build_id_bfd_get, build_id_verify)
2029 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2030
2031 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2032
2033 * ada-lang.c (compare_names_with_case): Renamed from
2034 compare_names, adding a new parameter "casing" and its handling.
2035 New function documentation.
2036 (compare_names): New function, implemented using
2037 compare_names_with_case.
2038
2039 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2040
2041 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2042
2043 2013-10-07 Tom Tromey <tromey@redhat.com>
2044
2045 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2046 demangled_names_hash.
2047 (free_objfile): Don't delete the demangled_names_hash.
2048 * objfiles.h (struct objfile_per_bfd_storage)
2049 <demangled_names_hash>: New field.
2050 (struct objfile) <demangled_names_hash>: Move to
2051 objfile_per_bfd_storage.
2052 * symfile.c (reread_symbols): Don't delete the
2053 demangled_names_hash.
2054 * symtab.c (create_demangled_names_hash): Update.
2055 (symbol_set_names): Update.
2056
2057 2013-10-07 Tom Tromey <tromey@redhat.com>
2058
2059 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2060 needs_relocations>: New fields.
2061 (gdb_bfd_requires_relocations): New function.
2062 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2063 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2064 the BFD needs relocations applied.
2065
2066 2013-10-07 Pedro Alves <palves@redhat.com>
2067
2068 PR breakpoints/11568
2069 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2070 the thread list" instead of "gone".
2071
2072 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2073
2074 * NEWS: Mention new convenience variable $_exitsignal.
2075 * corelow.c (core_open): Reset exit convenience variables. Set
2076 $_exitsignal to the uncaught signal which generated the corefile.
2077 * infrun.c (handle_inferior_event): Reset exit convenience
2078 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2079 (clear_exit_convenience_vars): New function.
2080 * inferior.h (clear_exit_convenience_vars): New prototype.
2081
2082 2013-10-06 Yao Qi <yao@codesourcery.com>
2083
2084 * varobj.h: Add comments to enum varobj_languages.
2085
2086 2013-10-04 Doug Evans <dje@google.com>
2087
2088 Add support for DWP file format version 2.
2089 * NEWS: Mention support for DWP file format version 2.
2090 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2091 union of asection, containing_section. New fields virtual_offset
2092 and is_virtual. Change type of readin filed from int to char.
2093 (dwo_sections, dwo_file): Tweak comments.
2094 (dwp_v2_section_ids): New enum.
2095 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2096 str_offsets, types.
2097 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2098 All uses updated.
2099 (virtual_v2_dwo_sections): New struct.
2100 (dwp_hash_table): New fields version, nr_columns. Change type of
2101 section_pool field to a union.
2102 (dwp_file): New field version.
2103 (dwarf2_has_info): Check for virtual sections.
2104 (get_containing_section): New function.
2105 (get_section_bfd_owner, get_section_bfd_section): Call it.
2106 (dwarf2_locate_sections): Update.
2107 (dwarf2_section_empty_p): Update.
2108 (dwarf2_read_section): Handle virtual sections.
2109 (locate_dwz_sections): Update.
2110 (create_dwp_hash_table): Document and handle V2 format.
2111 (locate_v1_virtual_dwo_sections): Renamed from
2112 locate_virtual_dwo_sections and update. All callers updated.
2113 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2114 Delete arg htab. Rename arg section_index to unit_index.
2115 All callers updated.
2116 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2117 All uses updated.
2118 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2119 (lookup_dwo_unit_in_dwp): Add V2 support.
2120 (dwarf2_locate_dwo_sections): Update.
2121 (dwarf2_locate_common_dwp_sections): Renamed from
2122 dwarf2_locate_dwp_sections and update. All callers updated.
2123 (dwarf2_locate_v2_dwp_sections): New function.
2124 (open_and_init_dwp_file): Add V2 support.
2125 (read_str_index): New locals str_section, str_offsets_section.
2126
2127 2013-10-04 Pedro Alves <palves@redhat.com>
2128
2129 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2130 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2131 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2132 describing comments with references to ptid.h.
2133 * common/ptid.h: Remove intro description of constructors,
2134 accessors and predicates.
2135 (struct ptid): Reformat.
2136 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2137 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2138 describing comments.
2139
2140 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2141
2142 * aix-thread.c (sync_threadlists): Add missing ')' in call
2143 to ptid_build.
2144
2145 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2146
2147 * procfs.c (procfs_init_inferior): Fix typo causing the build
2148 to fail.
2149
2150 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2151
2152 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2153
2154 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2155
2156 * mi/mi-main.c (run_one_inferior): Add function description.
2157 Make ARG a pointer to an integer whose value determines whether
2158 we should "run" or "start" the program.
2159 (mi_cmd_exec_run): Add handling of the "--start" option.
2160 Reject all other command-line options.
2161 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2162
2163 2013-10-04 Yao Qi <yao@codesourcery.com>
2164
2165 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2166 (struct notif_client) <pending_event>: Moved
2167 to struct remote_notif_state.
2168 <id>: New field.
2169 (struct remote_notif_state) <pending_event>: New field.
2170 (notif_event_xfree): Declare.
2171 * remote-notif.c (handle_notification): Adjust.
2172 (notif_event_xfree): New function.
2173 (do_notif_event_xfree): Call notif_event_xfree.
2174 (remote_notif_state_xfree): Call notif_event_xfree to free
2175 each element in field pending_event.
2176 * remote.c (discard_pending_stop_replies): Remove declaration.
2177 (discard_pending_stop_replies_in_queue): Declare.
2178 (remote_close): Call discard_pending_stop_replies_in_queue
2179 instead of discard_pending_stop_replies.
2180 (remote_start_remote): Adjust.
2181 (stop_reply_xfree): Call notif_event_xfree.
2182 (notif_client_stop): Adjust initialization.
2183 (remote_notif_remove_all): Rename it to ...
2184 (remove_stop_reply_for_inferior): ... this. Update comments.
2185 Don't check INF is NULL.
2186 (discard_pending_stop_replies): Return early if notif_state is
2187 NULL. Adjust. Don't check INF is NULL.
2188 (remote_notif_get_pending_events): Adjust.
2189 (discard_pending_stop_replies_in_queue): New function.
2190 (remote_wait_ns): Likewise.
2191
2192 2013-10-04 Yao Qi <yao@codesourcery.com>
2193
2194 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2195 (notif_queue): Remove.
2196 (remote_notif_process): Add one parameter 'notif_queue'.
2197 Update comments. Callers update.
2198 (remote_async_get_pending_events_token): Remove.
2199 (remote_notif_register_async_event_handler): Remove.
2200 (remote_notif_unregister_async_event_handler): Remove.
2201 (handle_notification): Add parameter 'notif_queue'. Update
2202 comments. Callers update.
2203 (notif_xfree): Remove.
2204 (remote_notif_state_allocate): New function.
2205 (remote_notif_state_xfree): New function.
2206 (_initialize_notif): Remove code to allocate queue.
2207 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2208 (struct remote_notif_state): New.
2209 (handle_notification): Update declaration.
2210 (remote_notif_process): Likewise.
2211 (remote_notif_register_async_event_handler): Remove.
2212 (remote_notif_unregister_async_event_handler): Remove.
2213 (remote_notif_state_allocate): Declare.
2214 (remote_notif_state_xfree): Declare.
2215 * remote.c (struct remote_state) <notif_state>: New field.
2216 (remote_close): Don't call
2217 remote_notif_unregister_async_event_handler. Call
2218 remote_notif_state_xfree.
2219 (remote_open_1): Don't call
2220 remote_notif_register_async_event_handler. Call
2221 remote_notif_state_allocate.
2222
2223 2013-10-04 Yao Qi <yao@codesourcery.com>
2224
2225 * varobj.c (create_child_with_value): Remove 'const' from the
2226 type of parameter 'name'.
2227 (varobj_add_child): Likewise.
2228 (install_dynamic_child): Remove 'const' from the type of
2229 parameter 'name'.
2230 (varobj_add_child): Likewise.
2231 (create_child_with_value): Likewise. Update comments. Don't
2232 duplicate 'name'.
2233 (update_dynamic_varobj_children): Duplicate 'name'
2234 and pass it to install_dynamic_child.
2235
2236 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2237
2238 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2239 conversion logic to occur after PyLong_Check. Comment on order
2240 change significance.
2241 * python/py-arch.c (archpy_disassemble): Comment on order of
2242 conversion for integers and longs.
2243
2244 2013-10-03 Pedro Alves <palves@redhat.com>
2245
2246 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2247 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2248 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2249 PTRACE_O_TRACEFORK is not supported.
2250 (linux_test_for_tracesysgood): New function.
2251 (linux_test_for_tracefork): New function, factored out from
2252 linux_check_ptrace_features, and also don't kill child_pid here.
2253
2254 2013-10-03 Tristan Gingold <gingold@adacore.com>
2255
2256 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2257 Remove verbose error reporting. Use detected state to
2258 thread_set_state call.
2259 (i386_darwin_dr_get): Fix return type. Remove verbose error
2260 report.
2261 Remove trailing spaces.
2262
2263 2013-10-02 Pedro Alves <palves@redhat.com>
2264
2265 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2266 val_print_optimized_out.
2267 * jv-valprint.c (java_print_value_fields): Likewise.
2268 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2269 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2270 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2271 new optimized out value.
2272 * findvar.c (address_from_register): Likewise.
2273 * frame.c (put_frame_register): Tweak error string to say the
2274 register was not saved, rather than optimized out.
2275 * infcmd.c (default_print_one_register_info): Adjust call to
2276 val_print_optimized_out. Use value_of_register instead of
2277 get_frame_register_value.
2278 * mi/mi-main.c (output_register): Use value_of_register instead of
2279 get_frame_register_value.
2280 * valprint.c (valprint_check_validity): Likewise.
2281 (val_print_optimized_out): New value parameter. If the value is
2282 lval_register, print <not saved> instead.
2283 (value_check_printable, val_print_scalar_formatted): Adjust calls
2284 to val_print_optimized_out.
2285 * valprint.h (val_print_optimized_out): New value parameter.
2286 * value.c (struct value) <optimized_out>: Extend comment.
2287 (error_value_optimized_out): New function.
2288 (require_not_optimized_out): Use it. Use a different string for
2289 lval_register values.
2290 * value.h (error_value_optimized_out): New declaration.
2291 * NEWS: Mention <not saved>.
2292
2293 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2294
2295 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2296 strcmp to compare two symtab filenames.
2297
2298 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2299
2300 * symtab.c (search_symbols_equal): Delete.
2301 (sort_search_symbols_remove_dups): Replace call to
2302 search_symbols_equal by call to compare_search_syms,
2303 adjusting as necessary.
2304
2305 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2306
2307 PR python/15579
2308 * python/python.c: Document gdb.execute command in Python help.
2309
2310 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2311
2312 * python/py-frame.c (frame_info_to_frame_object): Use
2313 gdbpy_convert_exception. Clean up Python object on failure.
2314
2315 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2316
2317 * python/lib/gdb/command/frame_filters.py
2318 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2319 (ShowFrameFilterPriority.invoke): Ditto.
2320
2321 2013-10-01 Keith Seitz <keiths@redhat.com>
2322
2323 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2324 (parse_linespec): Make 'argptr' const.
2325 Remove temporary cast of 'argptr' to const char **.
2326 (decode_line_full): Pass const pointer to parse_linespec.
2327 (decode_line_1): Likewise.
2328 (decode_objc): Make local variable 'new_argptr' const.
2329 (find_function_symbols): Remove temporary cast to char *
2330 to find_imps.
2331 * objc-lang.c (find_imps): Make argument 'method' const.
2332 Return const.
2333 * objc-lang.h (find_imps): Likewise.
2334
2335 2013-10-01 Keith Seitz <keiths@redhat.com>
2336
2337 * completer.c (skip_quoted_chars): Make all arguments const.
2338 Return const.
2339 (skip_quoted): Likewise.
2340 * completer.h (skip_quoted_chars): Likewise.
2341 (skip_quoted): Likewise.
2342 * defs.h (skip_quoted): Remove duplicate declaration.
2343 * jv-exp.y: Include completer.h.
2344 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2345 * p-exp.y: Include completer.h.
2346
2347 2013-10-01 Keith Seitz <keiths@redhat.com>
2348
2349 * c-exp.y (parse_number): Make first argument const.
2350 Make a copy of the input to manipulate.
2351 (c_parse_escape): Make first argument const.
2352 Make local variable 'tokptr' const.
2353 (parse_string_or_char): Make first two arguments const.
2354 (macro_original_text): Make const.
2355 (lex_one_token): Make local variable 'tokstart' const.
2356 Likewise for local variables named 'p'.
2357 Cast away const for struct stoken (temporary).
2358 * c-lang.h (c_parse_escpae): Make first argument const.
2359 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2360 const.
2361 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2362 var_string case.
2363 * f-exp.y (parse_number): Make first argument const.
2364 (match_string_literal): Make local variable 'tokstart'
2365 const.
2366 (yylex): Make local variable 'p' const.
2367 Cast away const for struct stoken (temporary).
2368 * go-exp.y (parse_number): Make first argument const.
2369 (parse_string_or_char): Likewise.
2370 Make local variable 'tokstart' const.
2371 (lex_one_token): Likewise for numerous locals called 'p'.
2372 Cast away const for struct stoken (temporary).
2373 * jv-exp.y (parse_number): Make first argument const.
2374 Make local variables 'tokstart' and 'tokptr' const.
2375 Cast away const for call to skip_quoted (temporary).
2376 (yylex): Make local variable 'p' const.
2377 Cast away const for struct stoken (temporary).
2378 * m2-exp.y (parse_number): Make local variable 'p' const.
2379 (yylex): Likewise for 'tokstart'.
2380 Cast away const for struct stoken (temporary).
2381 Make local variable 'p' const.
2382 * macroexp.c (get_character_constant): Pass a const string
2383 to c_parse_escape.
2384 (get_string_literal): Likewise.
2385 (macro_expand_next): Make first argument const.
2386 Cast away const for init_shared_buffer.
2387 * macroexp.h (macro_expand_next): Make first argument const.
2388 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2389 Pass a const string to c_parse_escape.
2390 Make local variables 'p' and 'namestart' const.
2391 * parse.c (lexptr): Make const.
2392 (prev_lexptr): Likewise.
2393 (find_template_name_end): Return const.
2394 Make argument const, too.
2395 (parse_exp_in_context): Make first argument const.
2396 Remove the entire const_hack.
2397 (parse_exp_in_context_1): Make first argument const.
2398 * parser-defs.h (find_template_name_end): Return const.
2399 Make argument const, too.
2400 (lexptr): Make const.
2401 (prev_lexptr): Likewise.
2402 * utils.c (parse_escape): Make second argument const.
2403 * utils.h (parse_escape): Likewise.
2404
2405 2013-10-01 Keith Seitz <keiths@redhat.com>
2406
2407 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2408 is now const.
2409 (block_lookup): Make 'raw_name' and 'name' const.
2410 * ada-lex.l (processString): Update for struct stoken.ptr.
2411 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2412 (operator_stoken): Likewise.
2413 (lex_one_token): Remove temporary cast to char * for
2414 'yylval.sval.ptr'.
2415 * f-exp.y (yylex): Likewise.
2416 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2417 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2418 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2419 'yylval.sval.ptr'.
2420 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2421 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2422 * linespec.c (struct ls_parser): Make 'stream' const.
2423 (find_parameter_list_end): Make argument 'input' and local
2424 variable 'p' const.
2425 (linespec_lexer_lex_string): Make local variables 'start' and
2426 'p' const.
2427 Use skip_spaces_const instead of skip_spaces.
2428 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2429 const.
2430 (parse_linespec): Temporarily cast 'argptr' to const for
2431 'parser->lexer.stream'.
2432 * m2-exp.y (yylex): Remove temporary cast to char * for
2433 'yylval.sval.ptr'.
2434 * objc-lang.c (add_msglist): Make local variable 'p' const.
2435 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2436 (exp : STRING): Make 'sp' const.
2437 (parse_number): Make argument 'p' const.
2438 * parser-defs.h (struct stoken): Make 'ptr' const.
2439
2440 2013-10-01 Doug Evans <dje@google.com>
2441
2442 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2443
2444 2013-10-01 Yao Qi <yao@codesourcery.com>
2445
2446 * varobj.c (c_value_of_root): Remove declaration.
2447 (cplus_value_of_root, java_value_of_root): Likewise.
2448 (ada_value_of_root): Likewise.
2449 (struct language_specific) <value_of_root>: Remove.
2450 (languages): Update initialization.
2451 (check_scope): Move earlier.
2452 (c_value_of_root): Move earlier and rename to ...
2453 (value_of_root_1): ... this.
2454 (value_of_root): Caller update.
2455 (cplus_value_of_root, java_value_of_root): Remove.
2456 (ada_value_of_root): Remove.
2457
2458 2013-10-01 Yao Qi <yao@codesourcery.com>
2459
2460 * varobj.c (varobj_format_string): Remove "unknown".
2461 (languages): Remove the first element.
2462 * varobj.h (enum varobj_languages): Remove vlang_c.
2463
2464 2013-10-01 Yao Qi <yao@codesourcery.com>
2465
2466 * varobj.c (struct language_specific) <language>: Remove.
2467 (languages): Update the initialization.
2468
2469 2013-10-01 Yao Qi <yao@codesourcery.com>
2470
2471 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2472 "solib-target.h". Include "windows-tdep.h".
2473 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2474 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2475 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2476 windows-tdep.o to gdb_target_obs.
2477
2478 2013-10-01 Yao Qi <yao@codesourcery.com>
2479
2480 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2481 "solib-target.h".
2482 (amd64_windows_init_abi): Don't call set_solib_ops and
2483 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2484 windows_init_abi instead.
2485 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2486 "solib-target.h".
2487 (i386_cygwin_init_abi): Don't call set_solib_ops,
2488 set_gdbarch_has_dos_based_file_system and
2489 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2490 windows_init_abi instead.
2491 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2492 (windows_init_abi): New function.
2493 (windows_iterate_over_objfiles_in_search_order): Make it
2494 static.
2495 * windows-tdep.h (windows_init_abi): Declare.
2496 (windows_iterate_over_objfiles_in_search_order): Remove
2497 declaration.
2498
2499 2013-10-01 Jerome Guitton <guitton@adacore.com>
2500
2501 Checked in by Joel Brobecker <brobecker@adacore.com>
2502 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2503 incomplete dictionnary instead of None in case of missing
2504 environment variables.
2505 (elinos_init): in case of an incomplete environment, best
2506 effort to load system libraries instead of abort.
2507
2508 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2509
2510 * ada-lang.c (ada_has_this_exception_support): Ignore
2511 mst_solib_trampoline minimal symbols.
2512
2513 2013-09-30 Tristan Gingold <gingold@adacore.com>
2514
2515 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2516 hardware watchpoint.
2517 (i386_darwin_dr_set): Support 32 and 64 bit states.
2518 (i386_darwin_dr_get): Likewise.
2519 (i386_darwin_dr_set_control): Make static.
2520 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2521 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2522
2523 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2524
2525 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2526 Replace TIDGET with ptid_get_lwp.
2527 Replace GET_LWP with ptid_get_lwp.
2528 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2529 Replace BUILD_THREAD with ptid_build.
2530 Replace BUILD_LWP with ptid_build.
2531 Replace PIDGET with ptid_get_pid.
2532 Replace TIDGET with ptid_get_lwp.
2533 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2534 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2535 Replace TIDGET with ptid_get_lwp.
2536 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2537 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2538 Replace TIDGET with ptid_get_lwp.
2539 Replace GET_LWP with ptid_get_lwp.
2540 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2541 * auxv.c: Likewise.
2542 * breakpoint.c: Likewise.
2543 * common/ptid.c (ptid_is_pid): Condense check for
2544 null_ptid and minus_one_ptid.
2545 (ptid_lwp_p): New function.
2546 (ptid_tid_p): New function.
2547 * common/ptid.h: Update comments for accessors.
2548 (ptid_lwp_p): New prototype.
2549 (ptid_tid_p): New prototype.
2550 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2551 * gcore.c: Replace PIDGET with ptid_get_pid.
2552 * gdbthread.h: Likewise.
2553 * gnu-nat.c: Likewise.
2554 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2555 Replace TIDGET with ptid_get_lwp.
2556 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2557 * hppanbsd-nat.c: Likewise.
2558 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2559 Replace TIDGET with ptid_get_lwp.
2560 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2561 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2562 * infcmd.c: Likewise.
2563 * inferior.h: Likewise.
2564 * inflow.c: Likewise.
2565 * infrun.c: Likewise.
2566 * linux-fork.c: Likewise.
2567 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2568 Replace GET_PID with ptid_get_pid.
2569 Replace is_lwp with ptid_lwp_p.
2570 Replace GET_LWP with ptid_get_lwp.
2571 Replace BUILD_LWP with ptid_build.
2572
2573 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2574
2575 * common/linux-btrace.c: Move sys/syscall.h out of the
2576 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2577 Also check for SYS_perf_event_open before attempting to buid.
2578
2579 2013-09-27 Doug Evans <dje@google.com>
2580
2581 * dwarf2read.c (dwarf2_section_info): Add comment.
2582 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2583 All uses updated.
2584 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2585 (dwarf2_read_section): Delete unused local "header". Add section
2586 name to error message.
2587 (create_dwo_in_dwp): Tweak comment.
2588 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2589
2590 * dwarf2read.c (die_reader_specs): Tweak comment.
2591 (get_section_bfd_owner, get_section_bfd_section): New functions.
2592 (get_section_name, get_section_file_name): New functions.
2593 (get_section_id, get_section_flags): New functions.
2594 (*): Use new functions to access section fields.
2595
2596 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2597 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2598 arg "htab". All callers updated.
2599 (create_debug_types_hash_table): Remove redundant copy of
2600 abbrev_section.
2601 (create_dwo_in_dwp): Tweak comments.
2602 (read_str_index): Tweak comment. Record dwarf form name in static
2603 local.
2604
2605 2013-09-27 Pedro Alves <palves@redhat.com>
2606
2607 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2608 (remote_filename_p): Add comment.
2609 * remote.c (remote_filename_p): Adjust to use
2610 REMOTE_SYSROOT_PREFIX.
2611 * solib.c (solib_find): When deciding whether we need to add a
2612 directory separator, check whether the sysroot is "remote:"
2613 instead of checking whether the patch has a drive spec. Add
2614 comments.
2615
2616 2013-09-27 Pedro Alves <palves@redhat.com>
2617
2618 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2619 Delete fields.
2620 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2621 directly.
2622
2623 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 Fix set debug frame output.
2626 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2627 SENTINEL_FRAME entry lower to match enum frame_type order.
2628
2629 2013-09-26 Pierre Muller <muller@sourceware.org>
2630
2631 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2632 AMD64_R15_REGNUM when a register index is expected.
2633 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2634 Substitute in array.
2635 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2636 (amd64_push_arguments): Substitute in integer_regnum array.
2637
2638 2013-09-25 Doug Evans <dje@google.com>
2639
2640 * objfiles.c (allocate_objfile): Move comment to better place.
2641
2642 New option "set debug symfile on".
2643 * NEWS: Mention "set debug symfile".
2644 * Makefile.in (SFILES): Add symfile-debug.c.
2645 (COMMON_OBS): Add symfile-debug.o.
2646 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2647 objfile's symbol functions.
2648 * objfiles.h (objfile_set_sym_fns): Declare.
2649 * symfile-debug.c: New file.
2650 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2651 objfile's symbol functions.
2652 (reread_symbols): Ditto.
2653
2654 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2655 All uses updated.
2656 (add_symtab_fns): Update prototype.
2657 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2658 (registered_sym_fns): ... this.
2659 (symtab_fns): Update.
2660 (add_symtab_fns): New arg "flavour". All callers updated.
2661 (find_sym_fns): Rewrite to use new sym_fns registry.
2662
2663 * symfile.h (struct sym_fns): Add "objfile" argument to
2664 sym_read_linetable. All uses updated.
2665
2666 * symtab.c (domain_name, search_domain_name): New functions.
2667 * symtab.h (domain_name, search_domain_name): Declare.
2668
2669 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2670 map_matching_symbols so objfile is first. All uses updated.
2671 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2672 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2673
2674 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2675
2676 PR shlibs/8882
2677 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2678 link map entries.
2679
2680 2013-09-24 Doug Evans <dje@google.com>
2681
2682 * objfiles.c (free_objfile): Move comment.
2683
2684 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2685
2686 * ada-exp.y (string_to_operator): Delete.
2687 (dummy_string_to_ada_operator): Delete.
2688
2689 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2690
2691 Revert:
2692 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2693 amd64-tdep.c.
2694 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2695 call_dummy_integer_regs, and classify.
2696 * amd64-tdep.h (amd64_classify): Add declaration.
2697 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2698 (amd64_reg_class): Delete, moved to i386-tdep.h.
2699 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2700 Replace call to amd64_classify by call to tdep->classify.
2701 (amd64_push_arguments): Get the list of registers to use for
2702 passing integer parameters from the gdbarch tdep structure,
2703 rather than using a hardcoded one. Replace calls to amd64_classify
2704 by calls to tdep->classify.
2705 (amd64_push_dummy_call): Get the register number used for
2706 the "hidden" argument from tdep->call_dummy_integer_regs.
2707 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2708 and tdep->call_dummy_integer_regs. Set tdep->classify.
2709
2710 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2711
2712 Revert:
2713 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2714 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2715 where tdep->memory_args_by_pointer is non-zero.
2716
2717 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2718
2719 Revert:
2720 * i386-tdep.h (struct gdbarch_tdep): Add new field
2721 integer_param_regs_saved_in_caller_frame.
2722 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2723 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2724
2725 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2726
2727 * amd64-windows-tdep.c: #include "value.h"
2728 (amd64_windows_classify): Delete.
2729 (amd64_windows_passed_by_integer_register)
2730 (amd64_windows_passed_by_xmm_register)
2731 (amd64_windows_passed_by_pointer)
2732 (amd64_windows_adjust_args_passed_by_pointer)
2733 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2734 (amd64_windows_push_dummy_call): New functions.
2735 (amd64_windows_init_abi): Remove setting of
2736 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2737 tdep->classify, tdep->memory_args_by_pointer and
2738 tdep->integer_param_regs_saved_in_caller_frame.
2739 Add call to set_gdbarch_push_dummy_call.
2740
2741 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2744 objfile->original_name.
2745
2746 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2747
2748 Pass down original filename for objfile.
2749 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2750 * elfread.c (elf_symfile_read): Likewise.
2751 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2752 longer set ORIGINAL_NAME.
2753 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2754 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2755 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2756 symbol_file_add_from_bfd call.
2757 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2758 (macho_check_dsym): Add parameter filenamep. Change function comment.
2759 Set *filenamep.
2760 (macho_symfile_read): New variable dsym_filename. Update
2761 macho_check_dsym call. Use it for symbol_file_add_separate.
2762 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2763 it. Use it for objfile->original_name.
2764 (objfile_name): Return OBFD's filename, if available.
2765 * objfiles.h (allocate_objfile): Add new parameter name.
2766 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2767 * symfile-mem.c (symbol_file_add_from_memory): Update
2768 symbol_file_add_from_bfd call.
2769 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2770 comment for it.
2771 (symbol_file_add_with_addrs): New parameter name, add function comment
2772 for it. Remove variable name. Update allocate_objfile call.
2773 (symbol_file_add_separate): New parameter name, add function comment
2774 for it. Update symbol_file_add_with_addrs call.
2775 (symbol_file_add_from_bfd): New parameter name. Update
2776 symbol_file_add_with_addrs call.
2777 (symbol_file_add): Update symbol_file_add_from_bfd call.
2778 (reread_symbols): New variable original_name. Save
2779 objfile->original_name by it.
2780 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2781 second parameter.
2782
2783 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 Code cleanup: Add objfile_name accessor function.
2786 * ada-lang.c (is_known_support_routine): Use objfile_name.
2787 * auto-load.c (source_gdb_script_for_objfile)
2788 (auto_load_objfile_script): Likewise.
2789 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2790 * dbxread.c (dbx_symfile_read): Likewise.
2791 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2792 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2793 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2794 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2795 (lookup_dwp_signatured_type, lookup_dwo_unit)
2796 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2797 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2798 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2799 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2800 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2801 (read_subrange_type, load_partial_dies, read_partial_die)
2802 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2803 (die_containing_type, build_error_marker_type, lookup_die_type)
2804 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2805 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2806 (get_DW_AT_signature_type, write_psymtabs_to_index)
2807 (save_gdb_index_command): Likewise.
2808 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2809 Likewise.
2810 * expprint.c (dump_subexp_body_standard): Likewise.
2811 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2812 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2813 original_name.
2814 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2815 obj_name, use objfile_name for it, use the variable.
2816 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2817 Use objfile_name.
2818 * machoread.c (macho_symtab_read, macho_check_dsym)
2819 (macho_symfile_relocate): Likewise.
2820 * maint.c (maintenance_translate_address): Likewise.
2821 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2822 * minsyms.c (install_minimal_symbols): Likewise.
2823 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2824 original_name.
2825 (filter_overlapping_sections): Use objfile_name.
2826 (objfile_name): New function.
2827 * objfiles.h (struct objfile): Rename field name to original_name.
2828 (objfile_name): New prototype.
2829 * printcmd.c (sym_info, address_info): Use objfile_name.
2830 * probe.c (parse_probes, collect_probes, compare_probes)
2831 (info_probes_for_ops): Likewise.
2832 * progspace.c (clone_program_space): Likewise.
2833 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2834 (maintenance_info_psymtabs): Likewise.
2835 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2836 (source_section_scripts): Likewise.
2837 * python/py-objfile.c (objfpy_get_filename): Likewise.
2838 * python/py-progspace.c (pspy_get_filename): Likewise.
2839 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2840 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2841 * solib.c (solib_read_symbols): Likewise.
2842 * stabsread.c (scan_file_globals): Likewise.
2843 * stap-probe.c (handle_stap_probe): Likewise.
2844 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2845 (find_separate_debug_file_by_debuglink): Likewise.
2846 (reread_symbols): Likewise. Use the objfile field name renamed to
2847 original_name.
2848 (allocate_symtab): Use objfile_name.
2849 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2850 (dump_objfile, dump_msymbols, dump_symtab_1)
2851 (maintenance_print_msymbols, maintenance_print_objfiles)
2852 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2853 * target.c (target_translate_tls_address, target_info): Likewise.
2854 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2855 objfile_name.
2856
2857 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2858
2859 Code cleanup.
2860 * probe.c (parse_probes): Rename variable objfile_name to
2861 objfile_namestr.
2862
2863 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2864
2865 Remove solib-sunos.c.
2866 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2867 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2868 * objfiles.c (rt_common_objfile): Remove.
2869 (free_objfile): Remove rt_common_objfile comparison.
2870 * objfiles.h (rt_common_objfile): Remove.
2871 * solib-sunos.c: Remove.
2872 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2873
2874 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2875
2876 Remove a.out NetBSD and OpenBSD hosts.
2877 * NEWS (Removed native configurations): New.
2878 * config/arm/nbsdaout.mh: Remove.
2879 * config/i386/nbsdaout.mh: Remove.
2880 * config/i386/obsdaout.mh: Remove.
2881 * config/m68k/nbsdaout.mh: Remove.
2882 * config/sparc/nbsdaout.mh: Remove.
2883 * config/vax/nbsdaout.mh: Remove.
2884 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2885 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2886 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2887 error.
2888 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2889 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2890 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2891
2892 2013-09-23 Tom Tromey <tromey@redhat.com>
2893
2894 * linespec.c (struct minsym_and_objfile): Remove.
2895 (minsym_and_objfile_d): Remove.
2896 (struct linespec, struct collect_info, linespec_parse_basic)
2897 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2898 (compare_msymbols, find_method, find_function_symbols)
2899 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2900 (add_minsym, search_minsyms_for_name): Update.
2901
2902 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2903
2904 * regcache.c: Add include of valprint.h.
2905 (dump_endian_bytes): Delete.
2906 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2907
2908 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2909
2910 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2911
2912 2013-09-19 Pedro Alves <palves@redhat.com>
2913
2914 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2915 breakpoints.
2916
2917 2013-09-19 Pedro Alves <palves@redhat.com>
2918 Thomas Schwinge <thomas@codesourcery.com>
2919 Yue Lu <hacklu.newborn@gmail.com>
2920
2921 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2922 Take a gdb_byte pointer instead of a char pointer.
2923
2924 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2925 gnu_xfer_partial helper.
2926 (gnu_xfer_partial): New function.
2927 (gnu_target): Don't install a deprecated_xfer_memory hook.
2928 Install a to_xfer_partial hook.
2929
2930 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 Constification.
2933 * main.c (captured_main): Replace catch_command_errors by
2934 catch_command_errors_const. Twice.
2935 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2936 (symbol_file_add): Make name parameter const.
2937 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2938 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2939 variable name. Change their usage accordingly.
2940 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2941 const.
2942 (symbol_file_add_main): Make args parameter const.
2943
2944 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2945 Ulrich Weigand <uweigand@de.ibm.com>
2946
2947 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2948 of c_value member.
2949 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2950
2951 2013-09-18 Pedro Alves <palves@redhat.com>
2952 Yue Lu <hacklu.newborn@gmail.com>
2953
2954 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2955 (gnu_create_inferior)
2956 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2957 (set_sig_thread_cmd): Use the lwpid field of ptids to
2958 store/extract thread ids instead of the tid field.
2959 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2960
2961 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2962
2963 * infcmd.c (default_print_one_register_info): Add detection of
2964 optimized out values.
2965 (default_print_registers_info): Switch to using
2966 get_frame_register_value.
2967
2968 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2969
2970 * infrun.c (handle_inferior_event): Check if we know the
2971 function start address before setting a resume breakpoint.
2972
2973 2013-09-18 Pedro Alves <palves@redhat.com>
2974
2975 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2976 minus_one_ptid instead of looking at the ptid's tid field and
2977 comparing that to -1.
2978
2979 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2980
2981 * main.h (get_gdb_program_name): Remove extra whitespace.
2982
2983 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2984
2985 * main.h (get_gdb_program_name): Add declaration.
2986 * main.c (get_gdb_program_name): Add definition.
2987
2988 2013-09-17 Doug Evans <dje@google.com>
2989
2990 * dwarf2read.c: Move definitions of complaint functions to after
2991 forward declarations of local functions.
2992
2993 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2994 Pedro Alves <palves@redhat.com>
2995
2996 PR gdb/11568
2997 * breakpoint.c (remove_threaded_breakpoints): New function.
2998 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2999 as thread_exit observer.
3000
3001 2013-09-17 Pedro Alves <palves@redhat.com>
3002
3003 PR gdb/15911
3004 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3005 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3006 * corelow.c (core_open):
3007 * frame.h (print_stack_frame, print_frame_info): New
3008 'set_current_sal' parameter.
3009 * infcmd.c (finish_command, kill_command): Adjust call to
3010 print_stack_frame.
3011 * inferior.c (inferior_command): Likewise.
3012 * infrun.c (normal_stop): Likewise.
3013 * linux-fork.c (linux_fork_context): Likewise.
3014 * record-full.c (record_full_goto_entry, record_full_restore):
3015 Likewise.
3016 * remote-mips.c (common_open): Likewise.
3017 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3018 Use it.
3019 (print_frame_info): New 'set_current_sal' parameter. Set the last
3020 displayed sal depending on the new paremeter instead of looking at
3021 print_what.
3022 (backtrace_command_1, select_and_print_frame, frame_command)
3023 (current_frame_command, up_command, down_command): Adjust call to
3024 print_stack_frame.
3025 * thread.c (print_thread_info, restore_selected_frame)
3026 (do_captured_thread_select): Adjust call to print_stack_frame.
3027 * tracepoint.c (tfind_1): Likewise.
3028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3029 (mi_cmd_stack_info_frame): Likewise.
3030 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3031 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3032
3033 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3034
3035 * value.c (isvoid_internal_fn): Replace "parameter" with
3036 "argument".
3037
3038 2013-09-16 Stan Shebs <stan@codesourcery.com>
3039
3040 * README: Update references to writing code for GDB.
3041 * configure.ac (build_warnings): Remove obsolete comment.
3042 * configure: Regenerate.
3043 * gdbarch.sh: Remove references to gdbint.texinfo.
3044 * gdbarch.h: Regenerate.
3045 * gdbtypes.c (objfile_type): Remove comments referencing internals
3046 manual and D10V.
3047
3048 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3049
3050 * NEWS: Mention new convenience function $_isvoid.
3051 * value.c (isvoid_internal_fn): New function.
3052 (_initialize_values): Add new convenience function $_isvoid.
3053
3054 2013-09-16 Pierre Muller <muller@sourceware.org>
3055
3056 * arm-linux-tdep.c: Add "elf/common.h" header.
3057 Remove AT_HWCAP macro definintion as it is provided in
3058 added include file.
3059 * s390-tdep.c: Remove system header <elf.h>
3060 Add "elf/common.h" header for AT_HWCAP definition.
3061 (s390_core_read_description): Use correct CORE_ADDR
3062 for hwcap local variable used as third parameter
3063 of function target_auxv_search.
3064
3065 2013-09-14 Pierre Muller <muller@sourceware.org>
3066 Tom Tromey <tromey@redhat.com>
3067 Pedro Alves <palves@redhat.com>
3068
3069 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3070 mode if operating system doesn't know O_CLOEXEC.
3071
3072 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 Code cleanup.
3075 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3076 inner block.
3077
3078 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3079
3080 * NEWS: Mention TDB support.
3081 * features/s390-tdb.xml: New file.
3082 * features/s390-te-linux64.xml: New file.
3083 * features/s390x-te-linux64.xml: New file.
3084 * features/Makefile (WHICH): Add new tdescs above.
3085 (s390-te-linux64-expedite): Set.
3086 (s390x-te-linux64-expedite): Set.
3087 * features/s390-te-linux64.c: New file (generated).
3088 * features/s390x-te-linux64.c: New file (generated).
3089 * regformats/s390-te-linux64.dat: New file (generated).
3090 * regformats/s390x-te-linux64.dat: New file (generated).
3091 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3092 (HWCAP_S390_TE): Likewise.
3093 (S390_TDB_DWORD0_REGNUM): Likewise.
3094 (S390_TDB_DWORD0_REGNUM): Likewise.
3095 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3096 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3097 (S390_TDB_ATIA_REGNUM): Likewise.
3098 (S390_TDB_R0_REGNUM): Likewise.
3099 (S390_TDB_R1_REGNUM): Likewise.
3100 (S390_TDB_R2_REGNUM): Likewise.
3101 (S390_TDB_R3_REGNUM): Likewise.
3102 (S390_TDB_R4_REGNUM): Likewise.
3103 (S390_TDB_R5_REGNUM): Likewise.
3104 (S390_TDB_R6_REGNUM): Likewise.
3105 (S390_TDB_R7_REGNUM): Likewise.
3106 (S390_TDB_R8_REGNUM): Likewise.
3107 (S390_TDB_R9_REGNUM): Likewise.
3108 (S390_TDB_R10_REGNUM): Likewise.
3109 (S390_TDB_R11_REGNUM): Likewise.
3110 (S390_TDB_R12_REGNUM): Likewise.
3111 (S390_TDB_R13_REGNUM): Likewise.
3112 (S390_TDB_R14_REGNUM): Likewise.
3113 (S390_TDB_R15_REGNUM): Likewise.
3114 (S390_NUM_REGS): Increase.
3115 (S390_IS_TDBREGSET_REGNUM): New macro.
3116 (s390_regmap_tdb): Declare.
3117 (s390_sizeof_tdbregset): Define.
3118 (tdesc_s390_te_linux64): Declare.
3119 (tdesc_s390x_te_linux64): Likewise.
3120 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3121 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3122 (s390_regmap_tdb): New regmap.
3123 (s390_supply_tdb_regset): New function.
3124 (s390_tdb_regset): New regset.
3125 (s390_linux64v2_regset_sections): Add TDB regset to list.
3126 (s390x_linux64v2_regset_sections): Likewise.
3127 (s390_regset_from_core_section): Recognize TDB core note section.
3128 (s390_core_read_description): If HWCAP indicates TE support,
3129 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3130 (s390_gdbarch_init): Handle TDB regset.
3131 (_initialize_s390_tdep): Initialize new tdescs.
3132 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3133 (have_regset_tdb): New variable.
3134 (s390_native_supply): Support register invalidation.
3135 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3136 (check_regset): Treat ENODATA as "regset exists".
3137 (s390_linux_fetch_inferior_registers): Add TDB.
3138 (s390_read_description): Check for TDB existence and select
3139 appropriate tdesc.
3140 * gdbserver/Makefile.in (clean): Add removal of new makefile
3141 targets.
3142 (s390-te-linux64.c): New makefile target.
3143 (s390x-te-linux64.c): Likewise.
3144 * gdbserver/configure.srv (srv_regobj): Append new objects
3145 s390-te-linux64.o and s390x-te-linux64.o.
3146 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3147 s390x-te-linux64.xml, and s390-tdb.xml.
3148 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3149 declaration.
3150 (tdesc_s390_te_linux64): Likewise.
3151 (init_registers_s390x_te_linux64): Likewise.
3152 (tdesc_s390x_te_linux64): Likewise.
3153 (s390_check_regset): Treat ENODATA as "regset exists".
3154 (s390_arch_setup): Add TDB regset support.
3155 (initialize_low_arch): Initialize registers for new tdescs.
3156
3157 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158
3159 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3160 (S390_IS_FPREGSET_REGNUM): New macro.
3161 * s390-tdep.c (s390_dwarf_regmap): Make const.
3162 (regnum_is_gpr_full): New function for replacing repeated code.
3163 (s390_pseudo_register_name): Use it.
3164 (s390_pseudo_register_type): Likewise.
3165 (s390_pseudo_register_read): Likewise.
3166 (s390_pseudo_register_write): Likewise.
3167 (s390_unwind_pseudo_register): Likewise.
3168 (s390_regmap_gregset): New format for regmap.
3169 (s390x_regmap_gregset): Likewise.
3170 (s390_regmap_fpregset): Likewise.
3171 (s390_regmap_upper): Likewise.
3172 (s390_regmap_last_break): Likewise.
3173 (s390_regmap_system_call): Likewise.
3174 (s390_supply_regset): Adjust to new regmap format.
3175 (s390_collect_regset): Likewise.
3176 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3177 (s390_native_collect): Likewise.
3178 (supply_gregset): Likewise.
3179 (fill_gregset): Likewise.
3180 (supply_fpregset): Likewise.
3181 (fill_fpregset): Likewise.
3182 (fetch_regset): Likewise.
3183 (store_regset): Likewise.
3184 (s390_linux_fetch_inferior_registers): Likewise.
3185 (s390_linux_fetch_inferior_registers): Likewise.
3186
3187 2013-09-12 Andrew Pinski <apinski@cavium.com>
3188
3189 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3190
3191 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3192
3193 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3194
3195 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3196
3197 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3198
3199 2013-09-06 Pedro Alves <palves@redhat.com>
3200
3201 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3202 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3203 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3204 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3205 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3206 gdb_stdlog.
3207
3208 2013-09-06 Pedro Alves <palves@redhat.com>
3209
3210 * remote-sim.c (dump_mem): Constify buf parameter.
3211 gdbsim_xfer_inferior_memory): Rename to ...
3212 (gdbsim_xfer_memory): ... this. Adjust interface as
3213 target_xfer_partial helper.
3214 (gdbsim_xfer_partial): New function.
3215 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3216 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3217
3218 2013-09-06 Pedro Alves <palves@redhat.com>
3219
3220 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3221 host_address_to_string, and send debug output to gdb_stdlog.
3222
3223 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3224
3225 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3226 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3227 gdb_target_obs for cris target.
3228 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3229 (cris_gdbarch_init): Move calls to
3230 set_gdbarch_fetch_tls_load_module_address and
3231 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3232 Add call to gdbarch_init_osabi.
3233 * cris-linux-tdep.c: New file.
3234 * cris-tdep.h: New file.
3235
3236 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3237
3238 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3239 to deprecated_init_ui_hook.
3240
3241 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3242
3243 * cli/cli-interp.c (_initialize_cli_interp): Add a
3244 command_loop_proc to interp_procs.
3245 * event-top.c (cli_command_loop): Change signature to match
3246 interp_command_loop_ftype.
3247 * event-top.h (cli_command_loop): Same.
3248 * interps.c (interp_new): Require every interpreter to have a
3249 command_loop_proc.
3250 (current_interp_command_loop): Just call the command_loop_proc on
3251 the current interpreter.
3252 * tui/tui-interp.c (_initialize_tui_interp): Add a
3253 command_loop_proc to interp_procs.
3254
3255 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3256
3257 * cris-tdep.c (cris_gdbarch_init): Add call to
3258 get_gdbarch_fetch_tls_load_module_address.
3259
3260 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3261
3262 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3263 (cris_elf_gregset_t): Rename from elf_gregset_t.
3264 (crisv32_elf_gregset_t): Adjust.
3265 (cris_supply_gregset, fetch_core_registers): Adjust.
3266
3267 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3268
3269 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3270
3271 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3272
3273 * defs.h (deprecated_command_loop_hook): Remove, including
3274 references in comments.
3275 * interps.c (current_interp_command_loop): No longer use
3276 deprecated_command_loop_hook.
3277 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3278 setup.
3279 * top.c (deprecated_command_loop_hook): Remove.
3280
3281 2013-09-05 Pedro Alves <palves@redhat.com>
3282
3283 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3284 local is now int instead of ULONGEST. Print it with %d
3285 instead of paddress.
3286
3287 2013-09-05 Tristan Gingold <gingold@adacore.com>
3288
3289 * MAINTAINERS: Remove avr maintainership.
3290
3291 2013-09-05 Pedro Alves <palves@redhat.com>
3292
3293 * findvar.c (value_of_register): Rework in terms of
3294 value_of_register_lazy.
3295
3296 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3297
3298 * symfile.c (add_symbol_file_command): Remove trailing
3299 whitespaces and blank line after comment.
3300
3301 2013-09-05 Pedro Alves <palves@redhat.com>
3302
3303 * tui/tui-regs.c (tui_register_format): Don't look at the
3304 register's name here. Return string representing register
3305 value instead of storing it in the data element.
3306 (tui_get_register): Compare register string representations
3307 instead of register value states and contents.
3308
3309 2013-09-05 Pedro Alves <palves@redhat.com>
3310
3311 PR tui/15933
3312 * tui/tui-regs.c (tui_show_registers): Show registers of the
3313 selected frame, not the current frame.
3314
3315 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3316
3317 * MAINTAINERS (Write After Approval): Add myself to the list.
3318
3319 2013-09-04 Doug Evans <dje@google.com>
3320
3321 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3322 (queue_and_load_dwo_tu): New function.
3323 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3324 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3325 Make dependent_cu optional.
3326 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3327 and an older .gdb_index is in use, queue and load all its TUs too.
3328
3329 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3332 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3333 variable search_flags.
3334 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3335 (OPF_RETURN_REALPATH): ... here.
3336 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3337 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3338 call. Twice.
3339 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3340 openp call.
3341 * solib.c (solib_find): Likewise. Four times.
3342 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3343 in the function comment and for the realpath_fptr variable.
3344 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3345 (find_and_open_source): Likewise. Twice.
3346 * symfile.c (symfile_bfd_open): Likewise, also twice.
3347
3348 2013-09-04 Doug Evans <dje@google.com>
3349
3350 * progspace.c (save_current_space_and_thread): Remove unnecessary
3351 call to save_current_inferior.
3352
3353 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3354
3355 * sh64-tdep.c (sh64_do_register): Return after printing message
3356 about unavailable register contents.
3357
3358 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3359 Pedro Alves <palves@redhat.com>
3360
3361 * symfile.c (add_symbol_file_command): Error out on unknown
3362 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3363 options and collapse into single conditional branch.
3364
3365 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3366
3367 * inf-child.c (inf_child_follow_fork): New parameter
3368 detach_fork.
3369 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3370 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3371 * inferior.h (detach_fork): Remove.
3372 * infrun.c (detach_fork): Adjust comment and make it
3373 static.
3374 (follow_fork): Pass detach_fork parameter to
3375 target_follow_fork.
3376 * linux-nat.c (linux_child_follow_fork): New parameter
3377 detach_fork.
3378 * target.c (target_follow_fork): New parameter detach_fork.
3379 Pass detach_fork as parameter and print its value.
3380 * target.h (struct target_ops) <to_follow_fork>: New int
3381 parameter.
3382 (target_follow_fork): New parameter detach_fork.
3383
3384 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3385
3386 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3387 Replace sec->bfd by sec->the_bfd_section->owner.
3388
3389 2013-09-03 Yao Qi <yao@codesourcery.com>
3390
3391 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3392 from linux_has_shared_address_space.
3393 (linux_has_shared_address_space): Call linux_is_uclinux.
3394 * linux-tdep.h (linux_is_uclinux): Declare.
3395 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3396 linux_is_uclinux.
3397
3398 2013-09-03 Yao Qi <yao@codesourcery.com>
3399
3400 * config/djgpp/fnchange.lst: Remove entry of
3401 i386-interix-nat.c and i386-interix-tdep.c.
3402 * configure.ac: Remove '*-*-interix*'.
3403 * configure: Re-generated.
3404 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3405 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3406 obsolete comments.
3407 * osabi.c (gdb_osabi_names): Remove "Interix".
3408
3409 2013-09-03 Yao Qi <yao@codesourcery.com>
3410
3411 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3412
3413 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3414
3415 * record.h (record_print_flag) <record_print_src_line,
3416 record_print_insn_range>: Rename into ...
3417 (record_print_flag) <record_print_src_line,
3418 record_print_insn_range>: ... this. Update all users.
3419
3420 2013-09-02 Pierre Muller <muller@sourceware.org>
3421
3422 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3423 error code.
3424
3425 2013-09-02 Pierre Muller <muller@sourceware.org>
3426
3427 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3428 by use of plongest function.
3429
3430 2013-09-02 Tristan Gingold <gingold@adacore.com>
3431
3432 * NEWS: Add entry mentioning support for native Windows x64
3433 SEH data.
3434
3435 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3436 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3437 (struct amd64_windows_frame_cache): New struct.
3438 (amd64_windows_w2gdb_regnum): New global.
3439 (pc_in_range, amd64_windows_frame_decode_epilogue)
3440 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3441 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3442 (amd64_windows_frame_this_id): New functions.
3443 (amd64_windows_frame_unwind): New static global.
3444 (amd64_windows_skip_prologue): New function.
3445 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3446 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3447 with amd64_windows_skip_prologue.
3448
3449 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3450
3451 GDB 7.6.1 released.
3452
3453 2013-08-30 Pedro Alves <palves@redhat.com>
3454
3455 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3456 SRC_AND_LOC.
3457
3458 2013-08-30 Pedro Alves <palves@redhat.com>
3459
3460 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3461 warning text.
3462
3463 2013-08-30 Pedro Alves <palves@redhat.com>
3464
3465 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3466 Adjust arguments to print_stack_frame.
3467
3468 2013-08-30 Pedro Alves <palves@redhat.com>
3469
3470 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3471
3472 2013-08-30 Pedro Alves <palves@redhat.com>
3473
3474 * frame.h (show_and_print_stack_frame): Delete declaration.
3475
3476 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3477
3478 PR python/15461
3479 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3480 (archpy_name): Check for valid architecture.
3481 (archpy_disassemble): Ditto.
3482
3483 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3484
3485 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3486 instead of "long long" in call to ptrace64.
3487
3488 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * mi/mi-interp.c (mi_command_loop): Change signature to match
3491 interp_command_loop_ftype.
3492 (mi1_command_loop): Remove.
3493 (mi2_command_loop): Remove.
3494 (mi3_command_loop): Remove.
3495 (mi_interpreter_resume): Remove setting of
3496 deprecated_command_loop_hook.
3497 (_initialize_mi_interp): Set mi_command_loop as the command loop
3498 callback.
3499
3500 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3501
3502 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3503 value_type.
3504
3505 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3506
3507 * value.c (allocate_value_contents): Make static.
3508 * value.h (allocate_value_contents): Remove prototype.
3509
3510 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3511
3512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3513 of assembling value via allocate_value_lazy and attribute setter.
3514 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3515 assembling value via allocate_value_lazy and attribute setter.
3516 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3517 assembling value via allocate_value_lazy and attribute setter.
3518
3519 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3520
3521 * value.c (value_from_contents_and_address): Replace allocate_value and
3522 memcpy with value_from_contents.
3523
3524 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3525
3526 * python/py-framefilter.c (py_print_frame): Remove usage of
3527 PyString_AsString. Use python_string_to_host_string instead.
3528 Refactor function to work with a string as a new allocation
3529 instead of a pointer.
3530 (py_print_frame): Ditto.
3531 * python/lib/gdb/frames.py (return_list): Cain iterators together
3532 instead of adding them as a list.
3533 (_sort_list): Call return_list, and remove duplicate code.
3534 (execute_frame_filters): Convert iterator to a list with list().
3535 * python/lib/gdb/command/frame_filters.py
3536 (SetFrameFilterPriority._set_filter_priority): Convert priority
3537 attribute to an integer.
3538 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3539 wrapper function __next__.
3540 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3541 define as "str".
3542
3543 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3544
3545 PR python/15752
3546 * python/py-framefilter.c (apply_frame_filter): Check
3547 gdb_python_initialized. Exit if the Python frame-filter code
3548 cannot be initialized.
3549
3550 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3551
3552 PR cli/15842
3553 * top.c (print_gdb_version): Remove erroneous newline after help
3554 text.
3555
3556 2013-08-29 Yao Qi <yao@codesourcery.com>
3557
3558 * varobj.c (install_dynamic_child): Remove trailing space.
3559 Add one blank line after variable declaration.
3560
3561 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 PR gdb/15415
3564 * corefile.c (get_exec_file): Use exec_filename.
3565 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3566 * exec.c (exec_close): Free EXEC_FILENAME.
3567 (exec_file_attach): New variable canonical_pathname. Use
3568 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3569 EXEC_FILENAME.
3570 * exec.h (exec_filename): New.
3571 * inferior.c (print_inferior, inferior_command): Use
3572 PSPACE_EXEC_FILENAME.
3573 * mi/mi-main.c (print_one_inferior): Likewise.
3574 * progspace.c (clone_program_space, print_program_space): Likewise.
3575 * progspace.h (struct program_space): New field pspace_exec_filename.
3576 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3577 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3578
3579 2013-08-28 Will Newton <will.newton@linaro.org>
3580
3581 * common/linux-ptrace.c: Include stdint.h unconditionally.
3582
3583 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3584
3585 Code cleanup.
3586 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3587
3588 2013-08-28 Yao Qi <yao@codesourcery.com>
3589 Pedro Alves <palves@redhat.com>
3590
3591 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3592 instead of stdio_fileopen.
3593 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3594 .Call stderr_fileopen instead of stdio_fileopen.
3595 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3596 [__MINGW32__] (stderr_file_fputs): New function.
3597 (stderr_fileopen): New function.
3598 * ui-file.h (stderr_fileopen): Declare.
3599
3600 2013-08-27 Doug Evans <dje@google.com>
3601
3602 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3603 (struct dwarf2_per_cu_data): Ditto.
3604 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3605 (process_imported_unit_die): Ditto.
3606 (follow_die_sig_1): Simplify assert.
3607
3608 2013-08-27 Pedro Alves <palves@redhat.com>
3609
3610 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3611 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3612 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3613 windows_xfer_memory directly.
3614 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3615
3616 2013-08-27 Pedro Alves <palves@redhat.com>
3617
3618 * darwin-nat.c (darwin_xfer_memory): Delete.
3619 (_initialize_darwin_inferior): Don't install a
3620 deprecated_xfer_memory method.
3621
3622 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3623 Yao Qi <yao@codesourcery.com>
3624
3625 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3626 (parse_no_frames_option): Remove.
3627 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3628 (mi_cmd_stack_list_args): Adjust.
3629 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3630 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3631 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3632 Caller update.
3633 (list_args_or_locals): New parameter 'skip_unavailable'.
3634 Handle it.
3635 * valprint.c (scalar_type_p): Rename to ...
3636 (val_print_scalar_type_p): ... this. Make extern.
3637 (val_print, value_check_printable): Adjust.
3638 * valprint.h (val_print_scalar_type_p): Declare.
3639 * value.c (value_entirely_unavailable): New function.
3640 * value.h (value_entirely_unavailable): Declare.
3641
3642 * NEWS: Mention the new option "--skip-unavailable" to MI
3643 commands '-stack-list-locals', '-stack-list-arguments' and
3644 '-stack-list-variables'.
3645
3646 2013-08-27 Yao Qi <yao@codesourcery.com>
3647
3648 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3649 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3650 options.
3651 * mi/mi-getopt.c (mi_getopt): Remove.
3652 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3653 'error_on_unknown'.
3654 (mi_getopt): Call mi_getopt_1.
3655 (mi_getopt_silent): New.
3656 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3657
3658 2013-08-26 Doug Evans <dje@google.com>
3659
3660 PR symtab/15885
3661 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3662 .gdb_index is in use.
3663 * symfile.c (reread_symbols): Reset objfile->sf.
3664
3665 * NEWS: Document "mt print objfiles" now takes optional regexp.
3666 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3667 regexp of objfiles to print.
3668 (_initialize_symmisc): Update doc string for "mt print objfiles".
3669
3670 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3671 missing debug info checks.
3672
3673 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3674 Ulrich Weigand <uweigand@de.ibm.com>
3675
3676 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3677 line tables generated by XLC compiled binaries.
3678
3679 2013-08-23 Doug Evans <dje@google.com>
3680
3681 * symmisc.c (dump_symtab): Delete prototype.
3682 (dump_msymbols, dump_objfile): Ditto.
3683 (maintenance_info_symtabs): Mark as dont_repeat.
3684 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3685
3686 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3687 debugging printf to better location.
3688
3689 2013-08-23 Pedro Alves <palves@redhat.com>
3690
3691 * target.c (target_read_live_memory): Change type of 'ret' local
3692 to LONGEST.
3693
3694 2013-08-23 Pedro Alves <palves@redhat.com>
3695
3696 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3697 (remote_read_bytes): Change return type to LONGEST, and adjust to
3698 return a target_xfer_error on error.
3699 (remote_xfer_memory): Delete.
3700 (remote_flash_write): Change type of 'ret' local to LONGEST.
3701 (remote_xfer_partial, remote_xfer_partial): Adjust.
3702 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3703
3704 2013-08-23 Pierre Muller <muller@sourceware.org>
3705
3706 ARI fix: Push # directives to start of line.
3707 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3708
3709 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3710
3711 PR gdb/15501
3712 * breakpoint.c (enable_command, disable_command): Iterate over
3713 all specified breakpoint locations.
3714
3715 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3716
3717 * common/linux-ptrace.c (linux_fork_to_function): Push #
3718 directives to the start of the line.
3719 (linux_check_ptrace_features): Fix warning message to use
3720 the "_" markup.
3721
3722 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3723
3724 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3725 nat/linux-waitpid.h.
3726 (linux-waitpid.o): New object file rule.
3727 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3728 (current_ptrace_options): Moved from linux-nat.c.
3729 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3730 parameters.
3731 (linux_fork_to_function): New function.
3732 (linux_grandchild_function): Likewise.
3733 (linux_child_function): Likewise.
3734 (linux_check_ptrace_features): New function, heavily
3735 based on linux-nat.c:linux_test_for_tracefork.
3736 (linux_enable_event_reporting): New function.
3737 (ptrace_supports_feature): Likewise.
3738 (linux_supports_tracefork): Likewise.
3739 (linux_supports_traceclone): Likewise.
3740 (linux_supports_tracevforkdone): Likewise.
3741 (linux_supports_tracesysgood): Likewise.
3742 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3743 gdbserver/linux-low.c.
3744 (linux_enable_event_reporting): New declaration.
3745 (linux_supports_tracefork): Likewise.
3746 (linux_supports_traceclone): Likewise.
3747 (linux_supports_tracevforkdone): Likewise.
3748 (linux_supports_tracesysgood): Likewise.
3749 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3750 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3751 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3752 * config/arm/linux.mh (NATDEPFILES): Likewise.
3753 * config/i386/linux.mh (NATDEPFILES): Likewise.
3754 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3755 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3756 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3757 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3758 * config/mips/linux.mh (NATDEPFILES): Likewise.
3759 * config/pa/linux.mh (NATDEPFILES): Likewise..
3760 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3761 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3762 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3763 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3764 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3765 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3766 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3767 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3768 ptrace's 4th argument's types.
3769 Check the type of PTRACE_TYPE_ARG4.
3770 * configure: Regenerate.
3771 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3772 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3773 (linux_supports_tracefork_flag): Remove.
3774 (linux_supports_tracesysgood_flag): Likewise.
3775 (linux_supports_tracevforkdone_flag): Likewise.
3776 (current_ptrace_options): Moved to
3777 common/linux-ptrace.c.
3778 (linux_tracefork_child): Remove.
3779 (my_waitpid): Remove.
3780 (linux_test_for_tracefork): Renamed to
3781 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3782 (linux_test_for_tracesysgood): Remove.
3783 (linux_supports_tracesysgood): Remove.
3784 (linux_supports_tracefork): Remove.
3785 (linux_supports_tracevforkdone): Remove.
3786 (linux_enable_tracesysgood): Remove.
3787 (linux_enable_event_reporting): Remove.
3788 (linux_init_ptrace): New function.
3789 (linux_child_post_attach): Call linux_init_ptrace.
3790 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3791 (linux_child_follow_fork): Call linux_supports_tracefork
3792 and linux_supports_tracevforkdone.
3793 (linux_child_insert_fork_catchpoint): Call
3794 linux_supports_tracefork.
3795 (linux_child_insert_vfork_catchpoint): Likewise.
3796 (linux_child_set_syscall_catchpoint): Call
3797 linux_supports_tracesysgood.
3798 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3799 * nat/linux-nat.h: New file.
3800 * nat/linux-waitpid.c: New file.
3801 * nat/linux-waitpid.h: New file.
3802
3803 2013-08-22 Samuel Bronson <naesten@gmail.com>
3804
3805 ARM Linux support for `catch syscall'.
3806 * syscalls/arm-linux.py: New file.
3807 * syscalls/arm-linux.xml: Likewise.
3808 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3809 (arm_linux_init_abi): Register the new function and syscall xml file.
3810 * data-directory/Makefile.in: Install the new syscall xml file.
3811 * NEWS: Brag about this.
3812
3813 2013-08-22 Pedro Alves <palves@redhat.com>
3814
3815 PR gdb/15871
3816 * corefile.c (target_xfer_memory_error): New function.
3817 (memory_error): Defer EIO to target_memory_error.
3818 (read_memory): Use target_xfer_partial, and handle finer-grained
3819 target xfer errors.
3820 * target.c (target_xfer_error_to_string): New function.
3821 (memory_xfer_partial_1): If memory is known to be
3822 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3823 (target_xfer_partial): Make extern.
3824 * target.h (enum target_xfer_error): New enum.
3825 (target_xfer_error_to_string): Declare function.
3826 (target_xfer_partial): Declare function.
3827 (struct target_ops) <xfer_partial>: Adjust describing comment.
3828
3829 2013-08-22 Alan Modra <amodra@gmail.com>
3830
3831 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3832 * configure.tgt: Likewise as targets.
3833
3834 2013-08-20 Doug Evans <dje@google.com>
3835
3836 * buildsym.c (subfile_stack): Move here from buildsym.h.
3837 (pending_macros): Ditto.
3838 (get_macro_table): New function.
3839 (buildsym_init): Initialize subfile_stack.
3840 * coffread.c (type_vector,type_vector_length): Moved here from
3841 buildsym.h.
3842 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3843 (coff_symtab_read): Use it.
3844 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3845 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3846 with call to get_macro_table.
3847 * stabsread.c (type_vector,type_vector_length): Moved here from
3848 buildsym.h.
3849 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3850 * buildsym.h (get_macro_table): Declare.
3851
3852 2013-08-20 Tom Tromey <tromey@redhat.com>
3853
3854 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3855 Update.
3856 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3857
3858 2013-08-20 Doug Evans <dje@google.com>
3859
3860 * blockframe.c: Remove #include "psymtab.h".
3861 * cp-support.c: Ditto.
3862 * source.c: Ditto.
3863 * stack.c: Ditto.
3864
3865 2013-08-20 Tom Tromey <tromey@redhat.com>
3866
3867 PR python/15816:
3868 * exceptions.h (return_mask): Now an enum.
3869 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3870 enum constants.
3871
3872 2013-08-20 Tom Tromey <tromey@redhat.com>
3873
3874 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3875 get_objfile_arch.
3876 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3877 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3878 * jit.c (jit_object_close_impl): Update.
3879 * jv-lang.c (get_dynamics_objfile): Update.
3880 * linespec.c (add_minsym): Use get_dynamics_objfile.
3881 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3882 (allocate_objfile): Don't initialize 'gdbarch' field.
3883 (get_objfile_arch): Update.
3884 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3885 moved from...
3886 (struct objfile) <gdbarch>: ... here. Remove.
3887 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3888 get_objfile_arch.
3889 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3890
3891 2013-08-20 Alan Modra <amodra@gmail.com>
3892
3893 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3894 for IBM long double nan and inf.
3895 (floatformat_is_negative, floatformat_classify,
3896 floatformat_mantissa): Similarly.
3897 (floatformat_ieee_single, floatformat_ieee_double,
3898 floatformat_ieee_quad, floatformat_arm_ext,
3899 floatformat_ia64_spill): Delete unused vars.
3900 (_initialize_doublest): Delete unused function.
3901 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3902 little-endian variants of floatformat_ibm_long_double.
3903
3904 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3905
3906 * Makefile.in (SFILES): Remove common/target-common.c and
3907 add target/waitstatus.c.
3908 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3909 target/resume.h, target/wait.h and target/waitstatus.h.
3910 (COMMON_OBS): Remove target-common.o and add
3911 waitstatus.o.
3912 (target-common.o): Remove.
3913 (waitstatus.o): New target object file.
3914 * common/target-common.c: Move contents to
3915 target/waitstatus.c and remove.
3916 * common/target-common.h: Move contents to other files and
3917 remove.
3918 (enum resume_kind: Move to target/resume.h.
3919 (TARGET_WNOHANG): Move to target/wait.h.
3920 (enum target_waitkind): Move to target/waitstatus.h.
3921 (struct target_waitstatus): Likewise.
3922 * target.h: Do not include target-common.h and
3923 include target/resume.h, target/wait.h and
3924 target/waitstatus.h.
3925 * target/resume.h: New file.
3926 * target/wait.h: New file.
3927 * target/waitstatus.h: New file.
3928 * target/waitstatus.c: New file.
3929
3930 2013-08-19 Pedro Alves <palves@redhat.com>
3931
3932 * linux-nat.c (linux_test_for_tracefork)
3933 (linux_test_for_tracesysgood, linux_child_follow_fork)
3934 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3935 (linux_nat_wait_1): Extend comment.
3936 (linux_async_pipe): Add comment.
3937
3938 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3939
3940 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3941 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3942 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3943 Update to account for fact that PC is now a pseudo-register.
3944 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3945 cases for RL78_PC_REGNUM.
3946
3947 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3948
3949 PR cli/15841
3950 * top.c (quit_force): Skip writing history file
3951 if input is not from terminal.
3952
3953 2013-08-14 Tom Tromey <tromey@redhat.com>
3954
3955 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3956 resultthreadlist>: New fields.
3957 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3958 (remote_get_threadlist, remote_threadlist_iterator): Use
3959 new fields. Remove static variables.
3960
3961 2013-08-14 Tom Tromey <tromey@redhat.com>
3962
3963 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3964 remote_watch_data_address>: New fields.
3965 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3966 (process_stop_reply, remote_wait_as)
3967 (remote_check_watch_resources, remote_stopped_data_address): Update.
3968
3969 2013-08-14 Tom Tromey <tromey@redhat.com>
3970
3971 * remote.c (struct remote_state) <async_client_callback,
3972 async_client_context>: New fields.
3973 (async_client_callback, async_client_context): Remove.
3974 (remote_async_serial_handler, remote_async): Update.
3975
3976 2013-08-14 Tom Tromey <tromey@redhat.com>
3977
3978 * remote.c (sizeof_pkt): Remove.
3979 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3980
3981 2013-08-14 Tom Tromey <tromey@redhat.com>
3982
3983 * remote.c (struct remote_state) <use_threadinfo_query,
3984 use_threadextra_query>: New fields.
3985 (remote_threads_info, remote_threads_extra_info)
3986 (remote_open_1): Update.
3987
3988 2013-08-14 Tom Tromey <tromey@redhat.com>
3989
3990 * remote.c (struct remote_state) <finished_object,
3991 finished_annex, finished_offset>: New fields.
3992 (remote_read_qxfer): Use remote_state fields; remove static
3993 variables.
3994
3995 2013-08-14 Tom Tromey <tromey@redhat.com>
3996
3997 * remote.c (struct remote_state) <last_sent_step>:
3998 New field.
3999 (last_sent_step): Remove.
4000 (remote_resume, remote_wait_as): Update.
4001
4002 2013-08-14 Tom Tromey <tromey@redhat.com>
4003
4004 * remote.c (struct remote_state) <last_sent_signal>:
4005 New field.
4006 (last_sent_signal): Remove.
4007 (new_remote_state, remote_resume, remote_wait_as): Update.
4008
4009 2013-08-14 Tom Tromey <tromey@redhat.com>
4010
4011 * remote.c (struct remote_state) <last_program_signals_packet>:
4012 New field.
4013 (last_program_signals_packet): Remove.
4014 (remote_program_signals, remote_open_1): Update.
4015
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4017
4018 * remote.c (struct remote_state) <last_pass_packet>:
4019 New field.
4020 (last_pass_packet): Remove.
4021 (remote_pass_signals, remote_open_1): Update.
4022
4023 2013-08-14 Tom Tromey <tromey@redhat.com>
4024
4025 * remote.c (struct remote_state) <remote_traceframe_number>:
4026 New field.
4027 (remote_traceframe_number): Remove.
4028 (new_remote_state, remote_open_1, set_remote_traceframe)
4029 (remote_trace_find): Update.
4030
4031 2013-08-14 Tom Tromey <tromey@redhat.com>
4032
4033 * remote.c (struct remote_state) <general_thread, continue_thread>:
4034 New fields.
4035 (general_thread, continue_thread): Remove.
4036 (record_currthread, set_thread, set_general_process)
4037 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4038 (extended_remote_mourn_1): Update.
4039
4040 2013-08-14 Tom Tromey <tromey@redhat.com>
4041
4042 * remote.c (struct remote_state) <remote_desc>: New field.
4043 (remote_desc): Remove.
4044 (remote_threads_info, remote_threads_extra_info, remote_close)
4045 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4046 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4047 (remote_hostio_send_command, remote_file_put, remote_file_get)
4048 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4049 (remote_async, remote_new_objfile, set_range_stepping): Update.
4050
4051 2013-08-14 Tom Tromey <tromey@redhat.com>
4052
4053 * remote.c (remote_state): Now a pointer.
4054 (get_remote_state_raw): Update.
4055 (new_remote_state): New function.
4056 (_initialize_remote): Use new_remote_state.
4057
4058 2013-08-14 Tom Tromey <tromey@redhat.com>
4059
4060 * remote.c (remote_protocol_features): Now const.
4061
4062 2013-08-14 Tom Tromey <tromey@redhat.com>
4063
4064 * remote.c (crc32_table, crc32): Remove.
4065 (remote_verify_memory): Use xcrc32.
4066
4067 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4068
4069 * value.h (create_internalvar_type_lazy): Adjust prototype
4070 declaration.
4071
4072 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4073
4074 * common/format.c (parse_format_string): Don't allow '#' flag for
4075 pointer arguments in format string.
4076
4077 2013-08-13 Pierre Muller <muller@sourceware.org>
4078
4079 * utils.c (init_page_info): Only call tgetnum function
4080 if rl_get_screen_size did not return useful values.
4081
4082 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4083
4084 PR breakpoints/15117
4085 * linespec.c (linespec_parse_basic): Check for convenience
4086 variable or history value while parsing.
4087
4088 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4089
4090 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4091 AVR.
4092 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4093 different signals between the generic Linux kernel implementation
4094 and AVR's.
4095 (avr_linux_gdb_signal_from_target): Delete.
4096 (avr_linux_gdb_signal_to_target): Delete.
4097 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4098
4099 2013-08-09 Doug Evans <dje@google.com>
4100
4101 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4102 entries.
4103
4104 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4105
4106 * linux-tdep.c: Define enum with generic signal numbers.
4107 (linux_gdb_signal_from_target): New function.
4108 (linux_gdb_signal_to_target): Likewise.
4109 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4110 methods to the functions above.
4111 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4112 (linux_gdb_signal_to_target): Likewise.
4113 * alpha-linux-tdep.c: Define new enum with signals different
4114 from generic Linux kernel.
4115 (alpha_linux_gdb_signal_from_target): New function.
4116 (alpha_linux_gdb_signal_to_target): Likewise.
4117 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4118 with the functions mentioned above.
4119 * avr-tdep.c: Define enum with differences between Linux kernel
4120 and AVR signals.
4121 (avr_linux_gdb_signal_from_target): New function.
4122 (avr_linux_gdb_signal_to_target): Likewise.
4123 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4124 the functions mentioned above.
4125 * sparc-linux-tdep.c: Define enum with differences between SPARC
4126 and generic Linux kernel signal numbers.
4127 (sparc32_linux_gdb_signal_from_target): New function.
4128 (sparc32_linux_gdb_signal_to_target): Likewise.
4129 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4130 to the functions defined above.
4131 * xtensa-linux-tdep.c: Define enum with differences between
4132 Xtensa and Linux kernel generic signals.
4133 (xtensa_linux_gdb_signal_from_target): New function.
4134 (xtensa_linux_gdb_signal_to_target): Likewise.
4135 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4136 to the functions defined above.
4137 * mips-linux-tdep.c: Define enum with differences between
4138 signals in MIPS and Linux kernel generic ones.
4139 (mips_gdb_signal_to_target): New function.
4140 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4141 only different signals from the Linux kernel generic.
4142 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4143 the functions defined above.
4144 * mips-linux-tdep.h (enum mips_signals): Remove.
4145
4146 2013-08-09 Pedro Alves <palves@redhat.com>
4147
4148 * avr-tdep.c (XMALLOC): Delete macro.
4149 * cli/cli-dump.c (XMALLOC): Delete macro.
4150
4151 2013-08-09 Pedro Alves <palves@redhat.com>
4152
4153 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4154 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4155 (fopen_with_cleanup, add_dump_command): Make static.
4156 * cli/cli-dump.h: Delete file.
4157 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4158 cli/cli-dump.h.
4159
4160 2013-08-09 Pedro Alves <palves@redhat.com>
4161
4162 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4163 error message.
4164
4165 2013-08-09 Pedro Alves <palves@redhat.com>
4166
4167 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4168 error message.
4169
4170 2013-08-09 Pedro Alves <palves@redhat.com>
4171
4172 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4173 (gcore_command): Use tilde_expand here, and when showing the
4174 filename to the user, show the expanded version.
4175
4176 2013-08-09 Yao Qi <yao@codesourcery.com>
4177
4178 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4179 'entryval' is set.
4180
4181 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4182
4183 * gcore.c (create_gcore_bfd): Use tilde_expand.
4184
4185 2013-08-08 Yao Qi <yao@codesourcery.com>
4186
4187 * frame.h (read_frame_local): Declare.
4188 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4189 read_frame_local.
4190 * stack.c (read_frame_local): New.
4191
4192 2013-08-08 Yao Qi <yao@codesourcery.com>
4193
4194 * mi/mi-cmd-stack.c: Update comments to function
4195 list_args_or_locals.
4196
4197 2013-08-07 Tom Tromey <tromey@redhat.com>
4198
4199 PR symtab/15028:
4200 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4201 (process_psymtab_comp_unit_reader): Use it.
4202 (process_psymtab_comp_unit): Update. Add "pretend_language"
4203 argument.
4204 (dwarf2_build_psymtabs_hard): Update.
4205 (scan_partial_symbols): Pass CU's language to
4206 process_psymtab_comp_unit.
4207
4208 2013-08-07 Tom Tromey <tromey@redhat.com>
4209
4210 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4211 (dwarf2_gdb_index_functions): Update.
4212 * psymtab.c (find_symbol_file_from_partial): Remove.
4213 (psym_functions): Update.
4214 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4215 Remove.
4216
4217 2013-08-07 Tom Tromey <tromey@redhat.com>
4218
4219 * symfile.c (set_initial_language): Look up "main" symbol
4220 and use its language.
4221 * symtab.c (find_main_filename): Remove.
4222 * symtab.h (find_main_filename): Remove.
4223
4224 2013-08-07 Tom Tromey <tromey@redhat.com>
4225
4226 * dwarf2read.c (recursively_compute_inclusions): Add
4227 "immediate_parent" argument. Set symtab's "user" field
4228 if not set.
4229 (compute_symtab_includes): Update.
4230
4231 2013-08-07 Tom Tromey <tromey@redhat.com>
4232
4233 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4234 when adding label symbols.
4235
4236 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4237 Ulrich Weigand <uweigand@de.ibm.com>
4238
4239 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4240 * configure.host (powerpc64-*-aix*): Likewise.
4241
4242 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4243 Ulrich Weigand <uweigand@de.ibm.com>
4244
4245 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4246 is defined.
4247 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4248 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4249 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4250 * configure.ac: Check for ptrace64.
4251 * configure, config.in: Regenerate.
4252
4253 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4254 Ulrich Weigand <uweigand@de.ibm.com>
4255
4256 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4257 Call ptrace64 instead of ptrace if defined.
4258 Add macro addr_ptr to take care of ptrace address argument.
4259 (pdc_read_regs): Likewise.
4260 (pdc_write_regs): Likewise.
4261 (aix_thread_resume): Likewise.
4262 (fetch_regs_kernel_thread): Likewise.
4263 (store_regs_kernel_thread): Likewise.
4264
4265 2013-08-07 Anton Blanchard <anton@samba.org>
4266
4267 * MAINTAINERS: Add myself to Write After Approval.
4268
4269 2013-08-05 Tom Tromey <tromey@redhat.com>
4270
4271 * aix-thread.c (_initialize_aix_thread): Use
4272 complete_target_initialization.
4273 * bsd-uthread.c (_initialize_bsd_uthread): Use
4274 complete_target_initialization.
4275 * dec-thread.c (_initialize_dec_thread): Use
4276 complete_target_initialization.
4277 * ravenscar-thread.c (_initialize_ravenscar): Use
4278 complete_target_initialization.
4279 * sol-thread.c (_initialize_sol_thread): Use
4280 complete_target_initialization.
4281 * spu-multiarch.c (_initialize_spu_multiarch): Use
4282 complete_target_initialization.
4283
4284 2013-08-05 Tom Tromey <tromey@redhat.com>
4285
4286 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4287 * ada-lang.c (ada_lookup_simple_minsym): Return
4288 bound_minimal_symbol.
4289 * ada-lang.h (ada_lookup_simple_minsym): Update.
4290 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4291 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4292 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4293 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4294 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4295 * minsyms.c (msymbol_objfile): Remove.
4296 (lookup_minimal_symbol_internal): New function, from
4297 lookup_minimal_symbol.
4298 (lookup_minimal_symbol): Rewrite using
4299 lookup_minimal_symbol_internal.
4300 (lookup_bound_minimal_symbol): New function.
4301 * minsyms.h (msymbol_objfile): Remove.
4302 (lookup_bound_minimal_symbol): Declare.
4303 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4304 * parse.c (write_exp_msymbol): Change parameter to a
4305 bound_minimal_symbol.
4306 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4307 * parser-defs.h (write_exp_msymbol): Update.
4308 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4309 * symfile.c (simple_read_overlay_table): Use
4310 lookup_bound_minimal_symbol.
4311 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4312 (search_symbols): Likewise.
4313 (print_msymbol_info): Take a bound_minimal_symbol argument.
4314 (symtab_symbol_info, rbreak_command): Update.
4315 * symtab.h (struct symbol_search) <msymbol>: Change type
4316 to bound_minimal_symbol.
4317 * valops.c (find_function_in_inferior): Use
4318 lookup_bound_minimal_symbol.
4319 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4320
4321 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 Code cleanup.
4324 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4325 to ...
4326 (async_cleanup_sigint_signal_handler): ... this.
4327 (initialize_sigint_signal_handler): Remove declaration.
4328 (handle_remote_sigint): Rename the declaration to ...
4329 (async_handle_remote_sigint): ... this.
4330 (handle_remote_sigint_twice): Rename the declaration to ...
4331 (async_handle_remote_sigint_twice): ... this.
4332 (async_remote_interrupt, async_remote_interrupt_twice)
4333 (remote_interrupt): Remove the declarations.
4334 (remote_interrupt_twice): Rename the declaration ...
4335 (sync_remote_interrupt_twice): ... this.
4336 (sigint_remote_twice_token): Rename the variable to ...
4337 (async_sigint_remote_twice_token): ... this.
4338 (sigint_remote_token): Rename the variable to ...
4339 (async_sigint_remote_token): ... this.
4340 (initialize_sigint_signal_handler): Rename the function to ...
4341 (async_initialize_sigint_signal_handler): ... this. Update the name
4342 inside.
4343 (handle_remote_sigint): Rename the function to ...
4344 (async_handle_remote_sigint): ... this. Update the names inside.
4345 (handle_remote_sigint_twice): Rename the function to ...
4346 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4347 (cleanup_sigint_signal_handler): Rename the function to ...
4348 (async_cleanup_sigint_signal_handler): ... this.
4349 (remote_interrupt): Rename the function to ...
4350 (sync_remote_interrupt): this. Update the names inside.
4351 (remote_interrupt_twice): Rename the function to ...
4352 (sync_remote_interrupt_twice): this. Update the names inside.
4353 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4354 (_initialize_remote): Update the names inside.
4355
4356 2013-08-02 Tom Tromey <tromey@redhat.com>
4357
4358 PR symtab/15719:
4359 * breakpoint.c (update_watchpoint, watchpoint_check)
4360 (watch_command_1): Update.
4361 * eval.c (fetch_subexp_value): Add "preserve_errors"
4362 parameter.
4363 * ppc-linux-nat.c (check_condition): Update.
4364 * value.h (fetch_subexp_value): Update.
4365
4366 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4367
4368 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4369 add_file_handler.
4370
4371 2013-08-01 Doug Evans <dje@google.com>
4372
4373 PR symtab/15691
4374 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4375 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4376 Add assert of sig_entry->dwo_unit == NULL.
4377 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4378 had already been read.
4379 (read_signatured_type): Set per_cu.tu_read.
4380
4381 PR symtab/15695
4382 * valops.c (value_struct_elt): Add missing call to check_typedef.
4383 (value_find_oload_method_list): Ditto.
4384
4385 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4386 effectively, struct symbol_search **.
4387 (make_cleanup_free_search_symbols): Change arg to struct
4388 symbol_search **. All callers updated.
4389 (compare_search_syms): Compare symtab file name and block as well.
4390 (search_symbols_equal): New function.
4391 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4392 New args new_head, new_tail. Result is now void. Remove dups after
4393 sorting the symbols.
4394 (search_symbols): Sort all found symbols once, after all have been
4395 found, and remove duplicates. Simplify cleanup tracking of result.
4396 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4397
4398 Further workarounds for binutils/15021.
4399 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4400 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4401 Watch for duplicate symtabs coming from type units.
4402 (compute_symtab_includes): Update call to
4403 recursively_compute_inclusions. Build vector of included symtabs
4404 instead of per_cus.
4405 * symtab.h (symtab_ptr): New typedef.
4406 (DEF_VEC_P (symtab_ptr)): New VEC type.
4407 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4408 instead.
4409
4410 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4411
4412 * cli/cli-script.c (script_from_file): Remove use of
4413 error_pre_print.
4414 * main.c (captured_main): Remove use of error_pre_print and
4415 quit_pre_print.
4416 * utils.c (error_pre_print, quit_pre_print): Remove.
4417 * utils.h (error_pre_print, quit_pre_print): Likewise.
4418
4419 2013-08-01 Yao Qi <yao@codesourcery.com>
4420
4421 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4422 with mi_getopt.
4423 (mi_cmd_stack_list_variables): Likewise.
4424
4425 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4426
4427 * exceptions.c (deprecated_throw_reason): Remove.
4428 * exceptions.h (deprecated_throw_reason): Remove.
4429
4430 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4431
4432 * remote-mips.c (mips_error): Replace use of
4433 deprecated_throw_reason with throw_verror. Use the error message
4434 passed to mips_error as the error message for throw_verror.
4435
4436 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4437
4438 * monitor.c (monitor_interrupt_query): Replace use of
4439 deprecated_throw_reason with quit.
4440 * nto-procfs.c (interrupt_query): Likewise.
4441 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4442 * remote-mips.c (mips_kill): Likewise.
4443 * remote.c (interrupt_query): Likewise.
4444
4445 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4446
4447 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4448 with call to fatal.
4449
4450 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4451 Yao Qi <yao@codesourcery.com>
4452
4453 * tracepoint.c (trace_dump_command): Select the current frame.
4454
4455 2013-07-30 Doug Evans <dje@google.com>
4456
4457 * dwarf2read.c (process_queue): Add type signature to debug output.
4458
4459 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4460
4461 * value.c (value_fetch_lazy): Mark optimized out values as such
4462 rather than raising an error.
4463
4464 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4465
4466 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4467 before checking which bits of the parent, not the child, value are
4468 valid.
4469
4470 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4471
4472 PR gdb/15715
4473 * top.c: Include "filenames.h".
4474 (set_history_filename): New function.
4475 (init_main): Install it as set hook of the "set history filename"
4476 command.
4477
4478 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4479
4480 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4481 attribute parameter.
4482 (dwarf2_const_value_data): Constify struct attribute parameter.
4483 (dwarf2_const_value): Constify struct attribute parameter.
4484 (dwarf2_const_value_attr): Constify struct attribute parameter.
4485 (lookup_die_type): Constify struct attribute parameter.
4486 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4487 (follow_die_ref_or_sig): Constify struct attribute parameter.
4488 (follow_die_ref): Constify struct attribute parameter.
4489 (follow_die_sig): Constify struct attribute parameter.
4490 (get_DW_AT_signature_type): Constify struct attribute parameter.
4491 (get_type_unit_group): Constify struct attribute parameter.
4492 (fill_in_loclist_baton): Constify struct attribute parameter.
4493 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4494 (type_unit_group): Constify struct attribute parameter.
4495
4496 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4497
4498 * dwarf2read.c (attr_form_is_block): Make argument const.
4499 (attr_form_is_section_offset): Make argument const.
4500 (attr_form_is_constant): Make argument const.
4501 (attr_form_is_ref): Make argument const.
4502
4503 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4504
4505 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4506 All uses updated.
4507 (attr_form_is_ref): Moved below attr_form_is_constant.
4508
4509 2013-07-29 Doug Evans <dje@google.com>
4510
4511 * main.c (captured_command_loop): Tweak comment.
4512
4513 * target.c (target_async_permitted_1): Fix comment.
4514
4515 * symtab.c (iterate_over_some_symtabs): Add comment.
4516
4517 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4518
4519 2013-07-27 Yao Qi <yao@codesourcery.com>
4520
4521 * NEWS: Mention that GDBserver now supports hardware
4522 watchpoints on the MIPS GNU/Linux target.
4523
4524 2013-07-27 Yao Qi <yao@codesourcery.com>
4525
4526 * Makefile.in (HFILES_NO_SRCDIR): Add
4527 common/mips-linux-watch.h.
4528 (mips-linux-watch.o): New rule.
4529 * common/mips-linux-watch.c: New.
4530 * common/mips-linux-watch.h: New.
4531 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4532 * mips-linux-nat.c: Include mips-linux-watch.h.
4533 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4534 to common/mips-linux-watch.h.
4535 (MAX_DEBUG_REGISTER): Likewise.
4536 (enum pt_watch_style): Likewise.
4537 (struct mips32_watch_regs): Likewise.
4538 (struct mips64_watch_regs): Likewise.
4539 (struct pt_watch_regs): Likewise.
4540 (struct mips_watchpoint): Likewise.
4541 (mips_linux_watch_get_irw_mask): Move to
4542 common/mips-linux-watch.c.
4543 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4544 (mips_linux_watch_get_watchlo): Likewise.
4545 (mips_linux_watch_set_watchlo): Likewise.
4546 (mips_linux_watch_get_watchhi): Likewise.
4547 (mips_linux_watch_set_watchhi): Likewise.
4548 (mips_linux_read_watch_registers): Likewise.
4549 (mips_linux_watch_type_to_irw): Likewise.
4550 (mips_linux_stopped_data_address, fill_mask): Likewise.
4551 (mips_linux_watch_try_one_watch): Likewise.
4552 (mips_linux_watch_populate_regs): Likewise.
4553
4554 2013-07-27 Yao Qi <yao@codesourcery.com>
4555
4556 * mips-linux-nat.c (get_irw_mask): Rename to ...
4557 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4558 'set' to 'n'. Update function comment. All callers changed.
4559 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4560 function comment. All callers changed.
4561 (get_num_valid): Rename to ...
4562 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4563 'set' to 'n'. Update function comment. All callers changed.
4564 (get_watchlo): Rename to ...
4565 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4566 'set' to 'n'. Update function comment. All callers changed.
4567 (set_watchlo): Rename to ...
4568 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4569 'set' to 'n'. Update function comment. All callers changed.
4570 (get_watchhi): Rename to ...
4571 (mips_linux_watch_get_watchhi): ... this. Update function
4572 comment. All callers changed.
4573 (set_watchhi): Rename to ...
4574 (mips_linux_watch_set_watchhi): ... this. Update function
4575 comment. All callers changed.
4576 (mips_linux_read_watch_registers): Update function comment.
4577 Add new parameters 'lwpid', 'watch_readback', and
4578 'watch_readback_valid'. Update.
4579 (type_to_irw): Rename to ...
4580 (mips_linux_watch_type_to_irw): ... this. Update function
4581 comment. All callers changed.
4582 (fill_mask): Update function comment.
4583 (try_one_watch): Rename to ...
4584 (mips_linux_watch_try_one_watch): ... this. Change the type
4585 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4586 (populate_regs_from_watches): Rename to ...
4587 (mips_linux_watch_populate_regs): ... this. Add parameter
4588 'current_watches'. All callers changed.
4589
4590 2013-07-27 Yao Qi <yao@codesourcery.com>
4591
4592 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4593 the code.
4594 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4595 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4596 (struct pt_watch_regs): Likewise.
4597 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4598 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4599 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4600 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4601 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4602
4603 2013-07-27 Yao Qi <yao@codesourcery.com>
4604
4605 * breakpoint.h: Include break-common.h.
4606 (enum target_hw_bp_type): Move to ...
4607 * common/break-common.h: ... here. New.
4608
4609 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4610
4611 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4612 process group regardless of having tty on stdin.
4613
4614 2013-07-25 Doug Evans <dje@google.com>
4615
4616 * linux-fork.h (detach_fork): Delete.
4617
4618 2013-07-25 Tom Tromey <tromey@redhat.com>
4619
4620 PR remote/15256, PR remote/15266:
4621 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4622 * monitor.c (monitor_detach): Use unpush_target.
4623 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4624 * remote-mips.c (mips_detach): Use unpush_target. Don't
4625 call mips_close.
4626 * remote-sim.c (gdbsim_detach): Use unpush_target.
4627 * target.c (pop_target): Remove.
4628 (pop_all_targets_above): Don't call target_close.
4629 (target_close): Assert that the target is unpushed.
4630 * target.h (pop_target): Don't declare.
4631 * tracepoint.c (tfile_open): Use unpush_target.
4632
4633 2013-07-25 Tom Tromey <tromey@redhat.com>
4634
4635 * linux-thread-db.c (init_thread_db_ops): Call
4636 complete_target_initialization.
4637 (_initialize_thread_db): Don't call add_target.
4638 * target.c (complete_target_initialization): New function.
4639 (add_target_with_completer): Call it.
4640 * target.h (complete_target_initialization): Declare.
4641
4642 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4643
4644 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4645 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4646 (HPPANBSD_SIZEOF_GREGS): New define.
4647 (hppaobsd_supply_gregset): Handle additional registers.
4648 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4649 we provide more registers now.
4650 (hppabsd_supply_gregset): Supply additional registers.
4651 (hppabsd_collect_gregset): Collect additional registers.
4652
4653 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4654
4655 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4656 (hppabsd_dwarf2_frame_init_reg): New function.
4657 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4658
4659 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4660
4661 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4662 'z' format code. Remove error for optimized out values, standard
4663 code will handle these fine.
4664
4665 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4666
4667 * NEWS: Mention new 'z' formatter.
4668 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4669 (_initialize_printcmd): Mention 'z' formatter in help text of the
4670 'x' command.
4671
4672 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4673
4674 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4675 formatting.
4676
4677 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4678
4679 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4680 interface can evaluate arguments. Fallback to the old mode if it
4681 cannot.
4682 (create_exception_master_breakpoint): Likewise.
4683 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4684 (struct sym_probe_fns elf_probe_fns): Export function above to the
4685 probe interface.
4686 * probe.c (can_evaluate_probe_arguments): New function.
4687 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4688 function pointer.
4689 (can_evaluate_probe_arguments): New function prototype.
4690 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4691 probe interface can evaluate arguments. Fallback to the old mode
4692 if it cannot.
4693 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4694 interface can evaluate arguments. Warning the user if it cannot.
4695 (stap_can_evaluate_probe_arguments): New function.
4696 (struct probe_ops stap_probe_ops): Export function above to the
4697 probe interface.
4698 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4699 New function pointer.
4700
4701 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4702
4703 * Makefile.in (SFILES): Add common/target-common.c.
4704 Add common/target-common.h to headers.
4705 (COMMON_OBS): Add target-common.o.
4706 (target-common.o): New target.
4707 * linux-nat.h (resume_kind): Move to common/target-common.h.
4708 * target.c (target_waitstatus_to_string): Move to
4709 common/target-common.c.
4710 * target.h: Include target-common.h.
4711 (target_waitkind): Move to common/target-common.h.
4712 (target_waitstatus): Likewise.
4713 (TARGET_WNOHANG): Likewise.
4714 * common/target-common.c: New file.
4715 * common/target-common.h: New file.
4716
4717 2013-07-24 Doug Evans <dje@google.com>
4718
4719 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4720 a warning.
4721
4722 2013-07-23 Yao Qi <yao@codesourcery.com>
4723
4724 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4725 parameter 'gdbarch'.
4726 (i386_stack_tramp_frame_sniffer): Caller update.
4727 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4728 parameter 'gdbarch' and 'target'.
4729 (i386_linux_core_read_description): Caller update.
4730 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4731 Likewise.
4732 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4733 declaration.
4734
4735 2013-07-23 Tom Tromey <tromey@redhat.com>
4736
4737 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4738 2013-07-22.
4739
4740 2013-07-22 Doug Evans <dje@google.com>
4741
4742 * exec.h (remove_target_sections): Delete arg abfd.
4743 * exec.c (exec_close): Update call to remove_target_sections.
4744 (remove_target_sections): Delete arg abfd.
4745 * solib.c (update_solib_list): Ditto.
4746 (reload_shared_libraries_1): Ditto.
4747 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4748 * target.h (struct target_section): Rename key to owner.
4749 All uses updated.
4750
4751 2013-07-22 Tom Tromey <tromey@redhat.com>
4752
4753 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4754
4755 2013-07-22 Tom Tromey <tromey@redhat.com>
4756
4757 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4758 Simplify cleanup handling.
4759
4760 2013-07-22 Tom Tromey <tromey@redhat.com>
4761
4762 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4763 on all return paths.
4764
4765 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4766
4767 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4768 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4769 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4770
4771 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4772
4773 * top.c (print_gdb_version): Add help, apropos description and
4774 url to online documentation.
4775
4776 2013-07-19 Hui Zhu <hui@codesourcery.com>
4777
4778 PR gdb/15692
4779 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4780
4781 2013-07-19 Yao Qi <yao@codesourcery.com>
4782
4783 * target.c (update_current_target): Change the default action
4784 of 'to_traceframe_info' from tcomplain to return_zero.
4785 * target.h (struct target_ops) <to_traceframe_info>: Add more
4786 comments.
4787 * valops.c (read_value_memory): Call
4788 traceframe_available_memory unconditionally.
4789
4790 2013-07-18 Yao Qi <yao@codesourcery.com>
4791
4792 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4793 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4794 symbol without prefix. If found, set its type to
4795 'mst_solib_trampoline'.
4796
4797 2013-07-17 Doug Evans <dje@google.com>
4798
4799 * NEWS: Mention "set print raw frame-arguments".
4800 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4801 * stack.c (print_raw_frame_arguments): New static global.
4802 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4803 (_initialize_stack): New command "set/show print raw frame-arguments".
4804 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4805 (set_print_raw, show_print_raw): New functions.
4806 (_initialize_valprint): New prefix command "set/show print raw".
4807 * valprint.h (value_print_options): Improve comments.
4808
4809 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4810 of all *list variables.
4811
4812 * gdbcmd.h (togglelist): Delete.
4813 * cli/cli-cmds.c (togglelist): Delete.
4814 (init_cmd_lists): Update.
4815 * cli/cli-cmds.h (togglelist): Delete.
4816
4817 2013-07-17 Tom Tromey <tromey@redhat.com>
4818
4819 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4820 dwarf2_per_objfile.
4821
4822 2013-07-16 Doug Evans <dje@google.com>
4823
4824 * nto-tdep.c (nto_relocate_section_addresses): Update,
4825 target_section.bfd deleted.
4826 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4827 * s390-tdep.c (s390_load): Ditto.
4828 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4829
4830 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4831
4832 * common/format.c (parse_format_string): Add checks for NULL
4833 character before calling strchr.
4834
4835 2013-07-16 Doug Evans <dje@google.com>
4836
4837 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4838 temp_pathname argument.
4839 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4840 when opening the file fails.
4841
4842 * target.h (struct target_section): Delete member bfd.
4843 All users updated to use the_bfd_section->owner instead.
4844 * exec.c (add_to_section_table): Assert bfd is expected value.
4845 Remove initialization of target_section.bfd.
4846 (remove_target_sections): Update.
4847 (section_table_available_memory): Update.
4848 (section_table_xfer_memory_partial): Update.
4849 (print_section_info): Update.
4850 (exec_set_section_address): Update.
4851 * record-full.c (record_full_core_xfer_partial): Update.
4852 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4853 * solib-target.c (solib_target_relocate_section_addresses): Update.
4854 * symfile.c (build_section_addr_info_from_section_table): Update.
4855 * target.c (memory_xfer_live_readonly_partial): Update.
4856 (memory_xfer_partial_1): Update.
4857
4858 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4859
4860 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4861 now available for embedded (BookE) and server (BookS) processors,
4862 correct mentions of 'booke' and adjust comments accordingly in order to
4863 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4864 (have_ptrace_booke_interface): Rename function and variable
4865 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4866 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4867 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4868 'hwdebug_point_cmp'. Update all uses.
4869 (booke_find_thread_points_by_tid): Rename function
4870 'booke_find_thread_points_by_tid' to
4871 'hwdebug_find_thread_points_by_tid'. Update all uses.
4872 (booke_insert_point): Rename function 'booke_insert_point' to
4873 'hwdebug_insert_point'. Update all uses.
4874 (booke_remove_point): Rename function 'booke_remove_point' to
4875 'hwdebug_remove_point'. Update all uses.
4876
4877 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4878
4879 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4880 numbers with enum values.
4881
4882 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4883
4884 PR threads/13217
4885 * thread.c (thread_apply_all_command): Check for valid threads
4886 and thread count.
4887 (thread_array_cleanup): New struct.
4888 (set_thread_refcount): New function.
4889
4890 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4891
4892 * infcmd.c (default_print_one_register_info): Reuse function
4893 print_hex_chars.
4894
4895 2013-07-10 Tom Tromey <tromey@redhat.com>
4896
4897 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4898 (ada-exp.o): New target.
4899
4900 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4901
4902 * mt-tdep.c (mt_registers_info): Call
4903 get_no_prettyformat_print_options instead of
4904 get_raw_print_options (regression by last patch from Doug
4905 Evans).
4906
4907 2013-07-09 Pedro Alves <palves@redhat.com>
4908
4909 Checked in by Joel Brobecker <brobecker@adacore.com>.
4910 * ada-lang.c (coerce_unspec_val_to_type): Use
4911 value_optimized_out_const.
4912 * value.c (value_optimized_out_const): New function.
4913 * value.h (value_optimized_out_const): New declaration.
4914
4915 2013-07-09 Doug Evans <dje@google.com>
4916
4917 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4918 Enum values rename as well. All uses updated.
4919 * valprint.h (value_print_options): Rename member pretty to
4920 pretty format. Rename member prettyprint_arrays to
4921 prettyformat_arrays. Rename member prettyprint_structs to
4922 prettyformat_structs. All uses updated.
4923 (get_no_prettyformat_print_options): Renamed from
4924 get_raw_print_options.
4925 * valprint.c (get_no_prettyformat_print_options): Renamed from
4926 get_raw_print_options. All callers updated.
4927 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4928 All callers updated.
4929 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4930 All callers updated.
4931 (_initialize_valprint): Improve help text for "set print pretty" and
4932 "set print arrays".
4933
4934 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4935
4936 * value.c (value_bits_valid): Revert previous change, and change
4937 by Pedro on 2013-07-04, due to regressions in
4938 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4939
4940 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4941 Pedro Alves <palves@redhat.com>
4942
4943 * value.c (value_bits_valid): If the value is not lval_computed
4944 or has no check validity handler then the answer is the
4945 optimized_out flag, otherwise defer to the handler.
4946
4947 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4948
4949 * top.c (print_gdb_configuration): Explain in output of
4950 --configuration what does "relocatable" mean.
4951
4952 * main.c (print_gdb_help): Regroup options in the --help text.
4953 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4954 the relevant discussions.
4955
4956 2013-07-06 Yao Qi <yao@codesourcery.com>
4957
4958 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4959 Remove parameter 'lsal'.
4960 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4961 to inner block. Caller update.
4962 (base_breakpoint_create_breakpoints_sal): Update.
4963 (bkpt_create_breakpoints_sal): Likewise.
4964 (tracepoint_create_breakpoints_sal): Likewise.
4965 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4966 element 0 of vector 'canonical->sals'.
4967
4968 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4969
4970 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4971 register number instead of the pseudo register one.
4972 (rs6000_dwarf2_reg_to_regnum): Likewise.
4973
4974 2013-07-04 Pedro Alves <palves@redhat.com>
4975
4976 * findvar.c (value_of_register): Use allocate_optimized_out_value
4977 if the register has been optimized out, instead of
4978 set_value_optimized_out.
4979 * frame-unwind.c (frame_unwind_got_optimized): Use
4980 allocate_optimized_out_value.
4981
4982 2013-07-04 Pedro Alves <palves@redhat.com>
4983
4984 * value.c (value_bits_valid): If the value is not lval_computed,
4985 or doesn't have a check_validity hook, assume the value is entirely
4986 valid.
4987
4988 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4989
4990 * stack.c (read_frame_arg): No longer fetch lazy values.
4991 * value.c (value_optimized_out): If the value is not already
4992 marked optimized out, and is lazy then fetch it.
4993 (value_primitive_field): Move optimized out check to later in the
4994 function, after we have loaded any lazy values.
4995 (value_fetch_lazy): Use optimized out flag directly rather than
4996 calling optimized_out method.
4997
4998 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4999
5000 * valops.c: Don't include "user-regs.h".
5001 (value_fetch_lazy): Moved to value.c.
5002 * value.c: Include "user-regs.h".
5003 (value_fetch_lazy): Moved from valops.c.
5004
5005 2013-07-04 Yao Qi <yao@codesourcery.com>
5006
5007 Revert:
5008 2013-06-27 Yao Qi <yao@codesourcery.com>
5009
5010 * common/create-version.sh: Update comments. Handle the case
5011 that TARGET_ALIAS is empty.
5012
5013 2013-07-03 Pedro Alves <palves@redhat.com>
5014
5015 * Makefile.in (config.status): Depend on development.sh.
5016 (aclocal_m4_deps): Add libmcheck.m4.
5017 * acinclude.m4: Include libmcheck.m4.
5018 * configure.ac: Source development.sh instead of setting
5019 'development' here. --enable-libmcheck/--disable-libmcheck code
5020 factored out to GDB_AC_LIBMCHECK. Run it.
5021 * development.sh: New file.
5022 * libmcheck.m4: New file.
5023 * configure: Regenerate.
5024
5025 2013-07-02 Tom Tromey <tromey@redhat.com>
5026
5027 * contrib/ari/update-web-ari.sh: Update for version.in change.
5028
5029 2013-07-02 Tom Tromey <tromey@redhat.com>
5030
5031 * common/ptid.h: Comment fixes.
5032
5033 2013-07-01 Tom Tromey <tromey@redhat.com>
5034
5035 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5036 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5037 (dwarf2_read_index, create_all_comp_units): Update.
5038
5039 2013-07-01 Tom Tromey <tromey@redhat.com>
5040
5041 * configure.ac (build_warnings): Add -Wold-style-definition.
5042 * configure: Rebuild.
5043 * machoread.c (_initialize_machoread): Use "(void)".
5044 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5045 use "(void)".
5046
5047 2013-07-01 Tom Tromey <tromey@redhat.com>
5048
5049 * configure.ac (build_warnings): Add -Wold-style-declaration.
5050 * configure: Rebuild.
5051 * dsrec.c (make_srec): Use "static const", not "const static".
5052 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5053 not "const static".
5054 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5055 Use "static const", not "const static".
5056 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5057 not "const static".
5058 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5059 not "const static".
5060 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5061 not "const static".
5062 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5063 not "const static".
5064 (v850_dbtrap_breakpoint_from_pc): Likewise.
5065 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5066 not "const static".
5067
5068 2013-07-01 Tom Tromey <tromey@redhat.com>
5069
5070 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5071 * configure: Rebuild.
5072
5073 2013-07-01 Pedro Alves <palves@redhat.com>
5074
5075 * defs.h: Include "pathmax.h".
5076 * utils.c: Don't include sys/param.h.
5077 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5078 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5079 instead of MAXPATHLEN.
5080 * solib-sunos.c: Don't include sys/param.h.
5081 * xcoffread.c: Don't include sys/param.h.
5082 * bsd-kvm.c: Don't include sys/param.h.
5083 * darwin-nat.c: Don't include sys/param.h.
5084 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5085 * darwin-nat-info.c: Don't include sys/param.h.
5086 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5087 MAXPATHLEN.
5088 * i386obsd-nat.c: Don't include sys/param.h.
5089 * inf-child.c: Don't include sys/param.h.
5090 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5091 * linux-fork.c: Don't include sys/param.h.
5092 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5093 * linux-nat.c: Don't include sys/param.h.
5094 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5095 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5096 * m68klinux-nat.c: Don't include sys/param.h.
5097 * nbsd-nat.c: Don't include sys/param.h.
5098 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5099 * ppc-linux-nat.c: Don't include sys/param.h.
5100 * rs6000-nat.c: Don't include sys/param.h.
5101 * spu-linux-nat.c. Don't include sys/param.h.
5102 * windows-nat.c: Don't include sys/param.h.
5103 * xtensa-linux-nat.c: Don't include sys/param.h.
5104 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5105
5106 2013-07-01 Pedro Alves <palves@redhat.com>
5107
5108 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5109 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5110 * gnulib/aclocal.m4: Regenerate.
5111 * gnulib/config.in: Regenerate.
5112 * gnulib/configure: Regenerate.
5113 * gnulib/import/pathmax.h: New file.
5114 * gnulib/import/Makefile.am: Regenerate.
5115 * gnulib/import/Makefile.in: Regenerate.
5116 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5117 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5118 * gnulib/import/m4/pathmax.m4: New file.
5119
5120 2013-07-01 Pedro Alves <palves@redhat.com>
5121
5122 * configure.ac (GDBINIT): Define, depending on host.
5123 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5124 * top.c (PATH_MAX): Delete fallback definition.
5125 (GDBINIT_FILENAME): Delete.
5126 (gdbinit): Reimplement as const char array set to the GDBINIT
5127 string constant.
5128 * top.h (gdbinit): Make const.
5129 * configure, config.in: Regenerate.
5130
5131 2013-07-01 Pedro Alves <palves@redhat.com>
5132
5133 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5134 * cli/cli-cmds.h (source_script): Likewise.
5135 * exceptions.c (catch_command_errors_const): New function.
5136 * exceptions.h (catch_command_errors_const): Declare.
5137 * main.c (get_init_files): Make parameters const, and adjust.
5138 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5139 'local_gdbinit' locals const. Adjust to use
5140 catch_command_errors_const.
5141 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5142 'local_gdbinit' locals const.
5143
5144 2013-07-01 Pedro Alves <palves@redhat.com>
5145
5146 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5147 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5148 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5149 <unistd.h>.
5150
5151 2013-07-01 Pedro Alves <palves@redhat.com>
5152
5153 Import the "unistd" gnulib module.
5154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5155 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5156 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5157 import/m4/unistd_h.m4.
5158 * gnulib/aclocal.m4: Renenerate.
5159 * gnulib/config.in: Renenerate.
5160 * gnulib/configure: Renenerate.
5161 * gnulib/import/Makefile.am: Renenerate.
5162 * gnulib/import/Makefile.in: Renenerate.
5163 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5164 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5165 * gnulib/import/m4/off_t.m4: New file.
5166 * gnulib/import/m4/ssize_t.m4: New file.
5167 * gnulib/import/m4/sys_types_h.m4: New file.
5168 * gnulib/import/m4/unistd_h.m4: New file.
5169 * gnulib/import/sys_types.in.h: New file.
5170 * gnulib/import/unistd.c: New file.
5171 * gnulib/import/unistd.in.h: New file.
5172
5173 2013-07-01 Pedro Alves <palves@redhat.com>
5174
5175 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5176 defined instead of checking HAVE_UNISTD_H.
5177
5178 2013-07-01 Pedro Alves <palves@redhat.com>
5179
5180 Reimport gnulib from scratch.
5181 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5182 import/m4/onceonly.m4.
5183 * gnulib/aclocal.m4: Renegerate.
5184 * gnulib/config.in: Renegerate.
5185 * gnulib/configure: Renegerate.
5186 * gnulib/import/Makefile.in: Renegerate.
5187 * gnulib/import/extra/update-copyright: Renegerate.
5188 * gnulib/import/m4/onceonly.m4: Delete.
5189
5190 2013-07-01 Pedro Alves <palves@redhat.com>
5191
5192 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5193
5194 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 Code cleanup.
5197 * remote.c (async_remote_interrupt_twice): Make it static.
5198 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5199
5200 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5201
5202 * ia64-linux-tdep.c: Include <ctype.h>.
5203 (ia64_linux_stap_is_single_operand): New function.
5204 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5205
5206 2013-06-28 Tom Tromey <tromey@redhat.com>
5207
5208 * Makefile.in (version.c): Use version.in, not
5209 common/version.in.
5210 * common/create-version.sh: Likewise.
5211 * common/version.in: Move...
5212 * version.in: ...here.
5213
5214 2013-06-28 Pedro Alves <palves@redhat.com>
5215
5216 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5217 here.
5218 * utils.h (pagination_enabled): Declare.
5219
5220 2013-06-28 Pedro Alves <palves@redhat.com>
5221
5222 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5223 Move higher up in file.
5224
5225 2013-06-28 Tom Tromey <tromey@redhat.com>
5226
5227 * tracepoint.c (deprecated_readline_begin_hook)
5228 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5229 declare.
5230
5231 2013-06-28 Pedro Alves <palves@redhat.com>
5232
5233 PR tui/14880
5234 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5235 checking if they're available.
5236 * value.c (value_available_contents_eq): Change comment.
5237 * value.h (value_available_contents_eq): Expand comment.
5238
5239 2013-06-27 Tom Tromey <tromey@redhat.com>
5240
5241 * target.c (find_run_target): Remove.
5242 * target.h (find_run_target): Remove.
5243
5244 2013-06-27 Tom Tromey <tromey@redhat.com>
5245
5246 * corelow.c (core_gdbarch): Now static.
5247
5248 2013-06-27 Tom Tromey <tromey@redhat.com>
5249
5250 * target.c (target_struct_index): Remove.
5251
5252 2013-06-27 Pedro Alves <palves@redhat.com>
5253
5254 * infrun.c: Remove comment describing the 'stepping over runtime
5255 loader dynamic symbol resolution code' mechanism; moved to
5256 gdbint.texinfo.
5257
5258 2013-06-27 Pedro Alves <palves@redhat.com>
5259
5260 * exceptions.c (catch_command_errors): Remove spurious space.
5261 * exceptions.h (catch_command_errors): Second parameter is "arg",
5262 not "command".
5263
5264 2013-06-27 Yao Qi <yao@codesourcery.com>
5265
5266 * common/create-version.sh: Update comments. Handle the case
5267 that TARGET_ALIAS is empty.
5268
5269 2013-06-26 Pedro Alves <palves@redhat.com>
5270
5271 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5272 comment.
5273
5274 2013-06-26 Pedro Alves <palves@redhat.com>
5275
5276 * infrun.c: Update comments on stepping over runtime loader
5277 dynamic symbol resolution code.
5278
5279 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5280
5281 * ax-gdb.h (union exp_element): Forward declare.
5282 * parser-defs.h: Include expression.h.
5283
5284 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5285
5286 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5287
5288 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5289
5290 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5291
5292 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5293
5294 Fix trace-status to output proper start-time and stop-time.
5295 * tracepoint.c (trace_status_command): Fix type of printf arg to
5296 prevent improper type conversion.
5297 (trace_status_mi): Likewise.
5298
5299 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5300
5301 * mips-tdep.c (mips_next_pc): Fix a typo.
5302
5303 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5304
5305 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5306
5307 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5308 Yao Qi <yao@codesourcery.com>
5309
5310 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5311 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5312 * mi/mi-main.c (print_variable_or_computed): New function.
5313 (mi_cmd_trace_frame_collected): New function.
5314 * tracepoint.c (find_trace_state_variable_by_number): New.
5315 (struct traceframe_info): Move to tracepoint.h
5316 (struct collection_list): Likewise.
5317 (do_collect_symbol): Include locals and arguments in the
5318 collected variables list.
5319 (clear_collection_list): Clear wholly collected variables list
5320 and computed variables list.
5321 (append_exp): New function.
5322 (encode_actions_1): Include variables in the wholly
5323 collected variables list. Include memory ranges and
5324 full-fledged expressions in the computed expressions list.
5325 (encode_actions): Move some code to ...
5326 Return the cleanup chain.
5327 (encode_actions_rsp): ... here. New function.
5328 (get_traceframe_location, get_traceframe_info): Remove static.
5329 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5330 (struct collection_list): Moved from tracepoint.c. Add two
5331 new fields 'wholly_collected' and 'computed'.
5332 (find_trace_state_variable_by_number): Declare.
5333 (encode_actions): Adjust declaration.
5334 (encode_actions_rsp): Declare.
5335 (get_traceframe_info, get_traceframe_location): Declare.
5336
5337 * NEWS: Mention new MI command -trace-frame-collected.
5338
5339 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5340 Yao Qi <yao@codesourcery.com>
5341
5342 * ctf.c (ctf_traceframe_info): Push trace state variables
5343 present in the trace data into the traceframe info object.
5344 * breakpoint.c (DEF_VEC_I): Remove.
5345 * common/filestuff.c (DEF_VEC_I): Likewise.
5346 * dwarf2loc.c (DEF_VEC_I): Likewise.
5347 * mi/mi-main.c (DEF_VEC_I): Likewise.
5348 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5349 * features/traceframe-info.dtd: Add tvar element and its
5350 attributes.
5351 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5352 (build_traceframe_info): Push trace state variables present in
5353 the trace data into the traceframe info object.
5354 (traceframe_info_start_tvar): New function.
5355 (tvar_attributes): New.
5356 (traceframe_info_children): Add "tvar" element.
5357 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5358
5359 * NEWS: Mention the change in GDB and GDBserver.
5360
5361 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5362 Yao Qi <yao@codesourcery.com>
5363
5364 * tracepoint.c (trace_dump_command): Move code to ...
5365 (get_traceframe_location): ... here. New.
5366
5367 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5368 Yao Qi <yao@codesourcery.com>
5369
5370 * tracepoint.c (trace_dump_command): GDB emits an error
5371 instead of a warning when a traceframe is not selected.
5372
5373 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5374 Yao Qi <yao@codesourcery.com>
5375
5376 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5377 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5378 in collection_list.
5379 (do_clear_collection_list, init_collection_list): New.
5380 (encode_actions): Add local variables 'tracepoint_list' and
5381 'stepping_list'. Call init_collection_list and make cleanup
5382 which calls do_clear_collection_list. Don't call
5383 clear_collection_list.
5384 (_initialize_tracepoint): Delete references to
5385 'tracepoint_list' and 'stepping_list'.
5386
5387 2013-06-25 Tom Tromey <tromey@redhat.com>
5388
5389 * common/create-version.sh (date): Use "$", not "$$" in sed
5390 expression.
5391
5392 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5393
5394 * NEWS (New targets): Add entry for TI MSP430.
5395
5396 2013-06-25 Yao Qi <yao@codesourcery.com>
5397
5398 * remote.c (remote_start_remote): Move code to upload tsv
5399 earlier.
5400
5401 2013-06-25 Yao Qi <yao@codesourcery.com>
5402 Hui Zhu <hui@codesourcery.com>
5403 Pedro Alves <palves@redhat.com>
5404
5405 PR breakpoints/15075
5406 PR breakpoints/15434
5407 * breakpoint.c (bpstat_stop_status): Call
5408 b->ops->after_condition_true.
5409 (update_dprintf_command_list): Don't append "continue" command
5410 to the command list of dprintf breakpoint.
5411 (base_breakpoint_after_condition_true): New function.
5412 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5413 (dprintf_after_condition_true): New function.
5414 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5415 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5416
5417 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5418
5419 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5420 (ALLDEPFILES): Add msp430-tdep.c.
5421 * configure.tgt (msp430*-*-elf): New target.
5422 * msp430-tdep.c: New file.
5423
5424 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5425
5426 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5427 microMIPS synthetic symbols.
5428
5429 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5430
5431 * objfiles.h (pc_in_section): New prototype.
5432 (in_plt_section): Remove name argument, replace prototype with
5433 static inline function.
5434 * mips-tdep.h: Include "objfiles.h".
5435 (in_mips_stubs_section): New function.
5436 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5437 in_solib_call_trampoline member.
5438 (hppa_in_solib_call_trampoline): Remove name argument.
5439 * objfiles.c (pc_in_section): New function.
5440 (in_plt_section): Remove function.
5441 * mips-linux-tdep.c: Include "objfiles.h".
5442 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5443 name argument. Return 1 rather than the low 16-bit halfword of
5444 any instruction examined.
5445 (mips_linux_in_dynsym_resolve_code): Update
5446 mips_linux_in_dynsym_stub call accordingly.
5447 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5448 rather than an equivalent hand-coded sequence.
5449 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5450 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5451 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5452 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5453 in_opd_section.
5454 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5455 on call to tdep->in_solib_call_trampoline.
5456 (hppa_in_solib_call_trampoline): Remove name argument, update
5457 according to in_plt_section change.
5458 (hppa_skip_trampoline_code): Update according to in_plt_section
5459 change.
5460 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5461 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5462 Likewise.
5463 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5464 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5465 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5466 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5467 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5468 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5469 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5470 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5471 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5472 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5473 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5474 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5475 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5476
5477 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5478
5479 * common/create-version.sh: Fix expansion of $host_alias
5480 and $target_alias in generation of HOST_NAME and TARGET_NAME
5481 (resp.).
5482
5483 2013-06-24 Tom Tromey <tromey@redhat.com>
5484
5485 * common/create-version.sh: New file.
5486 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5487 create-version.sh.
5488 (HFILES_NO_SRCDIR): Use common/version.h.
5489 * version.in: Move to ...
5490 * common/version.in: ... here. Replace date with "DATE".
5491 * version.h: Move to ...
5492 * common/version.h: ... here.
5493
5494 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5495
5496 * gdb/gnulib/Makefile.in: Update date in copyright header.
5497 * gdb/gnulib/configure.ac: Ditto.
5498 * gdb/gnulib/update-gnulib.sh: Ditto.
5499
5500 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5501
5502 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5503 "gdb/gnulib/import".
5504
5505 2013-06-21 Will Newton <will.newton@linaro.org>
5506
5507 * doublest.c (ldfrexp): Remove function.
5508 (convert_doublest_to_floatformat): Call frexpl instead of
5509 ldfrexp.
5510
5511 2013-06-21 Will Newton <will.newton@linaro.org>
5512
5513 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5514 * gnulib/aclocal.m4: Regenerate.
5515 * gnulib/config.in: Regenerate.
5516 * gnulib/configure: Regenerate.
5517 * gnulib/import/Makefile.am: Update.
5518 * gnulib/import/Makefile.in: Update.
5519 * gnulib/import/m4/gnulib-cache.m4: Update.
5520 * gnulib/import/m4/gnulib-comp.m4: Update.
5521 * gnulib/import/float+.h: Import.
5522 * gnulib/import/float.c: Import.
5523 * gnulib/import/float.in.h: Import.
5524 * gnulib/import/fpucw.h: Import.
5525 * gnulib/import/frexp.c: Import.
5526 * gnulib/import/frexpl.c: Import.
5527 * gnulib/import/isnan.c: Import.
5528 * gnulib/import/isnand-nolibm.h: Import.
5529 * gnulib/import/isnand.c: Import.
5530 * gnulib/import/isnanl-nolibm.h: Import.
5531 * gnulib/import/isnanl.c: Import.
5532 * gnulib/import/itold.c: Import.
5533 * gnulib/import/m4/exponentd.m4: Import.
5534 * gnulib/import/m4/exponentl.m4: Import.
5535 * gnulib/import/m4/float_h.m4: Import.
5536 * gnulib/import/m4/fpieee.m4: Import.
5537 * gnulib/import/m4/frexp.m4: Import.
5538 * gnulib/import/m4/frexpl.m4: Import.
5539 * gnulib/import/m4/isnand.m4: Import.
5540 * gnulib/import/m4/isnanl.m4: Import.
5541 * gnulib/import/m4/math_h.m4: Import.
5542 * gnulib/import/math.c: Import.
5543 * gnulib/import/math.in.h: Import.
5544
5545 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5546
5547 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5548 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5549 signature_INTEL_edx comparisons.
5550
5551 2013-06-20 Doug Evans <dje@google.com>
5552
5553 symtab/15652
5554 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5555 All callers updated.
5556 (open_dwp_file): If we can't find the dwp file, search the basename
5557 in debug-file-directory.
5558
5559 * dwarf2read.c (struct dwp_file): Fix comment.
5560 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5561
5562 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5563 better.
5564
5565 2013-06-20 Yao Qi <yao@codesourcery.com>
5566
5567 * breakpoint.c (create_breakpoint): Fix code indentation.
5568
5569 2013-06-20 Yao Qi <yao@codesourcery.com>
5570
5571 * breakpoint.c (create_breakpoints_sal_default): Remove
5572 parameter 'lsal'. Update declaration.
5573 (bkpt_create_breakpoints_sal): Caller update.
5574 (tracepoint_create_breakpoints_sal): Likewise.
5575
5576 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5577 Yao Qi <yao@codesourcery.com>
5578
5579 * NEWS: Mention the new option '--skip-unavailable' of command
5580 -data-list-register-values.
5581 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5582 --skip-unavailable option. Adjust to use output_register.
5583 (output_register): Add new 'skip_unavailable' parameter.
5584 Handle it.
5585
5586 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5587
5588 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5589 common/i386-gcc-cpuid.h.
5590 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5591 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5592 Copy the latest version from upstream gcc.
5593 * common/linux-btrace.c: Include i386-cpuid.h.
5594 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5595 call to i386_cpuid.
5596 (cpu_supports_btrace): Likewise.
5597 * go32-nat.c: Include i386-cpuid.h.
5598 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5599
5600 2013-06-19 Doug Evans <dje@google.com>
5601
5602 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5603 (get_section_index): Ditto.
5604
5605 2013-06-19 Tom Tromey <tromey@redhat.com>
5606
5607 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5608 "dprintf" help.
5609
5610 2013-06-18 Doug Evans <dje@google.com>
5611
5612 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5613 before using it.
5614 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5615 Move test of cu_index closer to use. Print complaint if cu_index
5616 is bad.
5617
5618 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5619
5620 * machoread.c (oso_vector): Delete this global.
5621 (macho_register_oso): Add new parameter "oso_vector_ptr".
5622 Use it instead of the "oso_vector" global.
5623 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5624 (macho_symfile_read): Use a local oso_vector, to be free'ed
5625 at the end of this function, in place of the old "oso_vector"
5626 global. Update various function calls accordingly. Use one
5627 single cleanup chain for the entire function.
5628
5629 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5630
5631 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5632 DWARF2_PER_OBJFILE by uses of DATA instead.
5633
5634 2013-06-18 Tom Tromey <tromey@redhat.com>
5635
5636 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5637 argument.
5638 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5639 Special case signals other than GDB_SIGNAL_TRAP.
5640 (explains_signal_watchpoint): New function.
5641 (base_breakpoint_explains_signal): Add 'sig' argument.
5642 (initialize_breakpoint_ops): Set 'explains_signal' method for
5643 watchpoints.
5644 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5645 signal argument.
5646 (bpstat_explains_signal): Likewise.
5647 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5648
5649 2013-06-18 Tom Tromey <tromey@redhat.com>
5650
5651 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5652
5653 2013-06-18 Tom Tromey <tromey@redhat.com>
5654
5655 * python/python.c (finish_python_initialization): Decref
5656 'pythondir' on failure path as well.
5657
5658 2013-06-18 Tom Tromey <tromey@redhat.com>
5659
5660 PR symtab/15391:
5661 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5662 after taking bits_to_skip into account. Sign extend byte_offset.
5663 * utils.h (gdb_sign_extend): Declare.
5664 * utils.c (gdb_sign_extend): New function.
5665
5666 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5667
5668 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5669
5670 2013-06-17 Pierre Muller <muller@sourceware.org>
5671
5672 * corelow.c (core_open): Print GDB signal name instead of target
5673 signal number.
5674
5675 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5676
5677 * .gitignore: Add /gcore.
5678
5679 2013-06-13 Doug Evans <dje@google.com>
5680
5681 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5682 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5683
5684 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5685
5686 * stack.c (backtrace_command_1): Fix indentation.
5687
5688 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5689
5690 * window-nat.c (thread_rec): Add missing empty line after
5691 local variable declaration.
5692
5693 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5694
5695 * windows-nat.c (thread_rec): Revert format used to print
5696 error code returned by SuspendThread from %d back to %u.
5697
5698 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5699
5700 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5701 ID in debug trace.
5702 (get_windows_debug_event): Likewise, for all debug traces.
5703
5704 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5705
5706 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5707 warning message.
5708
5709 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5710 Yao Qi <yao@codesourcery.com>
5711
5712 * mi/mi-main.c (get_register): Remove declaration.
5713 (output_register): Declare.
5714 (mi_cmd_data_list_register_values): Remove local variable
5715 'tuple_cleanup'. Move some code into output_register.
5716 (get_register): Renamed to ...
5717 (output_register): ... this. Output the register's
5718 "number" ui_out tuple here.
5719
5720 2013-06-07 Pedro Alves <palves@redhat.com>
5721
5722 * darwin-nat.c: Fix formating in copyright header.
5723 * darwin-nat.h: Likewise.
5724 * gnu-nat.c: Likewise.
5725 * machoread.c: Likewise.
5726
5727 2013-06-07 Pedro Alves <palves@redhat.com>
5728
5729 PR server/14823
5730 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5731 static. Output a global target description pointer.
5732 (init_registers_${name}): Adjust to initialize a
5733 target description structure.
5734
5735 2013-06-07 Will Newton <will.newton@linaro.org>
5736
5737 * printcmd.c (build_address_symbolic): Call
5738 gdbarch_addr_bits_remove for text minimal symbols.
5739
5740 2013-06-07 Will Newton <will.newton@linaro.org>
5741
5742 * MAINTAINERS: Add myself to Write After Approval.
5743
5744 2013-06-07 Yao Qi <yao@codesourcery.com>
5745
5746 * tracepoint.c (start_tracing): Move code to ...
5747 (trace_reset_local_state): ... here. New.
5748 (disconnect_tracing): Don't call set_current_traceframe,
5749 set_tracepoint_num, and set_traceframe_context. Call
5750 trace_reset_local_state instead.
5751 (tfile_close): Call trace_reset_local_state.
5752 * ctf.c (ctf_close): Likewise.
5753 * remote.c (remote_close): Likewise.
5754 * tracepoint.h (trace_reset_local_state): Declare.
5755
5756 2013-06-06 Doug Evans <dje@google.com>
5757
5758 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5759 and fix header docs.
5760
5761 2013-06-05 Doug Evans <dje@google.com>
5762 Keith Seitz <keiths@redhat.com>
5763
5764 PR 15519
5765 * cp-namespace.c (find_symbol_in_baseclass): Call
5766 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5767 Check result of call to lookup_symbol_static.
5768 Call lookup_static_symbol_aux unconditionally.
5769 Call check_typedef on base types before accessing them.
5770 (cp_lookup_nested_symbol): Fix comment.
5771
5772 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5773
5774 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5775 minimal symbols pointing to function descriptors.
5776
5777 2013-06-05 Tom Tromey <tromey@redhat.com>
5778
5779 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5780
5781 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5782 Pedro Alves <palves@redhat.com>
5783
5784 * remote.c (remote_wait_as): Restore signal handler before returning
5785 when GDB gets a notification.
5786
5787 2013-06-04 Gary Benson <gbenson@redhat.com>
5788
5789 PR 2328
5790 * breakpoint.h (handle_solib_event): Moved function declaration
5791 to solib.h.
5792 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5793 (bpstat_stop_status): Pass new argument to handle_solib_event.
5794 * solib.h (update_solib_breakpoints): New function declaration.
5795 (handle_solib_event): Moved function declaration from
5796 breakpoint.h.
5797 * solib.c (update_solib_breakpoints): New function.
5798 (handle_solib_event): Moved function from breakpoint.c.
5799 Updated to call solib_ops->handle_event if not NULL.
5800 * solist.h (target_so_ops): New fields "update_breakpoints" and
5801 "handle_event".
5802 * infrun.c (set_stop_on_solib_events): New function.
5803 (_initialize_infrun): Use the above for "set
5804 stop-on-solib-events".
5805 (handle_inferior_event): Pass new argument to handle_solib_event.
5806 * solib-svr4.c (probe.h): New include.
5807 (svr4_free_library_list): New forward declaration.
5808 (probe_action): New enum.
5809 (probe_info): New struct.
5810 (probe_info): New static variable.
5811 (NUM_PROBES): New definition.
5812 (svr4_info): New fields "using_xfer", "probes_table" and
5813 "solib_list".
5814 (free_probes_table): New function.
5815 (free_solib_list): New function.
5816 (svr4_pspace_data_cleanup): Free probes table and solib list.
5817 (svr4_copy_library_list): New function.
5818 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5819 (svr4_read_so_list): New parameter "prev_lm".
5820 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5821 (svr4_current_sos): New function.
5822 (probe_and_action): New struct.
5823 (hash_probe_and_action): New function.
5824 (equal_probe_and_action): Likewise.
5825 (register_solib_event_probe): Likewise.
5826 (solib_event_probe_at): Likewise.
5827 (solib_event_probe_action): Likewise.
5828 (solist_update_full): Likewise.
5829 (solist_update_incremental): Likewise.
5830 (disable_probes_interface_cleanup): Likewise.
5831 (svr4_handle_solib_event): Likewise.
5832 (svr4_update_solib_event_breakpoint): Likewise.
5833 (svr4_update_solib_event_breakpoints): Likewise.
5834 (svr4_create_solib_event_breakpoints): Likewise.
5835 (enable_break): Free probes table before creating breakpoints.
5836 Use svr4_create_solib_event_breakpoints to create breakpoints.
5837 (svr4_solib_create_inferior_hook): Free the solib list.
5838 (_initialize_svr4_solib): Initialise
5839 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5840
5841 2013-06-04 Gary Benson <gbenson@redhat.com>
5842
5843 * target.h (target_ops): New field
5844 "to_augmented_libraries_svr4_read".
5845 (target_augmented_libraries_svr4_read): New macro.
5846 * target.c (update_current_target): Handle
5847 to_augmented_libraries_svr4_read.
5848 * remote.c (remote_state): New field
5849 "augmented_libraries_svr4_read".
5850 (remote_augmented_libraries_svr4_read_feature): New function.
5851 (remote_protocol_features): Add entry for
5852 "augmented-libraries-svr4-read".
5853 (remote_augmented_libraries_svr4_read): New function.
5854 (init_remote_ops): Initialize
5855 remote_ops.to_augmented_libraries_svr4_read.
5856
5857 2013-06-04 Gary Benson <gbenson@redhat.com>
5858
5859 * NEWS: Update.
5860
5861 2013-06-04 Gary Benson <gbenson@redhat.com>
5862
5863 * objfiles.h (inhibit_section_map_updates): New function
5864 declaration.
5865 (resume_section_map_updates): Likewise.
5866 (resume_section_map_updates_cleanup): Likewise.
5867 * objfiles.c (objfile_pspace_info): Removed field
5868 "objfiles_changed_p". New fields "new_objfiles_available",
5869 "section_map_dirty" and "inhibit_updates".
5870 (allocate_objfile): Set new_objfiles_available.
5871 (free_objfile): Set section_map_dirty.
5872 (objfile_relocate1): Likewise.
5873 (in_plt_section): Likewise.
5874 (find_pc_section): Update the conditions under which the
5875 section map will be updated.
5876 (inhibit_section_map_updates): New function.
5877 (resume_section_map_updates): Likewise.
5878 (resume_section_map_updates_cleanup): Likewise.
5879
5880 2013-06-04 Gary Benson <gbenson@redhat.com>
5881
5882 * probe.h (get_probe_argument_count): New declaration.
5883 (evaluate_probe_argument): Likewise.
5884 * probe.c (get_probe_argument_count): New function.
5885 (evaluate_probe_argument): Likewise.
5886 (probe_safe_evaluate_at_pc): Use the above new functions.
5887
5888 2013-06-04 Alan Modra <amodra@gmail.com>
5889
5890 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5891 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5892 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5893 target mem reads on optional insns.
5894 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5895 ppc_insns_match_pattern calls.
5896 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5897 Add match for power7 thread safety insns, and new order of
5898 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5899 invocation in comment, and update rest of comment.
5900 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5901 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5902 (ppc64_standard_linkage2_target): Update insn offsets.
5903 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5904 stubs first. Update calls.
5905
5906 2013-06-04 Yao Qi <yao@codesourcery.com>
5907
5908 * solib.c (solib_find): Don't need dir separator if path has
5909 drive spec.
5910
5911 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5912
5913 Revert (indirectly causes a SIGSEGV):
5914 * machoread.c (macho_symfile_read): Assign first cleanup to
5915 'back_to'.
5916
5917 2013-06-03 Yao Qi <yao@codesourcery.com>
5918
5919 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5920 mi-parse.c. Make them static.
5921 (mi_all_values): Likewise.
5922 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5923 mi_parse_print_values. Make it external.
5924 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5925 Remove the declarations.
5926 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5927 * mi/mi-parse.h (mi_parse_print_values): Declare.
5928 * mi/mi-cmd-stack.c: Include mi-parse.h.
5929 (parse_print_values): Remove
5930 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5931 of parse_print_values.
5932 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5933
5934 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5935 Yao Qi <yao@codesourcery.com>
5936
5937 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5938 (encode_actions): Move code to ...
5939 (all_tracepoint_actions_and_cleanup): ... here. New.
5940 (trace_dump_command): Likewise.
5941
5942 2013-05-30 Tom Tromey <tromey@redhat.com>
5943
5944 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5945
5946 2013-05-30 Tom Tromey <tromey@redhat.com>
5947
5948 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5949 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5950 'old_chain' argument. Add 'parser_result' argument.
5951 (gdb_xml_create_parser_and_cleanup): Remove old version.
5952 (gdb_xml_parse_quick): Update.
5953 (xml_process_xincludes): Update.
5954 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5955 declare.
5956
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * probe.c (collect_probes): Check arguments for NULL before
5960 calling compile_rx_or_error.
5961 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5962 Remove NULL return.
5963
5964 2013-05-30 Tom Tromey <tromey@redhat.com>
5965
5966 * infrun.c (adjust_pc_after_break): Introduce an outer null
5967 cleanup.
5968
5969 2013-05-30 Tom Tromey <tromey@redhat.com>
5970
5971 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5972
5973 2013-05-30 Tom Tromey <tromey@redhat.com>
5974
5975 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5976 for 'old_chain'. Do not check 'head' before processing
5977 cleanups.
5978
5979 2013-05-30 Tom Tromey <tromey@redhat.com>
5980
5981 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5982 "cleanup_tuple".
5983
5984 2013-05-30 Tom Tromey <tromey@redhat.com>
5985
5986 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5987 inner scope. Unconditionally call do_cleanups.
5988
5989 2013-05-30 Tom Tromey <tromey@redhat.com>
5990
5991 * source.c (find_and_open_source): Call do_cleanups.
5992
5993 2013-05-30 Tom Tromey <tromey@redhat.com>
5994
5995 * linux-thread-db.c (thread_db_load_search): Unconditionally
5996 call do_cleanups.
5997
5998 2013-05-30 Tom Tromey <tromey@redhat.com>
5999
6000 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6001 for 'cleanup'; instead use a later one.
6002
6003 2013-05-30 Tom Tromey <tromey@redhat.com>
6004
6005 * python/py-breakpoint.c (bppy_get_commands): Use
6006 explicit, unconditional return.
6007 * python/py-frame.c (frapy_read_var): Likewise.
6008 * python/python.c (gdbpy_decode_line): Likewise.
6009
6010 2013-05-30 Tom Tromey <tromey@redhat.com>
6011
6012 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6013 do_cleanups on all return paths.
6014
6015 2013-05-30 Tom Tromey <tromey@redhat.com>
6016
6017 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6018
6019 2013-05-30 Tom Tromey <tromey@redhat.com>
6020
6021 * stabsread.c (read_struct_type): Call do_cleanups along
6022 all return paths.
6023
6024 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6025
6026 * mips-linux-tdep.c: Adjust formatting throughout.
6027
6028 2013-05-30 Tom Tromey <tromey@redhat.com>
6029
6030 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6031 along all return paths.
6032
6033 2013-05-30 Tom Tromey <tromey@redhat.com>
6034
6035 * symfile.c (find_separate_debug_file): Call do_cleanups
6036 along all return paths.
6037
6038 2013-05-30 Tom Tromey <tromey@redhat.com>
6039
6040 * symtab.c (search_symbols): Introduce a null cleanup for
6041 'retval_chain'.
6042
6043 2013-05-30 Tom Tromey <tromey@redhat.com>
6044
6045 * python/py-value.c (valpy_binop): Call do_cleanups before
6046 exiting loop.
6047
6048 2013-05-30 Tom Tromey <tromey@redhat.com>
6049
6050 * python/py-prettyprint.c (print_children): Remove extra
6051 do_cleanups call.
6052
6053 2013-05-30 Tom Tromey <tromey@redhat.com>
6054
6055 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6056 all return paths.
6057
6058 2013-05-30 Tom Tromey <tromey@redhat.com>
6059
6060 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6061 along all return paths.
6062
6063 2013-05-30 Tom Tromey <tromey@redhat.com>
6064
6065 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6066 call do_cleanups.
6067
6068 2013-05-30 Tom Tromey <tromey@redhat.com>
6069
6070 * varobj.c (c_value_of_root): Call do_cleanups along all
6071 return paths.
6072
6073 2013-05-30 Tom Tromey <tromey@redhat.com>
6074
6075 * tracepoint.c (trace_dump_command): Unconditionally call
6076 do_cleanups.
6077
6078 2013-05-30 Tom Tromey <tromey@redhat.com>
6079
6080 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6081 do_cleanups earlier.
6082
6083 2013-05-30 Tom Tromey <tromey@redhat.com>
6084
6085 * machoread.c (macho_symfile_read): Assign first cleanup to
6086 'back_to'.
6087
6088 2013-05-30 Tom Tromey <tromey@redhat.com>
6089
6090 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6091
6092 2013-05-30 Tom Tromey <tromey@redhat.com>
6093
6094 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6095
6096 2013-05-30 Tom Tromey <tromey@redhat.com>
6097
6098 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6099 call discard_cleanups.
6100 (inf_ptrace_attach): Likewise.
6101
6102 2013-05-30 Tom Tromey <tromey@redhat.com>
6103
6104 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6105 return paths.
6106 (mips_initialize): Likewise.
6107 (common_open): Call do_cleanups.
6108
6109 2013-05-30 Tom Tromey <tromey@redhat.com>
6110
6111 * utils.c (internal_vproblem): Call do_cleanups.
6112
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6116
6117 2013-05-30 Tom Tromey <tromey@redhat.com>
6118
6119 * cli/cli-script.c (setup_user_args): Don't return after error.
6120
6121 2013-05-30 Tom Tromey <tromey@redhat.com>
6122
6123 * somread.c (som_symtab_read): Call do_cleanups.
6124
6125 2013-05-30 Tom Tromey <tromey@redhat.com>
6126
6127 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6128
6129 2013-05-30 Tom Tromey <tromey@redhat.com>
6130
6131 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6132 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6133 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6134 * source.c (show_substitute_path_command): Call do_cleanups.
6135 (unset_substitute_path_command, set_substitute_path_command):
6136 Likewise.
6137 * symfile.c (load_command): Call do_cleanups.
6138
6139 2013-05-30 Tom Tromey <tromey@redhat.com>
6140
6141 * contrib/cleanup_check.py: New file.
6142 * contrib/gcc-with-excheck: Add option parsing.
6143
6144 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6145
6146 * windows-nat.c (windows_delete_thread): Add missing space
6147 in cast expression.
6148
6149 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6150
6151 * inferior.c (top level): Include tilde.h.
6152 (add_inferior_command): Call tilde_expand on the value of 'exec'
6153 argument.
6154
6155 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6156 Yao Qi <yao@codesourcery.com>
6157
6158 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6159 Caller update.
6160 (encode_actions): Likewise.
6161 * remote.c (remote_download_tracepoint): Caller update.
6162 * tracepoint.h (encode_actions): Update declaration.
6163
6164 2013-05-30 Pedro Alves <palves@redhat.com>
6165
6166 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6167 pointer.
6168
6169 2013-05-30 Yao Qi <yao@codesourcery.com>
6170
6171 * remote.c (remote_check_symbols): Remove unused parameter
6172 'objfile'.
6173 Declaration update.
6174 (remote_start_remote, remote_new_objfile): Caller update.
6175
6176 2013-05-30 Yao Qi <yao@codesourcery.com>
6177
6178 * mi/mi-cmds.c (mi_cmds): Define MI command
6179 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6180 DEF_MI_CMD_CLI.
6181
6182 2013-05-29 Pedro Alves <palves@redhat.com>
6183
6184 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6185 (remote_insert_watchpoint, remote_remove_watchpoint)
6186 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6187 (remote_verify_memory, compare_sections_command)
6188 (remote_search_memory): Set the general process/thread on the
6189 remote side.
6190
6191 2013-05-29 Pedro Alves <palves@redhat.com>
6192
6193 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6194 (_initialize_aarch64_tdep): Don't call
6195 initialize_tdesc_aarch64_without_fpu.
6196 * features/Makefile (WHICH): Remove reference to
6197 aarch64-without-fpu.
6198 * features/aarch64-without-fpu.c: Delete file.
6199 * regformats/aarch64-without-fpu.dat: Delete file.
6200
6201 2013-05-28 Yao Qi <yao@codesourcery.com>
6202
6203 * tracepoint.c (stringify_collection_list): Remove parameter
6204 'string'.
6205 (encode_actions): Caller update. Remove local variables.
6206
6207 2013-05-24 Yao Qi <yao@codesourcery.com>
6208
6209 * tracepoint.c (TFILE_PID): Remove.
6210 (tfile_open): Don't add thread and inferior.
6211 (tfile_close): Don't set 'inferior_ptid'. Don't call
6212 exit_inferior_silent.
6213 (tfile_thread_alive): Remove.
6214 (init_tfile_ops): Don't set field 'to_thread_alive' of
6215 tfile_ops.
6216
6217 2013-05-23 Doug Evans <dje@google.com>
6218
6219 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6220
6221 2013-05-23 Pedro Alves <palves@redhat.com>
6222
6223 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6224 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6225 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6226 Only define if HAVE_SOCKETS is defined.
6227 * configure.ac: Check for sys/socket.h.
6228 * config.in, configure: Regenerate.
6229
6230 2013-05-23 Pedro Alves <palves@redhat.com>
6231
6232 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6233 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6234 printing uint32_t variables.
6235
6236 2013-05-23 Pedro Alves <palves@redhat.com>
6237
6238 * NEWS: Mention GDBserver range stepping support.
6239
6240 2013-05-23 Yao Qi <yao@codesourcery.com>
6241 Pedro Alves <palves@redhat.com>
6242
6243 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6244 field.
6245 * infcmd.c (step_once, until_next_command): Enable range stepping.
6246 * infrun.c (displaced_step_prepare): Disable range stepping.
6247 (resume): Disable range stepping if stepping over a breakpoint or
6248 we have software watchpoints. If range stepping is enabled,
6249 assert the thread is in the stepping range.
6250 (clear_proceed_status_thread): Clear may_range_step.
6251 (handle_inferior_event): Disable range stepping as soon as we know
6252 the thread that hit the event. Re-enable it whenever we're going
6253 to step with a step range.
6254 * remote.c (struct vCont_action_support) <r>: New field.
6255 (use_range_stepping): New global.
6256 (remote_vcont_probe): Handle 'r' action.
6257 (append_resumption): Append an 'r' action if the thread may range
6258 step.
6259 (show_range_stepping): New function.
6260 (set_range_stepping): New function.
6261 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6262 'set range-stepping' and 'show range-stepping' commands.
6263 * NEWS: Mention range stepping, the new vCont;r action, and the
6264 new "set/show range-stepping" commands.
6265
6266 2013-05-23 Yao Qi <yao@codesourcery.com>
6267 Pedro Alves <palves@redhat.com>
6268
6269 * remote.c (struct vCont_action_support): New struct.
6270 (struct remote_state) <support_vCont_t>: Remove field.
6271 <vCont_actions_support>: New field.
6272 (remote_vcont_probe, remote_stop_ns): Update.
6273
6274 2013-05-23 Yao Qi <yao@codesourcery.com>
6275 Pedro Alves <palves@redhat.com>
6276
6277 * gdbthread.h (pc_in_thread_step_range): New declaration.
6278 * thread.c (pc_in_thread_step_range): New function.
6279 * infrun.c (handle_inferior_event): Use it.
6280
6281 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6282
6283 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6284 of sprintf.
6285
6286 2013-05-22 Keith Seitz <keiths@redhat.com>
6287
6288 * ada-lang.c (is_known_support_routine): Add explicit free of
6289 'func_name' from find_frame_funname.
6290 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6291 for func_name from find_frame_funname.
6292 * python/py-frame.c (frapy_name): Add explicit free of
6293 'name' from find_frame_funname.
6294 * stack.c (find_frame_funname): Add comment explaining that
6295 funcp must be freed by the caller.
6296 Return copy of symbol names instead of pointers.
6297 (print_frame): Add a cleanup for 'funname' from
6298 find_frame_funname.
6299 * stack.h (find_frame_funname): Remove "const" from
6300 'funname' parameter.
6301
6302 2013-05-22 Tom Tromey <tromey@redhat.com>
6303
6304 PR c++/15401:
6305 * c-valprint.c (c_value_print): Use value_addr for
6306 references. Convert back to reference type with value_ref.
6307
6308 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6309
6310 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6311 unloaded DLL, it will be done by handle_solib_event. See
6312 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6313 details.
6314
6315 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6316
6317 * ui-out.c: Create typedef ui_out_level_p and define vector
6318 operations for that type.
6319 (struct ui_out): Use a vector instead of an array.
6320 (current_level): Return level from a vector.
6321 (push_level): Create a level in a vector.
6322 (pop_level): Delete a level in a vector.
6323 (ui_out_new): Create initial level zero level, and store in a
6324 vector.
6325 (ui_out_destroy): Add vector cleanup.
6326
6327 2013-05-22 Pedro Alves <palves@redhat.com>
6328
6329 * python/python-internal.h (gdb_Py_DECREF): Tag with
6330 "ARI: editCase function".
6331
6332 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6333
6334 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6335
6336 2013-05-21 Pedro Alves <palves@redhat.com>
6337
6338 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6339 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6340 * python/py-utils.c (py_decref): Don't check for NULL before
6341 calling Py_DECREF.
6342
6343 2013-05-21 Pedro Alves <palves@redhat.com>
6344
6345 * python/py-utils.c (py_decref): Remove extra braces.
6346 (gdb_pymodule_addobject): Remove extra braces.
6347 * python-internal.h (gdb_Py_DECREF): New static inline function.
6348 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6349
6350 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6351
6352 * breakpoints.c (detach_breakpoints): Do not
6353 detach breakpoints locations with loc_type bp_loc_other.
6354
6355 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6356
6357 Workaround Python 2.6.
6358 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6359 a block.
6360
6361 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 Code cleanup: constification.
6364 * solib.c (solib_ops): Make return type and ops variable type const.
6365 (set_solib_ops): Make the new_ops parameter and ops variable const.
6366 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6367 (solib_add, solib_keep_data_in_core, clear_solib)
6368 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6369 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6370 const.
6371 * solib.h (set_solib_ops): Make the new_ops parameter const.
6372
6373 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6374
6375 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6376 variable.
6377 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6378 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6379 (SYSTEM_GDBINIT_FILES): New variables.
6380 (all): Add stamp-system-gdbinit.
6381 (stamp-system-gdbinit): New rule.
6382 (clean-system-gdbinit, install-system-gdbinit)
6383 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6384 (install-only): Add dependency on install-system-gdbinit.
6385 (uninstall): Add dependency on uninstall-system-gdbinit.
6386 (clean): Add dependency on clean-system-gdbinit.
6387 * system-gdbinit/elinos.py: New file.
6388 * system-gdbinit/wrs-linux.py: New file.
6389
6390 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6391
6392 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6393
6394 2013-05-21 Hui Zhu <hui@codesourcery.com>
6395
6396 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6397 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6398 * mi/mi-cmd-break.c (ctype.h): New include.
6399 (gdb_obstack.h): New include.
6400 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6401 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6402 (mi_cmd_dprintf_insert): New.
6403 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6404 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6405
6406 2013-05-20 Tom Tromey <tromey@redhat.com>
6407
6408 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6409
6410 2013-05-20 Tom Tromey <tromey@redhat.com>
6411
6412 * python/py-value.c (valpy_get_dynamic_type): Simplify
6413 dynamic_type assignment. Use Py_XINCREF.
6414
6415 2013-05-20 Tom Tromey <tromey@redhat.com>
6416
6417 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6418
6419 2013-05-20 Tom Tromey <tromey@redhat.com>
6420
6421 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6422 (gdbpy_selected_frame): Move object-construction code
6423 out of TRY_CATCH.
6424
6425 2013-05-20 Tom Tromey <tromey@redhat.com>
6426
6427 * python/py-arch.c (gdbpy_initialize_arch): Use
6428 gdb_pymodule_addobject.
6429 * python/py-block.c (gdbpy_initialize_blocks): Use
6430 gdb_pymodule_addobject.
6431 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6432 gdb_pymodule_addobject.
6433 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6434 gdb_pymodule_addobject.
6435 * python/py-event.c (gdbpy_initialize_event_generic): Use
6436 gdb_pymodule_addobject.
6437 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6438 gdb_pymodule_addobject.
6439 * python/py-evts.c (add_new_registry): Use
6440 gdb_pymodule_addobject.
6441 (gdbpy_initialize_py_events): Likewise.
6442 * python/py-finishbreakpoint.c
6443 (gdbpy_initialize_finishbreakpoints): Use
6444 gdb_pymodule_addobject.
6445 * python/py-frame.c (gdbpy_initialize_frames): Use
6446 gdb_pymodule_addobject.
6447 * python/py-function.c (gdbpy_initialize_functions): Use
6448 gdb_pymodule_addobject.
6449 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6450 gdb_pymodule_addobject.
6451 * python/py-infthread.c (gdbpy_initialize_thread): Use
6452 gdb_pymodule_addobject.
6453 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6454 gdb_pymodule_addobject.
6455 * python/py-param.c (gdbpy_initialize_parameters): Use
6456 gdb_pymodule_addobject.
6457 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6458 gdb_pymodule_addobject.
6459 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6460 gdb_pymodule_addobject.
6461 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6462 gdb_pymodule_addobject.
6463 * python/py-type.c (gdbpy_initialize_types): Use
6464 gdb_pymodule_addobject.
6465 * python/py-utils.c (gdb_pymodule_addobject): New function.
6466 * python/py-value.c (gdbpy_initialize_values): Use
6467 gdb_pymodule_addobject.
6468 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6469 * python/python.c (_initialize_python): Use
6470 gdb_pymodule_addobject.
6471
6472 2013-05-20 Tom Tromey <tromey@redhat.com>
6473
6474 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6475 * python/py-param.c (get_set_value, get_show_value): Use
6476 explicit decrefs.
6477 * python/python.c (start_type_printers, apply_type_printers):
6478 Use explicit decrefs.
6479
6480 2013-05-20 Tom Tromey <tromey@redhat.com>
6481
6482 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6483 incref the module.
6484
6485 2013-05-20 Tom Tromey <tromey@redhat.com>
6486
6487 * python/python.c (gdbpy_run_events): Decref the result
6488 of PyObject_CallObject.
6489
6490 2013-05-20 Tom Tromey <tromey@redhat.com>
6491
6492 * python/py-symtab.c (set_sal): Use
6493 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6494 (symtab_and_line_to_sal_object): Update.
6495
6496 2013-05-20 Tom Tromey <tromey@redhat.com>
6497
6498 * python/py-param.c (compute_enum_values): Decref 'item'.
6499
6500 2013-05-20 Tom Tromey <tromey@redhat.com>
6501
6502 * mi/mi-main.c: Include python-internal.h.
6503 (mi_cmd_list_features): Check gdb_python_initialized.
6504 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6505 (python_inferior_exit, python_new_objfile, add_thread_object)
6506 (delete_thread_object, py_free_inferior): Check
6507 gdb_python_initialized.
6508 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6509 gdb_python_initialized.
6510 * python/py-type.c (save_objfile_types): Check
6511 gdb_python_initialized.
6512 * python/python-internal.h (gdb_python_initialized): Declare.
6513 * python/python.c (ensure_python_env): Throw exception if
6514 Python not initialized.
6515 (before_prompt_hook, source_python_script_for_objfile)
6516 (start_type_printers, apply_type_printers,
6517 free_type_printers): Check gdb_python_initialized.
6518 * varobj.c (varobj_get_display_hint)
6519 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6520 (install_new_value_visualizer, varobj_set_visualizer)
6521 (value_get_print_value): Check gdb_python_initialized.
6522
6523 2013-05-20 Tom Tromey <tromey@redhat.com>
6524
6525 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6526 Check errors.
6527 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6528 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6529 Check errors.
6530 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6531 Check errors.
6532 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6533 Check errors.
6534 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6535 Check errors.
6536 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6537 init function to return 'int'.
6538 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6539 Return 'int'. Check errors.
6540 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6541 Check errors.
6542 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6543 Return 'int'. Check errors.
6544 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6545 Check errors.
6546 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6547 Check errors.
6548 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6549 Check errors.
6550 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6551 Check errors.
6552 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6553 Check errors.
6554 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6555 Check errors.
6556 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6557 Check errors.
6558 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6559 Check errors.
6560 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6561 Check errors.
6562 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6563 Check errors.
6564 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6565 Check errors.
6566 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6567 Check errors.
6568 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6569 Check errors.
6570 * python/python-internal.h (gdbpy_initialize_auto_load,
6571 gdbpy_initialize_values, gdbpy_initialize_frames,
6572 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6573 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6574 gdbpy_initialize_blocks, gdbpy_initialize_types,
6575 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6576 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6577 gdbpy_initialize_finishbreakpoints,
6578 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6579 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6580 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6581 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6582 gdbpy_initialize_signal_event,
6583 gdbpy_initialize_breakpoint_event,
6584 gdbpy_initialize_continue_event,
6585 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6586 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6587 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6588 * python/python.c (gdb_python_initialized): New global.
6589 (gdbpy_initialize_events): Return 'int'. Check errors.
6590 (_initialize_python): Check errors. Set
6591 gdb_python_initialized.
6592
6593 2013-05-20 Tom Tromey <tromey@redhat.com>
6594
6595 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6596 Decref the reslut of PyObject_CallMethod.
6597
6598 2013-05-20 Tom Tromey <tromey@redhat.com>
6599
6600 * python/py-event.c (gdbpy_initialize_event_generic): Return
6601 early if PyType_Ready fails.
6602
6603 2013-05-20 Tom Tromey <tromey@redhat.com>
6604
6605 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6606 as 'default' in the switch.
6607
6608 2013-05-20 Tom Tromey <tromey@redhat.com>
6609
6610 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6611 get_addr_from_python calls out of TRY_CATCH.
6612 (infpy_write_memory, infpy_search_memory): Likewise.
6613 * python/py-utils.c (get_addr_from_python): Return negative
6614 value on error. Use TRY_CATCH.
6615 * python/python-internal.h (get_addr_from_python): Use
6616 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6617
6618 2013-05-20 Tom Tromey <tromey@redhat.com>
6619
6620 * python/py-event.c (evpy_emit_event): Decref the
6621 result of PyObject_CallFunctionObjArgs.
6622
6623 2013-05-20 Tom Tromey <tromey@redhat.com>
6624
6625 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6626 Correctly decref.
6627
6628 2013-05-20 Tom Tromey <tromey@redhat.com>
6629
6630 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6631
6632 2013-05-20 Tom Tromey <tromey@redhat.com>
6633
6634 * python/py-event.h (gdbpy_initialize_event_generic): Use
6635 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6636 * python/py-evts.c (add_new_registry): Use
6637 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6638 * python/python-internal.h
6639 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6640
6641 2013-05-20 Tom Tromey <tromey@redhat.com>
6642
6643 * python/py-arch.c (archpy_disassemble): Update.
6644 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6645 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6646 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6647 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6648 macro.
6649 (GDB_PY_HANDLE_EXCEPTION): Update.
6650 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6651
6652 2013-05-20 Tom Tromey <tromey@redhat.com>
6653
6654 * python/python-internal.h (events_object_type): Remove.
6655
6656 2013-05-20 Tom Tromey <tromey@redhat.com>
6657
6658 * python/py-event.h (evpy_emit_event): Use
6659 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6660 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6661 New macro.
6662
6663 2013-05-20 Tom Tromey <tromey@redhat.com>
6664
6665 * py-evtregistry.c (create_event_object): Decref
6666 eventregistry_object if PyList_New fails.
6667
6668 2013-05-20 Tom Tromey <tromey@redhat.com>
6669
6670 * py-cmd.c (gdbpy_string_to_argv): Check result of
6671 PyList_New.
6672
6673 2013-05-20 Tom Tromey <tromey@redhat.com>
6674
6675 * python/python.c (before_prompt_hook): Add cleanup to
6676 decref 'hook'.
6677
6678 2013-05-20 Tom Tromey <tromey@redhat.com>
6679
6680 * python/py-function.c (fnpy_init): Decref result of
6681 PyObject_GetAttrString.
6682
6683 2013-05-20 Tom Tromey <tromey@redhat.com>
6684
6685 * python/py-threadevent.c (get_event_thread): Use
6686 CPYCHECKER_RETURNS_BORROWED_REF.
6687 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6688 New define.
6689 (pspace_to_pspace_object, objfile_to_objfile_object)
6690 (find_thread_object): Use it.
6691
6692 2013-05-20 Tom Tromey <tromey@redhat.com>
6693
6694 * python/py-arch.c (arch_object_type): Use
6695 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6696 * python/py-block.c (block_syms_iterator_object_type):
6697 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6698 * python/py-bpevent.c (breakpoint_event_object_type):
6699 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6700 * python/py-cmd.c (cmdpy_object_type): Use
6701 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6702 * python/py-continueevent.c (continue_event_object_type):
6703 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6704 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6705 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6706 * python/py-events.h (thread_event_object_type):
6707 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6708 * python/py-evtregistry.c (eventregistry_object_type): Use
6709 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6710 * python/py-exitedevent.c (exited_event_object_type):
6711 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6712 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6713 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6714 * python/py-function.c (fnpy_object_type): Use
6715 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6716 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6717 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6718 * python/py-infthread.c (thread_object_type): Use
6719 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6720 * python/py-lazy-string.c (lazy_string_object_type):
6721 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6722 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6723 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6724 * python/py-objfile.c (objfile_object_type): Use
6725 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6726 * python/py-param.c (parmpy_object_type):
6727 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6728 * python/py-progspace.c (pspace_object_type):
6729 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6730 * python/py-signalevent.c (signal_event_object_type):
6731 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6732 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6733 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6734 * python/py-type.c (type_object_type, field_object_type)
6735 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6736 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6737 define.
6738 (value_object_type, block_object_type, symbol_object_type)
6739 (event_object_type, stop_event_object_type, breakpoint_object_type)
6740 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6741
6742 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6743
6744 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6745 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6746
6747 2013-05-20 Doug Evans <dje@google.com>
6748
6749 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6750 For Fission.
6751 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6752 reading_dwo_directly.
6753 (struct signatured_type): New member dwo_unit.
6754 (struct die_reader_specs): New member comp_dir.
6755 (create_signatured_type_table_from_index): Use malloc for
6756 all_type_units instead of objfile's obstack.
6757 (create_all_type_units): Ditto.
6758 (fill_in_sig_entry_from_dwo_entry): New function.
6759 (add_type_unit): New function.
6760 (lookup_dwo_signatured_type): New function.
6761 (lookup_dwp_signatured_type): New function.
6762 (lookup_signatured_type): New arg cu. All callers updated.
6763 (init_cu_die_reader): Initialize comp_dir.
6764 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6765 Change assert of matching type signatures to call error on mismatch.
6766 (lookup_dwo_unit): Add assert.
6767 (init_tu_and_read_dwo_dies): New function.
6768 (init_cutu_and_read_dies): Call it.
6769 (build_type_unit_groups): Handle case of no type unit groups created.
6770 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6771 (lookup_dwo_cutu): Tweak complaint.
6772 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6773 (dwarf2_per_objfile_free): Free all_type_units.
6774
6775 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6776
6777 * windows-nat.c (handle_unload_dll): Add missing empty line.
6778
6779 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6780
6781 * dwarf2read.c (prototyped_function_p): New function.
6782 (read_subroutine_type): Use it.
6783
6784 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6785
6786 * rs6000-aix-tdep.c: De-indent some example code provided
6787 as a comment.
6788
6789 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6790
6791 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6792 region is ok for a hardware watchpoint using the new ptrace interface
6793 on Power servers.
6794
6795 2013-05-17 Doug Evans <dje@google.com>
6796
6797 * NEWS: Mention new maintenance commands check-symtabs, and
6798 expand-symtabs, and renamed check-psymtabs.
6799 * psymtab.c (maintenance_check_psymtabs): Renamed from
6800 maintenance_check_symtabs. Only process already-expanded symbol
6801 tables.
6802 (_initialize_psymtab): Update.
6803 * symmisc.c (maintenance_check_symtabs): New function.
6804 (maintenance_expand_name_matcher): New function
6805 (maintenance_expand_file_matcher): New function
6806 (maintenance_expand_symtabs): New function.
6807 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6808 commands.
6809
6810 2013-05-17 Tom Tromey <tromey@redhat.com>
6811
6812 * python/py-inferior.c (infpy_read_memory): Don't call
6813 PyErr_SetString if PyObject_New fails.
6814 * python/py-frame.c (frame_info_to_frame_object): Don't call
6815 PyErr_SetString if PyObject_New fails.
6816
6817 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6818
6819 * acinclude.m4: Add check for dlopen in libdl.
6820 * configure.ac: Ditto.
6821 * configure: Regenerate.
6822
6823 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6824
6825 * frame.c (frame_stash): Convert to htab.
6826 (frame_addr_hash): New function.
6827 (frame_addr_hash_eq): New function.
6828 (frame_stash_create): Convert function to create
6829 a hash table.
6830 (frame_stash_add): Convert function to add an entry to a hash
6831 table.
6832 (frame_stash_find): Convert function to search the hash table.
6833 (frame_stash_invalidate): Convert function to empty the hash
6834 table.
6835 (get_frame_id): Only add to stash if a frame_id is created.
6836 (_initialize_frame): Call frame_stash_create.
6837
6838 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6839
6840 * configure.ac: Ensure MIG is available when building for GNU Hurd
6841 hosts.
6842 * configure: Regenerate.
6843
6844 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6845
6846 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6847
6848 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6849
6850 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6851 all cleanups are done before returning from this function.
6852
6853 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6854
6855 * utils.h: #include "exceptions.h".
6856 (enum errors): Remove partial declaration.
6857
6858 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6859
6860 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6861 * gdbarch.h, gdbarch.c: Regenerate.
6862 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6863 handling.
6864
6865 * rs6000-aix-tdep.h: New file.
6866 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6867 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6868 "xml-utils.h".
6869 (struct field_info, struct ld_info_desc): New types.
6870 (ld_info32_desc, ld_info64_desc): New static constants.
6871 (struct ld_info): New type.
6872 (rs6000_aix_extract_ld_info): New function.
6873 (rs6000_aix_shared_library_to_xml): Likewise.
6874 (rs6000_aix_ld_info_to_xml): Likewise.
6875 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6876 (rs6000_aix_init_osabi): Add call to
6877 set_gdbarch_core_xfer_shared_libraries_aix.
6878 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6879 Remove "xml-utils.h" include.
6880 (LdInfo): Delete typedef.
6881 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6882 Delete macros.
6883 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6884 Adjust code accordingly.
6885 (rs6000_core_ldinfo): Delete, folded into
6886 rs6000_aix_core_xfer_shared_libraries_aix.
6887 (rs6000_xfer_shared_library): Delete.
6888 (rs6000_xfer_shared_libraries): Reimplement.
6889
6890 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6891
6892 * record.c (record_goto_cmdlist): New.
6893 (cmd_record_goto): Split into this ...
6894 (cmd_record_goto_begin): ... this
6895 (cmd_record_goto_end): ... and this.
6896 (_initialize_record): Change "record goto" to prefix command.
6897 Add commands for "record goto begin" and "record goto end".
6898 Add an alias for "record goto start" to "record goto begin".
6899
6900 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6901
6902 * linespec.c (convert_linespec_to_sals): New comment for
6903 SOURCE_FILENAME assignment.
6904
6905 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6908 internal_warning.
6909
6910 2013-05-14 Tom Tromey <tromey@redhat.com>
6911
6912 * eval.c (parse_and_eval_long): Make 'exp' const.
6913 * value.h (parse_and_eval_long): Update.
6914
6915 2013-05-14 Tom Tromey <tromey@redhat.com>
6916
6917 * ui-file.c (gdb_fopen): Make arguments const.
6918 * ui-file.h (gdb_fopen): Make arguments const.
6919
6920 2013-05-14 Tom Tromey <tromey@redhat.com>
6921
6922 * remote.c (remote_set_trace_notes): Make arguments const.
6923 * target.c (update_current_target): Update cast.
6924 * target.h (to_set_trace_notes): Make arguments const.
6925
6926 2013-05-14 Tom Tromey <tromey@redhat.com>
6927
6928 * go32-nat.c (go32_terminal_info): Make 'args' const.
6929 * inferior.h (child_terminal_info): Update.
6930 * inflow.c (child_terminal_info): Make 'args' const.
6931 * target.c (default_terminal_info): Make 'args' const.
6932 (debug_to_terminal_save_ours): Likewise.
6933 * target.h (struct target_ops) <to_terminal_info>: Make argument
6934 const.
6935
6936 2013-05-13 Tom Tromey <tromey@redhat.com>
6937
6938 * gcore.c (create_gcore_bfd): Make 'filename' const.
6939 * gcore.h (create_gcore_bfd): Make 'filename' const.
6940 * record-full.c (record_full_save): Make 'recfilename' const.
6941 * target.c (target_save_record): Make 'filename' const.
6942 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6943 const.
6944 (target_save_record): Likewise.
6945
6946 2013-05-13 Tom Tromey <tromey@redhat.com>
6947
6948 PR gdb/15338:
6949 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6950 ranges section has been read.
6951
6952 2013-05-13 Tom Tromey <tromey@redhat.com>
6953
6954 PR exp/15364:
6955 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6956 STRUCTOP_PTR>: Return a not_lval value for
6957 EVAL_AVOID_SIDE_EFFECTS.
6958 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6959 for EVAL_AVOID_SIDE_EFFECTS.
6960
6961 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6962
6963 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6964 floating point registers to register type before storing
6965 value.
6966 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6967 Likewise.
6968
6969 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6970 Tom Tromey <tromey@redhat.com>
6971
6972 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6973 New functions.
6974 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6975 Declare.
6976 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6977 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6978 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6979 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6980
6981 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6982 Tom Tromey <tromey@redhat.com>
6983
6984 PR build/15414:
6985 * configure: Rebuild.
6986 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6987 with -Wno-format.
6988
6989 2013-05-10 Pedro Alves <palves@redhat.com>
6990
6991 * remote.c (_initialize_remote): Fix spelling of
6992 qXfer:traceframe-info:read packet in packet config command.
6993
6994 2013-05-10 David Taylor <dtaylor@emc.com>
6995
6996 PR remote/15455
6997
6998 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6999 "QTro" at start of packet.
7000
7001 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7002
7003 * solib-aix.c (solib_aix_relocate_section_addresses):
7004 For the .bss section action, apply the same offset as
7005 the .data section.
7006
7007 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7008
7009 * solib-aix.c (solib_aix_relocate_section_addresses):
7010 Remove FIXME comment.
7011
7012 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7013
7014 PR tdep/15420:
7015 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7016 New functions, directly copied from sparc-sol-thread.c.
7017 * sparc-sol-thread.c: Delete.
7018 * configure.ac: Remove code handling sparc-solaris-thread.c.
7019 * configure: Regenerate.
7020
7021 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7022
7023 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7024 filter logic.
7025 (backtrace_command): Add "no-filters" option parsing.
7026 (_initialize_stack): Alter help to reflect "no-filters" option.
7027 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7028 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7029 (py-frame.o): Add target
7030 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7031 filter files.
7032 * python/python.h: Add new frame filter constants, and flag enum.
7033 (apply_frame_filter): Add definition.
7034 * python/python.c (apply_frame_filter): New non-Python
7035 enabled function.
7036 * python/py-utils.c (py_xdecref): New function.
7037 (make_cleanup_py_xdecref): Ditto.
7038 * python/py-objfile.c: Declare frame_filters dictionary.
7039 (objfpy_dealloc): Add frame_filters dealloc.
7040 (objfpy_new): Initialize frame_filters attribute.
7041 (objfile_to_objfile_object): Ditto.
7042 (objfpy_get_frame_filters): New function.
7043 (objfpy_set_frame_filters): New function.
7044 * python/py-progspace.c: Declare frame_filters dictionary.
7045 (pspy_dealloc): Add frame_filters dealloc.
7046 (pspy_new): Initialize frame_filters attribute.
7047 (pspacee_to_pspace_object): Ditto.
7048 (pspy_get_frame_filters): New function.
7049 (pspy_set_frame_filters): New function.
7050 * python/py-framefilter.c: New file.
7051 * python/lib/gdb/command/frame_filters.py: New file.
7052 * python/lib/gdb/frames.py: New file.
7053 * python/lib/gdb/__init__.py: Initialize global frame_filters
7054 dictionary
7055 * python/lib/gdb/FrameDecorator.py: New file.
7056 * python/lib/gdb/FrameIterator.py: New file.
7057 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7058 * mi/mi-cmds.h: Declare.
7059 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7060 --no-frame-filter logic, and Python frame filter logic.
7061 (stack_enable_frame_filters): New function.
7062 (parse_no_frame_option): Ditto.
7063 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7064 filter logic.
7065 (mi_cmd_stack_list_locals): Ditto.
7066 (mi_cmd_stack_list_args): Ditto.
7067 (mi_cmd_stack_list_variables): Ditto.
7068 * NEWS: Add frame filter note.
7069
7070 2013-05-09 Doug Evans <dje@google.com>
7071
7072 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7073 All callers updated.
7074 (syms_from_objfile): Ditto. Make static.
7075 (symbol_file_add_with_addrs): Renamed from
7076 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7077 num_offsets. All callers updated.
7078 * symfile.h (syms_from_objfile): Delete.
7079
7080 * symfile.c (decrement_reading_symtab): Add assert.
7081 (increment_reading_symtab): Ditto.
7082
7083 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7084
7085 * source.c (forward_search_command): Replace call to getc
7086 by call to fgetc.
7087 (reverse_search_command): Likewise.
7088
7089 2013-05-08 Doug Evans <dje@google.com>
7090
7091 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7092 matching test.
7093
7094 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7095
7096 * sol-thread.c (info_cb): Factorize the code a little.
7097
7098 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7099
7100 * sol-thread.c (info_cb): Rework the output of the "maintenance
7101 info sol-threads" command a bit.
7102
7103 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7104
7105 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7106 Replace ti.ti_startfunc by ti.ti_pc.
7107
7108 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7109
7110 * solib-aix.c (solib_aix_free_library_list): New function
7111 for the case where HAVE_LIBEXPAT is not defined.
7112
7113 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7114
7115 PR breakpoints/15413:
7116 * breakpoint.c (condition_completer): Simplify the code to
7117 disconsider multiple locations of breakpoints when completing the
7118 "condition" command.
7119
7120 2013-05-07 Pierre Muller <muller@sourceware.org>
7121
7122 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7123 instead of <sys/wait.h>.
7124
7125 2013-05-07 Pierre Muller <muller@sourceware.org>
7126
7127 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7128 trailing new line from warning message.
7129
7130 2013-05-07 Pierre Muller <muller@sourceware.org>
7131
7132 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7133 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7134
7135 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7136
7137 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7138 error message (ARI fix).
7139
7140 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7141
7142 * features/library-list-aix.dtd: Replace library-list by
7143 library-list-aix.
7144 * rs6000-nat.c: Replace library-list by library-list-aix
7145 throughout.
7146 * solib-aix.c: Likewise.
7147
7148 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7149
7150 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7151 Renames TARGET_OBJECT_AIX_LIBRARIES.
7152 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7153 TARGET_OBJECT_LIBRARIES_AIX throughout.
7154 * solib-aix.c: Likwise.
7155
7156 2013-05-07 Yao Qi <yao@codesourcery.com>
7157
7158 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7159 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7160
7161 2013-05-07 Yao Qi <yao@codesourcery.com>
7162
7163 * solib-dsbt.c (enable_break): Declare.
7164 (dsbt_current_sos): Remove call to enable_break2.
7165 (enable_break2): Rename to enable_break. Set solib breakpoint
7166 on '_dl_debug_state'.
7167 (enable_break): Remove.
7168
7169 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7170
7171 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7172 debug state prior to replicating existing hardware watchpoints or
7173 breakpoints.
7174
7175 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7176
7177 * gcore.c (gcore_create_callback): Ignore sections with
7178 separate_debug_objfile_backlink != NULL.
7179
7180 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7181 Andrew Jenner <andrew@codesourcery.com>
7182 Chung-Lin Tang <cltang@codesourcery.com>
7183 Julian Brown <julian@codesourcery.com>
7184
7185 Based on the nios2-elf port from Altera Corporation.
7186
7187 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7188 nios2-linux-tdep.o.
7189 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7190 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7191 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7192 * nios2-tdep.h: New.
7193 * nios2-tdep.c: New.
7194 * nios2-linux-tdep.c: New.
7195 * features/Makefile (WHICH): Add nios2-linux.
7196 (nios2-linux-expedite): Set.
7197 * features/nios2-cpu.xml: New.
7198 * features/nios2.xml: New.
7199 * features/nios2-linux.xml: New.
7200 * features/nios2.c: New (autogenerated).
7201 * features/nios2-linux.c: New (autogenerated).
7202 * regformats/nios2-linux.dat: New (autogenerated).
7203 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7204 and commands.
7205
7206 2013-05-06 Doug Evans <dje@google.com>
7207
7208 * symfile.c: Whitespace cleanup.
7209
7210 * solist.h (struct target_so_ops): New member clear_so.
7211 * solib-svr4.c (svr4_clear_so): New function.
7212 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7213 * solib.c (clear_so): Renamed from free_so_symbols.
7214 All callers updated. Call target clear_so if it exists.
7215
7216 2013-05-06 Tom Tromey <tromey@redhat.com>
7217
7218 * ada-lang.c (ada_value_primitive_packed_val): Don't
7219 call value_incref.
7220 * value.c (set_value_parent): Incref the new parent and decref
7221 the old parent.
7222 (value_copy, value_primitive_field): Use set_value_parent.
7223
7224 2013-05-06 Tom Tromey <tromey@redhat.com>
7225
7226 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7227 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7228 if needed.
7229 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7230 * dwarf2read.c (write_constant_as_bytes)
7231 (dwarf2_fetch_constant_bytes): New functions.
7232
7233 2013-05-06 Tom Tromey <tromey@redhat.com>
7234
7235 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7236 parameters.
7237 (dwarf2_const_value_attr): Update.
7238
7239 2013-05-06 Tom Tromey <tromey@redhat.com>
7240
7241 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7242 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7243 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7244 Remove declaration.
7245
7246 2013-05-06 Tom Tromey <tromey@redhat.com>
7247
7248 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7249 objfile's obstack.
7250
7251 2013-05-06 Doug Evans <dje@google.com>
7252
7253 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7254 * stabsread.h (process_one_symbol): Update declaration.
7255 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7256 * elfread.c (elf_symfile_relocate_probe): Ditto.
7257 * psymtab.c (relocate_psymtabs): Ditto.
7258 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7259 (objfile_relocate): Ditto.
7260 * objfiles.h (objfile_relocate): Update declaration.
7261 * symfile.c (relative_addr_info_to_section_offsets): Constify
7262 addrs parameter.
7263 (default_symfile_offsets): Ditto.
7264 (syms_from_objfile_1): Constify offsets parameter.
7265 (syms_from_objfile): Ditto.
7266 (symbol_file_add_with_addrs_or_offsets): Ditto.
7267 (symfile_map_offsets_to_segments): Constify data parameter.
7268 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7269 delta parameters of member relocate.
7270 (struct sym_probe_fns): Constify new_offsets,
7271 delta parameters of member sym_relocate_probe.
7272 (struct sym_fns): Constify section_addr_info parameter of member
7273 sym_offsets.
7274 (relative_addr_info_to_section_offsets): Update declaration.
7275 (default_symfile_offsets): Ditto.
7276 (syms_from_objfile): Ditto.
7277 (symfile_map_offsets_to_segments): Ditto.
7278
7279 * symfile.c (syms_from_objfile_1): Use correct section count when
7280 objfile->sf == NULL.
7281
7282 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7283
7284 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7285
7286 2013-05-06 Doug Evans <dje@google.com>
7287
7288 * psympriv.h (struct partial_symtab): Augment comment for member
7289 section_offsets.
7290
7291 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7292
7293 Reimplement shared library support on ppc-aix...
7294 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7295 * features/library-list-aix.dtd: New file.
7296 * solib-aix.h, solib-aix.c: New file.
7297 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7298 (rs6000_find_toc_address_hook): Delete.
7299 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7300 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7301 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7302 "xml-utils.h".
7303 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7304 (vmap_symtab, fixup_breakpoints): Delete.
7305 (rs6000_xfer_shared_libraries): New function.
7306 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7307 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7308 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7309 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7310 (rs6000_xfer_shared_library): New function.
7311 (find_toc_address): Delete.
7312 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7313 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7314 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7315 before creating minimal symbol. Adjust function description
7316 accordingly.
7317 (scan_xcoff_symtab): Replace call to
7318 prim_record_minimal_symbol_and_info by call to
7319 record_minimal_symbol.
7320 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7321 around default_symfile_offsets.
7322 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7323 powerpc-aix targets.
7324 * config/rs6000/nm-rs6000.h: Delete.
7325 * config/powerpc/aix.mh (NAT_FILE): Delete.
7326 (NATDEPFILES): Remove xcoffsolib.o.
7327 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7328 (ALL_TARGET_OBS): Add solib-aix.o.
7329 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7330 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7331 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7332 * xcoffsolib.h, xcoffsolib.c: Delete.
7333
7334 * solib.c (reload_shared_libraries): Remove reference to
7335 SOLIB_CREATE_INFERIOR_HOOK.
7336 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7337 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7338 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7339 comment.
7340 * corelow.c (deprecated_core_resize_section_table): Delete.
7341 * exec.c: Remove include of xcoffsolib.h".
7342 (map_vmap, vmap): Delete.
7343 (exec_close_1): Remove references to vmap.
7344 (exec_file_attach): Remove vmap handling code, and reference
7345 to DEPRECATED_IBM6000_TARGET.
7346 (bfdsec_to_vmap): Delete.
7347 (exec_files_info): Remove block of code handling VMAP.
7348 * infcmd.c (post_create_inferior): Remove reference to
7349 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7350 * infrun.c (follow_exec): Remove reference to
7351 SOLIB_CREATE_INFERIOR_HOOK.
7352 * stack.c (print_frame): Remove reference to PC_SOLIB.
7353 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7354 (dsbt_relocate_main_executable): Likewise.
7355 * solib-frv.c (frv_current_sos): Likewise.
7356
7357 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7358
7359 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7360 to target_write_memory and target_read_memory.
7361
7362 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7363
7364 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7365 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7366
7367 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7368
7369 * darwin-nat.c: Replace all "%x" instances in format strings
7370 into "0x%x" throughout.
7371
7372 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7373
7374 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7375 gdb_assert by call to MACH_CHECK_ERROR.
7376 (darwin_attach_pid): Raise an error rather than a failed
7377 assertion when various system calls failed. Report a warning
7378 instead of raising a failed assertion when PREV_NOT is not NULL
7379 after call to mach_port_request_notification.
7380 (darwin_ptrace_me): Raise an error rather than a failed
7381 assertion when read returns nonzero.
7382
7383 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7384
7385 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7386
7387 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7388
7389 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7390
7391 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7392
7393 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7394 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7395 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7396 a stale cleanup. Fix double free of NAME.
7397
7398 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7399
7400 * windows-nat.c (windows_delete_thread): Accept an additional
7401 argument, the thread's exit code, and announce thread death when
7402 print_thread_events is non-zero and we are deleting a thread that
7403 is not the main thread.
7404 (get_windows_debug_event): Pass thread exit code to
7405 windows_delete_thread.
7406
7407 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7408
7409 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7410 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7411 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7412 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7413 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7414 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7415 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7416 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7417 (gdbarch_tdep): New struct.
7418 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7419 E_NUM_REGS.
7420 (v850e3v5_register_name): New function.
7421 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7422 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7423 code handling the struct return conventions for the RH850 ABI.
7424 Update all callers.
7425 (v850_eight_byte_align_p): New function.
7426 (v850_push_call_dummy): Push structs by value, not by reference
7427 for the RH850 ABI. Add support for eight byte alignment.
7428 (v850_dbtrap_breakpoint_from_pc): New function.
7429 (v850_gdbarch_init): Add ABI detection code. Register
7430 v850e3v5_register_name for the v850e3v5 architecture. Set the
7431 number of registers for v850e3v5. Register
7432 v850_dbtrap_breakpoint_from_pc as appropriate.
7433 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7434
7435 2013-05-03 Doug Evans <dje@google.com>
7436
7437 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7438 of bfd_count_sections.
7439 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7440 * symfile.c (default_symfile_offsets): Ditto.
7441 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7442 one entry, not bfd_count_sections entries.
7443
7444 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7445
7446 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7447 `save' and `restore' register groups. Don't include SPL
7448 or SPH in these groups.
7449 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7450 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7451 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7452 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7453 dwarf2_append_unwinders().
7454
7455 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7456
7457 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7458 ignore SIGINT and SIGTRAP in case these internal signals are
7459 caught explicitely.
7460
7461 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7462
7463 * darwin-nat.c (darwin_read_write_inferior): Change types
7464 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7465 of copy_count to "mach_msg_type_number_t".
7466 (darwin_read_dyld_info): Change type of parameter
7467 rdaddr to "gdb_byte *".
7468
7469 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7470
7471 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7472 of &info->load_map from "char *" to "gdb_byte *".
7473
7474 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7475
7476 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7477 from "char *" to "gdb_byte *".
7478 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7479
7480 2013-04-30 Doug Evans <dje@google.com>
7481
7482 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7483 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7484 DWO stub. If DWO isn't found, just use stub.
7485 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7486
7487 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7488 calling init_cutu_and_read_dies.
7489
7490 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7491
7492 * target-descriptions.c (maint_print_c_tdesc_cmd):
7493 Add case to parse structures as register types and
7494 bitfields.
7495
7496 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7497
7498 * MAINTAINERS (Write After Approval): Add myself to the list.
7499
7500 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7501
7502 * sol-thread.c (rw_common): Change type of parameter "buf"
7503 to "gdb_byte *".
7504 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7505 rw_common to "gdb_byte *" instead of "char *".
7506
7507 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7508
7509 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7510 of local variable msym to const struct bound_minimal_symbol.
7511 Adjust use accordingly.
7512 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7513
7514 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7515
7516 * i386gnu-nat.c (CREG_OFFSET): New macro.
7517 (creg_offset): New array.
7518 (CREG_ADDR): Use creg_offset instead of reg_offset.
7519
7520 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7521
7522 * mep-tdep.c (mep_write_pc): Delete.
7523 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7524 Add call to set_gdbarch_pc_regnum.
7525
7526 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7527
7528 * common/filestuff.c: Replace #include <dirent.h> by
7529 #include "gdb_dirent.h".
7530
7531 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7532
7533 * common/filestuff.c: Replace #include <sys/stat.h> by
7534 #include "gdb_stat.h".
7535
7536 2013-04-29 Pierre Muller <muller@sourceware.org>
7537
7538 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7539 editCase function rule.
7540 (get_DW_AT_signature_type): Likewise.
7541
7542 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7543
7544 * m32r-tdep.c (m32r_write_pc): Delete.
7545 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7546 Add call to set_gdbarch_pc_regnum.
7547
7548 2013-04-29 Pierre Muller <muller@sourceware.org>
7549
7550 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7551
7552 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7553
7554 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7555
7556 2013-04-28 Yao Qi <yao@codesourcery.com>
7557
7558 * solib-dsbt.c (fetch_loadmap): Re-indent.
7559 (displacement_from_map, enable_break2): Likewise.
7560 (dsbt_relocate_section_addresses): Likewise.
7561
7562 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7563
7564 GDB 7.6 released.
7565
7566 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7567
7568 PR corefiles/14983:
7569 * dwarf2read.c (process_full_comp_unit): Always create a static
7570 block.
7571
7572 2013-04-25 Hui Zhu <hui@codesourcery.com>
7573
7574 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7575 to loc->cmd_bytecode.
7576
7577 2013-04-24 Doug Evans <dje@google.com>
7578
7579 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7580
7581 2013-04-22 Keith Seitz <keiths@redhat.com>
7582
7583 * tracepoint.c (trace_save): Call the writer's start method.
7584
7585 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7586
7587 PR gdb/10462
7588 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7589 before argument.
7590
7591 2013-04-23 Tom Tromey <tromey@redhat.com>
7592
7593 * common/filestuff.c: Check USE_WIN32API before including
7594 sys/socket.h.
7595 (HAVE_F_GETFD): New define.
7596 (mark_cloexec): Check HAVE_F_GETFD.
7597 (gdb_open_cloexec): Change 'mode' to unsigned long.
7598 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7599 (gdb_pipe_cloexec): Check HAVE_PIPE.
7600 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7601 long.
7602
7603 2013-04-23 Hui Zhu <hui@codesourcery.com>
7604
7605 PR gdb/15293
7606 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7607
7608 2013-04-23 Hui Zhu <hui@codesourcery.com>
7609
7610 PR gdb/15165
7611 * breakpoint.c (dprintf_print_recreate): New.
7612 (save_breakpoints): Let it not save dprintf commands.
7613 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7614
7615 2013-04-22 Tom Tromey <tromey@redhat.com>
7616
7617 PR gdb/7912:
7618 * Makefile.in (SFILES): Add filestuff.c
7619 (COMMON_OBS): Add filestuff.o.
7620 (filestuff.o): New target.
7621 * auto-load.c (auto_load_objfile_script_1): Use
7622 gdb_fopen_cloexec.
7623 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7624 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7625 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7626 * common/agent.c (gdb_connect_sync_socket): Use
7627 gdb_socket_cloexec.
7628 * common/filestuff.c: New file.
7629 * common/filestuff.h: New file.
7630 * common/linux-osdata.c (linux_common_core_of_thread)
7631 (command_from_pid, commandline_from_pid, print_source_lines)
7632 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7633 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7634 gdb_fopen_cloexec.
7635 * common/linux-procfs.c (linux_proc_get_int)
7636 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7637 * config.in, configure: Rebuild.
7638 * configure.ac: Don't check for sys/socket.h. Check for
7639 fdwalk, pipe2.
7640 * corelow.c (core_open): Use gdb_open_cloexec.
7641 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7642 * fork-child.c (fork_inferior): Call close_most_fds.
7643 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7644 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7645 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7646 Use gdb_fopen_cloexec.
7647 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7648 gdb_open_cloexec.
7649 (linux_async_pipe): Use gdb_pipe_cloexec.
7650 * remote-fileio.c (remote_fileio_func_open): Use
7651 gdb_open_cloexec.
7652 * remote.c (remote_file_put, remote_file_get): Use
7653 gdb_fopen_cloexec.
7654 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7655 close_most_fds.
7656 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7657 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7658 * solib.c (solib_find): Use gdb_open_cloexec.
7659 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7660 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7661 (tfile_open): Use gdb_open_cloexec.
7662 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7663 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7664 * xml-support.c (xml_fetch_content_from_file): Use
7665 gdb_fopen_cloexec.
7666 * main.c (captured_main): Call notice_open_fds.
7667
7668 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7669
7670 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7671 'char *' to 'gdb_byte *'.
7672 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7673 'gdb_byte'.
7674
7675 2013-04-22 Yao Qi <yao@codesourcery.com>
7676
7677 * infrun.c: Fix typo in comment.
7678
7679 2013-04-22 Andrew Haley <aph@redhat.com>
7680
7681 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7682 instead of "long".
7683
7684 2013-04-20 Yao Qi <yao@codesourcery.com>
7685
7686 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7687 'char *' to 'gdb_byte *'. Cast the return value of
7688 'bt_ctf_get_char_array' to 'gdb_byte *'.
7689
7690 2013-04-19 Pedro Alves <palves@redhat.com>
7691
7692 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7693 -Wpointer-sign.
7694 * configure: Regenerate.
7695
7696 2013-04-19 Pedro Alves <palves@redhat.com>
7697
7698 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7699 'void *'.
7700
7701 2013-04-19 Pedro Alves <palves@redhat.com>
7702
7703 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7704 Change type of 'myaddr' parameter to gdb_byte pointer.
7705 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7706 to 'long long' pointer instead of to 'unsigned long long'.
7707 (monitor_write_memory_block, monitor_read_memory_single)
7708 (monitor_read_memory): Change type of 'myaddr' parameter to
7709 gdb_byte pointer.
7710
7711 2013-04-19 Pedro Alves <palves@redhat.com>
7712
7713 * record.c (validate_history_size): Make parameter 'setting'
7714 unsigned.
7715
7716 2013-04-19 Pedro Alves <palves@redhat.com>
7717
7718 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7719 to 'gdb_byte *'.
7720
7721 2013-04-19 Pedro Alves <palves@redhat.com>
7722
7723 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7724 local to int.
7725
7726 2013-04-19 Pedro Alves <palves@redhat.com>
7727
7728 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7729 * ada-tasks.c (read_fat_string_value): Likewise.
7730
7731 2013-04-19 Pedro Alves <palves@redhat.com>
7732
7733 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7734 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7735 'offset', and adjust.
7736
7737 2013-04-19 Pedro Alves <palves@redhat.com>
7738
7739 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7740 (read_index_from_section): Add cast to 'char *'.
7741
7742 2013-04-19 Pedro Alves <palves@redhat.com>
7743
7744 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7745
7746 2013-04-19 Pedro Alves <palves@redhat.com>
7747
7748 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7749
7750 2013-04-19 Pedro Alves <palves@redhat.com>
7751
7752 * record-full.c (record_full_get_bookmark): Change local 'ret'
7753 type to char * and add cast to gdb_byte *.
7754 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7755 string.
7756 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7757
7758 2013-04-19 Pedro Alves <palves@redhat.com>
7759
7760 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7761 * python/py-prettyprint.c (print_string_repr): Change type of
7762 'output' local to char *. Add cast to gdb_byte * in
7763 LA_PRINT_STRING call.
7764 (print_children): Change type of 'output' local to char *.
7765 * python/py-value.c (valpy_string): Add cast to const char * in
7766 PyUnicode_Decode call.
7767
7768 2013-04-19 Pedro Alves <palves@redhat.com>
7769
7770 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7771 and change its type to 'const char *'. Adjust.
7772 (mips_send_packet): Add cast to 'char *', and remove cast to
7773 'unsigned char *'.
7774 (mips_receive_packet): Remove cast to 'unsigned char *'.
7775 (mips_load_srec): Use bfd_byte.
7776 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7777 (pmon_checkset): Make 'value' parameter unsigned.
7778
7779 2013-04-19 Pedro Alves <palves@redhat.com>
7780
7781 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7782
7783 2013-04-19 Pedro Alves <palves@redhat.com>
7784
7785 * remote.c (remote_write_bytes_aux, compare_sections_command)
7786 (remote_read_qxfer)
7787 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7788 (remote_hostio_readlink, remote_bfd_iovec_pread)
7789 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7790 binary buffer, and char when buffer is used as string.
7791 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7792 (trace_save, tfile_open, traceframe_walk_blocks)
7793 (tfile_fetch_registers): Likewise.
7794
7795 2013-04-19 Pedro Alves <palves@redhat.com>
7796
7797 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7798 buffer and size_t size. Adjust.
7799 * ser-base.h (ser_base_write): Adjust.
7800 * ser-go32.c (cnts): Change type to size_t.
7801 (dos_write): Change prototype -- take 'void *'
7802 buffer and size_t size. Adjust.
7803 (dos_info): Print elements of 'cnts' as unsigned long.
7804 * serial.c (serial_write): Likewise.
7805 * serial.h (serial_write): Adjust.
7806 (struct serial_ops) <write>: Change prototype -- take 'void *'
7807 buffer and size_t size. Adjust.
7808
7809 2013-04-19 Pedro Alves <palves@redhat.com>
7810
7811 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7812 gdb_byte *.
7813 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7814
7815 2013-04-19 Pedro Alves <palves@redhat.com>
7816
7817 * alpha-tdep.c (alpha_extract_return_value): Use
7818 regcache_cooked_read_unsigned to read 'v0'.
7819
7820 2013-04-19 Pedro Alves <palves@redhat.com>
7821
7822 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7823 parameters 'at', 'as' and 'offset' to uint32_t.
7824
7825 2013-04-19 Pedro Alves <palves@redhat.com>
7826
7827 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7828 'is64' to signed 'int'.
7829
7830 2013-04-19 Pedro Alves <palves@redhat.com>
7831
7832 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7833 parameter to int *.
7834
7835 2013-04-19 Pedro Alves <palves@redhat.com>
7836
7837 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7838 'insnbuf' buffer type to unsigned int[].
7839
7840 2013-04-19 Pedro Alves <palves@redhat.com>
7841
7842 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7843
7844 2013-04-19 Pedro Alves <palves@redhat.com>
7845
7846 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7847 unsigned long *.
7848
7849 2013-04-19 Pedro Alves <palves@redhat.com>
7850
7851 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7852 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7853 UINT_MAX.
7854 * mips-tdep.c (heuristic_fence_post): Change type to int.
7855 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7856
7857 2013-04-19 Pedro Alves <palves@redhat.com>
7858
7859 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7860 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7861 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7862
7863 2013-04-19 Pedro Alves <palves@redhat.com>
7864
7865 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7866 it to get a string view of the byte buffer.
7867 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7868 type to gdb_byte *. Adjust.
7869 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7870 Change local to char *.
7871 * solib-darwin.c (find_program_interpreter): Change return type to
7872 char *. Adjust.
7873 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7874 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7875 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7876 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7877 * solib-svr4.c (find_program_interpreter): Change return type to
7878 char *. Adjust.
7879 (enable_break): Change local 'interp_name' to char *.
7880 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7881 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7882 (spu_pseudo_register_write_spu): Use char for string buffer.
7883 Adjust.
7884 (info_spu_event_command, info_spu_signal_command): Add casts to
7885 'char *'.
7886
7887 2013-04-19 Pedro Alves <palves@redhat.com>
7888
7889 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7890 gdb_byte[].
7891 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7892 * ada-lang.c (ada_value_assign): Use gdb_byte.
7893 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7894 (alphanbsd_sigtramp_offset): Use gdb_byte.
7895 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7896 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7897 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7898 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7899 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7900 * arm-tdep.c (arm_stub_unwind_sniffer)
7901 (arm_displaced_init_closure): Use gdb_byte.
7902 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7903 (arm_default_thumb_le_breakpoint)
7904 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7905 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7906 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7907 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7908 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7909 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7910 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7911 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7912 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7913 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7914 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7915 (cris_store_return_value, cris_extract_return_value): Use
7916 gdb_byte.
7917 (constraint): Change type of parameter to char * from signed
7918 char*. Use gdb_byte.
7919 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7920 of local buffer to gdb_byte *.
7921 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7922 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7923 (add_address_entry): Change type of local buffer to gdb_byte[].
7924 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7925 (frv_push_dummy_call): Use gdb_byte.
7926 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7927 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7928 (hppa_hpux_supply_save_state): Use gdb_byte.
7929 * hppa-tdep.c (hppa32_push_dummy_call)
7930 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7931 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7932 (slotN_contents, replace_slotN_contents): Change type of parameter
7933 to gdb_byte *.
7934 (fetch_instruction, ia64_pseudo_register_write)
7935 (ia64_register_to_value, ia64_value_to_register)
7936 (ia64_extract_return_value, ia64_store_return_value)
7937 (ia64_push_dummy_call): Use gdb_byte.
7938 * m32c-tdep.c (m32c_return_value): Remove cast.
7939 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7940 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7941 gdb_byte.
7942 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7943 * mn10300-tdep.c (mn10300_store_return_value)
7944 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7945 gdb_byte.
7946 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7947 (moxie_process_record): Remove casts.
7948 * ppc-ravenscar-thread.c (supply_register_at_address)
7949 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7950 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7951 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7952 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7953 * remote.c (compare_sections_command): Use gdb_byte.
7954 * score-tdep.c (score7_free_memblock): Change type of parameter to
7955 gdb_byte *.
7956 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7957 gdb_byte *. Use gdb_byte.
7958 (sh_push_dummy_call_fpu): Use gdb_byte.
7959 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7960 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7961 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7962 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7963 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7964 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7965 (sh64_store_return_value, sh64_register_convert_to_virtual):
7966 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7967 (sh64_pseudo_register_write): Use gdb_byte.
7968 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7969 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7970 buffer.
7971 (irix_current_sos): Use gdb_byte.
7972 * solib-som.c (som_current_sos): Use gdb_byte.
7973 * sparc-ravenscar-thread.c (supply_register_at_address)
7974 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7975 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7976 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7977 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7978 'gdb_byte *'.
7979 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7980 'gdb_byte *'.
7981 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7982 * xstormy16-tdep.c (xstormy16_extract_return_value)
7983 (xstormy16_store_return_value): Change parameter type to
7984 'gdb_byte *'. Adjust.
7985 (xstormy16_push_dummy_call): Use gdb_byte.
7986 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7987 (call0_analyze_prologue, execute_code): Use gdb_byte.
7988
7989 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7990 Pedro Alves <palves@redhat.com>
7991
7992 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7993 value contents.
7994
7995 2013-04-17 Doug Evans <dje@google.com>
7996
7997 * dwarf2read.c (struct signatured_type): New member type.
7998 (struct attribute): Replace member signatured_type with signature.
7999 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8000 (read_call_site_scope): Call follow_die_ref instead of
8001 follow_die_ref_or_sig.
8002 (read_structure_type): Rewrite handling of signatured types.
8003 (read_enumeration_type): Ditto.
8004 (read_attribute_value): Update.
8005 (build_error_marker_type): New function.
8006 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8007 Don't call error for bad types, just build an error marker type.
8008 (dump_die_shallow): Update.
8009 (follow_die_sig_1): Renamed from follow_die_sig.
8010 Don't call error for bad types, instead return NULL.
8011 (follow_die_sig): New function.
8012 (get_signatured_type, get_DW_AT_signature_type): New functions.
8013
8014 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8015
8016 * aarch64-tdep.c (aarch64_write_pc): Removed.
8017 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8018 function.
8019
8020 2013-04-17 Yao Qi <yao@codesourcery.com>
8021
8022 * top.c (print_gdb_configuration): Print configure-time
8023 parameter on using libbabeltrace or not.
8024
8025 2013-04-16 Pedro Alves <palves@redhat.com>
8026
8027 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8028
8029 2013-04-16 Pedro Alves <palves@redhat.com>
8030
8031 * common/glibc_thread_db.h: Update from upstream glibc
8032 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8033
8034 2013-04-16 Pedro Alves <palves@redhat.com>
8035
8036 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8037 * common/glibc_thread_db.h: ... this new file ...
8038 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8039
8040 2013-04-16 Will Newton <will.newton@gmail.com>
8041 Pedro Alves <palves@redhat.com>
8042
8043 PR build/11881
8044
8045 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8046 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8047 HAVE_THREAD_DB_H.
8048
8049 2013-04-16 Pedro Alves <palves@redhat.com>
8050 Eli Zaretskii <eliz@gnu.org>
8051
8052 * NEWS: Mention "set foo unlimited".
8053
8054 2013-04-15 Doug Evans <dje@google.com>
8055
8056 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8057 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8058 (create_dwo_cu_reader): Renamed from
8059 create_dwo_debug_info_hash_table_reader.
8060 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8061 Remove support for multiple CUs in a DWO file.
8062 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8063
8064 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8065 instead of phex.
8066 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8067 (create_dwo_in_dwp): Ditto.
8068
8069 2013-04-15 Tom Tromey <tromey@redhat.com>
8070
8071 * NEWS: Move recent entries into "since 7.6" section.
8072
8073 2013-04-15 Tom Tromey <tromey@redhat.com>
8074
8075 PR c++/13588:
8076 * NEWS: Update.
8077 * break-catch-throw.c (struct exception_catchpoint)
8078 <exception_rx, pattern>: New fields.
8079 (fetch_probe_arguments, dtor_exception_catchpoint)
8080 (check_status_exception_catchpoint)
8081 (print_one_detail_exception_catchpoint): New functions.
8082 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8083 Compile regular expression if needed.
8084 (extract_exception_regexp): New function.
8085 (catch_exception_command_1): Use extract_exception_regexp.
8086 (compute_exception): Use fetch_probe_arguments.
8087 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8088 and check_status fields.
8089 * cp-abi.c (cplus_typename_from_type_info): New function.
8090 * cp-abi.h (cplus_typename_from_type_info): Declare.
8091 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8092 * gdb_regex.h (compile_rx_or_error): Declare.
8093 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8094 comment.
8095 (init_gnuv3_ops): Set get_type_from_type_info field.
8096 * probe.c (compile_rx_or_error): Move...
8097 * utils.c (compile_rx_or_error): ... here.
8098
8099 2013-04-15 Tom Tromey <tromey@redhat.com>
8100
8101 PR c++/15176:
8102 * NEWS: Update.
8103 * break-catch-throw.c (compute_exception): New function.
8104 (exception_funcs): New global.
8105 (_initialize_break_catch_throw): Create $_exception.
8106 * cp-abi.c (cplus_type_from_type_info): New function.
8107 * cp-abi.h (cplus_type_from_type_info): Declare.
8108 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8109 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8110 (gnuv3_get_type_from_type_info): New functions.
8111 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8112
8113 2013-04-15 Tom Tromey <tromey@redhat.com>
8114
8115 * break-catch-throw.c (struct exception_names): New.
8116 (exception_functions): Change type.
8117 (re_set_exception_catchpoint): Look for SDT probes.
8118
8119 2013-04-15 Tom Tromey <tromey@redhat.com>
8120
8121 PR c++/10119:
8122 * break-catch-throw.c (exception_functions): New global.
8123 (gnu_v3_exception_catchpoint_ops): Move earlier.
8124 (struct exception_catchpoint): New.
8125 (classify_exception_breakpoint): Rewrite.
8126 (re_set_exception_catchpoint): New function.
8127 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8128 Allocate a struct exception_catchpoint.
8129 (catch_exception_command_1): Update.
8130 (initialize_throw_catchpoint_ops): Set 're_set' method.
8131
8132 2013-04-15 Tom Tromey <tromey@redhat.com>
8133
8134 * Makefile.in (SFILES): Add break-catch-throw.c
8135 (COMMON_OBS): Add break-catch-throw.o.
8136 * break-catch-throw.c: New file.
8137 * breakpoint.c: Move exception-catching code to new file.
8138 (ep_parse_optional_if_clause): No longer static.
8139 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8140
8141 2013-04-15 Tom Tromey <tromey@redhat.com>
8142
8143 PR c++/9065:
8144 * NEWS: Update.
8145 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8146 * c-exp.y (TYPEID): New token.
8147 (exp): Add new TYPEID productions.
8148 (ident_tokens): Add "typeid".
8149 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8150 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8151 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8152 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8153 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8154 case.
8155 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8156 (build_std_type_info_type, gnuv3_get_typeid_type)
8157 (gnuv3_get_typeid): New functions.
8158 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8159 new fields on ABI object.
8160 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8161 * std-operator.def (OP_TYPEID): New.
8162
8163 2013-04-15 Tom Tromey <tromey@redhat.com>
8164
8165 * elfread.c (elf_symtab_read): Install versioned symbol under
8166 unversioned name as well.
8167
8168 2013-04-15 Tom Tromey <tromey@redhat.com>
8169
8170 PR c++/11990:
8171 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8172 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8173 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8174 (gdb_demangle): New function.
8175 * cp-support.h (gdb_demangle): Declare.
8176 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8177 (dwarf2_name): Use gdb_demangle.
8178 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8179 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8180 suffixes from name.
8181 (gnuv3_print_method_ptr): Use gdb_demangle.
8182 * jv-lang.c (java_demangle): Use gdb_demangle.
8183 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8184 * language.c (unk_lang_demangle): Use gdb_demangle.
8185 * symtab.c (symbol_find_demangled_name)
8186 (demangle_for_lookup): Use gdb_demangle.
8187
8188 2013-04-15 Tom Tromey <tromey@redhat.com>
8189
8190 PR c++/12824:
8191 * NEWS: Update.
8192 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8193 New constant.
8194 (classify_exception_breakpoint): New function.
8195 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8196 (print_mention_exception_catchpoint)
8197 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8198 (catch_exception_command_1): Handle "rethrow" catchpoint.
8199 (catch_rethrow_command): New function.
8200 (_initialize_breakpoint): Add "catch rethrow" command.
8201
8202 2013-04-15 Pierre Muller <muller@sourceware.org>
8203
8204 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8205 set_gdbarch_write_pc as deprecated anymore.
8206
8207 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8208
8209 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8210 declarations.
8211
8212 2013-04-13 Yao Qi <yao@codesourcery.com>
8213
8214 * ctf.c (_initialize_ctf): Include "completer.h".
8215 Call add_target_with_completer instead of add_target.
8216
8217 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8218
8219 Fix GDB regression related to PR binutils/14813.
8220 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8221 * minidebug.c (lzma_close): Add return value comment.
8222 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8223 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8224 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8225
8226 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8227
8228 * config.in: Regenerate.
8229
8230 2013-04-12 Tom Tromey <tromey@redhat.com>
8231
8232 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8233 const.
8234 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8235 (struct die_reader_specs) <buffer>: Likewise.
8236 (die_reader_func_ftype): Make 'info_ptr' const.
8237 (struct line_header) <include_dirs, statement_program_start,
8238 statement_program_end>: Now const.
8239 (struct file_entry) <name>: Likewise.
8240 (struct partial_die_info) <sibling>: Likewise.
8241 (struct dwarf_block) <data>: Likewise.
8242 (dwarf2_read_section): Remove cast.
8243 (dwarf2_get_section_info): Make 'bufp' const.
8244 (read_index_from_section): Constify.
8245 (dw2_get_file_names_reader): Make 'info_ptr' const.
8246 (dw2_get_primary_filename_reader): Likewise.
8247 (read_comp_unit_head): Make 'info_ptr' and return type const.
8248 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8249 Likewise.
8250 (read_abbrev_offset): Constify.
8251 (dwarf2_create_include_psymtab): Make 'name' const.
8252 (create_debug_types_hash_table): Update.
8253 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8254 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8255 Constify.
8256 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8257 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8258 (read_comp_units_from_section): Constify.
8259 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8260 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8261 const.
8262 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8263 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8264 (create_dwp_hash_table, dwarf2_ranges_read)
8265 (dwarf2_record_block_ranges): Constify.
8266 (read_die_and_children, read_die_and_siblings_1)
8267 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8268 const.
8269 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8270 (abbrev_table_read_table): Constify.
8271 (load_partial_dies): Make 'info_ptr' const.
8272 (read_partial_die, read_attribute_value, read_attribute): Make
8273 'info_ptr' and return type const.
8274 (read_address, read_initial_length)
8275 (read_checked_initial_length_and_offset, read_offset)
8276 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8277 const.
8278 (read_direct_string): Make 'buf' and return type const.
8279 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8280 (read_indirect_string): Make return type const.
8281 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8282 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8283 'info_ptr' const.
8284 (read_str_index): Make return type const.
8285 (add_include_dir): Make 'include_dir' const.
8286 (add_file_name): Make 'name' const.
8287 (dwarf_decode_line_header): Constify.
8288 (psymtab_include_file_name): Make return type const.
8289 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8290 (dwarf2_start_subfile): Make 'filename' const.
8291 (dwarf2_const_value_attr): Make 'bytes' const.
8292 (read_signatured_type_reader): Make 'info_ptr' const.
8293 (decode_locdesc): Constify.
8294 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8295 const.
8296 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8297 'mac_end', and return type const.
8298 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8299 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8300 type const.
8301 (per_cu_header_read_in): Constify.
8302 * symfile.h (dwarf2_get_section_info): Update.
8303
8304 2013-04-12 Tom Tromey <tromey@redhat.com>
8305
8306 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8307
8308 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8309
8310 * NEWS: Mention "show configuration", --configuration.
8311 * top.c (print_gdb_configuration): New function, displays the
8312 details about GDB configure-time parameters.
8313 (print_gdb_version): Mention "show configuration".
8314 * cli/cli-cmds.c (show_configuration): New function.
8315 (_initialize_cli_cmds): Add the "show configuration" command.
8316 * main.c (captured_main) <print_configuration>: New static var.
8317 <long_options>: Use it.
8318 If --configuration was given, call print_gdb_configuration.
8319
8320 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8321 Pedro Alves <palves@redhat.com>
8322
8323 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8324 (generated_files): Add gcore.
8325 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8326 HAVE_NATIVE_GCORE_HOST.
8327 (gcore): New.
8328 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8329 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8330 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8331 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8332 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8333 Add HAVE_NATIVE_GCORE_HOST.
8334 * configure: Regenerate.
8335 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8336 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8337 AC_CONFIG_FILES for gcore.
8338 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8339 gdb_have_gcore.
8340 * gdb_gcore.sh: Rename to ...
8341 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8342 and GCORE_TRANSFORM_NAME substitutions.
8343
8344 Fix parsing tabs in ${gdb_target_obs}.
8345 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8346
8347 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * remote.c (unpush_and_perror): Add output message final dot.
8350
8351 2013-04-11 Yao Qi <yao@codesourcery.com>
8352
8353 * tracepoint.c (tfile_interp_line): Fit parameters line and
8354 utpp in one line.
8355
8356 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8357
8358 * solib.c (solib_map_sections): Remove code overwriting
8359 SO->SO_NAME with the bfd's filename.
8360
8361 2013-04-10 Pedro Alves <palves@redhat.com>
8362
8363 * cli/cli-decode.c (integer_unlimited_completer): New function.
8364 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8365 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8366 completer.
8367 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8368 (is_unlimited_literal): New function.
8369 (do_set_command): Handle literal "unlimited" arguments.
8370 * frame.c (_initialize_frame) <set backtrace limit>: Document
8371 "unlimited".
8372 * printcmd.c (_initialize_printcmd) <set print
8373 max-symbolic-offset>: Add help text.
8374 * record-full.c (_initialize_record_full) <set record full
8375 insn-number-max>: Likewise.
8376 * record.c (_initialize_record) <set record
8377 instruction-history-size, set record function-call-history-size>:
8378 Add help text.
8379 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8380 help text.
8381 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8382 Likewise.
8383 * source.c (_initialize_source) <set listsize>: Add help text.
8384 * utils.c (initialize_utils) <set height, set width>: Likewise.
8385 <set pagination>: Mention "set height unlimited".
8386 * valprint.c (_initialize_valprint) <set print elements, set print
8387 repeats>: Document "unlimited".
8388
8389 2013-04-10 Pedro Alves <palves@redhat.com>
8390
8391 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8392 instead of disconnect_tracing.
8393 * infcmd.c (detach_command, disconnect_command): Call
8394 query_if_trace_running. Adjust.
8395 * top.c: Include "tracepoint.h".
8396 (quit_target): Delete. Contents moved ...
8397 (quit_force): ... here. Wrap each stage of teardown in
8398 TRY_CATCH. Call disconnect_tracing before detaching.
8399
8400 2013-04-10 Hui Zhu <hui@codesourcery.com>
8401 Yao Qi <yao@codesourcery.com>
8402
8403 * configure.ac: Check libbabeltrace is installed.
8404 * config.in: Regenerate.
8405 * configure: Regenerate.
8406 * Makefile.in (LIBBABELTRACE): New.
8407 (CLIBS): Add LIBBABELTRACE.
8408 * ctf.c: Include "exec.h".
8409 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8410 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8411 (ctf_save_metadata_header): Define new type aliases in
8412 metadata.
8413 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8414 in metadata. Start a new faked packet for trace status.
8415 (ctf_write_status): Write trace status to CTF.
8416 (ctf_write_uploaded_tsv): Write TSV to CTF.
8417 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8418 (ctf_write_definition_end): End the faked packet.
8419
8420 (ctx, ctf_iter, trace_dirname): New.
8421 (start_pos): New variable.
8422 (ctf_destroy, ctf_open_dir, ctf_open): New.
8423 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8424 macros.
8425 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8426 (ctf_fetch_registers, ctf_xfer_partial): New.
8427 (ctf_get_trace_state_variable_value): New.
8428 (ctf_get_tpnum_from_frame_event): New.
8429 (ctf_get_traceframe_address): New.
8430 (ctf_trace_find, ctf_has_stack): New.
8431 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8432 (ctf_get_trace_status, ctf_read_status): New.
8433 (_initialize_ctf): New.
8434 * tracepoint.c (get_tracepoint_number): New
8435 (get_uploaded_tsv): Remove 'static'.
8436 (struct traceframe_info, trace_regblock_size): Move it to ...
8437 * tracepoint.h: ... here.
8438 (get_tracepoint_number): Declare it.
8439 (get_uploaded_tsv): Declare it.
8440
8441 * NEWS: Mention new configure option.
8442
8443 2013-04-10 Pedro Alves <palves@redhat.com>
8444 Hui Zhu <hui@codesourcery.com>
8445
8446 * breakpoint.c (dprintf_re_set): New.
8447 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8448 to dprintf_re_set.
8449
8450 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8451
8452 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8453 Remove solib-svr4.o from the list.
8454
8455 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8456
8457 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8458 Use gdb_assert_not_reached instead of invalid boolean expression.
8459
8460 2013-04-09 Pedro Alves <palves@redhat.com>
8461
8462 * remote.c (unpush_and_perror): New function.
8463 (readchar, remote_serial_write): Use it.
8464
8465 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8466
8467 * NEWS: Mention new btrace RSP packets.
8468
8469 2013-04-08 Tom Tromey <tromey@redhat.com>
8470
8471 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8472 long.
8473
8474 2013-04-08 Tom Tromey <tromey@redhat.com>
8475
8476 * maint.c (print_bfd_section_info): Print the section index.
8477 * symmisc.c (dump_msymbols): Print the section index.
8478
8479 2013-04-08 Tom Tromey <tromey@redhat.com>
8480
8481 PR symtab/8424:
8482 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8483 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8484 * breakpoint.c (resolve_sal_pc): Update.
8485 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8486 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8487 (minsym_lookup_iterator_cb): Use it.
8488 (default_read_var_value): Update.
8489 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8490 Update.
8491 * infcmd.c (jump_command): Update.
8492 * linespec.c (minsym_found): Update.
8493 * maint.c (maintenance_translate_address): Update.
8494 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8495 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8496 * parse.c (write_exp_msymbol): Update.
8497 * printcmd.c (address_info): Update.
8498 * psymtab.c (find_pc_sect_psymbol): Update.
8499 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8500 SYMBOL_OBJ_SECTION.
8501 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8502 Don't initialize SYMBOL_OBJ_SECTION.
8503 * spu-tdep.c (spu_catch_start): Update.
8504 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8505 * symmisc.c (dump_msymbols, print_symbol): Update.
8506 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8507 how fallback section is computed.
8508 (fixup_symbol_section): Update.
8509 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8510 Update.
8511 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8512 Initialize SYMBOL_SECTION.
8513 * symtab.h (struct general_symbol_info) <section>: Update comment.
8514 <obj_section>: Remove.
8515 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8516 (SYMBOL_OBJFILE): New macro.
8517
8518 2013-04-08 Tom Tromey <tromey@redhat.com>
8519
8520 * coffread.c (record_minimal_symbol): Update.
8521 * dbxread.c (record_minimal_symbol): Update.
8522 * elfread.c (record_minimal_symbol): Update.
8523 * machoread.c (macho_symtab_add_minsym): Update.
8524 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8525 Update.
8526 * minsyms.c (prim_record_minimal_symbol): Update.
8527 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8528 argument.
8529 (prim_record_minimal_symbol_and_info): Likewise.
8530 * minsyms.h (prim_record_minimal_symbol_full)
8531 (prim_record_minimal_symbol_and_info): Update.
8532 * symtab.c (allocate_symbol, initialize_symbol)
8533 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8534 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8535 Update.
8536
8537 2013-04-08 Tom Tromey <tromey@redhat.com>
8538
8539 PR symtab/8423:
8540 * solib-som.c (som_solib_section_offsets): Use BFD section
8541 indices. Set offsets for all sections.
8542 * somread.c (som_symtab_read): Compute BFD section for
8543 symbol. Use prim_record_minimal_symbol_and_info.
8544 (som_symfile_read): Fix comment.
8545 (struct find_section_offset_arg): New.
8546 (find_section_offset, set_section_index): New functions.
8547 (som_symfile_offsets): Use set_section_index to compute
8548 section indices.
8549
8550 2013-04-08 Tom Tromey <tromey@redhat.com>
8551
8552 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8553 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8554 gdb_bfd_section_index.
8555 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8556 New functions.
8557 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8558 Declare.
8559 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8560 Update.
8561 * objfiles.c (add_to_objfile_sections_full): New function.
8562 (add_to_objfile_sections): Use it.
8563 (build_section_table): Rewrite.
8564 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8565 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8566 (struct objfile) <sections>: Update comment.
8567 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8568 is NULL.
8569 (ALL_OBJSECTIONS): Use it.
8570 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8571 * solib-frv.c (frv_relocate_main_executable): Update.
8572 * solib-target.c (solib_target_relocate_section_addresses):
8573 Use gdb_bfd_section_index.
8574 * symfile.c (build_section_addr_info_from_section_table):
8575 Use gdb_bfd_section_index.
8576 (build_section_addr_info_from_bfd, place_section): Likewise.
8577 * symtab.c (fixup_section): Update.
8578 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8579
8580 2013-04-08 Tom Tromey <tromey@redhat.com>
8581
8582 * minsyms.h (struct bound_minimal_symbol): New.
8583 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8584 Remove objfile argument.
8585 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8586 Return bound_minimal_symbol.
8587 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8588 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8589 Return bound_minimal_symbol.
8590 (in_gnu_ifunc_stub): Update.
8591 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8592 Remove 'objfile_p' argument.
8593 (lookup_solib_trampoline_symbol_by_pc): Update.
8594 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8595 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8596 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8597 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8598 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8599 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8600 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8601 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8602 stack.c, symtab.c, tui/tui-disasm.c: Update.
8603
8604 2013-04-08 Tom Tromey <tromey@redhat.com>
8605
8606 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8607 Use symbol's obstack, not an objfile.
8608 * coffread.c (process_coff_symbol): Update.
8609 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8610 * jv-lang.c (add_class_symbol): Update.
8611 * mdebugread.c (new_symbol): Update.
8612 * minsyms.c (prim_record_minimal_symbol_full)
8613 (terminate_minimal_symbol_table): Update.
8614 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8615 * stabsread.c (define_symbol, read_enum_type): Update.
8616 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8617 Handle Ada specially.
8618 (symbol_set_language): Add 'obstack' argument.
8619 (symbol_set_names): Update.
8620 (symbol_natural_name, symbol_demangled_name): Always use
8621 ada_decode_symbol.
8622 * symtab.h (struct general_symbol_info)
8623 <language_specific::obstack>: New field.
8624 <ada_mangled>: New field.
8625 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8626 (symbol_set_language): Update.
8627
8628 2013-04-08 Tom Tromey <tromey@redhat.com>
8629
8630 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8631 Take an obstack, not an objfile.
8632 (symbol_set_names): Update.
8633 * symtab.h (symbol_set_demangled_name): Update.
8634
8635 2013-04-08 Tom Tromey <tromey@redhat.com>
8636
8637 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8638 allocate_symbol.
8639 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8640 (read_func_scope): Call allocate_template_symbol.
8641 (new_symbol_full): Call allocate_symbol.
8642 * jit.c (finalize_symtab): Call allocate_symbol.
8643 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8644 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8645 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8646 (common_block_end): Call allocate_symbol.
8647 * symtab.c (allocate_symbol, initialize_symbol)
8648 (allocate_template_symbol): New functions.
8649 * symtab.c (allocate_symbol, initialize_symbol)
8650 (allocate_template_symbol): Declare.
8651 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8652
8653 2013-04-08 Pedro Alves <palves@redhat.com>
8654 Keith Seitz <keiths@redhat.com>
8655
8656 * breakpoint.c (create_breakpoint): Rename
8657 "parse_condition_and_thread" parameter to "parse_arg". Update
8658 describing comment. If !PARSE_ARG, then error out if ARG is not
8659 the empty string after extracting the location.
8660 * breakpoint.h (create_breakpoint): Rename
8661 "parse_condition_and_thread" parameter to "parse_arg".
8662
8663 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8664
8665 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8666
8667 2013-04-07 Yao Qi <yao@codesourcery.com>
8668
8669 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8670 and 'addr2' to CORE_ADDR.
8671 * target.c (update_current_target): Update.
8672 * target.h (struct target_ops) <to_trace_find>: Change parameter
8673 type to CORE_ADDR.
8674 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8675 'addr2' to CORE_ADDR.
8676 (tfile_trace_find): Likewise.
8677 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8678 Change local variable 'addr' to type CORE_ADDR.
8679 * tracepoint.h (tfind_1): Update declaration.
8680
8681 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8682
8683 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8684 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8685 Include main.h.
8686
8687 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8688 here...
8689 * main.h (windows_get_absolute_argv0): ...to here.
8690
8691 2013-04-05 Doug Evans <dje@google.com>
8692
8693 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8694 (read_cutu_die_from_dwo): Add comments.
8695 (read_structure_type): Update comment.
8696 (read_enumeration_type, read_namespace_type): Update comment.
8697 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8698
8699 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8702 * Makefile.in (gdb.z): Remove.
8703 (install-only): Remove $(man1dir) and gdb.1 installation.
8704 * gdb.1: Remove.
8705
8706 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 Fix compatibility with Linux kernel 3.8.3.
8709 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8710 to more inner block. Remove parsing of NUMBER from outer block.
8711 Parse NUMBER only if KEYWORD has been identified.
8712
8713 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8714
8715 Fix variable name shadowing.
8716 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8717 filename to mapsfilename and update its uses.
8718
8719 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8720
8721 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8722 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8723 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8724 details of the problem.
8725
8726 2013-04-04 Pedro Alves <palves@redhat.com>
8727 Hui Zhu <hui@codesourcery.com>
8728
8729 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8730 tracepoint, reset its STEP_COUNT and call validate_actionline.
8731
8732 2013-04-03 Doug Evans <dje@google.com>
8733
8734 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8735 read_die_and_siblings.
8736 (read_die_and_siblings): New function.
8737 (read_cutu_die_from_dwo): Dump die if requested.
8738 (read_die_and_children): Call read_full_die_1 and
8739 read_die_and_siblings_1.
8740 (read_full_die): Dump die if requested.
8741
8742 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8743
8744 * dwarf2read.c (struct dwo_file): New member comp_dir.
8745 Rename member name to dwo_name. All uses updated.
8746 (hash_dwo_file): Include comp_dir in computation.
8747 (eq_dwo_file): Ditto.
8748 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8749 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8750
8751 * psymtab.c (read_psymtabs_with_fullname): Don't call
8752 psymtab_to_fullname if the basenames are different.
8753
8754 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8757 New entry about "fullname" presence.
8758
8759 2013-04-03 Pedro Alves <palves@redhat.com>
8760
8761 * NEWS: Mention x86_64/Cygwin as new native configuration.
8762
8763 2013-04-02 Doug Evans <dje@google.com>
8764
8765 * dwarf2read.c (read_structure_type): Fix typo in comment.
8766
8767 2013-04-02 Pedro Alves <palves@redhat.com>
8768
8769 * NEWS: Mention "set/show debug aarch64", "set/show debug
8770 coff-pe-read" and "set/show debug mach-o".
8771
8772 2013-04-02 Pedro Alves <palves@redhat.com>
8773
8774 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8775
8776 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8777
8778 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8779 gdb_string.h is now in common/.
8780
8781 2013-04-02 Pedro Alves <palves@redhat.com>
8782
8783 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8784 under "New options".
8785
8786 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8787
8788 Revert this patch:
8789 PR gdb/15275
8790 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8791
8792 2013-04-02 Pedro Alves <palves@redhat.com>
8793
8794 PR gdb/15275
8795
8796 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8797 (remote_serial_write): New function.
8798 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8799
8800 2013-04-01 Jiong Wang <jiwang@tilera.com>
8801
8802 * NEWS: Mention TILE-Gx in "New native configurations" and
8803 "New targets" sections.
8804
8805 2013-04-01 Doug Evans <dje@google.com>
8806
8807 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8808 (process_enumeration_scope): Simplify.
8809
8810 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8811 type_unit_group ...
8812 (struct signatured_type): ... to here.
8813 (sig_type_ptr): New typedef.
8814 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8815 out of union 't'. All uses updated.
8816 (dw2_get_file_names_reader): Assert not called for a type unit.
8817 (dw2_get_file_names): Assert not called for a type unit or type
8818 unit group.
8819 (build_type_psymtabs_reader): Assert called for a type unit.
8820 (build_type_psymtab_dependencies): Assert called for a type unit group.
8821
8822 * dwarf2read.c (free_dwo_file): Add comment.
8823 (dwarf2_per_objfile_free): Unref dwp bfd.
8824
8825 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8826
8827 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8828 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8829 (read_pe_exported_syms): Remove unused 'exportix'.
8830 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8831 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8832 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8833
8834 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8835
8836 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8837 (print_it_watchpoint): Remove unused 'bl'.
8838 (say_where): Remove unused 'uiout'.
8839 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8840 (bkpt_breakpoint_hit): Remove unused 'b'.
8841 (internal_bkpt_print_it): Remove unused 'uiout'.
8842 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8843
8844 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8845
8846 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8847 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8848
8849 2013-03-29 Doug Evans <dje@google.com>
8850
8851 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8852 Delete arg is_dwp. All callers updated.
8853 (open_dwp_file): New function.
8854 (open_and_init_dwp_file): Call it.
8855 (get_dwp_file): New function.
8856 (lookup_dwo_cutu): Call it.
8857
8858 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8859 unnecessary, cleanup.
8860
8861 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8862
8863 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8864 (lookup_dwo_unit): New function.
8865 (init_cutu_and_read_dies): Move DWO handling to new functions.
8866
8867 * dwarf2read.c (struct signatured_type): Tweak comment.
8868 (struct dwo_unit): Tweak comment.
8869 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8870 (create_dwo_debug_info_hash_table): Tweak comment.
8871 (dwarf2_per_cu_offset_and_type): Tweak comment.
8872
8873 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8874 missing .debug_types section.
8875
8876 2013-03-29 Yao Qi <yao@codesourcery.com>
8877
8878 * corelow.c: Include "completer.h".
8879 (_initialize_corelow): Call add_target_with_completer with
8880 argument 'filename_completer'.
8881 * tracepoint.c: Likewise.
8882 * exec.c (_initialize_exec): Likewise.
8883 * target.c (add_target): Rename to ...
8884 (add_target_with_completer): ... this. Call set_cmd_completer
8885 if parameter completer is not NULL.
8886 (add_target): New.
8887 * target.h: Include "command.h".
8888 (add_target_with_completer): Declare it.
8889
8890 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8891
8892 * coffread.c (is_import_fixup_symbol): New function.
8893 (record_minimal_symbol): Use is_import_fixup_symbol to
8894 detect import fixup symbols, and discard them.
8895
8896 2013-03-28 Doug Evans <dje@google.com>
8897
8898 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8899 types hash table until we know we need it.
8900
8901 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8902 index numbers.
8903
8904 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8905 All callers updated.
8906 (dw2_print_stats): Print #read CUs too.
8907 (dump_die_shallow): Print signatured types better.
8908
8909 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8910 info_or_types_section to section. All uses updated.
8911 (struct dwo_unit): Ditto.
8912
8913 2013-03-28 Pedro Alves <palves@redhat.com>
8914
8915 * NEWS (New options): New section.
8916 (New options): Mention set/show remote trace-status-packet.
8917 * remote.c (PACKET_qTStatus): New enumeration value.
8918 (remote_get_trace_status): Skip sending qTStatus if the packet is
8919 disabled. Use packet_ok.
8920 (_initialize_remote): Register a configuration command for
8921 qTStatus packet.
8922
8923 2013-03-28 Doug Evans <dje@google.com>
8924
8925 * symfile.c (find_separate_debug_file): Add comment.
8926 (terminate_after_last_dir_separator): Tweak comment.
8927
8928 * dwarf2read.c (create_partial_symtab): Add forward decl.
8929 (create_partial_symtab): Move to be closer to other psymtab functions.
8930 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8931
8932 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8933 (compute_symtab_includes): Remove unnecessary forward declaration.
8934 (die_needs_namespace): Add comment marking group of functions for
8935 dwarf2 name computation.
8936
8937 * typeprint.c (_initialize_typeprint): Improve type help text.
8938
8939 * python/python.c (finish_python_initialization): Provide suggestion
8940 for how to tell gdb to find its python files.
8941
8942 2013-03-28 Pedro Alves <palves@redhat.com>
8943
8944 PR gdb/15294
8945
8946 * source.c (_initialize_source): Change back "set listsize" to an
8947 integer command.
8948
8949 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8950
8951 PR gdb/15275
8952 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8953
8954 2013-03-27 Pedro Alves <palves@redhat.com>
8955
8956 * top.c (history_size): Rename to ...
8957 (history_size_setshow_var): ... this. Add comment.
8958 (show_commands): Use readline's 'history_length' instead of
8959 computing the history length by calling history_get in a loop.
8960 (set_history_size_command): Error out for sizes over INT_MAX.
8961 Restore previous history size on invalid size.
8962 (init_history): If HISTSIZE is negative, leave the history size as
8963 zero. Add comments.
8964 (init_main): Adjust.
8965
8966 2013-03-27 Pedro Alves <palves@redhat.com>
8967
8968 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8969 coff_pe_read" command to "set debug coff-pe-read".
8970
8971 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8972
8973 * record.c (command_size_to_target_size): Fix size comparison.
8974 Change parameter type from pointer to integer to integer.
8975 Update all users.
8976
8977 2013-03-27 Pierre Muller <muller@sourceware.org>
8978
8979 * windows-nat.c (handle_output_debug_string): Avoid typecast
8980 from integer of different size warning.
8981
8982 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8983
8984 * windows-nat.c (handle_output_debug_string): Add empty line
8985 after local block variable definition.
8986
8987 2013-03-26 Pedro Alves <palves@redhat.com>
8988
8989 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8990 (net_open): Make 'polls' local unsigned.
8991
8992 2013-03-26 Pedro Alves <palves@redhat.com>
8993
8994 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8995 a zuinteger command instead of uinteger.
8996
8997 2013-03-26 Pedro Alves <palves@redhat.com>
8998
8999 * record-full.c (record_full_insn_num): Make it unsigned.
9000 (record_full_check_insn_num, record_full_message)
9001 (record_full_registers_change, record_full_xfer_partial): Remove
9002 record_full_insn_max_num check (it's always != 0).
9003 (record_full_info, record_full_restore): Use %u as format string.
9004 (): Use %u as format string.
9005 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9006 check (it's always != 0).
9007
9008 2013-03-26 Pedro Alves <palves@redhat.com>
9009
9010 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9011 and "set dcache size" commands zuinteger instead of uinteger.
9012
9013 2013-03-26 Pedro Alves <palves@redhat.com>
9014
9015 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9016 command zuinteger instead of uinteger.
9017
9018 2013-03-26 Pedro Alves <palves@redhat.com>
9019
9020 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9021 zuinteger instead of uinteger.
9022
9023 2013-03-26 Pedro Alves <palves@redhat.com>
9024
9025 * record.c (record_insn_history_size_setshow_var)
9026 (record_call_history_size_setshow_var): New globals.
9027 (command_size_to_target_size): New function.
9028 (cmd_record_insn_history, cmd_record_call_history): Use
9029 command_size_to_target_size instead of cast.
9030 (validate_history_size, set_record_insn_history_size)
9031 (set_record_call_history_size): New functions.
9032 (_initialize_record): Install set_record_insn_history_size and
9033 set_record_call_history_size as "set" hooks of "set record
9034 instruction-history-size" and "set record
9035 function-call-history-size".
9036
9037 2013-03-26 Pedro Alves <palves@redhat.com>
9038
9039 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9040 use with history_max_entries use. Remove FIXME note.
9041
9042 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9043
9044 * record-btrace.c (record_btrace_close): Call
9045 record_btrace_auto_disable.
9046
9047 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9048
9049 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9050
9051 2013-03-25 Doug Evans <dje@google.com>
9052
9053 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9054
9055 2013-03-25 Tom Tromey <tromey@redhat.com>
9056
9057 PR symtab/11462:
9058 * c-exp.y (exp): Add new productions for destructors after '.' and
9059 '->'.
9060 (write_destructor_name): New function.
9061
9062 2013-03-25 Tom Tromey <tromey@redhat.com>
9063
9064 PR c++/9197:
9065 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9066 value_struct_elt, not lookup_struct_elt_type.
9067 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9068 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9069 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9070
9071 2013-03-25 Yao Qi <yao@codesourcery.com>
9072
9073 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9074 instead of '_mkdir'.
9075
9076 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9077
9078 * windows-nat.c (windows_get_absolute_argv0): New function.
9079 * windows-nat.h: Add its prototype.
9080
9081 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9082 Use IS_DIR_SEPARATOR instead of looking for a character inside
9083 SLASH_STRING. Include filenames.h.
9084 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9085 relocate_gdb_directory works when passed gdb_program_name.
9086 Include windows-nat.h.
9087
9088 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9089
9090 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9091 * remote.c (trace_error): Remove the special handling of '2'.
9092 (readchar) <SERIAL_EOF>
9093 (readchar) <SERIAL_ERROR>
9094 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9095 (remote_get_trace_status): Call throw_exception if EX is
9096 TARGET_CLOSE_ERROR.
9097 * utils.c (perror_with_name): Rename to ...
9098 (throw_perror_with_name): ... here. New parameter errcode, describe it
9099 in the function comment.
9100 (perror_with_name): New function wrapper.
9101 * utils.h (enum errors): New stub declaration.
9102 (throw_perror_with_name): New declaration.
9103
9104 2013-03-22 Pedro Alves <palves@redhat.com>
9105 Yao Qi <yao@codesourcery.com>
9106 Mark Kettenis <kettenis@gnu.org>
9107
9108 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9109 Don't let the user set the value to UINT_MAX directly.
9110 <var_integer>: Don't let the user set the value to INT_MAX
9111 directly.
9112
9113 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9114
9115 * remote.c (remote_unpush_target): New function.
9116 (remote_open_1): Remove two pop_target calls, update one comment, add
9117 comment to target_preopen call. Replace pop_target call by
9118 remote_unpush_target call.
9119 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9120 pop_target calls by remote_unpush_target calls.
9121
9122 2013-03-22 Pedro Alves <palves@redhat.com>
9123
9124 * linux-nat.c (linux_child_follow_fork): Don't call
9125 linux_enable_event_reporting.
9126 (linux_handle_extended_wait): Don't call
9127 linux_enable_event_reporting.
9128
9129 2013-03-22 Pedro Alves <palves@redhat.com>
9130
9131 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9132 use it to rewrite the trampoline buffers with type gdb_byte[], and
9133 undefine the macro. Remove char* cast.
9134
9135 2013-03-21 Doug Evans <dje@google.com>
9136
9137 New commands "mt set per-command {space,time,symtab} {on,off}".
9138 * NEWS: Add entry.
9139 * event-top.c: #include "maint.h".
9140 * main.c: #include "maint.h".
9141 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9142 timeval-utils.h, maint.h, cli/cli-setshow.h.
9143 (per_command_time, per_command_space): New static globals.
9144 (per_command_symtab): New static global.
9145 (per_command_setlist, per_command_showlist): New static globals.
9146 (struct cmd_stats): Move here from utils.c.
9147 (set_per_command_time): Renamed from set_display_time in utils.c
9148 and moved here. All callers updated.
9149 (set_per_command_space): Renamed from set_display_space in utils.c
9150 and moved here. All callers updated.
9151 (count_symtabs_and_blocks): New function.
9152 (report_command_stats): Moved here from utils.c. Add support for
9153 printing symtab stats. Only print data if enabled before command
9154 executed.
9155 (make_command_stats_cleanup): Ditto.
9156 (sert_per_command_cmd, show_per_command_cmd): New functions.
9157 (_initialize_maint_cmds): Add new commands
9158 mt set per-command {space,time,symtab} {on,off}.
9159 * maint.h: New file.
9160 * top.c: #include "maint.h".
9161 * utils.c (reset_prompt_for_continue_wait_time): New function.
9162 (get_prompt_for_continue_wait_time): New function.
9163 * utils.h (reset_prompt_for_continue_wait_time): Declare
9164 (get_prompt_for_continue_wait_time): Declare.
9165 (make_command_stats_cleanup): Moved to maint.h.
9166 (set_display_time, set_display_space): Moved to maint.h and renamed
9167 to set_per_command_time, set_per_command_space.
9168 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9169 parse_binary_operation and made non-static. Don't call error,
9170 just return an error marker. All callers updated.
9171 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9172
9173 2013-03-21 Tom Tromey <tromey@redhat.com>
9174
9175 * symfile.c (alloc_section_addr_info): Update header. Don't set
9176 'num_sections' field.
9177 (build_section_addr_info_from_section_table): Set 'num_sections'.
9178 (build_section_addr_info_from_bfd): Likewise.
9179 (build_section_addr_info_from_objfile): Remove dead loop
9180 condition.
9181 (free_section_addr_info): Unconditionally call xfree.
9182 (relative_addr_info_to_section_offsets, addrs_section_sort)
9183 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9184 condition.
9185 (syms_from_objfile_1): Remove dead 'if' condition. Check
9186 'num_sections'.
9187 (add_symbol_file_command): Set 'num_sections'.
9188 * symfile-mem.c (symbol_file_add_from_memory): Set
9189 'num_sections'.
9190 * somread.c (som_symfile_offsets): Remove dead loop condition.
9191 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9192 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9193
9194 2013-03-21 Tom Tromey <tromey@redhat.com>
9195
9196 * tracepoint.h (decode_agent_options): Add 'trace_string'
9197 argument.
9198 * tracepoint.c (decode_agent_options): Add 'trace_string'
9199 argument.
9200 (validate_actionline): Update.
9201 (collect_symbol): Add 'trace_string' argument.
9202 (struct add_local_symbols_data) <trace_string>: New field.
9203 (do_collect_symbol): Update.
9204 (add_local_symbols): Add 'trace_string' argument.
9205 (encode_actions_1): Update.
9206 (trace_dump_actions): Update.
9207 * dwarf2loc.c (access_memory): Update.
9208 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9209 * ax-general.c (new_agent_expr): Update.
9210 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9211 (gen_trace_for_return_address): Add argument.
9212 (trace_kludge, trace_string_kludge): Remove.
9213 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9214 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9215 (gen_trace_for_var): Add 'trace_string' argument.
9216 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9217 (gen_printf, agent_eval_command_one): Update.
9218
9219 2013-03-21 Tom Tromey <tromey@redhat.com>
9220
9221 PR exp/15109:
9222 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9223 Handle FILENAME token.
9224
9225 2013-03-21 Tom Tromey <tromey@redhat.com>
9226
9227 * c-exp.y (YYPRINT): Define.
9228 (c_print_token): New function.
9229
9230 2013-03-21 Tom Tromey <tromey@redhat.com>
9231
9232 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9233
9234 2013-03-21 Yao Qi <yao@codesourcery.com>
9235
9236 * ctf.c: Include "gdb_stat.h".
9237 [USE_WIN32API]: New macro 'mkdir'.
9238 (ctf_start): Use permission bits macros if they are defined.
9239
9240 2013-03-20 Keith Seitz <keiths@redhat.com>
9241
9242 * breakpoint.h (struct breakpoint): Add comment to
9243 extra_string indicating that this member is mallod'd.
9244 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9245
9246 2013-03-20 Pedro Alves <palves@redhat.com>
9247
9248 PR gdb/15289
9249
9250 * cli/cli-setshow.c (do_set_command)
9251 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9252 the result of parsing the command argument. Throw error if the
9253 value is greater than UINT_MAX. Print the invalid value with
9254 plongest.
9255 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9256 result of parsing the command argument. Throw error if the value
9257 is greater than INT_MAX, not greater or equal. Also throw error
9258 if the value is less than INT_MIN. Print the invalid value with
9259 plongest.
9260 <var_zuinteger_unlimited>: Throw error if the value is greater
9261 than INT_MAX, not greater or equal.
9262 (do_show_command) <var_integer, var_zinteger,
9263 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9264
9265 2013-03-20 Tom Tromey <tromey@redhat.com>
9266
9267 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9268 if possible.
9269 * dwarf2read.c (read_func_scope): Remove old FIXME.
9270 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9271 not LOC_COMPUTED.
9272 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9273 Unconditionally call via computed ops, if possible.
9274 * printcmd.c (address_info): Unconditionally call via computed ops,
9275 if possible.
9276 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9277 if possible.
9278 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9279 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9280 if possible.
9281
9282 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9283 Tom Tromey <tromey@redhat.com>
9284
9285 PR symtab/8421:
9286 * coffread.c (coff_register_index): New global.
9287 (process_coff_symbol, coff_read_enum_type): Set
9288 SYMBOL_ACLASS_INDEX.
9289 (_initialize_coffread): Initialize new global.
9290 * dwarf2loc.c (locexpr_find_frame_base_location)
9291 (dwarf2_block_frame_base_locexpr_funcs)
9292 (loclist_find_frame_base_location)
9293 (dwarf2_block_frame_base_loclist_funcs): New.
9294 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9295 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9296 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9297 (dwarf2_block_frame_base_loclist_funcs): New.
9298 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9299 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9300 globals.
9301 (read_func_scope): Update.
9302 (fixup_go_packaging, mark_common_block_symbol_computed)
9303 (var_decode_location, new_symbol_full, dwarf2_const_value):
9304 Set SYMBOL_ACLASS_INDEX.
9305 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9306 (_initialize_dwarf2_read): Initialize new globals.
9307 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9308 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9309 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9310 globals.
9311 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9312 (_initialize_mdebugread): Initialize new globals.
9313 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9314 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9315 (stab_register_index, stab_regparm_index): New globals.
9316 (define_symbol, read_enum_type, common_block_end): Set
9317 SYMBOL_ACLASS_INDEX.
9318 (_initialize_stabsread): Initialize new globals.
9319 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9320 globals.
9321 (MAX_SYMBOL_IMPLS): New define.
9322 (register_symbol_computed_impl, register_symbol_block_impl)
9323 (register_symbol_register_impl)
9324 (initialize_ordinary_address_classes): New functions.
9325 (_initialize_symtab): Call initialize_ordinary_address_classes.
9326 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9327 (struct symbol_impl): New.
9328 (SYMBOL_ACLASS_BITS): New define.
9329 (struct symbol) <aclass, ops>: Remove fields.
9330 <aclass_index>: New field.
9331 (symbol_impls): Declare.
9332 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9333 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9334 (register_symbol_computed_impl, register_symbol_block_impl)
9335 (register_symbol_register_impl): Declare.
9336 (struct symbol_computed_ops): Add location_has_loclist.
9337 (struct symbol_block_ops): New.
9338 (SYMBOL_BLOCK_OPS): New.
9339 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9340
9341 2013-03-20 Tom Tromey <tromey@redhat.com>
9342
9343 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9344 (print_partial_symbols, recursively_search_psymtabs): Use
9345 PSYMBOL_CLASS.
9346
9347 2013-03-20 Pierre Muller <muller@sourceware.org>
9348
9349 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9350 addtion, subtraction, multiplication and division binary operator.
9351
9352 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 Code cleanup.
9355 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9356 * bsd-kvm.c (bsd_kvm_close): Likewise.
9357 * bsd-uthread.c (bsd_uthread_close): Likewise.
9358 * corelow.c (core_close): Likewise.
9359 (core_close_cleanup): Remove parameter quitting from a caller.
9360 * event-top.c (async_disconnect): Likewise.
9361 * exec.c (exec_close_1): Remove parameter quitting.
9362 * go32-nat.c (go32_close): Likewise.
9363 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9364 parameter quitting from a caller.
9365 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9366 variable.
9367 (mips_linux_close): Remove parameter quitting. Remove parameter
9368 quitting from a caller.
9369 * monitor.c (monitor_close): Remove parameter quitting.
9370 * monitor.h (monitor_close): Likewise.
9371 * record-btrace.c (record_btrace_close): Likewise.
9372 * record-full.c (record_full_close): Likewise.
9373 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9374 it also from fprintf_unfiltered.
9375 * remote-mips.c (mips_close): Remove parameter quitting.
9376 (mips_detach): Remove parameter quitting from a caller.
9377 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9378 (gdbsim_close): Remove duplicate function comment. Remove parameter
9379 quitting and remove it also from printf_filtered.
9380 * remote.c (remote_close): Remove parameter quitting.
9381 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9382 * target.c (update_current_target): Remove parameter int from to_close
9383 de_fault.
9384 (push_target, unpush_target, pop_target): Remove parameter quitting from
9385 a caller.
9386 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9387 Remove parameter quitting from a caller.
9388 (target_preopen): Remove parameter quitting from a caller.
9389 (target_close): Remove parameter quitting. Remove parameter quitting
9390 from a caller two times. Remove parameter quitting also from
9391 fprintf_unfiltered.
9392 * target.h (struct target_ops): Remove parameter quitting and as int
9393 from fields to_xclose and to_close.
9394 (extern struct target_ops current_target):
9395 (target_close, pop_all_targets): Remove parameter quitting. Update the
9396 comment.
9397 (pop_all_targets_above): Remove parameter quitting.
9398 * top.c (quit_target): Remove parameter quitting from a caller.
9399 * tracepoint.c (tfile_close): Remove parameter quitting.
9400 * windows-nat.c (windows_close): Remove parameter quitting.
9401
9402 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9403
9404 * windows-nat.c (handle_output_debug_string): Replace call
9405 to string_to_core_addr with call to strtoull.
9406
9407 2013-03-20 Yao Qi <yao@codesourcery.com>
9408
9409 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9410 and write it to CTF metadata.
9411
9412 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9413
9414 * windows-nat.c (handle_output_debug_string): Change type of n to
9415 SIZE_T to avoid crash on 64 bit systems.
9416
9417 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9418
9419 * python/python-internal.h (HAVE_SNPRINTF)
9420 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9421 about redefinition of snprintf by pyerrors.h.
9422
9423 2013-03-15 Steve Ellcey <sellcey@mips.com>
9424
9425 * remote-sim.c (sim_command_completer): Make char arguments const.
9426
9427 2013-03-15 Tom Tromey <tromey@redhat.com>
9428
9429 PR c++/15116:
9430 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9431
9432 2013-03-14 Tom Tromey <tromey@redhat.com>
9433
9434 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9435 New fields.
9436 (get_file_crc): Move from symfile.c.
9437 (gdb_bfd_crc): New function.
9438 * gdb_bfd.h (gdb_bfd_crc): Declare.
9439 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9440 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9441 (separate_debug_file_exists): Use gdb_bfd_crc.
9442
9443 2013-03-14 Tom Tromey <tromey@redhat.com>
9444
9445 * symfile.c (get_debug_link_info): Remove.
9446 (find_separate_debug_file_by_debuglink): Use
9447 bfd_get_debug_link_info.
9448
9449 2013-03-14 Tom Tromey <tromey@redhat.com>
9450
9451 * symtab.c (error_in_psymtab_expansion): New function.
9452 (lookup_symbol_aux_quick)
9453 (basic_lookup_transparent_type_quick): Remove "last resort"
9454 code. Use error_in_psymtab_expansion.
9455
9456 2013-03-14 Doug Evans <dje@google.com>
9457 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9460 any successful compare_filenames_for_search or FILENAME_CMP.
9461 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9462 * symtab.c (iterate_over_some_symtabs): Likewise.
9463
9464 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 * source.c (print_source_lines_base): Make a local copy of
9467 symtab_to_fullname.
9468
9469 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9470 Jan Kratochvil <jan.kratochvil@redhat.com>
9471
9472 * source.c (print_source_lines_base): Suppress "file" for TUI.
9473
9474 2013-03-14 Keith Seitz <keiths@redhat.com>
9475 Alan Matsuoka <alanm@redhat.com>
9476
9477 PR c++/15203
9478 PR c++/15210
9479 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9480 TYPE_CODE_METHOD.
9481 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9482 symbols.
9483
9484 2013-03-14 Yao Qi <yao@codesourcery.com>
9485
9486 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9487 status to tfile if trace is stopped by command 'tstop'.
9488
9489 2013-03-14 Yao Qi <yao@codesourcery.com>
9490
9491 * tracepoint.c (tfile_write_status): Write trace notes and user
9492 name into tfile if they are not NULL.
9493
9494 2013-03-14 Hui Zhu <hui@codesourcery.com>
9495 Yao Qi <yao@codesourcery.com>
9496
9497 * Makefile.in (REMOTE_OBS): Add ctf.o.
9498 (SFILES): Add ctf.c.
9499 (HFILES_NO_SRCDIR): Add ctf.h.
9500 * ctf.c, ctf.h: New files.
9501 * tracepoint.c: Include 'ctf.h'.
9502 (collect_pseudocommand): Remove static.
9503 (trace_save_command): Parse option "-ctf".
9504 Produce different trace file writers per option.
9505 Adjust output message.
9506 (trace_save_tfile, trace_save_ctf): New.
9507 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9508 * mi/mi-main.c: Include 'ctf.h'.
9509 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9510 trace_save_tfile or trace_save_ctf.
9511 * NEWS: Mention these changes.
9512
9513 2013-03-14 Yao Qi <yao@codesourcery.com>
9514
9515 * tracepoint.c (trace_file_writer_xfree): New.
9516 (struct tfile_writer_data): New.
9517 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9518 (tfile_write_header, tfile_write_regblock_type): New.
9519 (tfile_write_status, tfile_write_uploaded_tsv): New.
9520 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9521 (tfile_write_raw_data, (tfile_end): New.
9522 (tfile_write_ops): New global variable.
9523 (TRACE_WRITE_R_BLOCK): New macro.
9524 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9525 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9526 (TRACE_WRITE_V_BLOCK): New macro.
9527 (trace_save): Add extra one parameter WRITER. Make it static.
9528 Use WRITER to writer trace.
9529 (tfile_trace_file_writer_new): New.
9530 (trace_save_command): Caller update.
9531 (trace_save_tfile): Write trace data in TFILE format.
9532 * tracepoint.h (struct trace_frame_write_ops): New.
9533 (struct trace_file_write_ops): New.
9534 (struct trace_file_writer): New.
9535 (trace_save): Remove its declaration.
9536 (trace_save_tfile): Declare it.
9537 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9538 instead of trace_save.
9539
9540 2013-03-13 Pedro Alves <palves@redhat.com>
9541
9542 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9543
9544 2013-03-13 Pedro Alves <palves@redhat.com>
9545
9546 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9547 commented out code.
9548 * demangle.c (current_demangling_style_string): Make it const.
9549 (set_demangling_command): Assert the demangling style is known.
9550 Remove all handling of unknown styles. Set
9551 'current_demangling_style_string' to an element of the
9552 demangling_style_names array.
9553 (set_demangling_style): Delete.
9554 (_initialize_demangler): Set current_demangling_style_string to the
9555 element of the demangling_style_names array that corresponds to
9556 the default demangling style. Remove FIXME note. Don't call
9557 set_demangling_style.
9558 * gdb-demangle.h (set_demangling_style): Remove declaration.
9559
9560 2013-03-13 Pedro Alves <palves@redhat.com>
9561
9562 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9563 fields const.
9564 (ada_make_symbol_completion_list): Make "text0" parameter const.
9565 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9566 * breakpoint.c (condition_completer): Make "text" and "word"
9567 parameters const. Adjust.
9568 (check_tracepoint_command): Adjust to validate_actionline
9569 prototype change.
9570 (catch_syscall_completer): Make "text" and "word" parameters
9571 const.
9572 * cli/cli-cmds.c (show_user): Make "comname" local const.
9573 (valid_command_p): Make "command" parameter const.
9574 (alias_command): Make "alias_prefix" and "command_prefix" locals
9575 const.
9576 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9577 (add_alias_cmd): Make "name" and "oldname" parameters const.
9578 Adjust. No longer make copy of OLDNAME.
9579 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9580 (add_setshow_cmd_full, add_setshow_enum_cmd)
9581 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9582 (add_setshow_filename_cmd, add_setshow_string_cmd)
9583 (add_setshow_string_noescape_cmd)
9584 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9585 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9586 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9587 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9588 Make "name" parameter const.
9589 (help_cmd): Rename "command" parameter to "arg". New const local
9590 "command".
9591 (find_cmd): Make "command" parameter const.
9592 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9593 deprecated_cmd_warning prototype change.
9594 (undef_cmd_error): Make "cmdtype" parameter const.
9595 (lookup_cmd): Make "line" parameter const.
9596 (deprecated_cmd_warning): Change type of "text" parameter to
9597 pointer to const char, from pointer to pointer to char. Adjust.
9598 (lookup_cmd_composition): Make "text" parameter const.
9599 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9600 parameters const.
9601 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9602 const.
9603 * cli/cli-script.c (validate_comname): Make "tem" local const.
9604 (define_command): New const local "tem_c". Use it in calls to
9605 lookup_cmd.
9606 (document_command): Make "tem" and "comfull" locals const.
9607 (show_user_1): Make "prefix" and "name" parameters const.
9608 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9609 const.
9610 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9611 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9612 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9613 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9614 (complete_on_enum, add_setshow_enum_cmd)
9615 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9616 (add_setshow_filename_cmd, add_setshow_string_cmd)
9617 (add_setshow_string_noescape_cmd)
9618 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9619 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9620 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9621 Change prototypes, constifying strings.
9622 * completer.c (noop_completer, filename_completer): Make "text"
9623 and "prefix" parameters const.
9624 (location_completer, expression_completer)
9625 (complete_line_internal): Make "text" and "prefix" parameters
9626 const and adjust.
9627 (command_completer, signal_completer): Make "text" and "prefix"
9628 parameters const.
9629 * completer.h (noop_completer, filename_completer)
9630 (expression_completer, location_completer, command_completer)
9631 (signal_completer): Change prototypes.
9632 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9633 parameters const.
9634 * cp-abi.c (cp_abi_completer): Likewise.
9635 * expression.h (parse_expression_for_completion): Change
9636 prototype.
9637 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9638 parameters const.
9639 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9640 * infrun.c (handle_completer): Make "text" and "word" parameters
9641 const.
9642 * interps.c (interpreter_completer): Make "text" and "word"
9643 parameters const.
9644 * language.h (struct language_defn)
9645 <la_make_symbol_completion_list>: Make "text" and "word"
9646 parameters const.
9647 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9648 (parse_exp_in_context): Rename to ...
9649 (parse_exp_in_context_1): ... this.
9650 (parse_exp_in_context): Reimplement, with const hack from
9651 parse_exp_1.
9652 (parse_expression_for_completion): Make "string" parameter const.
9653 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9654 to pointer to const char. Adjust.
9655 (print_command_1): Make "exp" parameter const.
9656 (output_command): Rename to ...
9657 (output_command_const): ... this. Make "exp" parameter const.
9658 (output_command): Reimplement.
9659 (x_command): Adjust.
9660 (display_command): Rename "exp" parameter to "arg". New "exp"
9661 local, const version of "arg".
9662 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9663 "cmd_name" local const.
9664 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9665 call.
9666 (cmdpy_completer): Make "text" and "word" parameters const.
9667 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9668 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9669 const.
9670 * remote.c (_initialize_remote): Make "cmd_name" local const.
9671 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9672 parameters const. Adjust.
9673 (completion_list_add_fields): Make "sym_text", "text" and "word"
9674 parameters const.
9675 (struct add_name_data) <sym_text, text, word>: Make fields const.
9676 (default_make_symbol_completion_list_break_on): Make "text" and
9677 "word" parameters const. Adjust locals.
9678 (default_make_symbol_completion_list)
9679 (make_symbol_completion_list, make_symbol_completion_type)
9680 (make_symbol_completion_list_fn): Make "text" and "word"
9681 parameters const.
9682 (make_file_symbol_completion_list): Make "text", "word" and
9683 "srcfile" parameters const. Adjust locals.
9684 (add_filename_to_list): Make "text" and "word" parameters const.
9685 (struct add_partial_filename_data) <text, word>: Make fields
9686 const.
9687 (make_source_files_completion_list): Make "text" and "word"
9688 parameters const.
9689 * symtab.h (default_make_symbol_completion_list_break_on)
9690 (default_make_symbol_completion_list, make_symbol_completion_list)
9691 (make_symbol_completion_type enum type_code)
9692 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9693 (make_source_files_completion_list): Change prototype.
9694 * top.c (execute_command): Adjust to pass pointer to pointer to
9695 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9696 change.
9697 (set_verbose): Make "cmdname" local const.
9698 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9699 and adjust.
9700 (validate_actionline): Make "line" parameter a pointer to const
9701 char, and adjust.
9702 (encode_actions_1): Make "action_exp" local const, and adjust.
9703 (encode_actions): Adjust.
9704 (replace_comma): Delete.
9705 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9706 const, and adjust. Don't frob the action string while splitting
9707 it at commas. Instead, make a copy of each split substring in
9708 turn.
9709 (trace_dump_command): Adjust to validate_actionline prototype
9710 change.
9711 * tracepoint.h (decode_agent_options, decode_agent_options)
9712 (encode_actions, validate_actionline): Change prototypes.
9713 * valprint.h (output_command): Delete declaration.
9714 (output_command_const): Declare.
9715 * value.c (function_destroyer): Cast const away in xfree call.
9716
9717 2013-03-13 Pedro Alves <palves@redhat.com>
9718
9719 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9720 rather than casting 'const char * const *' to 'const char **'.
9721 * ada-lex.l (processInt): Make "trailer" local const. Remove
9722 'const char **' cast.
9723 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9724 locals, and use those as strtol output pointer, instead than doing
9725 invalid casts to from 'const char **' to 'char **'.
9726 (_initialize_demangle): Remove cast.
9727 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9728 locals, and use those as strtol output pointer, instead than doing
9729 invalid casts to from 'const char **' to 'char **'.
9730 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9731 casts.
9732 * stap-probe.c (stap_parse_register_operand)
9733 (stap_parse_single_operand): Likewise.
9734
9735 2013-03-13 Yao Qi <yao@codesourcery.com>
9736
9737 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9738 the last matched 'V' blcok in trace frame.
9739
9740 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9741
9742 * NEWS: Create a new section for the next release branch.
9743 Rename the section of the current branch, now that it has
9744 been cut.
9745
9746 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9747
9748 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9749 * version.in: Bump version to 7.6.50.20130312-cvs.
9750
9751 2013-03-12 Keith Seitz <keiths@redhat.com>
9752
9753 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9754 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9755 Remove temporary copy of input string.
9756 (mi_execute_command_wrapper): Make "cmd" const.
9757 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9758 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9759 Use const strings.
9760 (mi_parse): Make "cmd" const.
9761 Use const strings.
9762 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9763
9764 2013-03-12 Keith Seitz <keiths@redhat.com>
9765
9766 * ada-lang.c (ada_read_renaming_var_value): Pass const
9767 pointer to expression string to parse_exp_1.
9768 (create_excep_cond_exprs): Likewise.
9769 * ax-gdb.c (agent_eval_command_one): Likewise.
9770 (maint_agent_printf_command): Likewise.
9771 Constify much of the string handling/parsing.
9772 * breakpoint.c (set_breakpoint_condition): Pass const
9773 pointer to expression string to parse_exp_1.
9774 (update_watchpoint): Likewise.
9775 (parse_cmd_to_aexpr): Constify string handling.
9776 Pass const pointer to parse_exp_1.
9777 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9778 (find_condition_and_thread): Likewise.
9779 Make TOK const.
9780 (watch_command_1): Make "arg" const.
9781 Constify string handling.
9782 Copy the expression string instead of changing the input
9783 string.
9784 (update_breakpoint_location): Pass const pointer to
9785 parse_exp_1.
9786 * eval.c (parse_and_eval_address): Make "exp" const.
9787 (parse_to_comma_and_eval): Make "expp" const.
9788 (parse_and_eval): Make "exp" const.
9789 * expression.h (parse_expression): Make argument const.
9790 (parse_exp_1): Make first argument const.
9791 * findcmd.c (parse_find_args): Treat "args" as const.
9792 * linespec.c (parse_linespec): Pass const pointer to
9793 linespec_expression_to_pc.
9794 (linespec_expression_to_pc): Make "exp_ptr" const.
9795 * parse.c (parse_exp_1): Make "stringptr" const.
9796 Make a copy of the expression to pass to parse_exp_in_context until
9797 this whole interface can be constified.
9798 (parse_expression): Make "string" const.
9799 * printcmd.c (ui_printf): Treat "arg" as const.
9800 Handle const strings.
9801 * tracepoint.c (validate_actionline): Pass const pointer to
9802 all calls to parse_exp_1.
9803 (encode_actions_1): Likewise.
9804 * value.h (parse_to_comma_and_eval): Make argument const.
9805 (parse_and_eval_address): Likewise.
9806 (parse_and_eval): Likewise.
9807 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9808 (varobj_set_value): Likewise.
9809 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9810 constify string handling.
9811 Pass const pointers to parse_and_eval_address and
9812 parse_to_comman_and_eval.
9813 * cli/cli-utils.c (skip_to_space): Rename to ...
9814 (skip_to_space_const): ... this. Handle const strings.
9815 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9816 skip_to_space_const.
9817 (skip_to_space_const): Declare.
9818 * common/format.c (parse_format_string): Make "arg" const.
9819 Handle const strings.
9820 * common/format.h (parse_format_string): Make "arg" const.
9821 * gdbserver/ax.c (ax_printf): Make "format" const.
9822 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9823 of the expression string.
9824
9825 2013-03-12 Hui Zhu <hui@codesourcery.com>
9826
9827 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9828
9829 2013-03-12 Yao Qi <yao@codesourcery.com>
9830 Hui Zhu <hui@codesourcery.com>
9831
9832 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9833 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9834 DW_OP_deref_size.
9835
9836 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9837
9838 * ada-lex.l (rules): Only recognize 'thread' as a
9839 delimiter when followed by numerals, as for c-exp.y.
9840 Use new rewind_to_char function to rewind the input for
9841 expression-delimiting tokens.
9842 (rewind_to_char): New function.
9843
9844 2013-03-11 Pedro Alves <palves@redhat.com>
9845 Jan Kratochvil <jan.kratochvil@redhat.com>
9846
9847 * configure: Regenerate.
9848 * configure.ac (check dynamic export flag): Link python test with
9849 $PYTHON_LIBS.
9850
9851 2013-03-11 Doug Evans <dje@google.com>
9852 Keith Seitz <keiths@redhat.com>
9853
9854 * linespec.c (find_linespec_symbols): Call find_function_symbols
9855 first, and then call lookup_prefix_sym/find_method.
9856
9857 2013-03-11 Pedro Alves <palves@redhat.com>
9858
9859 * charset.c (convert_between_encodings): Don't cast between
9860 different pointer to pointer types. Instead, make the 'inp' local
9861 be of the type iconv expects.
9862 (wchar_iterate): Don't cast between different pointer to pointer
9863 types. Instead, use new pointer local of the type iconv expects.
9864 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9865 Add new local of type char pointer, and use it to get a
9866 char/string view of the byte buffer, instead of casting between
9867 pointer to pointer types.
9868
9869 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9870
9871 * remote.c (remote_set_trace_buffer_size): Move != operator
9872 to the start of next line to fix an ARI warning.
9873
9874 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9875
9876 * NEWS: Add record changes.
9877
9878 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9879
9880 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9881 the instruction history disassembly.
9882 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9883 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9884
9885 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9886
9887 * Makefile.in (SFILES): Add record-btrace.c
9888 (COMMON_OBS): Add record-btrace.o
9889 * record-btrace.c: New.
9890 * objfiles.c: Include btrace.h.
9891 (free_objfile): call btrace_free_objfile.
9892
9893 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9894
9895 * target.c (target_call_history, target_call_history_from,
9896 target_call_history_range): New.
9897 * target.h (target_ops) <to_call_history, to_call_history_from,
9898 to_call_history_range>: New fields.
9899 (target_call_history, target_call_history_from,
9900 target_call_history_range): New declaration.
9901 * record.c (get_call_history_modifiers, cmd_record_call_history,
9902 record_call_history_size): New.
9903 (_initialize_record): Add the "record function-call-history" command.
9904 Add "set/show record function-call-history-size" commands.
9905 * record.h (record_print_flag): New.
9906
9907 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9908
9909 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9910 to_insn_history_range>: New fields.
9911 (target_insn_history): New.
9912 (target_insn_history_from): New.
9913 (target_insn_history_range): New.
9914 * target.c (target_insn_history): New.
9915 (target_insn_history_from): New.
9916 (target_insn_history_range): New.
9917 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9918 (record_insn_history_size): New.
9919 (get_insn_number): New.
9920 (get_context_size): New.
9921 (no_chunk): New.
9922 (get_insn_history_modifiers): New.
9923 (cmd_record_insn_history): New.
9924 (_initialize_record): Add "set/show record instruction-history-size"
9925 command. Add "record instruction-history" command.
9926
9927 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9928
9929 * record.h (record_disconnect): New.
9930 (record_detach): New.
9931 (record_mourn_inferior): New.
9932 (record_kill): New.
9933 * record-full.c (record_disconnect, record_detach,
9934 record_mourn_inferior, record_kill): Move to...
9935 * record.c: ...here.
9936 (DEBUG): New.
9937 (record_stop): New.
9938 (record_unpush): New.
9939 (cmd_record_stop): Call record_stop. Replace unpush_target
9940 call with record_unpush call.
9941 (record_disconnect, record_detach): Assert that the target
9942 is of record stratum. Call record_unpush, record_stop, and
9943 DEBUG.
9944 (record_mourn_inferior, record_kill): Assert that the target
9945 is of record stratum. Call record_unpush and DEBUG.
9946
9947 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9948
9949 * record-full.h, record-full.c (record_memory_query): Rename
9950 to ...
9951 (record_full_memory_query): ...this. Update all users.
9952 (record_arch_list_add_reg): Rename to ...
9953 (record_full_arch_list_add_reg): ...this. Update all users.
9954 (record_arch_list_add_mem): Rename to ...
9955 (record_full_arch_list_add_mem): ...this. Update all users.
9956 (record_arch_list_add_end): Rename to ...
9957 (record_full_arch_list_add_end): ...this. Update all users.
9958 (record_gdb_operation_disable_set): Rename to ...
9959 (record_full_gdb_operation_disable_set): ...this.
9960 Update all users.
9961
9962 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9963
9964 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9965 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9966 (RECORD_IS_REPLAY): Renamed to ...
9967 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9968 (RECORD_FILE_MAGIC): Renamed to ...
9969 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9970 (record_mem_entry): Renamed to ...
9971 (record_full_mem_entry): ... this. Updated all users.
9972 (record_reg_entry): Renamed to ...
9973 (record_full_reg_entry): ... this. Updated all users.
9974 (record_end_entry): Renamed to ...
9975 (record_full_end_entry): ... this. Updated all users.
9976 (record_type) <record_end, record_reg, record_mem>: Renamed
9977 to ...
9978 (record_full_type) <record_full_end, record_full_reg,
9979 record_full_mem>: ... this. Updated all users.
9980 (record_entry): Renamed to ...
9981 (record_full_entry): ... this. Updated all users.
9982 (record_core_buf_entry): Renamed to ...
9983 (record_full_core_buf_entry): ... this. Updated all users.
9984 (record_core_regbuf): Renamed to ...
9985 (record_full_core_regbuf): ... this. Updated all users.
9986 (record_core_start): Renamed to ...
9987 (record_full_core_start): ... this. Updated all users.
9988 (record_core_end): Renamed to ...
9989 (record_full_core_end): ... this. Updated all users.
9990 (record_core_buf_list): Renamed to ...
9991 (record_full_core_buf_list): ... this. Updated all users.
9992 (record_first): Renamed to ...
9993 (record_full_first): ... this. Updated all users.
9994 (record_list): Renamed to ...
9995 (record_full_list): ... this. Updated all users.
9996 (record_arch_list_head): Renamed to ...
9997 (record_full_arch_list_head): ... this. Updated all users.
9998 (record_arch_list_tail): Renamed to ...
9999 (record_full_arch_list_tail): ... this. Updated all users.
10000 (record_stop_at_limit): Renamed to ...
10001 (record_full_stop_at_limit): ... this. Updated all users.
10002 (record_insn_max_num): Renamed to ...
10003 (record_full_insn_max_num): ... this. Updated all users.
10004 (record_insn_num): Renamed to ...
10005 (record_full_insn_num): ... this. Updated all users.
10006 (record_insn_count): Renamed to ...
10007 (record_full_insn_count): ... this. Updated all users.
10008 (record_ops): Renamed to ...
10009 (record_full_ops): ... this. Updated all users.
10010 (record_core_ops): Renamed to ...
10011 (record_full_core_ops): ... this. Updated all users.
10012 (set_record_cmdlist): Renamed to ...
10013 (set_record_full_cmdlist): ... this. Updated all users.
10014 (show_record_cmdlist): Renamed to ...
10015 (show_record_full_cmdlist): ... this. Updated all users.
10016 (record_cmdlist): Renamed to ...
10017 (record_full_cmdlist): ... this. Updated all users.
10018 (record_beneath_to_resume_ops): Renamed to ...
10019 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10020 (record_beneath_to_resume): Renamed to ...
10021 (record_full_beneath_to_resume): ... this. Updated all users.
10022 (record_beneath_to_wait_ops): Renamed to ...
10023 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10024 (record_beneath_to_wait): Renamed to ...
10025 (record_full_beneath_to_wait): ... this. Updated all users.
10026 (record_beneath_to_store_registers_ops): Renamed to ...
10027 (record_full_beneath_to_store_registers_ops): ... this.
10028 Updated all users.
10029 (record_beneath_to_store_registers): Renamed to ...
10030 (record_full_beneath_to_store_registers): ... this.
10031 Updated all users.
10032 (record_beneath_to_xfer_partial_ops): Renamed to ...
10033 (record_full_beneath_to_xfer_partial_ops): ... this.
10034 Updated all users.
10035 (record_beneath_to_xfer_partial): Renamed to ...
10036 (record_full_beneath_to_xfer_partial): ... this.
10037 Updated all users.
10038 (record_beneath_to_insert_breakpoint): Renamed to ...
10039 (record_full_beneath_to_insert_breakpoint): ... this.
10040 Updated all users.
10041 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10042 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10043 Updated all users.
10044 (record_beneath_to_stopped_data_address): Renamed to ...
10045 (record_full_beneath_to_stopped_data_address): ... this.
10046 Updated all users.
10047 (record_beneath_to_async): Renamed to ...
10048 (record_full_beneath_to_async): ... this. Updated all users.
10049 (record_goto_insn): Renamed to ...
10050 (record_full_goto_insn): ... this. Updated all users.
10051 (record_save): Renamed to ...
10052 (record_full_save): ... this. Updated all users.
10053 (record_reg_alloc): Renamed to ...
10054 (record_full_reg_alloc): ... this. Updated all users.
10055 (record_reg_release): Renamed to ...
10056 (record_full_reg_release): ... this. Updated all users.
10057 (record_mem_alloc): Renamed to ...
10058 (record_full_mem_alloc): ... this. Updated all users.
10059 (record_mem_release): Renamed to ...
10060 (record_full_mem_release): ... this. Updated all users.
10061 (record_end_alloc): Renamed to ...
10062 (record_full_end_alloc): ... this. Updated all users.
10063 (record_end_release): Renamed to ...
10064 (record_full_end_release): ... this. Updated all users.
10065 (record_entry_release): Renamed to ...
10066 (record_full_entry_release): ... this. Updated all users.
10067 (record_list_release): Renamed to ...
10068 (record_full_list_release): ... this. Updated all users.
10069 (record_list_release_following): Renamed to ...
10070 (record_full_list_release_following): ... this.
10071 Updated all users.
10072 (record_list_release_first): Renamed to ...
10073 (record_full_list_release_first): ... this. Updated all users.
10074 (record_arch_list_add): Renamed to ...
10075 (record_full_arch_list_add): ... this. Updated all users.
10076 (record_get_loc): Renamed to ...
10077 (record_full_get_loc): ... this. Updated all users.
10078 (record_check_insn_num): Renamed to ...
10079 (record_full_check_insn_num): ... this. Updated all users.
10080 (record_arch_list_cleanups): Renamed to ...
10081 (record_full_arch_list_cleanups): ... this. Updated all users.
10082 (record_message): Renamed to ...
10083 (record_full_message): ... this. Updated all users.
10084 (record_message_wrapper): Renamed to ...
10085 (record_full_message_wrapper): ... this. Updated all users.
10086 (record_message_wrapper_safe): Renamed to ...
10087 (record_full_message_wrapper_safe): ... this. Updated all users.
10088 (record_gdb_operation_disable): Renamed to ...
10089 (record_full_gdb_operation_disable): ... this. Updated all users.
10090 (record_hw_watchpoint): Renamed to ...
10091 (record_full_hw_watchpoint): ... this. Updated all users.
10092 (record_exec_insn): Renamed to ...
10093 (record_full_exec_insn): ... this. Updated all users.
10094 (record_restore): Renamed to ...
10095 (record_full_restore): ... this. Updated all users.
10096 (record_async_inferior_event_token): Renamed to ...
10097 (record_full_async_inferior_event_token): ... this.
10098 Updated all users.
10099 (record_async_inferior_event_handler): Renamed to ...
10100 (record_full_async_inferior_event_handler): ... this.
10101 Updated all users.
10102 (record_core_open_1): Renamed to ...
10103 (record_full_core_open_1): ... this. Updated all users.
10104 (record_open_1): Renamed to ...
10105 (record_full_open_1): ... this. Updated all users.
10106 (record_open): Renamed to ...
10107 (record_full_open): ... this. Updated all users.
10108 (record_close): Renamed to ...
10109 (record_full_close): ... this. Updated all users.
10110 (record_resume_step): Renamed to ...
10111 (record_full_resume_step): ... this. Updated all users.
10112 (record_resumed): Renamed to ...
10113 (record_full_resumed): ... this. Updated all users.
10114 (record_execution_dir): Renamed to ...
10115 (record_full_execution_dir): ... this. Updated all users.
10116 (record_resume): Renamed to ...
10117 (record_full_resume): ... this. Updated all users.
10118 (record_get_sig): Renamed to ...
10119 (record_full_get_sig): ... this. Updated all users.
10120 (record_sig_handler): Renamed to ...
10121 (record_full_sig_handler): ... this. Updated all users.
10122 (record_wait_cleanups): Renamed to ...
10123 (record_full_wait_cleanups): ... this. Updated all users.
10124 (record_wait_1): Renamed to ...
10125 (record_full_wait_1): ... this. Updated all users.
10126 (record_wait): Renamed to ...
10127 (record_full_wait): ... this. Updated all users.
10128 (record_stopped_by_watchpoint): Renamed to ...
10129 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10130 (record_disconnect): Renamed to ...
10131 (record_full_disconnect): ... this. Updated all users.
10132 (record_detach): Renamed to ...
10133 (record_full_detach): ... this. Updated all users.
10134 (record_mourn_inferior): Renamed to ...
10135 (record_full_mourn_inferior): ... this. Updated all users.
10136 (record_kill): Renamed to ...
10137 (record_full_kill): ... this. Updated all users.
10138 (record_stopped_data_address): Renamed to ...
10139 (record_full_stopped_data_address): ... this. Updated all users.
10140 (record_registers_change): Renamed to ...
10141 (record_full_registers_change): ... this. Updated all users.
10142 (record_store_registers): Renamed to ...
10143 (record_full_store_registers): ... this. Updated all users.
10144 (record_xfer_partial): Renamed to ...
10145 (record_full_xfer_partial): ... this. Updated all users.
10146 (record_breakpoint): Renamed to ...
10147 (record_full_breakpoint): ... this. Updated all users.
10148 (record_breakpoint_p): Renamed to ...
10149 (record_full_breakpoint_p): ... this. Updated all users.
10150 (record_breakpoints): Renamed to ...
10151 (record_full_breakpoints): ... this. Updated all users.
10152 (record_sync_record_breakpoints): Renamed to ...
10153 (record_full_sync_record_breakpoints): ... this.
10154 Updated all users.
10155 (record_init_record_breakpoints): Renamed to ...
10156 (record_full_init_record_breakpoints): ... this.
10157 Updated all users.
10158 (record_insert_breakpoint): Renamed to ...
10159 (record_full_insert_breakpoint): ... this. Updated all users.
10160 (record_remove_breakpoint): Renamed to ...
10161 (record_full_remove_breakpoint): ... this. Updated all users.
10162 (record_can_execute_reverse): Renamed to ...
10163 (record_full_can_execute_reverse): ... this. Updated all users.
10164 (record_get_bookmark): Renamed to ...
10165 (record_full_get_bookmark): ... this. Updated all users.
10166 (record_goto_bookmark): Renamed to ...
10167 (record_full_goto_bookmark): ... this. Updated all users.
10168 (record_async): Renamed to ...
10169 (record_full_async): ... this. Updated all users.
10170 (record_can_async_p): Renamed to ...
10171 (record_full_can_async_p): ... this. Updated all users.
10172 (record_is_async_p): Renamed to ...
10173 (record_full_is_async_p): ... this. Updated all users.
10174 (record_execution_direction): Renamed to ...
10175 (record_full_execution_direction): ... this. Updated all users.
10176 (record_info): Renamed to ...
10177 (record_full_info): ... this. Updated all users.
10178 (record_delete): Renamed to ...
10179 (record_full_delete): ... this. Updated all users.
10180 (record_is_replaying): Renamed to ...
10181 (record_full_is_replaying): ... this. Updated all users.
10182 (record_goto_entry): Renamed to ...
10183 (record_full_goto_entry): ... this. Updated all users.
10184 (record_goto_begin): Renamed to ...
10185 (record_full_goto_begin): ... this. Updated all users.
10186 (record_goto_end): Renamed to ...
10187 (record_full_goto_end): ... this. Updated all users.
10188 (record_goto): Renamed to ...
10189 (record_full_goto): ... this. Updated all users.
10190 (init_record_ops): Renamed to ...
10191 (init_record_full_ops): ... this. Updated all users.
10192 (record_core_resume): Renamed to ...
10193 (record_full_core_resume): ... this. Updated all users.
10194 (record_core_kill): Renamed to ...
10195 (record_full_core_kill): ... this. Updated all users.
10196 (record_core_fetch_registers): Renamed to ...
10197 (record_full_core_fetch_registers): ... this. Updated all users.
10198 (record_core_prepare_to_store): Renamed to ...
10199 (record_full_core_prepare_to_store): ... this. Updated all users.
10200 (record_core_store_registers): Renamed to ...
10201 (record_full_core_store_registers): ... this. Updated all users.
10202 (record_core_xfer_partial): Renamed to ...
10203 (record_full_core_xfer_partial): ... this. Updated all users.
10204 (record_core_insert_breakpoint): Renamed to ...
10205 (record_full_core_insert_breakpoint): ... this. Updated all users.
10206 (record_core_remove_breakpoint): Renamed to ...
10207 (record_full_core_remove_breakpoint): ... this. Updated all users.
10208 (record_core_has_execution): Renamed to ...
10209 (record_full_core_has_execution): ... this. Updated all users.
10210 (init_record_core_ops): Renamed to ...
10211 (init_record_full_core_ops): ... this. Updated all users.
10212 (cmd_record_restore): Renamed to ...
10213 (cmd_record_full_restore): ... this. Updated all users.
10214 (record_save_cleanups): Renamed to ...
10215 (record_full_save_cleanups): ... this. Updated all users.
10216 (cmd_record_start): Renamed to ...
10217 (cmd_record_full_start): ... this. Updated all users.
10218 (set_record_insn_max_num): Renamed to ...
10219 (set_record_full_insn_max_num): ... this. Updated all users.
10220 (set_record_command): Renamed to ...
10221 (set_record_full_command): ... this. Updated all users.
10222 (show_record_command): Renamed to ...
10223 (show_record_full_command): ... this. Updated all users.
10224 (_initialize_record): Renamed to ...
10225 (_initialize_record_full): ... this. Updated all users.
10226
10227 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10228
10229 * record.h: Split into this and ...
10230 * record-full.h: ... this.
10231 * record.c: Split into this and ...
10232 * record-full.c: ... this.
10233 * target.h (target_ops): Add new fields to_info_record,
10234 to_save_record, to_delete_record, to_record_is_replaying,
10235 to_goto_record_begin, to_goto_record_end, to_goto_record.
10236 (target_info_record): New.
10237 (target_save_record): New.
10238 (target_supports_delete_record): New.
10239 (target_delete_record): New.
10240 (target_record_is_replaying): New.
10241 (target_goto_record_begin): New.
10242 (target_goto_record_end): New.
10243 (target_goto_record): New.
10244 * target.c (target_info_record): New.
10245 (target_save_record): New.
10246 (target_supports_delete_record): New.
10247 (target_delete_record): New.
10248 (target_record_is_replaying): New.
10249 (target_goto_record_begin): New.
10250 (target_goto_record_end): New.
10251 (target_goto_record): New.
10252 * record.h: Declare struct cmd_list_element.
10253 (record_cmdlist): New declaration.
10254 (set_record_cmdlist): New declaration.
10255 (show_record_cmdlist): New declaration.
10256 (info_record_cmdlist): New declaration.
10257 (cmd_record_goto): New declaration.
10258 * record.c: Remove unnecessary includes.
10259 Include inferior.h.
10260 (cmd_record_goto): Remove declaration.
10261 (record_cmdlist): Now extern. Initialize.
10262 (set_record_cmdlist): Now extern. Initialize.
10263 (show_record_cmdlist): Now extern. Initialize.
10264 (info_record_cmdlist): Now extern. Initialize.
10265 (find_record_target): New.
10266 (require_record_target): New.
10267 (cmd_record_start): Update.
10268 (cmd_record_delete): Remove target-specific code.
10269 Call target_delete_record.
10270 (cmd_record_stop): Unpush any record target.
10271 (set_record_insn_max_num): Move to record-full.c
10272 (set_record_command): Add comment.
10273 (show_record_command): Add comment.
10274 (info_record_command): Update comment.
10275 Remove target-specific code.
10276 Call the record target's to_info_record.
10277 (cmd_record_start): New.
10278 (cmd_record_goto): Now extern.
10279 Remove target-specific code.
10280 Call target_goto_begin, target_goto_end, or target_goto.
10281 (_initialize_record): Move record target ops initialization to
10282 record-full.c.
10283 Change "record" command help text.
10284 Move "record restore", "record set", and "record show" commands to
10285 record-full.c.
10286 * Makefile.in (SFILES): Add record-full.c.
10287 (HFILES_NO_SRCDIR): Add record-full.h.
10288 (COMMON_OBS): Add record-full.o.
10289 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10290 * arm-tdep.c: Include record-full.h.
10291 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10292 * i386-tdep.c: Include record-full.h.
10293 * infrun.c: Include record-full.h.
10294 * linux-record.c: Include record-full.h.
10295 * moxie-tdep.c: Include record-full.h.
10296 * record-full.c: Include record-full.h.
10297 Change module comment.
10298 (set_record_full_cmdlist): New.
10299 (show_record_full_cmdlist): New.
10300 (record_full_cmdlist): New.
10301 (record_goto_insn): New declaration.
10302 (record_save): New declaration.
10303 (record_check_insn_num): Change query string.
10304 (record_info): New.
10305 (record_delete): New.
10306 (record_is_replaying): New.
10307 (record_goto_entry): New.
10308 (record_goto_begin): New.
10309 (record_goto_end): New.
10310 (record_goto): New.
10311 (init_record_ops): Update.
10312 (init_record_core_ops): Update.
10313 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10314 (cmd_record_start): New.
10315 (set_record_insn_max_num): Moved from record.c
10316 (set_record_full_command): New.
10317 (show_record_full_command): New.
10318 (_initialize_record_full): New.
10319
10320 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10321
10322 * target.h (add_deprecated_target_alias): New.
10323 * target.c (add_deprecated_target_alias): New.
10324
10325 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10326
10327 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10328 and signal.h.
10329 (linux_supports_btrace): Add kernel and
10330 cpuid check.
10331 (kernel_supports_btrace): New function.
10332 (cpu_supports_btrace): New function.
10333 (intel_supports_btrace): New function.
10334
10335 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10336
10337 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10338 * remote.c: Include btrace.h.
10339 (struct btrace_target_info): New struct.
10340 (remote_supports_btrace): New function.
10341 (send_Qbtrace): New function.
10342 (remote_enable_btrace): New function.
10343 (remote_disable_btrace): New function.
10344 (remote_teardown_btrace): New function.
10345 (remote_read_btrace): New function.
10346 (init_remote_ops): Add btrace ops.
10347 (enum <unnamed>): Add btrace packets.
10348 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10349 (_initialize_remote): Add packet configuration for branch tracing.
10350
10351 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10352
10353 * features/btrace.dtd: New file.
10354 * Makefile.in (XMLFILES): Add btrace.dtd.
10355 * btrace.h (parse_xml_btrace): New declaration.
10356 * btrace.c: Include xml-support.h.
10357 (parse_xml_btrace): New function.
10358 (parse_xml_btrace_block): New function.
10359 (block_attributes): New struct.
10360 (btrace_attributes): New struct.
10361 (btrace_children): New struct.
10362 (btrace_elements): New struct.
10363
10364 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10365
10366 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10367 (amd64_linux_enable_btrace): New.
10368 (amd64_linux_disable_btrace): New.
10369 (amd64_linux_teardown_btrace): New.
10370 (_initialize_amd64_linux_nat): Initialize btrace ops.
10371 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10372 (i386_linux_enable_btrace): New.
10373 (i386_linux_disable_btrace): New.
10374 (i386_linux_teardown_btrace): New.
10375 (_initialize_i386_linux_nat): Initialize btrace ops.
10376 * config/i386/linux.mh: Add linux-btrace.o.
10377 * config/i386/linux64.mh: Add linux-btrace.o.
10378
10379 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10380
10381 * common/linux_btrace.h: New file.
10382 * common/linux_btrace.c: New file.
10383 * Makefile.in (SFILES): Add btrace.c.
10384 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10385 (COMMON_OBS): Add btrace.o.
10386 (linux-btrace.o): New rule.
10387
10388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10389
10390 * target.h: Include btrace.h.
10391 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10392 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10393 * target.c (target_supports_btrace): New function.
10394 (target_enable_btrace): New function.
10395 (target_disable_btrace): New function.
10396 (target_teardown_btrace): New function.
10397 (target_read_btrace): New function.
10398 * btrace.h: New file.
10399 * btrace.c: New file.
10400 * Makefile.in: Add btrace.c.
10401 * gdbthread.h: Include btrace.h.
10402 (struct thread_info): Add btrace field.
10403 * thread.c: Include btrace.h.
10404 (clear_thread_inferior_resources): Call target_teardown_btrace.
10405 * common/btrace-common.h: New file.
10406
10407 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10408
10409 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10410 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10411 kill_status to outer block.
10412
10413 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 Fix entry-values if the callee called a noreturn function.
10416 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10417 get_frame_address_in_block. Add new comment.
10418
10419 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10420
10421 Fix entry-values in C++ across CUs.
10422 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10423 lookup_minimal_symbol. Add a comment.
10424 * dwarf2read.c
10425 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10426 DW_AT_linkage_name.
10427
10428 2013-03-08 Yao Qi <yao@codesourcery.com>
10429
10430 * tracepoint.c (_initialize_tracepoint): Indent the code.
10431
10432 2013-03-08 Pedro Alves <palves@redhat.com>
10433
10434 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10435 (parse_find_args, find_command): Change type of pattern buffer
10436 locals to 'gdb_byte *'.
10437
10438 2013-03-08 Stan Shebs <stan@codesourcery.com>
10439 Hafiz Abid Qadeer <abidh@codesourcery.com>
10440
10441 * NEWS: Mention set and show trace-buffer-size commands.
10442 Mention new packet.
10443 * target.h (struct target_ops): New method
10444 to_set_trace_buffer_size.
10445 (target_set_trace_buffer_size): New macro.
10446 * target.c (update_current_target): Set up new method.
10447 * tracepoint.c (trace_buffer_size): New global.
10448 (start_tracing): Send it to the target.
10449 (set_trace_buffer_size): New function.
10450 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10451 * remote.c (remote_set_trace_buffer_size): New function.
10452 (_initialize_remote): Use it.
10453 (QTBuffer:size) New remote command.
10454 (PACKET_QTBuffer_size): New enum.
10455 (remote_protocol_features): Add an entry for
10456 PACKET_QTBuffer_size.
10457
10458 2013-03-08 Tom Tromey <tromey@redhat.com>
10459
10460 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10461 variable.
10462
10463 2013-03-07 Pedro Alves <palves@redhat.com>
10464
10465 * target.c (target_read_stralloc, target_fileio_read_alloc):
10466 *Cast pointer to 'gdb_byte *' in target call.
10467
10468 2013-03-07 Pedro Alves <palves@redhat.com>
10469
10470 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10471 call.
10472
10473 2013-03-07 Keith Seitz <keiths@redhat.com>
10474
10475 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10476 (trace_pass_command): Likewise.
10477 * cli/cli-cmds.c: Include cli/cli-utils.h.
10478 (source_command): Use skip-spaces.
10479 (disassemble_command): Likewise.
10480 * findcmd.c: Include cli/cli-utils.h.
10481 (parse_find_args): Use skip_spaces.
10482 * go32-nat.c: Include cli/cli-utils.h.
10483 (go32_sldt): Use skip_spaces.
10484 (go32_sgdt): Likewise.
10485 (go32_sidt): Likewise.
10486 (go32_pde): Likewise.
10487 (go32_pte): Likewise.
10488 (go32_pte_for_address): Likewise.
10489 * infcmd.c: Include cli/cli-utils.h.
10490 (registers_info): Use skip_spaces.
10491 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10492 (linux_info_proc): Likewise.
10493 * linux-thread-db.c: Include cli/cli-utils.h.
10494 (info_auto_load_libthread_db): Use skip_spaces_const.
10495 * m32r-rom.c: Include cli/cli-utils.h.
10496 (m32r_upload_command): Use skip_spaces.
10497 * maint.c: Include cli/cli-utils.h.
10498 (maintenance_translate_address): Use skip_spaces.
10499 * mi/mi-parse.c: Include cli/cli-utils.h.
10500 (mi_parse_argv): Use skip_spaces.
10501 (mi_parse): Likewise.
10502 * minsyms.c: Include cli/cli-utils.h.
10503 (msymbol_hash_iw): Use skip_spaces_const.
10504 * objc-lang.c: Include cli/cli-utils.h.
10505 (parse_selector): Use skip_spaces.
10506 (parse_method): Likewise.
10507 * python/python.c: Include cli/cli-utils.h.
10508 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10509 (python_command)[HAVE_PYTHON]: Likewise.
10510 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10511 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10512 (m32r_load): Use skip_spaces.
10513 * serial.c: Include cli/cli-utils.h.
10514 (serial_open): Use skip_spaces_const.
10515 * stack.c: Include cli/cli-utils.h.
10516 (parse_frame_specification_1): Use skip_spaces_const.
10517 * symfile.c: Include cli/cli-utils.h.
10518 (set_ext_lang_command): Use skip_spaces.
10519 * symtab.c: Include cli/cli-utils.h.
10520 (rbreak_command): Use skip_spaces.
10521 * thread.c (thread_name_command): Use skip_spaces.
10522 * tracepoint.c (validate_actionline): Use skip_spaces.
10523 (encode_actions_1): Likewise.
10524 (trace_find_range_command): Likewise.
10525 (trace_find_outside_command): Likewise.
10526 (trace_dump_actions): Likewise.
10527
10528 2013-03-07 Pedro Alves <palves@redhat.com>
10529
10530 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10531 * expprint.c (print_subexp_standard): Likewise.
10532 * utils.c (host_char_to_target): Likewise.
10533 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10534 * varobj.c (value_get_print_value): Change type of local to char*.
10535 Cast it gdb_byte * in call to language printer.
10536
10537 2013-03-07 Pedro Alves <palves@redhat.com>
10538
10539 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10540 gdb_byte *'.
10541 (make_wchar_iterator): Remove cast to char*.
10542 (wchar_iterate): Change type of local.
10543
10544 2013-03-07 Pedro Alves <palves@redhat.com>
10545
10546 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10547 for 'regcache->register_status'.
10548
10549 2013-03-07 Pedro Alves <palves@redhat.com>
10550
10551 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10552 int.
10553
10554 2013-03-07 Pedro Alves <palves@redhat.com>
10555
10556 * stap-probe.c (handle_stap_probe): Add cast to char*.
10557
10558 2013-03-07 Pedro Alves <palves@redhat.com>
10559
10560 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10561 RECORD_MSGRCV>: Pass a signed variable to
10562 regcache_raw_read_signed, instead of an unsigned one.
10563
10564 2013-03-07 Pedro Alves <palves@redhat.com>
10565
10566 * remote-notif.c (notif_debug): Change type to int.
10567 * remote-notif.h (notif_debug): Likewise.
10568
10569 2013-03-07 Pedro Alves <palves@redhat.com>
10570
10571 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10572
10573 2013-03-07 Pedro Alves <palves@redhat.com>
10574
10575 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10576 * remote.h (hex2bin, bin2hex): ... here.
10577 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10578
10579 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10580
10581 * utils.c (initialize_utils): Improve doc strings of "set/show
10582 width", "set/show height", and "set/show pagination".
10583
10584 2013-03-06 Keith Seitz <keiths@redhat.com>
10585
10586 * ax-gdb.c (gen_printf): Make FORMAT const.
10587 * ax-gdb.h (gen_printf): Likewise.
10588 * ax-general.c (ax_string): Make STR const.
10589 * ax.h (ax_string): Likewise.
10590
10591 2013-03-06 Doug Evans <dje@google.com>
10592
10593 * elfread.c (elf_symfile_read): Move debugging printf to more
10594 logical location.
10595
10596 2013-03-06 Pedro Alves <palves@redhat.com>
10597
10598 * python/py-utils.c (target_string_to_unicode): Delete function.
10599 * python/python-internal.h (target_string_to_unicode): Delete
10600 declaration.
10601
10602 2013-03-06 Pierre Muller <muller@sourceware.org>
10603
10604 * linespec.c (get_current_search_block): ARI fix, use (void)
10605 for empty parameter list.
10606
10607 2013-03-05 Doug Evans <dje@google.com>
10608
10609 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10610 of old ada_lookup_symbol_list. In !full_search case, don't
10611 search superblocks.
10612 (ada_lookup_symbol_list): Delete arg full_search, all callers
10613 updated. Call ada_lookup_symbol_list_worker.
10614 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10615 * ada-lang.h (ada_lookup_symbol_list): Update.
10616 * language.h (language_defn): Update comment for
10617 la_iterate_over_symbols.
10618 * linespec.c (iterate_over_file_blocks): New function.
10619 (iterate_over_all_matching_symtabs): Call it.
10620 (lookup_prefix_sym): Ditto.
10621 (get_current_search_block): New function.
10622 (get_search_block): Delete.
10623 (find_label_symbols): Call get_current_search_block.
10624 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10625 * symtab.c (iterate_over_symbols): Don't search superblocks.
10626
10627 2013-03-05 Yao Qi <yao@codesourcery.com>
10628
10629 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10630 parameter VAR's type from "unsigned int" to "int".
10631 * command.h (var_zuinteger_unlimited): Update its comments.
10632 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10633
10634 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10635
10636 * NEWS: Mention new target x86_64-*-cygwin*.
10637
10638 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10639
10640 * configure.host: Add x86_64-*-cygwin* as host.
10641 * configure.tgt: Add x86_64-*-cygwin* as target.
10642 * config/i386/cygwin64.mh: New file.
10643
10644 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10645
10646 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10647
10648 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10649
10650 * linespec.c (struct linespec_canonical_name): New.
10651 (struct linespec_state): Change canonical_names type to it.
10652 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10653 xrealloc element size. Initialize the different CANONICAL fields.
10654 (canonical_to_fullform): New.
10655 (filter_results): Use it. Add variables canonical, fullform and
10656 cleanup.
10657 (struct decode_line_2_item, decode_line_2_compare_items): New.
10658 (decode_line_2): Remove variables iter and item_names, add variables
10659 items and items_count. Modify the code for these new variables.
10660
10661 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10662
10663 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10664 calling do_cleanup.
10665
10666 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10667
10668 * tracepoint.c (build_traceframe_info): Add code for byte order.
10669
10670 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10671
10672 * v850-tdep.c: (v850e2_register_name): Revise system register
10673 names to match current V850E2M architecture specifications.
10674 Update register number enum comments too.
10675
10676 2013-03-01 Jiong Wang <jiwang@tilera.com>
10677 Pedro Alves <palves@redhat.com>
10678
10679 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10680 to END_ADDR.
10681 (tilegx_skip_prologue): Limit prologue analysis to section end.
10682
10683 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10684
10685 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10686 use it.
10687
10688 2013-03-01 Pedro Alves <palves@redhat.com>
10689
10690 Use gdb_byte for bytes from the program being debugged.
10691
10692 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10693 Change type of local 'buf' to gdb_byte.
10694 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10695 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10696 * cris-tdep.c (cris_sigcontext_addr)
10697 (cris_sigtramp_frame_unwind_cache): Likewise.
10698 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10699 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10700 Likewise.
10701 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10702 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10703 (hppa32_hpux_search_dummy_call_sequence)
10704 (hppa_hpux_supply_save_state): Likewise.
10705 * hppa-linux-tdep.c (insns_match_pattern)
10706 (hppa_linux_find_global_pointer): Likewise.
10707 * hppa-tdep.c (hppa_in_function_epilogue_p)
10708 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10709 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10710 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10711 (i386fbsd_collect_uthread): Likewise.
10712 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10713 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10714 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10715 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10716 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10717 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10718 (ia64_libunwind_frame_prev_register)
10719 (ia64_libunwind_sigtramp_frame_this_id)
10720 (ia64_find_global_pointer_from_dynamic_section)
10721 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10722 (ia64_unwind_pc): Likewise.
10723 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10724 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10725 (m68hc11_extract_return_value): Likewise.
10726 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10727 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10728 (mep_get_insn, mep_push_dummy_call): Likewise.
10729 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10730 (mips_linux_in_dynsym_stub): Likewise.
10731 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10732 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10733 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10734 to gdb_byte.
10735 * remote-mips.c (mips_set_register): Likewise.
10736 * remote-sim.c (gdbsim_fetch_register): Likewise.
10737 * score-tdep.c (score7_fetch_inst): Change type of parameter
10738 'memblock' and local 'buf' to gdb_byte.
10739 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10740 Change type of local 'buf' to gdb_byte. Adjust.
10741 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10742 to gdb_byte**.
10743 (score7_analyze_prologue): Change type of 'memblock' and
10744 'memblock_ptr' locals to gdb_byte*.
10745 * sh64-tdep.c (sh64_extract_return_value)
10746 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10747 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10748 * solib-pa64.c (pa64_solib_create_inferior_hook)
10749 (pa64_open_symbol_file_object): Remove local 'buf'.
10750 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10751 (som_open_symbol_file_object): Likewise.
10752 * solib-spu.c (spu_current_sos): Likewise.
10753 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10754 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10755 (spu_store_registers): Likewise.
10756 * target.c (debug_print_register): Likewise.
10757 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10758 * xstormy16-tdep.c (xstormy16_store_return_value)
10759 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10760 (xstormy16_find_jmp_table_entry): Likewise.
10761
10762 2013-03-01 Jiong Wang <jiwang@tilera.com>
10763
10764 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10765 (tilegx_gdbarch_init): Install it.
10766
10767 2013-02-28 Tom Tromey <tromey@redhat.com>
10768
10769 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10770 PyLong_Check.
10771
10772 2013-02-28 Doug Evans <dje@google.com>
10773
10774 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10775 * python/python.c (gdbpy_find_pc_line): Ditto.
10776
10777 2013-02-28 Tom Tromey <tromey@redhat.com>
10778
10779 * contrib/excheck.py: New file.
10780 * contrib/exsummary.py: New file.
10781 * contrib/gcc-with-excheck: New file.
10782
10783 2013-02-28 Tom Tromey <tromey@redhat.com>
10784
10785 * python/python.c (gdbpy_print_stack): Call begin_line and
10786 fprintf_filtered inside TRY_CATCH.
10787
10788 2013-02-28 Tom Tromey <tromey@redhat.com>
10789
10790 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10791 inside TRY_CATCH.
10792
10793 2013-02-28 Tom Tromey <tromey@redhat.com>
10794
10795 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10796 frame_object_to_frame_info inside TRY_CATCH.
10797
10798 2013-02-28 Tom Tromey <tromey@redhat.com>
10799
10800 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10801 TRY_CATCH.
10802
10803 2013-02-28 Tom Tromey <tromey@redhat.com>
10804
10805 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10806
10807 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10808
10809 * windows-nat.c: Throughout, fix format strings and casts of
10810 printf-like functions to avoid type related warnings on all
10811 platforms.
10812 (handle_output_debug_string): Fetch context information address
10813 from debug string using string_to_core_addr.
10814
10815 2013-02-27 Jiong Wang <jiwang@tilera.com>
10816
10817 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10818 * regformats/reg-tilegx32.dat: New.
10819
10820 2013-02-27 Jiong Wang <jiwang@tilera.com>
10821
10822 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10823
10824 2013-02-27 Jiong Wang <jiwang@tilera.com>
10825
10826 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10827
10828 2013-02-27 Yao Qi <yao@codesourcery.com>
10829 Pedro Alves <palves@redhat.com>
10830
10831 * tracepoint.c (tfile_trace_find): For tfind
10832 pc/tp/range/outside, look for the next trace frame instead of
10833 always starting from frame 0.
10834
10835 2013-02-26 Anthony Green <green@moxielogic.com>
10836
10837 * configure.tgt: Add support for moxie-*-rtems* target.
10838
10839 2013-02-25 Pedro Alves <palves@redhat.com>
10840
10841 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10842 warning text.
10843
10844 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10845
10846 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10847 if $fp is used as the virtual frame pointer.
10848
10849 2013-02-23 Alan Modra <amodra@gmail.com>
10850
10851 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10852 symbol size.
10853 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10854 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10855 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10856 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10857
10858 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 Code cleanup.
10861 * elfread.c (build_id_bfd_get): Make the return type const.
10862 (build_id_verify): Make the check parameter const.
10863 (build_id_to_debug_filename): Make the build_id parameter and variable
10864 data const.
10865 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10866
10867 2013-02-21 Alan Modra <amodra@gmail.com>
10868
10869 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10870
10871 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10872
10873 Add a new method 'disassemble' to gdb.Architecture class.
10874 * python/py-arch.c (archpy_disassmble): Implementation of the
10875 new method gdb.Architecture.disassemble.
10876 (arch_object_methods): Add entry for the new method.
10877
10878 2013-02-20 Jiong Wang <jiwang@tilera.com>
10879
10880 * MAINTAINERS (Write After Approval): Add myself to the list.
10881
10882 2013-02-19 Pedro Alves <palves@redhat.com>
10883
10884 Garbage collect 'struct monitor_ops'::load_routine.
10885
10886 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10887 * monitor.c (monitor_load): No longer call
10888 current_monitor->load_routine.
10889 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10890 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10891 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10892
10893 2013-02-19 Pedro Alves <palves@redhat.com>
10894
10895 PR gdb/15161
10896
10897 Harmonize with generic_load.
10898
10899 * monitor.c: Include "readline/readline.h".
10900 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10901 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10902 long/strtol for the 'load_offset' local. Error out if no argument
10903 is given or if too many arguments are given. Tilde expand the
10904 passed in file name.
10905
10906 2013-02-19 Kai Tietz <ktietz@redhat.com>
10907
10908 PR gdb/15161
10909 * symfile.c (load_section_data): Change type of load_offset
10910 to CORE_ADDR.
10911 (generic_load): User strtoulst instead of strtoul for conversion
10912 of load_offset.
10913
10914 2013-02-19 Jiong Wang <jiwang@tilera.com>
10915
10916 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10917 for return address, "lr" register, saved on stack.
10918 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10919 after we invoke tilegx_analyze_prologue.
10920
10921 2013-02-19 Jiong Wang <jiwang@tilera.com>
10922
10923 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10924
10925 2013-02-19 Jiong Wang <jiwang@tilera.com>
10926
10927 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10928
10929 2013-02-19 Jiong Wang <jiwang@tilera.com>
10930
10931 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10932 (tilegx_write_pc): New function.
10933 (tilegx_cannot_reference_register): Return zero if REGNO
10934 is TILEGX_FAULTNUM_REGNUM.
10935 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10936 (tilegx_register_name): Add handling of "faultnum" register.
10937 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10938 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10939 handling of TILEGX_FAULTNUM_REGNUM.
10940 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10941
10942 2013-02-19 Jiong Wang <jiwang@tilera.com>
10943
10944 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10945 should be aligned to 64bit.
10946
10947 2013-02-19 Kai Tietz <ktietz@redhat.com>
10948
10949 * windows-nat.c (windows_xfer_memory): Fix debug-output
10950 for LLP64.
10951
10952 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10953
10954 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10955 Don't check DSP register number if HAVE_DSP is not set.
10956
10957 2013-02-19 Alan Modra <amodra@gmail.com>
10958
10959 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10960 throughout file instead.
10961 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10962 Don't xmalloc return value.
10963 (build_id_verify): Similarly. Don't xfree.
10964 (build_id_to_debug_filename): Update.
10965 (find_separate_debug_file_by_buildid): Update, don't xfree.
10966
10967 2013-02-18 Tom Tromey <tromey@redhat.com>
10968
10969 PR gdb/15102:
10970 * dwarf2read.c (read_subrange_type): Use result of
10971 'check_typedef'.
10972
10973 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10974
10975 * frame.c: Remove one extra white space after #include
10976 directive.
10977
10978 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10979
10980 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10981
10982 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10983
10984 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10985 and dir commands into an if block.
10986
10987 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10988
10989 * python/py-breakpoint (struct pybp_code): Use int instead of
10990 enum type_code.
10991
10992 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10993 Hafiz Abid Qadeer <abidh@codesourcery.com>
10994
10995 * NEWS: Mention new field "trace-file".
10996 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10997 (tfile_open): Record the trace file's filename in the trace
10998 status.
10999 (tfile_files_info): Mention the name of the trace file.
11000 Check the "filename" field explicitely.
11001 (trace_status_command): Explicitely check "filename" field.
11002 (trace_find_command): Ditto.
11003 (trace_find_pc_command): Ditto.
11004 (trace_find_tracepoint_command): Ditto.
11005 (trace_find_line_command): Ditto.
11006 (trace_find_range_command): Ditto.
11007 (trace_find_outside_command): Ditto.
11008 * tracepoint.h (struct trace_status) <from_file>: Rename it
11009 to "filename" and make it hold the trace file's filename
11010 instead of a boolean.
11011 * remote.c (remote_get_trace_status): Initialize "filename"
11012 field with NULL instead of 0.
11013
11014 2013-02-15 Yao Qi <yao@codesourcery.com>
11015
11016 * remote.c: Fix a typo.
11017
11018 2013-02-14 Pierre Muller <muller@sourceware.org>
11019
11020 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11021
11022 2013-02-14 Pedro Alves <palves@redhat.com>
11023
11024 * utils.c (savestring): Don't #undef it. Move function to
11025 common/common-utils.c.
11026 * common/common-utils.c: Include gdb_string.h.
11027 (savestring): Move here from utils.c.
11028 * common/common-utils.h (savestring): Declare.
11029
11030 2013-02-14 Pedro Alves <palves@redhat.com>
11031
11032 * utils.c (savestring): Rename parameter 'size' to 'len'.
11033
11034 2013-02-14 Pedro Alves <palves@redhat.com>
11035 Yufeng Zhang <yufeng.zhang@arm.com>
11036
11037 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11038 (aarch64_inferior_data, struct aarch64_inferior_data):
11039 Delete.
11040 (struct aarch64_process_info): New.
11041 (aarch64_process_list): New global.
11042 (aarch64_find_process_pid, aarch64_add_process)
11043 (aarch64_process_info_get): New functions.
11044 (aarch64_inferior_data_get): Delete.
11045 (aarch64_process_info_get): New function.
11046 (aarch64_forget_process): New function.
11047 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11048 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11049 aarch64_get_debug_reg_state.
11050 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11051 instead of linux_nat_iterate_watchpoint_lwps.
11052 (aarch64_linux_new_fork): New function.
11053 (aarch64_linux_child_post_startup_inferior): Use
11054 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11055 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11056 (aarch64_linux_remove_hw_breakpoint)
11057 (aarch64_handle_aligned_watchpoint)
11058 (aarch64_handle_unaligned_watchpoint)
11059 (aarch64_linux_insert_watchpoint)
11060 (aarch64_linux_remove_watchpoint)
11061 (aarch64_linux_stopped_data_address): Adjust to pass the current
11062 process id to aarch64_debug_reg_state.
11063 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11064 linux_nat_new_fork hook, and aarch64_forget_process as
11065 linux_nat_forget_process hook; remove the call to
11066 register_inferior_data_with_cleanup.
11067
11068 2013-02-14 Pedro Alves <palves@redhat.com>
11069
11070 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11071 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11072 lval_memory.
11073
11074 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11075 Hafiz Abid Qadeer <abidh@codesourcery.com>
11076
11077 * tracepoint.h (validate_trace_state_variable_name): Declare.
11078 * tracepoint.c (validate_trace_state_variable_name): New.
11079 (trace_variable_command): Parse the trace state variable's name
11080 without using parse_expression. Do several validations.
11081 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11082 trace state variable's name with parse_expression. Validate it.
11083
11084 2013-02-14 Yao Qi <yao@codesourcery.com>
11085
11086 * infcmd.c (breakpoint_proceeded): Remove it.
11087
11088 2013-02-14 Yao Qi <yao@codesourcery.com>
11089
11090 * tracepoint.c (end_actions_pseudocommand): Make it static.
11091 (while_stepping_pseudocommand): Likewise.
11092 * tracepoint.h (end_actions_pseudocommand): Remove the
11093 declaration.
11094 (while_stepping_pseudocommand): Likewise.
11095
11096 2013-02-14 Yao Qi <yao@codesourcery.com>
11097
11098 * cli/cli-decode.c (help_cmd): Remove the declaration of
11099 "cmdlist".
11100 (help_all): Likewise.
11101
11102 2013-02-13 Pedro Alves <palves@redhat.com>
11103
11104 * amd64-linux-nat.c (update_debug_registers_callback):
11105 Update comment.
11106 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11107 iterate_over_lwps.
11108 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11109 i386_debug_reg_state.
11110 (amd64_linux_new_fork): New function.
11111 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11112 linux_nat_new_fork hook, and i386_forget_process as
11113 linux_nat_forget_process hook.
11114 * i386-linux-nat.c (update_debug_registers_callback):
11115 Update comment.
11116 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11117 iterate_over_lwps.
11118 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11119 i386_debug_reg_state.
11120 (i386_linux_new_fork): New function.
11121 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11122 linux_nat_new_fork hook, and i386_forget_process as
11123 linux_nat_forget_process hook.
11124 * i386-nat.c (i386_init_dregs): Delete.
11125 (i386_inferior_data, struct i386_inferior_data):
11126 Delete.
11127 (struct i386_process_info): New.
11128 (i386_process_list): New global.
11129 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11130 New functions.
11131 (i386_inferior_data_get): Delete.
11132 (i386_process_info_get): New function.
11133 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11134 (i386_forget_process): New function.
11135 (i386_cleanup_dregs): Rewrite.
11136 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11137 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11138 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11139 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11140 to i386_debug_reg_state.
11141 (i386_use_watchpoints): Don't register inferior data.
11142 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11143 adjust comment.
11144 (i386_forget_process): Declare.
11145 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11146 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11147 New static globals.
11148 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11149 (add_initial_lwp): New, factored out from ...
11150 (add_lwp): ... this. Don't check the number of lwps before
11151 calling linux_nat_new_thread.
11152 (linux_nat_iterate_watchpoint_lwps): Delete.
11153 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11154 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11155 forks and vforks.
11156 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11157 initial lwp.
11158 (linux_nat_kill, linux_nat_mourn_inferior): Call
11159 linux_nat_forget_process.
11160 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11161 (linux_nat_forget_process): New functions.
11162 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11163 type.
11164 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11165 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11166 types.
11167 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11168 (linux_nat_forget_process): New declarations.
11169
11170 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11171 (amd64fbsd_mourn_inferior): New function.
11172 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11173 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11174
11175 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11176
11177 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11178 Adding _().
11179
11180 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11181
11182 * aarch64-linux-nat.c (debug_reg_change_callback)
11183 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11184 %s and phex().
11185
11186 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11187
11188 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11189 with LONGEST.
11190
11191 2013-02-13 Pedro Alves <palves@redhat.com>
11192 Hafiz Abid Qadeer <abidh@codesourcery.com>
11193
11194 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11195
11196 2013-02-12 Tom Tromey <tromey@redhat.com>
11197
11198 PR symtab/11464:
11199 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11200 NAME return.
11201 (classify_inner_name): Remove 'first_name' argument, add
11202 'context'. Remove unused variable.
11203 (yylex): Explicitly maintain the context type. Exit loop earlier
11204 if NAME result is seen.
11205
11206 2013-02-12 Pedro Alves <palves@redhat.com>
11207
11208 * amd64-darwin-tdep.c: Add (C) after Copyright.
11209 * cli/cli-cmds.h: Ditto.
11210 * cli/cli-decode.c: Ditto.
11211 * cli/cli-decode.h: Ditto.
11212 * cli/cli-dump.c: Ditto.
11213 * cli/cli-dump.h: Ditto.
11214 * cli/cli-interp.c: Ditto.
11215 * cli/cli-logging.c: Ditto.
11216 * cli/cli-script.c: Ditto.
11217 * cli/cli-script.h: Ditto.
11218 * cli/cli-setshow.c: Ditto.
11219 * cli/cli-setshow.h: Ditto.
11220 * cli/cli-utils.c: Ditto.
11221 * cli/cli-utils.h: Ditto.
11222 * config/alpha/nm-osf3.h: Ditto.
11223 * config/djgpp/djconfig.sh: Ditto.
11224 * config/i386/nm-fbsd.h: Ditto.
11225 * config/i386/nm-i386gnu.h: Ditto.
11226 * config/nm-linux.h: Ditto.
11227 * config/nm-nto.h: Ditto.
11228 * config/rs6000/nm-rs6000.h: Ditto.
11229 * config/sparc/nm-sol2.h: Ditto.
11230 * darwin-nat-info.c: Ditto.
11231 * dfp.c: Ditto.
11232 * dfp.h: Ditto.
11233 * gdb-demangle.h: Ditto.
11234 * i386-darwin-nat.c: Ditto.
11235 * i386-darwin-tdep.c: Ditto.
11236 * linux-fork.h: Ditto.
11237 * m32c-tdep.c: Ditto.
11238 * microblaze-linux-tdep.c: Ditto.
11239 * microblaze-rom.c: Ditto.
11240 * microblaze-tdep.c: Ditto.
11241 * microblaze-tdep.h: Ditto.
11242 * mips-linux-tdep.h: Ditto.
11243 * ppc-ravenscar-thread.c: Ditto.
11244 * ppc-ravenscar-thread.h: Ditto.
11245 * prologue-value.c: Ditto.
11246 * prologue-value.h: Ditto.
11247 * ravenscar-thread.c: Ditto.
11248 * ravenscar-thread.h: Ditto.
11249 * sparc-ravenscar-thread.c: Ditto.
11250 * sparc-ravenscar-thread.h: Ditto.
11251 * tilegx-linux-tdep.c: Ditto.
11252 * unwind_stop_reasons.def: Ditto.
11253 * windows-nat.h: Ditto.
11254 * xtensa-linux-tdep.c: Ditto.
11255 * xtensa-xtregs.c: Ditto.
11256 * regformats/regdat.sh: Ditto.
11257 * regformats/regdef.h: Ditto.
11258
11259 2013-02-12 Pedro Alves <palves@redhat.com>
11260
11261 * break-catch-sig.c: Update copyright years.
11262
11263 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11264
11265 Add support for a destructor for ui_out data and use it to
11266 provide a ui_out destructor.
11267 * ui-out.h: Declare the new ui_out destructor.
11268 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11269 * ui-out.c (default_data_destroy): Add a default data destructor
11270 which does nothing.
11271 (default_ui_out_impl): Set the new data_destroy field to
11272 default_data_destroy
11273 (uo_data_destroy): Local function which invokes the data
11274 destructor if present.
11275 (clear_table): Local function which clears the table data of a
11276 ui_out object.
11277 (ui_out_destroy): Public function which frees a ui_out object.
11278 (ui_out_table_end): Use the new clear_table function.
11279 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11280 NULL.
11281 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11282 to NULL.
11283
11284 2013-02-11 Doug Evans <dje@google.com>
11285
11286 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11287 (printf_decfloat): New function. Broken out from ui_printf.
11288 Remove unnecessary code to shift the entire format string down.
11289 (printf_pointer): New function.
11290 (ui_printf): Code to print C strings, wide C strings, decfloats,
11291 and pointers moved to separate functions.
11292
11293 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11294
11295 * valops.c (value_assign): Handling bitfield offset in
11296 `lval_internalvar_component' case.
11297
11298 2013-02-08 Doug Evans <dje@google.com>
11299
11300 * common/format.c (parse_format_string): Fix whitespace.
11301
11302 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11303
11304 * stack.c (return_command): Work around uninitialized variable
11305 warning.
11306
11307 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11308
11309 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11310 number of the registers from 36 to 34.
11311
11312 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11313
11314 * NEWS: Mention new AArch64 native and target support.
11315
11316 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11317
11318 * MAINTAINERS (Write After Approval): Add myself.
11319
11320 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11321 Marcus Shawcroft <marcus.shawcroft@arm.com>
11322 Nigel Stephens <nigel.stephens@arm.com>
11323 Yufeng Zhang <yufeng.zhang@arm.com>
11324
11325 * aarch64-linux-nat.c: New file.
11326 * config/aarch64/linux.mh: New file.
11327 * configure.host: Add AArch64.
11328 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11329
11330 2013-02-07 Doug Evans <dje@google.com>
11331
11332 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11333 disassemble command.
11334
11335 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11336
11337 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11338 set_gdbarch_fetch_tls_load_module_address.
11339
11340 2013-02-06 David S. Miller <davem@davemloft.net>
11341
11342 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11343 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11344 * value.c (struct_return_convention): New function.
11345 (using_struct_return): Implement in terms of struct_return_convention.
11346 * value.h (struct_return_convention): Declare.
11347 * stack.c (return_command): Allow successful overriding of the return
11348 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11349
11350 2013-02-06 Tom Tromey <tromey@redhat.com>
11351
11352 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11353 outside of TRY_CATCH.
11354
11355 2013-02-06 Yao Qi <yao@codesourcery.com>
11356
11357 * mi/mi-interp.c: Include "tracepoint.h".
11358 (mi_tsv_modified): Declare.
11359 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11360 (mi_interpreter_init): Call observer_attach_tsv_modified.
11361 (mi_tsv_modified): New.
11362 (mi_tsv_created, mi_tsv_deleted): Update.
11363 * tracepoint.c (trace_variable_command): Call
11364 observer_notify_tsv_modified if the initial value of tsv is
11365 changed.
11366 (delete_trace_state_variable): Call
11367 observer_notify_tsv_deleted earlier.
11368 (trace_variable_command): Caller update.
11369 (create_tsv_from_upload): Likewise.
11370 * observer.sh: Declare "struct trace_state_variable".
11371
11372 * NEWS: Mention the new MI notification "=tsv-modified".
11373
11374 2013-02-05 Doug Evans <dje@google.com>
11375
11376 * completer.c (location_completer): Fix typo in comment.
11377
11378 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11379
11380 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11381 ADDRESS sorted.
11382
11383 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11384
11385 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11386 Refactor if statement to avoid trailing || operator.
11387
11388 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11389
11390 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11391
11392 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11393
11394 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11395 * configure.host: Add powerpc*-*-freebsd* target.
11396 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11397 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11398 * config/powerpc/fbsd.mh: New file.
11399
11400 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11401 Denys Vlasenko <dvlasenk@redhat.com>
11402 Pedro Alves <palves@redhat.com>
11403
11404 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11405 (struct elf_internal_linux_prpsinfo): Forward declare.
11406 * gdbarch.h, gdbarch.c: Regenerate.
11407 * linux-tdep.c: Include `cli/cli-utils.h'.
11408 (linux_fill_prpsinfo): New function.
11409 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11410 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11411 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11412 depending on gdbarch pointer bitness.
11413 * ppc-linux-tdep.c: Include elf-bfd.h.
11414 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11415 on 32-bit.
11416
11417 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11418 Marcus Shawcroft <marcus.shawcroft@arm.com>
11419 Nigel Stephens <nigel.stephens@arm.com>
11420 Yufeng Zhang <yufeng.zhang@arm.com>
11421
11422 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11423
11424 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11425 Marcus Shawcroft <marcus.shawcroft@arm.com>
11426 Nigel Stephens <nigel.stephens@arm.com>
11427 Yufeng Zhang <yufeng.zhang@arm.com>
11428
11429 * aarch64-newlib-tdep.c: New file.
11430 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11431 aarch64*-*-elf.
11432 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11433 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11434 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11435 * osabi.c (gdb_osabi_names): Add "Newlib".
11436
11437 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11438 Marcus Shawcroft <marcus.shawcroft@arm.com>
11439 Nigel Stephens <nigel.stephens@arm.com>
11440 Yufeng Zhang <yufeng.zhang@arm.com>
11441
11442 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11443 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11444 * aarch64-linux-tdep.c: New file.
11445 * aarch64-linux-tdep.h: New file.
11446 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11447 * configure.tgt: Add aarch64-none-linux-gnu.
11448
11449 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11450 Marcus Shawcroft <marcus.shawcroft@arm.com>
11451 Nigel Stephens <nigel.stephens@arm.com>
11452 Yufeng Zhang <yufeng.zhang@arm.com>
11453
11454 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11455 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11456 (ALLDEPFILES): Add aarch64-tdep.c.
11457 * aarch64-tdep.c: New file.
11458 * aarch64-tdep.h: New file.
11459 * configure.tgt: Add AArch64.
11460 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11461 (aarch64-expedite): New definition.
11462 * features/aarch64-core.xml: New file.
11463 * features/aarch64-fpu.xml: New file.
11464 * features/aarch64-without-fpu.c: New file (generated).
11465 * features/aarch64-without-fpu.xml: New file.
11466 * features/aarch64.c: New file (generated).
11467 * features/aarch64.xml: New file.
11468 * regformats/aarch64-without-fpu.dat: New file (generated).
11469 * regformats/aarch64.dat: New file (generated).
11470
11471 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11472
11473 * contrib/expect-read1.c: New file.
11474 * contrib/expect-read1.sh: New file.
11475
11476 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11477
11478 * dwarf2read.c (file_file_name): New function with code from
11479 file_full_name.
11480 (file_full_name): Move most of the code to file_file_name.
11481 (macro_start_file): Rename variable full_name to file_name and use
11482 file_file_name for it. Add comp_dir parameter to new_macro_table.
11483 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11484 macro_source_file->filename access by macro_source_fullname call.
11485 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11486 caller.
11487 * macrotab.c (struct macro_table): New field comp_dir.
11488 (macro_include): New variables link_fullname and source_fullname.
11489 Replace any macro_source_file->filename access by macro_source_fullname
11490 call.
11491 (macro_lookup_inclusion): Remove the partial filenames checking code.
11492 (check_for_redefinition): New variables source_fullname and
11493 found_key_fullname. Replace any macro_source_file->filename access by
11494 macro_source_fullname call.
11495 (macro_undef): New variables source_fullname and key_fullname. Replace
11496 any macro_source_file->filename access by macro_source_fullname call.
11497 (macro_lookup_definition): New variables retval and source_fullname.
11498 Replace any macro_source_file->filename access by macro_source_fullname
11499 call.
11500 (foreach_macro): New variable key_fullname. Replace any
11501 macro_source_file->filename access by macro_source_fullname call.
11502 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11503 macro_source_file->filename access by macro_source_fullname call.
11504 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11505 (macro_source_fullname): New function.
11506 * macrotab.h (struct macro_source_file): Extent the filename field
11507 comment.
11508 (new_macro_table): New parameter comp_dir, add a comment for it.
11509 (macro_source_fullname): new declaration.
11510
11511 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11512
11513 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11514 this_real_name to outer block. Use it also for
11515 compare_filenames_for_search.
11516 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11517 with dw2_get_real_path for file_matcher, considering also
11518 BASENAMES_MAY_DIFFER.
11519 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11520
11521 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11522
11523 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11524 to the file_matcher parameter. Pass 0 to it.
11525 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11526 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11527 NULL psymtab_to_fullname result.
11528 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11529 an expected filename instead.
11530 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11531 file_matcher parameter. Call also psymtab_to_fullname, after newly
11532 considering BASENAMES_MAY_DIFFER.
11533 * source.c (rewrite_source_path): Remove static.
11534 * source.h (rewrite_source_path): New declaration.
11535 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11536 the expand_symtabs_matching field. Comment it.
11537 * symtab.c (file_matches): New function comment. Add parameter
11538 basenames, implement it.
11539 (search_symbols_file_matches): Add basenames parameter. Update the
11540 file_matches caller.
11541 (search_symbols): Match FILES also against symtab_to_fullname.
11542 Optimize it for BASENAMES_MAY_DIFFER.
11543
11544 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11545
11546 * source.c (print_source_lines_base): Print for TUI also "fullname".
11547 * tui/tui-data.c (init_content_element): Change tui_locator_element
11548 field to full_name.
11549 * tui/tui-data.h (struct tui_locator_element): Likewise.
11550 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11551 tui_update_locator_filename calls to tui_update_locator_fullname.
11552 Replace symtab->filename refererence by symtab_to_fullname call.
11553 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11554 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11555 field to full_name. Replace symtab->filename refererence by
11556 symtab_to_fullname call.
11557 (tui_show_symtab_source): Rename parameter to fullname. Change
11558 tui_locator_element field to full_name.
11559 * tui/tui-stack.c: Include source.h.
11560 (tui_set_locator_filename): Rename the declaration to ...
11561 (tui_set_locator_fullname): ... here. Rename its parameter to
11562 fullname, updates its comment.
11563 (tui_set_locator_info): Rename its parameter to fullname.
11564 (tui_set_locator_filename): Rename the definition to ...
11565 (tui_set_locator_fullname): ... here. Rename its parameter to
11566 fullname, updates its comment. Change tui_locator_element field to
11567 full_name.
11568 (tui_set_locator_info): Rename its parameter to fullname.
11569 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11570 (tui_update_locator_filename): Rename to ...
11571 (tui_update_locator_fullname): ... here. Rename callee to
11572 tui_set_locator_fullname.
11573 (tui_show_frame_info): Replace symtab->filename refererence by
11574 symtab_to_fullname call.
11575 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11576 (tui_update_locator_fullname): ... here.
11577 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11578 tui_update_locator_fullname. Replace symtab->filename refererence by
11579 symtab_to_fullname call.
11580 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11581 Rename the callee to tui_update_locator_fullname.
11582 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11583
11584 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11585
11586 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11587 by symtab_to_filename_for_display calls.
11588 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11589 (clear_command): New variable sal_fullname, initialize it. Replace
11590 compare_filenames_for_search by filename_cmp with sal_fullname.
11591 (say_where, update_static_tracepoint): Replace symtab->filename
11592 refererences by symtab_to_filename_for_display calls.
11593 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11594 Likewise.
11595 * dwarf2read.c: Include source.h.
11596 (fixup_go_packaging): Replace symtab->filename refererences by
11597 symtab_to_filename_for_display calls.
11598 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11599 Replace symtab->filename refererences by symtab_to_filename_for_display
11600 calls.
11601 (create_sals_line_offset, convert_linespec_to_sals): New variable
11602 fullname, initialize it, replace symtab->filename reference by the
11603 variable.
11604 * linux-fork.c: Include source.h.
11605 (info_checkpoints_command): Replace symtab->filename refererences by
11606 symtab_to_filename_for_display calls.
11607 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11608 by symtab_to_filename_for_display calls.
11609 * mdebugread.c: Include source.h.
11610 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11611 symtab_to_filename_for_display calls.
11612 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11613 (mi_cmd_file_list_exec_source_files): Likewise.
11614 * printcmd.c: Include source.h.
11615 (build_address_symbolic): Replace symtab->filename refererences by
11616 symtab_to_filename_for_display calls.
11617 * psymtab.c (partial_map_symtabs_matching_filename)
11618 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11619 with psymtab_to_fullname.
11620 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11621 by symtab_to_filename_for_display calls.
11622 (stpy_get_filename): New variable filename, initialize it, use instead
11623 of symtab->filename refererences.
11624 (salpy_str): Make variable filename const char *. Replace
11625 symtab->filename refererences by symtab_to_filename_for_display calls.
11626 * skip.c: Include source.h and filenames.h.
11627 (skip_file_command): Remove const from the symtab variable. Replace
11628 symtab->filename refererences by symtab_to_fullname call.
11629 (function_name_is_marked_for_skip): New variables searched_for_fullname
11630 and fullname. Use them to search also with symtab's fullname.
11631 * source.c (find_source_lines): Replace symtab->filename refererences
11632 by symtab_to_filename_for_display calls.
11633 (print_source_lines_base): New variable filename, use it instead of
11634 symtab->filename. Replace symtab->filename refererences by
11635 symtab_to_filename_for_display calls.
11636 (line_info, forward_search_command): Replace symtab->filename
11637 refererences by symtab_to_filename_for_display calls.
11638 (reverse_search_command): Replace symtab->filename refererences by
11639 symtab_to_filename_for_display calls. New variable filename for it.
11640 * stack.c (frame_info): Likewise.
11641 * symmisc.c: Include source.h.
11642 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11643 (maintenance_info_symtabs): Replace symtab->filename refererences by
11644 symtab_to_filename_for_display calls.
11645 * symtab.c (iterate_over_some_symtabs): Call
11646 compare_filenames_for_search also with symtab_to_fullname.
11647 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11648 symtab->filename refererences by symtab_to_filename_for_display calls.
11649 (find_line_symtab): Replace symtab->filename refererences by
11650 symtab_to_filename_for_display calls.
11651 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11652 (print_symbol_info): Make the last parameter const char *. New
11653 variable s_filename. Use it in the function.
11654 (symtab_symbol_info): Make the last_filename variable const char *.
11655 Replace symtab->filename refererences by symtab_to_filename_for_display
11656 calls.
11657 (rbreak_command): New variable fullname. Use it. Replace
11658 symtab->filename refererence by symtab_to_filename_for_display call.
11659 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11660 (print_one_static_tracepoint_marker): Replace symtab->filename
11661 refererences by symtab_to_filename_for_display calls.
11662 * tui/tui-source.c (tui_set_source_content): New variables filename and
11663 s_filename. Replace symtab->filename refererences by this variable.
11664 Replace other symtab->filename refererences by
11665 symtab_to_filename_for_display calls.
11666
11667 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11668 Jan Kratochvil <jan.kratochvil@redhat.com>
11669
11670 Add a new variable that controls a way in which filenames are
11671 displayed.
11672 * NEWS (set filename-display): New entry.
11673 * source.c (filename_display_basename, filename_display_relative)
11674 (filename_display_absolute, filename_display_kind_names)
11675 (filename_display_string, show_filename_display_string)
11676 (symtab_to_filename_for_display): New.
11677 (_initialize_source): Added initialization of 'filename-display'
11678 variable.
11679 * source.h (symtab_to_filename_for_display): Added declaration.
11680 * stack.c (print_frame): Added new variable and calling of a new
11681 function and condition with this variable. Changed third argument of
11682 calling of a function.
11683
11684 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11685
11686 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11687 Rename field reference filename to fullname.
11688 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11689 fullname. New comment for it.
11690 * tui/tui-source.c (tui_set_source_content): Rename field reference
11691 filename to fullname. Initialize field by symtab_to_fullname now.
11692 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11693 reference filename to fullname. Use symtab_to_fullname during
11694 comparison.
11695
11696 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11697
11698 Code cleanup.
11699 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11700 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11701 filename to fullname. Rename variable this_name to this_fullname.
11702 Lowercase FILENAME_CMP call.
11703 (dw2_find_symbol_file): New comment for the returned string.
11704 (dwarf2_gdb_index_functions): Rename the function to
11705 dw2_expand_symtabs_with_fullname.
11706 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11707 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11708 fullname.
11709 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11710 * symfile.h (struct quick_symbol_functions): Rename field
11711 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11712 parameter filename to fullname. Document returned string meaning for
11713 find_symbol_file.
11714 * symtab.c (find_line_symtab): Rename the called function to
11715 expand_symtabs_with_fullname.
11716
11717 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11718
11719 Code cleanup.
11720 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11721 call of filename_cmp with compare_filenames_for_search.
11722 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11723 is_abs, unify the call of FILENAME_CMP with
11724 compare_filenames_for_search. New gdb_asserts for real_path and name.
11725 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11726 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11727 * symfile.h (struct quick_symbol_functions): Extend the comment for
11728 map_symtabs_matching_filename.
11729 * symtab.c (compare_filenames_for_search): Remove the function comment
11730 relative path requirement. Handle absolute filenames, with a comment.
11731 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11732 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11733 real_path and name. Unify the call of compare_filenames_for_search
11734 with FILENAME_CMP.
11735 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11736
11737 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11738
11739 Code cleanup.
11740 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11741 source_file references by symtab field references. Remove variables
11742 sal and fullname.
11743 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11744 (clear_command, say_where): Replace bp_location field source_file
11745 references by symtab field references.
11746 (bp_location_dtor): Remove the source_file reference.
11747 (update_static_tracepoint): Replace bp_location field source_file
11748 references by symtab field references.
11749 (breakpoint_free_objfile): New function.
11750 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11751 Replace the field source_file by field symtab, extend its comment.
11752 (breakpoint_free_objfile): New declaration.
11753 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11754 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11755 field source_file references by symtab field references.
11756
11757 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11758
11759 Replace xfullpath calls by gdb_realpath calls.
11760 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11761 function comment.
11762 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11763 Remove it from the iterate_over_some_symtabs call.
11764 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11765 Remove it from the dw2_map_expand_apply calls, remove a block handling
11766 it.
11767 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11768 Remove it from the iterate_over_some_symtabs call.
11769 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11770 Remove it from the partial_map_expand_apply calls, remove a block
11771 handling it. Drop gdb_realpath call and cleanups from the real_path
11772 handling.
11773 * source.c (openp): Drop the comment part about xfullpath. Replace
11774 xfullpath calls by gdb_realpath calls.
11775 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11776 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11777 from method map_symtabs_matching_filename and its comment.
11778 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11779 gdb_realpath call.
11780 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11781 remove it also from the function comment, remove a block handling it.
11782 Drop gdb_realpath call and cleanups from the real_path handling.
11783 (iterate_over_symtabs): Drop variable full_path and its use.
11784 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11785 * utils.c (xfullpath): Remove.
11786 * utils.h (xfullpath): Remove.
11787
11788 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11789
11790 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11791 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11792 (ALLDEPFILES): Add ppc64-tdep.c.
11793 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11794 ppc64-tdep.o to gdb_target_obs.
11795 * ppc64-tdep.h: New file.
11796 * ppc64-tdep.c: New file.
11797 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11798 ppc-linux-tdep.c to here.
11799 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11800 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11801 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11802 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11803 from ppc-linux-tdep.c to here.
11804 (ppc64_convert_from_func_ptr_addr): Rename from
11805 ppc64_linux_convert_from_func_ptr_addr to
11806 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11807 here.
11808 * rs6000-tdep.c:
11809 (read_insn): Move from ppc-linux-tdep.c to here.
11810 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11811 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11812 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11813 Removed above functions.
11814 (ppc_linux_init_abi): Adjust.
11815
11816 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11817
11818 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11819
11820 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11821
11822 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11823
11824 2013-02-01 Pedro Alves <palves@redhat.com>
11825
11826 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11827 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11828
11829 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11830
11831 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11832 files with no separate debug info.
11833 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11834 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11835 only for files with no separate debug info.
11836
11837 2013-01-31 Tom Tromey <tromey@redhat.com>
11838
11839 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11840 change type.
11841 (struct jit_program_space_data): Rename from jit_inferior_data.
11842 Update comments.
11843 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11844 Change return type. Attach data to program space.
11845 (jit_program_space_data_cleanup): Rename from
11846 jit_inferior_data_cleanup; change argument type.
11847 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11848 change type.
11849 (jit_register_code): Update.
11850 (jit_update_inferior_cache): Remove.
11851 (jit_breakpoint_deleted): Get jit data from the location's program
11852 space.
11853 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11854 'ps_data', change type.
11855 (jit_inferior_init, jit_breakpoint_re_set_internal)
11856 (jit_event_handler): Update.
11857 (free_objfile_data): Get data from objfile's program space.
11858 (_initialize_jit): Update.
11859
11860 2013-01-31 Tom Tromey <tromey@redhat.com>
11861
11862 PR gdb/13987:
11863 * jit.c (struct jit_inferior_data) <cached_code_address,
11864 jit_breakpoint>: New fields.
11865 (jit_breakpoint_re_set_internal): Fix logging. Only create
11866 breakpoint if cached address has changed.
11867 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11868 functions.
11869 (_initialize_jit): Register breakpoint deleted observer.
11870
11871 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11872
11873 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11874 (save_infcall_suspend_state): Ifdef out unused inf.
11875 (restore_infcall_suspend_state): Ifdef out unused inf.
11876 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11877 (jit_frame_sniffer): Remove unused inf_data.
11878
11879 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11880
11881 * c-exp.y (classify_inner_name): Remove unused type.
11882 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11883 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11884 need_escape.
11885 (c_get_string): Remove unused kind.
11886 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11887
11888 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11889
11890 * charset.c (intermediate_encoding): Remove unused i.
11891 * completer.c (signal_completer): Remove unused i.
11892 * continuations.c (discard_my_continuations_1): Remove unused
11893 continuation_ptr.
11894 * corelow.c (core_close): Remove unuseD name.
11895 (get_core_siginfo): Remove unused pid.
11896 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11897 i, cps.
11898 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11899 (loclist_describe_location): Remove unused first.
11900 * event-top.c (command_line_handler): Remove unused got_eof.
11901 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11902 (resize_section_table): Remove unused old_value.
11903 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11904 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11905 * i386-tdep.c (i386_process_record): Remove unused rex.
11906 * infcmd.c (get_return_value): Remove unused uiout.
11907 * jv-lang.c (type_from_class): Remove unused is_array.
11908 * jv-valprint.c (java_val_print): Remove unused i.
11909 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11910 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11911 * m2-typeprint.c (m2_print_type): Remove unused code.
11912 * macroexp.c (get_character_constant): Remove unused body_start.
11913 (macro_stringify): Remove unused result.
11914 * objc-lang.c (find_methods): Remove unused gdbarch.
11915 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11916 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11917 * stack.c (print_frame_args): Remove unused summary.
11918 * thread.c (thread_apply_command): Remove unused p.
11919 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11920 * valops.c (search_struct_method): Remove unused skip.
11921 * valprint.c (generic_val_print): Remove unused byte_order.
11922 * varobj.c (varobj_update): Remove unused changed.
11923 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11924 (alias_command): Remove unused c.
11925 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11926 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11927 format.
11928 (mi_cmd_data_write_memory): Remove unused word_format.
11929 (mi_cmd_data_write_memory_bytes): Remove unused r.
11930 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11931 p_start, p_end.
11932 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11933 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11934 line_width.
11935
11936 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11937
11938 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11939 * symtab.c (iterate_over_symtabs): Remove unused s.
11940 (find_pc_sect_symtab): Remove unused pspAce.
11941 (find_pc_sect_line): Remove unused alt_symtab.
11942 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11943 (completion_list_add_name): Remove unused newsize.
11944
11945 2013-01-31 Tom Tromey <tromey@redhat.com>
11946
11947 PR c++/14998:
11948 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11949 TYPE_CODE_FUNC.
11950
11951 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11952
11953 * target.c (target_read_string): Remove unused origlen.
11954
11955 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11956
11957 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11958 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11959 * ax-general.c (ax_print): Remove unused is_float.
11960 * blockframe.c (block_innermost_frame): Remove unused start, end.
11961 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11962
11963 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11964
11965 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11966 (svr4_read_so_list): Remove unused lmo.
11967 * solib-target.c (solib_target_relocate_section_addresses): Remove
11968 unused flags.
11969
11970 2013-01-30 Tom Tromey <tromey@redhat.com>
11971
11972 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11973
11974 2013-01-30 Tom Tromey <tromey@redhat.com>
11975
11976 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11977 * utils.c (gnu_debuglink_crc32): Remove.
11978 * utils.h (gnu_debuglink_crc32): Don't declare.
11979
11980 2013-01-30 Tom Tromey <tromey@redhat.com>
11981
11982 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11983 (read_structure_type, read_enumeration_type): Remove cast.
11984
11985 2013-01-30 Tom Tromey <tromey@redhat.com>
11986
11987 * dwarf2read.c (read_namespace_type): Remove cast.
11988 (read_typedef): Likewise.
11989
11990 2013-01-29 Tom Tromey <tromey@redhat.com>
11991
11992 * dwarf2read.c (free_dwo_file): Remove assert.
11993
11994 2013-01-29 Tom Tromey <tromey@redhat.com>
11995
11996 * value.c (deprecated_set_value_modifiable): Remove.
11997 * value.h (deprecated_set_value_modifiable): Remove.
11998
11999 2013-01-28 Doug Evans <dje@google.com>
12000
12001 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12002 to addresses from dwo files.
12003
12004 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12005
12006 * valops.c (find_overload_match): Remove unused argument 'lax'.
12007 * value.h: Remove unused argument 'lax' from the declaration of
12008 find_overload_match.
12009 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12010 to find_overload_match.
12011 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12012 argument to find_overload_match.
12013
12014 2013-01-25 Tom Tromey <tromey@redhat.com>
12015
12016 * dwarf2read.c (processing_has_namespace_info): Remove.
12017 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12018 (process_die, read_func_scope, dwarf2_start_symtab)
12019 (new_symbol_full): Update.
12020
12021 2013-01-25 Tom Tromey <tromey@redhat.com>
12022
12023 * cp-namespace.c (cp_set_block_scope): Remove.
12024 * cp-support.h (cp_set_block_scope): Remove.
12025 * dbxread.c: Include block.h.
12026 (cp_set_block_scope): New function.
12027 (process_one_symbol): Update.
12028 * dwarf2read.c (read_func_scope): Use block_set_scope.
12029
12030 2013-01-25 Pedro Alves <palves@redhat.com>
12031
12032 * remote.c (add_current_inferior_and_thread): Tweak comment.
12033
12034 2013-01-25 Tom Tromey <tromey@redhat.com>
12035
12036 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12037 (cp_add_using_directive): Add 'copy_names' argument.
12038 * cp-support.h (cp_add_using_directive): Update.
12039 (struct using_direct) <import_src, import_dest, alias,
12040 declaration>: Now const.
12041 * dwarf2read.c (read_import_statement): Use obconcat.
12042 Don't copy names passed to cp_add_using_directive.
12043
12044 2013-01-25 Tom Tromey <tromey@redhat.com>
12045
12046 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12047
12048 2013-01-25 Pedro Alves <palves@redhat.com>
12049
12050 * remote.c (stop_reply_extract_thread): New.
12051 (add_current_inferior_and_thread): New parameter 'wait_status'.
12052 Handle it.
12053 (remote_start_remote): Pass wait status to
12054 add_current_inferior_and_thread.
12055 (extended_remote_run): Update comment.
12056 (extended_remote_create_inferior_1): Pass wait status to
12057 add_current_inferior_and_thread.
12058
12059 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12060 Ulrich Weigand <uweigand@de.ibm.com>
12061
12062 * valarith.c (value_vector_widen): New function for replicating a
12063 scalar into a vector.
12064 (value_binop): Use value_vector_widen to widen scalar to vector
12065 rather than casting, this better matches gcc C behaviour.
12066 * valops.c (value_casst): Update logic for casting between vector
12067 types, and for casting from scalar to vector, try to match gcc C
12068 behaviour.
12069 * value.h (value_vector_widen): Declare.
12070 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12071 function, handle special case for casting scalar to vector.
12072 (opencl_relop): Use opencl_value_cast.
12073 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12074 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12075 in order to use opencl_value_cast.
12076
12077 2013-01-25 Yao Qi <yao@codesourcery.com>
12078
12079 * event-loop.c: Include "queue.h".
12080 (gdb_event_p): New typedef.
12081 (DECLARE_QUEUE_P): Use.
12082 (DEFINE_QUEUE_P): Use.
12083 (async_queue_event): Remove.
12084 (gdb_event_xfree): New.
12085 (initialize_event_loop): New.
12086 (process_event): Use QUEUE macros.
12087 (event_queue): Remove.
12088 (gdb_wait_for_event): Caller update.
12089 (check_async_event_handlers): Likewise.
12090 (poll_timers): Likewise.
12091 * event-loop.h (initialize_event_loop): Declare.
12092 * event-loop.c (gdb_event_xfree): New.
12093 * top.c (gdb_init): Call initialize_event_loop.
12094
12095 2013-01-25 Yao Qi <yao@codesourcery.com>
12096
12097 * event-loop.c (async_queue_event): Remove one parameter
12098 'position'. Remove code handling 'position' == TAIL.
12099 (gdb_wait_for_event): Caller update.
12100 (check_async_event_handlers): Caller update.
12101 (poll_timers): Caller update.
12102 * event-loop.h (enum queue_position): Remove.
12103
12104 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12105
12106 * MAINTAINERS: Update my email.
12107
12108 2013-01-25 Yao Qi <yao@codesourcery.com>
12109
12110 * main.c (print_gdb_help): Remove "--epoch" from the help
12111 message.
12112
12113 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12114
12115 * symtab.c (skip_prologue_using_sal): Consider a file
12116 change the same as an increased line number
12117
12118 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12119
12120 * MAINTAINERS (Write After Approval): Add myself to the list.
12121
12122 2013-01-24 Tom Tromey <tromey@redhat.com>
12123
12124 * ada-lang.h (ada_decode_symbol): Make return type const.
12125 * ada-lang.c (ada_decode_symbol): Likewise.
12126
12127 2013-01-23 Doug Evans <dje@google.com>
12128
12129 * linespec.c (find_linespec_symbols): Make static.
12130
12131 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12132
12133 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12134 type on float conversion for complex type.
12135
12136 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12137
12138 Add a new class gdb.Architecture which exposes GDB's
12139 internal representation of architecture via GDB Python API.
12140 * Makefile.in: Add entries corresponding to the new file
12141 python/py-arch.c.
12142 * NEWS (Python Scripting): Add entries for the new class
12143 gdb.Architecture and the new method gdb.Frame.architecture.
12144 * python/py-arch.c: Implement gdb.Architecture class.
12145 * python/py-frame.c (frapy_arch): Implement the method
12146 gdb.Frame.architecture().
12147 (frame_object_methods): Add 'architecture' to the method table.
12148 * python/python-internal.h: Add declarations of new utility
12149 functions.
12150 * python/python.c (_initialize_python): Initialize
12151 gdb.Architecture class.
12152
12153 2013-01-23 Doug Evans <dje@google.com>
12154
12155 Work around binutils/15021.
12156 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12157 type_unit_group out of union s. All uses updated.
12158 (read_index_from_section): Watch for index version 8.
12159 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12160 an imported symtab.
12161 (write_psymtabs_to_index): Increment version number to 8.
12162
12163 2013-01-22 Pedro Alves <palves@redhat.com>
12164
12165 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12166 user-visible.
12167
12168 2013-01-22 Pedro Alves <palves@redhat.com>
12169
12170 * annotate.c (annotate_breakpoints_changed): Rename to ...
12171 (annotate_breakpoints_invalid): ... this. Make static.
12172 (breakpoint_changed): Adjust.
12173 (_initialize_annotate): Always install the observers. Install a
12174 "breakpoint_created" observer.
12175 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12176 * breakpoint.c (set_breakpoint_condition)
12177 (breakpoint_set_commands, do_map_commands_command)
12178 (init_raw_breakpoint, clear_command, set_ignore_count)
12179 (enable_breakpoint_disp): No longer call
12180 annotate_breakpoints_changed.
12181
12182 2013-01-22 Pedro Alves <palves@redhat.com>
12183
12184 * annotate.c: Include "inferior.h".
12185 (frames_invalid_emitted)
12186 (breakpoints_invalid_emitted): New globals.
12187 (async_background_execution_p): New function.
12188 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12189 emitting the annotation if it has already been emitted.
12190 (annotate_display_prompt): New function.
12191 * annotate.h (annotate_display_prompt): New declaration.
12192 * event-top.c: Include annotate.h.
12193 (display_gdb_prompt): Call annotate_display_prompt.
12194
12195 2013-01-22 Pedro Alves <palves@redhat.com>
12196
12197 * annotate.c (ignore_count_changed): Delete.
12198 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12199 (annotate_ignore_count_change): Delete.
12200 (annotate_stopped): Don't emit a delayed breakpoints-changed
12201 annotation.
12202 * annotate.h (annotate_ignore_count_change): Delete.
12203 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12204 annotate_ignore_count_change.
12205
12206 2013-01-22 Tom Tromey <tromey@redhat.com>
12207
12208 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12209 require_rvalue for a register location.
12210
12211 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12212
12213 * breakpoint.c (print_one_breakpoint_location): Add MI
12214 field 'thread-groups' when printing a breakpoint.
12215 (output_thread_groups): New function.
12216
12217 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12218
12219 * python/lib/gdb/commands/explore.py
12220 (CompoundExplorer.explore_expr): Correct the name of a method
12221 being invoked.
12222 (ExploreTypeCommand.invoke): Add a missing 'return'.
12223
12224 2013-01-21 Tom Tromey <tromey@redhat.com>
12225
12226 * gdb_obstack.h (obconcat): Move declaration here, from...
12227 * symfile.h (obconcat): ... here.
12228 * gdb_obstack.c: New file.
12229 (obconcat): Move from...
12230 * symfile.c (obconcat): ... here.
12231 * Makefile.in (SFILES): Add gdb_obstack.c.
12232 (COMMON_OBS): Add gdb_obstack.o.
12233
12234 2013-01-21 Tom Tromey <tromey@redhat.com>
12235
12236 * symfile.h (obsavestring): Don't declare.
12237 * symfile.c (obsavestring): Remove.
12238 * ada-exp.y: Use obstack_copy0, not obsavestring.
12239 * ada-lang.c: Use obstack_copy0, not obsavestring.
12240 * coffread.c: Use obstack_copy0, not obsavestring.
12241 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12242 * dbxread.c: Use obstack_copy0, not obsavestring.
12243 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12244 * jit.c: Use obstack_copy0, not obsavestring.
12245 * mdebugread.c: Use obstack_copy0, not obsavestring.
12246 * psymtab.c: Use obstack_copy0, not obsavestring.
12247 * stabsread.c: Use obstack_copy0, not obsavestring.
12248 * xcoffread.c: Use obstack_copy0, not obsavestring.
12249
12250 2013-01-21 Tom Tromey <tromey@redhat.com>
12251
12252 * dwarf2read.c (fixup_go_packaging): Save package name
12253 on objfile obstack.
12254 * gdbtypes.c (init_type): Don't copy name.
12255
12256 2013-01-21 Tom Tromey <tromey@redhat.com>
12257
12258 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12259 const.
12260 (struct attribute) <u.str>: Now const.
12261 (struct fnfieldlist) <name>: Now const.
12262 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12263 (partial_die_parent_scope): Make return type const.
12264 (partial_die_full_name, add_partial_symbol): Update.
12265 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12266 'name' const.
12267 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12268 (read_file_scope, read_func_scope, dwarf2_add_field)
12269 (dwarf2_add_member_fn, read_structure_type)
12270 (process_enumeration_scope, read_array_type, read_module_type)
12271 (read_base_type, read_subrange_type): Update.
12272 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12273 (new_symbol_full, guess_full_die_structure_name): Update.
12274 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12275 (dwarf2_name): Return const type.
12276 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12277 const.
12278
12279 2013-01-21 Tom Tromey <tromey@redhat.com>
12280
12281 * gdbtypes.c (init_type): Make 'name' const.
12282 * gdbtypes.h (init_type): Update.
12283
12284 2013-01-21 Tom Tromey <tromey@redhat.com>
12285
12286 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12287 (start_symtab): Make 'name' and 'dirname' const. Use
12288 set_last_source_file.
12289 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12290 (last_source_file): Define. Now static.
12291 (set_last_source_file, get_last_source_file): New functions.
12292 * buildsym.h (last_source_file): Don't declare.
12293 (start_symtab): Update.
12294 (set_last_source_file, get_last_source_file): Declare.
12295 * coffread.c (complete_symtab): Use set_last_source_file.
12296 (coff_end_symtab): Likewise.
12297 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12298 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12299 set_last_source_file.
12300 (process_one_symbol): Use get_last_source_file.
12301 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12302 (psymtab_to_symtab_1): Use get_last_source_file.
12303 * xcoffread.c (process_linenos): Use get_last_source_file.
12304 (complete_symtab): Use set_last_source_file.
12305 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12306 (scan_xcoff_symtab): Use set_last_source_file.
12307
12308 2013-01-21 Tom Tromey <tromey@redhat.com>
12309
12310 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12311 (symbol_set_names): Remove casts. Handle field const-ness.
12312
12313 2013-01-21 Tom Tromey <tromey@redhat.com>
12314
12315 * dwarf2read.c (new_symbol_full): Remove cast.
12316 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12317 * symtab.h (symbol_set_demangled_name): Update.
12318
12319 2013-01-21 Tom Tromey <tromey@redhat.com>
12320
12321 * main.c (captured_main): Call bfd_init.
12322
12323 2013-01-21 Tom Tromey <tromey@redhat.com>
12324
12325 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12326 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12327 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12328 * NEWS: Update.
12329
12330 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12331
12332 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12333
12334 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12335
12336 Fix gdb.fortran/common-block.exp crash in PIE mode.
12337 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12338 LOC_COMMON_BLOCK.
12339 * f-valprint.c (info_common_command_for_block): Expect
12340 LOC_COMMON_BLOCK in gdb_assert.
12341 * symtab.h (struct general_symbol_info): Update comment for the
12342 common_block member.
12343 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12344 (enum address_class): New member LOC_COMMON_BLOCK.
12345
12346 2013-01-18 David Blaikie <dblaikie@gmail.com>
12347
12348 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12349
12350 2013-01-18 Tom Tromey <tromey@redhat.com>
12351
12352 PR c++/14999:
12353 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12354 Call require_rvalue.
12355
12356 2013-01-18 Yao Qi <yao@codesourcery.com>
12357
12358 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12359 (dbx_read_symtab): New declaration.
12360 (dbx_psymtab_to_symtab): Delete.
12361 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12362 Rename parameter PST to SELF. Exchanged two parameters.
12363 (start_psymtab): Caller update.
12364 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12365 (dwarf2_read_symtab): New declaration.
12366 (dwarf2_psymtab_to_symtab): Delete.
12367 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12368 Rename parameter PST to SELF. Exchanged two parameters.
12369 (create_partial_symtab): Caller update.
12370 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12371 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12372 Rename parameter PST to SELF. Exchanged two parameters.
12373 (parse_partial_symbols, new_psymtab): Caller update.
12374 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12375 two parameters.
12376 * psymtab.c (psymtab_to_symtab): Caller update.
12377 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12378 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12379 Rename parameter PST to SELF. Exchanged two parameters.
12380 (xcoff_start_psymtab): Caller update.
12381
12382 2013-01-18 Yao Qi <yao@codesourcery.com>
12383
12384 * infrun.c (proceed): Rename local variable 'oneproc' to
12385 'force_step'.
12386
12387 2013-01-17 Doug Evans <dje@google.com>
12388
12389 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12390 (dw2_build_type_unit_groups): Delete. All uses updated.
12391
12392 * symtab.h (struct symbol_search): Add comment.
12393
12394 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12395
12396 * symtab.c (compare_filenames_for_search): New comment for
12397 HAS_DRIVE_SPEC.
12398
12399 2013-01-17 Tom Tromey <tromey@redhat.com>
12400
12401 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12402
12403 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12404
12405 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12406 initialize it by existing make_cleanup. Call new do_cleanups.
12407
12408 2013-01-17 Tom Tromey <tromey@redhat.com>
12409
12410 * cp-abi.c (cp_abi_completer): New function.
12411 (_initialize_cp_abi): Set completer for "set cp-abi".
12412
12413 2013-01-17 Tom Tromey <tromey@redhat.com>
12414
12415 * mem-break.c: Remove obsolete comment.
12416 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12417
12418 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12419
12420 * jit.c (jit_reader_load_command): Interpret the jit reader name
12421 as an absolute path if it begins with a forward slash.
12422
12423 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12424
12425 PR gdb/14550
12426
12427 * jit.c (finalize_symtab): Ensure that only the global block has a
12428 NULL superblock.
12429
12430 2013-01-17 Pedro Alves <palves@redhat.com>
12431
12432 * acinclude.m4: Include ../config/plugins.m4,
12433 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12434 * Makefile.in (aclocal_m4_deps): Update.
12435 * aclocal.m4: Renegerate.
12436
12437 2013-01-16 Doug Evans <dje@google.com>
12438
12439 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12440
12441 2013-01-16 Pedro Alves <palves@redhat.com>
12442 Tom Tromey <tromey@redhat.com>
12443
12444 PR cli/7221:
12445 * NEWS: Add "catch signal".
12446 * breakpoint.c (base_breakpoint_ops): No longer static.
12447 (bpstat_explains_signal): New function.
12448 (init_catchpoint): No longer static.
12449 (base_breakpoint_explains_signal): New function.
12450 (base_breakpoint_ops): Initialize new field.
12451 * breakpoint.h (enum bpstat_signal_value): New.
12452 (struct breakpoint_ops) <explains_signal>: New field.
12453 (bpstat_explains_signal): Remove macro, declare as function.
12454 (base_breakpoint_ops, init_catchpoint): Declare.
12455 * break-catch-sig.c: New file.
12456 * inferior.h (signal_catch_update): Declare.
12457 * infrun.c (signal_catch): New global.
12458 (handle_syscall_event): Update for change to
12459 bpstat_explains_signal.
12460 (handle_inferior_event): Likewise. Always handle random signals
12461 via bpstats.
12462 (signal_cache_update): Check signal_catch.
12463 (signal_catch_update): New function.
12464 (_initialize_infrun): Initialize signal_catch.
12465 * Makefile.in (SFILES): Add break-catch-sig.c.
12466 (COMMON_OBS): Add break-catch-sig.o.
12467
12468 2013-01-16 Tom Tromey <tromey@redhat.com>
12469
12470 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12471 (print_one_catch_solib, print_one_catch_syscall)
12472 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12473 "catch-type".
12474
12475 2013-01-16 Yao Qi <yao@codesourcery.com>
12476
12477 * printcmd.c (current_display_number): Make it static.
12478
12479 2013-01-16 Yao Qi <yao@codesourcery.com>
12480
12481 * infcmd.c (step_once): Don't check '!single_inst' as it was
12482 checked before.
12483
12484 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12485
12486 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12487
12488 2013-01-14 Tom Tromey <tromey@redhat.com>
12489
12490 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12491 set command.
12492 * command.h (add_setshow_string_noescape_cmd): Update.
12493 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12494 (complete_set_gnutarget): New function.
12495 (_initialize_core): Set the "set gnutarget" completer.
12496
12497 2013-01-14 Tom Tromey <tromey@redhat.com>
12498
12499 PR symtab/14442:
12500 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12501 (c_type_print_modifier): Likewise.
12502 * dwarf2read.c (read_tag_restrict_type): New function.
12503 (read_type_die_1): Handle DW_TAG_restrict_type.
12504 * gdbtypes.c (make_restrict_type): New function.
12505 (recursive_dump_type): Handle TYPE_RESTRICT.
12506 * gdbtypes.h (enum type_flag_values): Renumber.
12507 (enum type_instance_flag_value): Add
12508 TYPE_INSTANCE_FLAG_RESTRICT.
12509 (TYPE_RESTRICT): New macro.
12510 (make_restrict_type): Declare.
12511
12512 2013-01-14 Tom Tromey <tromey@redhat.com>
12513
12514 PR symtab/14931:
12515 * psymtab.c (struct psymtab_state): New.
12516 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12517 functions.
12518 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12519 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12520
12521 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12522 Pedro Alves <palves@redhat.com>
12523
12524 PR remote/14786
12525
12526 * remote.c (remote_threads_info): Make a copy of the reply from
12527 qfThreadInfo and use that instead of rs->buf.
12528
12529 2013-01-14 Yao Qi <yao@codesourcery.com>
12530
12531 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12532 (dbx_psymtab_to_symtab): Likewise.
12533 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12534 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12536
12537 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12538
12539 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12540 make_cleanup_restore_current_language. Call set_language. Move
12541 OLD_CHAIN and INNER_CHAIN cleanups.
12542 * utils.c (do_restore_current_language)
12543 (make_cleanup_restore_current_language): New functions.
12544 * utils.h (make_cleanup_restore_current_language): New declaration.
12545
12546 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12547
12548 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12549 non-existing files.
12550
12551 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12552 non-existing files if FILENAME is already absolute.
12553
12554 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12555
12556 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12557 fputs_filtered. Append trailing newline.
12558
12559 2013-01-11 Yao Qi <yao@codesourcery.com>
12560 Stan Shebs <stan@codesourcery.com>
12561
12562 * psymtab.c (init_psymbol_list): Clarify the comment.
12563
12564 2013-01-11 Yao Qi <yao@codesourcery.com>
12565
12566 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12567 (update_dprintf_command_list): Assert that 'printf_line' is
12568 non-null. Remove condition check.
12569
12570 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12571
12572 Code cleanup.
12573 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12574 type const char *.
12575 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12576 const char *.
12577 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12578
12579 2013-01-09 Anthony Green <green@moxielogic.com>
12580
12581 * cp-abi.c (cplus_print_vtable): Don't return value from void
12582 function.
12583 * ada-lang.c (re_set_catch_assert): Ditto.
12584
12585 2013-01-09 Doug Evans <dje@google.com>
12586
12587 * symfile.h (quick_symbol_functions): Delete member
12588 pre_expand_symtabs_matching. All uses removed.
12589 * dwarf2read.c (dw2_lookup_symbol): Implement.
12590 (dw2_do_expand_symtabs_matching): Delete.
12591 (dw2_pre_expand_symtabs_matching): Delete.
12592 (struct dw2_symtab_iterator): New type.
12593 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12594 (dw2_expand_symtabs_for_function): Rewrite.
12595 (dwarf2_gdb_index_functions): Update.
12596 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12597 (psym_functions): Update.
12598
12599 2013-01-09 Tom Tromey <tromey@redhat.com>
12600
12601 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12602 * configure: Rebuild.
12603 * configure.ac: Add somread.o to the build if BFD has SOM
12604 support.
12605 * somread.c: Include som/aout.h, not syms.h.
12606 (som_symtab_read): Use som_external_symbol_dictionary_record.
12607 Unpack records manually.
12608 (_initialize_somread): Declare.
12609
12610 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12611
12612 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12613 Cast return_address to 64bits.
12614
12615 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12616
12617 * printcmd.c: Remove define of function output_command.
12618 * tracepoint.c: Remove extern of function output_command.
12619 * valprint.h: (output_command): New extern.
12620
12621 2013-01-07 Tom Tromey <tromey@redhat.com>
12622
12623 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12624 Remove.
12625 (objc_language_defn): Use c_printchar, c_printstr,
12626 c_emit_char.
12627
12628 2013-01-07 Tom Tromey <tromey@redhat.com>
12629
12630 PR cli/7719:
12631 * NEWS: Update.
12632 * ada-valprint.c (printstr, print_field_values): Remove
12633 "inspect_it" code.
12634 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12635 code.
12636 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12637 code.
12638 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12639 * main.c (captured_main): Remove "epoch" argument.
12640 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12641 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12642 * p-valprint.c (pascal_object_print_value_fields): Remove
12643 "inspect_it" code.
12644 * printcmd.c (print_command_1): Remove 'inspect' argument.
12645 (print_command, call_command): Update.
12646 (inspect_command): Remove.
12647 (_initialize_printcmd): Make "inspect" an alias for "print".
12648 * top.c (epoch_interface): Remove.
12649 * top.h (epoch_interface): Remove.
12650 * valprint.c (user_print_options): Update.
12651 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12652 * valprint.h (struct value_print_options) <inspect_it>: Remove
12653 field.
12654
12655 2013-01-04 Tom Tromey <tromey@redhat.com>
12656
12657 * valprint.h (read_string): Add 'extern'.
12658
12659 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12660
12661 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12662 used to decide whether to define darwin_read_dyld_info or not.
12663
12664 2013-01-03 Pierre Muller <muller@sourceware.org>
12665
12666 * main.c (relocate_gdb_directory): Avoid calling stat function
12667 if DIR is empty.
12668
12669 2013-01-03 Yao Qi <yao@codesourcery.com>
12670
12671 * psymtab.c (fixup_psymbol_section): Update declaration.
12672 (fixup_psymbol_section): Remove code returning value.
12673
12674 2013-01-03 Yao Qi <yao@codesourcery.com>
12675
12676 * symtab.h: Remove some out of date comments.
12677 (enum exception_event_kind): Move it ...
12678 * breakpoint.c: ... here.
12679
12680 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12681
12682 PR gdb/14405
12683 * darwin-nat.c (darwin_read_dyld_info): Only build if
12684 TASK_DYLD_INFO_COUNT is defined.
12685 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12686 TASK_DYLD_INFO_COUNT is defined.
12687
12688 2013-01-02 Tom Tromey <tromey@redhat.com>
12689
12690 * symfile.h (struct ecoff_debug_hack): Remove.
12691 * objfiles.c: Don't include mdebugread.h.
12692
12693 2013-01-02 Tom Tromey <tromey@redhat.com>
12694
12695 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12696 * configure.ac: Check for Mach-O support in BFD. Update
12697 CONFIG_OBS.
12698 * configure: Rebuild.
12699
12700 2013-01-02 Tom Tromey <tromey@redhat.com>
12701
12702 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12703 * configure.ac: Use GDB_AC_CHECK_BFD.
12704 * configure: Rebuild.
12705
12706 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12707
12708 * MAINTAINERS: Update my email.
12709
12710 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12711
12712 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12713
12714 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12715
12716 * rs6000-nat.c (bss_data_overlap): New function.
12717 (vmap_symtab): Use it to adjust the .bss section's offset.
12718
12719 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12720
12721 Update year range in copyright notice of all files.
12722
12723 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12724
12725 * top.c (print_gdb_version): Update copyright year.
12726
12727 For older changes see ChangeLog-2012.
12728 \f
12729 Local Variables:
12730 mode: change-log
12731 left-margin: 8
12732 fill-column: 74
12733 version-control: never
12734 coding: utf-8
12735 End:
This page took 0.299612 seconds and 4 git commands to generate.