get_prev_frame, stop_reason != UNWIND_NO_REASON, add frame debug output.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-28 Pedro Alves <palves@redhat.com>
2
3 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
4 Add "set debug frame" output.
5 (frame_stop_reason_symbol_string): New function.
6
7 2013-11-28 Pedro Alves <palves@redhat.com>
8
9 * frame-unwind.c (default_frame_unwind_stop_reason): Return
10 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
11 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
12
13 2013-11-28 Pedro Alves <palves@redhat.com>
14
15 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
16 set the unwind stop reason to UNWIND_OUTERMOST, not
17 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
18
19 2013-11-28 Pedro Alves <palves@redhat.com>
20
21 * frame.c (frame_unwind_register): Say the register was "not
22 saved" instead of "optimized out".
23
24 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
25
26 PR 16152
27 * configure: Rebuild.
28 * configure.ac: Tighten cygwin detection check.
29
30 2013-11-27 Pedro Alves <palves@redhat.com>
31
32 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
33 register in the previous frame's arch.
34
35 2013-11-27 Pedro Alves <palves@redhat.com>
36
37 * frame-unwind.c (frame_unwind_got_optimized): Return
38 an lval_register value instead of a not_lval value.
39
40 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
41
42 * frame.c: Include "valprint.h".
43 (frame_unwind_register_value): Use value_optimized_out.
44 * value.c (value_fetch_lazy): Likewise.
45
46 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
47
48 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
49
50 2013-11-26 Tom Tromey <tromey@redhat.com>
51
52 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
53 2013-11-22.
54
55 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
56
57 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
58 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
59 (HAS_MPX): New macro.
60 (HAS_AVX): New macro.
61 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
62
63 2013-11-25 Keith Seitz <keiths@redhat.com>
64
65 PR c++/14819
66 * c-exp.y (classify_inner_name): If no matching symbol was
67 found, try looking up the token as a base class.
68 Likewise if a constructor was found.
69 * cp-namespace.c (find_type_baseclass_by_name): New function.
70 * cp-support.h (find_type_baseclass_by_name): Declare.
71 * valops.c (value_struct_elt_for_reference): If we get
72 a non-static field, try to get a value based on the
73 current instance, if any.
74
75 2013-11-24 Yao Qi <yao@codesourcery.com>
76
77 * disasm.c (dis_asm_read_memory): Call target_read_code
78 instead of target_read_memory.
79
80 2013-11-24 Yao Qi <yao@codesourcery.com>
81
82 * NEWS: Add note on new "set code-cache" option.
83 * target-dcache.c (code_cache_enabled_1): New variable.
84 (code_cache_enabled): New variable.
85 (show_code_cache, set_code_cache): New function.
86 (code_cache_enabled_p): New function.
87 (_initialize_target_dcache): Register command.
88 * target-dcache.h (code_cache_enabled_p): Declare.
89 * target.c (memory_xfer_partial_1):Handle
90 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
91 (target_read_code): New function.
92 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
93 New.
94 (target_read_code): Declare.
95
96 2013-11-24 Yao Qi <yao@codesourcery.com>
97
98 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
99 (stack_cache_enabled_1): ... this. New variable.
100 (stack_cache_enabled_p): Rename to ...
101 (stack_cache_enabled): ... this. New variable.
102 (set_stack_cache_enabled_p): Rename to ...
103 (set_stack_cache): ... this. Update caller.
104 (show_stack_cache_enabled_p): Rename to ...
105 (show_stack_cache): ... this. Update caller.
106 (stack_cache_enabled): Rename to ...
107 (stack_cache_enabled_p): ... this. Update caller.
108 (_initialize_target_dcache): Replace "data cache" with
109 "target memory cache".
110 * target-dcache.h (stack_cache_enabled): Remove declaration.
111 (stack_cache_enabled_p): Add declaration.
112
113 2013-11-23 Doug Evans <xdje42@gmail.com>
114
115 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
116 superfluous.
117
118 2013-11-23 Doug Evans <xdje42@gmail.com>
119
120 * python/py-frame.c (frapy_block): Fix error message text.
121
122 2013-11-23 Doug Evans <xdje42@gmail.com>
123
124 * cli/cli-script.c (multi_line_command_p): New function.
125 (recurse_read_control_structure, read_command_lines_1): Call it.
126 (execute_control_command): Consistently have a blank line between
127 each case.
128
129 2013-11-22 Sterling Augustine <saugustine@google.com>
130
131 PR gdb/16196:
132 * valprint.c (read_string): Set new variable fetchlen based on
133 fetchlimit and size. Use it in call to partial_memory_read.
134 Update comment.
135
136 2013-11-22 Tom Tromey <tromey@redhat.com>
137
138 PR backtrace/16155:
139 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
140 the return address column is unspecified.
141
142 2013-11-22 Tom Tromey <tromey@redhat.com>
143 Pedro Alves <palves@redhat.com>
144
145 PR backtrace/16155
146 * value.c (value_fetch_lazy): Internal error if
147 get_frame_register_value returns the same register.
148
149 2013-11-22 Pedro Alves <palves@redhat.com>
150 Tom Tromey <tromey@redhat.com>
151
152 * frame.c (frame_stash_add): Now returns whether a frame with the
153 same ID was already known.
154 (compute_frame_id): New function, factored out from get_frame_id.
155 (get_frame_id): No longer lazilly compute the frame id here.
156 (get_prev_frame_if_no_cycle): New function. Detects wider stack
157 cycles.
158 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
159 and checking for stack cycles here.
160
161 2013-11-22 Pedro Alves <palves@redhat.com>
162
163 PR 16155
164 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
165 this frame and the new previous frame, not between this frame and
166 the next frame.
167
168 2013-11-22 Pedro Alves <palves@redhat.com>
169
170 PR 16155
171 * dwarf2-frame.c (struct dwarf2_frame_cache)
172 <checked_tailcall_bottom, entry_cfa_sp_offset,
173 entry_cfa_sp_offset_p>: New fields.
174 (dwarf2_frame_cache): Adjust to use the new cache fields instead
175 of locals. Don't call dwarf2_tailcall_sniffer_first here.
176 (dwarf2_frame_prev_register): Call it here, but only once.
177
178 2013-11-21 Doug Evans <xdje42@gmail.com>
179
180 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
181 (type_equality_entry): Move here from python/py-type.c.
182 (type_equality_entry_d): Ditto.
183 (compare_maybe_null_strings, check_types_equal): Ditto.
184 (check_types_worklist, types_deeply_equal): Ditto.
185 * gdbtypes.h (types_deeply_equal): Declare.
186 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
187 (typy_richcompare): Update.
188
189 2013-11-20 Joel Brobecker <brobecker@adacore.com>
190
191 * python/py-value.c (is_intlike): Delete.
192 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
193 by use of is_integral_type.
194 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
195 by use of is_integral_type and check for TYPE_CODE_PTR.
196
197 2013-11-20 Tom Tromey <tromey@redhat.com>
198
199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
200 strerror module.
201 * gnulib/aclocal.m4: Update.
202 * gnulib/config.in: Update.
203 * gnulib/configure: Update.
204 * gnulib/import/Makefile.am: Update.
205 * gnulib/import/Makefile.in: Update.
206 * gnulib/import/errno.in.h: Remove.
207 * gnulib/import/intprops.h: Remove.
208 * gnulib/import/m4/errno_h.m4: Remove.
209 * gnulib/import/m4/gnulib-cache.m4: Update.
210 * gnulib/import/m4/gnulib-comp.m4: Update.
211 * gnulib/import/m4/strerror.m4: Remove.
212 * gnulib/import/m4/sys_socket_h.m4: Remove.
213 * gnulib/import/strerror-override.c: Remove.
214 * gnulib/import/strerror-override.h: Remove.
215 * gnulib/import/strerror.c: Remove.
216 * gnulib/update-gnulib.sh: Update.
217
218 2013-11-20 Yao Qi <yao@codesourcery.com>
219
220 * target-dcache.c (target_dcache_get_or_init): Call
221 set_address_space_data if 'dcache' is NULL.
222
223 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
224
225 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
226
227 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
228
229 * python/lib/gdb/command/bound_register.py: New file.
230 * data-directory/Makefile.in: Copy bond_register.py to the right path
231 to be initialized at gdb startup.
232
233 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
234
235 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
236 Add MPX registers.
237 (amd64_linux_read_description): Add initialization for MPX and
238 AVX independently.
239 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
240 (amd64_linux_gregset_reg_offset): Add MPX registers.
241 (amd64_linux_core_read_description): Add initialization for MPX
242 registers.
243 (_initialize_amd64_linux_tdep): Initialize MPX targets.
244 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
245 register on the list.
246 (tdesc_amd64_mpx_linux) Add new target for MPX.
247 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
248 (amd64_mpx_names): MPX register names.
249 (amd64_init_abi): Add MPX register while initializing the ABI.
250 (_initialize_amd64_tdep): Initialize MPX targets.
251 * amd64-tdep.h (amd64_regnum): Add MPX registers.
252 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
253
254 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
255
256 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
257 registers on the range of registers to be read from
258 xsave buffer.
259 (i386_linux_read_description): Add case for MPX.
260 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
261 (i386_linux_gregset_reg_offset): Add MPX registers.
262 (i386_linux_core_read_description): Initialize also MPX.
263 (_initialize_i386_linux_tdep): Add mpx initialization.
264 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
265 mpx_register_names.
266 (i386_regnum): Add MPX registers.
267 (I386_MPX_NUM_REGS): New macro.
268 (i386_bnd_regnum_p): New function.
269 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
270 number of registers to be the number of BNDSTATUS.
271 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
272 * i386-tdep.c: Include features/i386/i386-mpx.c.
273 (i386_mpx_names): Add MPX register names array.
274 (i386_bnd_names): Add bnd pseudo register names array.
275 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
276 registers.
277 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
278 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
279 registers.
280 (i386_bnd_type): New function.
281 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
282 register types.
283 (i386_pseudo_register_read_into_value): Add bnd case.
284 (i386_pseudo_register_write): Add bnd pseudo registers.
285 (i386_register_reggroup_p): Add MPX register to the group all.
286 (i386_validate_tdesc_p): Add MPX to the target description
287 validation.
288 (i386_pseudo_register_name): Add bnd pseudo registers.
289 (i386_gdbarch_init): Add MPX for architecture initialization.
290 (_initia_initialize_i386_tdep): Add mpx initialization.
291 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
292 XSAVE buffer.
293 (XSAVE_MPX_ADDR): New macro.
294 (i387_supply_xsave): Add MPX case.
295 (i387_collect_xsave): Add MPX case.
296 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
297 (I387_BNDCFGU_REGNUM): New macro.
298 (I387_NUM_MPX_REGS): New macro.
299 (I387_NUM_BND_REGS): New macro.
300 (I387_NUM_MPX_CTRL_REGS): New macro.
301 (I387_MPXEND_REGNUM): New macro.
302 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
303 (I386_XSTATE_BNDCFG): Likewise.
304 (I386_XSTATE_MPX_MASK): Likewise.
305 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
306 (I386_XSTATE_BNDREGS_SIZE): New macro.
307 (I386_XSTATE_BNDCFG_SIZE): Likewise.
308 (I386_XSTATE_SIZE): Adapt for MPX.
309 (I386_XSTATE_MAX_SIZE): Likewise.
310
311 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
312
313 * features/i386/Makefile: Adapts for using MPX registers.
314 * features/i386/32bit-mpx.xml: New file.
315 * features/i386/64bit-mpx.xml: Likewise.
316 * features/i386/amd64-mpx-linux.c: Likewise.
317 * features/i386/amd64-mpx-linux.xml: Likewise.
318 * features/i386/amd64-mpx.c: Likewise.
319 * features/i386/amd64-mpx.xml: Likewise.
320 * features/i386/i386-mpx-linux.c: Likewise.
321 * features/i386/i386-mpx-linux.xml: Likewise.
322 * features/i386/i386-mpx.c: Likewise.
323 * features/i386/i386-mpx.xml: Likewise.
324 * regformats/i386/amd64-mpx-linux.dat: New file.
325 * regformats/i386/amd64-mpx.dat: Likewise.
326 * regformats/i386/i386-mpx-linux.dat: Likewise.
327 * regformats/i386/i386-mpx.dat: Likewise.
328
329 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
330
331 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
332 Modified logic of creating a bitfield to be in sync with
333 tdesc_gdb_type.
334
335 2013-11-20 Will Newton <will.newton@linaro.org>
336
337 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
338 error message.
339
340 2013-11-20 Yao Qi <yao@codesourcery.com>
341
342 * progspace.h (struct address_space_data): Declare.
343 * target-dcache.c: Include "progspace.h".
344 (target_dache): Remove.
345 (target_dcache_aspace_key): New.
346 (target_dcache_cleanup): New function.
347 (target_dcache_init_p): Get data through
348 target_dcache_aspace_key.
349 (target_dcache_invalidate): Likewise.
350 (target_dcache_get): Likewise.
351 (target_dcache_get_or_init): Likewise.
352 (_initialize_target_dcache): Initialize
353 target_dcache_aspace_key.
354
355 2013-11-20 Yao Qi <yao@codesourcery.com>
356
357 * progspace.c (struct address_space): Update comments.
358 <REGISTRY_FIELDS>: New fields.
359 DEFINE_REGISTRY for address_space.
360 (new_address_space): Call address_space_alloc_data.
361 (free_address_space): Call address_space_free_data.
362 * progspace.h: Use DECLARE_REGISTRY.
363
364 2013-11-20 Yao Qi <yao@codesourcery.com>
365
366 * Makefile.in (SFILES):Add target-dcache.c.
367 (HFILES_NO_SRCDIR): Add target-dcache.h.
368 (COMMON_OBS): Add target-dcache.o.
369 * dcache.c: Remove inclusion to "target.h". Include
370 "target-dcache.h".
371 * memattr.c: Include "target-dcache.h".
372 * top.c: Likewise.
373 * tracepoint.c: Likewise.
374 * target.c: (stack_cache_enabled_p_1): Move to
375 target-dcache.c.
376 (stack_cache_enabled_p): Likewise.
377 (set_stack_cache_enabled_p): Likewise.
378 (show_stack_cache_enabled_p): Likewise.
379 (target_dcache, target_dcache_init_p): Likewise.
380 (target_dcache_invalidate): Likewise.
381 (target_dcache_get, target_dcache_get_or_init): Likewise.
382 (memory_xfer_partial_1): Call function stack_cache_enabled.
383 (initialize_target): Move code to target-dcache.c.
384 * target.h (target_dcache_invalidate): Move to
385 target-dcache.h.
386 (target_dcache_get): Likewise.
387 * target-dcache.c: New.
388 * target-dcache.h: New.
389
390 2013-11-20 Yao Qi <yao@codesourcery.com>
391
392 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
393 it is initialized.
394
395 2013-11-20 Yao Qi <yao@codesourcery.com>
396
397 * dcache.c (last_cache): Remove.
398 (dcache_free, dcache_init): Update.
399 (dcache_update):
400 (dcache_print_line): Add parameter 'dcache'. Replace
401 'target_dcache' with 'dcache'.
402 (dcache_info): Move code to dcache_info_1. Call
403 'dcache_info_1'.
404 (dcache_info_1): New function.
405 (set_dcache_size): Call target_dcache_invalidate.
406 (set_dcache_line_size): Call target_dcache_invalidate.
407 * target.c (target_dcache_init_p): New function.
408 (target_dcache_invalidate): Check target_dcache_init_p first.
409 (target_dcache_get, target_dcache_get_or_init): New function.
410 (memory_xfer_partial_1): Adjust.
411 (initialize_target): Don't initialize 'target_dcache'.
412 * target.h (struct dcache_struct): Declare.
413 (target_dcache_get): Declare.
414
415 2013-11-19 Yao Qi <yao@codesourcery.com>
416
417 * varobj.c (varobj_get_type): Fix typo.
418
419 2013-11-19 Joel Brobecker <brobecker@adacore.com>
420
421 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
422
423 2013-11-19 Joel Brobecker <brobecker@adacore.com>
424
425 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
426 "stat.h".
427
428 2013-11-18 Tom Tromey <tromey@redhat.com>
429
430 * common/gdb_stat.h: Remove.
431 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
432 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
433 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
434 * corefile.c: Use sys/stat.h, not gdb_stat.h.
435 * ctf.c: Use sys/stat.h, not gdb_stat.h.
436 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
437 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
438 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
439 * exec.c: Use sys/stat.h, not gdb_stat.h.
440 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
441 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
442 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
443 * jit.c: Use sys/stat.h, not gdb_stat.h.
444 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
445 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
446 * main.c: Use sys/stat.h, not gdb_stat.h.
447 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
448 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
449 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
450 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
451 * procfs.c: Use sys/stat.h, not gdb_stat.h.
452 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
453 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
454 * remote.c: Use sys/stat.h, not gdb_stat.h.
455 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
456 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
457 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
458 * source.c: Use sys/stat.h, not gdb_stat.h.
459 * symfile.c: Use sys/stat.h, not gdb_stat.h.
460 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
461 * symtab.c: Use sys/stat.h, not gdb_stat.h.
462 * top.c: Use sys/stat.h, not gdb_stat.h.
463 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
464
465 2013-11-18 Tom Tromey <tromey@redhat.com>
466
467 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
468 sys_stat.
469 * gnulib/aclocal.m4: Update.
470 * gnulib/config.in: Update.
471 * gnulib/configure: Update.
472 * gnulib/import/Makefile.am: Update.
473 * gnulib/import/Makefile.in: Update.
474 * gnulib/import/m4/gnulib-cache.m4: Update.
475 * gnulib/import/m4/gnulib-comp.m4: Update.
476 * gnulib/import/m4/sys_stat_h.m4: New.
477 * gnulib/import/m4/time_h.m4: New.
478 * gnulib/import/sys_stat.in.h: New.
479 * gnulib/import/time.in.h: New.
480
481 2013-11-18 Tom Tromey <tromey@redhat.com>
482
483 * configure: Rebuild.
484 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
485
486 2013-11-18 Tom Tromey <tromey@redhat.com>
487
488 * configure: Rebuild.
489 * configure.ac: Don't check for unistd.h.
490
491 2013-11-18 Tom Tromey <tromey@redhat.com>
492
493 * configure: Rebuild.
494 * configure.ac: Don't check for stdlib.h
495 * defs.h: Include stdlib.h unconditionally.
496
497 2013-11-18 Tom Tromey <tromey@redhat.com>
498
499 * config.in: Rebuild.
500 * configure: Rebuild.
501 * configure.ac: Don't check for stddef.h.
502 * defs.h: Unconditionally include stddef.h. Remove duplicate
503 inclusion.
504
505 2013-11-18 Tom Tromey <tromey@redhat.com>
506
507 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
508 * common/gdb_dirent.h: Remove.
509 * common/filestuff.c: Use dirent.h.
510 * common/linux-osdata.c: Use dirent.h.
511 (NAMELEN): Define.
512 * config.in: Rebuild.
513 * configure: Rebuild.
514 * configure.ac: Don't use AC_HEADER_DIRENT.
515 * linux-fork.c: Use dirent.h
516 * linux-nat.c: Use dirent.h.
517 * nto-procfs.c: Use dirent.h.
518 * procfs.c: Use dirent.h.
519
520 2013-11-18 Tom Tromey <tromey@redhat.com>
521
522 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
523 * gnulib/aclocal.m4: Update.
524 * gnulib/config.in: Update.
525 * gnulib/configure: Update.
526 * gnulib/import/Makefile.am: Update.
527 * gnulib/import/Makefile.in: Update.
528 * gnulib/import/dirent.in.h: New.
529 * gnulib/import/m4/dirent_h.m4: New.
530 * gnulib/import/m4/gnulib-cache.m4: Update.
531 * gnulib/import/m4/gnulib-comp.m4: Update.
532
533 2013-11-18 Tom Tromey <tromey@redhat.com>
534
535 * configure: Rebuild.
536 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
537 strings.h.
538
539 2013-11-18 Tom Tromey <tromey@redhat.com>
540
541 * common/gdb_string.h: Remove.
542 * aarch64-tdep.c: Use string.h, not gdb_string.h.
543 * ada-exp.y: Use string.h, not gdb_string.h.
544 * ada-lang.c: Use string.h, not gdb_string.h.
545 * ada-lex.l: Use string.h, not gdb_string.h.
546 * ada-typeprint.c: Use string.h, not gdb_string.h.
547 * ada-valprint.c: Use string.h, not gdb_string.h.
548 * aix-thread.c: Use string.h, not gdb_string.h.
549 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
550 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
551 * alpha-nat.c: Use string.h, not gdb_string.h.
552 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
553 * alpha-tdep.c: Use string.h, not gdb_string.h.
554 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
555 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
556 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
557 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
558 * amd64-nat.c: Use string.h, not gdb_string.h.
559 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
560 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
561 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
562 * arch-utils.c: Use string.h, not gdb_string.h.
563 * arm-linux-nat.c: Use string.h, not gdb_string.h.
564 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
565 * arm-tdep.c: Use string.h, not gdb_string.h.
566 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
567 * armbsd-tdep.c: Use string.h, not gdb_string.h.
568 * armnbsd-nat.c: Use string.h, not gdb_string.h.
569 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
570 * armobsd-tdep.c: Use string.h, not gdb_string.h.
571 * avr-tdep.c: Use string.h, not gdb_string.h.
572 * ax-gdb.c: Use string.h, not gdb_string.h.
573 * ax-general.c: Use string.h, not gdb_string.h.
574 * bcache.c: Use string.h, not gdb_string.h.
575 * bfin-tdep.c: Use string.h, not gdb_string.h.
576 * breakpoint.c: Use string.h, not gdb_string.h.
577 * build-id.c: Use string.h, not gdb_string.h.
578 * buildsym.c: Use string.h, not gdb_string.h.
579 * c-exp.y: Use string.h, not gdb_string.h.
580 * c-lang.c: Use string.h, not gdb_string.h.
581 * c-typeprint.c: Use string.h, not gdb_string.h.
582 * c-valprint.c: Use string.h, not gdb_string.h.
583 * charset.c: Use string.h, not gdb_string.h.
584 * cli-out.c: Use string.h, not gdb_string.h.
585 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
586 * cli/cli-decode.c: Use string.h, not gdb_string.h.
587 * cli/cli-dump.c: Use string.h, not gdb_string.h.
588 * cli/cli-interp.c: Use string.h, not gdb_string.h.
589 * cli/cli-logging.c: Use string.h, not gdb_string.h.
590 * cli/cli-script.c: Use string.h, not gdb_string.h.
591 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
592 * cli/cli-utils.c: Use string.h, not gdb_string.h.
593 * coffread.c: Use string.h, not gdb_string.h.
594 * common/common-utils.c: Use string.h, not gdb_string.h.
595 * common/filestuff.c: Use string.h, not gdb_string.h.
596 * common/linux-procfs.c: Use string.h, not gdb_string.h.
597 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
598 * common/signals.c: Use string.h, not gdb_string.h.
599 * common/vec.h: Use string.h, not gdb_string.h.
600 * core-regset.c: Use string.h, not gdb_string.h.
601 * corefile.c: Use string.h, not gdb_string.h.
602 * corelow.c: Use string.h, not gdb_string.h.
603 * cp-abi.c: Use string.h, not gdb_string.h.
604 * cp-support.c: Use string.h, not gdb_string.h.
605 * cp-valprint.c: Use string.h, not gdb_string.h.
606 * cris-tdep.c: Use string.h, not gdb_string.h.
607 * d-lang.c: Use string.h, not gdb_string.h.
608 * dbxread.c: Use string.h, not gdb_string.h.
609 * dcache.c: Use string.h, not gdb_string.h.
610 * demangle.c: Use string.h, not gdb_string.h.
611 * dicos-tdep.c: Use string.h, not gdb_string.h.
612 * disasm.c: Use string.h, not gdb_string.h.
613 * doublest.c: Use string.h, not gdb_string.h.
614 * dsrec.c: Use string.h, not gdb_string.h.
615 * dummy-frame.c: Use string.h, not gdb_string.h.
616 * dwarf2-frame.c: Use string.h, not gdb_string.h.
617 * dwarf2loc.c: Use string.h, not gdb_string.h.
618 * dwarf2read.c: Use string.h, not gdb_string.h.
619 * elfread.c: Use string.h, not gdb_string.h.
620 * environ.c: Use string.h, not gdb_string.h.
621 * eval.c: Use string.h, not gdb_string.h.
622 * event-loop.c: Use string.h, not gdb_string.h.
623 * exceptions.c: Use string.h, not gdb_string.h.
624 * exec.c: Use string.h, not gdb_string.h.
625 * expprint.c: Use string.h, not gdb_string.h.
626 * f-exp.y: Use string.h, not gdb_string.h.
627 * f-lang.c: Use string.h, not gdb_string.h.
628 * f-typeprint.c: Use string.h, not gdb_string.h.
629 * f-valprint.c: Use string.h, not gdb_string.h.
630 * fbsd-nat.c: Use string.h, not gdb_string.h.
631 * findcmd.c: Use string.h, not gdb_string.h.
632 * findvar.c: Use string.h, not gdb_string.h.
633 * fork-child.c: Use string.h, not gdb_string.h.
634 * frame.c: Use string.h, not gdb_string.h.
635 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
636 * frv-tdep.c: Use string.h, not gdb_string.h.
637 * gdb.c: Use string.h, not gdb_string.h.
638 * gdb_bfd.c: Use string.h, not gdb_string.h.
639 * gdbarch.c: Use string.h, not gdb_string.h.
640 * gdbtypes.c: Use string.h, not gdb_string.h.
641 * gnu-nat.c: Use string.h, not gdb_string.h.
642 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
643 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
644 * go-exp.y: Use string.h, not gdb_string.h.
645 * go-lang.c: Use string.h, not gdb_string.h.
646 * go32-nat.c: Use string.h, not gdb_string.h.
647 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
648 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
649 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
650 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
651 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
652 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
653 * i386-linux-nat.c: Use string.h, not gdb_string.h.
654 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
655 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
656 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
657 * i386-tdep.c: Use string.h, not gdb_string.h.
658 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
659 * i386gnu-nat.c: Use string.h, not gdb_string.h.
660 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
661 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
662 * i387-tdep.c: Use string.h, not gdb_string.h.
663 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
664 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
665 * inf-child.c: Use string.h, not gdb_string.h.
666 * inf-ptrace.c: Use string.h, not gdb_string.h.
667 * inf-ttrace.c: Use string.h, not gdb_string.h.
668 * infcall.c: Use string.h, not gdb_string.h.
669 * infcmd.c: Use string.h, not gdb_string.h.
670 * inflow.c: Use string.h, not gdb_string.h.
671 * infrun.c: Use string.h, not gdb_string.h.
672 * interps.c: Use string.h, not gdb_string.h.
673 * iq2000-tdep.c: Use string.h, not gdb_string.h.
674 * irix5-nat.c: Use string.h, not gdb_string.h.
675 * jv-exp.y: Use string.h, not gdb_string.h.
676 * jv-lang.c: Use string.h, not gdb_string.h.
677 * jv-typeprint.c: Use string.h, not gdb_string.h.
678 * jv-valprint.c: Use string.h, not gdb_string.h.
679 * language.c: Use string.h, not gdb_string.h.
680 * linux-fork.c: Use string.h, not gdb_string.h.
681 * linux-nat.c: Use string.h, not gdb_string.h.
682 * lm32-tdep.c: Use string.h, not gdb_string.h.
683 * m2-exp.y: Use string.h, not gdb_string.h.
684 * m2-typeprint.c: Use string.h, not gdb_string.h.
685 * m32c-tdep.c: Use string.h, not gdb_string.h.
686 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
687 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
688 * m32r-rom.c: Use string.h, not gdb_string.h.
689 * m32r-tdep.c: Use string.h, not gdb_string.h.
690 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
691 * m68k-tdep.c: Use string.h, not gdb_string.h.
692 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
693 * m68klinux-nat.c: Use string.h, not gdb_string.h.
694 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
695 * m88k-tdep.c: Use string.h, not gdb_string.h.
696 * macrocmd.c: Use string.h, not gdb_string.h.
697 * main.c: Use string.h, not gdb_string.h.
698 * mdebugread.c: Use string.h, not gdb_string.h.
699 * mem-break.c: Use string.h, not gdb_string.h.
700 * memattr.c: Use string.h, not gdb_string.h.
701 * memory-map.c: Use string.h, not gdb_string.h.
702 * mep-tdep.c: Use string.h, not gdb_string.h.
703 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
704 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
705 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
706 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
707 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
708 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
709 * mi/mi-console.c: Use string.h, not gdb_string.h.
710 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
711 * mi/mi-interp.c: Use string.h, not gdb_string.h.
712 * mi/mi-main.c: Use string.h, not gdb_string.h.
713 * mi/mi-parse.c: Use string.h, not gdb_string.h.
714 * microblaze-rom.c: Use string.h, not gdb_string.h.
715 * microblaze-tdep.c: Use string.h, not gdb_string.h.
716 * mingw-hdep.c: Use string.h, not gdb_string.h.
717 * minidebug.c: Use string.h, not gdb_string.h.
718 * minsyms.c: Use string.h, not gdb_string.h.
719 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
720 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
721 * mips-tdep.c: Use string.h, not gdb_string.h.
722 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
723 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
724 * mipsread.c: Use string.h, not gdb_string.h.
725 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
726 * mn10300-tdep.c: Use string.h, not gdb_string.h.
727 * monitor.c: Use string.h, not gdb_string.h.
728 * moxie-tdep.c: Use string.h, not gdb_string.h.
729 * mt-tdep.c: Use string.h, not gdb_string.h.
730 * nbsd-tdep.c: Use string.h, not gdb_string.h.
731 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
732 * nto-procfs.c: Use string.h, not gdb_string.h.
733 * nto-tdep.c: Use string.h, not gdb_string.h.
734 * objc-lang.c: Use string.h, not gdb_string.h.
735 * objfiles.c: Use string.h, not gdb_string.h.
736 * opencl-lang.c: Use string.h, not gdb_string.h.
737 * osabi.c: Use string.h, not gdb_string.h.
738 * osdata.c: Use string.h, not gdb_string.h.
739 * p-exp.y: Use string.h, not gdb_string.h.
740 * p-lang.c: Use string.h, not gdb_string.h.
741 * p-typeprint.c: Use string.h, not gdb_string.h.
742 * parse.c: Use string.h, not gdb_string.h.
743 * posix-hdep.c: Use string.h, not gdb_string.h.
744 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
745 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
746 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
747 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
748 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
749 * printcmd.c: Use string.h, not gdb_string.h.
750 * procfs.c: Use string.h, not gdb_string.h.
751 * prologue-value.c: Use string.h, not gdb_string.h.
752 * python/py-auto-load.c: Use string.h, not gdb_string.h.
753 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
754 * ravenscar-thread.c: Use string.h, not gdb_string.h.
755 * regcache.c: Use string.h, not gdb_string.h.
756 * registry.c: Use string.h, not gdb_string.h.
757 * remote-fileio.c: Use string.h, not gdb_string.h.
758 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
759 * remote-mips.c: Use string.h, not gdb_string.h.
760 * remote-sim.c: Use string.h, not gdb_string.h.
761 * remote.c: Use string.h, not gdb_string.h.
762 * reverse.c: Use string.h, not gdb_string.h.
763 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
764 * ser-base.c: Use string.h, not gdb_string.h.
765 * ser-go32.c: Use string.h, not gdb_string.h.
766 * ser-mingw.c: Use string.h, not gdb_string.h.
767 * ser-pipe.c: Use string.h, not gdb_string.h.
768 * ser-tcp.c: Use string.h, not gdb_string.h.
769 * ser-unix.c: Use string.h, not gdb_string.h.
770 * serial.c: Use string.h, not gdb_string.h.
771 * sh-tdep.c: Use string.h, not gdb_string.h.
772 * sh64-tdep.c: Use string.h, not gdb_string.h.
773 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
774 * skip.c: Use string.h, not gdb_string.h.
775 * sol-thread.c: Use string.h, not gdb_string.h.
776 * solib-dsbt.c: Use string.h, not gdb_string.h.
777 * solib-frv.c: Use string.h, not gdb_string.h.
778 * solib-osf.c: Use string.h, not gdb_string.h.
779 * solib-spu.c: Use string.h, not gdb_string.h.
780 * solib-target.c: Use string.h, not gdb_string.h.
781 * solib.c: Use string.h, not gdb_string.h.
782 * somread.c: Use string.h, not gdb_string.h.
783 * source.c: Use string.h, not gdb_string.h.
784 * sparc-nat.c: Use string.h, not gdb_string.h.
785 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
786 * sparc-tdep.c: Use string.h, not gdb_string.h.
787 * sparc64-tdep.c: Use string.h, not gdb_string.h.
788 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
789 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
790 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
791 * spu-linux-nat.c: Use string.h, not gdb_string.h.
792 * spu-multiarch.c: Use string.h, not gdb_string.h.
793 * spu-tdep.c: Use string.h, not gdb_string.h.
794 * stabsread.c: Use string.h, not gdb_string.h.
795 * stack.c: Use string.h, not gdb_string.h.
796 * std-regs.c: Use string.h, not gdb_string.h.
797 * symfile.c: Use string.h, not gdb_string.h.
798 * symmisc.c: Use string.h, not gdb_string.h.
799 * symtab.c: Use string.h, not gdb_string.h.
800 * target.c: Use string.h, not gdb_string.h.
801 * thread.c: Use string.h, not gdb_string.h.
802 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
803 * tilegx-tdep.c: Use string.h, not gdb_string.h.
804 * top.c: Use string.h, not gdb_string.h.
805 * tracepoint.c: Use string.h, not gdb_string.h.
806 * tui/tui-command.c: Use string.h, not gdb_string.h.
807 * tui/tui-data.c: Use string.h, not gdb_string.h.
808 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
809 * tui/tui-file.c: Use string.h, not gdb_string.h.
810 * tui/tui-layout.c: Use string.h, not gdb_string.h.
811 * tui/tui-out.c: Use string.h, not gdb_string.h.
812 * tui/tui-regs.c: Use string.h, not gdb_string.h.
813 * tui/tui-source.c: Use string.h, not gdb_string.h.
814 * tui/tui-stack.c: Use string.h, not gdb_string.h.
815 * tui/tui-win.c: Use string.h, not gdb_string.h.
816 * tui/tui-windata.c: Use string.h, not gdb_string.h.
817 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
818 * typeprint.c: Use string.h, not gdb_string.h.
819 * ui-file.c: Use string.h, not gdb_string.h.
820 * ui-out.c: Use string.h, not gdb_string.h.
821 * user-regs.c: Use string.h, not gdb_string.h.
822 * utils.c: Use string.h, not gdb_string.h.
823 * v850-tdep.c: Use string.h, not gdb_string.h.
824 * valarith.c: Use string.h, not gdb_string.h.
825 * valops.c: Use string.h, not gdb_string.h.
826 * valprint.c: Use string.h, not gdb_string.h.
827 * value.c: Use string.h, not gdb_string.h.
828 * varobj.c: Use string.h, not gdb_string.h.
829 * vax-tdep.c: Use string.h, not gdb_string.h.
830 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
831 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
832 * windows-nat.c: Use string.h, not gdb_string.h.
833 * xcoffread.c: Use string.h, not gdb_string.h.
834 * xml-support.c: Use string.h, not gdb_string.h.
835 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
836 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
837
838 2013-11-18 Tom Tromey <tromey@redhat.com>
839
840 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
841 and strstr.
842 * gnulib/aclocal.m4: Update.
843 * gnulib/config.in: Update.
844 * gnulib/configure: Update.
845 * gnulib/import/Makefile.am: Update.
846 * gnulib/import/Makefile.in: Update.
847 * gnulib/import/errno.in.h: New.
848 * gnulib/import/intprops.h: New.
849 * gnulib/import/m4/errno_h.m4: New.
850 * gnulib/import/m4/gnulib-cache.m4: Update.
851 * gnulib/import/m4/gnulib-comp.m4: Update.
852 * gnulib/import/m4/strerror.m4: New.
853 * gnulib/import/m4/strstr.m4: New.
854 * gnulib/import/m4/sys_socket_h.m4: New.
855 * gnulib/import/strerror-override.c: New.
856 * gnulib/import/strerror-override.h: New.
857 * gnulib/import/strerror.c: New.
858 * gnulib/import/strstr.c: New.
859
860 2013-11-18 Tom Tromey <tromey@redhat.com>
861
862 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
863 multiple lines.
864
865 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
866
867 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
868 * sparc-tdep.h: And its prototype.
869
870 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
871 function.
872 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
873
874 2013-11-18 Pedro Alves <palves@redhat.com>
875
876 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
877 use unpack_pointer.
878
879 2013-11-18 Joel Brobecker <brobecker@adacore.com>
880
881 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
882 to -list-features output.
883
884 2013-11-17 Joel Brobecker <brobecker@adacore.com>
885
886 * dwarf2expr.h (struct dwarf_expr_context_funcs)
887 <read_addr_from_reg>: Renames "read_reg".
888 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
889 Adjust comment.
890 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
891 Use read_addr_from_reg in place of read_reg.
892 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
893 in place of read_reg.
894 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
895 dwarf_expr_read_reg.
896 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
897 with dwarf_expr_read_addr_from_reg.
898 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
899 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
900 needs_frame_read_addr_from_reg.
901
902 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
905
906 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
907
908 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
909 NULL.
910
911 2013-11-15 Tom Tromey <tromey@redhat.com>
912
913 PR c++/16117:
914 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
915 (classify_name): Likewise. Prefer a field of "this" over a
916 filename.
917 (classify_inner_name, yylex): Update.
918
919 2013-11-15 Joel Brobecker <brobecker@adacore.com>
920
921 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
922 Extend the documentation a bit.
923 <get_reg_value>: New field.
924 * dwarf2loc.c (dwarf_expr_get_reg_value)
925 (needs_frame_get_reg_value): New functions.
926 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
927 callback.
928 * dwarf2-frame.c (get_reg_value): New function.
929 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
930 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
931 Use new callback to compute result_val.
932
933 2013-11-15 Alan Modra <amodra@gmail.com>
934
935 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
936 (ppc64_desc_entry_point): ..this. Update comments here and at
937 call points.
938 (ppc64_standard_linkage1, ppc64_standard_linkage2,
939 ppc64_standard_linkage3): Update comments.
940 (ppc64_standard_linkage4, ppc64_standard_linkage5,
941 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
942 patterns.
943 (ppc64_standard_linkage4_target): New function.
944 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
945 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
946 nop match. Fix comment wrap.
947
948 2013-11-14 Pedro Alves <palves@redhat.com>
949
950 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
951 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
952
953 2013-11-14 Pedro Alves <palves@redhat.com>
954
955 * infrun.c (struct execution_control_state)
956 <stepped_after_stopped_by_watchpoint>: New field.
957 (get_inferior_stop_soon): New function.
958 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
959 moved to struct execution_control_state -- adjust. Use
960 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
961 new function.
962 (handle_signal_stop): New function, factored out from
963 handle_inferior_event.
964
965 2013-11-14 Pedro Alves <palves@redhat.com>
966
967 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
968 return a boolean.
969 * breakpoint.c (bpstat_explains_signal): Adjust to return a
970 boolean.
971 (explains_signal_watchpoint, base_breakpoint_explains_signal):
972 Adjust to return a boolean.
973 * breakpoint.h (enum bpstat_signal_value): Delete.
974 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
975 (bpstat_explains_signal): Likewise.
976 * infrun.c (handle_inferior_event) <random signal checks>:
977 bpstat_explains_signal now returns a boolean - adjust. No longer
978 consider hiding signals.
979
980 2013-11-14 Pedro Alves <palves@redhat.com>
981
982 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
983 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
984 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
985 BPSTAT_SIGNAL_HIDE.
986 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
987 instead of BPSTAT_SIGNAL_HIDE.
988 * infrun.c (handle_inferior_event): Rework random signal checks.
989
990 2013-11-14 Pedro Alves <palves@redhat.com>
991
992 * infrun.c (struct execution_control_state): Remove
993 'random_signal' field.
994 (handle_syscall_event): Use bpstat_causes_stop instead of
995 bpstat_explains_signal. Don't set ecs->random_signal.
996 (handle_inferior_event): New 'random_signal' local.
997 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
998 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
999 bpstat_explains_signal. Don't set ecs->random_signal.
1000 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1001 ecs->random_signal.
1002
1003 2013-11-14 Pedro Alves <palves@redhat.com>
1004
1005 * infrun.c (handle_inferior_event): Move comment from the
1006 function's body to the function's description, adjusted.
1007
1008 2013-11-14 Pedro Alves <palves@redhat.com>
1009
1010 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1011 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1012 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1013 case.
1014
1015 2013-11-14 Tom Tromey <tromey@redhat.com>
1016
1017 * python/py-linetable.c (ltpy_has_line)
1018 (ltpy_get_all_source_lines): Fix loop termination condition.
1019
1020 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1021
1022 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1023 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1024 PARSE->LANGUAGE during command execution, if set.
1025 * mi/mi-parse.c: Add "language.h" #include.
1026 (mi_parse): Add parsing of "--language" command option.
1027
1028 * NEWS: Add entry mentioning the new "--language" command option.
1029
1030 2013-11-14 Pedro Alves <palves@redhat.com>
1031 Joel Brobecker <brobecker@adacore.com>
1032
1033 * cli/cli-utils.h (extract_arg_const): Add declaration.
1034 * cli/cli-utils.c (extract_arg_const): New function.
1035 (extract_arg): Reimplement using extract_arg_const.
1036
1037 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1038
1039 * language.h: Add "symtab.h" #include.
1040
1041 2013-11-13 Doug Evans <xdje42@gmail.com>
1042
1043 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1044 specific breakpoints, don't evaluate breakpoint condition if
1045 different thread.
1046
1047 2013-11-13 Keith Seitz <keiths@redhat.com>
1048
1049 PR c++/7935
1050 PR c++/10541
1051 * cp-support.c (insepct_type): Add support for substituting
1052 namespace aliases, too.
1053 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1054 for DW_TAG_imported_declaration.
1055 (add_partial_symbol): Likewise.
1056 (process_die): Handle namespace aliases with
1057 read_namespace_alias.
1058 (die_needs_namespace): Add DW_TAG_imported_declaration.
1059 (read_namespace_alias): New function.
1060 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1061 (new_symbol_full): Handle DW_TAG_imported_declaration.
1062
1063 2013-11-13 Keith Seitz <keiths@redhat.com>
1064
1065 * p-exp.y (uptok): Make first parameter const.
1066 (yylex): Make `tokstart' and `tokptr' const.
1067 Don't copy the lexer input to a temporary buffer.
1068 Make `p' const.
1069 Remove const workaround for parse_escape.
1070 Create a temporary buffer for a convenience variable instead
1071 of doing in-place modification of the input.
1072 If a match is found with a different case from the input,
1073 do not change the input at all.
1074 Use `tmp' to construct the resultant stoken instead of
1075 `tokstart'.
1076
1077 2013-11-13 Doug Evans <xdje42@gmail.com>
1078
1079 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1080
1081 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1082
1083 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1084 entry with "ada-exceptions".
1085
1086 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1087
1088 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1089 after re-initialization of OBJFILE's obstack.
1090
1091 2013-11-12 Doug Evans <xdje42@gmail.com>
1092
1093 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1094 bs->stop != 0 on entry. Update function comment. Simplify early
1095 exit for frame mismatch. Reindent rest of function.
1096
1097 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1098
1099 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1100 NULL.
1101
1102 2013-11-12 Doug Evans <dje@google.com>
1103
1104 Work around gold/15646.
1105 * dwarf2read.c (read_index_from_section): Update comment.
1106 (struct dw2_symtab_iterator): New member global_seen.
1107 (dw2_symtab_iter_init): Initialize it.
1108 (dw2_symtab_iter_next): Skip duplicate global symbols.
1109 (dw2_expand_symtabs_matching): Ditto.
1110
1111 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1112
1113 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1114 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1115 command.
1116 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1117 (mi_cmd_info_ada_exceptions): New function.
1118 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1119
1120 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1121
1122 * ada-lang.h: #include "vec.h".
1123 (struct ada_exc_info): New.
1124 (ada_exc_info): New typedef.
1125 (DEF_VEC_O(ada_exc_info)): New vector.
1126 (ada_exceptions_list): Add declaration.
1127 * ada-lang.c (ada_is_exception_sym)
1128 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1129 (sort_remove_dups_ada_exceptions_list)
1130 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1131 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1132 (ada_exceptions_list_1, ada_exceptions_list)
1133 (info_exceptions_command): New function.
1134 (_initialize_ada_language): Add "info exception" command.
1135
1136 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1137
1138 PR python/15629
1139 * NEWS: Add linetable feature.
1140 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1141 * python/py-linetable.c: New file.
1142 * python/py-symtab.c (stpy_get_linetable): New function.
1143 * python/python-internal.h (symtab_to_linetable_object): Declare.
1144 (gdbpy_initialize_linetable): Ditto.
1145 * python/python.c (_initialize_python): Call
1146 gdbpy_initialize_linetable.
1147
1148 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1149
1150 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1151 the documentation of fields "except_string" and "condition".
1152 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1153 CONDITION on the heap before passing it to
1154 create_ada_exception_catchpoint.
1155 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1156 CONDITION.
1157
1158 2013-11-11 Tom Tromey <tromey@redhat.com>
1159
1160 * config.in, configure: Rebuild.
1161 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1162
1163 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1164
1165 * remote-sim.c (gdbsim_detach): Break declaration into
1166 shorter lines. No code change.
1167
1168 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1169
1170 * remote-sim.c (gdbsim_detach): Fix prototype.
1171
1172 2013-11-08 Doug Evans <dje@google.com>
1173
1174 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1175 (create_debug_types_hash_table): Only print debugging messages for
1176 each TU if dwarf2-read >= 2.
1177 (process_queue): Ditto.
1178 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1179 Update doc string.
1180
1181 2013-11-08 Tom Tromey <tromey@redhat.com>
1182
1183 * configure: Rebuild.
1184 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1185
1186 2013-11-08 Tom Tromey <tromey@redhat.com>
1187
1188 * configure, config.in: Rebuild.
1189 * configure.ac: Remove unused configury.
1190
1191 2013-11-08 Tom Tromey <tromey@redhat.com>
1192
1193 * m32c-tdep.c: Use gdb_string.h.
1194
1195 2013-11-08 Tom Tromey <tromey@redhat.com>
1196
1197 * configure, config.in: Rebuild.
1198 * configure.ac: Remove all link.h-related checks.
1199
1200 2013-11-08 Tom Tromey <tromey@redhat.com>
1201
1202 * acinclude.m4: Include common.m4.
1203 * common/common.m4: New file.
1204 * configure, config.in: Rebuild.
1205 * configure.ac: Use GDB_AC_COMMON.
1206
1207 2013-11-08 Doug Evans <dje@google.com>
1208
1209 * NEWS: Mention that "set debug symtab-create" now accepts a
1210 verbosity level.
1211 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1212 to set the symtab's primary flag.
1213 * jit.c (finalize_symtab): Ditto.
1214 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1215 * symfile.c (allocate_symtab): Only print debugging messages for
1216 symtab_create_debug levels 2 and higher.
1217 * symtab.c (symtab_create_debug): Change type to unsigned int.
1218 (set_symtab_primary): New function.
1219 (_initialize_symtab): Change "set debug symtab-create" to a
1220 zuinteger option.
1221 * symtab.h (set_symtab_primary): Declare.
1222 (symtab_create_debug): Update decl.
1223
1224 2013-11-08 Tom Tromey <tromey@redhat.com>
1225
1226 * aix-thread.c (aix_thread_detach): Update.
1227 * corelow.c (core_detach): Update.
1228 * darwin-nat.c (darwin_detach): Update.
1229 * dec-thread.c (dec_thread_detach): Update.
1230 * gnu-nat.c (gnu_detach): Update.
1231 * go32-nat.c (go32_detach): Update.
1232 * inf-ptrace.c (inf_ptrace_detach): Update.
1233 * inf-ttrace.c (inf_ttrace_detach): Update.
1234 * linux-fork.c (linux_fork_detach): Update.
1235 * linux-fork.h (linux_fork_detach): Update.
1236 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1237 local for const-correctness.
1238 * linux-thread-db.c (thread_db_detach): Update.
1239 * monitor.c (monitor_detach): Update.
1240 * nto-procfs.c (procfs_detach): Update.
1241 * procfs.c (procfs_detach): Update.
1242 * record.c (record_detach): Update.
1243 * record.h (record_detach): Update.
1244 * remote-m32r-sdi.c (m32r_detach): Update.
1245 * remote-mips.c (mips_detach): Update.
1246 * remote-sim.c (gdbsim_detach): Update.
1247 * remote.c (remote_detach_1, remote_detach)
1248 (extended_remote_detach): Update.
1249 * sol-thread.c (sol_thread_detach): Update.
1250 * target.c (target_detach): Make "args" const.
1251 (init_dummy_target): Update.
1252 * target.h (struct target_ops) <to_detach>: Make argument const.
1253 (target_detach): Likewise.
1254 * windows-nat.c (windows_detach): Update.
1255
1256 2013-11-07 Doug Evans <dje@google.com>
1257
1258 PR 11786
1259 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1260 and align fields for PT_GNU_RELRO segments.
1261
1262 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1263
1264 PR python/15747
1265 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1266
1267 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1268
1269 * NEWS: Document Python temporary breakpoint support.
1270 * python/py-breakpoint.c (bppy_get_temporary): New function.
1271 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1272 to temporary if True.
1273
1274 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1275
1276 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1277 removed to allow analyzing unconditional branch instructions
1278 with PC-relative offsets of zero.
1279
1280 2013-11-07 Yao Qi <yao@codesourcery.com>
1281
1282 * mi/mi-cmd-var.c: Include "language.h".
1283 (mi_cmd_var_info_expression): Get language name from
1284 language_defn.
1285 * varobj.c (varobj_language_string): Remove.
1286 (variable_language): Remove declaration.
1287 (languages): Remove.
1288 (varobj_get_language): Change the type of return value.
1289 (variable_language): Remove.
1290 * varobj.h (enum varobj_languages): Remove.
1291 (varobj_language_string): Remove declaration.
1292 (varobj_get_language): Update declaration.
1293
1294 2013-11-07 Yao Qi <yao@codesourcery.com>
1295
1296 * language.h (struct language_defn) <la_natural_name>: New
1297 field.
1298 * ada-lang.c (ada_language_defn): Initialize field
1299 'la_natural_name'.
1300 * c-lang.c (c_language_defn): Likewise.
1301 (cplus_language_defn, asm_language_defn): Likewise.
1302 * d-lang.c (d_language_defn): Likewise.
1303 * f-lang.c (f_language_defn): Likewise.
1304 * go-lang.c (go_language_defn): Likewise.
1305 * jv-lang.c (java_language_defn): Likewise.
1306 * language.c (unknown_language_defn ): Likewise.
1307 (auto_language_defn): Likewise.
1308 * m2-lang.c (m2_language_defn): Likewise.
1309 * objc-lang.c (objc_language_defn): Likewise.
1310 * opencl-lang.c (opencl_language_defn): Likewise.
1311 * p-lang.c (pascal_language_defn): Likewise.
1312
1313 2013-11-07 Yao Qi <yao@codesourcery.com>
1314
1315 * language.c (language_str): Return const char *.
1316 (add_language): Add const to 'language_names'
1317 * language.h (struct language_defn) <la_name>: Add const.
1318 (language_str: Update declaration.
1319
1320 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1321
1322 * s390-linux-nat.c (s390_read_description): Consider the TE field
1323 in the HWCAP for determining 'have_regset_tdb'.
1324
1325 2013-11-06 Will Newton <will.newton@linaro.org>
1326
1327 PR gdb/12866
1328 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1329 values. (read_partial_die): Likewise.
1330
1331 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1332
1333 PR cli/16122
1334 * top.c (command_line_input): Unify interactivity tests to use
1335 input_from_terminal_p.
1336 * event-top.c (command_line_handler): Likewise.
1337
1338 2013-11-06 Yao Qi <yao@codesourcery.com>
1339
1340 * Makefile.in (check-perf): New target.
1341
1342 2013-11-05 Will Newton <will.newton@linaro.org>
1343
1344 PR gdb/7670
1345 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1346 (arm_print_float_info): Likewise.
1347
1348 2013-11-04 Anton Blanchard <anton@samba.org>
1349
1350 * target.c (memory_xfer_partial): Cap write to 4KB.
1351
1352 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1353
1354 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1355 probe scan even when the arch provides no get_longjmp_target.
1356
1357 2013-10-31 Pedro Alves <palves@redhat.com>
1358
1359 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1360 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1361 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1362 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1363 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1364 <bpstat handling>: If the bpstat chain wants the signal to be
1365 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1366 GDB_SIGNAL_TRAP.
1367
1368 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1369
1370 * breakpoint.c (update_watchpoint): Update error message and add
1371 an additional error message.
1372
1373 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1374
1375 * s390-tdep.h: Rename to...
1376 * s390-linux-tdep.h: ...here.
1377 * s390-tdep.c: Rename to...
1378 * s390-linux-tdep.c: ...here. Adjust #include.
1379 * s390-nat.c: Rename to...
1380 * s390-linux-nat.c: ...here. Adjust #include.
1381 * config/s390/s390.mh: Rename to...
1382 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1383 s390-linux-nat.o.
1384 * configure.host: Reflect host rename "s390" -> "linux".
1385 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1386 * Makefile.in (ALL_TARGET_OBS): Likewise.
1387 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1388 s390-linux-tdep.h.
1389 (ALLDEPFILES): Reflect rename of .c files.
1390
1391 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392
1393 * s390-nat.c: Whitespace cleanup.
1394 * s390-tdep.c: Likewise.
1395 * s390-tdep.h: Remove empty line at end of file.
1396
1397 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1398
1399 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1400 siginfo_size.
1401
1402 2013-10-29 Tom Tromey <tromey@redhat.com>
1403
1404 * utils.c (reg): Move undefinition...
1405 * gdb_curses.h: ... here. Update comment to mention AIX.
1406
1407 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1408
1409 * exec.h (add_target_sections_of_objfile): New declaration.
1410 * exec.c (add_target_sections_of_objfile): New function.
1411 * symfile.c (add_symbol_file_command): Update current target sections.
1412 (remove_symbol_file_command): New command.
1413 (symfile_free_objfile): New function.
1414 (_initialize_symfile): Register observer for free_objfile events.
1415 * NEWS: Add description of the remove-symbol-file command.
1416 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1417 * objfiles.c (free_objfile): Notify free_objfile.
1418 (is_addr_in_objfile): New function.
1419 * objfiles.h (is_addr_in_objfile): New declaration.
1420 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1421 events instead of solib_unloaded events.
1422 (_initialize_printcmd): Register observer for free_objfile instead
1423 of solib_unloaded notifications.
1424 * solib.c (remove_user_added_objfile): New function.
1425 (_initialize_symfile): Add remove-symbol-file.
1426
1427 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1428
1429 * infcmd.c (default_print_one_register_info): Use val_print to
1430 print all values even optimized out or unavailable ones. Don't
1431 try to print a raw form of optimized out or unavailable values.
1432
1433 2013-10-29 Yao Qi <yao@codesourcery.com>
1434
1435 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1436 parameter 'arg' instead of from program_space_data.
1437 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1438 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1439 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1440 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1441 * inflow.c (inflow_inferior_data_cleanup): Get data from
1442 parameter 'arg' instead of inferior_data.
1443 * registry.h: Add comments.
1444
1445 2013-10-28 Pedro Alves <palves@redhat.com>
1446
1447 * breakpoint.c (watchpoints_triggered)
1448 <!target_stopped_data_address>: Hardcode return 1.
1449
1450 2013-10-28 Pedro Alves <palves@redhat.com>
1451
1452 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1453 level and reindent.
1454
1455 2013-10-28 Pedro Alves <palves@redhat.com>
1456
1457 * infrun.c (process_event_stop_test): New function, factored out
1458 from handle_inferior_event.
1459 (handle_inferior_event): 'process_event_stop_test' is now a
1460 function instead of a goto label -- adjust.
1461
1462 2013-10-28 Pedro Alves <palves@redhat.com>
1463
1464 * infrun.c (handle_inferior_event): Move process_event_stop_test
1465 goto label to the else branch of the ecs->random_signal check,
1466 along with FRAME and GDBARCH re-fetching.
1467
1468 2013-10-28 Pedro Alves <palves@redhat.com>
1469
1470 * infrun.c (switch_back_to_stepped_thread): New function, factored
1471 out from handle_inferior_event.
1472 (handle_inferior_event): Adjust to call
1473 switch_back_to_stepped_thread. Call it also at the tail of the
1474 random signal handling, and return, instead of also handling
1475 random signals just before the stepping tests.
1476
1477 2013-10-28 Pedro Alves <palves@redhat.com>
1478
1479 * infrun.c (clear_stop_func): Delete.
1480 (handle_inferior_event): Don't call clear_stop_func and don't
1481 clear 'ecs->random_signal'.
1482
1483 2013-10-27 Yao Qi <yao@codesourcery.com>
1484
1485 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1486 (varobj_create, varobj_get_path_expr): Update.
1487 (varobj_value_has_mutated, varobj_update): Likewise.
1488 (create_child_with_value, new_root_variable): Likewise.
1489 (number_of_children, name_of_variable): Likewise.
1490 (value_of_child, my_value_of_variable): Likewise.
1491 (varobj_value_is_changeable_p): Likewise.
1492
1493 2013-10-25 Yao Qi <yao@codesourcery.com>
1494
1495 * language.h (struct lang_varobj_ops): Declare.
1496 (struct language_defn) <la_varobj_ops>: New field.
1497 * ada-lang.c: Include "varobj.h"
1498 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1499 ada_varobj_ops.
1500 * c-lang.c: Include "varobj.h"
1501 (c_language_defn): Initialize field 'la_varobj_ops' with
1502 c_varobj_ops.
1503 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1504 cplus_varobj_ops.
1505 (asm_language_defn): Initialize field 'la_varobj_ops' with
1506 default_varobj_ops.
1507 (minimal_language_defn): Likewise.
1508 * d-lang.c (d_language_defn): Likewise.
1509 * f-lang.c (f_language_defn): Likewise.
1510 * go-lang.c (go_language_defn): Likewise.
1511 * m2-lang.c (m2_language_defn): Likewise.
1512 * objc-lang.c (objc_language_defn): Likewise.
1513 * opencl-lang.c (opencl_language_defn): Likewise.
1514 * p-lang.c (pascal_language_defn): Likewise.
1515 * language.c (unknown_language_defn): Likewise.
1516 (auto_language_defn): Likewise.
1517 (local_language_defn): Likewise.
1518 * jv-lang.c (java_language_defn): Initialize field
1519 'la_varobj_ops' with java_varobj_ops.
1520 * varobj.c (varobj_create): Update.
1521 * varobj.h (default_varobj_ops): Define macro.
1522
1523 2013-10-25 Pedro Alves <palves@redhat.com>
1524
1525 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1526 static field value.
1527 (cp_print_static_field): If the value is entirely optimized out,
1528 print <optimized out> here.
1529 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1530 static field value.
1531 * p-valprint.c (pascal_object_print_static_field): If the value is
1532 entirely optimized out, print <optimized out> here.
1533 * valops.c (do_search_struct_field)
1534 (value_struct_elt_for_reference): No longer handle a NULL static
1535 field value.
1536 * value.c (value_static_field): Return an optimized out value
1537 instead of NULL.
1538
1539 2013-10-25 Yao Qi <yao@codesourcery.com>
1540
1541 * remote.c (remote_traceframe_info): Return early if
1542 traceframe is not selected.
1543
1544 2013-10-25 Yao Qi <yao@codesourcery.com>
1545
1546 * tracepoint.c (traceframe_fun): Remove.
1547 (traceframe_sal): Remove.
1548 (set_traceframe_context): Add local variables.
1549
1550 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1551
1552 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1553 and parameter name.
1554
1555 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1556
1557 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1558 failure from register information collection.
1559
1560 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1561
1562 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1563 member.
1564 (linux_corefile_thread_callback): Update accordingly.
1565 (linux_make_corefile_notes): Likewise.
1566
1567 2013-10-24 Pedro Alves <palves@redhat.com>
1568
1569 * NEWS (New options): Mention set/show startup-with-shell.
1570 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1571 instead of 3.
1572 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1573 startup-with-shell'.
1574 (show_startup_with_shell): New function.
1575 (_initialize_fork_child): Register the set/show startup-with-shell
1576 commands.
1577 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1578 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1579 * procfs.c (procfs_init_inferior): Remove comment.
1580 * infcmd.c (startup_with_shell): New global.
1581 * inferior.h (startup_with_shell): Declare global.
1582 (STARTUP_WITH_SHELL): Delete.
1583 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1584
1585 2013-10-23 Pedro Alves <palves@redhat.com>
1586
1587 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1588 * common/signals.c: Include "gdb_assert.h".
1589 (signals): New field 'symbol'.
1590 (SET): Use the 'symbol' parameter.
1591 (gdb_signal_to_symbol_string): New function.
1592 * infrun.c (handle_inferior_event) <random signal>: In debug
1593 output, print the random signal enum as string in addition to its
1594 number.
1595 * target/waitstatus.c (target_waitstatus_to_string): Print the
1596 signal's enum value as string instead of the (POSIX) signal name.
1597
1598 2013-10-23 Gary Benson <gbenson@redhat.com>
1599
1600 PR 16013
1601 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1602 from 32 to 18. Adjusted fscanf format string accordingly.
1603 (Avoids leaving cmd unterminated.)
1604 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1605 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1606 that local_address and remote_address will not overflow.
1607 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1608 leaving dependencies unterminated. Parse size as "%u" to match
1609 definition.
1610
1611 2013-10-22 Pedro Alves <palves@redhat.com>
1612
1613 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1614 set ecs->random signal.
1615
1616 2013-10-22 Pedro Alves <palves@redhat.com>
1617
1618 * infrun.c (keep_going): Update comments.
1619
1620 2013-10-22 Pedro Alves <palves@redhat.com>
1621
1622 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1623 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1624
1625 2013-10-22 Pedro Alves <palves@redhat.com>
1626
1627 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1628 GDB_EXC_BAD_ACCESS.
1629 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1630 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1631 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1632 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1633 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1634 (GDB_SIGNAL_LAST): Change description string.
1635 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1636 Adjust to signal renaming.
1637 * darwin-nat.c (darwin_decode_message): Likewise.
1638
1639 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1640
1641 * MAINTAINERS (Write After Approval): Add myself to the list.
1642
1643 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1644
1645 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1646 forced off, downgrade them to software watchpoints if possible,
1647 and error out if not possible.
1648 (watch_command_1): Move watchpoint type selection closer to
1649 watchpoint creation, and extend the comments.
1650
1651 2013-10-18 Pedro Alves <palves@redhat.com>
1652
1653 PR gdb/16062
1654 * infrun.c (handle_inferior_event): Keep going if we got a random
1655 signal we should not stop for, instead of falling through to the
1656 step tests.
1657
1658 2013-10-18 Yao Qi <yao@codesourcery.com>
1659
1660 * c-varobj.c (cplus_number_of_children): Fix indentation.
1661
1662 2013-10-17 Tom Tromey <tromey@redhat.com>
1663
1664 PR gdb/15995:
1665 * printcmd.c (printcmd): Call gdb_flush.
1666
1667 2013-10-17 Tom Tromey <tromey@redhat.com>
1668
1669 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1670 (elf_locate_sections): Update.
1671
1672 2013-10-17 Yao Qi <yao@codesourcery.com>
1673
1674 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1675 * ada-varobj.c: Remove the include of ada-varobj.h.
1676 (ada_varobj_get_number_of_children): Declare.
1677 (ada_varobj_get_name_of_child): Make it static.
1678 (ada_varobj_get_path_expr_of_child): Likewise.
1679 (ada_varobj_get_value_of_child): Likewise.
1680 (ada_varobj_get_type_of_child): Likewise.
1681 (ada_varobj_get_value_of_array_variable): Likewise.
1682 * ada-varobj.h: Remove.
1683
1684 2013-10-17 Yao Qi <yao@codesourcery.com>
1685
1686 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1687 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1688 * ada-varobj.c: Include "varobj.h".
1689 (ada_number_of_children): New. Moved from varobj.c.
1690 (ada_name_of_variable, ada_name_of_child): Likewise.
1691 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1692 (ada_type_of_child, ada_value_of_variable): Likewise.
1693 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1694 (ada_varobj_ops): New.
1695 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1696 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1697 * gdbtypes.h (get_target_type): Declare.
1698 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1699 "ada-lang.h".
1700 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1701 (ANONYMOUS_UNION_NAME): Likewise.
1702 (get_type, get_value_type, get_target_type): Remove declarations.
1703 (value_get_print_value, varobj_value_get_print_value): Likewise.
1704 (c_number_of_children, c_name_of_variable): Likewise.
1705 (c_name_of_child, c_path_expr_of_child): Likewise.
1706 (c_value_of_child, c_type_of_child): Likewise.
1707 (c_value_of_variable, cplus_number_of_children): Likewise.
1708 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1709 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1710 (cplus_value_of_child, cplus_type_of_child): Likewise.
1711 (cplus_value_of_variable, java_number_of_children): Likewise.
1712 (java_name_of_variable, java_name_of_child): Likewise.
1713 (java_path_expr_of_child, java_value_of_child): Likewise.
1714 (java_type_of_child, java_value_of_variable): Likewise.
1715 (ada_number_of_children, ada_name_of_variable): Likewise.
1716 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1717 (ada_value_of_child, ada_type_of_child): Likewise.
1718 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1719 (ada_value_has_mutated): Likewise.
1720 (struct language_specific): Move it to varobj.h.
1721 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1722 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1723 Callers update.
1724 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1725 Make it extern.
1726 (is_anonymous_child): Move it to c-varobj.c and rename to
1727 varobj_is_anonymous_child. Caller update.
1728 (get_type): Move it to c-varobj.c.
1729 (get_value_type): Rename it varobj_get_value_type. Make it
1730 extern.
1731 (get_target_type): Move it gdbtypes.c.
1732 (varobj_formatted_print_options): New function.
1733 (value_get_print_value): Rename it to
1734 varobj_value_get_print_value and make it extern.
1735 (varobj_value_is_changeable_p): Make it extern.
1736 (adjust_value_for_child_access): Move it to c-varobj.c.
1737 (default_value_is_changeable_p): Rename it to
1738 varobj_default_value_is_changeable_p. Make it extern.
1739 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1740 (c_name_of_child, c_path_expr_of_child): Likewise.
1741 (c_value_of_child, c_type_of_child): Likewise.
1742 (c_value_of_variable, cplus_number_of_children): Likewise.
1743 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1744 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1745 (cplus_value_of_child, cplus_type_of_child): Likewise.
1746 (cplus_value_of_variable): Likewise.
1747 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1748 (java_name_of_child, java_path_expr_of_child): Likewise.
1749 (java_value_of_child, java_type_of_child): Likewise.
1750 (java_value_of_variable): Likewise.
1751 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1752 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1753 (ada_value_of_child, ada_type_of_child): Likewise.
1754 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1755 (ada_value_has_mutated): Likewise.
1756 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1757 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1758 (c_varobj_ops, cplus_varobj_ops): Declare.
1759 (java_varobj_ops, ada_varobj_ops): Declare.
1760 (varobj_default_value_is_changeable_p): Declare.
1761 (varobj_value_is_changeable_p): Declare.
1762 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1763 (varobj_get_path_expr_parent): Declare.
1764 (varobj_value_get_print_value): Declare.
1765 (varobj_formatted_print_options): Declare.
1766 (varobj_restrict_range): Declare.
1767
1768 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1769
1770 * target/waitstatus.h (target_waitkind): Remove spurious
1771 character from the comments.
1772
1773 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1774
1775 * gdbarch.sh (get_longjmp_target): Add method documentation.
1776 * gdbarch.h: Regenerate.
1777
1778 2013-10-16 Tom Tromey <tromey@redhat.com>
1779
1780 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1781 label.
1782
1783 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1784
1785 * gcore.in: Call GDB using the full path to the gcore script.
1786 Error out if the GDB binary is not found.
1787
1788 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1789
1790 PR gdb/16014
1791 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1792 sizeof.
1793
1794 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1795
1796 PR gdb/16042
1797 * target.c (target_disable_btrace): Fix invalid return value for
1798 void function.
1799 (target_teardown_btrace): Likewise.
1800
1801 2013-10-14 Yao Qi <yao@codesourcery.com>
1802
1803 * varobj.c (struct varobj): Move most of the fields to
1804 varobj.h.
1805 (struct varobj_dynamic): New struct.
1806 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1807 (varobj_has_more): Likewise.
1808 (dynamic_varobj_has_child_method): Likewise.
1809 (update_dynamic_varobj_children): Likewise.
1810 (varobj_get_num_children): Likewise.
1811 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1812 (install_new_value_visualizer): Likewise.
1813 (install_new_value_visualizer, install_new_value): Likewise.
1814 (varobj_update, new_variable, free_variable): Likewise.
1815 (my_value_of_variable, value_get_print_value): Likewise.
1816 (install_visualizer): Change the type of parameter 'var' to
1817 'struct varobjd_dynamic *'. Callers update.
1818 * varobj.h (struct varobj): Moved from varobj.c.
1819 (struct varobj) <dynamic>: New field.
1820
1821 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1822
1823 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1824 as the preferred name of r30.
1825 * nios2-linux-tdep.c (reg_offsets): Likewise.
1826 * features/nios2-cpu.xml: Likewise.
1827 * features/nios2-linux.c: Regenerated.
1828 * features/nios2.c: Regenerated.
1829 * regformats/nios2-linux.dat: Regenerated.
1830
1831 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 Canonicalize directories for EXEC_FILENAME.
1834 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1835 exec_filename.
1836 * utils.c (gdb_realpath_keepfile): New function.
1837 * utils.h (gdb_realpath_keepfile): New declaration.
1838
1839 2013-10-11 Doug Evans <dje@google.com>
1840
1841 * Makefile.in (GDBFLAGS): New variable.
1842 (run): New rule.
1843
1844 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1845
1846 * NEWS: Add entry documenting the new "-catch-assert" and
1847 "-catch-exception" GDB/MI commands.
1848
1849 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1850
1851 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1852 "enabled".
1853 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1854 "enabled". Set B->ENABLE_STATE accordingly.
1855 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1856 ada-lang.c.
1857 (create_ada_exception_catchpoint): Add declaration.
1858 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1859 (create_ada_exception_catchpoint): Make non-static. Add new
1860 parameter "disabled". Use it in call to
1861 init_ada_exception_breakpoint.
1862 (catch_ada_exception_command): Add parameter "enabled" in call
1863 to create_ada_exception_catchpoint.
1864 (catch_assert_command): Likewise.
1865
1866 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1867 Add declarations.
1868 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1869 "catch-exception" commands.
1870 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1871 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1872
1873 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1874
1875 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1876 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1877 of all its enumerates with "ada_". Update the rest of this
1878 file throughout.
1879
1880 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1881
1882 * ada-lang.c (ada_decode_exception_location): Delete.
1883 (create_ada_exception_catchpoint): Remove arguments "sal",
1884 "addr_string" and "ops". Add argument "ex_kind" instead.
1885 Adjust implementation accordingly, calling ada_exception_sal
1886 to get the entities it no longer gets passed as arguments.
1887 Document the function's arguments.
1888 (catch_ada_exception_command): Use catch_ada_exception_command_split
1889 instead of ada_decode_exception_location, and update call to
1890 create_ada_exception_catchpoint.
1891 (catch_ada_assert_command_split): Renames
1892 ada_decode_assert_location. Remove parameters "addr_string" and
1893 "ops", and now returns void. Adjust implementation accordingly.
1894 Update the function documentation.
1895 (catch_assert_command): Use catch_ada_assert_command_split
1896 instead of ada_decode_assert_location. Update call to
1897 create_ada_exception_catchpoint.
1898
1899 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1900
1901 * utils.h (perror_warning_with_name): Add declaration.
1902 * utils.c (perror_warning_with_name): New function.
1903 * cli/cli-cmds.c (source_script_with_search): Add call to
1904 perror_warning_with_name if from_tty is nul.
1905
1906 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1907
1908 * utils.c (perror_string): New function, extracted out of
1909 throw_perror_with_name.
1910 (throw_perror_with_name): Rework to use perror_string.
1911
1912 2013-10-11 Yao Qi <yao@codesourcery.com>
1913
1914 * remote.c (discard_pending_stop_replies_in_queue): Update
1915 declaration.
1916 (struct stop_reply) <rs>: New field.
1917 (remove_stop_reply_of_remote_state): New function.
1918 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1919 Callers update. Pass remove_stop_reply_of_remote_state to
1920 QUEUE_iterate.
1921 (remote_parse_stop_reply): Initialize field 'rs'.
1922
1923 2013-10-10 Will Newton <will.newton@linaro.org>
1924
1925 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1926 linux_init_abi.
1927
1928 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1929
1930 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1931 serial_baud_show_cmd.
1932 (_initialize_cli_cmds): Delete the code creating the
1933 "set/show remotebaud" commands.
1934 * serial.c (baud_rate): Move here from top.c.
1935 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
1936 (_initialize_serial): Create "set/show serial baud" commands.
1937 Add "set/show remotebaud" command aliases.
1938 * top.c (baud_rate): Moved to serial.c.
1939 * NEWS: Document the new "set/show serial baud" commands,
1940 replacing "set/show remotebaud".
1941
1942 2013-10-09 Pedro Alves <palves@redhat.com>
1943
1944 * breakpoint.c (insert_bp_location): Use memory_error_message to
1945 build the memory error string.
1946 * c-lang.c: Include "gdbcore.h".
1947 (c_get_string): Use memory_error to throw error.
1948 (target_xfer_memory_error): Delete.
1949 (memory_error_message): New, factored out from
1950 target_xfer_memory_error.
1951 (memory_error): Change parameter type to target_xfer_error.
1952 Rewrite.
1953 (read_memory): Use memory_error instead of
1954 target_xfer_memory_error.
1955 * gdbcore.h: Include "target.h".
1956 (memory_error): Change parameter type to target_xfer_error.
1957 (memory_error_message): Declare function.
1958 * target.c (target_read_memory, target_read_stack)
1959 (target_write_memory, target_write_raw_memory): Return
1960 TARGET_XFER_E_IO on error. Adjust comments.
1961 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
1962 instead of EIO.
1963 * target.h (target_read, target_insert_breakpoint)
1964 (target_remove_breakpoint): Adjust comments.
1965 * valprint.c (partial_memory_read): Rename parameter, and adjust
1966 comment.
1967 (val_print_string): Use memory_error_message to build the memory
1968 error string.
1969
1970 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
1973 result variable. Rename variable fopen_e_ever_failed to
1974 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
1975
1976 2013-10-09 Pedro Alves <palves@redhat.com>
1977
1978 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1979 (monitor_write_memory_longlongs, monitor_write_memory_block):
1980 Constify 'myaddr' parameter.
1981 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1982 helper.
1983 (monitor_xfer_partial): New function.
1984 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1985 hook. Install a to_xfer_partial hook.
1986
1987 2013-10-09 Tom Tromey <tromey@redhat.com>
1988
1989 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1990 bfd_get_alt_debug_link_info.
1991
1992 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 New flag OBJF_NOT_FILENAME.
1995 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1996 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1997 allocate_objfile.
1998 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1999 symbol_file_add_from_bfd.
2000 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2001 allocate_objfile.
2002 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2003 NULL.
2004 * objfiles.h (OBJF_NOT_FILENAME): New.
2005
2006 2013-10-08 Tom Tromey <tromey@redhat.com>
2007
2008 * Makefile.in (SFILES): Add build-id.c.
2009 (HFILES_NO_SRCDIR): Add build-id.h.
2010 * build-id.c: New file, largely from elfread.c. Modified
2011 most functions.
2012 * build-id.h: New file.
2013 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2014 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2015 Search for dwz file using build-id.
2016 * elfread.c (build_id_bfd_get, build_id_verify)
2017 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2018
2019 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2020
2021 * ada-lang.c (compare_names_with_case): Renamed from
2022 compare_names, adding a new parameter "casing" and its handling.
2023 New function documentation.
2024 (compare_names): New function, implemented using
2025 compare_names_with_case.
2026
2027 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2028
2029 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2030
2031 2013-10-07 Tom Tromey <tromey@redhat.com>
2032
2033 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2034 demangled_names_hash.
2035 (free_objfile): Don't delete the demangled_names_hash.
2036 * objfiles.h (struct objfile_per_bfd_storage)
2037 <demangled_names_hash>: New field.
2038 (struct objfile) <demangled_names_hash>: Move to
2039 objfile_per_bfd_storage.
2040 * symfile.c (reread_symbols): Don't delete the
2041 demangled_names_hash.
2042 * symtab.c (create_demangled_names_hash): Update.
2043 (symbol_set_names): Update.
2044
2045 2013-10-07 Tom Tromey <tromey@redhat.com>
2046
2047 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2048 needs_relocations>: New fields.
2049 (gdb_bfd_requires_relocations): New function.
2050 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2051 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2052 the BFD needs relocations applied.
2053
2054 2013-10-07 Pedro Alves <palves@redhat.com>
2055
2056 PR breakpoints/11568
2057 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2058 the thread list" instead of "gone".
2059
2060 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2061
2062 * NEWS: Mention new convenience variable $_exitsignal.
2063 * corelow.c (core_open): Reset exit convenience variables. Set
2064 $_exitsignal to the uncaught signal which generated the corefile.
2065 * infrun.c (handle_inferior_event): Reset exit convenience
2066 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2067 (clear_exit_convenience_vars): New function.
2068 * inferior.h (clear_exit_convenience_vars): New prototype.
2069
2070 2013-10-06 Yao Qi <yao@codesourcery.com>
2071
2072 * varobj.h: Add comments to enum varobj_languages.
2073
2074 2013-10-04 Doug Evans <dje@google.com>
2075
2076 Add support for DWP file format version 2.
2077 * NEWS: Mention support for DWP file format version 2.
2078 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2079 union of asection, containing_section. New fields virtual_offset
2080 and is_virtual. Change type of readin filed from int to char.
2081 (dwo_sections, dwo_file): Tweak comments.
2082 (dwp_v2_section_ids): New enum.
2083 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2084 str_offsets, types.
2085 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2086 All uses updated.
2087 (virtual_v2_dwo_sections): New struct.
2088 (dwp_hash_table): New fields version, nr_columns. Change type of
2089 section_pool field to a union.
2090 (dwp_file): New field version.
2091 (dwarf2_has_info): Check for virtual sections.
2092 (get_containing_section): New function.
2093 (get_section_bfd_owner, get_section_bfd_section): Call it.
2094 (dwarf2_locate_sections): Update.
2095 (dwarf2_section_empty_p): Update.
2096 (dwarf2_read_section): Handle virtual sections.
2097 (locate_dwz_sections): Update.
2098 (create_dwp_hash_table): Document and handle V2 format.
2099 (locate_v1_virtual_dwo_sections): Renamed from
2100 locate_virtual_dwo_sections and update. All callers updated.
2101 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2102 Delete arg htab. Rename arg section_index to unit_index.
2103 All callers updated.
2104 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2105 All uses updated.
2106 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2107 (lookup_dwo_unit_in_dwp): Add V2 support.
2108 (dwarf2_locate_dwo_sections): Update.
2109 (dwarf2_locate_common_dwp_sections): Renamed from
2110 dwarf2_locate_dwp_sections and update. All callers updated.
2111 (dwarf2_locate_v2_dwp_sections): New function.
2112 (open_and_init_dwp_file): Add V2 support.
2113 (read_str_index): New locals str_section, str_offsets_section.
2114
2115 2013-10-04 Pedro Alves <palves@redhat.com>
2116
2117 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2118 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2119 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2120 describing comments with references to ptid.h.
2121 * common/ptid.h: Remove intro description of constructors,
2122 accessors and predicates.
2123 (struct ptid): Reformat.
2124 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2125 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2126 describing comments.
2127
2128 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2129
2130 * aix-thread.c (sync_threadlists): Add missing ')' in call
2131 to ptid_build.
2132
2133 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2134
2135 * procfs.c (procfs_init_inferior): Fix typo causing the build
2136 to fail.
2137
2138 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2139
2140 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2141
2142 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2143
2144 * mi/mi-main.c (run_one_inferior): Add function description.
2145 Make ARG a pointer to an integer whose value determines whether
2146 we should "run" or "start" the program.
2147 (mi_cmd_exec_run): Add handling of the "--start" option.
2148 Reject all other command-line options.
2149 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2150
2151 2013-10-04 Yao Qi <yao@codesourcery.com>
2152
2153 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2154 (struct notif_client) <pending_event>: Moved
2155 to struct remote_notif_state.
2156 <id>: New field.
2157 (struct remote_notif_state) <pending_event>: New field.
2158 (notif_event_xfree): Declare.
2159 * remote-notif.c (handle_notification): Adjust.
2160 (notif_event_xfree): New function.
2161 (do_notif_event_xfree): Call notif_event_xfree.
2162 (remote_notif_state_xfree): Call notif_event_xfree to free
2163 each element in field pending_event.
2164 * remote.c (discard_pending_stop_replies): Remove declaration.
2165 (discard_pending_stop_replies_in_queue): Declare.
2166 (remote_close): Call discard_pending_stop_replies_in_queue
2167 instead of discard_pending_stop_replies.
2168 (remote_start_remote): Adjust.
2169 (stop_reply_xfree): Call notif_event_xfree.
2170 (notif_client_stop): Adjust initialization.
2171 (remote_notif_remove_all): Rename it to ...
2172 (remove_stop_reply_for_inferior): ... this. Update comments.
2173 Don't check INF is NULL.
2174 (discard_pending_stop_replies): Return early if notif_state is
2175 NULL. Adjust. Don't check INF is NULL.
2176 (remote_notif_get_pending_events): Adjust.
2177 (discard_pending_stop_replies_in_queue): New function.
2178 (remote_wait_ns): Likewise.
2179
2180 2013-10-04 Yao Qi <yao@codesourcery.com>
2181
2182 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2183 (notif_queue): Remove.
2184 (remote_notif_process): Add one parameter 'notif_queue'.
2185 Update comments. Callers update.
2186 (remote_async_get_pending_events_token): Remove.
2187 (remote_notif_register_async_event_handler): Remove.
2188 (remote_notif_unregister_async_event_handler): Remove.
2189 (handle_notification): Add parameter 'notif_queue'. Update
2190 comments. Callers update.
2191 (notif_xfree): Remove.
2192 (remote_notif_state_allocate): New function.
2193 (remote_notif_state_xfree): New function.
2194 (_initialize_notif): Remove code to allocate queue.
2195 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2196 (struct remote_notif_state): New.
2197 (handle_notification): Update declaration.
2198 (remote_notif_process): Likewise.
2199 (remote_notif_register_async_event_handler): Remove.
2200 (remote_notif_unregister_async_event_handler): Remove.
2201 (remote_notif_state_allocate): Declare.
2202 (remote_notif_state_xfree): Declare.
2203 * remote.c (struct remote_state) <notif_state>: New field.
2204 (remote_close): Don't call
2205 remote_notif_unregister_async_event_handler. Call
2206 remote_notif_state_xfree.
2207 (remote_open_1): Don't call
2208 remote_notif_register_async_event_handler. Call
2209 remote_notif_state_allocate.
2210
2211 2013-10-04 Yao Qi <yao@codesourcery.com>
2212
2213 * varobj.c (create_child_with_value): Remove 'const' from the
2214 type of parameter 'name'.
2215 (varobj_add_child): Likewise.
2216 (install_dynamic_child): Remove 'const' from the type of
2217 parameter 'name'.
2218 (varobj_add_child): Likewise.
2219 (create_child_with_value): Likewise. Update comments. Don't
2220 duplicate 'name'.
2221 (update_dynamic_varobj_children): Duplicate 'name'
2222 and pass it to install_dynamic_child.
2223
2224 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2225
2226 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2227 conversion logic to occur after PyLong_Check. Comment on order
2228 change significance.
2229 * python/py-arch.c (archpy_disassemble): Comment on order of
2230 conversion for integers and longs.
2231
2232 2013-10-03 Pedro Alves <palves@redhat.com>
2233
2234 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2235 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2236 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2237 PTRACE_O_TRACEFORK is not supported.
2238 (linux_test_for_tracesysgood): New function.
2239 (linux_test_for_tracefork): New function, factored out from
2240 linux_check_ptrace_features, and also don't kill child_pid here.
2241
2242 2013-10-03 Tristan Gingold <gingold@adacore.com>
2243
2244 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2245 Remove verbose error reporting. Use detected state to
2246 thread_set_state call.
2247 (i386_darwin_dr_get): Fix return type. Remove verbose error
2248 report.
2249 Remove trailing spaces.
2250
2251 2013-10-02 Pedro Alves <palves@redhat.com>
2252
2253 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2254 val_print_optimized_out.
2255 * jv-valprint.c (java_print_value_fields): Likewise.
2256 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2257 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2258 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2259 new optimized out value.
2260 * findvar.c (address_from_register): Likewise.
2261 * frame.c (put_frame_register): Tweak error string to say the
2262 register was not saved, rather than optimized out.
2263 * infcmd.c (default_print_one_register_info): Adjust call to
2264 val_print_optimized_out. Use value_of_register instead of
2265 get_frame_register_value.
2266 * mi/mi-main.c (output_register): Use value_of_register instead of
2267 get_frame_register_value.
2268 * valprint.c (valprint_check_validity): Likewise.
2269 (val_print_optimized_out): New value parameter. If the value is
2270 lval_register, print <not saved> instead.
2271 (value_check_printable, val_print_scalar_formatted): Adjust calls
2272 to val_print_optimized_out.
2273 * valprint.h (val_print_optimized_out): New value parameter.
2274 * value.c (struct value) <optimized_out>: Extend comment.
2275 (error_value_optimized_out): New function.
2276 (require_not_optimized_out): Use it. Use a different string for
2277 lval_register values.
2278 * value.h (error_value_optimized_out): New declaration.
2279 * NEWS: Mention <not saved>.
2280
2281 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2282
2283 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2284 strcmp to compare two symtab filenames.
2285
2286 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2287
2288 * symtab.c (search_symbols_equal): Delete.
2289 (sort_search_symbols_remove_dups): Replace call to
2290 search_symbols_equal by call to compare_search_syms,
2291 adjusting as necessary.
2292
2293 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2294
2295 PR python/15579
2296 * python/python.c: Document gdb.execute command in Python help.
2297
2298 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2299
2300 * python/py-frame.c (frame_info_to_frame_object): Use
2301 gdbpy_convert_exception. Clean up Python object on failure.
2302
2303 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2304
2305 * python/lib/gdb/command/frame_filters.py
2306 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2307 (ShowFrameFilterPriority.invoke): Ditto.
2308
2309 2013-10-01 Keith Seitz <keiths@redhat.com>
2310
2311 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2312 (parse_linespec): Make 'argptr' const.
2313 Remove temporary cast of 'argptr' to const char **.
2314 (decode_line_full): Pass const pointer to parse_linespec.
2315 (decode_line_1): Likewise.
2316 (decode_objc): Make local variable 'new_argptr' const.
2317 (find_function_symbols): Remove temporary cast to char *
2318 to find_imps.
2319 * objc-lang.c (find_imps): Make argument 'method' const.
2320 Return const.
2321 * objc-lang.h (find_imps): Likewise.
2322
2323 2013-10-01 Keith Seitz <keiths@redhat.com>
2324
2325 * completer.c (skip_quoted_chars): Make all arguments const.
2326 Return const.
2327 (skip_quoted): Likewise.
2328 * completer.h (skip_quoted_chars): Likewise.
2329 (skip_quoted): Likewise.
2330 * defs.h (skip_quoted): Remove duplicate declaration.
2331 * jv-exp.y: Include completer.h.
2332 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2333 * p-exp.y: Include completer.h.
2334
2335 2013-10-01 Keith Seitz <keiths@redhat.com>
2336
2337 * c-exp.y (parse_number): Make first argument const.
2338 Make a copy of the input to manipulate.
2339 (c_parse_escape): Make first argument const.
2340 Make local variable 'tokptr' const.
2341 (parse_string_or_char): Make first two arguments const.
2342 (macro_original_text): Make const.
2343 (lex_one_token): Make local variable 'tokstart' const.
2344 Likewise for local variables named 'p'.
2345 Cast away const for struct stoken (temporary).
2346 * c-lang.h (c_parse_escpae): Make first argument const.
2347 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2348 const.
2349 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2350 var_string case.
2351 * f-exp.y (parse_number): Make first argument const.
2352 (match_string_literal): Make local variable 'tokstart'
2353 const.
2354 (yylex): Make local variable 'p' const.
2355 Cast away const for struct stoken (temporary).
2356 * go-exp.y (parse_number): Make first argument const.
2357 (parse_string_or_char): Likewise.
2358 Make local variable 'tokstart' const.
2359 (lex_one_token): Likewise for numerous locals called 'p'.
2360 Cast away const for struct stoken (temporary).
2361 * jv-exp.y (parse_number): Make first argument const.
2362 Make local variables 'tokstart' and 'tokptr' const.
2363 Cast away const for call to skip_quoted (temporary).
2364 (yylex): Make local variable 'p' const.
2365 Cast away const for struct stoken (temporary).
2366 * m2-exp.y (parse_number): Make local variable 'p' const.
2367 (yylex): Likewise for 'tokstart'.
2368 Cast away const for struct stoken (temporary).
2369 Make local variable 'p' const.
2370 * macroexp.c (get_character_constant): Pass a const string
2371 to c_parse_escape.
2372 (get_string_literal): Likewise.
2373 (macro_expand_next): Make first argument const.
2374 Cast away const for init_shared_buffer.
2375 * macroexp.h (macro_expand_next): Make first argument const.
2376 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2377 Pass a const string to c_parse_escape.
2378 Make local variables 'p' and 'namestart' const.
2379 * parse.c (lexptr): Make const.
2380 (prev_lexptr): Likewise.
2381 (find_template_name_end): Return const.
2382 Make argument const, too.
2383 (parse_exp_in_context): Make first argument const.
2384 Remove the entire const_hack.
2385 (parse_exp_in_context_1): Make first argument const.
2386 * parser-defs.h (find_template_name_end): Return const.
2387 Make argument const, too.
2388 (lexptr): Make const.
2389 (prev_lexptr): Likewise.
2390 * utils.c (parse_escape): Make second argument const.
2391 * utils.h (parse_escape): Likewise.
2392
2393 2013-10-01 Keith Seitz <keiths@redhat.com>
2394
2395 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2396 is now const.
2397 (block_lookup): Make 'raw_name' and 'name' const.
2398 * ada-lex.l (processString): Update for struct stoken.ptr.
2399 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2400 (operator_stoken): Likewise.
2401 (lex_one_token): Remove temporary cast to char * for
2402 'yylval.sval.ptr'.
2403 * f-exp.y (yylex): Likewise.
2404 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2405 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2406 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2407 'yylval.sval.ptr'.
2408 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2409 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2410 * linespec.c (struct ls_parser): Make 'stream' const.
2411 (find_parameter_list_end): Make argument 'input' and local
2412 variable 'p' const.
2413 (linespec_lexer_lex_string): Make local variables 'start' and
2414 'p' const.
2415 Use skip_spaces_const instead of skip_spaces.
2416 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2417 const.
2418 (parse_linespec): Temporarily cast 'argptr' to const for
2419 'parser->lexer.stream'.
2420 * m2-exp.y (yylex): Remove temporary cast to char * for
2421 'yylval.sval.ptr'.
2422 * objc-lang.c (add_msglist): Make local variable 'p' const.
2423 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2424 (exp : STRING): Make 'sp' const.
2425 (parse_number): Make argument 'p' const.
2426 * parser-defs.h (struct stoken): Make 'ptr' const.
2427
2428 2013-10-01 Doug Evans <dje@google.com>
2429
2430 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2431
2432 2013-10-01 Yao Qi <yao@codesourcery.com>
2433
2434 * varobj.c (c_value_of_root): Remove declaration.
2435 (cplus_value_of_root, java_value_of_root): Likewise.
2436 (ada_value_of_root): Likewise.
2437 (struct language_specific) <value_of_root>: Remove.
2438 (languages): Update initialization.
2439 (check_scope): Move earlier.
2440 (c_value_of_root): Move earlier and rename to ...
2441 (value_of_root_1): ... this.
2442 (value_of_root): Caller update.
2443 (cplus_value_of_root, java_value_of_root): Remove.
2444 (ada_value_of_root): Remove.
2445
2446 2013-10-01 Yao Qi <yao@codesourcery.com>
2447
2448 * varobj.c (varobj_format_string): Remove "unknown".
2449 (languages): Remove the first element.
2450 * varobj.h (enum varobj_languages): Remove vlang_c.
2451
2452 2013-10-01 Yao Qi <yao@codesourcery.com>
2453
2454 * varobj.c (struct language_specific) <language>: Remove.
2455 (languages): Update the initialization.
2456
2457 2013-10-01 Yao Qi <yao@codesourcery.com>
2458
2459 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2460 "solib-target.h". Include "windows-tdep.h".
2461 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2462 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2463 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2464 windows-tdep.o to gdb_target_obs.
2465
2466 2013-10-01 Yao Qi <yao@codesourcery.com>
2467
2468 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2469 "solib-target.h".
2470 (amd64_windows_init_abi): Don't call set_solib_ops and
2471 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2472 windows_init_abi instead.
2473 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2474 "solib-target.h".
2475 (i386_cygwin_init_abi): Don't call set_solib_ops,
2476 set_gdbarch_has_dos_based_file_system and
2477 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2478 windows_init_abi instead.
2479 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2480 (windows_init_abi): New function.
2481 (windows_iterate_over_objfiles_in_search_order): Make it
2482 static.
2483 * windows-tdep.h (windows_init_abi): Declare.
2484 (windows_iterate_over_objfiles_in_search_order): Remove
2485 declaration.
2486
2487 2013-10-01 Jerome Guitton <guitton@adacore.com>
2488
2489 Checked in by Joel Brobecker <brobecker@adacore.com>
2490 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2491 incomplete dictionnary instead of None in case of missing
2492 environment variables.
2493 (elinos_init): in case of an incomplete environment, best
2494 effort to load system libraries instead of abort.
2495
2496 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2497
2498 * ada-lang.c (ada_has_this_exception_support): Ignore
2499 mst_solib_trampoline minimal symbols.
2500
2501 2013-09-30 Tristan Gingold <gingold@adacore.com>
2502
2503 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2504 hardware watchpoint.
2505 (i386_darwin_dr_set): Support 32 and 64 bit states.
2506 (i386_darwin_dr_get): Likewise.
2507 (i386_darwin_dr_set_control): Make static.
2508 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2509 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2510
2511 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2512
2513 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2514 Replace TIDGET with ptid_get_lwp.
2515 Replace GET_LWP with ptid_get_lwp.
2516 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2517 Replace BUILD_THREAD with ptid_build.
2518 Replace BUILD_LWP with ptid_build.
2519 Replace PIDGET with ptid_get_pid.
2520 Replace TIDGET with ptid_get_lwp.
2521 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2522 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2523 Replace TIDGET with ptid_get_lwp.
2524 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2525 * arm-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 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2529 * auxv.c: Likewise.
2530 * breakpoint.c: Likewise.
2531 * common/ptid.c (ptid_is_pid): Condense check for
2532 null_ptid and minus_one_ptid.
2533 (ptid_lwp_p): New function.
2534 (ptid_tid_p): New function.
2535 * common/ptid.h: Update comments for accessors.
2536 (ptid_lwp_p): New prototype.
2537 (ptid_tid_p): New prototype.
2538 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2539 * gcore.c: Replace PIDGET with ptid_get_pid.
2540 * gdbthread.h: Likewise.
2541 * gnu-nat.c: Likewise.
2542 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2543 Replace TIDGET with ptid_get_lwp.
2544 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2545 * hppanbsd-nat.c: Likewise.
2546 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2547 Replace TIDGET with ptid_get_lwp.
2548 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2549 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2550 * infcmd.c: Likewise.
2551 * inferior.h: Likewise.
2552 * inflow.c: Likewise.
2553 * infrun.c: Likewise.
2554 * linux-fork.c: Likewise.
2555 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2556 Replace GET_PID with ptid_get_pid.
2557 Replace is_lwp with ptid_lwp_p.
2558 Replace GET_LWP with ptid_get_lwp.
2559 Replace BUILD_LWP with ptid_build.
2560
2561 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2562
2563 * common/linux-btrace.c: Move sys/syscall.h out of the
2564 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2565 Also check for SYS_perf_event_open before attempting to buid.
2566
2567 2013-09-27 Doug Evans <dje@google.com>
2568
2569 * dwarf2read.c (dwarf2_section_info): Add comment.
2570 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2571 All uses updated.
2572 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2573 (dwarf2_read_section): Delete unused local "header". Add section
2574 name to error message.
2575 (create_dwo_in_dwp): Tweak comment.
2576 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2577
2578 * dwarf2read.c (die_reader_specs): Tweak comment.
2579 (get_section_bfd_owner, get_section_bfd_section): New functions.
2580 (get_section_name, get_section_file_name): New functions.
2581 (get_section_id, get_section_flags): New functions.
2582 (*): Use new functions to access section fields.
2583
2584 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2585 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2586 arg "htab". All callers updated.
2587 (create_debug_types_hash_table): Remove redundant copy of
2588 abbrev_section.
2589 (create_dwo_in_dwp): Tweak comments.
2590 (read_str_index): Tweak comment. Record dwarf form name in static
2591 local.
2592
2593 2013-09-27 Pedro Alves <palves@redhat.com>
2594
2595 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2596 (remote_filename_p): Add comment.
2597 * remote.c (remote_filename_p): Adjust to use
2598 REMOTE_SYSROOT_PREFIX.
2599 * solib.c (solib_find): When deciding whether we need to add a
2600 directory separator, check whether the sysroot is "remote:"
2601 instead of checking whether the patch has a drive spec. Add
2602 comments.
2603
2604 2013-09-27 Pedro Alves <palves@redhat.com>
2605
2606 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2607 Delete fields.
2608 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2609 directly.
2610
2611 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2612
2613 Fix set debug frame output.
2614 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2615 SENTINEL_FRAME entry lower to match enum frame_type order.
2616
2617 2013-09-26 Pierre Muller <muller@sourceware.org>
2618
2619 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2620 AMD64_R15_REGNUM when a register index is expected.
2621 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2622 Substitute in array.
2623 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2624 (amd64_push_arguments): Substitute in integer_regnum array.
2625
2626 2013-09-25 Doug Evans <dje@google.com>
2627
2628 * objfiles.c (allocate_objfile): Move comment to better place.
2629
2630 New option "set debug symfile on".
2631 * NEWS: Mention "set debug symfile".
2632 * Makefile.in (SFILES): Add symfile-debug.c.
2633 (COMMON_OBS): Add symfile-debug.o.
2634 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2635 objfile's symbol functions.
2636 * objfiles.h (objfile_set_sym_fns): Declare.
2637 * symfile-debug.c: New file.
2638 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2639 objfile's symbol functions.
2640 (reread_symbols): Ditto.
2641
2642 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2643 All uses updated.
2644 (add_symtab_fns): Update prototype.
2645 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2646 (registered_sym_fns): ... this.
2647 (symtab_fns): Update.
2648 (add_symtab_fns): New arg "flavour". All callers updated.
2649 (find_sym_fns): Rewrite to use new sym_fns registry.
2650
2651 * symfile.h (struct sym_fns): Add "objfile" argument to
2652 sym_read_linetable. All uses updated.
2653
2654 * symtab.c (domain_name, search_domain_name): New functions.
2655 * symtab.h (domain_name, search_domain_name): Declare.
2656
2657 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2658 map_matching_symbols so objfile is first. All uses updated.
2659 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2660 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2661
2662 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2663
2664 PR shlibs/8882
2665 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2666 link map entries.
2667
2668 2013-09-24 Doug Evans <dje@google.com>
2669
2670 * objfiles.c (free_objfile): Move comment.
2671
2672 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2673
2674 * ada-exp.y (string_to_operator): Delete.
2675 (dummy_string_to_ada_operator): Delete.
2676
2677 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2678
2679 Revert:
2680 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2681 amd64-tdep.c.
2682 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2683 call_dummy_integer_regs, and classify.
2684 * amd64-tdep.h (amd64_classify): Add declaration.
2685 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2686 (amd64_reg_class): Delete, moved to i386-tdep.h.
2687 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2688 Replace call to amd64_classify by call to tdep->classify.
2689 (amd64_push_arguments): Get the list of registers to use for
2690 passing integer parameters from the gdbarch tdep structure,
2691 rather than using a hardcoded one. Replace calls to amd64_classify
2692 by calls to tdep->classify.
2693 (amd64_push_dummy_call): Get the register number used for
2694 the "hidden" argument from tdep->call_dummy_integer_regs.
2695 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2696 and tdep->call_dummy_integer_regs. Set tdep->classify.
2697
2698 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2699
2700 Revert:
2701 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2702 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2703 where tdep->memory_args_by_pointer is non-zero.
2704
2705 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2706
2707 Revert:
2708 * i386-tdep.h (struct gdbarch_tdep): Add new field
2709 integer_param_regs_saved_in_caller_frame.
2710 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2711 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2712
2713 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2714
2715 * amd64-windows-tdep.c: #include "value.h"
2716 (amd64_windows_classify): Delete.
2717 (amd64_windows_passed_by_integer_register)
2718 (amd64_windows_passed_by_xmm_register)
2719 (amd64_windows_passed_by_pointer)
2720 (amd64_windows_adjust_args_passed_by_pointer)
2721 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2722 (amd64_windows_push_dummy_call): New functions.
2723 (amd64_windows_init_abi): Remove setting of
2724 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2725 tdep->classify, tdep->memory_args_by_pointer and
2726 tdep->integer_param_regs_saved_in_caller_frame.
2727 Add call to set_gdbarch_push_dummy_call.
2728
2729 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2730
2731 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2732 objfile->original_name.
2733
2734 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 Pass down original filename for objfile.
2737 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2738 * elfread.c (elf_symfile_read): Likewise.
2739 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2740 longer set ORIGINAL_NAME.
2741 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2742 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2743 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2744 symbol_file_add_from_bfd call.
2745 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2746 (macho_check_dsym): Add parameter filenamep. Change function comment.
2747 Set *filenamep.
2748 (macho_symfile_read): New variable dsym_filename. Update
2749 macho_check_dsym call. Use it for symbol_file_add_separate.
2750 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2751 it. Use it for objfile->original_name.
2752 (objfile_name): Return OBFD's filename, if available.
2753 * objfiles.h (allocate_objfile): Add new parameter name.
2754 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2755 * symfile-mem.c (symbol_file_add_from_memory): Update
2756 symbol_file_add_from_bfd call.
2757 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2758 comment for it.
2759 (symbol_file_add_with_addrs): New parameter name, add function comment
2760 for it. Remove variable name. Update allocate_objfile call.
2761 (symbol_file_add_separate): New parameter name, add function comment
2762 for it. Update symbol_file_add_with_addrs call.
2763 (symbol_file_add_from_bfd): New parameter name. Update
2764 symbol_file_add_with_addrs call.
2765 (symbol_file_add): Update symbol_file_add_from_bfd call.
2766 (reread_symbols): New variable original_name. Save
2767 objfile->original_name by it.
2768 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2769 second parameter.
2770
2771 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2772
2773 Code cleanup: Add objfile_name accessor function.
2774 * ada-lang.c (is_known_support_routine): Use objfile_name.
2775 * auto-load.c (source_gdb_script_for_objfile)
2776 (auto_load_objfile_script): Likewise.
2777 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2778 * dbxread.c (dbx_symfile_read): Likewise.
2779 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2780 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2781 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2782 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2783 (lookup_dwp_signatured_type, lookup_dwo_unit)
2784 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2785 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2786 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2787 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2788 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2789 (read_subrange_type, load_partial_dies, read_partial_die)
2790 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2791 (die_containing_type, build_error_marker_type, lookup_die_type)
2792 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2793 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2794 (get_DW_AT_signature_type, write_psymtabs_to_index)
2795 (save_gdb_index_command): Likewise.
2796 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2797 Likewise.
2798 * expprint.c (dump_subexp_body_standard): Likewise.
2799 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2800 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2801 original_name.
2802 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2803 obj_name, use objfile_name for it, use the variable.
2804 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2805 Use objfile_name.
2806 * machoread.c (macho_symtab_read, macho_check_dsym)
2807 (macho_symfile_relocate): Likewise.
2808 * maint.c (maintenance_translate_address): Likewise.
2809 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2810 * minsyms.c (install_minimal_symbols): Likewise.
2811 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2812 original_name.
2813 (filter_overlapping_sections): Use objfile_name.
2814 (objfile_name): New function.
2815 * objfiles.h (struct objfile): Rename field name to original_name.
2816 (objfile_name): New prototype.
2817 * printcmd.c (sym_info, address_info): Use objfile_name.
2818 * probe.c (parse_probes, collect_probes, compare_probes)
2819 (info_probes_for_ops): Likewise.
2820 * progspace.c (clone_program_space): Likewise.
2821 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2822 (maintenance_info_psymtabs): Likewise.
2823 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2824 (source_section_scripts): Likewise.
2825 * python/py-objfile.c (objfpy_get_filename): Likewise.
2826 * python/py-progspace.c (pspy_get_filename): Likewise.
2827 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2828 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2829 * solib.c (solib_read_symbols): Likewise.
2830 * stabsread.c (scan_file_globals): Likewise.
2831 * stap-probe.c (handle_stap_probe): Likewise.
2832 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2833 (find_separate_debug_file_by_debuglink): Likewise.
2834 (reread_symbols): Likewise. Use the objfile field name renamed to
2835 original_name.
2836 (allocate_symtab): Use objfile_name.
2837 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2838 (dump_objfile, dump_msymbols, dump_symtab_1)
2839 (maintenance_print_msymbols, maintenance_print_objfiles)
2840 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2841 * target.c (target_translate_tls_address, target_info): Likewise.
2842 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2843 objfile_name.
2844
2845 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 Code cleanup.
2848 * probe.c (parse_probes): Rename variable objfile_name to
2849 objfile_namestr.
2850
2851 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2852
2853 Remove solib-sunos.c.
2854 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2855 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2856 * objfiles.c (rt_common_objfile): Remove.
2857 (free_objfile): Remove rt_common_objfile comparison.
2858 * objfiles.h (rt_common_objfile): Remove.
2859 * solib-sunos.c: Remove.
2860 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2861
2862 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2863
2864 Remove a.out NetBSD and OpenBSD hosts.
2865 * NEWS (Removed native configurations): New.
2866 * config/arm/nbsdaout.mh: Remove.
2867 * config/i386/nbsdaout.mh: Remove.
2868 * config/i386/obsdaout.mh: Remove.
2869 * config/m68k/nbsdaout.mh: Remove.
2870 * config/sparc/nbsdaout.mh: Remove.
2871 * config/vax/nbsdaout.mh: Remove.
2872 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2873 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2874 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2875 error.
2876 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2877 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2878 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2879
2880 2013-09-23 Tom Tromey <tromey@redhat.com>
2881
2882 * linespec.c (struct minsym_and_objfile): Remove.
2883 (minsym_and_objfile_d): Remove.
2884 (struct linespec, struct collect_info, linespec_parse_basic)
2885 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2886 (compare_msymbols, find_method, find_function_symbols)
2887 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2888 (add_minsym, search_minsyms_for_name): Update.
2889
2890 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2891
2892 * regcache.c: Add include of valprint.h.
2893 (dump_endian_bytes): Delete.
2894 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2895
2896 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2897
2898 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2899
2900 2013-09-19 Pedro Alves <palves@redhat.com>
2901
2902 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2903 breakpoints.
2904
2905 2013-09-19 Pedro Alves <palves@redhat.com>
2906 Thomas Schwinge <thomas@codesourcery.com>
2907 Yue Lu <hacklu.newborn@gmail.com>
2908
2909 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2910 Take a gdb_byte pointer instead of a char pointer.
2911
2912 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2913 gnu_xfer_partial helper.
2914 (gnu_xfer_partial): New function.
2915 (gnu_target): Don't install a deprecated_xfer_memory hook.
2916 Install a to_xfer_partial hook.
2917
2918 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 Constification.
2921 * main.c (captured_main): Replace catch_command_errors by
2922 catch_command_errors_const. Twice.
2923 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2924 (symbol_file_add): Make name parameter const.
2925 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2926 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2927 variable name. Change their usage accordingly.
2928 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2929 const.
2930 (symbol_file_add_main): Make args parameter const.
2931
2932 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
2933 Ulrich Weigand <uweigand@de.ibm.com>
2934
2935 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
2936 of c_value member.
2937 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
2938
2939 2013-09-18 Pedro Alves <palves@redhat.com>
2940 Yue Lu <hacklu.newborn@gmail.com>
2941
2942 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
2943 (gnu_create_inferior)
2944 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
2945 (set_sig_thread_cmd): Use the lwpid field of ptids to
2946 store/extract thread ids instead of the tid field.
2947 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
2948
2949 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2950
2951 * infcmd.c (default_print_one_register_info): Add detection of
2952 optimized out values.
2953 (default_print_registers_info): Switch to using
2954 get_frame_register_value.
2955
2956 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
2957
2958 * infrun.c (handle_inferior_event): Check if we know the
2959 function start address before setting a resume breakpoint.
2960
2961 2013-09-18 Pedro Alves <palves@redhat.com>
2962
2963 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
2964 minus_one_ptid instead of looking at the ptid's tid field and
2965 comparing that to -1.
2966
2967 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2968
2969 * main.h (get_gdb_program_name): Remove extra whitespace.
2970
2971 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
2972
2973 * main.h (get_gdb_program_name): Add declaration.
2974 * main.c (get_gdb_program_name): Add definition.
2975
2976 2013-09-17 Doug Evans <dje@google.com>
2977
2978 * dwarf2read.c: Move definitions of complaint functions to after
2979 forward declarations of local functions.
2980
2981 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
2982 Pedro Alves <palves@redhat.com>
2983
2984 PR gdb/11568
2985 * breakpoint.c (remove_threaded_breakpoints): New function.
2986 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2987 as thread_exit observer.
2988
2989 2013-09-17 Pedro Alves <palves@redhat.com>
2990
2991 PR gdb/15911
2992 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2993 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2994 * corelow.c (core_open):
2995 * frame.h (print_stack_frame, print_frame_info): New
2996 'set_current_sal' parameter.
2997 * infcmd.c (finish_command, kill_command): Adjust call to
2998 print_stack_frame.
2999 * inferior.c (inferior_command): Likewise.
3000 * infrun.c (normal_stop): Likewise.
3001 * linux-fork.c (linux_fork_context): Likewise.
3002 * record-full.c (record_full_goto_entry, record_full_restore):
3003 Likewise.
3004 * remote-mips.c (common_open): Likewise.
3005 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3006 Use it.
3007 (print_frame_info): New 'set_current_sal' parameter. Set the last
3008 displayed sal depending on the new paremeter instead of looking at
3009 print_what.
3010 (backtrace_command_1, select_and_print_frame, frame_command)
3011 (current_frame_command, up_command, down_command): Adjust call to
3012 print_stack_frame.
3013 * thread.c (print_thread_info, restore_selected_frame)
3014 (do_captured_thread_select): Adjust call to print_stack_frame.
3015 * tracepoint.c (tfind_1): Likewise.
3016 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3017 (mi_cmd_stack_info_frame): Likewise.
3018 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3019 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3020
3021 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3022
3023 * value.c (isvoid_internal_fn): Replace "parameter" with
3024 "argument".
3025
3026 2013-09-16 Stan Shebs <stan@codesourcery.com>
3027
3028 * README: Update references to writing code for GDB.
3029 * configure.ac (build_warnings): Remove obsolete comment.
3030 * configure: Regenerate.
3031 * gdbarch.sh: Remove references to gdbint.texinfo.
3032 * gdbarch.h: Regenerate.
3033 * gdbtypes.c (objfile_type): Remove comments referencing internals
3034 manual and D10V.
3035
3036 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3037
3038 * NEWS: Mention new convenience function $_isvoid.
3039 * value.c (isvoid_internal_fn): New function.
3040 (_initialize_values): Add new convenience function $_isvoid.
3041
3042 2013-09-16 Pierre Muller <muller@sourceware.org>
3043
3044 * arm-linux-tdep.c: Add "elf/common.h" header.
3045 Remove AT_HWCAP macro definintion as it is provided in
3046 added include file.
3047 * s390-tdep.c: Remove system header <elf.h>
3048 Add "elf/common.h" header for AT_HWCAP definition.
3049 (s390_core_read_description): Use correct CORE_ADDR
3050 for hwcap local variable used as third parameter
3051 of function target_auxv_search.
3052
3053 2013-09-14 Pierre Muller <muller@sourceware.org>
3054 Tom Tromey <tromey@redhat.com>
3055 Pedro Alves <palves@redhat.com>
3056
3057 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3058 mode if operating system doesn't know O_CLOEXEC.
3059
3060 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3061
3062 Code cleanup.
3063 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3064 inner block.
3065
3066 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067
3068 * NEWS: Mention TDB support.
3069 * features/s390-tdb.xml: New file.
3070 * features/s390-te-linux64.xml: New file.
3071 * features/s390x-te-linux64.xml: New file.
3072 * features/Makefile (WHICH): Add new tdescs above.
3073 (s390-te-linux64-expedite): Set.
3074 (s390x-te-linux64-expedite): Set.
3075 * features/s390-te-linux64.c: New file (generated).
3076 * features/s390x-te-linux64.c: New file (generated).
3077 * regformats/s390-te-linux64.dat: New file (generated).
3078 * regformats/s390x-te-linux64.dat: New file (generated).
3079 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3080 (HWCAP_S390_TE): Likewise.
3081 (S390_TDB_DWORD0_REGNUM): Likewise.
3082 (S390_TDB_DWORD0_REGNUM): Likewise.
3083 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3084 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3085 (S390_TDB_ATIA_REGNUM): Likewise.
3086 (S390_TDB_R0_REGNUM): Likewise.
3087 (S390_TDB_R1_REGNUM): Likewise.
3088 (S390_TDB_R2_REGNUM): Likewise.
3089 (S390_TDB_R3_REGNUM): Likewise.
3090 (S390_TDB_R4_REGNUM): Likewise.
3091 (S390_TDB_R5_REGNUM): Likewise.
3092 (S390_TDB_R6_REGNUM): Likewise.
3093 (S390_TDB_R7_REGNUM): Likewise.
3094 (S390_TDB_R8_REGNUM): Likewise.
3095 (S390_TDB_R9_REGNUM): Likewise.
3096 (S390_TDB_R10_REGNUM): Likewise.
3097 (S390_TDB_R11_REGNUM): Likewise.
3098 (S390_TDB_R12_REGNUM): Likewise.
3099 (S390_TDB_R13_REGNUM): Likewise.
3100 (S390_TDB_R14_REGNUM): Likewise.
3101 (S390_TDB_R15_REGNUM): Likewise.
3102 (S390_NUM_REGS): Increase.
3103 (S390_IS_TDBREGSET_REGNUM): New macro.
3104 (s390_regmap_tdb): Declare.
3105 (s390_sizeof_tdbregset): Define.
3106 (tdesc_s390_te_linux64): Declare.
3107 (tdesc_s390x_te_linux64): Likewise.
3108 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3109 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3110 (s390_regmap_tdb): New regmap.
3111 (s390_supply_tdb_regset): New function.
3112 (s390_tdb_regset): New regset.
3113 (s390_linux64v2_regset_sections): Add TDB regset to list.
3114 (s390x_linux64v2_regset_sections): Likewise.
3115 (s390_regset_from_core_section): Recognize TDB core note section.
3116 (s390_core_read_description): If HWCAP indicates TE support,
3117 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3118 (s390_gdbarch_init): Handle TDB regset.
3119 (_initialize_s390_tdep): Initialize new tdescs.
3120 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3121 (have_regset_tdb): New variable.
3122 (s390_native_supply): Support register invalidation.
3123 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3124 (check_regset): Treat ENODATA as "regset exists".
3125 (s390_linux_fetch_inferior_registers): Add TDB.
3126 (s390_read_description): Check for TDB existence and select
3127 appropriate tdesc.
3128 * gdbserver/Makefile.in (clean): Add removal of new makefile
3129 targets.
3130 (s390-te-linux64.c): New makefile target.
3131 (s390x-te-linux64.c): Likewise.
3132 * gdbserver/configure.srv (srv_regobj): Append new objects
3133 s390-te-linux64.o and s390x-te-linux64.o.
3134 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3135 s390x-te-linux64.xml, and s390-tdb.xml.
3136 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3137 declaration.
3138 (tdesc_s390_te_linux64): Likewise.
3139 (init_registers_s390x_te_linux64): Likewise.
3140 (tdesc_s390x_te_linux64): Likewise.
3141 (s390_check_regset): Treat ENODATA as "regset exists".
3142 (s390_arch_setup): Add TDB regset support.
3143 (initialize_low_arch): Initialize registers for new tdescs.
3144
3145 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3146
3147 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3148 (S390_IS_FPREGSET_REGNUM): New macro.
3149 * s390-tdep.c (s390_dwarf_regmap): Make const.
3150 (regnum_is_gpr_full): New function for replacing repeated code.
3151 (s390_pseudo_register_name): Use it.
3152 (s390_pseudo_register_type): Likewise.
3153 (s390_pseudo_register_read): Likewise.
3154 (s390_pseudo_register_write): Likewise.
3155 (s390_unwind_pseudo_register): Likewise.
3156 (s390_regmap_gregset): New format for regmap.
3157 (s390x_regmap_gregset): Likewise.
3158 (s390_regmap_fpregset): Likewise.
3159 (s390_regmap_upper): Likewise.
3160 (s390_regmap_last_break): Likewise.
3161 (s390_regmap_system_call): Likewise.
3162 (s390_supply_regset): Adjust to new regmap format.
3163 (s390_collect_regset): Likewise.
3164 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3165 (s390_native_collect): Likewise.
3166 (supply_gregset): Likewise.
3167 (fill_gregset): Likewise.
3168 (supply_fpregset): Likewise.
3169 (fill_fpregset): Likewise.
3170 (fetch_regset): Likewise.
3171 (store_regset): Likewise.
3172 (s390_linux_fetch_inferior_registers): Likewise.
3173 (s390_linux_fetch_inferior_registers): Likewise.
3174
3175 2013-09-12 Andrew Pinski <apinski@cavium.com>
3176
3177 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3178
3179 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3180
3181 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3182
3183 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3184
3185 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3186
3187 2013-09-06 Pedro Alves <palves@redhat.com>
3188
3189 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3190 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3191 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3192 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3193 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3194 gdb_stdlog.
3195
3196 2013-09-06 Pedro Alves <palves@redhat.com>
3197
3198 * remote-sim.c (dump_mem): Constify buf parameter.
3199 gdbsim_xfer_inferior_memory): Rename to ...
3200 (gdbsim_xfer_memory): ... this. Adjust interface as
3201 target_xfer_partial helper.
3202 (gdbsim_xfer_partial): New function.
3203 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3204 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3205
3206 2013-09-06 Pedro Alves <palves@redhat.com>
3207
3208 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3209 host_address_to_string, and send debug output to gdb_stdlog.
3210
3211 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3212
3213 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3214 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3215 gdb_target_obs for cris target.
3216 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3217 (cris_gdbarch_init): Move calls to
3218 set_gdbarch_fetch_tls_load_module_address and
3219 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3220 Add call to gdbarch_init_osabi.
3221 * cris-linux-tdep.c: New file.
3222 * cris-tdep.h: New file.
3223
3224 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3225
3226 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3227 to deprecated_init_ui_hook.
3228
3229 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3230
3231 * cli/cli-interp.c (_initialize_cli_interp): Add a
3232 command_loop_proc to interp_procs.
3233 * event-top.c (cli_command_loop): Change signature to match
3234 interp_command_loop_ftype.
3235 * event-top.h (cli_command_loop): Same.
3236 * interps.c (interp_new): Require every interpreter to have a
3237 command_loop_proc.
3238 (current_interp_command_loop): Just call the command_loop_proc on
3239 the current interpreter.
3240 * tui/tui-interp.c (_initialize_tui_interp): Add a
3241 command_loop_proc to interp_procs.
3242
3243 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3244
3245 * cris-tdep.c (cris_gdbarch_init): Add call to
3246 get_gdbarch_fetch_tls_load_module_address.
3247
3248 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3249
3250 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3251 (cris_elf_gregset_t): Rename from elf_gregset_t.
3252 (crisv32_elf_gregset_t): Adjust.
3253 (cris_supply_gregset, fetch_core_registers): Adjust.
3254
3255 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3256
3257 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3258
3259 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3260
3261 * defs.h (deprecated_command_loop_hook): Remove, including
3262 references in comments.
3263 * interps.c (current_interp_command_loop): No longer use
3264 deprecated_command_loop_hook.
3265 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3266 setup.
3267 * top.c (deprecated_command_loop_hook): Remove.
3268
3269 2013-09-05 Pedro Alves <palves@redhat.com>
3270
3271 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3272 local is now int instead of ULONGEST. Print it with %d
3273 instead of paddress.
3274
3275 2013-09-05 Tristan Gingold <gingold@adacore.com>
3276
3277 * MAINTAINERS: Remove avr maintainership.
3278
3279 2013-09-05 Pedro Alves <palves@redhat.com>
3280
3281 * findvar.c (value_of_register): Rework in terms of
3282 value_of_register_lazy.
3283
3284 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3285
3286 * symfile.c (add_symbol_file_command): Remove trailing
3287 whitespaces and blank line after comment.
3288
3289 2013-09-05 Pedro Alves <palves@redhat.com>
3290
3291 * tui/tui-regs.c (tui_register_format): Don't look at the
3292 register's name here. Return string representing register
3293 value instead of storing it in the data element.
3294 (tui_get_register): Compare register string representations
3295 instead of register value states and contents.
3296
3297 2013-09-05 Pedro Alves <palves@redhat.com>
3298
3299 PR tui/15933
3300 * tui/tui-regs.c (tui_show_registers): Show registers of the
3301 selected frame, not the current frame.
3302
3303 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3304
3305 * MAINTAINERS (Write After Approval): Add myself to the list.
3306
3307 2013-09-04 Doug Evans <dje@google.com>
3308
3309 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3310 (queue_and_load_dwo_tu): New function.
3311 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3312 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3313 Make dependent_cu optional.
3314 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3315 and an older .gdb_index is in use, queue and load all its TUs too.
3316
3317 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3320 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3321 variable search_flags.
3322 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3323 (OPF_RETURN_REALPATH): ... here.
3324 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3325 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3326 call. Twice.
3327 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3328 openp call.
3329 * solib.c (solib_find): Likewise. Four times.
3330 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3331 in the function comment and for the realpath_fptr variable.
3332 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3333 (find_and_open_source): Likewise. Twice.
3334 * symfile.c (symfile_bfd_open): Likewise, also twice.
3335
3336 2013-09-04 Doug Evans <dje@google.com>
3337
3338 * progspace.c (save_current_space_and_thread): Remove unnecessary
3339 call to save_current_inferior.
3340
3341 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3342
3343 * sh64-tdep.c (sh64_do_register): Return after printing message
3344 about unavailable register contents.
3345
3346 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3347 Pedro Alves <palves@redhat.com>
3348
3349 * symfile.c (add_symbol_file_command): Error out on unknown
3350 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3351 options and collapse into single conditional branch.
3352
3353 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3354
3355 * inf-child.c (inf_child_follow_fork): New parameter
3356 detach_fork.
3357 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3358 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3359 * inferior.h (detach_fork): Remove.
3360 * infrun.c (detach_fork): Adjust comment and make it
3361 static.
3362 (follow_fork): Pass detach_fork parameter to
3363 target_follow_fork.
3364 * linux-nat.c (linux_child_follow_fork): New parameter
3365 detach_fork.
3366 * target.c (target_follow_fork): New parameter detach_fork.
3367 Pass detach_fork as parameter and print its value.
3368 * target.h (struct target_ops) <to_follow_fork>: New int
3369 parameter.
3370 (target_follow_fork): New parameter detach_fork.
3371
3372 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3373
3374 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3375 Replace sec->bfd by sec->the_bfd_section->owner.
3376
3377 2013-09-03 Yao Qi <yao@codesourcery.com>
3378
3379 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3380 from linux_has_shared_address_space.
3381 (linux_has_shared_address_space): Call linux_is_uclinux.
3382 * linux-tdep.h (linux_is_uclinux): Declare.
3383 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3384 linux_is_uclinux.
3385
3386 2013-09-03 Yao Qi <yao@codesourcery.com>
3387
3388 * config/djgpp/fnchange.lst: Remove entry of
3389 i386-interix-nat.c and i386-interix-tdep.c.
3390 * configure.ac: Remove '*-*-interix*'.
3391 * configure: Re-generated.
3392 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3393 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3394 obsolete comments.
3395 * osabi.c (gdb_osabi_names): Remove "Interix".
3396
3397 2013-09-03 Yao Qi <yao@codesourcery.com>
3398
3399 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3400
3401 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3402
3403 * record.h (record_print_flag) <record_print_src_line,
3404 record_print_insn_range>: Rename into ...
3405 (record_print_flag) <record_print_src_line,
3406 record_print_insn_range>: ... this. Update all users.
3407
3408 2013-09-02 Pierre Muller <muller@sourceware.org>
3409
3410 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3411 error code.
3412
3413 2013-09-02 Pierre Muller <muller@sourceware.org>
3414
3415 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3416 by use of plongest function.
3417
3418 2013-09-02 Tristan Gingold <gingold@adacore.com>
3419
3420 * NEWS: Add entry mentioning support for native Windows x64
3421 SEH data.
3422
3423 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3424 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3425 (struct amd64_windows_frame_cache): New struct.
3426 (amd64_windows_w2gdb_regnum): New global.
3427 (pc_in_range, amd64_windows_frame_decode_epilogue)
3428 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3429 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3430 (amd64_windows_frame_this_id): New functions.
3431 (amd64_windows_frame_unwind): New static global.
3432 (amd64_windows_skip_prologue): New function.
3433 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3434 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3435 with amd64_windows_skip_prologue.
3436
3437 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3438
3439 GDB 7.6.1 released.
3440
3441 2013-08-30 Pedro Alves <palves@redhat.com>
3442
3443 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3444 SRC_AND_LOC.
3445
3446 2013-08-30 Pedro Alves <palves@redhat.com>
3447
3448 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3449 warning text.
3450
3451 2013-08-30 Pedro Alves <palves@redhat.com>
3452
3453 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3454 Adjust arguments to print_stack_frame.
3455
3456 2013-08-30 Pedro Alves <palves@redhat.com>
3457
3458 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3459
3460 2013-08-30 Pedro Alves <palves@redhat.com>
3461
3462 * frame.h (show_and_print_stack_frame): Delete declaration.
3463
3464 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3465
3466 PR python/15461
3467 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3468 (archpy_name): Check for valid architecture.
3469 (archpy_disassemble): Ditto.
3470
3471 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3472
3473 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3474 instead of "long long" in call to ptrace64.
3475
3476 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3477
3478 * mi/mi-interp.c (mi_command_loop): Change signature to match
3479 interp_command_loop_ftype.
3480 (mi1_command_loop): Remove.
3481 (mi2_command_loop): Remove.
3482 (mi3_command_loop): Remove.
3483 (mi_interpreter_resume): Remove setting of
3484 deprecated_command_loop_hook.
3485 (_initialize_mi_interp): Set mi_command_loop as the command loop
3486 callback.
3487
3488 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3489
3490 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3491 value_type.
3492
3493 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3494
3495 * value.c (allocate_value_contents): Make static.
3496 * value.h (allocate_value_contents): Remove prototype.
3497
3498 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3499
3500 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3501 of assembling value via allocate_value_lazy and attribute setter.
3502 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3503 assembling value via allocate_value_lazy and attribute setter.
3504 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3505 assembling value via allocate_value_lazy and attribute setter.
3506
3507 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3508
3509 * value.c (value_from_contents_and_address): Replace allocate_value and
3510 memcpy with value_from_contents.
3511
3512 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3513
3514 * python/py-framefilter.c (py_print_frame): Remove usage of
3515 PyString_AsString. Use python_string_to_host_string instead.
3516 Refactor function to work with a string as a new allocation
3517 instead of a pointer.
3518 (py_print_frame): Ditto.
3519 * python/lib/gdb/frames.py (return_list): Cain iterators together
3520 instead of adding them as a list.
3521 (_sort_list): Call return_list, and remove duplicate code.
3522 (execute_frame_filters): Convert iterator to a list with list().
3523 * python/lib/gdb/command/frame_filters.py
3524 (SetFrameFilterPriority._set_filter_priority): Convert priority
3525 attribute to an integer.
3526 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3527 wrapper function __next__.
3528 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3529 define as "str".
3530
3531 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3532
3533 PR python/15752
3534 * python/py-framefilter.c (apply_frame_filter): Check
3535 gdb_python_initialized. Exit if the Python frame-filter code
3536 cannot be initialized.
3537
3538 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3539
3540 PR cli/15842
3541 * top.c (print_gdb_version): Remove erroneous newline after help
3542 text.
3543
3544 2013-08-29 Yao Qi <yao@codesourcery.com>
3545
3546 * varobj.c (install_dynamic_child): Remove trailing space.
3547 Add one blank line after variable declaration.
3548
3549 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 PR gdb/15415
3552 * corefile.c (get_exec_file): Use exec_filename.
3553 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3554 * exec.c (exec_close): Free EXEC_FILENAME.
3555 (exec_file_attach): New variable canonical_pathname. Use
3556 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3557 EXEC_FILENAME.
3558 * exec.h (exec_filename): New.
3559 * inferior.c (print_inferior, inferior_command): Use
3560 PSPACE_EXEC_FILENAME.
3561 * mi/mi-main.c (print_one_inferior): Likewise.
3562 * progspace.c (clone_program_space, print_program_space): Likewise.
3563 * progspace.h (struct program_space): New field pspace_exec_filename.
3564 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3565 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3566
3567 2013-08-28 Will Newton <will.newton@linaro.org>
3568
3569 * common/linux-ptrace.c: Include stdint.h unconditionally.
3570
3571 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3572
3573 Code cleanup.
3574 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3575
3576 2013-08-28 Yao Qi <yao@codesourcery.com>
3577 Pedro Alves <palves@redhat.com>
3578
3579 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3580 instead of stdio_fileopen.
3581 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3582 .Call stderr_fileopen instead of stdio_fileopen.
3583 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3584 [__MINGW32__] (stderr_file_fputs): New function.
3585 (stderr_fileopen): New function.
3586 * ui-file.h (stderr_fileopen): Declare.
3587
3588 2013-08-27 Doug Evans <dje@google.com>
3589
3590 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3591 (struct dwarf2_per_cu_data): Ditto.
3592 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3593 (process_imported_unit_die): Ditto.
3594 (follow_die_sig_1): Simplify assert.
3595
3596 2013-08-27 Pedro Alves <palves@redhat.com>
3597
3598 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3599 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3600 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3601 windows_xfer_memory directly.
3602 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3603
3604 2013-08-27 Pedro Alves <palves@redhat.com>
3605
3606 * darwin-nat.c (darwin_xfer_memory): Delete.
3607 (_initialize_darwin_inferior): Don't install a
3608 deprecated_xfer_memory method.
3609
3610 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3611 Yao Qi <yao@codesourcery.com>
3612
3613 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3614 (parse_no_frames_option): Remove.
3615 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3616 (mi_cmd_stack_list_args): Adjust.
3617 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3618 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3619 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3620 Caller update.
3621 (list_args_or_locals): New parameter 'skip_unavailable'.
3622 Handle it.
3623 * valprint.c (scalar_type_p): Rename to ...
3624 (val_print_scalar_type_p): ... this. Make extern.
3625 (val_print, value_check_printable): Adjust.
3626 * valprint.h (val_print_scalar_type_p): Declare.
3627 * value.c (value_entirely_unavailable): New function.
3628 * value.h (value_entirely_unavailable): Declare.
3629
3630 * NEWS: Mention the new option "--skip-unavailable" to MI
3631 commands '-stack-list-locals', '-stack-list-arguments' and
3632 '-stack-list-variables'.
3633
3634 2013-08-27 Yao Qi <yao@codesourcery.com>
3635
3636 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3637 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3638 options.
3639 * mi/mi-getopt.c (mi_getopt): Remove.
3640 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3641 'error_on_unknown'.
3642 (mi_getopt): Call mi_getopt_1.
3643 (mi_getopt_silent): New.
3644 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3645
3646 2013-08-26 Doug Evans <dje@google.com>
3647
3648 PR symtab/15885
3649 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3650 .gdb_index is in use.
3651 * symfile.c (reread_symbols): Reset objfile->sf.
3652
3653 * NEWS: Document "mt print objfiles" now takes optional regexp.
3654 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3655 regexp of objfiles to print.
3656 (_initialize_symmisc): Update doc string for "mt print objfiles".
3657
3658 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3659 missing debug info checks.
3660
3661 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3662 Ulrich Weigand <uweigand@de.ibm.com>
3663
3664 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3665 line tables generated by XLC compiled binaries.
3666
3667 2013-08-23 Doug Evans <dje@google.com>
3668
3669 * symmisc.c (dump_symtab): Delete prototype.
3670 (dump_msymbols, dump_objfile): Ditto.
3671 (maintenance_info_symtabs): Mark as dont_repeat.
3672 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3673
3674 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3675 debugging printf to better location.
3676
3677 2013-08-23 Pedro Alves <palves@redhat.com>
3678
3679 * target.c (target_read_live_memory): Change type of 'ret' local
3680 to LONGEST.
3681
3682 2013-08-23 Pedro Alves <palves@redhat.com>
3683
3684 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3685 (remote_read_bytes): Change return type to LONGEST, and adjust to
3686 return a target_xfer_error on error.
3687 (remote_xfer_memory): Delete.
3688 (remote_flash_write): Change type of 'ret' local to LONGEST.
3689 (remote_xfer_partial, remote_xfer_partial): Adjust.
3690 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3691
3692 2013-08-23 Pierre Muller <muller@sourceware.org>
3693
3694 ARI fix: Push # directives to start of line.
3695 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3696
3697 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3698
3699 PR gdb/15501
3700 * breakpoint.c (enable_command, disable_command): Iterate over
3701 all specified breakpoint locations.
3702
3703 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3704
3705 * common/linux-ptrace.c (linux_fork_to_function): Push #
3706 directives to the start of the line.
3707 (linux_check_ptrace_features): Fix warning message to use
3708 the "_" markup.
3709
3710 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3711
3712 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3713 nat/linux-waitpid.h.
3714 (linux-waitpid.o): New object file rule.
3715 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3716 (current_ptrace_options): Moved from linux-nat.c.
3717 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3718 parameters.
3719 (linux_fork_to_function): New function.
3720 (linux_grandchild_function): Likewise.
3721 (linux_child_function): Likewise.
3722 (linux_check_ptrace_features): New function, heavily
3723 based on linux-nat.c:linux_test_for_tracefork.
3724 (linux_enable_event_reporting): New function.
3725 (ptrace_supports_feature): Likewise.
3726 (linux_supports_tracefork): Likewise.
3727 (linux_supports_traceclone): Likewise.
3728 (linux_supports_tracevforkdone): Likewise.
3729 (linux_supports_tracesysgood): Likewise.
3730 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3731 gdbserver/linux-low.c.
3732 (linux_enable_event_reporting): New declaration.
3733 (linux_supports_tracefork): Likewise.
3734 (linux_supports_traceclone): Likewise.
3735 (linux_supports_tracevforkdone): Likewise.
3736 (linux_supports_tracesysgood): Likewise.
3737 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3738 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3739 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3740 * config/arm/linux.mh (NATDEPFILES): Likewise.
3741 * config/i386/linux.mh (NATDEPFILES): Likewise.
3742 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3743 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3744 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3745 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3746 * config/mips/linux.mh (NATDEPFILES): Likewise.
3747 * config/pa/linux.mh (NATDEPFILES): Likewise..
3748 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3749 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3750 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3751 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3752 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3753 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3754 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3755 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3756 ptrace's 4th argument's types.
3757 Check the type of PTRACE_TYPE_ARG4.
3758 * configure: Regenerate.
3759 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3760 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3761 (linux_supports_tracefork_flag): Remove.
3762 (linux_supports_tracesysgood_flag): Likewise.
3763 (linux_supports_tracevforkdone_flag): Likewise.
3764 (current_ptrace_options): Moved to
3765 common/linux-ptrace.c.
3766 (linux_tracefork_child): Remove.
3767 (my_waitpid): Remove.
3768 (linux_test_for_tracefork): Renamed to
3769 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3770 (linux_test_for_tracesysgood): Remove.
3771 (linux_supports_tracesysgood): Remove.
3772 (linux_supports_tracefork): Remove.
3773 (linux_supports_tracevforkdone): Remove.
3774 (linux_enable_tracesysgood): Remove.
3775 (linux_enable_event_reporting): Remove.
3776 (linux_init_ptrace): New function.
3777 (linux_child_post_attach): Call linux_init_ptrace.
3778 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3779 (linux_child_follow_fork): Call linux_supports_tracefork
3780 and linux_supports_tracevforkdone.
3781 (linux_child_insert_fork_catchpoint): Call
3782 linux_supports_tracefork.
3783 (linux_child_insert_vfork_catchpoint): Likewise.
3784 (linux_child_set_syscall_catchpoint): Call
3785 linux_supports_tracesysgood.
3786 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3787 * nat/linux-nat.h: New file.
3788 * nat/linux-waitpid.c: New file.
3789 * nat/linux-waitpid.h: New file.
3790
3791 2013-08-22 Samuel Bronson <naesten@gmail.com>
3792
3793 ARM Linux support for `catch syscall'.
3794 * syscalls/arm-linux.py: New file.
3795 * syscalls/arm-linux.xml: Likewise.
3796 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3797 (arm_linux_init_abi): Register the new function and syscall xml file.
3798 * data-directory/Makefile.in: Install the new syscall xml file.
3799 * NEWS: Brag about this.
3800
3801 2013-08-22 Pedro Alves <palves@redhat.com>
3802
3803 PR gdb/15871
3804 * corefile.c (target_xfer_memory_error): New function.
3805 (memory_error): Defer EIO to target_memory_error.
3806 (read_memory): Use target_xfer_partial, and handle finer-grained
3807 target xfer errors.
3808 * target.c (target_xfer_error_to_string): New function.
3809 (memory_xfer_partial_1): If memory is known to be
3810 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3811 (target_xfer_partial): Make extern.
3812 * target.h (enum target_xfer_error): New enum.
3813 (target_xfer_error_to_string): Declare function.
3814 (target_xfer_partial): Declare function.
3815 (struct target_ops) <xfer_partial>: Adjust describing comment.
3816
3817 2013-08-22 Alan Modra <amodra@gmail.com>
3818
3819 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3820 * configure.tgt: Likewise as targets.
3821
3822 2013-08-20 Doug Evans <dje@google.com>
3823
3824 * buildsym.c (subfile_stack): Move here from buildsym.h.
3825 (pending_macros): Ditto.
3826 (get_macro_table): New function.
3827 (buildsym_init): Initialize subfile_stack.
3828 * coffread.c (type_vector,type_vector_length): Moved here from
3829 buildsym.h.
3830 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3831 (coff_symtab_read): Use it.
3832 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3833 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3834 with call to get_macro_table.
3835 * stabsread.c (type_vector,type_vector_length): Moved here from
3836 buildsym.h.
3837 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3838 * buildsym.h (get_macro_table): Declare.
3839
3840 2013-08-20 Tom Tromey <tromey@redhat.com>
3841
3842 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3843 Update.
3844 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3845
3846 2013-08-20 Doug Evans <dje@google.com>
3847
3848 * blockframe.c: Remove #include "psymtab.h".
3849 * cp-support.c: Ditto.
3850 * source.c: Ditto.
3851 * stack.c: Ditto.
3852
3853 2013-08-20 Tom Tromey <tromey@redhat.com>
3854
3855 PR python/15816:
3856 * exceptions.h (return_mask): Now an enum.
3857 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3858 enum constants.
3859
3860 2013-08-20 Tom Tromey <tromey@redhat.com>
3861
3862 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3863 get_objfile_arch.
3864 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3865 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3866 * jit.c (jit_object_close_impl): Update.
3867 * jv-lang.c (get_dynamics_objfile): Update.
3868 * linespec.c (add_minsym): Use get_dynamics_objfile.
3869 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3870 (allocate_objfile): Don't initialize 'gdbarch' field.
3871 (get_objfile_arch): Update.
3872 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3873 moved from...
3874 (struct objfile) <gdbarch>: ... here. Remove.
3875 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3876 get_objfile_arch.
3877 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3878
3879 2013-08-20 Alan Modra <amodra@gmail.com>
3880
3881 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3882 for IBM long double nan and inf.
3883 (floatformat_is_negative, floatformat_classify,
3884 floatformat_mantissa): Similarly.
3885 (floatformat_ieee_single, floatformat_ieee_double,
3886 floatformat_ieee_quad, floatformat_arm_ext,
3887 floatformat_ia64_spill): Delete unused vars.
3888 (_initialize_doublest): Delete unused function.
3889 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3890 little-endian variants of floatformat_ibm_long_double.
3891
3892 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3893
3894 * Makefile.in (SFILES): Remove common/target-common.c and
3895 add target/waitstatus.c.
3896 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3897 target/resume.h, target/wait.h and target/waitstatus.h.
3898 (COMMON_OBS): Remove target-common.o and add
3899 waitstatus.o.
3900 (target-common.o): Remove.
3901 (waitstatus.o): New target object file.
3902 * common/target-common.c: Move contents to
3903 target/waitstatus.c and remove.
3904 * common/target-common.h: Move contents to other files and
3905 remove.
3906 (enum resume_kind: Move to target/resume.h.
3907 (TARGET_WNOHANG): Move to target/wait.h.
3908 (enum target_waitkind): Move to target/waitstatus.h.
3909 (struct target_waitstatus): Likewise.
3910 * target.h: Do not include target-common.h and
3911 include target/resume.h, target/wait.h and
3912 target/waitstatus.h.
3913 * target/resume.h: New file.
3914 * target/wait.h: New file.
3915 * target/waitstatus.h: New file.
3916 * target/waitstatus.c: New file.
3917
3918 2013-08-19 Pedro Alves <palves@redhat.com>
3919
3920 * linux-nat.c (linux_test_for_tracefork)
3921 (linux_test_for_tracesysgood, linux_child_follow_fork)
3922 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3923 (linux_nat_wait_1): Extend comment.
3924 (linux_async_pipe): Add comment.
3925
3926 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3927
3928 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3929 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3930 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3931 Update to account for fact that PC is now a pseudo-register.
3932 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
3933 cases for RL78_PC_REGNUM.
3934
3935 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
3936
3937 PR cli/15841
3938 * top.c (quit_force): Skip writing history file
3939 if input is not from terminal.
3940
3941 2013-08-14 Tom Tromey <tromey@redhat.com>
3942
3943 * remote.c (struct remote_state) <echo_nextthread, nextthread,
3944 resultthreadlist>: New fields.
3945 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
3946 (remote_get_threadlist, remote_threadlist_iterator): Use
3947 new fields. Remove static variables.
3948
3949 2013-08-14 Tom Tromey <tromey@redhat.com>
3950
3951 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
3952 remote_watch_data_address>: New fields.
3953 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
3954 (process_stop_reply, remote_wait_as)
3955 (remote_check_watch_resources, remote_stopped_data_address): Update.
3956
3957 2013-08-14 Tom Tromey <tromey@redhat.com>
3958
3959 * remote.c (struct remote_state) <async_client_callback,
3960 async_client_context>: New fields.
3961 (async_client_callback, async_client_context): Remove.
3962 (remote_async_serial_handler, remote_async): Update.
3963
3964 2013-08-14 Tom Tromey <tromey@redhat.com>
3965
3966 * remote.c (sizeof_pkt): Remove.
3967 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
3968
3969 2013-08-14 Tom Tromey <tromey@redhat.com>
3970
3971 * remote.c (struct remote_state) <use_threadinfo_query,
3972 use_threadextra_query>: New fields.
3973 (remote_threads_info, remote_threads_extra_info)
3974 (remote_open_1): Update.
3975
3976 2013-08-14 Tom Tromey <tromey@redhat.com>
3977
3978 * remote.c (struct remote_state) <finished_object,
3979 finished_annex, finished_offset>: New fields.
3980 (remote_read_qxfer): Use remote_state fields; remove static
3981 variables.
3982
3983 2013-08-14 Tom Tromey <tromey@redhat.com>
3984
3985 * remote.c (struct remote_state) <last_sent_step>:
3986 New field.
3987 (last_sent_step): Remove.
3988 (remote_resume, remote_wait_as): Update.
3989
3990 2013-08-14 Tom Tromey <tromey@redhat.com>
3991
3992 * remote.c (struct remote_state) <last_sent_signal>:
3993 New field.
3994 (last_sent_signal): Remove.
3995 (new_remote_state, remote_resume, remote_wait_as): Update.
3996
3997 2013-08-14 Tom Tromey <tromey@redhat.com>
3998
3999 * remote.c (struct remote_state) <last_program_signals_packet>:
4000 New field.
4001 (last_program_signals_packet): Remove.
4002 (remote_program_signals, remote_open_1): Update.
4003
4004 2013-08-14 Tom Tromey <tromey@redhat.com>
4005
4006 * remote.c (struct remote_state) <last_pass_packet>:
4007 New field.
4008 (last_pass_packet): Remove.
4009 (remote_pass_signals, remote_open_1): Update.
4010
4011 2013-08-14 Tom Tromey <tromey@redhat.com>
4012
4013 * remote.c (struct remote_state) <remote_traceframe_number>:
4014 New field.
4015 (remote_traceframe_number): Remove.
4016 (new_remote_state, remote_open_1, set_remote_traceframe)
4017 (remote_trace_find): Update.
4018
4019 2013-08-14 Tom Tromey <tromey@redhat.com>
4020
4021 * remote.c (struct remote_state) <general_thread, continue_thread>:
4022 New fields.
4023 (general_thread, continue_thread): Remove.
4024 (record_currthread, set_thread, set_general_process)
4025 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4026 (extended_remote_mourn_1): Update.
4027
4028 2013-08-14 Tom Tromey <tromey@redhat.com>
4029
4030 * remote.c (struct remote_state) <remote_desc>: New field.
4031 (remote_desc): Remove.
4032 (remote_threads_info, remote_threads_extra_info, remote_close)
4033 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4034 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4035 (remote_hostio_send_command, remote_file_put, remote_file_get)
4036 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4037 (remote_async, remote_new_objfile, set_range_stepping): Update.
4038
4039 2013-08-14 Tom Tromey <tromey@redhat.com>
4040
4041 * remote.c (remote_state): Now a pointer.
4042 (get_remote_state_raw): Update.
4043 (new_remote_state): New function.
4044 (_initialize_remote): Use new_remote_state.
4045
4046 2013-08-14 Tom Tromey <tromey@redhat.com>
4047
4048 * remote.c (remote_protocol_features): Now const.
4049
4050 2013-08-14 Tom Tromey <tromey@redhat.com>
4051
4052 * remote.c (crc32_table, crc32): Remove.
4053 (remote_verify_memory): Use xcrc32.
4054
4055 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4056
4057 * value.h (create_internalvar_type_lazy): Adjust prototype
4058 declaration.
4059
4060 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4061
4062 * common/format.c (parse_format_string): Don't allow '#' flag for
4063 pointer arguments in format string.
4064
4065 2013-08-13 Pierre Muller <muller@sourceware.org>
4066
4067 * utils.c (init_page_info): Only call tgetnum function
4068 if rl_get_screen_size did not return useful values.
4069
4070 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4071
4072 PR breakpoints/15117
4073 * linespec.c (linespec_parse_basic): Check for convenience
4074 variable or history value while parsing.
4075
4076 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4077
4078 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4079 AVR.
4080 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4081 different signals between the generic Linux kernel implementation
4082 and AVR's.
4083 (avr_linux_gdb_signal_from_target): Delete.
4084 (avr_linux_gdb_signal_to_target): Delete.
4085 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4086
4087 2013-08-09 Doug Evans <dje@google.com>
4088
4089 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4090 entries.
4091
4092 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4093
4094 * linux-tdep.c: Define enum with generic signal numbers.
4095 (linux_gdb_signal_from_target): New function.
4096 (linux_gdb_signal_to_target): Likewise.
4097 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4098 methods to the functions above.
4099 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4100 (linux_gdb_signal_to_target): Likewise.
4101 * alpha-linux-tdep.c: Define new enum with signals different
4102 from generic Linux kernel.
4103 (alpha_linux_gdb_signal_from_target): New function.
4104 (alpha_linux_gdb_signal_to_target): Likewise.
4105 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4106 with the functions mentioned above.
4107 * avr-tdep.c: Define enum with differences between Linux kernel
4108 and AVR signals.
4109 (avr_linux_gdb_signal_from_target): New function.
4110 (avr_linux_gdb_signal_to_target): Likewise.
4111 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4112 the functions mentioned above.
4113 * sparc-linux-tdep.c: Define enum with differences between SPARC
4114 and generic Linux kernel signal numbers.
4115 (sparc32_linux_gdb_signal_from_target): New function.
4116 (sparc32_linux_gdb_signal_to_target): Likewise.
4117 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4118 to the functions defined above.
4119 * xtensa-linux-tdep.c: Define enum with differences between
4120 Xtensa and Linux kernel generic signals.
4121 (xtensa_linux_gdb_signal_from_target): New function.
4122 (xtensa_linux_gdb_signal_to_target): Likewise.
4123 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4124 to the functions defined above.
4125 * mips-linux-tdep.c: Define enum with differences between
4126 signals in MIPS and Linux kernel generic ones.
4127 (mips_gdb_signal_to_target): New function.
4128 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4129 only different signals from the Linux kernel generic.
4130 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4131 the functions defined above.
4132 * mips-linux-tdep.h (enum mips_signals): Remove.
4133
4134 2013-08-09 Pedro Alves <palves@redhat.com>
4135
4136 * avr-tdep.c (XMALLOC): Delete macro.
4137 * cli/cli-dump.c (XMALLOC): Delete macro.
4138
4139 2013-08-09 Pedro Alves <palves@redhat.com>
4140
4141 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4142 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4143 (fopen_with_cleanup, add_dump_command): Make static.
4144 * cli/cli-dump.h: Delete file.
4145 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4146 cli/cli-dump.h.
4147
4148 2013-08-09 Pedro Alves <palves@redhat.com>
4149
4150 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4151 error message.
4152
4153 2013-08-09 Pedro Alves <palves@redhat.com>
4154
4155 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4156 error message.
4157
4158 2013-08-09 Pedro Alves <palves@redhat.com>
4159
4160 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4161 (gcore_command): Use tilde_expand here, and when showing the
4162 filename to the user, show the expanded version.
4163
4164 2013-08-09 Yao Qi <yao@codesourcery.com>
4165
4166 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4167 'entryval' is set.
4168
4169 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4170
4171 * gcore.c (create_gcore_bfd): Use tilde_expand.
4172
4173 2013-08-08 Yao Qi <yao@codesourcery.com>
4174
4175 * frame.h (read_frame_local): Declare.
4176 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4177 read_frame_local.
4178 * stack.c (read_frame_local): New.
4179
4180 2013-08-08 Yao Qi <yao@codesourcery.com>
4181
4182 * mi/mi-cmd-stack.c: Update comments to function
4183 list_args_or_locals.
4184
4185 2013-08-07 Tom Tromey <tromey@redhat.com>
4186
4187 PR symtab/15028:
4188 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4189 (process_psymtab_comp_unit_reader): Use it.
4190 (process_psymtab_comp_unit): Update. Add "pretend_language"
4191 argument.
4192 (dwarf2_build_psymtabs_hard): Update.
4193 (scan_partial_symbols): Pass CU's language to
4194 process_psymtab_comp_unit.
4195
4196 2013-08-07 Tom Tromey <tromey@redhat.com>
4197
4198 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4199 (dwarf2_gdb_index_functions): Update.
4200 * psymtab.c (find_symbol_file_from_partial): Remove.
4201 (psym_functions): Update.
4202 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4203 Remove.
4204
4205 2013-08-07 Tom Tromey <tromey@redhat.com>
4206
4207 * symfile.c (set_initial_language): Look up "main" symbol
4208 and use its language.
4209 * symtab.c (find_main_filename): Remove.
4210 * symtab.h (find_main_filename): Remove.
4211
4212 2013-08-07 Tom Tromey <tromey@redhat.com>
4213
4214 * dwarf2read.c (recursively_compute_inclusions): Add
4215 "immediate_parent" argument. Set symtab's "user" field
4216 if not set.
4217 (compute_symtab_includes): Update.
4218
4219 2013-08-07 Tom Tromey <tromey@redhat.com>
4220
4221 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4222 when adding label symbols.
4223
4224 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4225 Ulrich Weigand <uweigand@de.ibm.com>
4226
4227 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4228 * configure.host (powerpc64-*-aix*): Likewise.
4229
4230 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4231 Ulrich Weigand <uweigand@de.ibm.com>
4232
4233 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4234 is defined.
4235 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4236 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4237 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4238 * configure.ac: Check for ptrace64.
4239 * configure, config.in: Regenerate.
4240
4241 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4242 Ulrich Weigand <uweigand@de.ibm.com>
4243
4244 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4245 Call ptrace64 instead of ptrace if defined.
4246 Add macro addr_ptr to take care of ptrace address argument.
4247 (pdc_read_regs): Likewise.
4248 (pdc_write_regs): Likewise.
4249 (aix_thread_resume): Likewise.
4250 (fetch_regs_kernel_thread): Likewise.
4251 (store_regs_kernel_thread): Likewise.
4252
4253 2013-08-07 Anton Blanchard <anton@samba.org>
4254
4255 * MAINTAINERS: Add myself to Write After Approval.
4256
4257 2013-08-05 Tom Tromey <tromey@redhat.com>
4258
4259 * aix-thread.c (_initialize_aix_thread): Use
4260 complete_target_initialization.
4261 * bsd-uthread.c (_initialize_bsd_uthread): Use
4262 complete_target_initialization.
4263 * dec-thread.c (_initialize_dec_thread): Use
4264 complete_target_initialization.
4265 * ravenscar-thread.c (_initialize_ravenscar): Use
4266 complete_target_initialization.
4267 * sol-thread.c (_initialize_sol_thread): Use
4268 complete_target_initialization.
4269 * spu-multiarch.c (_initialize_spu_multiarch): Use
4270 complete_target_initialization.
4271
4272 2013-08-05 Tom Tromey <tromey@redhat.com>
4273
4274 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4275 * ada-lang.c (ada_lookup_simple_minsym): Return
4276 bound_minimal_symbol.
4277 * ada-lang.h (ada_lookup_simple_minsym): Update.
4278 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4279 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4280 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4281 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4282 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4283 * minsyms.c (msymbol_objfile): Remove.
4284 (lookup_minimal_symbol_internal): New function, from
4285 lookup_minimal_symbol.
4286 (lookup_minimal_symbol): Rewrite using
4287 lookup_minimal_symbol_internal.
4288 (lookup_bound_minimal_symbol): New function.
4289 * minsyms.h (msymbol_objfile): Remove.
4290 (lookup_bound_minimal_symbol): Declare.
4291 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4292 * parse.c (write_exp_msymbol): Change parameter to a
4293 bound_minimal_symbol.
4294 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4295 * parser-defs.h (write_exp_msymbol): Update.
4296 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4297 * symfile.c (simple_read_overlay_table): Use
4298 lookup_bound_minimal_symbol.
4299 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4300 (search_symbols): Likewise.
4301 (print_msymbol_info): Take a bound_minimal_symbol argument.
4302 (symtab_symbol_info, rbreak_command): Update.
4303 * symtab.h (struct symbol_search) <msymbol>: Change type
4304 to bound_minimal_symbol.
4305 * valops.c (find_function_in_inferior): Use
4306 lookup_bound_minimal_symbol.
4307 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4308
4309 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4310
4311 Code cleanup.
4312 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4313 to ...
4314 (async_cleanup_sigint_signal_handler): ... this.
4315 (initialize_sigint_signal_handler): Remove declaration.
4316 (handle_remote_sigint): Rename the declaration to ...
4317 (async_handle_remote_sigint): ... this.
4318 (handle_remote_sigint_twice): Rename the declaration to ...
4319 (async_handle_remote_sigint_twice): ... this.
4320 (async_remote_interrupt, async_remote_interrupt_twice)
4321 (remote_interrupt): Remove the declarations.
4322 (remote_interrupt_twice): Rename the declaration ...
4323 (sync_remote_interrupt_twice): ... this.
4324 (sigint_remote_twice_token): Rename the variable to ...
4325 (async_sigint_remote_twice_token): ... this.
4326 (sigint_remote_token): Rename the variable to ...
4327 (async_sigint_remote_token): ... this.
4328 (initialize_sigint_signal_handler): Rename the function to ...
4329 (async_initialize_sigint_signal_handler): ... this. Update the name
4330 inside.
4331 (handle_remote_sigint): Rename the function to ...
4332 (async_handle_remote_sigint): ... this. Update the names inside.
4333 (handle_remote_sigint_twice): Rename the function to ...
4334 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4335 (cleanup_sigint_signal_handler): Rename the function to ...
4336 (async_cleanup_sigint_signal_handler): ... this.
4337 (remote_interrupt): Rename the function to ...
4338 (sync_remote_interrupt): this. Update the names inside.
4339 (remote_interrupt_twice): Rename the function to ...
4340 (sync_remote_interrupt_twice): this. Update the names inside.
4341 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4342 (_initialize_remote): Update the names inside.
4343
4344 2013-08-02 Tom Tromey <tromey@redhat.com>
4345
4346 PR symtab/15719:
4347 * breakpoint.c (update_watchpoint, watchpoint_check)
4348 (watch_command_1): Update.
4349 * eval.c (fetch_subexp_value): Add "preserve_errors"
4350 parameter.
4351 * ppc-linux-nat.c (check_condition): Update.
4352 * value.h (fetch_subexp_value): Update.
4353
4354 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4355
4356 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4357 add_file_handler.
4358
4359 2013-08-01 Doug Evans <dje@google.com>
4360
4361 PR symtab/15691
4362 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4363 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4364 Add assert of sig_entry->dwo_unit == NULL.
4365 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4366 had already been read.
4367 (read_signatured_type): Set per_cu.tu_read.
4368
4369 PR symtab/15695
4370 * valops.c (value_struct_elt): Add missing call to check_typedef.
4371 (value_find_oload_method_list): Ditto.
4372
4373 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4374 effectively, struct symbol_search **.
4375 (make_cleanup_free_search_symbols): Change arg to struct
4376 symbol_search **. All callers updated.
4377 (compare_search_syms): Compare symtab file name and block as well.
4378 (search_symbols_equal): New function.
4379 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4380 New args new_head, new_tail. Result is now void. Remove dups after
4381 sorting the symbols.
4382 (search_symbols): Sort all found symbols once, after all have been
4383 found, and remove duplicates. Simplify cleanup tracking of result.
4384 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4385
4386 Further workarounds for binutils/15021.
4387 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4388 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4389 Watch for duplicate symtabs coming from type units.
4390 (compute_symtab_includes): Update call to
4391 recursively_compute_inclusions. Build vector of included symtabs
4392 instead of per_cus.
4393 * symtab.h (symtab_ptr): New typedef.
4394 (DEF_VEC_P (symtab_ptr)): New VEC type.
4395 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4396 instead.
4397
4398 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4399
4400 * cli/cli-script.c (script_from_file): Remove use of
4401 error_pre_print.
4402 * main.c (captured_main): Remove use of error_pre_print and
4403 quit_pre_print.
4404 * utils.c (error_pre_print, quit_pre_print): Remove.
4405 * utils.h (error_pre_print, quit_pre_print): Likewise.
4406
4407 2013-08-01 Yao Qi <yao@codesourcery.com>
4408
4409 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4410 with mi_getopt.
4411 (mi_cmd_stack_list_variables): Likewise.
4412
4413 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4414
4415 * exceptions.c (deprecated_throw_reason): Remove.
4416 * exceptions.h (deprecated_throw_reason): Remove.
4417
4418 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4419
4420 * remote-mips.c (mips_error): Replace use of
4421 deprecated_throw_reason with throw_verror. Use the error message
4422 passed to mips_error as the error message for throw_verror.
4423
4424 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4425
4426 * monitor.c (monitor_interrupt_query): Replace use of
4427 deprecated_throw_reason with quit.
4428 * nto-procfs.c (interrupt_query): Likewise.
4429 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4430 * remote-mips.c (mips_kill): Likewise.
4431 * remote.c (interrupt_query): Likewise.
4432
4433 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4434
4435 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4436 with call to fatal.
4437
4438 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4439 Yao Qi <yao@codesourcery.com>
4440
4441 * tracepoint.c (trace_dump_command): Select the current frame.
4442
4443 2013-07-30 Doug Evans <dje@google.com>
4444
4445 * dwarf2read.c (process_queue): Add type signature to debug output.
4446
4447 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4448
4449 * value.c (value_fetch_lazy): Mark optimized out values as such
4450 rather than raising an error.
4451
4452 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4453
4454 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4455 before checking which bits of the parent, not the child, value are
4456 valid.
4457
4458 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4459
4460 PR gdb/15715
4461 * top.c: Include "filenames.h".
4462 (set_history_filename): New function.
4463 (init_main): Install it as set hook of the "set history filename"
4464 command.
4465
4466 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4467
4468 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4469 attribute parameter.
4470 (dwarf2_const_value_data): Constify struct attribute parameter.
4471 (dwarf2_const_value): Constify struct attribute parameter.
4472 (dwarf2_const_value_attr): Constify struct attribute parameter.
4473 (lookup_die_type): Constify struct attribute parameter.
4474 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4475 (follow_die_ref_or_sig): Constify struct attribute parameter.
4476 (follow_die_ref): Constify struct attribute parameter.
4477 (follow_die_sig): Constify struct attribute parameter.
4478 (get_DW_AT_signature_type): Constify struct attribute parameter.
4479 (get_type_unit_group): Constify struct attribute parameter.
4480 (fill_in_loclist_baton): Constify struct attribute parameter.
4481 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4482 (type_unit_group): Constify struct attribute parameter.
4483
4484 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4485
4486 * dwarf2read.c (attr_form_is_block): Make argument const.
4487 (attr_form_is_section_offset): Make argument const.
4488 (attr_form_is_constant): Make argument const.
4489 (attr_form_is_ref): Make argument const.
4490
4491 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4492
4493 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4494 All uses updated.
4495 (attr_form_is_ref): Moved below attr_form_is_constant.
4496
4497 2013-07-29 Doug Evans <dje@google.com>
4498
4499 * main.c (captured_command_loop): Tweak comment.
4500
4501 * target.c (target_async_permitted_1): Fix comment.
4502
4503 * symtab.c (iterate_over_some_symtabs): Add comment.
4504
4505 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4506
4507 2013-07-27 Yao Qi <yao@codesourcery.com>
4508
4509 * NEWS: Mention that GDBserver now supports hardware
4510 watchpoints on the MIPS GNU/Linux target.
4511
4512 2013-07-27 Yao Qi <yao@codesourcery.com>
4513
4514 * Makefile.in (HFILES_NO_SRCDIR): Add
4515 common/mips-linux-watch.h.
4516 (mips-linux-watch.o): New rule.
4517 * common/mips-linux-watch.c: New.
4518 * common/mips-linux-watch.h: New.
4519 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4520 * mips-linux-nat.c: Include mips-linux-watch.h.
4521 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4522 to common/mips-linux-watch.h.
4523 (MAX_DEBUG_REGISTER): Likewise.
4524 (enum pt_watch_style): Likewise.
4525 (struct mips32_watch_regs): Likewise.
4526 (struct mips64_watch_regs): Likewise.
4527 (struct pt_watch_regs): Likewise.
4528 (struct mips_watchpoint): Likewise.
4529 (mips_linux_watch_get_irw_mask): Move to
4530 common/mips-linux-watch.c.
4531 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4532 (mips_linux_watch_get_watchlo): Likewise.
4533 (mips_linux_watch_set_watchlo): Likewise.
4534 (mips_linux_watch_get_watchhi): Likewise.
4535 (mips_linux_watch_set_watchhi): Likewise.
4536 (mips_linux_read_watch_registers): Likewise.
4537 (mips_linux_watch_type_to_irw): Likewise.
4538 (mips_linux_stopped_data_address, fill_mask): Likewise.
4539 (mips_linux_watch_try_one_watch): Likewise.
4540 (mips_linux_watch_populate_regs): Likewise.
4541
4542 2013-07-27 Yao Qi <yao@codesourcery.com>
4543
4544 * mips-linux-nat.c (get_irw_mask): Rename to ...
4545 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4546 'set' to 'n'. Update function comment. All callers changed.
4547 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4548 function comment. All callers changed.
4549 (get_num_valid): Rename to ...
4550 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4551 'set' to 'n'. Update function comment. All callers changed.
4552 (get_watchlo): Rename to ...
4553 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4554 'set' to 'n'. Update function comment. All callers changed.
4555 (set_watchlo): Rename to ...
4556 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4557 'set' to 'n'. Update function comment. All callers changed.
4558 (get_watchhi): Rename to ...
4559 (mips_linux_watch_get_watchhi): ... this. Update function
4560 comment. All callers changed.
4561 (set_watchhi): Rename to ...
4562 (mips_linux_watch_set_watchhi): ... this. Update function
4563 comment. All callers changed.
4564 (mips_linux_read_watch_registers): Update function comment.
4565 Add new parameters 'lwpid', 'watch_readback', and
4566 'watch_readback_valid'. Update.
4567 (type_to_irw): Rename to ...
4568 (mips_linux_watch_type_to_irw): ... this. Update function
4569 comment. All callers changed.
4570 (fill_mask): Update function comment.
4571 (try_one_watch): Rename to ...
4572 (mips_linux_watch_try_one_watch): ... this. Change the type
4573 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4574 (populate_regs_from_watches): Rename to ...
4575 (mips_linux_watch_populate_regs): ... this. Add parameter
4576 'current_watches'. All callers changed.
4577
4578 2013-07-27 Yao Qi <yao@codesourcery.com>
4579
4580 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4581 the code.
4582 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4583 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4584 (struct pt_watch_regs): Likewise.
4585 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4586 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4587 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4588 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4589 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4590
4591 2013-07-27 Yao Qi <yao@codesourcery.com>
4592
4593 * breakpoint.h: Include break-common.h.
4594 (enum target_hw_bp_type): Move to ...
4595 * common/break-common.h: ... here. New.
4596
4597 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4598
4599 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4600 process group regardless of having tty on stdin.
4601
4602 2013-07-25 Doug Evans <dje@google.com>
4603
4604 * linux-fork.h (detach_fork): Delete.
4605
4606 2013-07-25 Tom Tromey <tromey@redhat.com>
4607
4608 PR remote/15256, PR remote/15266:
4609 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4610 * monitor.c (monitor_detach): Use unpush_target.
4611 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4612 * remote-mips.c (mips_detach): Use unpush_target. Don't
4613 call mips_close.
4614 * remote-sim.c (gdbsim_detach): Use unpush_target.
4615 * target.c (pop_target): Remove.
4616 (pop_all_targets_above): Don't call target_close.
4617 (target_close): Assert that the target is unpushed.
4618 * target.h (pop_target): Don't declare.
4619 * tracepoint.c (tfile_open): Use unpush_target.
4620
4621 2013-07-25 Tom Tromey <tromey@redhat.com>
4622
4623 * linux-thread-db.c (init_thread_db_ops): Call
4624 complete_target_initialization.
4625 (_initialize_thread_db): Don't call add_target.
4626 * target.c (complete_target_initialization): New function.
4627 (add_target_with_completer): Call it.
4628 * target.h (complete_target_initialization): Declare.
4629
4630 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4631
4632 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4633 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4634 (HPPANBSD_SIZEOF_GREGS): New define.
4635 (hppaobsd_supply_gregset): Handle additional registers.
4636 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4637 we provide more registers now.
4638 (hppabsd_supply_gregset): Supply additional registers.
4639 (hppabsd_collect_gregset): Collect additional registers.
4640
4641 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4642
4643 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4644 (hppabsd_dwarf2_frame_init_reg): New function.
4645 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4646
4647 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4648
4649 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4650 'z' format code. Remove error for optimized out values, standard
4651 code will handle these fine.
4652
4653 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4654
4655 * NEWS: Mention new 'z' formatter.
4656 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4657 (_initialize_printcmd): Mention 'z' formatter in help text of the
4658 'x' command.
4659
4660 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4661
4662 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4663 formatting.
4664
4665 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4666
4667 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4668 interface can evaluate arguments. Fallback to the old mode if it
4669 cannot.
4670 (create_exception_master_breakpoint): Likewise.
4671 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4672 (struct sym_probe_fns elf_probe_fns): Export function above to the
4673 probe interface.
4674 * probe.c (can_evaluate_probe_arguments): New function.
4675 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4676 function pointer.
4677 (can_evaluate_probe_arguments): New function prototype.
4678 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4679 probe interface can evaluate arguments. Fallback to the old mode
4680 if it cannot.
4681 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4682 interface can evaluate arguments. Warning the user if it cannot.
4683 (stap_can_evaluate_probe_arguments): New function.
4684 (struct probe_ops stap_probe_ops): Export function above to the
4685 probe interface.
4686 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4687 New function pointer.
4688
4689 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4690
4691 * Makefile.in (SFILES): Add common/target-common.c.
4692 Add common/target-common.h to headers.
4693 (COMMON_OBS): Add target-common.o.
4694 (target-common.o): New target.
4695 * linux-nat.h (resume_kind): Move to common/target-common.h.
4696 * target.c (target_waitstatus_to_string): Move to
4697 common/target-common.c.
4698 * target.h: Include target-common.h.
4699 (target_waitkind): Move to common/target-common.h.
4700 (target_waitstatus): Likewise.
4701 (TARGET_WNOHANG): Likewise.
4702 * common/target-common.c: New file.
4703 * common/target-common.h: New file.
4704
4705 2013-07-24 Doug Evans <dje@google.com>
4706
4707 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4708 a warning.
4709
4710 2013-07-23 Yao Qi <yao@codesourcery.com>
4711
4712 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4713 parameter 'gdbarch'.
4714 (i386_stack_tramp_frame_sniffer): Caller update.
4715 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4716 parameter 'gdbarch' and 'target'.
4717 (i386_linux_core_read_description): Caller update.
4718 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4719 Likewise.
4720 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4721 declaration.
4722
4723 2013-07-23 Tom Tromey <tromey@redhat.com>
4724
4725 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4726 2013-07-22.
4727
4728 2013-07-22 Doug Evans <dje@google.com>
4729
4730 * exec.h (remove_target_sections): Delete arg abfd.
4731 * exec.c (exec_close): Update call to remove_target_sections.
4732 (remove_target_sections): Delete arg abfd.
4733 * solib.c (update_solib_list): Ditto.
4734 (reload_shared_libraries_1): Ditto.
4735 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4736 * target.h (struct target_section): Rename key to owner.
4737 All uses updated.
4738
4739 2013-07-22 Tom Tromey <tromey@redhat.com>
4740
4741 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4742
4743 2013-07-22 Tom Tromey <tromey@redhat.com>
4744
4745 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4746 Simplify cleanup handling.
4747
4748 2013-07-22 Tom Tromey <tromey@redhat.com>
4749
4750 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4751 on all return paths.
4752
4753 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4754
4755 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4756 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4757 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4758
4759 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4760
4761 * top.c (print_gdb_version): Add help, apropos description and
4762 url to online documentation.
4763
4764 2013-07-19 Hui Zhu <hui@codesourcery.com>
4765
4766 PR gdb/15692
4767 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4768
4769 2013-07-19 Yao Qi <yao@codesourcery.com>
4770
4771 * target.c (update_current_target): Change the default action
4772 of 'to_traceframe_info' from tcomplain to return_zero.
4773 * target.h (struct target_ops) <to_traceframe_info>: Add more
4774 comments.
4775 * valops.c (read_value_memory): Call
4776 traceframe_available_memory unconditionally.
4777
4778 2013-07-18 Yao Qi <yao@codesourcery.com>
4779
4780 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4781 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4782 symbol without prefix. If found, set its type to
4783 'mst_solib_trampoline'.
4784
4785 2013-07-17 Doug Evans <dje@google.com>
4786
4787 * NEWS: Mention "set print raw frame-arguments".
4788 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4789 * stack.c (print_raw_frame_arguments): New static global.
4790 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4791 (_initialize_stack): New command "set/show print raw frame-arguments".
4792 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4793 (set_print_raw, show_print_raw): New functions.
4794 (_initialize_valprint): New prefix command "set/show print raw".
4795 * valprint.h (value_print_options): Improve comments.
4796
4797 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4798 of all *list variables.
4799
4800 * gdbcmd.h (togglelist): Delete.
4801 * cli/cli-cmds.c (togglelist): Delete.
4802 (init_cmd_lists): Update.
4803 * cli/cli-cmds.h (togglelist): Delete.
4804
4805 2013-07-17 Tom Tromey <tromey@redhat.com>
4806
4807 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4808 dwarf2_per_objfile.
4809
4810 2013-07-16 Doug Evans <dje@google.com>
4811
4812 * nto-tdep.c (nto_relocate_section_addresses): Update,
4813 target_section.bfd deleted.
4814 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4815 * s390-tdep.c (s390_load): Ditto.
4816 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4817
4818 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4819
4820 * common/format.c (parse_format_string): Add checks for NULL
4821 character before calling strchr.
4822
4823 2013-07-16 Doug Evans <dje@google.com>
4824
4825 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4826 temp_pathname argument.
4827 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4828 when opening the file fails.
4829
4830 * target.h (struct target_section): Delete member bfd.
4831 All users updated to use the_bfd_section->owner instead.
4832 * exec.c (add_to_section_table): Assert bfd is expected value.
4833 Remove initialization of target_section.bfd.
4834 (remove_target_sections): Update.
4835 (section_table_available_memory): Update.
4836 (section_table_xfer_memory_partial): Update.
4837 (print_section_info): Update.
4838 (exec_set_section_address): Update.
4839 * record-full.c (record_full_core_xfer_partial): Update.
4840 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4841 * solib-target.c (solib_target_relocate_section_addresses): Update.
4842 * symfile.c (build_section_addr_info_from_section_table): Update.
4843 * target.c (memory_xfer_live_readonly_partial): Update.
4844 (memory_xfer_partial_1): Update.
4845
4846 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4847
4848 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4849 now available for embedded (BookE) and server (BookS) processors,
4850 correct mentions of 'booke' and adjust comments accordingly in order to
4851 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4852 (have_ptrace_booke_interface): Rename function and variable
4853 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4854 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4855 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4856 'hwdebug_point_cmp'. Update all uses.
4857 (booke_find_thread_points_by_tid): Rename function
4858 'booke_find_thread_points_by_tid' to
4859 'hwdebug_find_thread_points_by_tid'. Update all uses.
4860 (booke_insert_point): Rename function 'booke_insert_point' to
4861 'hwdebug_insert_point'. Update all uses.
4862 (booke_remove_point): Rename function 'booke_remove_point' to
4863 'hwdebug_remove_point'. Update all uses.
4864
4865 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4866
4867 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4868 numbers with enum values.
4869
4870 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4871
4872 PR threads/13217
4873 * thread.c (thread_apply_all_command): Check for valid threads
4874 and thread count.
4875 (thread_array_cleanup): New struct.
4876 (set_thread_refcount): New function.
4877
4878 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4879
4880 * infcmd.c (default_print_one_register_info): Reuse function
4881 print_hex_chars.
4882
4883 2013-07-10 Tom Tromey <tromey@redhat.com>
4884
4885 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4886 (ada-exp.o): New target.
4887
4888 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4889
4890 * mt-tdep.c (mt_registers_info): Call
4891 get_no_prettyformat_print_options instead of
4892 get_raw_print_options (regression by last patch from Doug
4893 Evans).
4894
4895 2013-07-09 Pedro Alves <palves@redhat.com>
4896
4897 Checked in by Joel Brobecker <brobecker@adacore.com>.
4898 * ada-lang.c (coerce_unspec_val_to_type): Use
4899 value_optimized_out_const.
4900 * value.c (value_optimized_out_const): New function.
4901 * value.h (value_optimized_out_const): New declaration.
4902
4903 2013-07-09 Doug Evans <dje@google.com>
4904
4905 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4906 Enum values rename as well. All uses updated.
4907 * valprint.h (value_print_options): Rename member pretty to
4908 pretty format. Rename member prettyprint_arrays to
4909 prettyformat_arrays. Rename member prettyprint_structs to
4910 prettyformat_structs. All uses updated.
4911 (get_no_prettyformat_print_options): Renamed from
4912 get_raw_print_options.
4913 * valprint.c (get_no_prettyformat_print_options): Renamed from
4914 get_raw_print_options. All callers updated.
4915 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4916 All callers updated.
4917 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4918 All callers updated.
4919 (_initialize_valprint): Improve help text for "set print pretty" and
4920 "set print arrays".
4921
4922 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4923
4924 * value.c (value_bits_valid): Revert previous change, and change
4925 by Pedro on 2013-07-04, due to regressions in
4926 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4927
4928 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4929 Pedro Alves <palves@redhat.com>
4930
4931 * value.c (value_bits_valid): If the value is not lval_computed
4932 or has no check validity handler then the answer is the
4933 optimized_out flag, otherwise defer to the handler.
4934
4935 2013-07-06 Eli Zaretskii <eliz@gnu.org>
4936
4937 * top.c (print_gdb_configuration): Explain in output of
4938 --configuration what does "relocatable" mean.
4939
4940 * main.c (print_gdb_help): Regroup options in the --help text.
4941 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
4942 the relevant discussions.
4943
4944 2013-07-06 Yao Qi <yao@codesourcery.com>
4945
4946 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
4947 Remove parameter 'lsal'.
4948 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
4949 to inner block. Caller update.
4950 (base_breakpoint_create_breakpoints_sal): Update.
4951 (bkpt_create_breakpoints_sal): Likewise.
4952 (tracepoint_create_breakpoints_sal): Likewise.
4953 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
4954 element 0 of vector 'canonical->sals'.
4955
4956 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
4957
4958 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
4959 register number instead of the pseudo register one.
4960 (rs6000_dwarf2_reg_to_regnum): Likewise.
4961
4962 2013-07-04 Pedro Alves <palves@redhat.com>
4963
4964 * findvar.c (value_of_register): Use allocate_optimized_out_value
4965 if the register has been optimized out, instead of
4966 set_value_optimized_out.
4967 * frame-unwind.c (frame_unwind_got_optimized): Use
4968 allocate_optimized_out_value.
4969
4970 2013-07-04 Pedro Alves <palves@redhat.com>
4971
4972 * value.c (value_bits_valid): If the value is not lval_computed,
4973 or doesn't have a check_validity hook, assume the value is entirely
4974 valid.
4975
4976 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4977
4978 * stack.c (read_frame_arg): No longer fetch lazy values.
4979 * value.c (value_optimized_out): If the value is not already
4980 marked optimized out, and is lazy then fetch it.
4981 (value_primitive_field): Move optimized out check to later in the
4982 function, after we have loaded any lazy values.
4983 (value_fetch_lazy): Use optimized out flag directly rather than
4984 calling optimized_out method.
4985
4986 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
4987
4988 * valops.c: Don't include "user-regs.h".
4989 (value_fetch_lazy): Moved to value.c.
4990 * value.c: Include "user-regs.h".
4991 (value_fetch_lazy): Moved from valops.c.
4992
4993 2013-07-04 Yao Qi <yao@codesourcery.com>
4994
4995 Revert:
4996 2013-06-27 Yao Qi <yao@codesourcery.com>
4997
4998 * common/create-version.sh: Update comments. Handle the case
4999 that TARGET_ALIAS is empty.
5000
5001 2013-07-03 Pedro Alves <palves@redhat.com>
5002
5003 * Makefile.in (config.status): Depend on development.sh.
5004 (aclocal_m4_deps): Add libmcheck.m4.
5005 * acinclude.m4: Include libmcheck.m4.
5006 * configure.ac: Source development.sh instead of setting
5007 'development' here. --enable-libmcheck/--disable-libmcheck code
5008 factored out to GDB_AC_LIBMCHECK. Run it.
5009 * development.sh: New file.
5010 * libmcheck.m4: New file.
5011 * configure: Regenerate.
5012
5013 2013-07-02 Tom Tromey <tromey@redhat.com>
5014
5015 * contrib/ari/update-web-ari.sh: Update for version.in change.
5016
5017 2013-07-02 Tom Tromey <tromey@redhat.com>
5018
5019 * common/ptid.h: Comment fixes.
5020
5021 2013-07-01 Tom Tromey <tromey@redhat.com>
5022
5023 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5024 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5025 (dwarf2_read_index, create_all_comp_units): Update.
5026
5027 2013-07-01 Tom Tromey <tromey@redhat.com>
5028
5029 * configure.ac (build_warnings): Add -Wold-style-definition.
5030 * configure: Rebuild.
5031 * machoread.c (_initialize_machoread): Use "(void)".
5032 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5033 use "(void)".
5034
5035 2013-07-01 Tom Tromey <tromey@redhat.com>
5036
5037 * configure.ac (build_warnings): Add -Wold-style-declaration.
5038 * configure: Rebuild.
5039 * dsrec.c (make_srec): Use "static const", not "const static".
5040 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5041 not "const static".
5042 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5043 Use "static const", not "const static".
5044 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5045 not "const static".
5046 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5047 not "const static".
5048 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5049 not "const static".
5050 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5051 not "const static".
5052 (v850_dbtrap_breakpoint_from_pc): Likewise.
5053 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5054 not "const static".
5055
5056 2013-07-01 Tom Tromey <tromey@redhat.com>
5057
5058 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5059 * configure: Rebuild.
5060
5061 2013-07-01 Pedro Alves <palves@redhat.com>
5062
5063 * defs.h: Include "pathmax.h".
5064 * utils.c: Don't include sys/param.h.
5065 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5066 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5067 instead of MAXPATHLEN.
5068 * solib-sunos.c: Don't include sys/param.h.
5069 * xcoffread.c: Don't include sys/param.h.
5070 * bsd-kvm.c: Don't include sys/param.h.
5071 * darwin-nat.c: Don't include sys/param.h.
5072 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5073 * darwin-nat-info.c: Don't include sys/param.h.
5074 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5075 MAXPATHLEN.
5076 * i386obsd-nat.c: Don't include sys/param.h.
5077 * inf-child.c: Don't include sys/param.h.
5078 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5079 * linux-fork.c: Don't include sys/param.h.
5080 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5081 * linux-nat.c: Don't include sys/param.h.
5082 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5083 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5084 * m68klinux-nat.c: Don't include sys/param.h.
5085 * nbsd-nat.c: Don't include sys/param.h.
5086 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5087 * ppc-linux-nat.c: Don't include sys/param.h.
5088 * rs6000-nat.c: Don't include sys/param.h.
5089 * spu-linux-nat.c. Don't include sys/param.h.
5090 * windows-nat.c: Don't include sys/param.h.
5091 * xtensa-linux-nat.c: Don't include sys/param.h.
5092 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5093
5094 2013-07-01 Pedro Alves <palves@redhat.com>
5095
5096 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5097 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5098 * gnulib/aclocal.m4: Regenerate.
5099 * gnulib/config.in: Regenerate.
5100 * gnulib/configure: Regenerate.
5101 * gnulib/import/pathmax.h: New file.
5102 * gnulib/import/Makefile.am: Regenerate.
5103 * gnulib/import/Makefile.in: Regenerate.
5104 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5105 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5106 * gnulib/import/m4/pathmax.m4: New file.
5107
5108 2013-07-01 Pedro Alves <palves@redhat.com>
5109
5110 * configure.ac (GDBINIT): Define, depending on host.
5111 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5112 * top.c (PATH_MAX): Delete fallback definition.
5113 (GDBINIT_FILENAME): Delete.
5114 (gdbinit): Reimplement as const char array set to the GDBINIT
5115 string constant.
5116 * top.h (gdbinit): Make const.
5117 * configure, config.in: Regenerate.
5118
5119 2013-07-01 Pedro Alves <palves@redhat.com>
5120
5121 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5122 * cli/cli-cmds.h (source_script): Likewise.
5123 * exceptions.c (catch_command_errors_const): New function.
5124 * exceptions.h (catch_command_errors_const): Declare.
5125 * main.c (get_init_files): Make parameters const, and adjust.
5126 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5127 'local_gdbinit' locals const. Adjust to use
5128 catch_command_errors_const.
5129 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5130 'local_gdbinit' locals const.
5131
5132 2013-07-01 Pedro Alves <palves@redhat.com>
5133
5134 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5135 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5136 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5137 <unistd.h>.
5138
5139 2013-07-01 Pedro Alves <palves@redhat.com>
5140
5141 Import the "unistd" gnulib module.
5142 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5143 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5144 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5145 import/m4/unistd_h.m4.
5146 * gnulib/aclocal.m4: Renenerate.
5147 * gnulib/config.in: Renenerate.
5148 * gnulib/configure: Renenerate.
5149 * gnulib/import/Makefile.am: Renenerate.
5150 * gnulib/import/Makefile.in: Renenerate.
5151 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5152 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5153 * gnulib/import/m4/off_t.m4: New file.
5154 * gnulib/import/m4/ssize_t.m4: New file.
5155 * gnulib/import/m4/sys_types_h.m4: New file.
5156 * gnulib/import/m4/unistd_h.m4: New file.
5157 * gnulib/import/sys_types.in.h: New file.
5158 * gnulib/import/unistd.c: New file.
5159 * gnulib/import/unistd.in.h: New file.
5160
5161 2013-07-01 Pedro Alves <palves@redhat.com>
5162
5163 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5164 defined instead of checking HAVE_UNISTD_H.
5165
5166 2013-07-01 Pedro Alves <palves@redhat.com>
5167
5168 Reimport gnulib from scratch.
5169 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5170 import/m4/onceonly.m4.
5171 * gnulib/aclocal.m4: Renegerate.
5172 * gnulib/config.in: Renegerate.
5173 * gnulib/configure: Renegerate.
5174 * gnulib/import/Makefile.in: Renegerate.
5175 * gnulib/import/extra/update-copyright: Renegerate.
5176 * gnulib/import/m4/onceonly.m4: Delete.
5177
5178 2013-07-01 Pedro Alves <palves@redhat.com>
5179
5180 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5181
5182 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5183
5184 Code cleanup.
5185 * remote.c (async_remote_interrupt_twice): Make it static.
5186 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5187
5188 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5189
5190 * ia64-linux-tdep.c: Include <ctype.h>.
5191 (ia64_linux_stap_is_single_operand): New function.
5192 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5193
5194 2013-06-28 Tom Tromey <tromey@redhat.com>
5195
5196 * Makefile.in (version.c): Use version.in, not
5197 common/version.in.
5198 * common/create-version.sh: Likewise.
5199 * common/version.in: Move...
5200 * version.in: ...here.
5201
5202 2013-06-28 Pedro Alves <palves@redhat.com>
5203
5204 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5205 here.
5206 * utils.h (pagination_enabled): Declare.
5207
5208 2013-06-28 Pedro Alves <palves@redhat.com>
5209
5210 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5211 Move higher up in file.
5212
5213 2013-06-28 Tom Tromey <tromey@redhat.com>
5214
5215 * tracepoint.c (deprecated_readline_begin_hook)
5216 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5217 declare.
5218
5219 2013-06-28 Pedro Alves <palves@redhat.com>
5220
5221 PR tui/14880
5222 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5223 checking if they're available.
5224 * value.c (value_available_contents_eq): Change comment.
5225 * value.h (value_available_contents_eq): Expand comment.
5226
5227 2013-06-27 Tom Tromey <tromey@redhat.com>
5228
5229 * target.c (find_run_target): Remove.
5230 * target.h (find_run_target): Remove.
5231
5232 2013-06-27 Tom Tromey <tromey@redhat.com>
5233
5234 * corelow.c (core_gdbarch): Now static.
5235
5236 2013-06-27 Tom Tromey <tromey@redhat.com>
5237
5238 * target.c (target_struct_index): Remove.
5239
5240 2013-06-27 Pedro Alves <palves@redhat.com>
5241
5242 * infrun.c: Remove comment describing the 'stepping over runtime
5243 loader dynamic symbol resolution code' mechanism; moved to
5244 gdbint.texinfo.
5245
5246 2013-06-27 Pedro Alves <palves@redhat.com>
5247
5248 * exceptions.c (catch_command_errors): Remove spurious space.
5249 * exceptions.h (catch_command_errors): Second parameter is "arg",
5250 not "command".
5251
5252 2013-06-27 Yao Qi <yao@codesourcery.com>
5253
5254 * common/create-version.sh: Update comments. Handle the case
5255 that TARGET_ALIAS is empty.
5256
5257 2013-06-26 Pedro Alves <palves@redhat.com>
5258
5259 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5260 comment.
5261
5262 2013-06-26 Pedro Alves <palves@redhat.com>
5263
5264 * infrun.c: Update comments on stepping over runtime loader
5265 dynamic symbol resolution code.
5266
5267 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5268
5269 * ax-gdb.h (union exp_element): Forward declare.
5270 * parser-defs.h: Include expression.h.
5271
5272 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5273
5274 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5275
5276 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5277
5278 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5279
5280 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5281
5282 Fix trace-status to output proper start-time and stop-time.
5283 * tracepoint.c (trace_status_command): Fix type of printf arg to
5284 prevent improper type conversion.
5285 (trace_status_mi): Likewise.
5286
5287 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5288
5289 * mips-tdep.c (mips_next_pc): Fix a typo.
5290
5291 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5292
5293 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5294
5295 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5296 Yao Qi <yao@codesourcery.com>
5297
5298 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5299 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5300 * mi/mi-main.c (print_variable_or_computed): New function.
5301 (mi_cmd_trace_frame_collected): New function.
5302 * tracepoint.c (find_trace_state_variable_by_number): New.
5303 (struct traceframe_info): Move to tracepoint.h
5304 (struct collection_list): Likewise.
5305 (do_collect_symbol): Include locals and arguments in the
5306 collected variables list.
5307 (clear_collection_list): Clear wholly collected variables list
5308 and computed variables list.
5309 (append_exp): New function.
5310 (encode_actions_1): Include variables in the wholly
5311 collected variables list. Include memory ranges and
5312 full-fledged expressions in the computed expressions list.
5313 (encode_actions): Move some code to ...
5314 Return the cleanup chain.
5315 (encode_actions_rsp): ... here. New function.
5316 (get_traceframe_location, get_traceframe_info): Remove static.
5317 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5318 (struct collection_list): Moved from tracepoint.c. Add two
5319 new fields 'wholly_collected' and 'computed'.
5320 (find_trace_state_variable_by_number): Declare.
5321 (encode_actions): Adjust declaration.
5322 (encode_actions_rsp): Declare.
5323 (get_traceframe_info, get_traceframe_location): Declare.
5324
5325 * NEWS: Mention new MI command -trace-frame-collected.
5326
5327 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5328 Yao Qi <yao@codesourcery.com>
5329
5330 * ctf.c (ctf_traceframe_info): Push trace state variables
5331 present in the trace data into the traceframe info object.
5332 * breakpoint.c (DEF_VEC_I): Remove.
5333 * common/filestuff.c (DEF_VEC_I): Likewise.
5334 * dwarf2loc.c (DEF_VEC_I): Likewise.
5335 * mi/mi-main.c (DEF_VEC_I): Likewise.
5336 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5337 * features/traceframe-info.dtd: Add tvar element and its
5338 attributes.
5339 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5340 (build_traceframe_info): Push trace state variables present in
5341 the trace data into the traceframe info object.
5342 (traceframe_info_start_tvar): New function.
5343 (tvar_attributes): New.
5344 (traceframe_info_children): Add "tvar" element.
5345 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5346
5347 * NEWS: Mention the change in GDB and GDBserver.
5348
5349 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5350 Yao Qi <yao@codesourcery.com>
5351
5352 * tracepoint.c (trace_dump_command): Move code to ...
5353 (get_traceframe_location): ... here. New.
5354
5355 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5356 Yao Qi <yao@codesourcery.com>
5357
5358 * tracepoint.c (trace_dump_command): GDB emits an error
5359 instead of a warning when a traceframe is not selected.
5360
5361 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5362 Yao Qi <yao@codesourcery.com>
5363
5364 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5365 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5366 in collection_list.
5367 (do_clear_collection_list, init_collection_list): New.
5368 (encode_actions): Add local variables 'tracepoint_list' and
5369 'stepping_list'. Call init_collection_list and make cleanup
5370 which calls do_clear_collection_list. Don't call
5371 clear_collection_list.
5372 (_initialize_tracepoint): Delete references to
5373 'tracepoint_list' and 'stepping_list'.
5374
5375 2013-06-25 Tom Tromey <tromey@redhat.com>
5376
5377 * common/create-version.sh (date): Use "$", not "$$" in sed
5378 expression.
5379
5380 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5381
5382 * NEWS (New targets): Add entry for TI MSP430.
5383
5384 2013-06-25 Yao Qi <yao@codesourcery.com>
5385
5386 * remote.c (remote_start_remote): Move code to upload tsv
5387 earlier.
5388
5389 2013-06-25 Yao Qi <yao@codesourcery.com>
5390 Hui Zhu <hui@codesourcery.com>
5391 Pedro Alves <palves@redhat.com>
5392
5393 PR breakpoints/15075
5394 PR breakpoints/15434
5395 * breakpoint.c (bpstat_stop_status): Call
5396 b->ops->after_condition_true.
5397 (update_dprintf_command_list): Don't append "continue" command
5398 to the command list of dprintf breakpoint.
5399 (base_breakpoint_after_condition_true): New function.
5400 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5401 (dprintf_after_condition_true): New function.
5402 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5403 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5404
5405 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5406
5407 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5408 (ALLDEPFILES): Add msp430-tdep.c.
5409 * configure.tgt (msp430*-*-elf): New target.
5410 * msp430-tdep.c: New file.
5411
5412 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5413
5414 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5415 microMIPS synthetic symbols.
5416
5417 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5418
5419 * objfiles.h (pc_in_section): New prototype.
5420 (in_plt_section): Remove name argument, replace prototype with
5421 static inline function.
5422 * mips-tdep.h: Include "objfiles.h".
5423 (in_mips_stubs_section): New function.
5424 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5425 in_solib_call_trampoline member.
5426 (hppa_in_solib_call_trampoline): Remove name argument.
5427 * objfiles.c (pc_in_section): New function.
5428 (in_plt_section): Remove function.
5429 * mips-linux-tdep.c: Include "objfiles.h".
5430 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5431 name argument. Return 1 rather than the low 16-bit halfword of
5432 any instruction examined.
5433 (mips_linux_in_dynsym_resolve_code): Update
5434 mips_linux_in_dynsym_stub call accordingly.
5435 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5436 rather than an equivalent hand-coded sequence.
5437 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5438 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5439 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5440 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5441 in_opd_section.
5442 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5443 on call to tdep->in_solib_call_trampoline.
5444 (hppa_in_solib_call_trampoline): Remove name argument, update
5445 according to in_plt_section change.
5446 (hppa_skip_trampoline_code): Update according to in_plt_section
5447 change.
5448 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5449 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5450 Likewise.
5451 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5452 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5453 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5454 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5455 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5456 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5457 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5458 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5459 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5460 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5461 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5462 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5463 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5464
5465 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5466
5467 * common/create-version.sh: Fix expansion of $host_alias
5468 and $target_alias in generation of HOST_NAME and TARGET_NAME
5469 (resp.).
5470
5471 2013-06-24 Tom Tromey <tromey@redhat.com>
5472
5473 * common/create-version.sh: New file.
5474 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5475 create-version.sh.
5476 (HFILES_NO_SRCDIR): Use common/version.h.
5477 * version.in: Move to ...
5478 * common/version.in: ... here. Replace date with "DATE".
5479 * version.h: Move to ...
5480 * common/version.h: ... here.
5481
5482 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5483
5484 * gdb/gnulib/Makefile.in: Update date in copyright header.
5485 * gdb/gnulib/configure.ac: Ditto.
5486 * gdb/gnulib/update-gnulib.sh: Ditto.
5487
5488 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5489
5490 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5491 "gdb/gnulib/import".
5492
5493 2013-06-21 Will Newton <will.newton@linaro.org>
5494
5495 * doublest.c (ldfrexp): Remove function.
5496 (convert_doublest_to_floatformat): Call frexpl instead of
5497 ldfrexp.
5498
5499 2013-06-21 Will Newton <will.newton@linaro.org>
5500
5501 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5502 * gnulib/aclocal.m4: Regenerate.
5503 * gnulib/config.in: Regenerate.
5504 * gnulib/configure: Regenerate.
5505 * gnulib/import/Makefile.am: Update.
5506 * gnulib/import/Makefile.in: Update.
5507 * gnulib/import/m4/gnulib-cache.m4: Update.
5508 * gnulib/import/m4/gnulib-comp.m4: Update.
5509 * gnulib/import/float+.h: Import.
5510 * gnulib/import/float.c: Import.
5511 * gnulib/import/float.in.h: Import.
5512 * gnulib/import/fpucw.h: Import.
5513 * gnulib/import/frexp.c: Import.
5514 * gnulib/import/frexpl.c: Import.
5515 * gnulib/import/isnan.c: Import.
5516 * gnulib/import/isnand-nolibm.h: Import.
5517 * gnulib/import/isnand.c: Import.
5518 * gnulib/import/isnanl-nolibm.h: Import.
5519 * gnulib/import/isnanl.c: Import.
5520 * gnulib/import/itold.c: Import.
5521 * gnulib/import/m4/exponentd.m4: Import.
5522 * gnulib/import/m4/exponentl.m4: Import.
5523 * gnulib/import/m4/float_h.m4: Import.
5524 * gnulib/import/m4/fpieee.m4: Import.
5525 * gnulib/import/m4/frexp.m4: Import.
5526 * gnulib/import/m4/frexpl.m4: Import.
5527 * gnulib/import/m4/isnand.m4: Import.
5528 * gnulib/import/m4/isnanl.m4: Import.
5529 * gnulib/import/m4/math_h.m4: Import.
5530 * gnulib/import/math.c: Import.
5531 * gnulib/import/math.in.h: Import.
5532
5533 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5534
5535 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5536 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5537 signature_INTEL_edx comparisons.
5538
5539 2013-06-20 Doug Evans <dje@google.com>
5540
5541 symtab/15652
5542 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5543 All callers updated.
5544 (open_dwp_file): If we can't find the dwp file, search the basename
5545 in debug-file-directory.
5546
5547 * dwarf2read.c (struct dwp_file): Fix comment.
5548 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5549
5550 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5551 better.
5552
5553 2013-06-20 Yao Qi <yao@codesourcery.com>
5554
5555 * breakpoint.c (create_breakpoint): Fix code indentation.
5556
5557 2013-06-20 Yao Qi <yao@codesourcery.com>
5558
5559 * breakpoint.c (create_breakpoints_sal_default): Remove
5560 parameter 'lsal'. Update declaration.
5561 (bkpt_create_breakpoints_sal): Caller update.
5562 (tracepoint_create_breakpoints_sal): Likewise.
5563
5564 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5565 Yao Qi <yao@codesourcery.com>
5566
5567 * NEWS: Mention the new option '--skip-unavailable' of command
5568 -data-list-register-values.
5569 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5570 --skip-unavailable option. Adjust to use output_register.
5571 (output_register): Add new 'skip_unavailable' parameter.
5572 Handle it.
5573
5574 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5575
5576 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5577 common/i386-gcc-cpuid.h.
5578 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5579 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5580 Copy the latest version from upstream gcc.
5581 * common/linux-btrace.c: Include i386-cpuid.h.
5582 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5583 call to i386_cpuid.
5584 (cpu_supports_btrace): Likewise.
5585 * go32-nat.c: Include i386-cpuid.h.
5586 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5587
5588 2013-06-19 Doug Evans <dje@google.com>
5589
5590 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5591 (get_section_index): Ditto.
5592
5593 2013-06-19 Tom Tromey <tromey@redhat.com>
5594
5595 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5596 "dprintf" help.
5597
5598 2013-06-18 Doug Evans <dje@google.com>
5599
5600 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5601 before using it.
5602 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5603 Move test of cu_index closer to use. Print complaint if cu_index
5604 is bad.
5605
5606 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5607
5608 * machoread.c (oso_vector): Delete this global.
5609 (macho_register_oso): Add new parameter "oso_vector_ptr".
5610 Use it instead of the "oso_vector" global.
5611 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5612 (macho_symfile_read): Use a local oso_vector, to be free'ed
5613 at the end of this function, in place of the old "oso_vector"
5614 global. Update various function calls accordingly. Use one
5615 single cleanup chain for the entire function.
5616
5617 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5618
5619 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5620 DWARF2_PER_OBJFILE by uses of DATA instead.
5621
5622 2013-06-18 Tom Tromey <tromey@redhat.com>
5623
5624 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5625 argument.
5626 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5627 Special case signals other than GDB_SIGNAL_TRAP.
5628 (explains_signal_watchpoint): New function.
5629 (base_breakpoint_explains_signal): Add 'sig' argument.
5630 (initialize_breakpoint_ops): Set 'explains_signal' method for
5631 watchpoints.
5632 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5633 signal argument.
5634 (bpstat_explains_signal): Likewise.
5635 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5636
5637 2013-06-18 Tom Tromey <tromey@redhat.com>
5638
5639 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5640
5641 2013-06-18 Tom Tromey <tromey@redhat.com>
5642
5643 * python/python.c (finish_python_initialization): Decref
5644 'pythondir' on failure path as well.
5645
5646 2013-06-18 Tom Tromey <tromey@redhat.com>
5647
5648 PR symtab/15391:
5649 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5650 after taking bits_to_skip into account. Sign extend byte_offset.
5651 * utils.h (gdb_sign_extend): Declare.
5652 * utils.c (gdb_sign_extend): New function.
5653
5654 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5657
5658 2013-06-17 Pierre Muller <muller@sourceware.org>
5659
5660 * corelow.c (core_open): Print GDB signal name instead of target
5661 signal number.
5662
5663 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5664
5665 * .gitignore: Add /gcore.
5666
5667 2013-06-13 Doug Evans <dje@google.com>
5668
5669 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5670 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5671
5672 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5673
5674 * stack.c (backtrace_command_1): Fix indentation.
5675
5676 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5677
5678 * window-nat.c (thread_rec): Add missing empty line after
5679 local variable declaration.
5680
5681 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5682
5683 * windows-nat.c (thread_rec): Revert format used to print
5684 error code returned by SuspendThread from %d back to %u.
5685
5686 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5687
5688 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5689 ID in debug trace.
5690 (get_windows_debug_event): Likewise, for all debug traces.
5691
5692 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5693
5694 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5695 warning message.
5696
5697 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5698 Yao Qi <yao@codesourcery.com>
5699
5700 * mi/mi-main.c (get_register): Remove declaration.
5701 (output_register): Declare.
5702 (mi_cmd_data_list_register_values): Remove local variable
5703 'tuple_cleanup'. Move some code into output_register.
5704 (get_register): Renamed to ...
5705 (output_register): ... this. Output the register's
5706 "number" ui_out tuple here.
5707
5708 2013-06-07 Pedro Alves <palves@redhat.com>
5709
5710 * darwin-nat.c: Fix formating in copyright header.
5711 * darwin-nat.h: Likewise.
5712 * gnu-nat.c: Likewise.
5713 * machoread.c: Likewise.
5714
5715 2013-06-07 Pedro Alves <palves@redhat.com>
5716
5717 PR server/14823
5718 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5719 static. Output a global target description pointer.
5720 (init_registers_${name}): Adjust to initialize a
5721 target description structure.
5722
5723 2013-06-07 Will Newton <will.newton@linaro.org>
5724
5725 * printcmd.c (build_address_symbolic): Call
5726 gdbarch_addr_bits_remove for text minimal symbols.
5727
5728 2013-06-07 Will Newton <will.newton@linaro.org>
5729
5730 * MAINTAINERS: Add myself to Write After Approval.
5731
5732 2013-06-07 Yao Qi <yao@codesourcery.com>
5733
5734 * tracepoint.c (start_tracing): Move code to ...
5735 (trace_reset_local_state): ... here. New.
5736 (disconnect_tracing): Don't call set_current_traceframe,
5737 set_tracepoint_num, and set_traceframe_context. Call
5738 trace_reset_local_state instead.
5739 (tfile_close): Call trace_reset_local_state.
5740 * ctf.c (ctf_close): Likewise.
5741 * remote.c (remote_close): Likewise.
5742 * tracepoint.h (trace_reset_local_state): Declare.
5743
5744 2013-06-06 Doug Evans <dje@google.com>
5745
5746 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5747 and fix header docs.
5748
5749 2013-06-05 Doug Evans <dje@google.com>
5750 Keith Seitz <keiths@redhat.com>
5751
5752 PR 15519
5753 * cp-namespace.c (find_symbol_in_baseclass): Call
5754 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5755 Check result of call to lookup_symbol_static.
5756 Call lookup_static_symbol_aux unconditionally.
5757 Call check_typedef on base types before accessing them.
5758 (cp_lookup_nested_symbol): Fix comment.
5759
5760 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5761
5762 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5763 minimal symbols pointing to function descriptors.
5764
5765 2013-06-05 Tom Tromey <tromey@redhat.com>
5766
5767 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5768
5769 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5770 Pedro Alves <palves@redhat.com>
5771
5772 * remote.c (remote_wait_as): Restore signal handler before returning
5773 when GDB gets a notification.
5774
5775 2013-06-04 Gary Benson <gbenson@redhat.com>
5776
5777 PR 2328
5778 * breakpoint.h (handle_solib_event): Moved function declaration
5779 to solib.h.
5780 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5781 (bpstat_stop_status): Pass new argument to handle_solib_event.
5782 * solib.h (update_solib_breakpoints): New function declaration.
5783 (handle_solib_event): Moved function declaration from
5784 breakpoint.h.
5785 * solib.c (update_solib_breakpoints): New function.
5786 (handle_solib_event): Moved function from breakpoint.c.
5787 Updated to call solib_ops->handle_event if not NULL.
5788 * solist.h (target_so_ops): New fields "update_breakpoints" and
5789 "handle_event".
5790 * infrun.c (set_stop_on_solib_events): New function.
5791 (_initialize_infrun): Use the above for "set
5792 stop-on-solib-events".
5793 (handle_inferior_event): Pass new argument to handle_solib_event.
5794 * solib-svr4.c (probe.h): New include.
5795 (svr4_free_library_list): New forward declaration.
5796 (probe_action): New enum.
5797 (probe_info): New struct.
5798 (probe_info): New static variable.
5799 (NUM_PROBES): New definition.
5800 (svr4_info): New fields "using_xfer", "probes_table" and
5801 "solib_list".
5802 (free_probes_table): New function.
5803 (free_solib_list): New function.
5804 (svr4_pspace_data_cleanup): Free probes table and solib list.
5805 (svr4_copy_library_list): New function.
5806 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5807 (svr4_read_so_list): New parameter "prev_lm".
5808 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5809 (svr4_current_sos): New function.
5810 (probe_and_action): New struct.
5811 (hash_probe_and_action): New function.
5812 (equal_probe_and_action): Likewise.
5813 (register_solib_event_probe): Likewise.
5814 (solib_event_probe_at): Likewise.
5815 (solib_event_probe_action): Likewise.
5816 (solist_update_full): Likewise.
5817 (solist_update_incremental): Likewise.
5818 (disable_probes_interface_cleanup): Likewise.
5819 (svr4_handle_solib_event): Likewise.
5820 (svr4_update_solib_event_breakpoint): Likewise.
5821 (svr4_update_solib_event_breakpoints): Likewise.
5822 (svr4_create_solib_event_breakpoints): Likewise.
5823 (enable_break): Free probes table before creating breakpoints.
5824 Use svr4_create_solib_event_breakpoints to create breakpoints.
5825 (svr4_solib_create_inferior_hook): Free the solib list.
5826 (_initialize_svr4_solib): Initialise
5827 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5828
5829 2013-06-04 Gary Benson <gbenson@redhat.com>
5830
5831 * target.h (target_ops): New field
5832 "to_augmented_libraries_svr4_read".
5833 (target_augmented_libraries_svr4_read): New macro.
5834 * target.c (update_current_target): Handle
5835 to_augmented_libraries_svr4_read.
5836 * remote.c (remote_state): New field
5837 "augmented_libraries_svr4_read".
5838 (remote_augmented_libraries_svr4_read_feature): New function.
5839 (remote_protocol_features): Add entry for
5840 "augmented-libraries-svr4-read".
5841 (remote_augmented_libraries_svr4_read): New function.
5842 (init_remote_ops): Initialize
5843 remote_ops.to_augmented_libraries_svr4_read.
5844
5845 2013-06-04 Gary Benson <gbenson@redhat.com>
5846
5847 * NEWS: Update.
5848
5849 2013-06-04 Gary Benson <gbenson@redhat.com>
5850
5851 * objfiles.h (inhibit_section_map_updates): New function
5852 declaration.
5853 (resume_section_map_updates): Likewise.
5854 (resume_section_map_updates_cleanup): Likewise.
5855 * objfiles.c (objfile_pspace_info): Removed field
5856 "objfiles_changed_p". New fields "new_objfiles_available",
5857 "section_map_dirty" and "inhibit_updates".
5858 (allocate_objfile): Set new_objfiles_available.
5859 (free_objfile): Set section_map_dirty.
5860 (objfile_relocate1): Likewise.
5861 (in_plt_section): Likewise.
5862 (find_pc_section): Update the conditions under which the
5863 section map will be updated.
5864 (inhibit_section_map_updates): New function.
5865 (resume_section_map_updates): Likewise.
5866 (resume_section_map_updates_cleanup): Likewise.
5867
5868 2013-06-04 Gary Benson <gbenson@redhat.com>
5869
5870 * probe.h (get_probe_argument_count): New declaration.
5871 (evaluate_probe_argument): Likewise.
5872 * probe.c (get_probe_argument_count): New function.
5873 (evaluate_probe_argument): Likewise.
5874 (probe_safe_evaluate_at_pc): Use the above new functions.
5875
5876 2013-06-04 Alan Modra <amodra@gmail.com>
5877
5878 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5879 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5880 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5881 target mem reads on optional insns.
5882 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5883 ppc_insns_match_pattern calls.
5884 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5885 Add match for power7 thread safety insns, and new order of
5886 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5887 invocation in comment, and update rest of comment.
5888 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5889 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5890 (ppc64_standard_linkage2_target): Update insn offsets.
5891 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5892 stubs first. Update calls.
5893
5894 2013-06-04 Yao Qi <yao@codesourcery.com>
5895
5896 * solib.c (solib_find): Don't need dir separator if path has
5897 drive spec.
5898
5899 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5900
5901 Revert (indirectly causes a SIGSEGV):
5902 * machoread.c (macho_symfile_read): Assign first cleanup to
5903 'back_to'.
5904
5905 2013-06-03 Yao Qi <yao@codesourcery.com>
5906
5907 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5908 mi-parse.c. Make them static.
5909 (mi_all_values): Likewise.
5910 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5911 mi_parse_print_values. Make it external.
5912 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5913 Remove the declarations.
5914 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5915 * mi/mi-parse.h (mi_parse_print_values): Declare.
5916 * mi/mi-cmd-stack.c: Include mi-parse.h.
5917 (parse_print_values): Remove
5918 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5919 of parse_print_values.
5920 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5921
5922 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5923 Yao Qi <yao@codesourcery.com>
5924
5925 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5926 (encode_actions): Move code to ...
5927 (all_tracepoint_actions_and_cleanup): ... here. New.
5928 (trace_dump_command): Likewise.
5929
5930 2013-05-30 Tom Tromey <tromey@redhat.com>
5931
5932 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
5933
5934 2013-05-30 Tom Tromey <tromey@redhat.com>
5935
5936 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
5937 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
5938 'old_chain' argument. Add 'parser_result' argument.
5939 (gdb_xml_create_parser_and_cleanup): Remove old version.
5940 (gdb_xml_parse_quick): Update.
5941 (xml_process_xincludes): Update.
5942 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
5943 declare.
5944
5945 2013-05-30 Tom Tromey <tromey@redhat.com>
5946
5947 * probe.c (collect_probes): Check arguments for NULL before
5948 calling compile_rx_or_error.
5949 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
5950 Remove NULL return.
5951
5952 2013-05-30 Tom Tromey <tromey@redhat.com>
5953
5954 * infrun.c (adjust_pc_after_break): Introduce an outer null
5955 cleanup.
5956
5957 2013-05-30 Tom Tromey <tromey@redhat.com>
5958
5959 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
5960
5961 2013-05-30 Tom Tromey <tromey@redhat.com>
5962
5963 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
5964 for 'old_chain'. Do not check 'head' before processing
5965 cleanups.
5966
5967 2013-05-30 Tom Tromey <tromey@redhat.com>
5968
5969 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
5970 "cleanup_tuple".
5971
5972 2013-05-30 Tom Tromey <tromey@redhat.com>
5973
5974 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
5975 inner scope. Unconditionally call do_cleanups.
5976
5977 2013-05-30 Tom Tromey <tromey@redhat.com>
5978
5979 * source.c (find_and_open_source): Call do_cleanups.
5980
5981 2013-05-30 Tom Tromey <tromey@redhat.com>
5982
5983 * linux-thread-db.c (thread_db_load_search): Unconditionally
5984 call do_cleanups.
5985
5986 2013-05-30 Tom Tromey <tromey@redhat.com>
5987
5988 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5989 for 'cleanup'; instead use a later one.
5990
5991 2013-05-30 Tom Tromey <tromey@redhat.com>
5992
5993 * python/py-breakpoint.c (bppy_get_commands): Use
5994 explicit, unconditional return.
5995 * python/py-frame.c (frapy_read_var): Likewise.
5996 * python/python.c (gdbpy_decode_line): Likewise.
5997
5998 2013-05-30 Tom Tromey <tromey@redhat.com>
5999
6000 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6001 do_cleanups on all return paths.
6002
6003 2013-05-30 Tom Tromey <tromey@redhat.com>
6004
6005 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6006
6007 2013-05-30 Tom Tromey <tromey@redhat.com>
6008
6009 * stabsread.c (read_struct_type): Call do_cleanups along
6010 all return paths.
6011
6012 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6013
6014 * mips-linux-tdep.c: Adjust formatting throughout.
6015
6016 2013-05-30 Tom Tromey <tromey@redhat.com>
6017
6018 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6019 along all return paths.
6020
6021 2013-05-30 Tom Tromey <tromey@redhat.com>
6022
6023 * symfile.c (find_separate_debug_file): Call do_cleanups
6024 along all return paths.
6025
6026 2013-05-30 Tom Tromey <tromey@redhat.com>
6027
6028 * symtab.c (search_symbols): Introduce a null cleanup for
6029 'retval_chain'.
6030
6031 2013-05-30 Tom Tromey <tromey@redhat.com>
6032
6033 * python/py-value.c (valpy_binop): Call do_cleanups before
6034 exiting loop.
6035
6036 2013-05-30 Tom Tromey <tromey@redhat.com>
6037
6038 * python/py-prettyprint.c (print_children): Remove extra
6039 do_cleanups call.
6040
6041 2013-05-30 Tom Tromey <tromey@redhat.com>
6042
6043 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6044 all return paths.
6045
6046 2013-05-30 Tom Tromey <tromey@redhat.com>
6047
6048 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6049 along all return paths.
6050
6051 2013-05-30 Tom Tromey <tromey@redhat.com>
6052
6053 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6054 call do_cleanups.
6055
6056 2013-05-30 Tom Tromey <tromey@redhat.com>
6057
6058 * varobj.c (c_value_of_root): Call do_cleanups along all
6059 return paths.
6060
6061 2013-05-30 Tom Tromey <tromey@redhat.com>
6062
6063 * tracepoint.c (trace_dump_command): Unconditionally call
6064 do_cleanups.
6065
6066 2013-05-30 Tom Tromey <tromey@redhat.com>
6067
6068 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6069 do_cleanups earlier.
6070
6071 2013-05-30 Tom Tromey <tromey@redhat.com>
6072
6073 * machoread.c (macho_symfile_read): Assign first cleanup to
6074 'back_to'.
6075
6076 2013-05-30 Tom Tromey <tromey@redhat.com>
6077
6078 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6079
6080 2013-05-30 Tom Tromey <tromey@redhat.com>
6081
6082 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6083
6084 2013-05-30 Tom Tromey <tromey@redhat.com>
6085
6086 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6087 call discard_cleanups.
6088 (inf_ptrace_attach): Likewise.
6089
6090 2013-05-30 Tom Tromey <tromey@redhat.com>
6091
6092 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6093 return paths.
6094 (mips_initialize): Likewise.
6095 (common_open): Call do_cleanups.
6096
6097 2013-05-30 Tom Tromey <tromey@redhat.com>
6098
6099 * utils.c (internal_vproblem): Call do_cleanups.
6100
6101 2013-05-30 Tom Tromey <tromey@redhat.com>
6102
6103 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6104
6105 2013-05-30 Tom Tromey <tromey@redhat.com>
6106
6107 * cli/cli-script.c (setup_user_args): Don't return after error.
6108
6109 2013-05-30 Tom Tromey <tromey@redhat.com>
6110
6111 * somread.c (som_symtab_read): Call do_cleanups.
6112
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6116
6117 2013-05-30 Tom Tromey <tromey@redhat.com>
6118
6119 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6120 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6121 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6122 * source.c (show_substitute_path_command): Call do_cleanups.
6123 (unset_substitute_path_command, set_substitute_path_command):
6124 Likewise.
6125 * symfile.c (load_command): Call do_cleanups.
6126
6127 2013-05-30 Tom Tromey <tromey@redhat.com>
6128
6129 * contrib/cleanup_check.py: New file.
6130 * contrib/gcc-with-excheck: Add option parsing.
6131
6132 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6133
6134 * windows-nat.c (windows_delete_thread): Add missing space
6135 in cast expression.
6136
6137 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6138
6139 * inferior.c (top level): Include tilde.h.
6140 (add_inferior_command): Call tilde_expand on the value of 'exec'
6141 argument.
6142
6143 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6144 Yao Qi <yao@codesourcery.com>
6145
6146 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6147 Caller update.
6148 (encode_actions): Likewise.
6149 * remote.c (remote_download_tracepoint): Caller update.
6150 * tracepoint.h (encode_actions): Update declaration.
6151
6152 2013-05-30 Pedro Alves <palves@redhat.com>
6153
6154 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6155 pointer.
6156
6157 2013-05-30 Yao Qi <yao@codesourcery.com>
6158
6159 * remote.c (remote_check_symbols): Remove unused parameter
6160 'objfile'.
6161 Declaration update.
6162 (remote_start_remote, remote_new_objfile): Caller update.
6163
6164 2013-05-30 Yao Qi <yao@codesourcery.com>
6165
6166 * mi/mi-cmds.c (mi_cmds): Define MI command
6167 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6168 DEF_MI_CMD_CLI.
6169
6170 2013-05-29 Pedro Alves <palves@redhat.com>
6171
6172 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6173 (remote_insert_watchpoint, remote_remove_watchpoint)
6174 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6175 (remote_verify_memory, compare_sections_command)
6176 (remote_search_memory): Set the general process/thread on the
6177 remote side.
6178
6179 2013-05-29 Pedro Alves <palves@redhat.com>
6180
6181 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6182 (_initialize_aarch64_tdep): Don't call
6183 initialize_tdesc_aarch64_without_fpu.
6184 * features/Makefile (WHICH): Remove reference to
6185 aarch64-without-fpu.
6186 * features/aarch64-without-fpu.c: Delete file.
6187 * regformats/aarch64-without-fpu.dat: Delete file.
6188
6189 2013-05-28 Yao Qi <yao@codesourcery.com>
6190
6191 * tracepoint.c (stringify_collection_list): Remove parameter
6192 'string'.
6193 (encode_actions): Caller update. Remove local variables.
6194
6195 2013-05-24 Yao Qi <yao@codesourcery.com>
6196
6197 * tracepoint.c (TFILE_PID): Remove.
6198 (tfile_open): Don't add thread and inferior.
6199 (tfile_close): Don't set 'inferior_ptid'. Don't call
6200 exit_inferior_silent.
6201 (tfile_thread_alive): Remove.
6202 (init_tfile_ops): Don't set field 'to_thread_alive' of
6203 tfile_ops.
6204
6205 2013-05-23 Doug Evans <dje@google.com>
6206
6207 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6208
6209 2013-05-23 Pedro Alves <palves@redhat.com>
6210
6211 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6212 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6213 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6214 Only define if HAVE_SOCKETS is defined.
6215 * configure.ac: Check for sys/socket.h.
6216 * config.in, configure: Regenerate.
6217
6218 2013-05-23 Pedro Alves <palves@redhat.com>
6219
6220 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6221 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6222 printing uint32_t variables.
6223
6224 2013-05-23 Pedro Alves <palves@redhat.com>
6225
6226 * NEWS: Mention GDBserver range stepping support.
6227
6228 2013-05-23 Yao Qi <yao@codesourcery.com>
6229 Pedro Alves <palves@redhat.com>
6230
6231 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6232 field.
6233 * infcmd.c (step_once, until_next_command): Enable range stepping.
6234 * infrun.c (displaced_step_prepare): Disable range stepping.
6235 (resume): Disable range stepping if stepping over a breakpoint or
6236 we have software watchpoints. If range stepping is enabled,
6237 assert the thread is in the stepping range.
6238 (clear_proceed_status_thread): Clear may_range_step.
6239 (handle_inferior_event): Disable range stepping as soon as we know
6240 the thread that hit the event. Re-enable it whenever we're going
6241 to step with a step range.
6242 * remote.c (struct vCont_action_support) <r>: New field.
6243 (use_range_stepping): New global.
6244 (remote_vcont_probe): Handle 'r' action.
6245 (append_resumption): Append an 'r' action if the thread may range
6246 step.
6247 (show_range_stepping): New function.
6248 (set_range_stepping): New function.
6249 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6250 'set range-stepping' and 'show range-stepping' commands.
6251 * NEWS: Mention range stepping, the new vCont;r action, and the
6252 new "set/show range-stepping" commands.
6253
6254 2013-05-23 Yao Qi <yao@codesourcery.com>
6255 Pedro Alves <palves@redhat.com>
6256
6257 * remote.c (struct vCont_action_support): New struct.
6258 (struct remote_state) <support_vCont_t>: Remove field.
6259 <vCont_actions_support>: New field.
6260 (remote_vcont_probe, remote_stop_ns): Update.
6261
6262 2013-05-23 Yao Qi <yao@codesourcery.com>
6263 Pedro Alves <palves@redhat.com>
6264
6265 * gdbthread.h (pc_in_thread_step_range): New declaration.
6266 * thread.c (pc_in_thread_step_range): New function.
6267 * infrun.c (handle_inferior_event): Use it.
6268
6269 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6270
6271 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6272 of sprintf.
6273
6274 2013-05-22 Keith Seitz <keiths@redhat.com>
6275
6276 * ada-lang.c (is_known_support_routine): Add explicit free of
6277 'func_name' from find_frame_funname.
6278 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6279 for func_name from find_frame_funname.
6280 * python/py-frame.c (frapy_name): Add explicit free of
6281 'name' from find_frame_funname.
6282 * stack.c (find_frame_funname): Add comment explaining that
6283 funcp must be freed by the caller.
6284 Return copy of symbol names instead of pointers.
6285 (print_frame): Add a cleanup for 'funname' from
6286 find_frame_funname.
6287 * stack.h (find_frame_funname): Remove "const" from
6288 'funname' parameter.
6289
6290 2013-05-22 Tom Tromey <tromey@redhat.com>
6291
6292 PR c++/15401:
6293 * c-valprint.c (c_value_print): Use value_addr for
6294 references. Convert back to reference type with value_ref.
6295
6296 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6297
6298 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6299 unloaded DLL, it will be done by handle_solib_event. See
6300 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6301 details.
6302
6303 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6304
6305 * ui-out.c: Create typedef ui_out_level_p and define vector
6306 operations for that type.
6307 (struct ui_out): Use a vector instead of an array.
6308 (current_level): Return level from a vector.
6309 (push_level): Create a level in a vector.
6310 (pop_level): Delete a level in a vector.
6311 (ui_out_new): Create initial level zero level, and store in a
6312 vector.
6313 (ui_out_destroy): Add vector cleanup.
6314
6315 2013-05-22 Pedro Alves <palves@redhat.com>
6316
6317 * python/python-internal.h (gdb_Py_DECREF): Tag with
6318 "ARI: editCase function".
6319
6320 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6321
6322 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6323
6324 2013-05-21 Pedro Alves <palves@redhat.com>
6325
6326 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6327 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6328 * python/py-utils.c (py_decref): Don't check for NULL before
6329 calling Py_DECREF.
6330
6331 2013-05-21 Pedro Alves <palves@redhat.com>
6332
6333 * python/py-utils.c (py_decref): Remove extra braces.
6334 (gdb_pymodule_addobject): Remove extra braces.
6335 * python-internal.h (gdb_Py_DECREF): New static inline function.
6336 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6337
6338 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6339
6340 * breakpoints.c (detach_breakpoints): Do not
6341 detach breakpoints locations with loc_type bp_loc_other.
6342
6343 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 Workaround Python 2.6.
6346 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6347 a block.
6348
6349 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6350
6351 Code cleanup: constification.
6352 * solib.c (solib_ops): Make return type and ops variable type const.
6353 (set_solib_ops): Make the new_ops parameter and ops variable const.
6354 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6355 (solib_add, solib_keep_data_in_core, clear_solib)
6356 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6357 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6358 const.
6359 * solib.h (set_solib_ops): Make the new_ops parameter const.
6360
6361 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6362
6363 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6364 variable.
6365 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6366 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6367 (SYSTEM_GDBINIT_FILES): New variables.
6368 (all): Add stamp-system-gdbinit.
6369 (stamp-system-gdbinit): New rule.
6370 (clean-system-gdbinit, install-system-gdbinit)
6371 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6372 (install-only): Add dependency on install-system-gdbinit.
6373 (uninstall): Add dependency on uninstall-system-gdbinit.
6374 (clean): Add dependency on clean-system-gdbinit.
6375 * system-gdbinit/elinos.py: New file.
6376 * system-gdbinit/wrs-linux.py: New file.
6377
6378 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6379
6380 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6381
6382 2013-05-21 Hui Zhu <hui@codesourcery.com>
6383
6384 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6385 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6386 * mi/mi-cmd-break.c (ctype.h): New include.
6387 (gdb_obstack.h): New include.
6388 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6389 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6390 (mi_cmd_dprintf_insert): New.
6391 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6392 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6393
6394 2013-05-20 Tom Tromey <tromey@redhat.com>
6395
6396 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6397
6398 2013-05-20 Tom Tromey <tromey@redhat.com>
6399
6400 * python/py-value.c (valpy_get_dynamic_type): Simplify
6401 dynamic_type assignment. Use Py_XINCREF.
6402
6403 2013-05-20 Tom Tromey <tromey@redhat.com>
6404
6405 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6406
6407 2013-05-20 Tom Tromey <tromey@redhat.com>
6408
6409 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6410 (gdbpy_selected_frame): Move object-construction code
6411 out of TRY_CATCH.
6412
6413 2013-05-20 Tom Tromey <tromey@redhat.com>
6414
6415 * python/py-arch.c (gdbpy_initialize_arch): Use
6416 gdb_pymodule_addobject.
6417 * python/py-block.c (gdbpy_initialize_blocks): Use
6418 gdb_pymodule_addobject.
6419 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6420 gdb_pymodule_addobject.
6421 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6422 gdb_pymodule_addobject.
6423 * python/py-event.c (gdbpy_initialize_event_generic): Use
6424 gdb_pymodule_addobject.
6425 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6426 gdb_pymodule_addobject.
6427 * python/py-evts.c (add_new_registry): Use
6428 gdb_pymodule_addobject.
6429 (gdbpy_initialize_py_events): Likewise.
6430 * python/py-finishbreakpoint.c
6431 (gdbpy_initialize_finishbreakpoints): Use
6432 gdb_pymodule_addobject.
6433 * python/py-frame.c (gdbpy_initialize_frames): Use
6434 gdb_pymodule_addobject.
6435 * python/py-function.c (gdbpy_initialize_functions): Use
6436 gdb_pymodule_addobject.
6437 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6438 gdb_pymodule_addobject.
6439 * python/py-infthread.c (gdbpy_initialize_thread): Use
6440 gdb_pymodule_addobject.
6441 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6442 gdb_pymodule_addobject.
6443 * python/py-param.c (gdbpy_initialize_parameters): Use
6444 gdb_pymodule_addobject.
6445 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6446 gdb_pymodule_addobject.
6447 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6448 gdb_pymodule_addobject.
6449 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6450 gdb_pymodule_addobject.
6451 * python/py-type.c (gdbpy_initialize_types): Use
6452 gdb_pymodule_addobject.
6453 * python/py-utils.c (gdb_pymodule_addobject): New function.
6454 * python/py-value.c (gdbpy_initialize_values): Use
6455 gdb_pymodule_addobject.
6456 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6457 * python/python.c (_initialize_python): Use
6458 gdb_pymodule_addobject.
6459
6460 2013-05-20 Tom Tromey <tromey@redhat.com>
6461
6462 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6463 * python/py-param.c (get_set_value, get_show_value): Use
6464 explicit decrefs.
6465 * python/python.c (start_type_printers, apply_type_printers):
6466 Use explicit decrefs.
6467
6468 2013-05-20 Tom Tromey <tromey@redhat.com>
6469
6470 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6471 incref the module.
6472
6473 2013-05-20 Tom Tromey <tromey@redhat.com>
6474
6475 * python/python.c (gdbpy_run_events): Decref the result
6476 of PyObject_CallObject.
6477
6478 2013-05-20 Tom Tromey <tromey@redhat.com>
6479
6480 * python/py-symtab.c (set_sal): Use
6481 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6482 (symtab_and_line_to_sal_object): Update.
6483
6484 2013-05-20 Tom Tromey <tromey@redhat.com>
6485
6486 * python/py-param.c (compute_enum_values): Decref 'item'.
6487
6488 2013-05-20 Tom Tromey <tromey@redhat.com>
6489
6490 * mi/mi-main.c: Include python-internal.h.
6491 (mi_cmd_list_features): Check gdb_python_initialized.
6492 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6493 (python_inferior_exit, python_new_objfile, add_thread_object)
6494 (delete_thread_object, py_free_inferior): Check
6495 gdb_python_initialized.
6496 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6497 gdb_python_initialized.
6498 * python/py-type.c (save_objfile_types): Check
6499 gdb_python_initialized.
6500 * python/python-internal.h (gdb_python_initialized): Declare.
6501 * python/python.c (ensure_python_env): Throw exception if
6502 Python not initialized.
6503 (before_prompt_hook, source_python_script_for_objfile)
6504 (start_type_printers, apply_type_printers,
6505 free_type_printers): Check gdb_python_initialized.
6506 * varobj.c (varobj_get_display_hint)
6507 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6508 (install_new_value_visualizer, varobj_set_visualizer)
6509 (value_get_print_value): Check gdb_python_initialized.
6510
6511 2013-05-20 Tom Tromey <tromey@redhat.com>
6512
6513 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6514 Check errors.
6515 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6516 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6517 Check errors.
6518 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6519 Check errors.
6520 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6521 Check errors.
6522 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6523 Check errors.
6524 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6525 init function to return 'int'.
6526 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6527 Return 'int'. Check errors.
6528 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6529 Check errors.
6530 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6531 Return 'int'. Check errors.
6532 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6533 Check errors.
6534 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6535 Check errors.
6536 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6537 Check errors.
6538 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6539 Check errors.
6540 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6541 Check errors.
6542 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6543 Check errors.
6544 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6545 Check errors.
6546 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6547 Check errors.
6548 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6549 Check errors.
6550 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6551 Check errors.
6552 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6553 Check errors.
6554 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6555 Check errors.
6556 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6557 Check errors.
6558 * python/python-internal.h (gdbpy_initialize_auto_load,
6559 gdbpy_initialize_values, gdbpy_initialize_frames,
6560 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6561 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6562 gdbpy_initialize_blocks, gdbpy_initialize_types,
6563 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6564 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6565 gdbpy_initialize_finishbreakpoints,
6566 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6567 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6568 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6569 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6570 gdbpy_initialize_signal_event,
6571 gdbpy_initialize_breakpoint_event,
6572 gdbpy_initialize_continue_event,
6573 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6574 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6575 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6576 * python/python.c (gdb_python_initialized): New global.
6577 (gdbpy_initialize_events): Return 'int'. Check errors.
6578 (_initialize_python): Check errors. Set
6579 gdb_python_initialized.
6580
6581 2013-05-20 Tom Tromey <tromey@redhat.com>
6582
6583 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6584 Decref the reslut of PyObject_CallMethod.
6585
6586 2013-05-20 Tom Tromey <tromey@redhat.com>
6587
6588 * python/py-event.c (gdbpy_initialize_event_generic): Return
6589 early if PyType_Ready fails.
6590
6591 2013-05-20 Tom Tromey <tromey@redhat.com>
6592
6593 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6594 as 'default' in the switch.
6595
6596 2013-05-20 Tom Tromey <tromey@redhat.com>
6597
6598 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6599 get_addr_from_python calls out of TRY_CATCH.
6600 (infpy_write_memory, infpy_search_memory): Likewise.
6601 * python/py-utils.c (get_addr_from_python): Return negative
6602 value on error. Use TRY_CATCH.
6603 * python/python-internal.h (get_addr_from_python): Use
6604 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6605
6606 2013-05-20 Tom Tromey <tromey@redhat.com>
6607
6608 * python/py-event.c (evpy_emit_event): Decref the
6609 result of PyObject_CallFunctionObjArgs.
6610
6611 2013-05-20 Tom Tromey <tromey@redhat.com>
6612
6613 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6614 Correctly decref.
6615
6616 2013-05-20 Tom Tromey <tromey@redhat.com>
6617
6618 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6619
6620 2013-05-20 Tom Tromey <tromey@redhat.com>
6621
6622 * python/py-event.h (gdbpy_initialize_event_generic): Use
6623 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6624 * python/py-evts.c (add_new_registry): Use
6625 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6626 * python/python-internal.h
6627 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6628
6629 2013-05-20 Tom Tromey <tromey@redhat.com>
6630
6631 * python/py-arch.c (archpy_disassemble): Update.
6632 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6633 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6634 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6635 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6636 macro.
6637 (GDB_PY_HANDLE_EXCEPTION): Update.
6638 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6639
6640 2013-05-20 Tom Tromey <tromey@redhat.com>
6641
6642 * python/python-internal.h (events_object_type): Remove.
6643
6644 2013-05-20 Tom Tromey <tromey@redhat.com>
6645
6646 * python/py-event.h (evpy_emit_event): Use
6647 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6648 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6649 New macro.
6650
6651 2013-05-20 Tom Tromey <tromey@redhat.com>
6652
6653 * py-evtregistry.c (create_event_object): Decref
6654 eventregistry_object if PyList_New fails.
6655
6656 2013-05-20 Tom Tromey <tromey@redhat.com>
6657
6658 * py-cmd.c (gdbpy_string_to_argv): Check result of
6659 PyList_New.
6660
6661 2013-05-20 Tom Tromey <tromey@redhat.com>
6662
6663 * python/python.c (before_prompt_hook): Add cleanup to
6664 decref 'hook'.
6665
6666 2013-05-20 Tom Tromey <tromey@redhat.com>
6667
6668 * python/py-function.c (fnpy_init): Decref result of
6669 PyObject_GetAttrString.
6670
6671 2013-05-20 Tom Tromey <tromey@redhat.com>
6672
6673 * python/py-threadevent.c (get_event_thread): Use
6674 CPYCHECKER_RETURNS_BORROWED_REF.
6675 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6676 New define.
6677 (pspace_to_pspace_object, objfile_to_objfile_object)
6678 (find_thread_object): Use it.
6679
6680 2013-05-20 Tom Tromey <tromey@redhat.com>
6681
6682 * python/py-arch.c (arch_object_type): Use
6683 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6684 * python/py-block.c (block_syms_iterator_object_type):
6685 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6686 * python/py-bpevent.c (breakpoint_event_object_type):
6687 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6688 * python/py-cmd.c (cmdpy_object_type): Use
6689 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6690 * python/py-continueevent.c (continue_event_object_type):
6691 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6692 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6693 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6694 * python/py-events.h (thread_event_object_type):
6695 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6696 * python/py-evtregistry.c (eventregistry_object_type): Use
6697 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6698 * python/py-exitedevent.c (exited_event_object_type):
6699 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6700 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6701 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6702 * python/py-function.c (fnpy_object_type): Use
6703 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6704 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6705 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6706 * python/py-infthread.c (thread_object_type): Use
6707 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6708 * python/py-lazy-string.c (lazy_string_object_type):
6709 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6710 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6711 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6712 * python/py-objfile.c (objfile_object_type): Use
6713 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6714 * python/py-param.c (parmpy_object_type):
6715 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6716 * python/py-progspace.c (pspace_object_type):
6717 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6718 * python/py-signalevent.c (signal_event_object_type):
6719 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6720 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6721 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6722 * python/py-type.c (type_object_type, field_object_type)
6723 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6724 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6725 define.
6726 (value_object_type, block_object_type, symbol_object_type)
6727 (event_object_type, stop_event_object_type, breakpoint_object_type)
6728 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6729
6730 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6731
6732 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6733 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6734
6735 2013-05-20 Doug Evans <dje@google.com>
6736
6737 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6738 For Fission.
6739 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6740 reading_dwo_directly.
6741 (struct signatured_type): New member dwo_unit.
6742 (struct die_reader_specs): New member comp_dir.
6743 (create_signatured_type_table_from_index): Use malloc for
6744 all_type_units instead of objfile's obstack.
6745 (create_all_type_units): Ditto.
6746 (fill_in_sig_entry_from_dwo_entry): New function.
6747 (add_type_unit): New function.
6748 (lookup_dwo_signatured_type): New function.
6749 (lookup_dwp_signatured_type): New function.
6750 (lookup_signatured_type): New arg cu. All callers updated.
6751 (init_cu_die_reader): Initialize comp_dir.
6752 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6753 Change assert of matching type signatures to call error on mismatch.
6754 (lookup_dwo_unit): Add assert.
6755 (init_tu_and_read_dwo_dies): New function.
6756 (init_cutu_and_read_dies): Call it.
6757 (build_type_unit_groups): Handle case of no type unit groups created.
6758 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6759 (lookup_dwo_cutu): Tweak complaint.
6760 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6761 (dwarf2_per_objfile_free): Free all_type_units.
6762
6763 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6764
6765 * windows-nat.c (handle_unload_dll): Add missing empty line.
6766
6767 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6768
6769 * dwarf2read.c (prototyped_function_p): New function.
6770 (read_subroutine_type): Use it.
6771
6772 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6773
6774 * rs6000-aix-tdep.c: De-indent some example code provided
6775 as a comment.
6776
6777 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6778
6779 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6780 region is ok for a hardware watchpoint using the new ptrace interface
6781 on Power servers.
6782
6783 2013-05-17 Doug Evans <dje@google.com>
6784
6785 * NEWS: Mention new maintenance commands check-symtabs, and
6786 expand-symtabs, and renamed check-psymtabs.
6787 * psymtab.c (maintenance_check_psymtabs): Renamed from
6788 maintenance_check_symtabs. Only process already-expanded symbol
6789 tables.
6790 (_initialize_psymtab): Update.
6791 * symmisc.c (maintenance_check_symtabs): New function.
6792 (maintenance_expand_name_matcher): New function
6793 (maintenance_expand_file_matcher): New function
6794 (maintenance_expand_symtabs): New function.
6795 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6796 commands.
6797
6798 2013-05-17 Tom Tromey <tromey@redhat.com>
6799
6800 * python/py-inferior.c (infpy_read_memory): Don't call
6801 PyErr_SetString if PyObject_New fails.
6802 * python/py-frame.c (frame_info_to_frame_object): Don't call
6803 PyErr_SetString if PyObject_New fails.
6804
6805 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6806
6807 * acinclude.m4: Add check for dlopen in libdl.
6808 * configure.ac: Ditto.
6809 * configure: Regenerate.
6810
6811 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6812
6813 * frame.c (frame_stash): Convert to htab.
6814 (frame_addr_hash): New function.
6815 (frame_addr_hash_eq): New function.
6816 (frame_stash_create): Convert function to create
6817 a hash table.
6818 (frame_stash_add): Convert function to add an entry to a hash
6819 table.
6820 (frame_stash_find): Convert function to search the hash table.
6821 (frame_stash_invalidate): Convert function to empty the hash
6822 table.
6823 (get_frame_id): Only add to stash if a frame_id is created.
6824 (_initialize_frame): Call frame_stash_create.
6825
6826 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6827
6828 * configure.ac: Ensure MIG is available when building for GNU Hurd
6829 hosts.
6830 * configure: Regenerate.
6831
6832 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6833
6834 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6835
6836 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6837
6838 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6839 all cleanups are done before returning from this function.
6840
6841 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6842
6843 * utils.h: #include "exceptions.h".
6844 (enum errors): Remove partial declaration.
6845
6846 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6847
6848 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6849 * gdbarch.h, gdbarch.c: Regenerate.
6850 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6851 handling.
6852
6853 * rs6000-aix-tdep.h: New file.
6854 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6855 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6856 "xml-utils.h".
6857 (struct field_info, struct ld_info_desc): New types.
6858 (ld_info32_desc, ld_info64_desc): New static constants.
6859 (struct ld_info): New type.
6860 (rs6000_aix_extract_ld_info): New function.
6861 (rs6000_aix_shared_library_to_xml): Likewise.
6862 (rs6000_aix_ld_info_to_xml): Likewise.
6863 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6864 (rs6000_aix_init_osabi): Add call to
6865 set_gdbarch_core_xfer_shared_libraries_aix.
6866 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6867 Remove "xml-utils.h" include.
6868 (LdInfo): Delete typedef.
6869 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6870 Delete macros.
6871 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6872 Adjust code accordingly.
6873 (rs6000_core_ldinfo): Delete, folded into
6874 rs6000_aix_core_xfer_shared_libraries_aix.
6875 (rs6000_xfer_shared_library): Delete.
6876 (rs6000_xfer_shared_libraries): Reimplement.
6877
6878 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6879
6880 * record.c (record_goto_cmdlist): New.
6881 (cmd_record_goto): Split into this ...
6882 (cmd_record_goto_begin): ... this
6883 (cmd_record_goto_end): ... and this.
6884 (_initialize_record): Change "record goto" to prefix command.
6885 Add commands for "record goto begin" and "record goto end".
6886 Add an alias for "record goto start" to "record goto begin".
6887
6888 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6889
6890 * linespec.c (convert_linespec_to_sals): New comment for
6891 SOURCE_FILENAME assignment.
6892
6893 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6896 internal_warning.
6897
6898 2013-05-14 Tom Tromey <tromey@redhat.com>
6899
6900 * eval.c (parse_and_eval_long): Make 'exp' const.
6901 * value.h (parse_and_eval_long): Update.
6902
6903 2013-05-14 Tom Tromey <tromey@redhat.com>
6904
6905 * ui-file.c (gdb_fopen): Make arguments const.
6906 * ui-file.h (gdb_fopen): Make arguments const.
6907
6908 2013-05-14 Tom Tromey <tromey@redhat.com>
6909
6910 * remote.c (remote_set_trace_notes): Make arguments const.
6911 * target.c (update_current_target): Update cast.
6912 * target.h (to_set_trace_notes): Make arguments const.
6913
6914 2013-05-14 Tom Tromey <tromey@redhat.com>
6915
6916 * go32-nat.c (go32_terminal_info): Make 'args' const.
6917 * inferior.h (child_terminal_info): Update.
6918 * inflow.c (child_terminal_info): Make 'args' const.
6919 * target.c (default_terminal_info): Make 'args' const.
6920 (debug_to_terminal_save_ours): Likewise.
6921 * target.h (struct target_ops) <to_terminal_info>: Make argument
6922 const.
6923
6924 2013-05-13 Tom Tromey <tromey@redhat.com>
6925
6926 * gcore.c (create_gcore_bfd): Make 'filename' const.
6927 * gcore.h (create_gcore_bfd): Make 'filename' const.
6928 * record-full.c (record_full_save): Make 'recfilename' const.
6929 * target.c (target_save_record): Make 'filename' const.
6930 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6931 const.
6932 (target_save_record): Likewise.
6933
6934 2013-05-13 Tom Tromey <tromey@redhat.com>
6935
6936 PR gdb/15338:
6937 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
6938 ranges section has been read.
6939
6940 2013-05-13 Tom Tromey <tromey@redhat.com>
6941
6942 PR exp/15364:
6943 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6944 STRUCTOP_PTR>: Return a not_lval value for
6945 EVAL_AVOID_SIDE_EFFECTS.
6946 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
6947 for EVAL_AVOID_SIDE_EFFECTS.
6948
6949 2013-05-13 Joel Brobecker <brobecker@adacore.com>
6950
6951 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
6952 floating point registers to register type before storing
6953 value.
6954 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
6955 Likewise.
6956
6957 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6958 Tom Tromey <tromey@redhat.com>
6959
6960 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6961 New functions.
6962 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
6963 Declare.
6964 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
6965 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
6966 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
6967 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
6968
6969 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
6970 Tom Tromey <tromey@redhat.com>
6971
6972 PR build/15414:
6973 * configure: Rebuild.
6974 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6975 with -Wno-format.
6976
6977 2013-05-10 Pedro Alves <palves@redhat.com>
6978
6979 * remote.c (_initialize_remote): Fix spelling of
6980 qXfer:traceframe-info:read packet in packet config command.
6981
6982 2013-05-10 David Taylor <dtaylor@emc.com>
6983
6984 PR remote/15455
6985
6986 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6987 "QTro" at start of packet.
6988
6989 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6990
6991 * solib-aix.c (solib_aix_relocate_section_addresses):
6992 For the .bss section action, apply the same offset as
6993 the .data section.
6994
6995 2013-05-10 Joel Brobecker <brobecker@adacore.com>
6996
6997 * solib-aix.c (solib_aix_relocate_section_addresses):
6998 Remove FIXME comment.
6999
7000 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7001
7002 PR tdep/15420:
7003 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7004 New functions, directly copied from sparc-sol-thread.c.
7005 * sparc-sol-thread.c: Delete.
7006 * configure.ac: Remove code handling sparc-solaris-thread.c.
7007 * configure: Regenerate.
7008
7009 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7010
7011 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7012 filter logic.
7013 (backtrace_command): Add "no-filters" option parsing.
7014 (_initialize_stack): Alter help to reflect "no-filters" option.
7015 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7016 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7017 (py-frame.o): Add target
7018 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7019 filter files.
7020 * python/python.h: Add new frame filter constants, and flag enum.
7021 (apply_frame_filter): Add definition.
7022 * python/python.c (apply_frame_filter): New non-Python
7023 enabled function.
7024 * python/py-utils.c (py_xdecref): New function.
7025 (make_cleanup_py_xdecref): Ditto.
7026 * python/py-objfile.c: Declare frame_filters dictionary.
7027 (objfpy_dealloc): Add frame_filters dealloc.
7028 (objfpy_new): Initialize frame_filters attribute.
7029 (objfile_to_objfile_object): Ditto.
7030 (objfpy_get_frame_filters): New function.
7031 (objfpy_set_frame_filters): New function.
7032 * python/py-progspace.c: Declare frame_filters dictionary.
7033 (pspy_dealloc): Add frame_filters dealloc.
7034 (pspy_new): Initialize frame_filters attribute.
7035 (pspacee_to_pspace_object): Ditto.
7036 (pspy_get_frame_filters): New function.
7037 (pspy_set_frame_filters): New function.
7038 * python/py-framefilter.c: New file.
7039 * python/lib/gdb/command/frame_filters.py: New file.
7040 * python/lib/gdb/frames.py: New file.
7041 * python/lib/gdb/__init__.py: Initialize global frame_filters
7042 dictionary
7043 * python/lib/gdb/FrameDecorator.py: New file.
7044 * python/lib/gdb/FrameIterator.py: New file.
7045 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7046 * mi/mi-cmds.h: Declare.
7047 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7048 --no-frame-filter logic, and Python frame filter logic.
7049 (stack_enable_frame_filters): New function.
7050 (parse_no_frame_option): Ditto.
7051 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7052 filter logic.
7053 (mi_cmd_stack_list_locals): Ditto.
7054 (mi_cmd_stack_list_args): Ditto.
7055 (mi_cmd_stack_list_variables): Ditto.
7056 * NEWS: Add frame filter note.
7057
7058 2013-05-09 Doug Evans <dje@google.com>
7059
7060 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7061 All callers updated.
7062 (syms_from_objfile): Ditto. Make static.
7063 (symbol_file_add_with_addrs): Renamed from
7064 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7065 num_offsets. All callers updated.
7066 * symfile.h (syms_from_objfile): Delete.
7067
7068 * symfile.c (decrement_reading_symtab): Add assert.
7069 (increment_reading_symtab): Ditto.
7070
7071 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7072
7073 * source.c (forward_search_command): Replace call to getc
7074 by call to fgetc.
7075 (reverse_search_command): Likewise.
7076
7077 2013-05-08 Doug Evans <dje@google.com>
7078
7079 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7080 matching test.
7081
7082 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7083
7084 * sol-thread.c (info_cb): Factorize the code a little.
7085
7086 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7087
7088 * sol-thread.c (info_cb): Rework the output of the "maintenance
7089 info sol-threads" command a bit.
7090
7091 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7092
7093 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7094 Replace ti.ti_startfunc by ti.ti_pc.
7095
7096 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7097
7098 * solib-aix.c (solib_aix_free_library_list): New function
7099 for the case where HAVE_LIBEXPAT is not defined.
7100
7101 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7102
7103 PR breakpoints/15413:
7104 * breakpoint.c (condition_completer): Simplify the code to
7105 disconsider multiple locations of breakpoints when completing the
7106 "condition" command.
7107
7108 2013-05-07 Pierre Muller <muller@sourceware.org>
7109
7110 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7111 instead of <sys/wait.h>.
7112
7113 2013-05-07 Pierre Muller <muller@sourceware.org>
7114
7115 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7116 trailing new line from warning message.
7117
7118 2013-05-07 Pierre Muller <muller@sourceware.org>
7119
7120 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7121 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7122
7123 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7124
7125 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7126 error message (ARI fix).
7127
7128 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7129
7130 * features/library-list-aix.dtd: Replace library-list by
7131 library-list-aix.
7132 * rs6000-nat.c: Replace library-list by library-list-aix
7133 throughout.
7134 * solib-aix.c: Likewise.
7135
7136 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7137
7138 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7139 Renames TARGET_OBJECT_AIX_LIBRARIES.
7140 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7141 TARGET_OBJECT_LIBRARIES_AIX throughout.
7142 * solib-aix.c: Likwise.
7143
7144 2013-05-07 Yao Qi <yao@codesourcery.com>
7145
7146 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7147 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7148
7149 2013-05-07 Yao Qi <yao@codesourcery.com>
7150
7151 * solib-dsbt.c (enable_break): Declare.
7152 (dsbt_current_sos): Remove call to enable_break2.
7153 (enable_break2): Rename to enable_break. Set solib breakpoint
7154 on '_dl_debug_state'.
7155 (enable_break): Remove.
7156
7157 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7158
7159 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7160 debug state prior to replicating existing hardware watchpoints or
7161 breakpoints.
7162
7163 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7164
7165 * gcore.c (gcore_create_callback): Ignore sections with
7166 separate_debug_objfile_backlink != NULL.
7167
7168 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7169 Andrew Jenner <andrew@codesourcery.com>
7170 Chung-Lin Tang <cltang@codesourcery.com>
7171 Julian Brown <julian@codesourcery.com>
7172
7173 Based on the nios2-elf port from Altera Corporation.
7174
7175 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7176 nios2-linux-tdep.o.
7177 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7178 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7179 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7180 * nios2-tdep.h: New.
7181 * nios2-tdep.c: New.
7182 * nios2-linux-tdep.c: New.
7183 * features/Makefile (WHICH): Add nios2-linux.
7184 (nios2-linux-expedite): Set.
7185 * features/nios2-cpu.xml: New.
7186 * features/nios2.xml: New.
7187 * features/nios2-linux.xml: New.
7188 * features/nios2.c: New (autogenerated).
7189 * features/nios2-linux.c: New (autogenerated).
7190 * regformats/nios2-linux.dat: New (autogenerated).
7191 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7192 and commands.
7193
7194 2013-05-06 Doug Evans <dje@google.com>
7195
7196 * symfile.c: Whitespace cleanup.
7197
7198 * solist.h (struct target_so_ops): New member clear_so.
7199 * solib-svr4.c (svr4_clear_so): New function.
7200 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7201 * solib.c (clear_so): Renamed from free_so_symbols.
7202 All callers updated. Call target clear_so if it exists.
7203
7204 2013-05-06 Tom Tromey <tromey@redhat.com>
7205
7206 * ada-lang.c (ada_value_primitive_packed_val): Don't
7207 call value_incref.
7208 * value.c (set_value_parent): Incref the new parent and decref
7209 the old parent.
7210 (value_copy, value_primitive_field): Use set_value_parent.
7211
7212 2013-05-06 Tom Tromey <tromey@redhat.com>
7213
7214 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7215 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7216 if needed.
7217 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7218 * dwarf2read.c (write_constant_as_bytes)
7219 (dwarf2_fetch_constant_bytes): New functions.
7220
7221 2013-05-06 Tom Tromey <tromey@redhat.com>
7222
7223 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7224 parameters.
7225 (dwarf2_const_value_attr): Update.
7226
7227 2013-05-06 Tom Tromey <tromey@redhat.com>
7228
7229 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7230 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7231 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7232 Remove declaration.
7233
7234 2013-05-06 Tom Tromey <tromey@redhat.com>
7235
7236 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7237 objfile's obstack.
7238
7239 2013-05-06 Doug Evans <dje@google.com>
7240
7241 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7242 * stabsread.h (process_one_symbol): Update declaration.
7243 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7244 * elfread.c (elf_symfile_relocate_probe): Ditto.
7245 * psymtab.c (relocate_psymtabs): Ditto.
7246 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7247 (objfile_relocate): Ditto.
7248 * objfiles.h (objfile_relocate): Update declaration.
7249 * symfile.c (relative_addr_info_to_section_offsets): Constify
7250 addrs parameter.
7251 (default_symfile_offsets): Ditto.
7252 (syms_from_objfile_1): Constify offsets parameter.
7253 (syms_from_objfile): Ditto.
7254 (symbol_file_add_with_addrs_or_offsets): Ditto.
7255 (symfile_map_offsets_to_segments): Constify data parameter.
7256 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7257 delta parameters of member relocate.
7258 (struct sym_probe_fns): Constify new_offsets,
7259 delta parameters of member sym_relocate_probe.
7260 (struct sym_fns): Constify section_addr_info parameter of member
7261 sym_offsets.
7262 (relative_addr_info_to_section_offsets): Update declaration.
7263 (default_symfile_offsets): Ditto.
7264 (syms_from_objfile): Ditto.
7265 (symfile_map_offsets_to_segments): Ditto.
7266
7267 * symfile.c (syms_from_objfile_1): Use correct section count when
7268 objfile->sf == NULL.
7269
7270 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7271
7272 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7273
7274 2013-05-06 Doug Evans <dje@google.com>
7275
7276 * psympriv.h (struct partial_symtab): Augment comment for member
7277 section_offsets.
7278
7279 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7280
7281 Reimplement shared library support on ppc-aix...
7282 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7283 * features/library-list-aix.dtd: New file.
7284 * solib-aix.h, solib-aix.c: New file.
7285 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7286 (rs6000_find_toc_address_hook): Delete.
7287 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7288 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7289 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7290 "xml-utils.h".
7291 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7292 (vmap_symtab, fixup_breakpoints): Delete.
7293 (rs6000_xfer_shared_libraries): New function.
7294 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7295 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7296 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7297 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7298 (rs6000_xfer_shared_library): New function.
7299 (find_toc_address): Delete.
7300 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7301 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7302 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7303 before creating minimal symbol. Adjust function description
7304 accordingly.
7305 (scan_xcoff_symtab): Replace call to
7306 prim_record_minimal_symbol_and_info by call to
7307 record_minimal_symbol.
7308 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7309 around default_symfile_offsets.
7310 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7311 powerpc-aix targets.
7312 * config/rs6000/nm-rs6000.h: Delete.
7313 * config/powerpc/aix.mh (NAT_FILE): Delete.
7314 (NATDEPFILES): Remove xcoffsolib.o.
7315 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7316 (ALL_TARGET_OBS): Add solib-aix.o.
7317 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7318 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7319 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7320 * xcoffsolib.h, xcoffsolib.c: Delete.
7321
7322 * solib.c (reload_shared_libraries): Remove reference to
7323 SOLIB_CREATE_INFERIOR_HOOK.
7324 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7325 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7326 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7327 comment.
7328 * corelow.c (deprecated_core_resize_section_table): Delete.
7329 * exec.c: Remove include of xcoffsolib.h".
7330 (map_vmap, vmap): Delete.
7331 (exec_close_1): Remove references to vmap.
7332 (exec_file_attach): Remove vmap handling code, and reference
7333 to DEPRECATED_IBM6000_TARGET.
7334 (bfdsec_to_vmap): Delete.
7335 (exec_files_info): Remove block of code handling VMAP.
7336 * infcmd.c (post_create_inferior): Remove reference to
7337 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7338 * infrun.c (follow_exec): Remove reference to
7339 SOLIB_CREATE_INFERIOR_HOOK.
7340 * stack.c (print_frame): Remove reference to PC_SOLIB.
7341 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7342 (dsbt_relocate_main_executable): Likewise.
7343 * solib-frv.c (frv_current_sos): Likewise.
7344
7345 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7346
7347 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7348 to target_write_memory and target_read_memory.
7349
7350 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7351
7352 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7353 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7354
7355 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7356
7357 * darwin-nat.c: Replace all "%x" instances in format strings
7358 into "0x%x" throughout.
7359
7360 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7361
7362 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7363 gdb_assert by call to MACH_CHECK_ERROR.
7364 (darwin_attach_pid): Raise an error rather than a failed
7365 assertion when various system calls failed. Report a warning
7366 instead of raising a failed assertion when PREV_NOT is not NULL
7367 after call to mach_port_request_notification.
7368 (darwin_ptrace_me): Raise an error rather than a failed
7369 assertion when read returns nonzero.
7370
7371 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7372
7373 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7374
7375 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7376
7377 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7378
7379 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7380
7381 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7382 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7383 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7384 a stale cleanup. Fix double free of NAME.
7385
7386 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7387
7388 * windows-nat.c (windows_delete_thread): Accept an additional
7389 argument, the thread's exit code, and announce thread death when
7390 print_thread_events is non-zero and we are deleting a thread that
7391 is not the main thread.
7392 (get_windows_debug_event): Pass thread exit code to
7393 windows_delete_thread.
7394
7395 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7396
7397 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7398 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7399 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7400 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7401 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7402 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7403 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7404 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7405 (gdbarch_tdep): New struct.
7406 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7407 E_NUM_REGS.
7408 (v850e3v5_register_name): New function.
7409 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7410 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7411 code handling the struct return conventions for the RH850 ABI.
7412 Update all callers.
7413 (v850_eight_byte_align_p): New function.
7414 (v850_push_call_dummy): Push structs by value, not by reference
7415 for the RH850 ABI. Add support for eight byte alignment.
7416 (v850_dbtrap_breakpoint_from_pc): New function.
7417 (v850_gdbarch_init): Add ABI detection code. Register
7418 v850e3v5_register_name for the v850e3v5 architecture. Set the
7419 number of registers for v850e3v5. Register
7420 v850_dbtrap_breakpoint_from_pc as appropriate.
7421 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7422
7423 2013-05-03 Doug Evans <dje@google.com>
7424
7425 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7426 of bfd_count_sections.
7427 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7428 * symfile.c (default_symfile_offsets): Ditto.
7429 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7430 one entry, not bfd_count_sections entries.
7431
7432 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7433
7434 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7435 `save' and `restore' register groups. Don't include SPL
7436 or SPH in these groups.
7437 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7438 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7439 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7440 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7441 dwarf2_append_unwinders().
7442
7443 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7444
7445 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7446 ignore SIGINT and SIGTRAP in case these internal signals are
7447 caught explicitely.
7448
7449 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7450
7451 * darwin-nat.c (darwin_read_write_inferior): Change types
7452 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7453 of copy_count to "mach_msg_type_number_t".
7454 (darwin_read_dyld_info): Change type of parameter
7455 rdaddr to "gdb_byte *".
7456
7457 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7458
7459 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7460 of &info->load_map from "char *" to "gdb_byte *".
7461
7462 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7463
7464 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7465 from "char *" to "gdb_byte *".
7466 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7467
7468 2013-04-30 Doug Evans <dje@google.com>
7469
7470 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7471 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7472 DWO stub. If DWO isn't found, just use stub.
7473 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7474
7475 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7476 calling init_cutu_and_read_dies.
7477
7478 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7479
7480 * target-descriptions.c (maint_print_c_tdesc_cmd):
7481 Add case to parse structures as register types and
7482 bitfields.
7483
7484 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7485
7486 * MAINTAINERS (Write After Approval): Add myself to the list.
7487
7488 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7489
7490 * sol-thread.c (rw_common): Change type of parameter "buf"
7491 to "gdb_byte *".
7492 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7493 rw_common to "gdb_byte *" instead of "char *".
7494
7495 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7496
7497 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7498 of local variable msym to const struct bound_minimal_symbol.
7499 Adjust use accordingly.
7500 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7501
7502 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7503
7504 * i386gnu-nat.c (CREG_OFFSET): New macro.
7505 (creg_offset): New array.
7506 (CREG_ADDR): Use creg_offset instead of reg_offset.
7507
7508 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7509
7510 * mep-tdep.c (mep_write_pc): Delete.
7511 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7512 Add call to set_gdbarch_pc_regnum.
7513
7514 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7515
7516 * common/filestuff.c: Replace #include <dirent.h> by
7517 #include "gdb_dirent.h".
7518
7519 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7520
7521 * common/filestuff.c: Replace #include <sys/stat.h> by
7522 #include "gdb_stat.h".
7523
7524 2013-04-29 Pierre Muller <muller@sourceware.org>
7525
7526 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7527 editCase function rule.
7528 (get_DW_AT_signature_type): Likewise.
7529
7530 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7531
7532 * m32r-tdep.c (m32r_write_pc): Delete.
7533 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7534 Add call to set_gdbarch_pc_regnum.
7535
7536 2013-04-29 Pierre Muller <muller@sourceware.org>
7537
7538 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7539
7540 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7541
7542 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7543
7544 2013-04-28 Yao Qi <yao@codesourcery.com>
7545
7546 * solib-dsbt.c (fetch_loadmap): Re-indent.
7547 (displacement_from_map, enable_break2): Likewise.
7548 (dsbt_relocate_section_addresses): Likewise.
7549
7550 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7551
7552 GDB 7.6 released.
7553
7554 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7555
7556 PR corefiles/14983:
7557 * dwarf2read.c (process_full_comp_unit): Always create a static
7558 block.
7559
7560 2013-04-25 Hui Zhu <hui@codesourcery.com>
7561
7562 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7563 to loc->cmd_bytecode.
7564
7565 2013-04-24 Doug Evans <dje@google.com>
7566
7567 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7568
7569 2013-04-22 Keith Seitz <keiths@redhat.com>
7570
7571 * tracepoint.c (trace_save): Call the writer's start method.
7572
7573 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7574
7575 PR gdb/10462
7576 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7577 before argument.
7578
7579 2013-04-23 Tom Tromey <tromey@redhat.com>
7580
7581 * common/filestuff.c: Check USE_WIN32API before including
7582 sys/socket.h.
7583 (HAVE_F_GETFD): New define.
7584 (mark_cloexec): Check HAVE_F_GETFD.
7585 (gdb_open_cloexec): Change 'mode' to unsigned long.
7586 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7587 (gdb_pipe_cloexec): Check HAVE_PIPE.
7588 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7589 long.
7590
7591 2013-04-23 Hui Zhu <hui@codesourcery.com>
7592
7593 PR gdb/15293
7594 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7595
7596 2013-04-23 Hui Zhu <hui@codesourcery.com>
7597
7598 PR gdb/15165
7599 * breakpoint.c (dprintf_print_recreate): New.
7600 (save_breakpoints): Let it not save dprintf commands.
7601 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7602
7603 2013-04-22 Tom Tromey <tromey@redhat.com>
7604
7605 PR gdb/7912:
7606 * Makefile.in (SFILES): Add filestuff.c
7607 (COMMON_OBS): Add filestuff.o.
7608 (filestuff.o): New target.
7609 * auto-load.c (auto_load_objfile_script_1): Use
7610 gdb_fopen_cloexec.
7611 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7612 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7613 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7614 * common/agent.c (gdb_connect_sync_socket): Use
7615 gdb_socket_cloexec.
7616 * common/filestuff.c: New file.
7617 * common/filestuff.h: New file.
7618 * common/linux-osdata.c (linux_common_core_of_thread)
7619 (command_from_pid, commandline_from_pid, print_source_lines)
7620 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7621 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7622 gdb_fopen_cloexec.
7623 * common/linux-procfs.c (linux_proc_get_int)
7624 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7625 * config.in, configure: Rebuild.
7626 * configure.ac: Don't check for sys/socket.h. Check for
7627 fdwalk, pipe2.
7628 * corelow.c (core_open): Use gdb_open_cloexec.
7629 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7630 * fork-child.c (fork_inferior): Call close_most_fds.
7631 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7632 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7633 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7634 Use gdb_fopen_cloexec.
7635 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7636 gdb_open_cloexec.
7637 (linux_async_pipe): Use gdb_pipe_cloexec.
7638 * remote-fileio.c (remote_fileio_func_open): Use
7639 gdb_open_cloexec.
7640 * remote.c (remote_file_put, remote_file_get): Use
7641 gdb_fopen_cloexec.
7642 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7643 close_most_fds.
7644 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7645 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7646 * solib.c (solib_find): Use gdb_open_cloexec.
7647 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7648 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7649 (tfile_open): Use gdb_open_cloexec.
7650 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7651 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7652 * xml-support.c (xml_fetch_content_from_file): Use
7653 gdb_fopen_cloexec.
7654 * main.c (captured_main): Call notice_open_fds.
7655
7656 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7657
7658 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7659 'char *' to 'gdb_byte *'.
7660 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7661 'gdb_byte'.
7662
7663 2013-04-22 Yao Qi <yao@codesourcery.com>
7664
7665 * infrun.c: Fix typo in comment.
7666
7667 2013-04-22 Andrew Haley <aph@redhat.com>
7668
7669 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7670 instead of "long".
7671
7672 2013-04-20 Yao Qi <yao@codesourcery.com>
7673
7674 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7675 'char *' to 'gdb_byte *'. Cast the return value of
7676 'bt_ctf_get_char_array' to 'gdb_byte *'.
7677
7678 2013-04-19 Pedro Alves <palves@redhat.com>
7679
7680 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7681 -Wpointer-sign.
7682 * configure: Regenerate.
7683
7684 2013-04-19 Pedro Alves <palves@redhat.com>
7685
7686 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7687 'void *'.
7688
7689 2013-04-19 Pedro Alves <palves@redhat.com>
7690
7691 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7692 Change type of 'myaddr' parameter to gdb_byte pointer.
7693 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7694 to 'long long' pointer instead of to 'unsigned long long'.
7695 (monitor_write_memory_block, monitor_read_memory_single)
7696 (monitor_read_memory): Change type of 'myaddr' parameter to
7697 gdb_byte pointer.
7698
7699 2013-04-19 Pedro Alves <palves@redhat.com>
7700
7701 * record.c (validate_history_size): Make parameter 'setting'
7702 unsigned.
7703
7704 2013-04-19 Pedro Alves <palves@redhat.com>
7705
7706 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7707 to 'gdb_byte *'.
7708
7709 2013-04-19 Pedro Alves <palves@redhat.com>
7710
7711 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7712 local to int.
7713
7714 2013-04-19 Pedro Alves <palves@redhat.com>
7715
7716 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7717 * ada-tasks.c (read_fat_string_value): Likewise.
7718
7719 2013-04-19 Pedro Alves <palves@redhat.com>
7720
7721 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7722 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7723 'offset', and adjust.
7724
7725 2013-04-19 Pedro Alves <palves@redhat.com>
7726
7727 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7728 (read_index_from_section): Add cast to 'char *'.
7729
7730 2013-04-19 Pedro Alves <palves@redhat.com>
7731
7732 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7733
7734 2013-04-19 Pedro Alves <palves@redhat.com>
7735
7736 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7737
7738 2013-04-19 Pedro Alves <palves@redhat.com>
7739
7740 * record-full.c (record_full_get_bookmark): Change local 'ret'
7741 type to char * and add cast to gdb_byte *.
7742 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7743 string.
7744 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7745
7746 2013-04-19 Pedro Alves <palves@redhat.com>
7747
7748 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7749 * python/py-prettyprint.c (print_string_repr): Change type of
7750 'output' local to char *. Add cast to gdb_byte * in
7751 LA_PRINT_STRING call.
7752 (print_children): Change type of 'output' local to char *.
7753 * python/py-value.c (valpy_string): Add cast to const char * in
7754 PyUnicode_Decode call.
7755
7756 2013-04-19 Pedro Alves <palves@redhat.com>
7757
7758 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7759 and change its type to 'const char *'. Adjust.
7760 (mips_send_packet): Add cast to 'char *', and remove cast to
7761 'unsigned char *'.
7762 (mips_receive_packet): Remove cast to 'unsigned char *'.
7763 (mips_load_srec): Use bfd_byte.
7764 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7765 (pmon_checkset): Make 'value' parameter unsigned.
7766
7767 2013-04-19 Pedro Alves <palves@redhat.com>
7768
7769 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7770
7771 2013-04-19 Pedro Alves <palves@redhat.com>
7772
7773 * remote.c (remote_write_bytes_aux, compare_sections_command)
7774 (remote_read_qxfer)
7775 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7776 (remote_hostio_readlink, remote_bfd_iovec_pread)
7777 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7778 binary buffer, and char when buffer is used as string.
7779 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7780 (trace_save, tfile_open, traceframe_walk_blocks)
7781 (tfile_fetch_registers): Likewise.
7782
7783 2013-04-19 Pedro Alves <palves@redhat.com>
7784
7785 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7786 buffer and size_t size. Adjust.
7787 * ser-base.h (ser_base_write): Adjust.
7788 * ser-go32.c (cnts): Change type to size_t.
7789 (dos_write): Change prototype -- take 'void *'
7790 buffer and size_t size. Adjust.
7791 (dos_info): Print elements of 'cnts' as unsigned long.
7792 * serial.c (serial_write): Likewise.
7793 * serial.h (serial_write): Adjust.
7794 (struct serial_ops) <write>: Change prototype -- take 'void *'
7795 buffer and size_t size. Adjust.
7796
7797 2013-04-19 Pedro Alves <palves@redhat.com>
7798
7799 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7800 gdb_byte *.
7801 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7802
7803 2013-04-19 Pedro Alves <palves@redhat.com>
7804
7805 * alpha-tdep.c (alpha_extract_return_value): Use
7806 regcache_cooked_read_unsigned to read 'v0'.
7807
7808 2013-04-19 Pedro Alves <palves@redhat.com>
7809
7810 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7811 parameters 'at', 'as' and 'offset' to uint32_t.
7812
7813 2013-04-19 Pedro Alves <palves@redhat.com>
7814
7815 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7816 'is64' to signed 'int'.
7817
7818 2013-04-19 Pedro Alves <palves@redhat.com>
7819
7820 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7821 parameter to int *.
7822
7823 2013-04-19 Pedro Alves <palves@redhat.com>
7824
7825 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7826 'insnbuf' buffer type to unsigned int[].
7827
7828 2013-04-19 Pedro Alves <palves@redhat.com>
7829
7830 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7831
7832 2013-04-19 Pedro Alves <palves@redhat.com>
7833
7834 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7835 unsigned long *.
7836
7837 2013-04-19 Pedro Alves <palves@redhat.com>
7838
7839 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7840 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7841 UINT_MAX.
7842 * mips-tdep.c (heuristic_fence_post): Change type to int.
7843 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7844
7845 2013-04-19 Pedro Alves <palves@redhat.com>
7846
7847 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7848 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7849 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7850
7851 2013-04-19 Pedro Alves <palves@redhat.com>
7852
7853 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7854 it to get a string view of the byte buffer.
7855 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7856 type to gdb_byte *. Adjust.
7857 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7858 Change local to char *.
7859 * solib-darwin.c (find_program_interpreter): Change return type to
7860 char *. Adjust.
7861 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7862 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7863 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7864 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7865 * solib-svr4.c (find_program_interpreter): Change return type to
7866 char *. Adjust.
7867 (enable_break): Change local 'interp_name' to char *.
7868 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7869 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7870 (spu_pseudo_register_write_spu): Use char for string buffer.
7871 Adjust.
7872 (info_spu_event_command, info_spu_signal_command): Add casts to
7873 'char *'.
7874
7875 2013-04-19 Pedro Alves <palves@redhat.com>
7876
7877 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7878 gdb_byte[].
7879 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7880 * ada-lang.c (ada_value_assign): Use gdb_byte.
7881 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7882 (alphanbsd_sigtramp_offset): Use gdb_byte.
7883 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7884 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7885 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7886 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7887 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7888 * arm-tdep.c (arm_stub_unwind_sniffer)
7889 (arm_displaced_init_closure): Use gdb_byte.
7890 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7891 (arm_default_thumb_le_breakpoint)
7892 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7893 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7894 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7895 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7896 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7897 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7898 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7899 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7900 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7901 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7902 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7903 (cris_store_return_value, cris_extract_return_value): Use
7904 gdb_byte.
7905 (constraint): Change type of parameter to char * from signed
7906 char*. Use gdb_byte.
7907 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7908 of local buffer to gdb_byte *.
7909 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7910 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7911 (add_address_entry): Change type of local buffer to gdb_byte[].
7912 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7913 (frv_push_dummy_call): Use gdb_byte.
7914 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7915 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7916 (hppa_hpux_supply_save_state): Use gdb_byte.
7917 * hppa-tdep.c (hppa32_push_dummy_call)
7918 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7919 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7920 (slotN_contents, replace_slotN_contents): Change type of parameter
7921 to gdb_byte *.
7922 (fetch_instruction, ia64_pseudo_register_write)
7923 (ia64_register_to_value, ia64_value_to_register)
7924 (ia64_extract_return_value, ia64_store_return_value)
7925 (ia64_push_dummy_call): Use gdb_byte.
7926 * m32c-tdep.c (m32c_return_value): Remove cast.
7927 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7928 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7929 gdb_byte.
7930 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7931 * mn10300-tdep.c (mn10300_store_return_value)
7932 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
7933 gdb_byte.
7934 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
7935 (moxie_process_record): Remove casts.
7936 * ppc-ravenscar-thread.c (supply_register_at_address)
7937 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
7938 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
7939 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
7940 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
7941 * remote.c (compare_sections_command): Use gdb_byte.
7942 * score-tdep.c (score7_free_memblock): Change type of parameter to
7943 gdb_byte *.
7944 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
7945 gdb_byte *. Use gdb_byte.
7946 (sh_push_dummy_call_fpu): Use gdb_byte.
7947 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
7948 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
7949 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
7950 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7951 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
7952 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
7953 (sh64_store_return_value, sh64_register_convert_to_virtual):
7954 Change parameter type to 'gdb_byte *'. Use gdb_byte.
7955 (sh64_pseudo_register_write): Use gdb_byte.
7956 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
7957 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
7958 buffer.
7959 (irix_current_sos): Use gdb_byte.
7960 * solib-som.c (som_current_sos): Use gdb_byte.
7961 * sparc-ravenscar-thread.c (supply_register_at_address)
7962 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
7963 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7964 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
7965 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
7966 'gdb_byte *'.
7967 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
7968 'gdb_byte *'.
7969 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
7970 * xstormy16-tdep.c (xstormy16_extract_return_value)
7971 (xstormy16_store_return_value): Change parameter type to
7972 'gdb_byte *'. Adjust.
7973 (xstormy16_push_dummy_call): Use gdb_byte.
7974 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
7975 (call0_analyze_prologue, execute_code): Use gdb_byte.
7976
7977 2013-04-19 Vladimir Kargov <kargov@gmail.com>
7978 Pedro Alves <palves@redhat.com>
7979
7980 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7981 value contents.
7982
7983 2013-04-17 Doug Evans <dje@google.com>
7984
7985 * dwarf2read.c (struct signatured_type): New member type.
7986 (struct attribute): Replace member signatured_type with signature.
7987 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7988 (read_call_site_scope): Call follow_die_ref instead of
7989 follow_die_ref_or_sig.
7990 (read_structure_type): Rewrite handling of signatured types.
7991 (read_enumeration_type): Ditto.
7992 (read_attribute_value): Update.
7993 (build_error_marker_type): New function.
7994 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7995 Don't call error for bad types, just build an error marker type.
7996 (dump_die_shallow): Update.
7997 (follow_die_sig_1): Renamed from follow_die_sig.
7998 Don't call error for bad types, instead return NULL.
7999 (follow_die_sig): New function.
8000 (get_signatured_type, get_DW_AT_signature_type): New functions.
8001
8002 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8003
8004 * aarch64-tdep.c (aarch64_write_pc): Removed.
8005 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8006 function.
8007
8008 2013-04-17 Yao Qi <yao@codesourcery.com>
8009
8010 * top.c (print_gdb_configuration): Print configure-time
8011 parameter on using libbabeltrace or not.
8012
8013 2013-04-16 Pedro Alves <palves@redhat.com>
8014
8015 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8016
8017 2013-04-16 Pedro Alves <palves@redhat.com>
8018
8019 * common/glibc_thread_db.h: Update from upstream glibc
8020 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8021
8022 2013-04-16 Pedro Alves <palves@redhat.com>
8023
8024 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8025 * common/glibc_thread_db.h: ... this new file ...
8026 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8027
8028 2013-04-16 Will Newton <will.newton@gmail.com>
8029 Pedro Alves <palves@redhat.com>
8030
8031 PR build/11881
8032
8033 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8034 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8035 HAVE_THREAD_DB_H.
8036
8037 2013-04-16 Pedro Alves <palves@redhat.com>
8038 Eli Zaretskii <eliz@gnu.org>
8039
8040 * NEWS: Mention "set foo unlimited".
8041
8042 2013-04-15 Doug Evans <dje@google.com>
8043
8044 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8045 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8046 (create_dwo_cu_reader): Renamed from
8047 create_dwo_debug_info_hash_table_reader.
8048 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8049 Remove support for multiple CUs in a DWO file.
8050 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8051
8052 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8053 instead of phex.
8054 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8055 (create_dwo_in_dwp): Ditto.
8056
8057 2013-04-15 Tom Tromey <tromey@redhat.com>
8058
8059 * NEWS: Move recent entries into "since 7.6" section.
8060
8061 2013-04-15 Tom Tromey <tromey@redhat.com>
8062
8063 PR c++/13588:
8064 * NEWS: Update.
8065 * break-catch-throw.c (struct exception_catchpoint)
8066 <exception_rx, pattern>: New fields.
8067 (fetch_probe_arguments, dtor_exception_catchpoint)
8068 (check_status_exception_catchpoint)
8069 (print_one_detail_exception_catchpoint): New functions.
8070 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8071 Compile regular expression if needed.
8072 (extract_exception_regexp): New function.
8073 (catch_exception_command_1): Use extract_exception_regexp.
8074 (compute_exception): Use fetch_probe_arguments.
8075 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8076 and check_status fields.
8077 * cp-abi.c (cplus_typename_from_type_info): New function.
8078 * cp-abi.h (cplus_typename_from_type_info): Declare.
8079 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8080 * gdb_regex.h (compile_rx_or_error): Declare.
8081 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8082 comment.
8083 (init_gnuv3_ops): Set get_type_from_type_info field.
8084 * probe.c (compile_rx_or_error): Move...
8085 * utils.c (compile_rx_or_error): ... here.
8086
8087 2013-04-15 Tom Tromey <tromey@redhat.com>
8088
8089 PR c++/15176:
8090 * NEWS: Update.
8091 * break-catch-throw.c (compute_exception): New function.
8092 (exception_funcs): New global.
8093 (_initialize_break_catch_throw): Create $_exception.
8094 * cp-abi.c (cplus_type_from_type_info): New function.
8095 * cp-abi.h (cplus_type_from_type_info): Declare.
8096 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8097 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8098 (gnuv3_get_type_from_type_info): New functions.
8099 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8100
8101 2013-04-15 Tom Tromey <tromey@redhat.com>
8102
8103 * break-catch-throw.c (struct exception_names): New.
8104 (exception_functions): Change type.
8105 (re_set_exception_catchpoint): Look for SDT probes.
8106
8107 2013-04-15 Tom Tromey <tromey@redhat.com>
8108
8109 PR c++/10119:
8110 * break-catch-throw.c (exception_functions): New global.
8111 (gnu_v3_exception_catchpoint_ops): Move earlier.
8112 (struct exception_catchpoint): New.
8113 (classify_exception_breakpoint): Rewrite.
8114 (re_set_exception_catchpoint): New function.
8115 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8116 Allocate a struct exception_catchpoint.
8117 (catch_exception_command_1): Update.
8118 (initialize_throw_catchpoint_ops): Set 're_set' method.
8119
8120 2013-04-15 Tom Tromey <tromey@redhat.com>
8121
8122 * Makefile.in (SFILES): Add break-catch-throw.c
8123 (COMMON_OBS): Add break-catch-throw.o.
8124 * break-catch-throw.c: New file.
8125 * breakpoint.c: Move exception-catching code to new file.
8126 (ep_parse_optional_if_clause): No longer static.
8127 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8128
8129 2013-04-15 Tom Tromey <tromey@redhat.com>
8130
8131 PR c++/9065:
8132 * NEWS: Update.
8133 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8134 * c-exp.y (TYPEID): New token.
8135 (exp): Add new TYPEID productions.
8136 (ident_tokens): Add "typeid".
8137 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8138 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8139 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8140 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8141 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8142 case.
8143 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8144 (build_std_type_info_type, gnuv3_get_typeid_type)
8145 (gnuv3_get_typeid): New functions.
8146 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8147 new fields on ABI object.
8148 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8149 * std-operator.def (OP_TYPEID): New.
8150
8151 2013-04-15 Tom Tromey <tromey@redhat.com>
8152
8153 * elfread.c (elf_symtab_read): Install versioned symbol under
8154 unversioned name as well.
8155
8156 2013-04-15 Tom Tromey <tromey@redhat.com>
8157
8158 PR c++/11990:
8159 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8160 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8161 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8162 (gdb_demangle): New function.
8163 * cp-support.h (gdb_demangle): Declare.
8164 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8165 (dwarf2_name): Use gdb_demangle.
8166 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8167 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8168 suffixes from name.
8169 (gnuv3_print_method_ptr): Use gdb_demangle.
8170 * jv-lang.c (java_demangle): Use gdb_demangle.
8171 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8172 * language.c (unk_lang_demangle): Use gdb_demangle.
8173 * symtab.c (symbol_find_demangled_name)
8174 (demangle_for_lookup): Use gdb_demangle.
8175
8176 2013-04-15 Tom Tromey <tromey@redhat.com>
8177
8178 PR c++/12824:
8179 * NEWS: Update.
8180 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8181 New constant.
8182 (classify_exception_breakpoint): New function.
8183 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8184 (print_mention_exception_catchpoint)
8185 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8186 (catch_exception_command_1): Handle "rethrow" catchpoint.
8187 (catch_rethrow_command): New function.
8188 (_initialize_breakpoint): Add "catch rethrow" command.
8189
8190 2013-04-15 Pierre Muller <muller@sourceware.org>
8191
8192 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8193 set_gdbarch_write_pc as deprecated anymore.
8194
8195 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8196
8197 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8198 declarations.
8199
8200 2013-04-13 Yao Qi <yao@codesourcery.com>
8201
8202 * ctf.c (_initialize_ctf): Include "completer.h".
8203 Call add_target_with_completer instead of add_target.
8204
8205 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8206
8207 Fix GDB regression related to PR binutils/14813.
8208 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8209 * minidebug.c (lzma_close): Add return value comment.
8210 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8211 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8212 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8213
8214 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8215
8216 * config.in: Regenerate.
8217
8218 2013-04-12 Tom Tromey <tromey@redhat.com>
8219
8220 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8221 const.
8222 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8223 (struct die_reader_specs) <buffer>: Likewise.
8224 (die_reader_func_ftype): Make 'info_ptr' const.
8225 (struct line_header) <include_dirs, statement_program_start,
8226 statement_program_end>: Now const.
8227 (struct file_entry) <name>: Likewise.
8228 (struct partial_die_info) <sibling>: Likewise.
8229 (struct dwarf_block) <data>: Likewise.
8230 (dwarf2_read_section): Remove cast.
8231 (dwarf2_get_section_info): Make 'bufp' const.
8232 (read_index_from_section): Constify.
8233 (dw2_get_file_names_reader): Make 'info_ptr' const.
8234 (dw2_get_primary_filename_reader): Likewise.
8235 (read_comp_unit_head): Make 'info_ptr' and return type const.
8236 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8237 Likewise.
8238 (read_abbrev_offset): Constify.
8239 (dwarf2_create_include_psymtab): Make 'name' const.
8240 (create_debug_types_hash_table): Update.
8241 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8242 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8243 Constify.
8244 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8245 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8246 (read_comp_units_from_section): Constify.
8247 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8248 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8249 const.
8250 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8251 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8252 (create_dwp_hash_table, dwarf2_ranges_read)
8253 (dwarf2_record_block_ranges): Constify.
8254 (read_die_and_children, read_die_and_siblings_1)
8255 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8256 const.
8257 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8258 (abbrev_table_read_table): Constify.
8259 (load_partial_dies): Make 'info_ptr' const.
8260 (read_partial_die, read_attribute_value, read_attribute): Make
8261 'info_ptr' and return type const.
8262 (read_address, read_initial_length)
8263 (read_checked_initial_length_and_offset, read_offset)
8264 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8265 const.
8266 (read_direct_string): Make 'buf' and return type const.
8267 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8268 (read_indirect_string): Make return type const.
8269 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8270 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8271 'info_ptr' const.
8272 (read_str_index): Make return type const.
8273 (add_include_dir): Make 'include_dir' const.
8274 (add_file_name): Make 'name' const.
8275 (dwarf_decode_line_header): Constify.
8276 (psymtab_include_file_name): Make return type const.
8277 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8278 (dwarf2_start_subfile): Make 'filename' const.
8279 (dwarf2_const_value_attr): Make 'bytes' const.
8280 (read_signatured_type_reader): Make 'info_ptr' const.
8281 (decode_locdesc): Constify.
8282 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8283 const.
8284 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8285 'mac_end', and return type const.
8286 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8287 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8288 type const.
8289 (per_cu_header_read_in): Constify.
8290 * symfile.h (dwarf2_get_section_info): Update.
8291
8292 2013-04-12 Tom Tromey <tromey@redhat.com>
8293
8294 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8295
8296 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8297
8298 * NEWS: Mention "show configuration", --configuration.
8299 * top.c (print_gdb_configuration): New function, displays the
8300 details about GDB configure-time parameters.
8301 (print_gdb_version): Mention "show configuration".
8302 * cli/cli-cmds.c (show_configuration): New function.
8303 (_initialize_cli_cmds): Add the "show configuration" command.
8304 * main.c (captured_main) <print_configuration>: New static var.
8305 <long_options>: Use it.
8306 If --configuration was given, call print_gdb_configuration.
8307
8308 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8309 Pedro Alves <palves@redhat.com>
8310
8311 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8312 (generated_files): Add gcore.
8313 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8314 HAVE_NATIVE_GCORE_HOST.
8315 (gcore): New.
8316 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8317 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8318 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8319 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8320 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8321 Add HAVE_NATIVE_GCORE_HOST.
8322 * configure: Regenerate.
8323 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8324 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8325 AC_CONFIG_FILES for gcore.
8326 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8327 gdb_have_gcore.
8328 * gdb_gcore.sh: Rename to ...
8329 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8330 and GCORE_TRANSFORM_NAME substitutions.
8331
8332 Fix parsing tabs in ${gdb_target_obs}.
8333 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8334
8335 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8336
8337 * remote.c (unpush_and_perror): Add output message final dot.
8338
8339 2013-04-11 Yao Qi <yao@codesourcery.com>
8340
8341 * tracepoint.c (tfile_interp_line): Fit parameters line and
8342 utpp in one line.
8343
8344 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8345
8346 * solib.c (solib_map_sections): Remove code overwriting
8347 SO->SO_NAME with the bfd's filename.
8348
8349 2013-04-10 Pedro Alves <palves@redhat.com>
8350
8351 * cli/cli-decode.c (integer_unlimited_completer): New function.
8352 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8353 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8354 completer.
8355 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8356 (is_unlimited_literal): New function.
8357 (do_set_command): Handle literal "unlimited" arguments.
8358 * frame.c (_initialize_frame) <set backtrace limit>: Document
8359 "unlimited".
8360 * printcmd.c (_initialize_printcmd) <set print
8361 max-symbolic-offset>: Add help text.
8362 * record-full.c (_initialize_record_full) <set record full
8363 insn-number-max>: Likewise.
8364 * record.c (_initialize_record) <set record
8365 instruction-history-size, set record function-call-history-size>:
8366 Add help text.
8367 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8368 help text.
8369 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8370 Likewise.
8371 * source.c (_initialize_source) <set listsize>: Add help text.
8372 * utils.c (initialize_utils) <set height, set width>: Likewise.
8373 <set pagination>: Mention "set height unlimited".
8374 * valprint.c (_initialize_valprint) <set print elements, set print
8375 repeats>: Document "unlimited".
8376
8377 2013-04-10 Pedro Alves <palves@redhat.com>
8378
8379 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8380 instead of disconnect_tracing.
8381 * infcmd.c (detach_command, disconnect_command): Call
8382 query_if_trace_running. Adjust.
8383 * top.c: Include "tracepoint.h".
8384 (quit_target): Delete. Contents moved ...
8385 (quit_force): ... here. Wrap each stage of teardown in
8386 TRY_CATCH. Call disconnect_tracing before detaching.
8387
8388 2013-04-10 Hui Zhu <hui@codesourcery.com>
8389 Yao Qi <yao@codesourcery.com>
8390
8391 * configure.ac: Check libbabeltrace is installed.
8392 * config.in: Regenerate.
8393 * configure: Regenerate.
8394 * Makefile.in (LIBBABELTRACE): New.
8395 (CLIBS): Add LIBBABELTRACE.
8396 * ctf.c: Include "exec.h".
8397 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8398 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8399 (ctf_save_metadata_header): Define new type aliases in
8400 metadata.
8401 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8402 in metadata. Start a new faked packet for trace status.
8403 (ctf_write_status): Write trace status to CTF.
8404 (ctf_write_uploaded_tsv): Write TSV to CTF.
8405 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8406 (ctf_write_definition_end): End the faked packet.
8407
8408 (ctx, ctf_iter, trace_dirname): New.
8409 (start_pos): New variable.
8410 (ctf_destroy, ctf_open_dir, ctf_open): New.
8411 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8412 macros.
8413 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8414 (ctf_fetch_registers, ctf_xfer_partial): New.
8415 (ctf_get_trace_state_variable_value): New.
8416 (ctf_get_tpnum_from_frame_event): New.
8417 (ctf_get_traceframe_address): New.
8418 (ctf_trace_find, ctf_has_stack): New.
8419 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8420 (ctf_get_trace_status, ctf_read_status): New.
8421 (_initialize_ctf): New.
8422 * tracepoint.c (get_tracepoint_number): New
8423 (get_uploaded_tsv): Remove 'static'.
8424 (struct traceframe_info, trace_regblock_size): Move it to ...
8425 * tracepoint.h: ... here.
8426 (get_tracepoint_number): Declare it.
8427 (get_uploaded_tsv): Declare it.
8428
8429 * NEWS: Mention new configure option.
8430
8431 2013-04-10 Pedro Alves <palves@redhat.com>
8432 Hui Zhu <hui@codesourcery.com>
8433
8434 * breakpoint.c (dprintf_re_set): New.
8435 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8436 to dprintf_re_set.
8437
8438 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8439
8440 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8441 Remove solib-svr4.o from the list.
8442
8443 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8444
8445 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8446 Use gdb_assert_not_reached instead of invalid boolean expression.
8447
8448 2013-04-09 Pedro Alves <palves@redhat.com>
8449
8450 * remote.c (unpush_and_perror): New function.
8451 (readchar, remote_serial_write): Use it.
8452
8453 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8454
8455 * NEWS: Mention new btrace RSP packets.
8456
8457 2013-04-08 Tom Tromey <tromey@redhat.com>
8458
8459 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8460 long.
8461
8462 2013-04-08 Tom Tromey <tromey@redhat.com>
8463
8464 * maint.c (print_bfd_section_info): Print the section index.
8465 * symmisc.c (dump_msymbols): Print the section index.
8466
8467 2013-04-08 Tom Tromey <tromey@redhat.com>
8468
8469 PR symtab/8424:
8470 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8471 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8472 * breakpoint.c (resolve_sal_pc): Update.
8473 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8474 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8475 (minsym_lookup_iterator_cb): Use it.
8476 (default_read_var_value): Update.
8477 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8478 Update.
8479 * infcmd.c (jump_command): Update.
8480 * linespec.c (minsym_found): Update.
8481 * maint.c (maintenance_translate_address): Update.
8482 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8483 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8484 * parse.c (write_exp_msymbol): Update.
8485 * printcmd.c (address_info): Update.
8486 * psymtab.c (find_pc_sect_psymbol): Update.
8487 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8488 SYMBOL_OBJ_SECTION.
8489 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8490 Don't initialize SYMBOL_OBJ_SECTION.
8491 * spu-tdep.c (spu_catch_start): Update.
8492 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8493 * symmisc.c (dump_msymbols, print_symbol): Update.
8494 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8495 how fallback section is computed.
8496 (fixup_symbol_section): Update.
8497 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8498 Update.
8499 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8500 Initialize SYMBOL_SECTION.
8501 * symtab.h (struct general_symbol_info) <section>: Update comment.
8502 <obj_section>: Remove.
8503 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8504 (SYMBOL_OBJFILE): New macro.
8505
8506 2013-04-08 Tom Tromey <tromey@redhat.com>
8507
8508 * coffread.c (record_minimal_symbol): Update.
8509 * dbxread.c (record_minimal_symbol): Update.
8510 * elfread.c (record_minimal_symbol): Update.
8511 * machoread.c (macho_symtab_add_minsym): Update.
8512 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8513 Update.
8514 * minsyms.c (prim_record_minimal_symbol): Update.
8515 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8516 argument.
8517 (prim_record_minimal_symbol_and_info): Likewise.
8518 * minsyms.h (prim_record_minimal_symbol_full)
8519 (prim_record_minimal_symbol_and_info): Update.
8520 * symtab.c (allocate_symbol, initialize_symbol)
8521 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8522 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8523 Update.
8524
8525 2013-04-08 Tom Tromey <tromey@redhat.com>
8526
8527 PR symtab/8423:
8528 * solib-som.c (som_solib_section_offsets): Use BFD section
8529 indices. Set offsets for all sections.
8530 * somread.c (som_symtab_read): Compute BFD section for
8531 symbol. Use prim_record_minimal_symbol_and_info.
8532 (som_symfile_read): Fix comment.
8533 (struct find_section_offset_arg): New.
8534 (find_section_offset, set_section_index): New functions.
8535 (som_symfile_offsets): Use set_section_index to compute
8536 section indices.
8537
8538 2013-04-08 Tom Tromey <tromey@redhat.com>
8539
8540 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8541 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8542 gdb_bfd_section_index.
8543 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8544 New functions.
8545 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8546 Declare.
8547 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8548 Update.
8549 * objfiles.c (add_to_objfile_sections_full): New function.
8550 (add_to_objfile_sections): Use it.
8551 (build_section_table): Rewrite.
8552 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8553 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8554 (struct objfile) <sections>: Update comment.
8555 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8556 is NULL.
8557 (ALL_OBJSECTIONS): Use it.
8558 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8559 * solib-frv.c (frv_relocate_main_executable): Update.
8560 * solib-target.c (solib_target_relocate_section_addresses):
8561 Use gdb_bfd_section_index.
8562 * symfile.c (build_section_addr_info_from_section_table):
8563 Use gdb_bfd_section_index.
8564 (build_section_addr_info_from_bfd, place_section): Likewise.
8565 * symtab.c (fixup_section): Update.
8566 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8567
8568 2013-04-08 Tom Tromey <tromey@redhat.com>
8569
8570 * minsyms.h (struct bound_minimal_symbol): New.
8571 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8572 Remove objfile argument.
8573 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8574 Return bound_minimal_symbol.
8575 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8576 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8577 Return bound_minimal_symbol.
8578 (in_gnu_ifunc_stub): Update.
8579 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8580 Remove 'objfile_p' argument.
8581 (lookup_solib_trampoline_symbol_by_pc): Update.
8582 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8583 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8584 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8585 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8586 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8587 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8588 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8589 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8590 stack.c, symtab.c, tui/tui-disasm.c: Update.
8591
8592 2013-04-08 Tom Tromey <tromey@redhat.com>
8593
8594 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8595 Use symbol's obstack, not an objfile.
8596 * coffread.c (process_coff_symbol): Update.
8597 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8598 * jv-lang.c (add_class_symbol): Update.
8599 * mdebugread.c (new_symbol): Update.
8600 * minsyms.c (prim_record_minimal_symbol_full)
8601 (terminate_minimal_symbol_table): Update.
8602 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8603 * stabsread.c (define_symbol, read_enum_type): Update.
8604 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8605 Handle Ada specially.
8606 (symbol_set_language): Add 'obstack' argument.
8607 (symbol_set_names): Update.
8608 (symbol_natural_name, symbol_demangled_name): Always use
8609 ada_decode_symbol.
8610 * symtab.h (struct general_symbol_info)
8611 <language_specific::obstack>: New field.
8612 <ada_mangled>: New field.
8613 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8614 (symbol_set_language): Update.
8615
8616 2013-04-08 Tom Tromey <tromey@redhat.com>
8617
8618 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8619 Take an obstack, not an objfile.
8620 (symbol_set_names): Update.
8621 * symtab.h (symbol_set_demangled_name): Update.
8622
8623 2013-04-08 Tom Tromey <tromey@redhat.com>
8624
8625 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8626 allocate_symbol.
8627 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8628 (read_func_scope): Call allocate_template_symbol.
8629 (new_symbol_full): Call allocate_symbol.
8630 * jit.c (finalize_symtab): Call allocate_symbol.
8631 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8632 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8633 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8634 (common_block_end): Call allocate_symbol.
8635 * symtab.c (allocate_symbol, initialize_symbol)
8636 (allocate_template_symbol): New functions.
8637 * symtab.c (allocate_symbol, initialize_symbol)
8638 (allocate_template_symbol): Declare.
8639 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8640
8641 2013-04-08 Pedro Alves <palves@redhat.com>
8642 Keith Seitz <keiths@redhat.com>
8643
8644 * breakpoint.c (create_breakpoint): Rename
8645 "parse_condition_and_thread" parameter to "parse_arg". Update
8646 describing comment. If !PARSE_ARG, then error out if ARG is not
8647 the empty string after extracting the location.
8648 * breakpoint.h (create_breakpoint): Rename
8649 "parse_condition_and_thread" parameter to "parse_arg".
8650
8651 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8652
8653 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8654
8655 2013-04-07 Yao Qi <yao@codesourcery.com>
8656
8657 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8658 and 'addr2' to CORE_ADDR.
8659 * target.c (update_current_target): Update.
8660 * target.h (struct target_ops) <to_trace_find>: Change parameter
8661 type to CORE_ADDR.
8662 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8663 'addr2' to CORE_ADDR.
8664 (tfile_trace_find): Likewise.
8665 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8666 Change local variable 'addr' to type CORE_ADDR.
8667 * tracepoint.h (tfind_1): Update declaration.
8668
8669 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8670
8671 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8672 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8673 Include main.h.
8674
8675 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8676 here...
8677 * main.h (windows_get_absolute_argv0): ...to here.
8678
8679 2013-04-05 Doug Evans <dje@google.com>
8680
8681 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8682 (read_cutu_die_from_dwo): Add comments.
8683 (read_structure_type): Update comment.
8684 (read_enumeration_type, read_namespace_type): Update comment.
8685 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8686
8687 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8688
8689 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8690 * Makefile.in (gdb.z): Remove.
8691 (install-only): Remove $(man1dir) and gdb.1 installation.
8692 * gdb.1: Remove.
8693
8694 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8695
8696 Fix compatibility with Linux kernel 3.8.3.
8697 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8698 to more inner block. Remove parsing of NUMBER from outer block.
8699 Parse NUMBER only if KEYWORD has been identified.
8700
8701 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8702
8703 Fix variable name shadowing.
8704 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8705 filename to mapsfilename and update its uses.
8706
8707 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8708
8709 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8710 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8711 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8712 details of the problem.
8713
8714 2013-04-04 Pedro Alves <palves@redhat.com>
8715 Hui Zhu <hui@codesourcery.com>
8716
8717 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8718 tracepoint, reset its STEP_COUNT and call validate_actionline.
8719
8720 2013-04-03 Doug Evans <dje@google.com>
8721
8722 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8723 read_die_and_siblings.
8724 (read_die_and_siblings): New function.
8725 (read_cutu_die_from_dwo): Dump die if requested.
8726 (read_die_and_children): Call read_full_die_1 and
8727 read_die_and_siblings_1.
8728 (read_full_die): Dump die if requested.
8729
8730 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8731
8732 * dwarf2read.c (struct dwo_file): New member comp_dir.
8733 Rename member name to dwo_name. All uses updated.
8734 (hash_dwo_file): Include comp_dir in computation.
8735 (eq_dwo_file): Ditto.
8736 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8737 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8738
8739 * psymtab.c (read_psymtabs_with_fullname): Don't call
8740 psymtab_to_fullname if the basenames are different.
8741
8742 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8743
8744 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8745 New entry about "fullname" presence.
8746
8747 2013-04-03 Pedro Alves <palves@redhat.com>
8748
8749 * NEWS: Mention x86_64/Cygwin as new native configuration.
8750
8751 2013-04-02 Doug Evans <dje@google.com>
8752
8753 * dwarf2read.c (read_structure_type): Fix typo in comment.
8754
8755 2013-04-02 Pedro Alves <palves@redhat.com>
8756
8757 * NEWS: Mention "set/show debug aarch64", "set/show debug
8758 coff-pe-read" and "set/show debug mach-o".
8759
8760 2013-04-02 Pedro Alves <palves@redhat.com>
8761
8762 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8763
8764 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8765
8766 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8767 gdb_string.h is now in common/.
8768
8769 2013-04-02 Pedro Alves <palves@redhat.com>
8770
8771 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8772 under "New options".
8773
8774 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 Revert this patch:
8777 PR gdb/15275
8778 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8779
8780 2013-04-02 Pedro Alves <palves@redhat.com>
8781
8782 PR gdb/15275
8783
8784 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8785 (remote_serial_write): New function.
8786 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8787
8788 2013-04-01 Jiong Wang <jiwang@tilera.com>
8789
8790 * NEWS: Mention TILE-Gx in "New native configurations" and
8791 "New targets" sections.
8792
8793 2013-04-01 Doug Evans <dje@google.com>
8794
8795 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8796 (process_enumeration_scope): Simplify.
8797
8798 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8799 type_unit_group ...
8800 (struct signatured_type): ... to here.
8801 (sig_type_ptr): New typedef.
8802 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8803 out of union 't'. All uses updated.
8804 (dw2_get_file_names_reader): Assert not called for a type unit.
8805 (dw2_get_file_names): Assert not called for a type unit or type
8806 unit group.
8807 (build_type_psymtabs_reader): Assert called for a type unit.
8808 (build_type_psymtab_dependencies): Assert called for a type unit group.
8809
8810 * dwarf2read.c (free_dwo_file): Add comment.
8811 (dwarf2_per_objfile_free): Unref dwp bfd.
8812
8813 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8814
8815 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8816 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8817 (read_pe_exported_syms): Remove unused 'exportix'.
8818 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8819 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8820 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8821
8822 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8823
8824 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8825 (print_it_watchpoint): Remove unused 'bl'.
8826 (say_where): Remove unused 'uiout'.
8827 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8828 (bkpt_breakpoint_hit): Remove unused 'b'.
8829 (internal_bkpt_print_it): Remove unused 'uiout'.
8830 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8831
8832 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8833
8834 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8835 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8836
8837 2013-03-29 Doug Evans <dje@google.com>
8838
8839 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8840 Delete arg is_dwp. All callers updated.
8841 (open_dwp_file): New function.
8842 (open_and_init_dwp_file): Call it.
8843 (get_dwp_file): New function.
8844 (lookup_dwo_cutu): Call it.
8845
8846 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8847 unnecessary, cleanup.
8848
8849 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8850
8851 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8852 (lookup_dwo_unit): New function.
8853 (init_cutu_and_read_dies): Move DWO handling to new functions.
8854
8855 * dwarf2read.c (struct signatured_type): Tweak comment.
8856 (struct dwo_unit): Tweak comment.
8857 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8858 (create_dwo_debug_info_hash_table): Tweak comment.
8859 (dwarf2_per_cu_offset_and_type): Tweak comment.
8860
8861 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8862 missing .debug_types section.
8863
8864 2013-03-29 Yao Qi <yao@codesourcery.com>
8865
8866 * corelow.c: Include "completer.h".
8867 (_initialize_corelow): Call add_target_with_completer with
8868 argument 'filename_completer'.
8869 * tracepoint.c: Likewise.
8870 * exec.c (_initialize_exec): Likewise.
8871 * target.c (add_target): Rename to ...
8872 (add_target_with_completer): ... this. Call set_cmd_completer
8873 if parameter completer is not NULL.
8874 (add_target): New.
8875 * target.h: Include "command.h".
8876 (add_target_with_completer): Declare it.
8877
8878 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8879
8880 * coffread.c (is_import_fixup_symbol): New function.
8881 (record_minimal_symbol): Use is_import_fixup_symbol to
8882 detect import fixup symbols, and discard them.
8883
8884 2013-03-28 Doug Evans <dje@google.com>
8885
8886 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8887 types hash table until we know we need it.
8888
8889 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8890 index numbers.
8891
8892 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8893 All callers updated.
8894 (dw2_print_stats): Print #read CUs too.
8895 (dump_die_shallow): Print signatured types better.
8896
8897 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8898 info_or_types_section to section. All uses updated.
8899 (struct dwo_unit): Ditto.
8900
8901 2013-03-28 Pedro Alves <palves@redhat.com>
8902
8903 * NEWS (New options): New section.
8904 (New options): Mention set/show remote trace-status-packet.
8905 * remote.c (PACKET_qTStatus): New enumeration value.
8906 (remote_get_trace_status): Skip sending qTStatus if the packet is
8907 disabled. Use packet_ok.
8908 (_initialize_remote): Register a configuration command for
8909 qTStatus packet.
8910
8911 2013-03-28 Doug Evans <dje@google.com>
8912
8913 * symfile.c (find_separate_debug_file): Add comment.
8914 (terminate_after_last_dir_separator): Tweak comment.
8915
8916 * dwarf2read.c (create_partial_symtab): Add forward decl.
8917 (create_partial_symtab): Move to be closer to other psymtab functions.
8918 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8919
8920 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8921 (compute_symtab_includes): Remove unnecessary forward declaration.
8922 (die_needs_namespace): Add comment marking group of functions for
8923 dwarf2 name computation.
8924
8925 * typeprint.c (_initialize_typeprint): Improve type help text.
8926
8927 * python/python.c (finish_python_initialization): Provide suggestion
8928 for how to tell gdb to find its python files.
8929
8930 2013-03-28 Pedro Alves <palves@redhat.com>
8931
8932 PR gdb/15294
8933
8934 * source.c (_initialize_source): Change back "set listsize" to an
8935 integer command.
8936
8937 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
8938
8939 PR gdb/15275
8940 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8941
8942 2013-03-27 Pedro Alves <palves@redhat.com>
8943
8944 * top.c (history_size): Rename to ...
8945 (history_size_setshow_var): ... this. Add comment.
8946 (show_commands): Use readline's 'history_length' instead of
8947 computing the history length by calling history_get in a loop.
8948 (set_history_size_command): Error out for sizes over INT_MAX.
8949 Restore previous history size on invalid size.
8950 (init_history): If HISTSIZE is negative, leave the history size as
8951 zero. Add comments.
8952 (init_main): Adjust.
8953
8954 2013-03-27 Pedro Alves <palves@redhat.com>
8955
8956 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
8957 coff_pe_read" command to "set debug coff-pe-read".
8958
8959 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
8960
8961 * record.c (command_size_to_target_size): Fix size comparison.
8962 Change parameter type from pointer to integer to integer.
8963 Update all users.
8964
8965 2013-03-27 Pierre Muller <muller@sourceware.org>
8966
8967 * windows-nat.c (handle_output_debug_string): Avoid typecast
8968 from integer of different size warning.
8969
8970 2013-03-26 Joel Brobecker <brobecker@adacore.com>
8971
8972 * windows-nat.c (handle_output_debug_string): Add empty line
8973 after local block variable definition.
8974
8975 2013-03-26 Pedro Alves <palves@redhat.com>
8976
8977 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
8978 (net_open): Make 'polls' local unsigned.
8979
8980 2013-03-26 Pedro Alves <palves@redhat.com>
8981
8982 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8983 a zuinteger command instead of uinteger.
8984
8985 2013-03-26 Pedro Alves <palves@redhat.com>
8986
8987 * record-full.c (record_full_insn_num): Make it unsigned.
8988 (record_full_check_insn_num, record_full_message)
8989 (record_full_registers_change, record_full_xfer_partial): Remove
8990 record_full_insn_max_num check (it's always != 0).
8991 (record_full_info, record_full_restore): Use %u as format string.
8992 (): Use %u as format string.
8993 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8994 check (it's always != 0).
8995
8996 2013-03-26 Pedro Alves <palves@redhat.com>
8997
8998 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8999 and "set dcache size" commands zuinteger instead of uinteger.
9000
9001 2013-03-26 Pedro Alves <palves@redhat.com>
9002
9003 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9004 command zuinteger instead of uinteger.
9005
9006 2013-03-26 Pedro Alves <palves@redhat.com>
9007
9008 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9009 zuinteger instead of uinteger.
9010
9011 2013-03-26 Pedro Alves <palves@redhat.com>
9012
9013 * record.c (record_insn_history_size_setshow_var)
9014 (record_call_history_size_setshow_var): New globals.
9015 (command_size_to_target_size): New function.
9016 (cmd_record_insn_history, cmd_record_call_history): Use
9017 command_size_to_target_size instead of cast.
9018 (validate_history_size, set_record_insn_history_size)
9019 (set_record_call_history_size): New functions.
9020 (_initialize_record): Install set_record_insn_history_size and
9021 set_record_call_history_size as "set" hooks of "set record
9022 instruction-history-size" and "set record
9023 function-call-history-size".
9024
9025 2013-03-26 Pedro Alves <palves@redhat.com>
9026
9027 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9028 use with history_max_entries use. Remove FIXME note.
9029
9030 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9031
9032 * record-btrace.c (record_btrace_close): Call
9033 record_btrace_auto_disable.
9034
9035 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9036
9037 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9038
9039 2013-03-25 Doug Evans <dje@google.com>
9040
9041 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9042
9043 2013-03-25 Tom Tromey <tromey@redhat.com>
9044
9045 PR symtab/11462:
9046 * c-exp.y (exp): Add new productions for destructors after '.' and
9047 '->'.
9048 (write_destructor_name): New function.
9049
9050 2013-03-25 Tom Tromey <tromey@redhat.com>
9051
9052 PR c++/9197:
9053 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9054 value_struct_elt, not lookup_struct_elt_type.
9055 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9056 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9057 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9058
9059 2013-03-25 Yao Qi <yao@codesourcery.com>
9060
9061 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9062 instead of '_mkdir'.
9063
9064 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9065
9066 * windows-nat.c (windows_get_absolute_argv0): New function.
9067 * windows-nat.h: Add its prototype.
9068
9069 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9070 Use IS_DIR_SEPARATOR instead of looking for a character inside
9071 SLASH_STRING. Include filenames.h.
9072 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9073 relocate_gdb_directory works when passed gdb_program_name.
9074 Include windows-nat.h.
9075
9076 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9077
9078 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9079 * remote.c (trace_error): Remove the special handling of '2'.
9080 (readchar) <SERIAL_EOF>
9081 (readchar) <SERIAL_ERROR>
9082 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9083 (remote_get_trace_status): Call throw_exception if EX is
9084 TARGET_CLOSE_ERROR.
9085 * utils.c (perror_with_name): Rename to ...
9086 (throw_perror_with_name): ... here. New parameter errcode, describe it
9087 in the function comment.
9088 (perror_with_name): New function wrapper.
9089 * utils.h (enum errors): New stub declaration.
9090 (throw_perror_with_name): New declaration.
9091
9092 2013-03-22 Pedro Alves <palves@redhat.com>
9093 Yao Qi <yao@codesourcery.com>
9094 Mark Kettenis <kettenis@gnu.org>
9095
9096 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9097 Don't let the user set the value to UINT_MAX directly.
9098 <var_integer>: Don't let the user set the value to INT_MAX
9099 directly.
9100
9101 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9102
9103 * remote.c (remote_unpush_target): New function.
9104 (remote_open_1): Remove two pop_target calls, update one comment, add
9105 comment to target_preopen call. Replace pop_target call by
9106 remote_unpush_target call.
9107 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9108 pop_target calls by remote_unpush_target calls.
9109
9110 2013-03-22 Pedro Alves <palves@redhat.com>
9111
9112 * linux-nat.c (linux_child_follow_fork): Don't call
9113 linux_enable_event_reporting.
9114 (linux_handle_extended_wait): Don't call
9115 linux_enable_event_reporting.
9116
9117 2013-03-22 Pedro Alves <palves@redhat.com>
9118
9119 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9120 use it to rewrite the trampoline buffers with type gdb_byte[], and
9121 undefine the macro. Remove char* cast.
9122
9123 2013-03-21 Doug Evans <dje@google.com>
9124
9125 New commands "mt set per-command {space,time,symtab} {on,off}".
9126 * NEWS: Add entry.
9127 * event-top.c: #include "maint.h".
9128 * main.c: #include "maint.h".
9129 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9130 timeval-utils.h, maint.h, cli/cli-setshow.h.
9131 (per_command_time, per_command_space): New static globals.
9132 (per_command_symtab): New static global.
9133 (per_command_setlist, per_command_showlist): New static globals.
9134 (struct cmd_stats): Move here from utils.c.
9135 (set_per_command_time): Renamed from set_display_time in utils.c
9136 and moved here. All callers updated.
9137 (set_per_command_space): Renamed from set_display_space in utils.c
9138 and moved here. All callers updated.
9139 (count_symtabs_and_blocks): New function.
9140 (report_command_stats): Moved here from utils.c. Add support for
9141 printing symtab stats. Only print data if enabled before command
9142 executed.
9143 (make_command_stats_cleanup): Ditto.
9144 (sert_per_command_cmd, show_per_command_cmd): New functions.
9145 (_initialize_maint_cmds): Add new commands
9146 mt set per-command {space,time,symtab} {on,off}.
9147 * maint.h: New file.
9148 * top.c: #include "maint.h".
9149 * utils.c (reset_prompt_for_continue_wait_time): New function.
9150 (get_prompt_for_continue_wait_time): New function.
9151 * utils.h (reset_prompt_for_continue_wait_time): Declare
9152 (get_prompt_for_continue_wait_time): Declare.
9153 (make_command_stats_cleanup): Moved to maint.h.
9154 (set_display_time, set_display_space): Moved to maint.h and renamed
9155 to set_per_command_time, set_per_command_space.
9156 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9157 parse_binary_operation and made non-static. Don't call error,
9158 just return an error marker. All callers updated.
9159 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9160
9161 2013-03-21 Tom Tromey <tromey@redhat.com>
9162
9163 * symfile.c (alloc_section_addr_info): Update header. Don't set
9164 'num_sections' field.
9165 (build_section_addr_info_from_section_table): Set 'num_sections'.
9166 (build_section_addr_info_from_bfd): Likewise.
9167 (build_section_addr_info_from_objfile): Remove dead loop
9168 condition.
9169 (free_section_addr_info): Unconditionally call xfree.
9170 (relative_addr_info_to_section_offsets, addrs_section_sort)
9171 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9172 condition.
9173 (syms_from_objfile_1): Remove dead 'if' condition. Check
9174 'num_sections'.
9175 (add_symbol_file_command): Set 'num_sections'.
9176 * symfile-mem.c (symbol_file_add_from_memory): Set
9177 'num_sections'.
9178 * somread.c (som_symfile_offsets): Remove dead loop condition.
9179 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9180 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9181
9182 2013-03-21 Tom Tromey <tromey@redhat.com>
9183
9184 * tracepoint.h (decode_agent_options): Add 'trace_string'
9185 argument.
9186 * tracepoint.c (decode_agent_options): Add 'trace_string'
9187 argument.
9188 (validate_actionline): Update.
9189 (collect_symbol): Add 'trace_string' argument.
9190 (struct add_local_symbols_data) <trace_string>: New field.
9191 (do_collect_symbol): Update.
9192 (add_local_symbols): Add 'trace_string' argument.
9193 (encode_actions_1): Update.
9194 (trace_dump_actions): Update.
9195 * dwarf2loc.c (access_memory): Update.
9196 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9197 * ax-general.c (new_agent_expr): Update.
9198 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9199 (gen_trace_for_return_address): Add argument.
9200 (trace_kludge, trace_string_kludge): Remove.
9201 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9202 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9203 (gen_trace_for_var): Add 'trace_string' argument.
9204 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9205 (gen_printf, agent_eval_command_one): Update.
9206
9207 2013-03-21 Tom Tromey <tromey@redhat.com>
9208
9209 PR exp/15109:
9210 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9211 Handle FILENAME token.
9212
9213 2013-03-21 Tom Tromey <tromey@redhat.com>
9214
9215 * c-exp.y (YYPRINT): Define.
9216 (c_print_token): New function.
9217
9218 2013-03-21 Tom Tromey <tromey@redhat.com>
9219
9220 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9221
9222 2013-03-21 Yao Qi <yao@codesourcery.com>
9223
9224 * ctf.c: Include "gdb_stat.h".
9225 [USE_WIN32API]: New macro 'mkdir'.
9226 (ctf_start): Use permission bits macros if they are defined.
9227
9228 2013-03-20 Keith Seitz <keiths@redhat.com>
9229
9230 * breakpoint.h (struct breakpoint): Add comment to
9231 extra_string indicating that this member is mallod'd.
9232 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9233
9234 2013-03-20 Pedro Alves <palves@redhat.com>
9235
9236 PR gdb/15289
9237
9238 * cli/cli-setshow.c (do_set_command)
9239 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9240 the result of parsing the command argument. Throw error if the
9241 value is greater than UINT_MAX. Print the invalid value with
9242 plongest.
9243 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9244 result of parsing the command argument. Throw error if the value
9245 is greater than INT_MAX, not greater or equal. Also throw error
9246 if the value is less than INT_MIN. Print the invalid value with
9247 plongest.
9248 <var_zuinteger_unlimited>: Throw error if the value is greater
9249 than INT_MAX, not greater or equal.
9250 (do_show_command) <var_integer, var_zinteger,
9251 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9252
9253 2013-03-20 Tom Tromey <tromey@redhat.com>
9254
9255 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9256 if possible.
9257 * dwarf2read.c (read_func_scope): Remove old FIXME.
9258 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9259 not LOC_COMPUTED.
9260 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9261 Unconditionally call via computed ops, if possible.
9262 * printcmd.c (address_info): Unconditionally call via computed ops,
9263 if possible.
9264 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9265 if possible.
9266 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9267 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9268 if possible.
9269
9270 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9271 Tom Tromey <tromey@redhat.com>
9272
9273 PR symtab/8421:
9274 * coffread.c (coff_register_index): New global.
9275 (process_coff_symbol, coff_read_enum_type): Set
9276 SYMBOL_ACLASS_INDEX.
9277 (_initialize_coffread): Initialize new global.
9278 * dwarf2loc.c (locexpr_find_frame_base_location)
9279 (dwarf2_block_frame_base_locexpr_funcs)
9280 (loclist_find_frame_base_location)
9281 (dwarf2_block_frame_base_loclist_funcs): New.
9282 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9283 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9284 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9285 (dwarf2_block_frame_base_loclist_funcs): New.
9286 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9287 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9288 globals.
9289 (read_func_scope): Update.
9290 (fixup_go_packaging, mark_common_block_symbol_computed)
9291 (var_decode_location, new_symbol_full, dwarf2_const_value):
9292 Set SYMBOL_ACLASS_INDEX.
9293 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9294 (_initialize_dwarf2_read): Initialize new globals.
9295 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9296 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9297 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9298 globals.
9299 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9300 (_initialize_mdebugread): Initialize new globals.
9301 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9302 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9303 (stab_register_index, stab_regparm_index): New globals.
9304 (define_symbol, read_enum_type, common_block_end): Set
9305 SYMBOL_ACLASS_INDEX.
9306 (_initialize_stabsread): Initialize new globals.
9307 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9308 globals.
9309 (MAX_SYMBOL_IMPLS): New define.
9310 (register_symbol_computed_impl, register_symbol_block_impl)
9311 (register_symbol_register_impl)
9312 (initialize_ordinary_address_classes): New functions.
9313 (_initialize_symtab): Call initialize_ordinary_address_classes.
9314 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9315 (struct symbol_impl): New.
9316 (SYMBOL_ACLASS_BITS): New define.
9317 (struct symbol) <aclass, ops>: Remove fields.
9318 <aclass_index>: New field.
9319 (symbol_impls): Declare.
9320 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9321 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9322 (register_symbol_computed_impl, register_symbol_block_impl)
9323 (register_symbol_register_impl): Declare.
9324 (struct symbol_computed_ops): Add location_has_loclist.
9325 (struct symbol_block_ops): New.
9326 (SYMBOL_BLOCK_OPS): New.
9327 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9328
9329 2013-03-20 Tom Tromey <tromey@redhat.com>
9330
9331 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9332 (print_partial_symbols, recursively_search_psymtabs): Use
9333 PSYMBOL_CLASS.
9334
9335 2013-03-20 Pierre Muller <muller@sourceware.org>
9336
9337 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9338 addtion, subtraction, multiplication and division binary operator.
9339
9340 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9341
9342 Code cleanup.
9343 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9344 * bsd-kvm.c (bsd_kvm_close): Likewise.
9345 * bsd-uthread.c (bsd_uthread_close): Likewise.
9346 * corelow.c (core_close): Likewise.
9347 (core_close_cleanup): Remove parameter quitting from a caller.
9348 * event-top.c (async_disconnect): Likewise.
9349 * exec.c (exec_close_1): Remove parameter quitting.
9350 * go32-nat.c (go32_close): Likewise.
9351 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9352 parameter quitting from a caller.
9353 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9354 variable.
9355 (mips_linux_close): Remove parameter quitting. Remove parameter
9356 quitting from a caller.
9357 * monitor.c (monitor_close): Remove parameter quitting.
9358 * monitor.h (monitor_close): Likewise.
9359 * record-btrace.c (record_btrace_close): Likewise.
9360 * record-full.c (record_full_close): Likewise.
9361 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9362 it also from fprintf_unfiltered.
9363 * remote-mips.c (mips_close): Remove parameter quitting.
9364 (mips_detach): Remove parameter quitting from a caller.
9365 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9366 (gdbsim_close): Remove duplicate function comment. Remove parameter
9367 quitting and remove it also from printf_filtered.
9368 * remote.c (remote_close): Remove parameter quitting.
9369 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9370 * target.c (update_current_target): Remove parameter int from to_close
9371 de_fault.
9372 (push_target, unpush_target, pop_target): Remove parameter quitting from
9373 a caller.
9374 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9375 Remove parameter quitting from a caller.
9376 (target_preopen): Remove parameter quitting from a caller.
9377 (target_close): Remove parameter quitting. Remove parameter quitting
9378 from a caller two times. Remove parameter quitting also from
9379 fprintf_unfiltered.
9380 * target.h (struct target_ops): Remove parameter quitting and as int
9381 from fields to_xclose and to_close.
9382 (extern struct target_ops current_target):
9383 (target_close, pop_all_targets): Remove parameter quitting. Update the
9384 comment.
9385 (pop_all_targets_above): Remove parameter quitting.
9386 * top.c (quit_target): Remove parameter quitting from a caller.
9387 * tracepoint.c (tfile_close): Remove parameter quitting.
9388 * windows-nat.c (windows_close): Remove parameter quitting.
9389
9390 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9391
9392 * windows-nat.c (handle_output_debug_string): Replace call
9393 to string_to_core_addr with call to strtoull.
9394
9395 2013-03-20 Yao Qi <yao@codesourcery.com>
9396
9397 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9398 and write it to CTF metadata.
9399
9400 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9401
9402 * windows-nat.c (handle_output_debug_string): Change type of n to
9403 SIZE_T to avoid crash on 64 bit systems.
9404
9405 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9406
9407 * python/python-internal.h (HAVE_SNPRINTF)
9408 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9409 about redefinition of snprintf by pyerrors.h.
9410
9411 2013-03-15 Steve Ellcey <sellcey@mips.com>
9412
9413 * remote-sim.c (sim_command_completer): Make char arguments const.
9414
9415 2013-03-15 Tom Tromey <tromey@redhat.com>
9416
9417 PR c++/15116:
9418 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9419
9420 2013-03-14 Tom Tromey <tromey@redhat.com>
9421
9422 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9423 New fields.
9424 (get_file_crc): Move from symfile.c.
9425 (gdb_bfd_crc): New function.
9426 * gdb_bfd.h (gdb_bfd_crc): Declare.
9427 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9428 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9429 (separate_debug_file_exists): Use gdb_bfd_crc.
9430
9431 2013-03-14 Tom Tromey <tromey@redhat.com>
9432
9433 * symfile.c (get_debug_link_info): Remove.
9434 (find_separate_debug_file_by_debuglink): Use
9435 bfd_get_debug_link_info.
9436
9437 2013-03-14 Tom Tromey <tromey@redhat.com>
9438
9439 * symtab.c (error_in_psymtab_expansion): New function.
9440 (lookup_symbol_aux_quick)
9441 (basic_lookup_transparent_type_quick): Remove "last resort"
9442 code. Use error_in_psymtab_expansion.
9443
9444 2013-03-14 Doug Evans <dje@google.com>
9445 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9448 any successful compare_filenames_for_search or FILENAME_CMP.
9449 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9450 * symtab.c (iterate_over_some_symtabs): Likewise.
9451
9452 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9453
9454 * source.c (print_source_lines_base): Make a local copy of
9455 symtab_to_fullname.
9456
9457 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9458 Jan Kratochvil <jan.kratochvil@redhat.com>
9459
9460 * source.c (print_source_lines_base): Suppress "file" for TUI.
9461
9462 2013-03-14 Keith Seitz <keiths@redhat.com>
9463 Alan Matsuoka <alanm@redhat.com>
9464
9465 PR c++/15203
9466 PR c++/15210
9467 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9468 TYPE_CODE_METHOD.
9469 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9470 symbols.
9471
9472 2013-03-14 Yao Qi <yao@codesourcery.com>
9473
9474 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9475 status to tfile if trace is stopped by command 'tstop'.
9476
9477 2013-03-14 Yao Qi <yao@codesourcery.com>
9478
9479 * tracepoint.c (tfile_write_status): Write trace notes and user
9480 name into tfile if they are not NULL.
9481
9482 2013-03-14 Hui Zhu <hui@codesourcery.com>
9483 Yao Qi <yao@codesourcery.com>
9484
9485 * Makefile.in (REMOTE_OBS): Add ctf.o.
9486 (SFILES): Add ctf.c.
9487 (HFILES_NO_SRCDIR): Add ctf.h.
9488 * ctf.c, ctf.h: New files.
9489 * tracepoint.c: Include 'ctf.h'.
9490 (collect_pseudocommand): Remove static.
9491 (trace_save_command): Parse option "-ctf".
9492 Produce different trace file writers per option.
9493 Adjust output message.
9494 (trace_save_tfile, trace_save_ctf): New.
9495 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9496 * mi/mi-main.c: Include 'ctf.h'.
9497 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9498 trace_save_tfile or trace_save_ctf.
9499 * NEWS: Mention these changes.
9500
9501 2013-03-14 Yao Qi <yao@codesourcery.com>
9502
9503 * tracepoint.c (trace_file_writer_xfree): New.
9504 (struct tfile_writer_data): New.
9505 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9506 (tfile_write_header, tfile_write_regblock_type): New.
9507 (tfile_write_status, tfile_write_uploaded_tsv): New.
9508 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9509 (tfile_write_raw_data, (tfile_end): New.
9510 (tfile_write_ops): New global variable.
9511 (TRACE_WRITE_R_BLOCK): New macro.
9512 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9513 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9514 (TRACE_WRITE_V_BLOCK): New macro.
9515 (trace_save): Add extra one parameter WRITER. Make it static.
9516 Use WRITER to writer trace.
9517 (tfile_trace_file_writer_new): New.
9518 (trace_save_command): Caller update.
9519 (trace_save_tfile): Write trace data in TFILE format.
9520 * tracepoint.h (struct trace_frame_write_ops): New.
9521 (struct trace_file_write_ops): New.
9522 (struct trace_file_writer): New.
9523 (trace_save): Remove its declaration.
9524 (trace_save_tfile): Declare it.
9525 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9526 instead of trace_save.
9527
9528 2013-03-13 Pedro Alves <palves@redhat.com>
9529
9530 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9531
9532 2013-03-13 Pedro Alves <palves@redhat.com>
9533
9534 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9535 commented out code.
9536 * demangle.c (current_demangling_style_string): Make it const.
9537 (set_demangling_command): Assert the demangling style is known.
9538 Remove all handling of unknown styles. Set
9539 'current_demangling_style_string' to an element of the
9540 demangling_style_names array.
9541 (set_demangling_style): Delete.
9542 (_initialize_demangler): Set current_demangling_style_string to the
9543 element of the demangling_style_names array that corresponds to
9544 the default demangling style. Remove FIXME note. Don't call
9545 set_demangling_style.
9546 * gdb-demangle.h (set_demangling_style): Remove declaration.
9547
9548 2013-03-13 Pedro Alves <palves@redhat.com>
9549
9550 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9551 fields const.
9552 (ada_make_symbol_completion_list): Make "text0" parameter const.
9553 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9554 * breakpoint.c (condition_completer): Make "text" and "word"
9555 parameters const. Adjust.
9556 (check_tracepoint_command): Adjust to validate_actionline
9557 prototype change.
9558 (catch_syscall_completer): Make "text" and "word" parameters
9559 const.
9560 * cli/cli-cmds.c (show_user): Make "comname" local const.
9561 (valid_command_p): Make "command" parameter const.
9562 (alias_command): Make "alias_prefix" and "command_prefix" locals
9563 const.
9564 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9565 (add_alias_cmd): Make "name" and "oldname" parameters const.
9566 Adjust. No longer make copy of OLDNAME.
9567 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9568 (add_setshow_cmd_full, add_setshow_enum_cmd)
9569 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9570 (add_setshow_filename_cmd, add_setshow_string_cmd)
9571 (add_setshow_string_noescape_cmd)
9572 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9573 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9574 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9575 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9576 Make "name" parameter const.
9577 (help_cmd): Rename "command" parameter to "arg". New const local
9578 "command".
9579 (find_cmd): Make "command" parameter const.
9580 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9581 deprecated_cmd_warning prototype change.
9582 (undef_cmd_error): Make "cmdtype" parameter const.
9583 (lookup_cmd): Make "line" parameter const.
9584 (deprecated_cmd_warning): Change type of "text" parameter to
9585 pointer to const char, from pointer to pointer to char. Adjust.
9586 (lookup_cmd_composition): Make "text" parameter const.
9587 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9588 parameters const.
9589 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9590 const.
9591 * cli/cli-script.c (validate_comname): Make "tem" local const.
9592 (define_command): New const local "tem_c". Use it in calls to
9593 lookup_cmd.
9594 (document_command): Make "tem" and "comfull" locals const.
9595 (show_user_1): Make "prefix" and "name" parameters const.
9596 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9597 const.
9598 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9599 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9600 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9601 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9602 (complete_on_enum, add_setshow_enum_cmd)
9603 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9604 (add_setshow_filename_cmd, add_setshow_string_cmd)
9605 (add_setshow_string_noescape_cmd)
9606 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9607 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9608 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9609 Change prototypes, constifying strings.
9610 * completer.c (noop_completer, filename_completer): Make "text"
9611 and "prefix" parameters const.
9612 (location_completer, expression_completer)
9613 (complete_line_internal): Make "text" and "prefix" parameters
9614 const and adjust.
9615 (command_completer, signal_completer): Make "text" and "prefix"
9616 parameters const.
9617 * completer.h (noop_completer, filename_completer)
9618 (expression_completer, location_completer, command_completer)
9619 (signal_completer): Change prototypes.
9620 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9621 parameters const.
9622 * cp-abi.c (cp_abi_completer): Likewise.
9623 * expression.h (parse_expression_for_completion): Change
9624 prototype.
9625 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9626 parameters const.
9627 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9628 * infrun.c (handle_completer): Make "text" and "word" parameters
9629 const.
9630 * interps.c (interpreter_completer): Make "text" and "word"
9631 parameters const.
9632 * language.h (struct language_defn)
9633 <la_make_symbol_completion_list>: Make "text" and "word"
9634 parameters const.
9635 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9636 (parse_exp_in_context): Rename to ...
9637 (parse_exp_in_context_1): ... this.
9638 (parse_exp_in_context): Reimplement, with const hack from
9639 parse_exp_1.
9640 (parse_expression_for_completion): Make "string" parameter const.
9641 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9642 to pointer to const char. Adjust.
9643 (print_command_1): Make "exp" parameter const.
9644 (output_command): Rename to ...
9645 (output_command_const): ... this. Make "exp" parameter const.
9646 (output_command): Reimplement.
9647 (x_command): Adjust.
9648 (display_command): Rename "exp" parameter to "arg". New "exp"
9649 local, const version of "arg".
9650 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9651 "cmd_name" local const.
9652 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9653 call.
9654 (cmdpy_completer): Make "text" and "word" parameters const.
9655 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9656 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9657 const.
9658 * remote.c (_initialize_remote): Make "cmd_name" local const.
9659 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9660 parameters const. Adjust.
9661 (completion_list_add_fields): Make "sym_text", "text" and "word"
9662 parameters const.
9663 (struct add_name_data) <sym_text, text, word>: Make fields const.
9664 (default_make_symbol_completion_list_break_on): Make "text" and
9665 "word" parameters const. Adjust locals.
9666 (default_make_symbol_completion_list)
9667 (make_symbol_completion_list, make_symbol_completion_type)
9668 (make_symbol_completion_list_fn): Make "text" and "word"
9669 parameters const.
9670 (make_file_symbol_completion_list): Make "text", "word" and
9671 "srcfile" parameters const. Adjust locals.
9672 (add_filename_to_list): Make "text" and "word" parameters const.
9673 (struct add_partial_filename_data) <text, word>: Make fields
9674 const.
9675 (make_source_files_completion_list): Make "text" and "word"
9676 parameters const.
9677 * symtab.h (default_make_symbol_completion_list_break_on)
9678 (default_make_symbol_completion_list, make_symbol_completion_list)
9679 (make_symbol_completion_type enum type_code)
9680 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9681 (make_source_files_completion_list): Change prototype.
9682 * top.c (execute_command): Adjust to pass pointer to pointer to
9683 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9684 change.
9685 (set_verbose): Make "cmdname" local const.
9686 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9687 and adjust.
9688 (validate_actionline): Make "line" parameter a pointer to const
9689 char, and adjust.
9690 (encode_actions_1): Make "action_exp" local const, and adjust.
9691 (encode_actions): Adjust.
9692 (replace_comma): Delete.
9693 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9694 const, and adjust. Don't frob the action string while splitting
9695 it at commas. Instead, make a copy of each split substring in
9696 turn.
9697 (trace_dump_command): Adjust to validate_actionline prototype
9698 change.
9699 * tracepoint.h (decode_agent_options, decode_agent_options)
9700 (encode_actions, validate_actionline): Change prototypes.
9701 * valprint.h (output_command): Delete declaration.
9702 (output_command_const): Declare.
9703 * value.c (function_destroyer): Cast const away in xfree call.
9704
9705 2013-03-13 Pedro Alves <palves@redhat.com>
9706
9707 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9708 rather than casting 'const char * const *' to 'const char **'.
9709 * ada-lex.l (processInt): Make "trailer" local const. Remove
9710 'const char **' cast.
9711 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9712 locals, and use those as strtol output pointer, instead than doing
9713 invalid casts to from 'const char **' to 'char **'.
9714 (_initialize_demangle): Remove cast.
9715 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9716 locals, and use those as strtol output pointer, instead than doing
9717 invalid casts to from 'const char **' to 'char **'.
9718 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9719 casts.
9720 * stap-probe.c (stap_parse_register_operand)
9721 (stap_parse_single_operand): Likewise.
9722
9723 2013-03-13 Yao Qi <yao@codesourcery.com>
9724
9725 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9726 the last matched 'V' blcok in trace frame.
9727
9728 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9729
9730 * NEWS: Create a new section for the next release branch.
9731 Rename the section of the current branch, now that it has
9732 been cut.
9733
9734 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9735
9736 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9737 * version.in: Bump version to 7.6.50.20130312-cvs.
9738
9739 2013-03-12 Keith Seitz <keiths@redhat.com>
9740
9741 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9742 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9743 Remove temporary copy of input string.
9744 (mi_execute_command_wrapper): Make "cmd" const.
9745 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9746 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9747 Use const strings.
9748 (mi_parse): Make "cmd" const.
9749 Use const strings.
9750 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9751
9752 2013-03-12 Keith Seitz <keiths@redhat.com>
9753
9754 * ada-lang.c (ada_read_renaming_var_value): Pass const
9755 pointer to expression string to parse_exp_1.
9756 (create_excep_cond_exprs): Likewise.
9757 * ax-gdb.c (agent_eval_command_one): Likewise.
9758 (maint_agent_printf_command): Likewise.
9759 Constify much of the string handling/parsing.
9760 * breakpoint.c (set_breakpoint_condition): Pass const
9761 pointer to expression string to parse_exp_1.
9762 (update_watchpoint): Likewise.
9763 (parse_cmd_to_aexpr): Constify string handling.
9764 Pass const pointer to parse_exp_1.
9765 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9766 (find_condition_and_thread): Likewise.
9767 Make TOK const.
9768 (watch_command_1): Make "arg" const.
9769 Constify string handling.
9770 Copy the expression string instead of changing the input
9771 string.
9772 (update_breakpoint_location): Pass const pointer to
9773 parse_exp_1.
9774 * eval.c (parse_and_eval_address): Make "exp" const.
9775 (parse_to_comma_and_eval): Make "expp" const.
9776 (parse_and_eval): Make "exp" const.
9777 * expression.h (parse_expression): Make argument const.
9778 (parse_exp_1): Make first argument const.
9779 * findcmd.c (parse_find_args): Treat "args" as const.
9780 * linespec.c (parse_linespec): Pass const pointer to
9781 linespec_expression_to_pc.
9782 (linespec_expression_to_pc): Make "exp_ptr" const.
9783 * parse.c (parse_exp_1): Make "stringptr" const.
9784 Make a copy of the expression to pass to parse_exp_in_context until
9785 this whole interface can be constified.
9786 (parse_expression): Make "string" const.
9787 * printcmd.c (ui_printf): Treat "arg" as const.
9788 Handle const strings.
9789 * tracepoint.c (validate_actionline): Pass const pointer to
9790 all calls to parse_exp_1.
9791 (encode_actions_1): Likewise.
9792 * value.h (parse_to_comma_and_eval): Make argument const.
9793 (parse_and_eval_address): Likewise.
9794 (parse_and_eval): Likewise.
9795 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9796 (varobj_set_value): Likewise.
9797 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9798 constify string handling.
9799 Pass const pointers to parse_and_eval_address and
9800 parse_to_comman_and_eval.
9801 * cli/cli-utils.c (skip_to_space): Rename to ...
9802 (skip_to_space_const): ... this. Handle const strings.
9803 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9804 skip_to_space_const.
9805 (skip_to_space_const): Declare.
9806 * common/format.c (parse_format_string): Make "arg" const.
9807 Handle const strings.
9808 * common/format.h (parse_format_string): Make "arg" const.
9809 * gdbserver/ax.c (ax_printf): Make "format" const.
9810 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9811 of the expression string.
9812
9813 2013-03-12 Hui Zhu <hui@codesourcery.com>
9814
9815 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9816
9817 2013-03-12 Yao Qi <yao@codesourcery.com>
9818 Hui Zhu <hui@codesourcery.com>
9819
9820 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9821 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9822 DW_OP_deref_size.
9823
9824 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9825
9826 * ada-lex.l (rules): Only recognize 'thread' as a
9827 delimiter when followed by numerals, as for c-exp.y.
9828 Use new rewind_to_char function to rewind the input for
9829 expression-delimiting tokens.
9830 (rewind_to_char): New function.
9831
9832 2013-03-11 Pedro Alves <palves@redhat.com>
9833 Jan Kratochvil <jan.kratochvil@redhat.com>
9834
9835 * configure: Regenerate.
9836 * configure.ac (check dynamic export flag): Link python test with
9837 $PYTHON_LIBS.
9838
9839 2013-03-11 Doug Evans <dje@google.com>
9840 Keith Seitz <keiths@redhat.com>
9841
9842 * linespec.c (find_linespec_symbols): Call find_function_symbols
9843 first, and then call lookup_prefix_sym/find_method.
9844
9845 2013-03-11 Pedro Alves <palves@redhat.com>
9846
9847 * charset.c (convert_between_encodings): Don't cast between
9848 different pointer to pointer types. Instead, make the 'inp' local
9849 be of the type iconv expects.
9850 (wchar_iterate): Don't cast between different pointer to pointer
9851 types. Instead, use new pointer local of the type iconv expects.
9852 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9853 Add new local of type char pointer, and use it to get a
9854 char/string view of the byte buffer, instead of casting between
9855 pointer to pointer types.
9856
9857 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9858
9859 * remote.c (remote_set_trace_buffer_size): Move != operator
9860 to the start of next line to fix an ARI warning.
9861
9862 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9863
9864 * NEWS: Add record changes.
9865
9866 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9867
9868 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9869 the instruction history disassembly.
9870 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9871 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9872
9873 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9874
9875 * Makefile.in (SFILES): Add record-btrace.c
9876 (COMMON_OBS): Add record-btrace.o
9877 * record-btrace.c: New.
9878 * objfiles.c: Include btrace.h.
9879 (free_objfile): call btrace_free_objfile.
9880
9881 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * target.c (target_call_history, target_call_history_from,
9884 target_call_history_range): New.
9885 * target.h (target_ops) <to_call_history, to_call_history_from,
9886 to_call_history_range>: New fields.
9887 (target_call_history, target_call_history_from,
9888 target_call_history_range): New declaration.
9889 * record.c (get_call_history_modifiers, cmd_record_call_history,
9890 record_call_history_size): New.
9891 (_initialize_record): Add the "record function-call-history" command.
9892 Add "set/show record function-call-history-size" commands.
9893 * record.h (record_print_flag): New.
9894
9895 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9896
9897 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9898 to_insn_history_range>: New fields.
9899 (target_insn_history): New.
9900 (target_insn_history_from): New.
9901 (target_insn_history_range): New.
9902 * target.c (target_insn_history): New.
9903 (target_insn_history_from): New.
9904 (target_insn_history_range): New.
9905 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9906 (record_insn_history_size): New.
9907 (get_insn_number): New.
9908 (get_context_size): New.
9909 (no_chunk): New.
9910 (get_insn_history_modifiers): New.
9911 (cmd_record_insn_history): New.
9912 (_initialize_record): Add "set/show record instruction-history-size"
9913 command. Add "record instruction-history" command.
9914
9915 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9916
9917 * record.h (record_disconnect): New.
9918 (record_detach): New.
9919 (record_mourn_inferior): New.
9920 (record_kill): New.
9921 * record-full.c (record_disconnect, record_detach,
9922 record_mourn_inferior, record_kill): Move to...
9923 * record.c: ...here.
9924 (DEBUG): New.
9925 (record_stop): New.
9926 (record_unpush): New.
9927 (cmd_record_stop): Call record_stop. Replace unpush_target
9928 call with record_unpush call.
9929 (record_disconnect, record_detach): Assert that the target
9930 is of record stratum. Call record_unpush, record_stop, and
9931 DEBUG.
9932 (record_mourn_inferior, record_kill): Assert that the target
9933 is of record stratum. Call record_unpush and DEBUG.
9934
9935 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9936
9937 * record-full.h, record-full.c (record_memory_query): Rename
9938 to ...
9939 (record_full_memory_query): ...this. Update all users.
9940 (record_arch_list_add_reg): Rename to ...
9941 (record_full_arch_list_add_reg): ...this. Update all users.
9942 (record_arch_list_add_mem): Rename to ...
9943 (record_full_arch_list_add_mem): ...this. Update all users.
9944 (record_arch_list_add_end): Rename to ...
9945 (record_full_arch_list_add_end): ...this. Update all users.
9946 (record_gdb_operation_disable_set): Rename to ...
9947 (record_full_gdb_operation_disable_set): ...this.
9948 Update all users.
9949
9950 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9951
9952 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
9953 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
9954 (RECORD_IS_REPLAY): Renamed to ...
9955 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
9956 (RECORD_FILE_MAGIC): Renamed to ...
9957 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
9958 (record_mem_entry): Renamed to ...
9959 (record_full_mem_entry): ... this. Updated all users.
9960 (record_reg_entry): Renamed to ...
9961 (record_full_reg_entry): ... this. Updated all users.
9962 (record_end_entry): Renamed to ...
9963 (record_full_end_entry): ... this. Updated all users.
9964 (record_type) <record_end, record_reg, record_mem>: Renamed
9965 to ...
9966 (record_full_type) <record_full_end, record_full_reg,
9967 record_full_mem>: ... this. Updated all users.
9968 (record_entry): Renamed to ...
9969 (record_full_entry): ... this. Updated all users.
9970 (record_core_buf_entry): Renamed to ...
9971 (record_full_core_buf_entry): ... this. Updated all users.
9972 (record_core_regbuf): Renamed to ...
9973 (record_full_core_regbuf): ... this. Updated all users.
9974 (record_core_start): Renamed to ...
9975 (record_full_core_start): ... this. Updated all users.
9976 (record_core_end): Renamed to ...
9977 (record_full_core_end): ... this. Updated all users.
9978 (record_core_buf_list): Renamed to ...
9979 (record_full_core_buf_list): ... this. Updated all users.
9980 (record_first): Renamed to ...
9981 (record_full_first): ... this. Updated all users.
9982 (record_list): Renamed to ...
9983 (record_full_list): ... this. Updated all users.
9984 (record_arch_list_head): Renamed to ...
9985 (record_full_arch_list_head): ... this. Updated all users.
9986 (record_arch_list_tail): Renamed to ...
9987 (record_full_arch_list_tail): ... this. Updated all users.
9988 (record_stop_at_limit): Renamed to ...
9989 (record_full_stop_at_limit): ... this. Updated all users.
9990 (record_insn_max_num): Renamed to ...
9991 (record_full_insn_max_num): ... this. Updated all users.
9992 (record_insn_num): Renamed to ...
9993 (record_full_insn_num): ... this. Updated all users.
9994 (record_insn_count): Renamed to ...
9995 (record_full_insn_count): ... this. Updated all users.
9996 (record_ops): Renamed to ...
9997 (record_full_ops): ... this. Updated all users.
9998 (record_core_ops): Renamed to ...
9999 (record_full_core_ops): ... this. Updated all users.
10000 (set_record_cmdlist): Renamed to ...
10001 (set_record_full_cmdlist): ... this. Updated all users.
10002 (show_record_cmdlist): Renamed to ...
10003 (show_record_full_cmdlist): ... this. Updated all users.
10004 (record_cmdlist): Renamed to ...
10005 (record_full_cmdlist): ... this. Updated all users.
10006 (record_beneath_to_resume_ops): Renamed to ...
10007 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10008 (record_beneath_to_resume): Renamed to ...
10009 (record_full_beneath_to_resume): ... this. Updated all users.
10010 (record_beneath_to_wait_ops): Renamed to ...
10011 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10012 (record_beneath_to_wait): Renamed to ...
10013 (record_full_beneath_to_wait): ... this. Updated all users.
10014 (record_beneath_to_store_registers_ops): Renamed to ...
10015 (record_full_beneath_to_store_registers_ops): ... this.
10016 Updated all users.
10017 (record_beneath_to_store_registers): Renamed to ...
10018 (record_full_beneath_to_store_registers): ... this.
10019 Updated all users.
10020 (record_beneath_to_xfer_partial_ops): Renamed to ...
10021 (record_full_beneath_to_xfer_partial_ops): ... this.
10022 Updated all users.
10023 (record_beneath_to_xfer_partial): Renamed to ...
10024 (record_full_beneath_to_xfer_partial): ... this.
10025 Updated all users.
10026 (record_beneath_to_insert_breakpoint): Renamed to ...
10027 (record_full_beneath_to_insert_breakpoint): ... this.
10028 Updated all users.
10029 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10030 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10031 Updated all users.
10032 (record_beneath_to_stopped_data_address): Renamed to ...
10033 (record_full_beneath_to_stopped_data_address): ... this.
10034 Updated all users.
10035 (record_beneath_to_async): Renamed to ...
10036 (record_full_beneath_to_async): ... this. Updated all users.
10037 (record_goto_insn): Renamed to ...
10038 (record_full_goto_insn): ... this. Updated all users.
10039 (record_save): Renamed to ...
10040 (record_full_save): ... this. Updated all users.
10041 (record_reg_alloc): Renamed to ...
10042 (record_full_reg_alloc): ... this. Updated all users.
10043 (record_reg_release): Renamed to ...
10044 (record_full_reg_release): ... this. Updated all users.
10045 (record_mem_alloc): Renamed to ...
10046 (record_full_mem_alloc): ... this. Updated all users.
10047 (record_mem_release): Renamed to ...
10048 (record_full_mem_release): ... this. Updated all users.
10049 (record_end_alloc): Renamed to ...
10050 (record_full_end_alloc): ... this. Updated all users.
10051 (record_end_release): Renamed to ...
10052 (record_full_end_release): ... this. Updated all users.
10053 (record_entry_release): Renamed to ...
10054 (record_full_entry_release): ... this. Updated all users.
10055 (record_list_release): Renamed to ...
10056 (record_full_list_release): ... this. Updated all users.
10057 (record_list_release_following): Renamed to ...
10058 (record_full_list_release_following): ... this.
10059 Updated all users.
10060 (record_list_release_first): Renamed to ...
10061 (record_full_list_release_first): ... this. Updated all users.
10062 (record_arch_list_add): Renamed to ...
10063 (record_full_arch_list_add): ... this. Updated all users.
10064 (record_get_loc): Renamed to ...
10065 (record_full_get_loc): ... this. Updated all users.
10066 (record_check_insn_num): Renamed to ...
10067 (record_full_check_insn_num): ... this. Updated all users.
10068 (record_arch_list_cleanups): Renamed to ...
10069 (record_full_arch_list_cleanups): ... this. Updated all users.
10070 (record_message): Renamed to ...
10071 (record_full_message): ... this. Updated all users.
10072 (record_message_wrapper): Renamed to ...
10073 (record_full_message_wrapper): ... this. Updated all users.
10074 (record_message_wrapper_safe): Renamed to ...
10075 (record_full_message_wrapper_safe): ... this. Updated all users.
10076 (record_gdb_operation_disable): Renamed to ...
10077 (record_full_gdb_operation_disable): ... this. Updated all users.
10078 (record_hw_watchpoint): Renamed to ...
10079 (record_full_hw_watchpoint): ... this. Updated all users.
10080 (record_exec_insn): Renamed to ...
10081 (record_full_exec_insn): ... this. Updated all users.
10082 (record_restore): Renamed to ...
10083 (record_full_restore): ... this. Updated all users.
10084 (record_async_inferior_event_token): Renamed to ...
10085 (record_full_async_inferior_event_token): ... this.
10086 Updated all users.
10087 (record_async_inferior_event_handler): Renamed to ...
10088 (record_full_async_inferior_event_handler): ... this.
10089 Updated all users.
10090 (record_core_open_1): Renamed to ...
10091 (record_full_core_open_1): ... this. Updated all users.
10092 (record_open_1): Renamed to ...
10093 (record_full_open_1): ... this. Updated all users.
10094 (record_open): Renamed to ...
10095 (record_full_open): ... this. Updated all users.
10096 (record_close): Renamed to ...
10097 (record_full_close): ... this. Updated all users.
10098 (record_resume_step): Renamed to ...
10099 (record_full_resume_step): ... this. Updated all users.
10100 (record_resumed): Renamed to ...
10101 (record_full_resumed): ... this. Updated all users.
10102 (record_execution_dir): Renamed to ...
10103 (record_full_execution_dir): ... this. Updated all users.
10104 (record_resume): Renamed to ...
10105 (record_full_resume): ... this. Updated all users.
10106 (record_get_sig): Renamed to ...
10107 (record_full_get_sig): ... this. Updated all users.
10108 (record_sig_handler): Renamed to ...
10109 (record_full_sig_handler): ... this. Updated all users.
10110 (record_wait_cleanups): Renamed to ...
10111 (record_full_wait_cleanups): ... this. Updated all users.
10112 (record_wait_1): Renamed to ...
10113 (record_full_wait_1): ... this. Updated all users.
10114 (record_wait): Renamed to ...
10115 (record_full_wait): ... this. Updated all users.
10116 (record_stopped_by_watchpoint): Renamed to ...
10117 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10118 (record_disconnect): Renamed to ...
10119 (record_full_disconnect): ... this. Updated all users.
10120 (record_detach): Renamed to ...
10121 (record_full_detach): ... this. Updated all users.
10122 (record_mourn_inferior): Renamed to ...
10123 (record_full_mourn_inferior): ... this. Updated all users.
10124 (record_kill): Renamed to ...
10125 (record_full_kill): ... this. Updated all users.
10126 (record_stopped_data_address): Renamed to ...
10127 (record_full_stopped_data_address): ... this. Updated all users.
10128 (record_registers_change): Renamed to ...
10129 (record_full_registers_change): ... this. Updated all users.
10130 (record_store_registers): Renamed to ...
10131 (record_full_store_registers): ... this. Updated all users.
10132 (record_xfer_partial): Renamed to ...
10133 (record_full_xfer_partial): ... this. Updated all users.
10134 (record_breakpoint): Renamed to ...
10135 (record_full_breakpoint): ... this. Updated all users.
10136 (record_breakpoint_p): Renamed to ...
10137 (record_full_breakpoint_p): ... this. Updated all users.
10138 (record_breakpoints): Renamed to ...
10139 (record_full_breakpoints): ... this. Updated all users.
10140 (record_sync_record_breakpoints): Renamed to ...
10141 (record_full_sync_record_breakpoints): ... this.
10142 Updated all users.
10143 (record_init_record_breakpoints): Renamed to ...
10144 (record_full_init_record_breakpoints): ... this.
10145 Updated all users.
10146 (record_insert_breakpoint): Renamed to ...
10147 (record_full_insert_breakpoint): ... this. Updated all users.
10148 (record_remove_breakpoint): Renamed to ...
10149 (record_full_remove_breakpoint): ... this. Updated all users.
10150 (record_can_execute_reverse): Renamed to ...
10151 (record_full_can_execute_reverse): ... this. Updated all users.
10152 (record_get_bookmark): Renamed to ...
10153 (record_full_get_bookmark): ... this. Updated all users.
10154 (record_goto_bookmark): Renamed to ...
10155 (record_full_goto_bookmark): ... this. Updated all users.
10156 (record_async): Renamed to ...
10157 (record_full_async): ... this. Updated all users.
10158 (record_can_async_p): Renamed to ...
10159 (record_full_can_async_p): ... this. Updated all users.
10160 (record_is_async_p): Renamed to ...
10161 (record_full_is_async_p): ... this. Updated all users.
10162 (record_execution_direction): Renamed to ...
10163 (record_full_execution_direction): ... this. Updated all users.
10164 (record_info): Renamed to ...
10165 (record_full_info): ... this. Updated all users.
10166 (record_delete): Renamed to ...
10167 (record_full_delete): ... this. Updated all users.
10168 (record_is_replaying): Renamed to ...
10169 (record_full_is_replaying): ... this. Updated all users.
10170 (record_goto_entry): Renamed to ...
10171 (record_full_goto_entry): ... this. Updated all users.
10172 (record_goto_begin): Renamed to ...
10173 (record_full_goto_begin): ... this. Updated all users.
10174 (record_goto_end): Renamed to ...
10175 (record_full_goto_end): ... this. Updated all users.
10176 (record_goto): Renamed to ...
10177 (record_full_goto): ... this. Updated all users.
10178 (init_record_ops): Renamed to ...
10179 (init_record_full_ops): ... this. Updated all users.
10180 (record_core_resume): Renamed to ...
10181 (record_full_core_resume): ... this. Updated all users.
10182 (record_core_kill): Renamed to ...
10183 (record_full_core_kill): ... this. Updated all users.
10184 (record_core_fetch_registers): Renamed to ...
10185 (record_full_core_fetch_registers): ... this. Updated all users.
10186 (record_core_prepare_to_store): Renamed to ...
10187 (record_full_core_prepare_to_store): ... this. Updated all users.
10188 (record_core_store_registers): Renamed to ...
10189 (record_full_core_store_registers): ... this. Updated all users.
10190 (record_core_xfer_partial): Renamed to ...
10191 (record_full_core_xfer_partial): ... this. Updated all users.
10192 (record_core_insert_breakpoint): Renamed to ...
10193 (record_full_core_insert_breakpoint): ... this. Updated all users.
10194 (record_core_remove_breakpoint): Renamed to ...
10195 (record_full_core_remove_breakpoint): ... this. Updated all users.
10196 (record_core_has_execution): Renamed to ...
10197 (record_full_core_has_execution): ... this. Updated all users.
10198 (init_record_core_ops): Renamed to ...
10199 (init_record_full_core_ops): ... this. Updated all users.
10200 (cmd_record_restore): Renamed to ...
10201 (cmd_record_full_restore): ... this. Updated all users.
10202 (record_save_cleanups): Renamed to ...
10203 (record_full_save_cleanups): ... this. Updated all users.
10204 (cmd_record_start): Renamed to ...
10205 (cmd_record_full_start): ... this. Updated all users.
10206 (set_record_insn_max_num): Renamed to ...
10207 (set_record_full_insn_max_num): ... this. Updated all users.
10208 (set_record_command): Renamed to ...
10209 (set_record_full_command): ... this. Updated all users.
10210 (show_record_command): Renamed to ...
10211 (show_record_full_command): ... this. Updated all users.
10212 (_initialize_record): Renamed to ...
10213 (_initialize_record_full): ... this. Updated all users.
10214
10215 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10216
10217 * record.h: Split into this and ...
10218 * record-full.h: ... this.
10219 * record.c: Split into this and ...
10220 * record-full.c: ... this.
10221 * target.h (target_ops): Add new fields to_info_record,
10222 to_save_record, to_delete_record, to_record_is_replaying,
10223 to_goto_record_begin, to_goto_record_end, to_goto_record.
10224 (target_info_record): New.
10225 (target_save_record): New.
10226 (target_supports_delete_record): New.
10227 (target_delete_record): New.
10228 (target_record_is_replaying): New.
10229 (target_goto_record_begin): New.
10230 (target_goto_record_end): New.
10231 (target_goto_record): New.
10232 * target.c (target_info_record): New.
10233 (target_save_record): New.
10234 (target_supports_delete_record): New.
10235 (target_delete_record): New.
10236 (target_record_is_replaying): New.
10237 (target_goto_record_begin): New.
10238 (target_goto_record_end): New.
10239 (target_goto_record): New.
10240 * record.h: Declare struct cmd_list_element.
10241 (record_cmdlist): New declaration.
10242 (set_record_cmdlist): New declaration.
10243 (show_record_cmdlist): New declaration.
10244 (info_record_cmdlist): New declaration.
10245 (cmd_record_goto): New declaration.
10246 * record.c: Remove unnecessary includes.
10247 Include inferior.h.
10248 (cmd_record_goto): Remove declaration.
10249 (record_cmdlist): Now extern. Initialize.
10250 (set_record_cmdlist): Now extern. Initialize.
10251 (show_record_cmdlist): Now extern. Initialize.
10252 (info_record_cmdlist): Now extern. Initialize.
10253 (find_record_target): New.
10254 (require_record_target): New.
10255 (cmd_record_start): Update.
10256 (cmd_record_delete): Remove target-specific code.
10257 Call target_delete_record.
10258 (cmd_record_stop): Unpush any record target.
10259 (set_record_insn_max_num): Move to record-full.c
10260 (set_record_command): Add comment.
10261 (show_record_command): Add comment.
10262 (info_record_command): Update comment.
10263 Remove target-specific code.
10264 Call the record target's to_info_record.
10265 (cmd_record_start): New.
10266 (cmd_record_goto): Now extern.
10267 Remove target-specific code.
10268 Call target_goto_begin, target_goto_end, or target_goto.
10269 (_initialize_record): Move record target ops initialization to
10270 record-full.c.
10271 Change "record" command help text.
10272 Move "record restore", "record set", and "record show" commands to
10273 record-full.c.
10274 * Makefile.in (SFILES): Add record-full.c.
10275 (HFILES_NO_SRCDIR): Add record-full.h.
10276 (COMMON_OBS): Add record-full.o.
10277 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10278 * arm-tdep.c: Include record-full.h.
10279 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10280 * i386-tdep.c: Include record-full.h.
10281 * infrun.c: Include record-full.h.
10282 * linux-record.c: Include record-full.h.
10283 * moxie-tdep.c: Include record-full.h.
10284 * record-full.c: Include record-full.h.
10285 Change module comment.
10286 (set_record_full_cmdlist): New.
10287 (show_record_full_cmdlist): New.
10288 (record_full_cmdlist): New.
10289 (record_goto_insn): New declaration.
10290 (record_save): New declaration.
10291 (record_check_insn_num): Change query string.
10292 (record_info): New.
10293 (record_delete): New.
10294 (record_is_replaying): New.
10295 (record_goto_entry): New.
10296 (record_goto_begin): New.
10297 (record_goto_end): New.
10298 (record_goto): New.
10299 (init_record_ops): Update.
10300 (init_record_core_ops): Update.
10301 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10302 (cmd_record_start): New.
10303 (set_record_insn_max_num): Moved from record.c
10304 (set_record_full_command): New.
10305 (show_record_full_command): New.
10306 (_initialize_record_full): New.
10307
10308 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10309
10310 * target.h (add_deprecated_target_alias): New.
10311 * target.c (add_deprecated_target_alias): New.
10312
10313 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10314
10315 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10316 and signal.h.
10317 (linux_supports_btrace): Add kernel and
10318 cpuid check.
10319 (kernel_supports_btrace): New function.
10320 (cpu_supports_btrace): New function.
10321 (intel_supports_btrace): New function.
10322
10323 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10324
10325 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10326 * remote.c: Include btrace.h.
10327 (struct btrace_target_info): New struct.
10328 (remote_supports_btrace): New function.
10329 (send_Qbtrace): New function.
10330 (remote_enable_btrace): New function.
10331 (remote_disable_btrace): New function.
10332 (remote_teardown_btrace): New function.
10333 (remote_read_btrace): New function.
10334 (init_remote_ops): Add btrace ops.
10335 (enum <unnamed>): Add btrace packets.
10336 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10337 (_initialize_remote): Add packet configuration for branch tracing.
10338
10339 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10340
10341 * features/btrace.dtd: New file.
10342 * Makefile.in (XMLFILES): Add btrace.dtd.
10343 * btrace.h (parse_xml_btrace): New declaration.
10344 * btrace.c: Include xml-support.h.
10345 (parse_xml_btrace): New function.
10346 (parse_xml_btrace_block): New function.
10347 (block_attributes): New struct.
10348 (btrace_attributes): New struct.
10349 (btrace_children): New struct.
10350 (btrace_elements): New struct.
10351
10352 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10353
10354 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10355 (amd64_linux_enable_btrace): New.
10356 (amd64_linux_disable_btrace): New.
10357 (amd64_linux_teardown_btrace): New.
10358 (_initialize_amd64_linux_nat): Initialize btrace ops.
10359 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10360 (i386_linux_enable_btrace): New.
10361 (i386_linux_disable_btrace): New.
10362 (i386_linux_teardown_btrace): New.
10363 (_initialize_i386_linux_nat): Initialize btrace ops.
10364 * config/i386/linux.mh: Add linux-btrace.o.
10365 * config/i386/linux64.mh: Add linux-btrace.o.
10366
10367 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10368
10369 * common/linux_btrace.h: New file.
10370 * common/linux_btrace.c: New file.
10371 * Makefile.in (SFILES): Add btrace.c.
10372 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10373 (COMMON_OBS): Add btrace.o.
10374 (linux-btrace.o): New rule.
10375
10376 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10377
10378 * target.h: Include btrace.h.
10379 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10380 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10381 * target.c (target_supports_btrace): New function.
10382 (target_enable_btrace): New function.
10383 (target_disable_btrace): New function.
10384 (target_teardown_btrace): New function.
10385 (target_read_btrace): New function.
10386 * btrace.h: New file.
10387 * btrace.c: New file.
10388 * Makefile.in: Add btrace.c.
10389 * gdbthread.h: Include btrace.h.
10390 (struct thread_info): Add btrace field.
10391 * thread.c: Include btrace.h.
10392 (clear_thread_inferior_resources): Call target_teardown_btrace.
10393 * common/btrace-common.h: New file.
10394
10395 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10396
10397 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10398 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10399 kill_status to outer block.
10400
10401 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10402
10403 Fix entry-values if the callee called a noreturn function.
10404 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10405 get_frame_address_in_block. Add new comment.
10406
10407 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10408
10409 Fix entry-values in C++ across CUs.
10410 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10411 lookup_minimal_symbol. Add a comment.
10412 * dwarf2read.c
10413 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10414 DW_AT_linkage_name.
10415
10416 2013-03-08 Yao Qi <yao@codesourcery.com>
10417
10418 * tracepoint.c (_initialize_tracepoint): Indent the code.
10419
10420 2013-03-08 Pedro Alves <palves@redhat.com>
10421
10422 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10423 (parse_find_args, find_command): Change type of pattern buffer
10424 locals to 'gdb_byte *'.
10425
10426 2013-03-08 Stan Shebs <stan@codesourcery.com>
10427 Hafiz Abid Qadeer <abidh@codesourcery.com>
10428
10429 * NEWS: Mention set and show trace-buffer-size commands.
10430 Mention new packet.
10431 * target.h (struct target_ops): New method
10432 to_set_trace_buffer_size.
10433 (target_set_trace_buffer_size): New macro.
10434 * target.c (update_current_target): Set up new method.
10435 * tracepoint.c (trace_buffer_size): New global.
10436 (start_tracing): Send it to the target.
10437 (set_trace_buffer_size): New function.
10438 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10439 * remote.c (remote_set_trace_buffer_size): New function.
10440 (_initialize_remote): Use it.
10441 (QTBuffer:size) New remote command.
10442 (PACKET_QTBuffer_size): New enum.
10443 (remote_protocol_features): Add an entry for
10444 PACKET_QTBuffer_size.
10445
10446 2013-03-08 Tom Tromey <tromey@redhat.com>
10447
10448 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10449 variable.
10450
10451 2013-03-07 Pedro Alves <palves@redhat.com>
10452
10453 * target.c (target_read_stralloc, target_fileio_read_alloc):
10454 *Cast pointer to 'gdb_byte *' in target call.
10455
10456 2013-03-07 Pedro Alves <palves@redhat.com>
10457
10458 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10459 call.
10460
10461 2013-03-07 Keith Seitz <keiths@redhat.com>
10462
10463 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10464 (trace_pass_command): Likewise.
10465 * cli/cli-cmds.c: Include cli/cli-utils.h.
10466 (source_command): Use skip-spaces.
10467 (disassemble_command): Likewise.
10468 * findcmd.c: Include cli/cli-utils.h.
10469 (parse_find_args): Use skip_spaces.
10470 * go32-nat.c: Include cli/cli-utils.h.
10471 (go32_sldt): Use skip_spaces.
10472 (go32_sgdt): Likewise.
10473 (go32_sidt): Likewise.
10474 (go32_pde): Likewise.
10475 (go32_pte): Likewise.
10476 (go32_pte_for_address): Likewise.
10477 * infcmd.c: Include cli/cli-utils.h.
10478 (registers_info): Use skip_spaces.
10479 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10480 (linux_info_proc): Likewise.
10481 * linux-thread-db.c: Include cli/cli-utils.h.
10482 (info_auto_load_libthread_db): Use skip_spaces_const.
10483 * m32r-rom.c: Include cli/cli-utils.h.
10484 (m32r_upload_command): Use skip_spaces.
10485 * maint.c: Include cli/cli-utils.h.
10486 (maintenance_translate_address): Use skip_spaces.
10487 * mi/mi-parse.c: Include cli/cli-utils.h.
10488 (mi_parse_argv): Use skip_spaces.
10489 (mi_parse): Likewise.
10490 * minsyms.c: Include cli/cli-utils.h.
10491 (msymbol_hash_iw): Use skip_spaces_const.
10492 * objc-lang.c: Include cli/cli-utils.h.
10493 (parse_selector): Use skip_spaces.
10494 (parse_method): Likewise.
10495 * python/python.c: Include cli/cli-utils.h.
10496 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10497 (python_command)[HAVE_PYTHON]: Likewise.
10498 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10499 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10500 (m32r_load): Use skip_spaces.
10501 * serial.c: Include cli/cli-utils.h.
10502 (serial_open): Use skip_spaces_const.
10503 * stack.c: Include cli/cli-utils.h.
10504 (parse_frame_specification_1): Use skip_spaces_const.
10505 * symfile.c: Include cli/cli-utils.h.
10506 (set_ext_lang_command): Use skip_spaces.
10507 * symtab.c: Include cli/cli-utils.h.
10508 (rbreak_command): Use skip_spaces.
10509 * thread.c (thread_name_command): Use skip_spaces.
10510 * tracepoint.c (validate_actionline): Use skip_spaces.
10511 (encode_actions_1): Likewise.
10512 (trace_find_range_command): Likewise.
10513 (trace_find_outside_command): Likewise.
10514 (trace_dump_actions): Likewise.
10515
10516 2013-03-07 Pedro Alves <palves@redhat.com>
10517
10518 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10519 * expprint.c (print_subexp_standard): Likewise.
10520 * utils.c (host_char_to_target): Likewise.
10521 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10522 * varobj.c (value_get_print_value): Change type of local to char*.
10523 Cast it gdb_byte * in call to language printer.
10524
10525 2013-03-07 Pedro Alves <palves@redhat.com>
10526
10527 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10528 gdb_byte *'.
10529 (make_wchar_iterator): Remove cast to char*.
10530 (wchar_iterate): Change type of local.
10531
10532 2013-03-07 Pedro Alves <palves@redhat.com>
10533
10534 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10535 for 'regcache->register_status'.
10536
10537 2013-03-07 Pedro Alves <palves@redhat.com>
10538
10539 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10540 int.
10541
10542 2013-03-07 Pedro Alves <palves@redhat.com>
10543
10544 * stap-probe.c (handle_stap_probe): Add cast to char*.
10545
10546 2013-03-07 Pedro Alves <palves@redhat.com>
10547
10548 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10549 RECORD_MSGRCV>: Pass a signed variable to
10550 regcache_raw_read_signed, instead of an unsigned one.
10551
10552 2013-03-07 Pedro Alves <palves@redhat.com>
10553
10554 * remote-notif.c (notif_debug): Change type to int.
10555 * remote-notif.h (notif_debug): Likewise.
10556
10557 2013-03-07 Pedro Alves <palves@redhat.com>
10558
10559 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10560
10561 2013-03-07 Pedro Alves <palves@redhat.com>
10562
10563 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10564 * remote.h (hex2bin, bin2hex): ... here.
10565 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10566
10567 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10568
10569 * utils.c (initialize_utils): Improve doc strings of "set/show
10570 width", "set/show height", and "set/show pagination".
10571
10572 2013-03-06 Keith Seitz <keiths@redhat.com>
10573
10574 * ax-gdb.c (gen_printf): Make FORMAT const.
10575 * ax-gdb.h (gen_printf): Likewise.
10576 * ax-general.c (ax_string): Make STR const.
10577 * ax.h (ax_string): Likewise.
10578
10579 2013-03-06 Doug Evans <dje@google.com>
10580
10581 * elfread.c (elf_symfile_read): Move debugging printf to more
10582 logical location.
10583
10584 2013-03-06 Pedro Alves <palves@redhat.com>
10585
10586 * python/py-utils.c (target_string_to_unicode): Delete function.
10587 * python/python-internal.h (target_string_to_unicode): Delete
10588 declaration.
10589
10590 2013-03-06 Pierre Muller <muller@sourceware.org>
10591
10592 * linespec.c (get_current_search_block): ARI fix, use (void)
10593 for empty parameter list.
10594
10595 2013-03-05 Doug Evans <dje@google.com>
10596
10597 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10598 of old ada_lookup_symbol_list. In !full_search case, don't
10599 search superblocks.
10600 (ada_lookup_symbol_list): Delete arg full_search, all callers
10601 updated. Call ada_lookup_symbol_list_worker.
10602 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10603 * ada-lang.h (ada_lookup_symbol_list): Update.
10604 * language.h (language_defn): Update comment for
10605 la_iterate_over_symbols.
10606 * linespec.c (iterate_over_file_blocks): New function.
10607 (iterate_over_all_matching_symtabs): Call it.
10608 (lookup_prefix_sym): Ditto.
10609 (get_current_search_block): New function.
10610 (get_search_block): Delete.
10611 (find_label_symbols): Call get_current_search_block.
10612 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10613 * symtab.c (iterate_over_symbols): Don't search superblocks.
10614
10615 2013-03-05 Yao Qi <yao@codesourcery.com>
10616
10617 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10618 parameter VAR's type from "unsigned int" to "int".
10619 * command.h (var_zuinteger_unlimited): Update its comments.
10620 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10621
10622 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10623
10624 * NEWS: Mention new target x86_64-*-cygwin*.
10625
10626 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10627
10628 * configure.host: Add x86_64-*-cygwin* as host.
10629 * configure.tgt: Add x86_64-*-cygwin* as target.
10630 * config/i386/cygwin64.mh: New file.
10631
10632 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10635
10636 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10637
10638 * linespec.c (struct linespec_canonical_name): New.
10639 (struct linespec_state): Change canonical_names type to it.
10640 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10641 xrealloc element size. Initialize the different CANONICAL fields.
10642 (canonical_to_fullform): New.
10643 (filter_results): Use it. Add variables canonical, fullform and
10644 cleanup.
10645 (struct decode_line_2_item, decode_line_2_compare_items): New.
10646 (decode_line_2): Remove variables iter and item_names, add variables
10647 items and items_count. Modify the code for these new variables.
10648
10649 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10650
10651 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10652 calling do_cleanup.
10653
10654 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10655
10656 * tracepoint.c (build_traceframe_info): Add code for byte order.
10657
10658 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10659
10660 * v850-tdep.c: (v850e2_register_name): Revise system register
10661 names to match current V850E2M architecture specifications.
10662 Update register number enum comments too.
10663
10664 2013-03-01 Jiong Wang <jiwang@tilera.com>
10665 Pedro Alves <palves@redhat.com>
10666
10667 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10668 to END_ADDR.
10669 (tilegx_skip_prologue): Limit prologue analysis to section end.
10670
10671 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10672
10673 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10674 use it.
10675
10676 2013-03-01 Pedro Alves <palves@redhat.com>
10677
10678 Use gdb_byte for bytes from the program being debugged.
10679
10680 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10681 Change type of local 'buf' to gdb_byte.
10682 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10683 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10684 * cris-tdep.c (cris_sigcontext_addr)
10685 (cris_sigtramp_frame_unwind_cache): Likewise.
10686 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10687 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10688 Likewise.
10689 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10690 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10691 (hppa32_hpux_search_dummy_call_sequence)
10692 (hppa_hpux_supply_save_state): Likewise.
10693 * hppa-linux-tdep.c (insns_match_pattern)
10694 (hppa_linux_find_global_pointer): Likewise.
10695 * hppa-tdep.c (hppa_in_function_epilogue_p)
10696 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10697 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10698 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10699 (i386fbsd_collect_uthread): Likewise.
10700 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10701 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10702 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10703 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10704 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10705 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10706 (ia64_libunwind_frame_prev_register)
10707 (ia64_libunwind_sigtramp_frame_this_id)
10708 (ia64_find_global_pointer_from_dynamic_section)
10709 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10710 (ia64_unwind_pc): Likewise.
10711 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10712 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10713 (m68hc11_extract_return_value): Likewise.
10714 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10715 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10716 (mep_get_insn, mep_push_dummy_call): Likewise.
10717 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10718 (mips_linux_in_dynsym_stub): Likewise.
10719 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10720 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10721 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10722 to gdb_byte.
10723 * remote-mips.c (mips_set_register): Likewise.
10724 * remote-sim.c (gdbsim_fetch_register): Likewise.
10725 * score-tdep.c (score7_fetch_inst): Change type of parameter
10726 'memblock' and local 'buf' to gdb_byte.
10727 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10728 Change type of local 'buf' to gdb_byte. Adjust.
10729 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10730 to gdb_byte**.
10731 (score7_analyze_prologue): Change type of 'memblock' and
10732 'memblock_ptr' locals to gdb_byte*.
10733 * sh64-tdep.c (sh64_extract_return_value)
10734 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10735 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10736 * solib-pa64.c (pa64_solib_create_inferior_hook)
10737 (pa64_open_symbol_file_object): Remove local 'buf'.
10738 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10739 (som_open_symbol_file_object): Likewise.
10740 * solib-spu.c (spu_current_sos): Likewise.
10741 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10742 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10743 (spu_store_registers): Likewise.
10744 * target.c (debug_print_register): Likewise.
10745 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10746 * xstormy16-tdep.c (xstormy16_store_return_value)
10747 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10748 (xstormy16_find_jmp_table_entry): Likewise.
10749
10750 2013-03-01 Jiong Wang <jiwang@tilera.com>
10751
10752 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10753 (tilegx_gdbarch_init): Install it.
10754
10755 2013-02-28 Tom Tromey <tromey@redhat.com>
10756
10757 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10758 PyLong_Check.
10759
10760 2013-02-28 Doug Evans <dje@google.com>
10761
10762 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10763 * python/python.c (gdbpy_find_pc_line): Ditto.
10764
10765 2013-02-28 Tom Tromey <tromey@redhat.com>
10766
10767 * contrib/excheck.py: New file.
10768 * contrib/exsummary.py: New file.
10769 * contrib/gcc-with-excheck: New file.
10770
10771 2013-02-28 Tom Tromey <tromey@redhat.com>
10772
10773 * python/python.c (gdbpy_print_stack): Call begin_line and
10774 fprintf_filtered inside TRY_CATCH.
10775
10776 2013-02-28 Tom Tromey <tromey@redhat.com>
10777
10778 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10779 inside TRY_CATCH.
10780
10781 2013-02-28 Tom Tromey <tromey@redhat.com>
10782
10783 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10784 frame_object_to_frame_info inside TRY_CATCH.
10785
10786 2013-02-28 Tom Tromey <tromey@redhat.com>
10787
10788 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10789 TRY_CATCH.
10790
10791 2013-02-28 Tom Tromey <tromey@redhat.com>
10792
10793 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10794
10795 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10796
10797 * windows-nat.c: Throughout, fix format strings and casts of
10798 printf-like functions to avoid type related warnings on all
10799 platforms.
10800 (handle_output_debug_string): Fetch context information address
10801 from debug string using string_to_core_addr.
10802
10803 2013-02-27 Jiong Wang <jiwang@tilera.com>
10804
10805 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10806 * regformats/reg-tilegx32.dat: New.
10807
10808 2013-02-27 Jiong Wang <jiwang@tilera.com>
10809
10810 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10811
10812 2013-02-27 Jiong Wang <jiwang@tilera.com>
10813
10814 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10815
10816 2013-02-27 Yao Qi <yao@codesourcery.com>
10817 Pedro Alves <palves@redhat.com>
10818
10819 * tracepoint.c (tfile_trace_find): For tfind
10820 pc/tp/range/outside, look for the next trace frame instead of
10821 always starting from frame 0.
10822
10823 2013-02-26 Anthony Green <green@moxielogic.com>
10824
10825 * configure.tgt: Add support for moxie-*-rtems* target.
10826
10827 2013-02-25 Pedro Alves <palves@redhat.com>
10828
10829 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10830 warning text.
10831
10832 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10833
10834 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10835 if $fp is used as the virtual frame pointer.
10836
10837 2013-02-23 Alan Modra <amodra@gmail.com>
10838
10839 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10840 symbol size.
10841 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10842 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10843 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10844 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10845
10846 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Code cleanup.
10849 * elfread.c (build_id_bfd_get): Make the return type const.
10850 (build_id_verify): Make the check parameter const.
10851 (build_id_to_debug_filename): Make the build_id parameter and variable
10852 data const.
10853 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10854
10855 2013-02-21 Alan Modra <amodra@gmail.com>
10856
10857 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10858
10859 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10860
10861 Add a new method 'disassemble' to gdb.Architecture class.
10862 * python/py-arch.c (archpy_disassmble): Implementation of the
10863 new method gdb.Architecture.disassemble.
10864 (arch_object_methods): Add entry for the new method.
10865
10866 2013-02-20 Jiong Wang <jiwang@tilera.com>
10867
10868 * MAINTAINERS (Write After Approval): Add myself to the list.
10869
10870 2013-02-19 Pedro Alves <palves@redhat.com>
10871
10872 Garbage collect 'struct monitor_ops'::load_routine.
10873
10874 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10875 * monitor.c (monitor_load): No longer call
10876 current_monitor->load_routine.
10877 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10878 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10879 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10880
10881 2013-02-19 Pedro Alves <palves@redhat.com>
10882
10883 PR gdb/15161
10884
10885 Harmonize with generic_load.
10886
10887 * monitor.c: Include "readline/readline.h".
10888 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10889 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10890 long/strtol for the 'load_offset' local. Error out if no argument
10891 is given or if too many arguments are given. Tilde expand the
10892 passed in file name.
10893
10894 2013-02-19 Kai Tietz <ktietz@redhat.com>
10895
10896 PR gdb/15161
10897 * symfile.c (load_section_data): Change type of load_offset
10898 to CORE_ADDR.
10899 (generic_load): User strtoulst instead of strtoul for conversion
10900 of load_offset.
10901
10902 2013-02-19 Jiong Wang <jiwang@tilera.com>
10903
10904 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10905 for return address, "lr" register, saved on stack.
10906 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10907 after we invoke tilegx_analyze_prologue.
10908
10909 2013-02-19 Jiong Wang <jiwang@tilera.com>
10910
10911 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10912
10913 2013-02-19 Jiong Wang <jiwang@tilera.com>
10914
10915 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10916
10917 2013-02-19 Jiong Wang <jiwang@tilera.com>
10918
10919 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10920 (tilegx_write_pc): New function.
10921 (tilegx_cannot_reference_register): Return zero if REGNO
10922 is TILEGX_FAULTNUM_REGNUM.
10923 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10924 (tilegx_register_name): Add handling of "faultnum" register.
10925 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10926 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10927 handling of TILEGX_FAULTNUM_REGNUM.
10928 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10929
10930 2013-02-19 Jiong Wang <jiwang@tilera.com>
10931
10932 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
10933 should be aligned to 64bit.
10934
10935 2013-02-19 Kai Tietz <ktietz@redhat.com>
10936
10937 * windows-nat.c (windows_xfer_memory): Fix debug-output
10938 for LLP64.
10939
10940 2013-02-19 Lei Liu <lei.liu2@windriver.com>
10941
10942 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
10943 Don't check DSP register number if HAVE_DSP is not set.
10944
10945 2013-02-19 Alan Modra <amodra@gmail.com>
10946
10947 * elfread.c (struct build_id): Delete. Use struct elf_build_id
10948 throughout file instead.
10949 (build_id_bfd_get): Update to use new elf_tdata build_id field.
10950 Don't xmalloc return value.
10951 (build_id_verify): Similarly. Don't xfree.
10952 (build_id_to_debug_filename): Update.
10953 (find_separate_debug_file_by_buildid): Update, don't xfree.
10954
10955 2013-02-18 Tom Tromey <tromey@redhat.com>
10956
10957 PR gdb/15102:
10958 * dwarf2read.c (read_subrange_type): Use result of
10959 'check_typedef'.
10960
10961 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
10962
10963 * frame.c: Remove one extra white space after #include
10964 directive.
10965
10966 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10967
10968 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
10969
10970 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10971
10972 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
10973 and dir commands into an if block.
10974
10975 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
10976
10977 * python/py-breakpoint (struct pybp_code): Use int instead of
10978 enum type_code.
10979
10980 2013-02-15 Pedro Alves <pedro@codesourcery.com>
10981 Hafiz Abid Qadeer <abidh@codesourcery.com>
10982
10983 * NEWS: Mention new field "trace-file".
10984 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10985 (tfile_open): Record the trace file's filename in the trace
10986 status.
10987 (tfile_files_info): Mention the name of the trace file.
10988 Check the "filename" field explicitely.
10989 (trace_status_command): Explicitely check "filename" field.
10990 (trace_find_command): Ditto.
10991 (trace_find_pc_command): Ditto.
10992 (trace_find_tracepoint_command): Ditto.
10993 (trace_find_line_command): Ditto.
10994 (trace_find_range_command): Ditto.
10995 (trace_find_outside_command): Ditto.
10996 * tracepoint.h (struct trace_status) <from_file>: Rename it
10997 to "filename" and make it hold the trace file's filename
10998 instead of a boolean.
10999 * remote.c (remote_get_trace_status): Initialize "filename"
11000 field with NULL instead of 0.
11001
11002 2013-02-15 Yao Qi <yao@codesourcery.com>
11003
11004 * remote.c: Fix a typo.
11005
11006 2013-02-14 Pierre Muller <muller@sourceware.org>
11007
11008 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11009
11010 2013-02-14 Pedro Alves <palves@redhat.com>
11011
11012 * utils.c (savestring): Don't #undef it. Move function to
11013 common/common-utils.c.
11014 * common/common-utils.c: Include gdb_string.h.
11015 (savestring): Move here from utils.c.
11016 * common/common-utils.h (savestring): Declare.
11017
11018 2013-02-14 Pedro Alves <palves@redhat.com>
11019
11020 * utils.c (savestring): Rename parameter 'size' to 'len'.
11021
11022 2013-02-14 Pedro Alves <palves@redhat.com>
11023 Yufeng Zhang <yufeng.zhang@arm.com>
11024
11025 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11026 (aarch64_inferior_data, struct aarch64_inferior_data):
11027 Delete.
11028 (struct aarch64_process_info): New.
11029 (aarch64_process_list): New global.
11030 (aarch64_find_process_pid, aarch64_add_process)
11031 (aarch64_process_info_get): New functions.
11032 (aarch64_inferior_data_get): Delete.
11033 (aarch64_process_info_get): New function.
11034 (aarch64_forget_process): New function.
11035 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11036 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11037 aarch64_get_debug_reg_state.
11038 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11039 instead of linux_nat_iterate_watchpoint_lwps.
11040 (aarch64_linux_new_fork): New function.
11041 (aarch64_linux_child_post_startup_inferior): Use
11042 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11043 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11044 (aarch64_linux_remove_hw_breakpoint)
11045 (aarch64_handle_aligned_watchpoint)
11046 (aarch64_handle_unaligned_watchpoint)
11047 (aarch64_linux_insert_watchpoint)
11048 (aarch64_linux_remove_watchpoint)
11049 (aarch64_linux_stopped_data_address): Adjust to pass the current
11050 process id to aarch64_debug_reg_state.
11051 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11052 linux_nat_new_fork hook, and aarch64_forget_process as
11053 linux_nat_forget_process hook; remove the call to
11054 register_inferior_data_with_cleanup.
11055
11056 2013-02-14 Pedro Alves <palves@redhat.com>
11057
11058 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11059 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11060 lval_memory.
11061
11062 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11063 Hafiz Abid Qadeer <abidh@codesourcery.com>
11064
11065 * tracepoint.h (validate_trace_state_variable_name): Declare.
11066 * tracepoint.c (validate_trace_state_variable_name): New.
11067 (trace_variable_command): Parse the trace state variable's name
11068 without using parse_expression. Do several validations.
11069 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11070 trace state variable's name with parse_expression. Validate it.
11071
11072 2013-02-14 Yao Qi <yao@codesourcery.com>
11073
11074 * infcmd.c (breakpoint_proceeded): Remove it.
11075
11076 2013-02-14 Yao Qi <yao@codesourcery.com>
11077
11078 * tracepoint.c (end_actions_pseudocommand): Make it static.
11079 (while_stepping_pseudocommand): Likewise.
11080 * tracepoint.h (end_actions_pseudocommand): Remove the
11081 declaration.
11082 (while_stepping_pseudocommand): Likewise.
11083
11084 2013-02-14 Yao Qi <yao@codesourcery.com>
11085
11086 * cli/cli-decode.c (help_cmd): Remove the declaration of
11087 "cmdlist".
11088 (help_all): Likewise.
11089
11090 2013-02-13 Pedro Alves <palves@redhat.com>
11091
11092 * amd64-linux-nat.c (update_debug_registers_callback):
11093 Update comment.
11094 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11095 iterate_over_lwps.
11096 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11097 i386_debug_reg_state.
11098 (amd64_linux_new_fork): New function.
11099 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11100 linux_nat_new_fork hook, and i386_forget_process as
11101 linux_nat_forget_process hook.
11102 * i386-linux-nat.c (update_debug_registers_callback):
11103 Update comment.
11104 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11105 iterate_over_lwps.
11106 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11107 i386_debug_reg_state.
11108 (i386_linux_new_fork): New function.
11109 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11110 linux_nat_new_fork hook, and i386_forget_process as
11111 linux_nat_forget_process hook.
11112 * i386-nat.c (i386_init_dregs): Delete.
11113 (i386_inferior_data, struct i386_inferior_data):
11114 Delete.
11115 (struct i386_process_info): New.
11116 (i386_process_list): New global.
11117 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11118 New functions.
11119 (i386_inferior_data_get): Delete.
11120 (i386_process_info_get): New function.
11121 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11122 (i386_forget_process): New function.
11123 (i386_cleanup_dregs): Rewrite.
11124 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11125 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11126 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11127 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11128 to i386_debug_reg_state.
11129 (i386_use_watchpoints): Don't register inferior data.
11130 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11131 adjust comment.
11132 (i386_forget_process): Declare.
11133 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11134 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11135 New static globals.
11136 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11137 (add_initial_lwp): New, factored out from ...
11138 (add_lwp): ... this. Don't check the number of lwps before
11139 calling linux_nat_new_thread.
11140 (linux_nat_iterate_watchpoint_lwps): Delete.
11141 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11142 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11143 forks and vforks.
11144 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11145 initial lwp.
11146 (linux_nat_kill, linux_nat_mourn_inferior): Call
11147 linux_nat_forget_process.
11148 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11149 (linux_nat_forget_process): New functions.
11150 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11151 type.
11152 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11153 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11154 types.
11155 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11156 (linux_nat_forget_process): New declarations.
11157
11158 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11159 (amd64fbsd_mourn_inferior): New function.
11160 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11161 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11162
11163 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11164
11165 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11166 Adding _().
11167
11168 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11169
11170 * aarch64-linux-nat.c (debug_reg_change_callback)
11171 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11172 %s and phex().
11173
11174 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11175
11176 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11177 with LONGEST.
11178
11179 2013-02-13 Pedro Alves <palves@redhat.com>
11180 Hafiz Abid Qadeer <abidh@codesourcery.com>
11181
11182 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11183
11184 2013-02-12 Tom Tromey <tromey@redhat.com>
11185
11186 PR symtab/11464:
11187 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11188 NAME return.
11189 (classify_inner_name): Remove 'first_name' argument, add
11190 'context'. Remove unused variable.
11191 (yylex): Explicitly maintain the context type. Exit loop earlier
11192 if NAME result is seen.
11193
11194 2013-02-12 Pedro Alves <palves@redhat.com>
11195
11196 * amd64-darwin-tdep.c: Add (C) after Copyright.
11197 * cli/cli-cmds.h: Ditto.
11198 * cli/cli-decode.c: Ditto.
11199 * cli/cli-decode.h: Ditto.
11200 * cli/cli-dump.c: Ditto.
11201 * cli/cli-dump.h: Ditto.
11202 * cli/cli-interp.c: Ditto.
11203 * cli/cli-logging.c: Ditto.
11204 * cli/cli-script.c: Ditto.
11205 * cli/cli-script.h: Ditto.
11206 * cli/cli-setshow.c: Ditto.
11207 * cli/cli-setshow.h: Ditto.
11208 * cli/cli-utils.c: Ditto.
11209 * cli/cli-utils.h: Ditto.
11210 * config/alpha/nm-osf3.h: Ditto.
11211 * config/djgpp/djconfig.sh: Ditto.
11212 * config/i386/nm-fbsd.h: Ditto.
11213 * config/i386/nm-i386gnu.h: Ditto.
11214 * config/nm-linux.h: Ditto.
11215 * config/nm-nto.h: Ditto.
11216 * config/rs6000/nm-rs6000.h: Ditto.
11217 * config/sparc/nm-sol2.h: Ditto.
11218 * darwin-nat-info.c: Ditto.
11219 * dfp.c: Ditto.
11220 * dfp.h: Ditto.
11221 * gdb-demangle.h: Ditto.
11222 * i386-darwin-nat.c: Ditto.
11223 * i386-darwin-tdep.c: Ditto.
11224 * linux-fork.h: Ditto.
11225 * m32c-tdep.c: Ditto.
11226 * microblaze-linux-tdep.c: Ditto.
11227 * microblaze-rom.c: Ditto.
11228 * microblaze-tdep.c: Ditto.
11229 * microblaze-tdep.h: Ditto.
11230 * mips-linux-tdep.h: Ditto.
11231 * ppc-ravenscar-thread.c: Ditto.
11232 * ppc-ravenscar-thread.h: Ditto.
11233 * prologue-value.c: Ditto.
11234 * prologue-value.h: Ditto.
11235 * ravenscar-thread.c: Ditto.
11236 * ravenscar-thread.h: Ditto.
11237 * sparc-ravenscar-thread.c: Ditto.
11238 * sparc-ravenscar-thread.h: Ditto.
11239 * tilegx-linux-tdep.c: Ditto.
11240 * unwind_stop_reasons.def: Ditto.
11241 * windows-nat.h: Ditto.
11242 * xtensa-linux-tdep.c: Ditto.
11243 * xtensa-xtregs.c: Ditto.
11244 * regformats/regdat.sh: Ditto.
11245 * regformats/regdef.h: Ditto.
11246
11247 2013-02-12 Pedro Alves <palves@redhat.com>
11248
11249 * break-catch-sig.c: Update copyright years.
11250
11251 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11252
11253 Add support for a destructor for ui_out data and use it to
11254 provide a ui_out destructor.
11255 * ui-out.h: Declare the new ui_out destructor.
11256 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11257 * ui-out.c (default_data_destroy): Add a default data destructor
11258 which does nothing.
11259 (default_ui_out_impl): Set the new data_destroy field to
11260 default_data_destroy
11261 (uo_data_destroy): Local function which invokes the data
11262 destructor if present.
11263 (clear_table): Local function which clears the table data of a
11264 ui_out object.
11265 (ui_out_destroy): Public function which frees a ui_out object.
11266 (ui_out_table_end): Use the new clear_table function.
11267 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11268 NULL.
11269 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11270 to NULL.
11271
11272 2013-02-11 Doug Evans <dje@google.com>
11273
11274 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11275 (printf_decfloat): New function. Broken out from ui_printf.
11276 Remove unnecessary code to shift the entire format string down.
11277 (printf_pointer): New function.
11278 (ui_printf): Code to print C strings, wide C strings, decfloats,
11279 and pointers moved to separate functions.
11280
11281 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11282
11283 * valops.c (value_assign): Handling bitfield offset in
11284 `lval_internalvar_component' case.
11285
11286 2013-02-08 Doug Evans <dje@google.com>
11287
11288 * common/format.c (parse_format_string): Fix whitespace.
11289
11290 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11291
11292 * stack.c (return_command): Work around uninitialized variable
11293 warning.
11294
11295 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11296
11297 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11298 number of the registers from 36 to 34.
11299
11300 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11301
11302 * NEWS: Mention new AArch64 native and target support.
11303
11304 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11305
11306 * MAINTAINERS (Write After Approval): Add myself.
11307
11308 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11309 Marcus Shawcroft <marcus.shawcroft@arm.com>
11310 Nigel Stephens <nigel.stephens@arm.com>
11311 Yufeng Zhang <yufeng.zhang@arm.com>
11312
11313 * aarch64-linux-nat.c: New file.
11314 * config/aarch64/linux.mh: New file.
11315 * configure.host: Add AArch64.
11316 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11317
11318 2013-02-07 Doug Evans <dje@google.com>
11319
11320 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11321 disassemble command.
11322
11323 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11324
11325 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11326 set_gdbarch_fetch_tls_load_module_address.
11327
11328 2013-02-06 David S. Miller <davem@davemloft.net>
11329
11330 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11331 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11332 * value.c (struct_return_convention): New function.
11333 (using_struct_return): Implement in terms of struct_return_convention.
11334 * value.h (struct_return_convention): Declare.
11335 * stack.c (return_command): Allow successful overriding of the return
11336 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11337
11338 2013-02-06 Tom Tromey <tromey@redhat.com>
11339
11340 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11341 outside of TRY_CATCH.
11342
11343 2013-02-06 Yao Qi <yao@codesourcery.com>
11344
11345 * mi/mi-interp.c: Include "tracepoint.h".
11346 (mi_tsv_modified): Declare.
11347 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11348 (mi_interpreter_init): Call observer_attach_tsv_modified.
11349 (mi_tsv_modified): New.
11350 (mi_tsv_created, mi_tsv_deleted): Update.
11351 * tracepoint.c (trace_variable_command): Call
11352 observer_notify_tsv_modified if the initial value of tsv is
11353 changed.
11354 (delete_trace_state_variable): Call
11355 observer_notify_tsv_deleted earlier.
11356 (trace_variable_command): Caller update.
11357 (create_tsv_from_upload): Likewise.
11358 * observer.sh: Declare "struct trace_state_variable".
11359
11360 * NEWS: Mention the new MI notification "=tsv-modified".
11361
11362 2013-02-05 Doug Evans <dje@google.com>
11363
11364 * completer.c (location_completer): Fix typo in comment.
11365
11366 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11367
11368 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11369 ADDRESS sorted.
11370
11371 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11372
11373 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11374 Refactor if statement to avoid trailing || operator.
11375
11376 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11377
11378 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11379
11380 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11381
11382 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11383 * configure.host: Add powerpc*-*-freebsd* target.
11384 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11385 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11386 * config/powerpc/fbsd.mh: New file.
11387
11388 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11389 Denys Vlasenko <dvlasenk@redhat.com>
11390 Pedro Alves <palves@redhat.com>
11391
11392 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11393 (struct elf_internal_linux_prpsinfo): Forward declare.
11394 * gdbarch.h, gdbarch.c: Regenerate.
11395 * linux-tdep.c: Include `cli/cli-utils.h'.
11396 (linux_fill_prpsinfo): New function.
11397 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11398 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11399 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11400 depending on gdbarch pointer bitness.
11401 * ppc-linux-tdep.c: Include elf-bfd.h.
11402 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11403 on 32-bit.
11404
11405 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11406 Marcus Shawcroft <marcus.shawcroft@arm.com>
11407 Nigel Stephens <nigel.stephens@arm.com>
11408 Yufeng Zhang <yufeng.zhang@arm.com>
11409
11410 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11411
11412 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11413 Marcus Shawcroft <marcus.shawcroft@arm.com>
11414 Nigel Stephens <nigel.stephens@arm.com>
11415 Yufeng Zhang <yufeng.zhang@arm.com>
11416
11417 * aarch64-newlib-tdep.c: New file.
11418 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11419 aarch64*-*-elf.
11420 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11421 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11422 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11423 * osabi.c (gdb_osabi_names): Add "Newlib".
11424
11425 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11426 Marcus Shawcroft <marcus.shawcroft@arm.com>
11427 Nigel Stephens <nigel.stephens@arm.com>
11428 Yufeng Zhang <yufeng.zhang@arm.com>
11429
11430 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11431 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11432 * aarch64-linux-tdep.c: New file.
11433 * aarch64-linux-tdep.h: New file.
11434 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11435 * configure.tgt: Add aarch64-none-linux-gnu.
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 arch64-tdep.o.
11443 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11444 (ALLDEPFILES): Add aarch64-tdep.c.
11445 * aarch64-tdep.c: New file.
11446 * aarch64-tdep.h: New file.
11447 * configure.tgt: Add AArch64.
11448 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11449 (aarch64-expedite): New definition.
11450 * features/aarch64-core.xml: New file.
11451 * features/aarch64-fpu.xml: New file.
11452 * features/aarch64-without-fpu.c: New file (generated).
11453 * features/aarch64-without-fpu.xml: New file.
11454 * features/aarch64.c: New file (generated).
11455 * features/aarch64.xml: New file.
11456 * regformats/aarch64-without-fpu.dat: New file (generated).
11457 * regformats/aarch64.dat: New file (generated).
11458
11459 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11460
11461 * contrib/expect-read1.c: New file.
11462 * contrib/expect-read1.sh: New file.
11463
11464 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11465
11466 * dwarf2read.c (file_file_name): New function with code from
11467 file_full_name.
11468 (file_full_name): Move most of the code to file_file_name.
11469 (macro_start_file): Rename variable full_name to file_name and use
11470 file_file_name for it. Add comp_dir parameter to new_macro_table.
11471 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11472 macro_source_file->filename access by macro_source_fullname call.
11473 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11474 caller.
11475 * macrotab.c (struct macro_table): New field comp_dir.
11476 (macro_include): New variables link_fullname and source_fullname.
11477 Replace any macro_source_file->filename access by macro_source_fullname
11478 call.
11479 (macro_lookup_inclusion): Remove the partial filenames checking code.
11480 (check_for_redefinition): New variables source_fullname and
11481 found_key_fullname. Replace any macro_source_file->filename access by
11482 macro_source_fullname call.
11483 (macro_undef): New variables source_fullname and key_fullname. Replace
11484 any macro_source_file->filename access by macro_source_fullname call.
11485 (macro_lookup_definition): New variables retval and source_fullname.
11486 Replace any macro_source_file->filename access by macro_source_fullname
11487 call.
11488 (foreach_macro): New variable key_fullname. Replace any
11489 macro_source_file->filename access by macro_source_fullname call.
11490 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11491 macro_source_file->filename access by macro_source_fullname call.
11492 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11493 (macro_source_fullname): New function.
11494 * macrotab.h (struct macro_source_file): Extent the filename field
11495 comment.
11496 (new_macro_table): New parameter comp_dir, add a comment for it.
11497 (macro_source_fullname): new declaration.
11498
11499 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11502 this_real_name to outer block. Use it also for
11503 compare_filenames_for_search.
11504 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11505 with dw2_get_real_path for file_matcher, considering also
11506 BASENAMES_MAY_DIFFER.
11507 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11508
11509 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11510
11511 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11512 to the file_matcher parameter. Pass 0 to it.
11513 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11514 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11515 NULL psymtab_to_fullname result.
11516 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11517 an expected filename instead.
11518 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11519 file_matcher parameter. Call also psymtab_to_fullname, after newly
11520 considering BASENAMES_MAY_DIFFER.
11521 * source.c (rewrite_source_path): Remove static.
11522 * source.h (rewrite_source_path): New declaration.
11523 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11524 the expand_symtabs_matching field. Comment it.
11525 * symtab.c (file_matches): New function comment. Add parameter
11526 basenames, implement it.
11527 (search_symbols_file_matches): Add basenames parameter. Update the
11528 file_matches caller.
11529 (search_symbols): Match FILES also against symtab_to_fullname.
11530 Optimize it for BASENAMES_MAY_DIFFER.
11531
11532 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 * source.c (print_source_lines_base): Print for TUI also "fullname".
11535 * tui/tui-data.c (init_content_element): Change tui_locator_element
11536 field to full_name.
11537 * tui/tui-data.h (struct tui_locator_element): Likewise.
11538 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11539 tui_update_locator_filename calls to tui_update_locator_fullname.
11540 Replace symtab->filename refererence by symtab_to_fullname call.
11541 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11542 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11543 field to full_name. Replace symtab->filename refererence by
11544 symtab_to_fullname call.
11545 (tui_show_symtab_source): Rename parameter to fullname. Change
11546 tui_locator_element field to full_name.
11547 * tui/tui-stack.c: Include source.h.
11548 (tui_set_locator_filename): Rename the declaration to ...
11549 (tui_set_locator_fullname): ... here. Rename its parameter to
11550 fullname, updates its comment.
11551 (tui_set_locator_info): Rename its parameter to fullname.
11552 (tui_set_locator_filename): Rename the definition to ...
11553 (tui_set_locator_fullname): ... here. Rename its parameter to
11554 fullname, updates its comment. Change tui_locator_element field to
11555 full_name.
11556 (tui_set_locator_info): Rename its parameter to fullname.
11557 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11558 (tui_update_locator_filename): Rename to ...
11559 (tui_update_locator_fullname): ... here. Rename callee to
11560 tui_set_locator_fullname.
11561 (tui_show_frame_info): Replace symtab->filename refererence by
11562 symtab_to_fullname call.
11563 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11564 (tui_update_locator_fullname): ... here.
11565 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11566 tui_update_locator_fullname. Replace symtab->filename refererence by
11567 symtab_to_fullname call.
11568 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11569 Rename the callee to tui_update_locator_fullname.
11570 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11571
11572 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11573
11574 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11575 by symtab_to_filename_for_display calls.
11576 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11577 (clear_command): New variable sal_fullname, initialize it. Replace
11578 compare_filenames_for_search by filename_cmp with sal_fullname.
11579 (say_where, update_static_tracepoint): Replace symtab->filename
11580 refererences by symtab_to_filename_for_display calls.
11581 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11582 Likewise.
11583 * dwarf2read.c: Include source.h.
11584 (fixup_go_packaging): Replace symtab->filename refererences by
11585 symtab_to_filename_for_display calls.
11586 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11587 Replace symtab->filename refererences by symtab_to_filename_for_display
11588 calls.
11589 (create_sals_line_offset, convert_linespec_to_sals): New variable
11590 fullname, initialize it, replace symtab->filename reference by the
11591 variable.
11592 * linux-fork.c: Include source.h.
11593 (info_checkpoints_command): Replace symtab->filename refererences by
11594 symtab_to_filename_for_display calls.
11595 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11596 by symtab_to_filename_for_display calls.
11597 * mdebugread.c: Include source.h.
11598 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11599 symtab_to_filename_for_display calls.
11600 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11601 (mi_cmd_file_list_exec_source_files): Likewise.
11602 * printcmd.c: Include source.h.
11603 (build_address_symbolic): Replace symtab->filename refererences by
11604 symtab_to_filename_for_display calls.
11605 * psymtab.c (partial_map_symtabs_matching_filename)
11606 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11607 with psymtab_to_fullname.
11608 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11609 by symtab_to_filename_for_display calls.
11610 (stpy_get_filename): New variable filename, initialize it, use instead
11611 of symtab->filename refererences.
11612 (salpy_str): Make variable filename const char *. Replace
11613 symtab->filename refererences by symtab_to_filename_for_display calls.
11614 * skip.c: Include source.h and filenames.h.
11615 (skip_file_command): Remove const from the symtab variable. Replace
11616 symtab->filename refererences by symtab_to_fullname call.
11617 (function_name_is_marked_for_skip): New variables searched_for_fullname
11618 and fullname. Use them to search also with symtab's fullname.
11619 * source.c (find_source_lines): Replace symtab->filename refererences
11620 by symtab_to_filename_for_display calls.
11621 (print_source_lines_base): New variable filename, use it instead of
11622 symtab->filename. Replace symtab->filename refererences by
11623 symtab_to_filename_for_display calls.
11624 (line_info, forward_search_command): Replace symtab->filename
11625 refererences by symtab_to_filename_for_display calls.
11626 (reverse_search_command): Replace symtab->filename refererences by
11627 symtab_to_filename_for_display calls. New variable filename for it.
11628 * stack.c (frame_info): Likewise.
11629 * symmisc.c: Include source.h.
11630 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11631 (maintenance_info_symtabs): Replace symtab->filename refererences by
11632 symtab_to_filename_for_display calls.
11633 * symtab.c (iterate_over_some_symtabs): Call
11634 compare_filenames_for_search also with symtab_to_fullname.
11635 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11636 symtab->filename refererences by symtab_to_filename_for_display calls.
11637 (find_line_symtab): Replace symtab->filename refererences by
11638 symtab_to_filename_for_display calls.
11639 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11640 (print_symbol_info): Make the last parameter const char *. New
11641 variable s_filename. Use it in the function.
11642 (symtab_symbol_info): Make the last_filename variable const char *.
11643 Replace symtab->filename refererences by symtab_to_filename_for_display
11644 calls.
11645 (rbreak_command): New variable fullname. Use it. Replace
11646 symtab->filename refererence by symtab_to_filename_for_display call.
11647 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11648 (print_one_static_tracepoint_marker): Replace symtab->filename
11649 refererences by symtab_to_filename_for_display calls.
11650 * tui/tui-source.c (tui_set_source_content): New variables filename and
11651 s_filename. Replace symtab->filename refererences by this variable.
11652 Replace other symtab->filename refererences by
11653 symtab_to_filename_for_display calls.
11654
11655 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11656 Jan Kratochvil <jan.kratochvil@redhat.com>
11657
11658 Add a new variable that controls a way in which filenames are
11659 displayed.
11660 * NEWS (set filename-display): New entry.
11661 * source.c (filename_display_basename, filename_display_relative)
11662 (filename_display_absolute, filename_display_kind_names)
11663 (filename_display_string, show_filename_display_string)
11664 (symtab_to_filename_for_display): New.
11665 (_initialize_source): Added initialization of 'filename-display'
11666 variable.
11667 * source.h (symtab_to_filename_for_display): Added declaration.
11668 * stack.c (print_frame): Added new variable and calling of a new
11669 function and condition with this variable. Changed third argument of
11670 calling of a function.
11671
11672 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11673
11674 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11675 Rename field reference filename to fullname.
11676 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11677 fullname. New comment for it.
11678 * tui/tui-source.c (tui_set_source_content): Rename field reference
11679 filename to fullname. Initialize field by symtab_to_fullname now.
11680 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11681 reference filename to fullname. Use symtab_to_fullname during
11682 comparison.
11683
11684 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11685
11686 Code cleanup.
11687 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11688 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11689 filename to fullname. Rename variable this_name to this_fullname.
11690 Lowercase FILENAME_CMP call.
11691 (dw2_find_symbol_file): New comment for the returned string.
11692 (dwarf2_gdb_index_functions): Rename the function to
11693 dw2_expand_symtabs_with_fullname.
11694 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11695 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11696 fullname.
11697 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11698 * symfile.h (struct quick_symbol_functions): Rename field
11699 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11700 parameter filename to fullname. Document returned string meaning for
11701 find_symbol_file.
11702 * symtab.c (find_line_symtab): Rename the called function to
11703 expand_symtabs_with_fullname.
11704
11705 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 Code cleanup.
11708 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11709 call of filename_cmp with compare_filenames_for_search.
11710 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11711 is_abs, unify the call of FILENAME_CMP with
11712 compare_filenames_for_search. New gdb_asserts for real_path and name.
11713 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11714 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11715 * symfile.h (struct quick_symbol_functions): Extend the comment for
11716 map_symtabs_matching_filename.
11717 * symtab.c (compare_filenames_for_search): Remove the function comment
11718 relative path requirement. Handle absolute filenames, with a comment.
11719 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11720 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11721 real_path and name. Unify the call of compare_filenames_for_search
11722 with FILENAME_CMP.
11723 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11724
11725 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11726
11727 Code cleanup.
11728 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11729 source_file references by symtab field references. Remove variables
11730 sal and fullname.
11731 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11732 (clear_command, say_where): Replace bp_location field source_file
11733 references by symtab field references.
11734 (bp_location_dtor): Remove the source_file reference.
11735 (update_static_tracepoint): Replace bp_location field source_file
11736 references by symtab field references.
11737 (breakpoint_free_objfile): New function.
11738 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11739 Replace the field source_file by field symtab, extend its comment.
11740 (breakpoint_free_objfile): New declaration.
11741 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11742 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11743 field source_file references by symtab field references.
11744
11745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11746
11747 Replace xfullpath calls by gdb_realpath calls.
11748 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11749 function comment.
11750 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11751 Remove it from the iterate_over_some_symtabs call.
11752 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11753 Remove it from the dw2_map_expand_apply calls, remove a block handling
11754 it.
11755 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11756 Remove it from the iterate_over_some_symtabs call.
11757 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11758 Remove it from the partial_map_expand_apply calls, remove a block
11759 handling it. Drop gdb_realpath call and cleanups from the real_path
11760 handling.
11761 * source.c (openp): Drop the comment part about xfullpath. Replace
11762 xfullpath calls by gdb_realpath calls.
11763 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11764 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11765 from method map_symtabs_matching_filename and its comment.
11766 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11767 gdb_realpath call.
11768 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11769 remove it also from the function comment, remove a block handling it.
11770 Drop gdb_realpath call and cleanups from the real_path handling.
11771 (iterate_over_symtabs): Drop variable full_path and its use.
11772 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11773 * utils.c (xfullpath): Remove.
11774 * utils.h (xfullpath): Remove.
11775
11776 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11777
11778 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11779 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11780 (ALLDEPFILES): Add ppc64-tdep.c.
11781 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11782 ppc64-tdep.o to gdb_target_obs.
11783 * ppc64-tdep.h: New file.
11784 * ppc64-tdep.c: New file.
11785 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11786 ppc-linux-tdep.c to here.
11787 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11788 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11789 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11790 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11791 from ppc-linux-tdep.c to here.
11792 (ppc64_convert_from_func_ptr_addr): Rename from
11793 ppc64_linux_convert_from_func_ptr_addr to
11794 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11795 here.
11796 * rs6000-tdep.c:
11797 (read_insn): Move from ppc-linux-tdep.c to here.
11798 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11799 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11800 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11801 Removed above functions.
11802 (ppc_linux_init_abi): Adjust.
11803
11804 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11805
11806 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11807
11808 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11809
11810 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11811
11812 2013-02-01 Pedro Alves <palves@redhat.com>
11813
11814 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11815 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11816
11817 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11818
11819 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11820 files with no separate debug info.
11821 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11822 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11823 only for files with no separate debug info.
11824
11825 2013-01-31 Tom Tromey <tromey@redhat.com>
11826
11827 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11828 change type.
11829 (struct jit_program_space_data): Rename from jit_inferior_data.
11830 Update comments.
11831 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11832 Change return type. Attach data to program space.
11833 (jit_program_space_data_cleanup): Rename from
11834 jit_inferior_data_cleanup; change argument type.
11835 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11836 change type.
11837 (jit_register_code): Update.
11838 (jit_update_inferior_cache): Remove.
11839 (jit_breakpoint_deleted): Get jit data from the location's program
11840 space.
11841 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11842 'ps_data', change type.
11843 (jit_inferior_init, jit_breakpoint_re_set_internal)
11844 (jit_event_handler): Update.
11845 (free_objfile_data): Get data from objfile's program space.
11846 (_initialize_jit): Update.
11847
11848 2013-01-31 Tom Tromey <tromey@redhat.com>
11849
11850 PR gdb/13987:
11851 * jit.c (struct jit_inferior_data) <cached_code_address,
11852 jit_breakpoint>: New fields.
11853 (jit_breakpoint_re_set_internal): Fix logging. Only create
11854 breakpoint if cached address has changed.
11855 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11856 functions.
11857 (_initialize_jit): Register breakpoint deleted observer.
11858
11859 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11860
11861 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11862 (save_infcall_suspend_state): Ifdef out unused inf.
11863 (restore_infcall_suspend_state): Ifdef out unused inf.
11864 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11865 (jit_frame_sniffer): Remove unused inf_data.
11866
11867 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11868
11869 * c-exp.y (classify_inner_name): Remove unused type.
11870 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11871 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11872 need_escape.
11873 (c_get_string): Remove unused kind.
11874 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11875
11876 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11877
11878 * charset.c (intermediate_encoding): Remove unused i.
11879 * completer.c (signal_completer): Remove unused i.
11880 * continuations.c (discard_my_continuations_1): Remove unused
11881 continuation_ptr.
11882 * corelow.c (core_close): Remove unuseD name.
11883 (get_core_siginfo): Remove unused pid.
11884 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11885 i, cps.
11886 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11887 (loclist_describe_location): Remove unused first.
11888 * event-top.c (command_line_handler): Remove unused got_eof.
11889 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11890 (resize_section_table): Remove unused old_value.
11891 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11892 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11893 * i386-tdep.c (i386_process_record): Remove unused rex.
11894 * infcmd.c (get_return_value): Remove unused uiout.
11895 * jv-lang.c (type_from_class): Remove unused is_array.
11896 * jv-valprint.c (java_val_print): Remove unused i.
11897 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11898 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11899 * m2-typeprint.c (m2_print_type): Remove unused code.
11900 * macroexp.c (get_character_constant): Remove unused body_start.
11901 (macro_stringify): Remove unused result.
11902 * objc-lang.c (find_methods): Remove unused gdbarch.
11903 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11904 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11905 * stack.c (print_frame_args): Remove unused summary.
11906 * thread.c (thread_apply_command): Remove unused p.
11907 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11908 * valops.c (search_struct_method): Remove unused skip.
11909 * valprint.c (generic_val_print): Remove unused byte_order.
11910 * varobj.c (varobj_update): Remove unused changed.
11911 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11912 (alias_command): Remove unused c.
11913 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11914 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11915 format.
11916 (mi_cmd_data_write_memory): Remove unused word_format.
11917 (mi_cmd_data_write_memory_bytes): Remove unused r.
11918 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11919 p_start, p_end.
11920 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11921 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11922 line_width.
11923
11924 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11925
11926 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11927 * symtab.c (iterate_over_symtabs): Remove unused s.
11928 (find_pc_sect_symtab): Remove unused pspAce.
11929 (find_pc_sect_line): Remove unused alt_symtab.
11930 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11931 (completion_list_add_name): Remove unused newsize.
11932
11933 2013-01-31 Tom Tromey <tromey@redhat.com>
11934
11935 PR c++/14998:
11936 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
11937 TYPE_CODE_FUNC.
11938
11939 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11940
11941 * target.c (target_read_string): Remove unused origlen.
11942
11943 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11944
11945 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
11946 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
11947 * ax-general.c (ax_print): Remove unused is_float.
11948 * blockframe.c (block_innermost_frame): Remove unused start, end.
11949 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
11950
11951 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11952
11953 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
11954 (svr4_read_so_list): Remove unused lmo.
11955 * solib-target.c (solib_target_relocate_section_addresses): Remove
11956 unused flags.
11957
11958 2013-01-30 Tom Tromey <tromey@redhat.com>
11959
11960 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
11961
11962 2013-01-30 Tom Tromey <tromey@redhat.com>
11963
11964 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
11965 * utils.c (gnu_debuglink_crc32): Remove.
11966 * utils.h (gnu_debuglink_crc32): Don't declare.
11967
11968 2013-01-30 Tom Tromey <tromey@redhat.com>
11969
11970 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
11971 (read_structure_type, read_enumeration_type): Remove cast.
11972
11973 2013-01-30 Tom Tromey <tromey@redhat.com>
11974
11975 * dwarf2read.c (read_namespace_type): Remove cast.
11976 (read_typedef): Likewise.
11977
11978 2013-01-29 Tom Tromey <tromey@redhat.com>
11979
11980 * dwarf2read.c (free_dwo_file): Remove assert.
11981
11982 2013-01-29 Tom Tromey <tromey@redhat.com>
11983
11984 * value.c (deprecated_set_value_modifiable): Remove.
11985 * value.h (deprecated_set_value_modifiable): Remove.
11986
11987 2013-01-28 Doug Evans <dje@google.com>
11988
11989 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11990 to addresses from dwo files.
11991
11992 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
11993
11994 * valops.c (find_overload_match): Remove unused argument 'lax'.
11995 * value.h: Remove unused argument 'lax' from the declaration of
11996 find_overload_match.
11997 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11998 to find_overload_match.
11999 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12000 argument to find_overload_match.
12001
12002 2013-01-25 Tom Tromey <tromey@redhat.com>
12003
12004 * dwarf2read.c (processing_has_namespace_info): Remove.
12005 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12006 (process_die, read_func_scope, dwarf2_start_symtab)
12007 (new_symbol_full): Update.
12008
12009 2013-01-25 Tom Tromey <tromey@redhat.com>
12010
12011 * cp-namespace.c (cp_set_block_scope): Remove.
12012 * cp-support.h (cp_set_block_scope): Remove.
12013 * dbxread.c: Include block.h.
12014 (cp_set_block_scope): New function.
12015 (process_one_symbol): Update.
12016 * dwarf2read.c (read_func_scope): Use block_set_scope.
12017
12018 2013-01-25 Pedro Alves <palves@redhat.com>
12019
12020 * remote.c (add_current_inferior_and_thread): Tweak comment.
12021
12022 2013-01-25 Tom Tromey <tromey@redhat.com>
12023
12024 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12025 (cp_add_using_directive): Add 'copy_names' argument.
12026 * cp-support.h (cp_add_using_directive): Update.
12027 (struct using_direct) <import_src, import_dest, alias,
12028 declaration>: Now const.
12029 * dwarf2read.c (read_import_statement): Use obconcat.
12030 Don't copy names passed to cp_add_using_directive.
12031
12032 2013-01-25 Tom Tromey <tromey@redhat.com>
12033
12034 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12035
12036 2013-01-25 Pedro Alves <palves@redhat.com>
12037
12038 * remote.c (stop_reply_extract_thread): New.
12039 (add_current_inferior_and_thread): New parameter 'wait_status'.
12040 Handle it.
12041 (remote_start_remote): Pass wait status to
12042 add_current_inferior_and_thread.
12043 (extended_remote_run): Update comment.
12044 (extended_remote_create_inferior_1): Pass wait status to
12045 add_current_inferior_and_thread.
12046
12047 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12048 Ulrich Weigand <uweigand@de.ibm.com>
12049
12050 * valarith.c (value_vector_widen): New function for replicating a
12051 scalar into a vector.
12052 (value_binop): Use value_vector_widen to widen scalar to vector
12053 rather than casting, this better matches gcc C behaviour.
12054 * valops.c (value_casst): Update logic for casting between vector
12055 types, and for casting from scalar to vector, try to match gcc C
12056 behaviour.
12057 * value.h (value_vector_widen): Declare.
12058 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12059 function, handle special case for casting scalar to vector.
12060 (opencl_relop): Use opencl_value_cast.
12061 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12062 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12063 in order to use opencl_value_cast.
12064
12065 2013-01-25 Yao Qi <yao@codesourcery.com>
12066
12067 * event-loop.c: Include "queue.h".
12068 (gdb_event_p): New typedef.
12069 (DECLARE_QUEUE_P): Use.
12070 (DEFINE_QUEUE_P): Use.
12071 (async_queue_event): Remove.
12072 (gdb_event_xfree): New.
12073 (initialize_event_loop): New.
12074 (process_event): Use QUEUE macros.
12075 (event_queue): Remove.
12076 (gdb_wait_for_event): Caller update.
12077 (check_async_event_handlers): Likewise.
12078 (poll_timers): Likewise.
12079 * event-loop.h (initialize_event_loop): Declare.
12080 * event-loop.c (gdb_event_xfree): New.
12081 * top.c (gdb_init): Call initialize_event_loop.
12082
12083 2013-01-25 Yao Qi <yao@codesourcery.com>
12084
12085 * event-loop.c (async_queue_event): Remove one parameter
12086 'position'. Remove code handling 'position' == TAIL.
12087 (gdb_wait_for_event): Caller update.
12088 (check_async_event_handlers): Caller update.
12089 (poll_timers): Caller update.
12090 * event-loop.h (enum queue_position): Remove.
12091
12092 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12093
12094 * MAINTAINERS: Update my email.
12095
12096 2013-01-25 Yao Qi <yao@codesourcery.com>
12097
12098 * main.c (print_gdb_help): Remove "--epoch" from the help
12099 message.
12100
12101 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12102
12103 * symtab.c (skip_prologue_using_sal): Consider a file
12104 change the same as an increased line number
12105
12106 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12107
12108 * MAINTAINERS (Write After Approval): Add myself to the list.
12109
12110 2013-01-24 Tom Tromey <tromey@redhat.com>
12111
12112 * ada-lang.h (ada_decode_symbol): Make return type const.
12113 * ada-lang.c (ada_decode_symbol): Likewise.
12114
12115 2013-01-23 Doug Evans <dje@google.com>
12116
12117 * linespec.c (find_linespec_symbols): Make static.
12118
12119 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12120
12121 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12122 type on float conversion for complex type.
12123
12124 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12125
12126 Add a new class gdb.Architecture which exposes GDB's
12127 internal representation of architecture via GDB Python API.
12128 * Makefile.in: Add entries corresponding to the new file
12129 python/py-arch.c.
12130 * NEWS (Python Scripting): Add entries for the new class
12131 gdb.Architecture and the new method gdb.Frame.architecture.
12132 * python/py-arch.c: Implement gdb.Architecture class.
12133 * python/py-frame.c (frapy_arch): Implement the method
12134 gdb.Frame.architecture().
12135 (frame_object_methods): Add 'architecture' to the method table.
12136 * python/python-internal.h: Add declarations of new utility
12137 functions.
12138 * python/python.c (_initialize_python): Initialize
12139 gdb.Architecture class.
12140
12141 2013-01-23 Doug Evans <dje@google.com>
12142
12143 Work around binutils/15021.
12144 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12145 type_unit_group out of union s. All uses updated.
12146 (read_index_from_section): Watch for index version 8.
12147 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12148 an imported symtab.
12149 (write_psymtabs_to_index): Increment version number to 8.
12150
12151 2013-01-22 Pedro Alves <palves@redhat.com>
12152
12153 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12154 user-visible.
12155
12156 2013-01-22 Pedro Alves <palves@redhat.com>
12157
12158 * annotate.c (annotate_breakpoints_changed): Rename to ...
12159 (annotate_breakpoints_invalid): ... this. Make static.
12160 (breakpoint_changed): Adjust.
12161 (_initialize_annotate): Always install the observers. Install a
12162 "breakpoint_created" observer.
12163 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12164 * breakpoint.c (set_breakpoint_condition)
12165 (breakpoint_set_commands, do_map_commands_command)
12166 (init_raw_breakpoint, clear_command, set_ignore_count)
12167 (enable_breakpoint_disp): No longer call
12168 annotate_breakpoints_changed.
12169
12170 2013-01-22 Pedro Alves <palves@redhat.com>
12171
12172 * annotate.c: Include "inferior.h".
12173 (frames_invalid_emitted)
12174 (breakpoints_invalid_emitted): New globals.
12175 (async_background_execution_p): New function.
12176 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12177 emitting the annotation if it has already been emitted.
12178 (annotate_display_prompt): New function.
12179 * annotate.h (annotate_display_prompt): New declaration.
12180 * event-top.c: Include annotate.h.
12181 (display_gdb_prompt): Call annotate_display_prompt.
12182
12183 2013-01-22 Pedro Alves <palves@redhat.com>
12184
12185 * annotate.c (ignore_count_changed): Delete.
12186 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12187 (annotate_ignore_count_change): Delete.
12188 (annotate_stopped): Don't emit a delayed breakpoints-changed
12189 annotation.
12190 * annotate.h (annotate_ignore_count_change): Delete.
12191 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12192 annotate_ignore_count_change.
12193
12194 2013-01-22 Tom Tromey <tromey@redhat.com>
12195
12196 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12197 require_rvalue for a register location.
12198
12199 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12200
12201 * breakpoint.c (print_one_breakpoint_location): Add MI
12202 field 'thread-groups' when printing a breakpoint.
12203 (output_thread_groups): New function.
12204
12205 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12206
12207 * python/lib/gdb/commands/explore.py
12208 (CompoundExplorer.explore_expr): Correct the name of a method
12209 being invoked.
12210 (ExploreTypeCommand.invoke): Add a missing 'return'.
12211
12212 2013-01-21 Tom Tromey <tromey@redhat.com>
12213
12214 * gdb_obstack.h (obconcat): Move declaration here, from...
12215 * symfile.h (obconcat): ... here.
12216 * gdb_obstack.c: New file.
12217 (obconcat): Move from...
12218 * symfile.c (obconcat): ... here.
12219 * Makefile.in (SFILES): Add gdb_obstack.c.
12220 (COMMON_OBS): Add gdb_obstack.o.
12221
12222 2013-01-21 Tom Tromey <tromey@redhat.com>
12223
12224 * symfile.h (obsavestring): Don't declare.
12225 * symfile.c (obsavestring): Remove.
12226 * ada-exp.y: Use obstack_copy0, not obsavestring.
12227 * ada-lang.c: Use obstack_copy0, not obsavestring.
12228 * coffread.c: Use obstack_copy0, not obsavestring.
12229 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12230 * dbxread.c: Use obstack_copy0, not obsavestring.
12231 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12232 * jit.c: Use obstack_copy0, not obsavestring.
12233 * mdebugread.c: Use obstack_copy0, not obsavestring.
12234 * psymtab.c: Use obstack_copy0, not obsavestring.
12235 * stabsread.c: Use obstack_copy0, not obsavestring.
12236 * xcoffread.c: Use obstack_copy0, not obsavestring.
12237
12238 2013-01-21 Tom Tromey <tromey@redhat.com>
12239
12240 * dwarf2read.c (fixup_go_packaging): Save package name
12241 on objfile obstack.
12242 * gdbtypes.c (init_type): Don't copy name.
12243
12244 2013-01-21 Tom Tromey <tromey@redhat.com>
12245
12246 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12247 const.
12248 (struct attribute) <u.str>: Now const.
12249 (struct fnfieldlist) <name>: Now const.
12250 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12251 (partial_die_parent_scope): Make return type const.
12252 (partial_die_full_name, add_partial_symbol): Update.
12253 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12254 'name' const.
12255 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12256 (read_file_scope, read_func_scope, dwarf2_add_field)
12257 (dwarf2_add_member_fn, read_structure_type)
12258 (process_enumeration_scope, read_array_type, read_module_type)
12259 (read_base_type, read_subrange_type): Update.
12260 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12261 (new_symbol_full, guess_full_die_structure_name): Update.
12262 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12263 (dwarf2_name): Return const type.
12264 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12265 const.
12266
12267 2013-01-21 Tom Tromey <tromey@redhat.com>
12268
12269 * gdbtypes.c (init_type): Make 'name' const.
12270 * gdbtypes.h (init_type): Update.
12271
12272 2013-01-21 Tom Tromey <tromey@redhat.com>
12273
12274 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12275 (start_symtab): Make 'name' and 'dirname' const. Use
12276 set_last_source_file.
12277 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12278 (last_source_file): Define. Now static.
12279 (set_last_source_file, get_last_source_file): New functions.
12280 * buildsym.h (last_source_file): Don't declare.
12281 (start_symtab): Update.
12282 (set_last_source_file, get_last_source_file): Declare.
12283 * coffread.c (complete_symtab): Use set_last_source_file.
12284 (coff_end_symtab): Likewise.
12285 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12286 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12287 set_last_source_file.
12288 (process_one_symbol): Use get_last_source_file.
12289 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12290 (psymtab_to_symtab_1): Use get_last_source_file.
12291 * xcoffread.c (process_linenos): Use get_last_source_file.
12292 (complete_symtab): Use set_last_source_file.
12293 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12294 (scan_xcoff_symtab): Use set_last_source_file.
12295
12296 2013-01-21 Tom Tromey <tromey@redhat.com>
12297
12298 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12299 (symbol_set_names): Remove casts. Handle field const-ness.
12300
12301 2013-01-21 Tom Tromey <tromey@redhat.com>
12302
12303 * dwarf2read.c (new_symbol_full): Remove cast.
12304 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12305 * symtab.h (symbol_set_demangled_name): Update.
12306
12307 2013-01-21 Tom Tromey <tromey@redhat.com>
12308
12309 * main.c (captured_main): Call bfd_init.
12310
12311 2013-01-21 Tom Tromey <tromey@redhat.com>
12312
12313 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12314 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12315 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12316 * NEWS: Update.
12317
12318 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12319
12320 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12321
12322 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12323
12324 Fix gdb.fortran/common-block.exp crash in PIE mode.
12325 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12326 LOC_COMMON_BLOCK.
12327 * f-valprint.c (info_common_command_for_block): Expect
12328 LOC_COMMON_BLOCK in gdb_assert.
12329 * symtab.h (struct general_symbol_info): Update comment for the
12330 common_block member.
12331 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12332 (enum address_class): New member LOC_COMMON_BLOCK.
12333
12334 2013-01-18 David Blaikie <dblaikie@gmail.com>
12335
12336 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12337
12338 2013-01-18 Tom Tromey <tromey@redhat.com>
12339
12340 PR c++/14999:
12341 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12342 Call require_rvalue.
12343
12344 2013-01-18 Yao Qi <yao@codesourcery.com>
12345
12346 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12347 (dbx_read_symtab): New declaration.
12348 (dbx_psymtab_to_symtab): Delete.
12349 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12350 Rename parameter PST to SELF. Exchanged two parameters.
12351 (start_psymtab): Caller update.
12352 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12353 (dwarf2_read_symtab): New declaration.
12354 (dwarf2_psymtab_to_symtab): Delete.
12355 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12356 Rename parameter PST to SELF. Exchanged two parameters.
12357 (create_partial_symtab): Caller update.
12358 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12359 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12360 Rename parameter PST to SELF. Exchanged two parameters.
12361 (parse_partial_symbols, new_psymtab): Caller update.
12362 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12363 two parameters.
12364 * psymtab.c (psymtab_to_symtab): Caller update.
12365 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12366 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12367 Rename parameter PST to SELF. Exchanged two parameters.
12368 (xcoff_start_psymtab): Caller update.
12369
12370 2013-01-18 Yao Qi <yao@codesourcery.com>
12371
12372 * infrun.c (proceed): Rename local variable 'oneproc' to
12373 'force_step'.
12374
12375 2013-01-17 Doug Evans <dje@google.com>
12376
12377 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12378 (dw2_build_type_unit_groups): Delete. All uses updated.
12379
12380 * symtab.h (struct symbol_search): Add comment.
12381
12382 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12383
12384 * symtab.c (compare_filenames_for_search): New comment for
12385 HAS_DRIVE_SPEC.
12386
12387 2013-01-17 Tom Tromey <tromey@redhat.com>
12388
12389 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12390
12391 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12392
12393 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12394 initialize it by existing make_cleanup. Call new do_cleanups.
12395
12396 2013-01-17 Tom Tromey <tromey@redhat.com>
12397
12398 * cp-abi.c (cp_abi_completer): New function.
12399 (_initialize_cp_abi): Set completer for "set cp-abi".
12400
12401 2013-01-17 Tom Tromey <tromey@redhat.com>
12402
12403 * mem-break.c: Remove obsolete comment.
12404 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12405
12406 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12407
12408 * jit.c (jit_reader_load_command): Interpret the jit reader name
12409 as an absolute path if it begins with a forward slash.
12410
12411 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12412
12413 PR gdb/14550
12414
12415 * jit.c (finalize_symtab): Ensure that only the global block has a
12416 NULL superblock.
12417
12418 2013-01-17 Pedro Alves <palves@redhat.com>
12419
12420 * acinclude.m4: Include ../config/plugins.m4,
12421 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12422 * Makefile.in (aclocal_m4_deps): Update.
12423 * aclocal.m4: Renegerate.
12424
12425 2013-01-16 Doug Evans <dje@google.com>
12426
12427 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12428
12429 2013-01-16 Pedro Alves <palves@redhat.com>
12430 Tom Tromey <tromey@redhat.com>
12431
12432 PR cli/7221:
12433 * NEWS: Add "catch signal".
12434 * breakpoint.c (base_breakpoint_ops): No longer static.
12435 (bpstat_explains_signal): New function.
12436 (init_catchpoint): No longer static.
12437 (base_breakpoint_explains_signal): New function.
12438 (base_breakpoint_ops): Initialize new field.
12439 * breakpoint.h (enum bpstat_signal_value): New.
12440 (struct breakpoint_ops) <explains_signal>: New field.
12441 (bpstat_explains_signal): Remove macro, declare as function.
12442 (base_breakpoint_ops, init_catchpoint): Declare.
12443 * break-catch-sig.c: New file.
12444 * inferior.h (signal_catch_update): Declare.
12445 * infrun.c (signal_catch): New global.
12446 (handle_syscall_event): Update for change to
12447 bpstat_explains_signal.
12448 (handle_inferior_event): Likewise. Always handle random signals
12449 via bpstats.
12450 (signal_cache_update): Check signal_catch.
12451 (signal_catch_update): New function.
12452 (_initialize_infrun): Initialize signal_catch.
12453 * Makefile.in (SFILES): Add break-catch-sig.c.
12454 (COMMON_OBS): Add break-catch-sig.o.
12455
12456 2013-01-16 Tom Tromey <tromey@redhat.com>
12457
12458 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12459 (print_one_catch_solib, print_one_catch_syscall)
12460 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12461 "catch-type".
12462
12463 2013-01-16 Yao Qi <yao@codesourcery.com>
12464
12465 * printcmd.c (current_display_number): Make it static.
12466
12467 2013-01-16 Yao Qi <yao@codesourcery.com>
12468
12469 * infcmd.c (step_once): Don't check '!single_inst' as it was
12470 checked before.
12471
12472 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12473
12474 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12475
12476 2013-01-14 Tom Tromey <tromey@redhat.com>
12477
12478 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12479 set command.
12480 * command.h (add_setshow_string_noescape_cmd): Update.
12481 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12482 (complete_set_gnutarget): New function.
12483 (_initialize_core): Set the "set gnutarget" completer.
12484
12485 2013-01-14 Tom Tromey <tromey@redhat.com>
12486
12487 PR symtab/14442:
12488 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12489 (c_type_print_modifier): Likewise.
12490 * dwarf2read.c (read_tag_restrict_type): New function.
12491 (read_type_die_1): Handle DW_TAG_restrict_type.
12492 * gdbtypes.c (make_restrict_type): New function.
12493 (recursive_dump_type): Handle TYPE_RESTRICT.
12494 * gdbtypes.h (enum type_flag_values): Renumber.
12495 (enum type_instance_flag_value): Add
12496 TYPE_INSTANCE_FLAG_RESTRICT.
12497 (TYPE_RESTRICT): New macro.
12498 (make_restrict_type): Declare.
12499
12500 2013-01-14 Tom Tromey <tromey@redhat.com>
12501
12502 PR symtab/14931:
12503 * psymtab.c (struct psymtab_state): New.
12504 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12505 functions.
12506 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12507 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12508
12509 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12510 Pedro Alves <palves@redhat.com>
12511
12512 PR remote/14786
12513
12514 * remote.c (remote_threads_info): Make a copy of the reply from
12515 qfThreadInfo and use that instead of rs->buf.
12516
12517 2013-01-14 Yao Qi <yao@codesourcery.com>
12518
12519 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12520 (dbx_psymtab_to_symtab): Likewise.
12521 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12522 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12524
12525 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12526
12527 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12528 make_cleanup_restore_current_language. Call set_language. Move
12529 OLD_CHAIN and INNER_CHAIN cleanups.
12530 * utils.c (do_restore_current_language)
12531 (make_cleanup_restore_current_language): New functions.
12532 * utils.h (make_cleanup_restore_current_language): New declaration.
12533
12534 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12535
12536 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12537 non-existing files.
12538
12539 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12540 non-existing files if FILENAME is already absolute.
12541
12542 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12543
12544 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12545 fputs_filtered. Append trailing newline.
12546
12547 2013-01-11 Yao Qi <yao@codesourcery.com>
12548 Stan Shebs <stan@codesourcery.com>
12549
12550 * psymtab.c (init_psymbol_list): Clarify the comment.
12551
12552 2013-01-11 Yao Qi <yao@codesourcery.com>
12553
12554 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12555 (update_dprintf_command_list): Assert that 'printf_line' is
12556 non-null. Remove condition check.
12557
12558 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12559
12560 Code cleanup.
12561 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12562 type const char *.
12563 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12564 const char *.
12565 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12566
12567 2013-01-09 Anthony Green <green@moxielogic.com>
12568
12569 * cp-abi.c (cplus_print_vtable): Don't return value from void
12570 function.
12571 * ada-lang.c (re_set_catch_assert): Ditto.
12572
12573 2013-01-09 Doug Evans <dje@google.com>
12574
12575 * symfile.h (quick_symbol_functions): Delete member
12576 pre_expand_symtabs_matching. All uses removed.
12577 * dwarf2read.c (dw2_lookup_symbol): Implement.
12578 (dw2_do_expand_symtabs_matching): Delete.
12579 (dw2_pre_expand_symtabs_matching): Delete.
12580 (struct dw2_symtab_iterator): New type.
12581 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12582 (dw2_expand_symtabs_for_function): Rewrite.
12583 (dwarf2_gdb_index_functions): Update.
12584 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12585 (psym_functions): Update.
12586
12587 2013-01-09 Tom Tromey <tromey@redhat.com>
12588
12589 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12590 * configure: Rebuild.
12591 * configure.ac: Add somread.o to the build if BFD has SOM
12592 support.
12593 * somread.c: Include som/aout.h, not syms.h.
12594 (som_symtab_read): Use som_external_symbol_dictionary_record.
12595 Unpack records manually.
12596 (_initialize_somread): Declare.
12597
12598 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12599
12600 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12601 Cast return_address to 64bits.
12602
12603 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12604
12605 * printcmd.c: Remove define of function output_command.
12606 * tracepoint.c: Remove extern of function output_command.
12607 * valprint.h: (output_command): New extern.
12608
12609 2013-01-07 Tom Tromey <tromey@redhat.com>
12610
12611 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12612 Remove.
12613 (objc_language_defn): Use c_printchar, c_printstr,
12614 c_emit_char.
12615
12616 2013-01-07 Tom Tromey <tromey@redhat.com>
12617
12618 PR cli/7719:
12619 * NEWS: Update.
12620 * ada-valprint.c (printstr, print_field_values): Remove
12621 "inspect_it" code.
12622 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12623 code.
12624 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12625 code.
12626 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12627 * main.c (captured_main): Remove "epoch" argument.
12628 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12629 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12630 * p-valprint.c (pascal_object_print_value_fields): Remove
12631 "inspect_it" code.
12632 * printcmd.c (print_command_1): Remove 'inspect' argument.
12633 (print_command, call_command): Update.
12634 (inspect_command): Remove.
12635 (_initialize_printcmd): Make "inspect" an alias for "print".
12636 * top.c (epoch_interface): Remove.
12637 * top.h (epoch_interface): Remove.
12638 * valprint.c (user_print_options): Update.
12639 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12640 * valprint.h (struct value_print_options) <inspect_it>: Remove
12641 field.
12642
12643 2013-01-04 Tom Tromey <tromey@redhat.com>
12644
12645 * valprint.h (read_string): Add 'extern'.
12646
12647 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12648
12649 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12650 used to decide whether to define darwin_read_dyld_info or not.
12651
12652 2013-01-03 Pierre Muller <muller@sourceware.org>
12653
12654 * main.c (relocate_gdb_directory): Avoid calling stat function
12655 if DIR is empty.
12656
12657 2013-01-03 Yao Qi <yao@codesourcery.com>
12658
12659 * psymtab.c (fixup_psymbol_section): Update declaration.
12660 (fixup_psymbol_section): Remove code returning value.
12661
12662 2013-01-03 Yao Qi <yao@codesourcery.com>
12663
12664 * symtab.h: Remove some out of date comments.
12665 (enum exception_event_kind): Move it ...
12666 * breakpoint.c: ... here.
12667
12668 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12669
12670 PR gdb/14405
12671 * darwin-nat.c (darwin_read_dyld_info): Only build if
12672 TASK_DYLD_INFO_COUNT is defined.
12673 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12674 TASK_DYLD_INFO_COUNT is defined.
12675
12676 2013-01-02 Tom Tromey <tromey@redhat.com>
12677
12678 * symfile.h (struct ecoff_debug_hack): Remove.
12679 * objfiles.c: Don't include mdebugread.h.
12680
12681 2013-01-02 Tom Tromey <tromey@redhat.com>
12682
12683 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12684 * configure.ac: Check for Mach-O support in BFD. Update
12685 CONFIG_OBS.
12686 * configure: Rebuild.
12687
12688 2013-01-02 Tom Tromey <tromey@redhat.com>
12689
12690 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12691 * configure.ac: Use GDB_AC_CHECK_BFD.
12692 * configure: Rebuild.
12693
12694 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12695
12696 * MAINTAINERS: Update my email.
12697
12698 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12699
12700 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12701
12702 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12703
12704 * rs6000-nat.c (bss_data_overlap): New function.
12705 (vmap_symtab): Use it to adjust the .bss section's offset.
12706
12707 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12708
12709 Update year range in copyright notice of all files.
12710
12711 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12712
12713 * top.c (print_gdb_version): Update copyright year.
12714
12715 For older changes see ChangeLog-2012.
12716 \f
12717 Local Variables:
12718 mode: change-log
12719 left-margin: 8
12720 fill-column: 74
12721 version-control: never
12722 coding: utf-8
12723 End:
This page took 0.292937 seconds and 5 git commands to generate.