28e06f9b8889a71702b14a274af377e8c74218a0
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-11-29 Doug Evans <xdje42@gmail.com>
2
3 Whitespace cleanup.
4 * python/py-breakpoint.c: Remove trailing whitespace.
5 * python/py-cmd.c: Ditto.
6 * python/py-evts.c: Ditto.
7 * python/py-finishbreakpoint.c: Ditto.
8 * python/py-frame.c: Ditto.
9 * python/py-function.c: Ditto.
10 * python/py-inferior.c: Ditto.
11 * python/py-infthread.c: Ditto.
12 * python/py-param.c: Ditto.
13 * python/py-prettyprint.c: Ditto.
14 * python/py-symbol.c: Ditto.
15 * python/py-type.c: Ditto.
16 * python/py-utils.c: Ditto.
17 * python/py-value.c: Ditto.
18 * python/python-internal.h: Ditto.
19 * python/python.c: Ditto.
20
21 2013-11-29 Pedro Alves <palves@redhat.com>
22
23 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
24
25 2013-11-29 Pedro Alves <palves@redhat.com>
26
27 * breakpoint.c (build_target_condition_list): Release previous
28 conditions.
29 (build_target_command_list): Release previous commands.
30 (bp_location_dtor): Release target conditions and commands.
31 * remote.c (remote_add_target_side_condition): Don't release
32 conditions.
33 (remote_add_target_side_commands): Don't release commands.
34
35 2013-11-29 Yao Qi <yao@codesourcery.com>
36 Pedro Alves <palves@redhat.com>
37
38 * dcache.c (dcache_read_line): Use current_target.beneath
39 instead of &current_target.
40 * target.c (memory_xfer_partial_1): Factor code out to ...
41 (raw_memory_xfer_partial): ... it. New function.
42 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
43 is TARGET_OBJECT_RAW_MEMORY.
44
45 2013-11-28 Doug Evans <xdje42@gmail.com>
46
47 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
48 breakpoint_object. All uses updated.
49 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
50 breakpoint_object. All uses updated.
51 * python.c (*): All uses of breakpoint_object updated.
52 * python.h (*): All uses of breakpoint_object updated.
53 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
54 * python/py-finishbreakpoint.c (*): Ditto.
55
56 2013-11-28 Doug Evans <xdje42@gmail.com>
57
58 * configure.ac: Add comments delineating libpython and libmcheck.
59 * configure: Regenerate.
60
61 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
62 Pedro Alves <palves@redhat.com>
63
64 * valprint.c (value_check_printable): If the value is entirely
65 unavailable, print a single "<unavailable>" instead of printing
66 all subfields.
67
68 2013-11-28 Pedro Alves <palves@redhat.com>
69
70 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
71 Add "set debug frame" output.
72 (frame_stop_reason_symbol_string): New function.
73
74 2013-11-28 Pedro Alves <palves@redhat.com>
75
76 * frame-unwind.c (default_frame_unwind_stop_reason): Return
77 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
78 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
79
80 2013-11-28 Pedro Alves <palves@redhat.com>
81
82 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
83 set the unwind stop reason to UNWIND_OUTERMOST, not
84 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
85
86 2013-11-28 Pedro Alves <palves@redhat.com>
87
88 * frame.c (frame_unwind_register): Say the register was "not
89 saved" instead of "optimized out".
90
91 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
92
93 PR 16152
94 * configure: Rebuild.
95 * configure.ac: Tighten cygwin detection check.
96
97 2013-11-27 Pedro Alves <palves@redhat.com>
98
99 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
100 register in the previous frame's arch.
101
102 2013-11-27 Pedro Alves <palves@redhat.com>
103
104 * frame-unwind.c (frame_unwind_got_optimized): Return
105 an lval_register value instead of a not_lval value.
106
107 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
108
109 * frame.c: Include "valprint.h".
110 (frame_unwind_register_value): Use value_optimized_out.
111 * value.c (value_fetch_lazy): Likewise.
112
113 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
114
115 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
116
117 2013-11-26 Tom Tromey <tromey@redhat.com>
118
119 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
120 2013-11-22.
121
122 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
123
124 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
125 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
126 (HAS_MPX): New macro.
127 (HAS_AVX): New macro.
128 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
129
130 2013-11-25 Keith Seitz <keiths@redhat.com>
131
132 PR c++/14819
133 * c-exp.y (classify_inner_name): If no matching symbol was
134 found, try looking up the token as a base class.
135 Likewise if a constructor was found.
136 * cp-namespace.c (find_type_baseclass_by_name): New function.
137 * cp-support.h (find_type_baseclass_by_name): Declare.
138 * valops.c (value_struct_elt_for_reference): If we get
139 a non-static field, try to get a value based on the
140 current instance, if any.
141
142 2013-11-24 Yao Qi <yao@codesourcery.com>
143
144 * disasm.c (dis_asm_read_memory): Call target_read_code
145 instead of target_read_memory.
146
147 2013-11-24 Yao Qi <yao@codesourcery.com>
148
149 * NEWS: Add note on new "set code-cache" option.
150 * target-dcache.c (code_cache_enabled_1): New variable.
151 (code_cache_enabled): New variable.
152 (show_code_cache, set_code_cache): New function.
153 (code_cache_enabled_p): New function.
154 (_initialize_target_dcache): Register command.
155 * target-dcache.h (code_cache_enabled_p): Declare.
156 * target.c (memory_xfer_partial_1):Handle
157 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
158 (target_read_code): New function.
159 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
160 New.
161 (target_read_code): Declare.
162
163 2013-11-24 Yao Qi <yao@codesourcery.com>
164
165 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
166 (stack_cache_enabled_1): ... this. New variable.
167 (stack_cache_enabled_p): Rename to ...
168 (stack_cache_enabled): ... this. New variable.
169 (set_stack_cache_enabled_p): Rename to ...
170 (set_stack_cache): ... this. Update caller.
171 (show_stack_cache_enabled_p): Rename to ...
172 (show_stack_cache): ... this. Update caller.
173 (stack_cache_enabled): Rename to ...
174 (stack_cache_enabled_p): ... this. Update caller.
175 (_initialize_target_dcache): Replace "data cache" with
176 "target memory cache".
177 * target-dcache.h (stack_cache_enabled): Remove declaration.
178 (stack_cache_enabled_p): Add declaration.
179
180 2013-11-23 Doug Evans <xdje42@gmail.com>
181
182 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
183 superfluous.
184
185 2013-11-23 Doug Evans <xdje42@gmail.com>
186
187 * python/py-frame.c (frapy_block): Fix error message text.
188
189 2013-11-23 Doug Evans <xdje42@gmail.com>
190
191 * cli/cli-script.c (multi_line_command_p): New function.
192 (recurse_read_control_structure, read_command_lines_1): Call it.
193 (execute_control_command): Consistently have a blank line between
194 each case.
195
196 2013-11-22 Sterling Augustine <saugustine@google.com>
197
198 PR gdb/16196:
199 * valprint.c (read_string): Set new variable fetchlen based on
200 fetchlimit and size. Use it in call to partial_memory_read.
201 Update comment.
202
203 2013-11-22 Tom Tromey <tromey@redhat.com>
204
205 PR backtrace/16155:
206 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
207 the return address column is unspecified.
208
209 2013-11-22 Tom Tromey <tromey@redhat.com>
210 Pedro Alves <palves@redhat.com>
211
212 PR backtrace/16155
213 * value.c (value_fetch_lazy): Internal error if
214 get_frame_register_value returns the same register.
215
216 2013-11-22 Pedro Alves <palves@redhat.com>
217 Tom Tromey <tromey@redhat.com>
218
219 * frame.c (frame_stash_add): Now returns whether a frame with the
220 same ID was already known.
221 (compute_frame_id): New function, factored out from get_frame_id.
222 (get_frame_id): No longer lazilly compute the frame id here.
223 (get_prev_frame_if_no_cycle): New function. Detects wider stack
224 cycles.
225 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
226 and checking for stack cycles here.
227
228 2013-11-22 Pedro Alves <palves@redhat.com>
229
230 PR 16155
231 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
232 this frame and the new previous frame, not between this frame and
233 the next frame.
234
235 2013-11-22 Pedro Alves <palves@redhat.com>
236
237 PR 16155
238 * dwarf2-frame.c (struct dwarf2_frame_cache)
239 <checked_tailcall_bottom, entry_cfa_sp_offset,
240 entry_cfa_sp_offset_p>: New fields.
241 (dwarf2_frame_cache): Adjust to use the new cache fields instead
242 of locals. Don't call dwarf2_tailcall_sniffer_first here.
243 (dwarf2_frame_prev_register): Call it here, but only once.
244
245 2013-11-21 Doug Evans <xdje42@gmail.com>
246
247 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
248 (type_equality_entry): Move here from python/py-type.c.
249 (type_equality_entry_d): Ditto.
250 (compare_maybe_null_strings, check_types_equal): Ditto.
251 (check_types_worklist, types_deeply_equal): Ditto.
252 * gdbtypes.h (types_deeply_equal): Declare.
253 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
254 (typy_richcompare): Update.
255
256 2013-11-20 Joel Brobecker <brobecker@adacore.com>
257
258 * python/py-value.c (is_intlike): Delete.
259 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
260 by use of is_integral_type.
261 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
262 by use of is_integral_type and check for TYPE_CODE_PTR.
263
264 2013-11-20 Tom Tromey <tromey@redhat.com>
265
266 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
267 strerror module.
268 * gnulib/aclocal.m4: Update.
269 * gnulib/config.in: Update.
270 * gnulib/configure: Update.
271 * gnulib/import/Makefile.am: Update.
272 * gnulib/import/Makefile.in: Update.
273 * gnulib/import/errno.in.h: Remove.
274 * gnulib/import/intprops.h: Remove.
275 * gnulib/import/m4/errno_h.m4: Remove.
276 * gnulib/import/m4/gnulib-cache.m4: Update.
277 * gnulib/import/m4/gnulib-comp.m4: Update.
278 * gnulib/import/m4/strerror.m4: Remove.
279 * gnulib/import/m4/sys_socket_h.m4: Remove.
280 * gnulib/import/strerror-override.c: Remove.
281 * gnulib/import/strerror-override.h: Remove.
282 * gnulib/import/strerror.c: Remove.
283 * gnulib/update-gnulib.sh: Update.
284
285 2013-11-20 Yao Qi <yao@codesourcery.com>
286
287 * target-dcache.c (target_dcache_get_or_init): Call
288 set_address_space_data if 'dcache' is NULL.
289
290 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
291
292 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
293
294 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
295
296 * python/lib/gdb/command/bound_register.py: New file.
297 * data-directory/Makefile.in: Copy bond_register.py to the right path
298 to be initialized at gdb startup.
299
300 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
301
302 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
303 Add MPX registers.
304 (amd64_linux_read_description): Add initialization for MPX and
305 AVX independently.
306 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
307 (amd64_linux_gregset_reg_offset): Add MPX registers.
308 (amd64_linux_core_read_description): Add initialization for MPX
309 registers.
310 (_initialize_amd64_linux_tdep): Initialize MPX targets.
311 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
312 register on the list.
313 (tdesc_amd64_mpx_linux) Add new target for MPX.
314 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
315 (amd64_mpx_names): MPX register names.
316 (amd64_init_abi): Add MPX register while initializing the ABI.
317 (_initialize_amd64_tdep): Initialize MPX targets.
318 * amd64-tdep.h (amd64_regnum): Add MPX registers.
319 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
320
321 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
322
323 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
324 registers on the range of registers to be read from
325 xsave buffer.
326 (i386_linux_read_description): Add case for MPX.
327 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
328 (i386_linux_gregset_reg_offset): Add MPX registers.
329 (i386_linux_core_read_description): Initialize also MPX.
330 (_initialize_i386_linux_tdep): Add mpx initialization.
331 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
332 mpx_register_names.
333 (i386_regnum): Add MPX registers.
334 (I386_MPX_NUM_REGS): New macro.
335 (i386_bnd_regnum_p): New function.
336 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
337 number of registers to be the number of BNDSTATUS.
338 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
339 * i386-tdep.c: Include features/i386/i386-mpx.c.
340 (i386_mpx_names): Add MPX register names array.
341 (i386_bnd_names): Add bnd pseudo register names array.
342 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
343 registers.
344 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
345 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
346 registers.
347 (i386_bnd_type): New function.
348 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
349 register types.
350 (i386_pseudo_register_read_into_value): Add bnd case.
351 (i386_pseudo_register_write): Add bnd pseudo registers.
352 (i386_register_reggroup_p): Add MPX register to the group all.
353 (i386_validate_tdesc_p): Add MPX to the target description
354 validation.
355 (i386_pseudo_register_name): Add bnd pseudo registers.
356 (i386_gdbarch_init): Add MPX for architecture initialization.
357 (_initia_initialize_i386_tdep): Add mpx initialization.
358 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
359 XSAVE buffer.
360 (XSAVE_MPX_ADDR): New macro.
361 (i387_supply_xsave): Add MPX case.
362 (i387_collect_xsave): Add MPX case.
363 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
364 (I387_BNDCFGU_REGNUM): New macro.
365 (I387_NUM_MPX_REGS): New macro.
366 (I387_NUM_BND_REGS): New macro.
367 (I387_NUM_MPX_CTRL_REGS): New macro.
368 (I387_MPXEND_REGNUM): New macro.
369 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
370 (I386_XSTATE_BNDCFG): Likewise.
371 (I386_XSTATE_MPX_MASK): Likewise.
372 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
373 (I386_XSTATE_BNDREGS_SIZE): New macro.
374 (I386_XSTATE_BNDCFG_SIZE): Likewise.
375 (I386_XSTATE_SIZE): Adapt for MPX.
376 (I386_XSTATE_MAX_SIZE): Likewise.
377
378 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
379
380 * features/i386/Makefile: Adapts for using MPX registers.
381 * features/i386/32bit-mpx.xml: New file.
382 * features/i386/64bit-mpx.xml: Likewise.
383 * features/i386/amd64-mpx-linux.c: Likewise.
384 * features/i386/amd64-mpx-linux.xml: Likewise.
385 * features/i386/amd64-mpx.c: Likewise.
386 * features/i386/amd64-mpx.xml: Likewise.
387 * features/i386/i386-mpx-linux.c: Likewise.
388 * features/i386/i386-mpx-linux.xml: Likewise.
389 * features/i386/i386-mpx.c: Likewise.
390 * features/i386/i386-mpx.xml: Likewise.
391 * regformats/i386/amd64-mpx-linux.dat: New file.
392 * regformats/i386/amd64-mpx.dat: Likewise.
393 * regformats/i386/i386-mpx-linux.dat: Likewise.
394 * regformats/i386/i386-mpx.dat: Likewise.
395
396 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
397
398 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
399 Modified logic of creating a bitfield to be in sync with
400 tdesc_gdb_type.
401
402 2013-11-20 Will Newton <will.newton@linaro.org>
403
404 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
405 error message.
406
407 2013-11-20 Yao Qi <yao@codesourcery.com>
408
409 * progspace.h (struct address_space_data): Declare.
410 * target-dcache.c: Include "progspace.h".
411 (target_dache): Remove.
412 (target_dcache_aspace_key): New.
413 (target_dcache_cleanup): New function.
414 (target_dcache_init_p): Get data through
415 target_dcache_aspace_key.
416 (target_dcache_invalidate): Likewise.
417 (target_dcache_get): Likewise.
418 (target_dcache_get_or_init): Likewise.
419 (_initialize_target_dcache): Initialize
420 target_dcache_aspace_key.
421
422 2013-11-20 Yao Qi <yao@codesourcery.com>
423
424 * progspace.c (struct address_space): Update comments.
425 <REGISTRY_FIELDS>: New fields.
426 DEFINE_REGISTRY for address_space.
427 (new_address_space): Call address_space_alloc_data.
428 (free_address_space): Call address_space_free_data.
429 * progspace.h: Use DECLARE_REGISTRY.
430
431 2013-11-20 Yao Qi <yao@codesourcery.com>
432
433 * Makefile.in (SFILES):Add target-dcache.c.
434 (HFILES_NO_SRCDIR): Add target-dcache.h.
435 (COMMON_OBS): Add target-dcache.o.
436 * dcache.c: Remove inclusion to "target.h". Include
437 "target-dcache.h".
438 * memattr.c: Include "target-dcache.h".
439 * top.c: Likewise.
440 * tracepoint.c: Likewise.
441 * target.c: (stack_cache_enabled_p_1): Move to
442 target-dcache.c.
443 (stack_cache_enabled_p): Likewise.
444 (set_stack_cache_enabled_p): Likewise.
445 (show_stack_cache_enabled_p): Likewise.
446 (target_dcache, target_dcache_init_p): Likewise.
447 (target_dcache_invalidate): Likewise.
448 (target_dcache_get, target_dcache_get_or_init): Likewise.
449 (memory_xfer_partial_1): Call function stack_cache_enabled.
450 (initialize_target): Move code to target-dcache.c.
451 * target.h (target_dcache_invalidate): Move to
452 target-dcache.h.
453 (target_dcache_get): Likewise.
454 * target-dcache.c: New.
455 * target-dcache.h: New.
456
457 2013-11-20 Yao Qi <yao@codesourcery.com>
458
459 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
460 it is initialized.
461
462 2013-11-20 Yao Qi <yao@codesourcery.com>
463
464 * dcache.c (last_cache): Remove.
465 (dcache_free, dcache_init): Update.
466 (dcache_update):
467 (dcache_print_line): Add parameter 'dcache'. Replace
468 'target_dcache' with 'dcache'.
469 (dcache_info): Move code to dcache_info_1. Call
470 'dcache_info_1'.
471 (dcache_info_1): New function.
472 (set_dcache_size): Call target_dcache_invalidate.
473 (set_dcache_line_size): Call target_dcache_invalidate.
474 * target.c (target_dcache_init_p): New function.
475 (target_dcache_invalidate): Check target_dcache_init_p first.
476 (target_dcache_get, target_dcache_get_or_init): New function.
477 (memory_xfer_partial_1): Adjust.
478 (initialize_target): Don't initialize 'target_dcache'.
479 * target.h (struct dcache_struct): Declare.
480 (target_dcache_get): Declare.
481
482 2013-11-19 Yao Qi <yao@codesourcery.com>
483
484 * varobj.c (varobj_get_type): Fix typo.
485
486 2013-11-19 Joel Brobecker <brobecker@adacore.com>
487
488 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
489
490 2013-11-19 Joel Brobecker <brobecker@adacore.com>
491
492 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
493 "stat.h".
494
495 2013-11-18 Tom Tromey <tromey@redhat.com>
496
497 * common/gdb_stat.h: Remove.
498 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
499 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
500 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
501 * corefile.c: Use sys/stat.h, not gdb_stat.h.
502 * ctf.c: Use sys/stat.h, not gdb_stat.h.
503 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
504 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
505 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
506 * exec.c: Use sys/stat.h, not gdb_stat.h.
507 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
508 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
509 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
510 * jit.c: Use sys/stat.h, not gdb_stat.h.
511 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
512 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
513 * main.c: Use sys/stat.h, not gdb_stat.h.
514 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
515 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
516 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
517 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
518 * procfs.c: Use sys/stat.h, not gdb_stat.h.
519 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
520 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
521 * remote.c: Use sys/stat.h, not gdb_stat.h.
522 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
523 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
524 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
525 * source.c: Use sys/stat.h, not gdb_stat.h.
526 * symfile.c: Use sys/stat.h, not gdb_stat.h.
527 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
528 * symtab.c: Use sys/stat.h, not gdb_stat.h.
529 * top.c: Use sys/stat.h, not gdb_stat.h.
530 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
531
532 2013-11-18 Tom Tromey <tromey@redhat.com>
533
534 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
535 sys_stat.
536 * gnulib/aclocal.m4: Update.
537 * gnulib/config.in: Update.
538 * gnulib/configure: Update.
539 * gnulib/import/Makefile.am: Update.
540 * gnulib/import/Makefile.in: Update.
541 * gnulib/import/m4/gnulib-cache.m4: Update.
542 * gnulib/import/m4/gnulib-comp.m4: Update.
543 * gnulib/import/m4/sys_stat_h.m4: New.
544 * gnulib/import/m4/time_h.m4: New.
545 * gnulib/import/sys_stat.in.h: New.
546 * gnulib/import/time.in.h: New.
547
548 2013-11-18 Tom Tromey <tromey@redhat.com>
549
550 * configure: Rebuild.
551 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
552
553 2013-11-18 Tom Tromey <tromey@redhat.com>
554
555 * configure: Rebuild.
556 * configure.ac: Don't check for unistd.h.
557
558 2013-11-18 Tom Tromey <tromey@redhat.com>
559
560 * configure: Rebuild.
561 * configure.ac: Don't check for stdlib.h
562 * defs.h: Include stdlib.h unconditionally.
563
564 2013-11-18 Tom Tromey <tromey@redhat.com>
565
566 * config.in: Rebuild.
567 * configure: Rebuild.
568 * configure.ac: Don't check for stddef.h.
569 * defs.h: Unconditionally include stddef.h. Remove duplicate
570 inclusion.
571
572 2013-11-18 Tom Tromey <tromey@redhat.com>
573
574 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
575 * common/gdb_dirent.h: Remove.
576 * common/filestuff.c: Use dirent.h.
577 * common/linux-osdata.c: Use dirent.h.
578 (NAMELEN): Define.
579 * config.in: Rebuild.
580 * configure: Rebuild.
581 * configure.ac: Don't use AC_HEADER_DIRENT.
582 * linux-fork.c: Use dirent.h
583 * linux-nat.c: Use dirent.h.
584 * nto-procfs.c: Use dirent.h.
585 * procfs.c: Use dirent.h.
586
587 2013-11-18 Tom Tromey <tromey@redhat.com>
588
589 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
590 * gnulib/aclocal.m4: Update.
591 * gnulib/config.in: Update.
592 * gnulib/configure: Update.
593 * gnulib/import/Makefile.am: Update.
594 * gnulib/import/Makefile.in: Update.
595 * gnulib/import/dirent.in.h: New.
596 * gnulib/import/m4/dirent_h.m4: New.
597 * gnulib/import/m4/gnulib-cache.m4: Update.
598 * gnulib/import/m4/gnulib-comp.m4: Update.
599
600 2013-11-18 Tom Tromey <tromey@redhat.com>
601
602 * configure: Rebuild.
603 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
604 strings.h.
605
606 2013-11-18 Tom Tromey <tromey@redhat.com>
607
608 * common/gdb_string.h: Remove.
609 * aarch64-tdep.c: Use string.h, not gdb_string.h.
610 * ada-exp.y: Use string.h, not gdb_string.h.
611 * ada-lang.c: Use string.h, not gdb_string.h.
612 * ada-lex.l: Use string.h, not gdb_string.h.
613 * ada-typeprint.c: Use string.h, not gdb_string.h.
614 * ada-valprint.c: Use string.h, not gdb_string.h.
615 * aix-thread.c: Use string.h, not gdb_string.h.
616 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
617 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
618 * alpha-nat.c: Use string.h, not gdb_string.h.
619 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
620 * alpha-tdep.c: Use string.h, not gdb_string.h.
621 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
622 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
623 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
624 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
625 * amd64-nat.c: Use string.h, not gdb_string.h.
626 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
627 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
628 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
629 * arch-utils.c: Use string.h, not gdb_string.h.
630 * arm-linux-nat.c: Use string.h, not gdb_string.h.
631 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
632 * arm-tdep.c: Use string.h, not gdb_string.h.
633 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
634 * armbsd-tdep.c: Use string.h, not gdb_string.h.
635 * armnbsd-nat.c: Use string.h, not gdb_string.h.
636 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
637 * armobsd-tdep.c: Use string.h, not gdb_string.h.
638 * avr-tdep.c: Use string.h, not gdb_string.h.
639 * ax-gdb.c: Use string.h, not gdb_string.h.
640 * ax-general.c: Use string.h, not gdb_string.h.
641 * bcache.c: Use string.h, not gdb_string.h.
642 * bfin-tdep.c: Use string.h, not gdb_string.h.
643 * breakpoint.c: Use string.h, not gdb_string.h.
644 * build-id.c: Use string.h, not gdb_string.h.
645 * buildsym.c: Use string.h, not gdb_string.h.
646 * c-exp.y: Use string.h, not gdb_string.h.
647 * c-lang.c: Use string.h, not gdb_string.h.
648 * c-typeprint.c: Use string.h, not gdb_string.h.
649 * c-valprint.c: Use string.h, not gdb_string.h.
650 * charset.c: Use string.h, not gdb_string.h.
651 * cli-out.c: Use string.h, not gdb_string.h.
652 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
653 * cli/cli-decode.c: Use string.h, not gdb_string.h.
654 * cli/cli-dump.c: Use string.h, not gdb_string.h.
655 * cli/cli-interp.c: Use string.h, not gdb_string.h.
656 * cli/cli-logging.c: Use string.h, not gdb_string.h.
657 * cli/cli-script.c: Use string.h, not gdb_string.h.
658 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
659 * cli/cli-utils.c: Use string.h, not gdb_string.h.
660 * coffread.c: Use string.h, not gdb_string.h.
661 * common/common-utils.c: Use string.h, not gdb_string.h.
662 * common/filestuff.c: Use string.h, not gdb_string.h.
663 * common/linux-procfs.c: Use string.h, not gdb_string.h.
664 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
665 * common/signals.c: Use string.h, not gdb_string.h.
666 * common/vec.h: Use string.h, not gdb_string.h.
667 * core-regset.c: Use string.h, not gdb_string.h.
668 * corefile.c: Use string.h, not gdb_string.h.
669 * corelow.c: Use string.h, not gdb_string.h.
670 * cp-abi.c: Use string.h, not gdb_string.h.
671 * cp-support.c: Use string.h, not gdb_string.h.
672 * cp-valprint.c: Use string.h, not gdb_string.h.
673 * cris-tdep.c: Use string.h, not gdb_string.h.
674 * d-lang.c: Use string.h, not gdb_string.h.
675 * dbxread.c: Use string.h, not gdb_string.h.
676 * dcache.c: Use string.h, not gdb_string.h.
677 * demangle.c: Use string.h, not gdb_string.h.
678 * dicos-tdep.c: Use string.h, not gdb_string.h.
679 * disasm.c: Use string.h, not gdb_string.h.
680 * doublest.c: Use string.h, not gdb_string.h.
681 * dsrec.c: Use string.h, not gdb_string.h.
682 * dummy-frame.c: Use string.h, not gdb_string.h.
683 * dwarf2-frame.c: Use string.h, not gdb_string.h.
684 * dwarf2loc.c: Use string.h, not gdb_string.h.
685 * dwarf2read.c: Use string.h, not gdb_string.h.
686 * elfread.c: Use string.h, not gdb_string.h.
687 * environ.c: Use string.h, not gdb_string.h.
688 * eval.c: Use string.h, not gdb_string.h.
689 * event-loop.c: Use string.h, not gdb_string.h.
690 * exceptions.c: Use string.h, not gdb_string.h.
691 * exec.c: Use string.h, not gdb_string.h.
692 * expprint.c: Use string.h, not gdb_string.h.
693 * f-exp.y: Use string.h, not gdb_string.h.
694 * f-lang.c: Use string.h, not gdb_string.h.
695 * f-typeprint.c: Use string.h, not gdb_string.h.
696 * f-valprint.c: Use string.h, not gdb_string.h.
697 * fbsd-nat.c: Use string.h, not gdb_string.h.
698 * findcmd.c: Use string.h, not gdb_string.h.
699 * findvar.c: Use string.h, not gdb_string.h.
700 * fork-child.c: Use string.h, not gdb_string.h.
701 * frame.c: Use string.h, not gdb_string.h.
702 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
703 * frv-tdep.c: Use string.h, not gdb_string.h.
704 * gdb.c: Use string.h, not gdb_string.h.
705 * gdb_bfd.c: Use string.h, not gdb_string.h.
706 * gdbarch.c: Use string.h, not gdb_string.h.
707 * gdbtypes.c: Use string.h, not gdb_string.h.
708 * gnu-nat.c: Use string.h, not gdb_string.h.
709 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
710 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
711 * go-exp.y: Use string.h, not gdb_string.h.
712 * go-lang.c: Use string.h, not gdb_string.h.
713 * go32-nat.c: Use string.h, not gdb_string.h.
714 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
715 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
716 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
717 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
718 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
719 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
720 * i386-linux-nat.c: Use string.h, not gdb_string.h.
721 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
722 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
723 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
724 * i386-tdep.c: Use string.h, not gdb_string.h.
725 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
726 * i386gnu-nat.c: Use string.h, not gdb_string.h.
727 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
728 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
729 * i387-tdep.c: Use string.h, not gdb_string.h.
730 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
731 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
732 * inf-child.c: Use string.h, not gdb_string.h.
733 * inf-ptrace.c: Use string.h, not gdb_string.h.
734 * inf-ttrace.c: Use string.h, not gdb_string.h.
735 * infcall.c: Use string.h, not gdb_string.h.
736 * infcmd.c: Use string.h, not gdb_string.h.
737 * inflow.c: Use string.h, not gdb_string.h.
738 * infrun.c: Use string.h, not gdb_string.h.
739 * interps.c: Use string.h, not gdb_string.h.
740 * iq2000-tdep.c: Use string.h, not gdb_string.h.
741 * irix5-nat.c: Use string.h, not gdb_string.h.
742 * jv-exp.y: Use string.h, not gdb_string.h.
743 * jv-lang.c: Use string.h, not gdb_string.h.
744 * jv-typeprint.c: Use string.h, not gdb_string.h.
745 * jv-valprint.c: Use string.h, not gdb_string.h.
746 * language.c: Use string.h, not gdb_string.h.
747 * linux-fork.c: Use string.h, not gdb_string.h.
748 * linux-nat.c: Use string.h, not gdb_string.h.
749 * lm32-tdep.c: Use string.h, not gdb_string.h.
750 * m2-exp.y: Use string.h, not gdb_string.h.
751 * m2-typeprint.c: Use string.h, not gdb_string.h.
752 * m32c-tdep.c: Use string.h, not gdb_string.h.
753 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
754 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
755 * m32r-rom.c: Use string.h, not gdb_string.h.
756 * m32r-tdep.c: Use string.h, not gdb_string.h.
757 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
758 * m68k-tdep.c: Use string.h, not gdb_string.h.
759 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
760 * m68klinux-nat.c: Use string.h, not gdb_string.h.
761 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
762 * m88k-tdep.c: Use string.h, not gdb_string.h.
763 * macrocmd.c: Use string.h, not gdb_string.h.
764 * main.c: Use string.h, not gdb_string.h.
765 * mdebugread.c: Use string.h, not gdb_string.h.
766 * mem-break.c: Use string.h, not gdb_string.h.
767 * memattr.c: Use string.h, not gdb_string.h.
768 * memory-map.c: Use string.h, not gdb_string.h.
769 * mep-tdep.c: Use string.h, not gdb_string.h.
770 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
771 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
772 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
773 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
774 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
775 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
776 * mi/mi-console.c: Use string.h, not gdb_string.h.
777 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
778 * mi/mi-interp.c: Use string.h, not gdb_string.h.
779 * mi/mi-main.c: Use string.h, not gdb_string.h.
780 * mi/mi-parse.c: Use string.h, not gdb_string.h.
781 * microblaze-rom.c: Use string.h, not gdb_string.h.
782 * microblaze-tdep.c: Use string.h, not gdb_string.h.
783 * mingw-hdep.c: Use string.h, not gdb_string.h.
784 * minidebug.c: Use string.h, not gdb_string.h.
785 * minsyms.c: Use string.h, not gdb_string.h.
786 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
787 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
788 * mips-tdep.c: Use string.h, not gdb_string.h.
789 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
790 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
791 * mipsread.c: Use string.h, not gdb_string.h.
792 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
793 * mn10300-tdep.c: Use string.h, not gdb_string.h.
794 * monitor.c: Use string.h, not gdb_string.h.
795 * moxie-tdep.c: Use string.h, not gdb_string.h.
796 * mt-tdep.c: Use string.h, not gdb_string.h.
797 * nbsd-tdep.c: Use string.h, not gdb_string.h.
798 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
799 * nto-procfs.c: Use string.h, not gdb_string.h.
800 * nto-tdep.c: Use string.h, not gdb_string.h.
801 * objc-lang.c: Use string.h, not gdb_string.h.
802 * objfiles.c: Use string.h, not gdb_string.h.
803 * opencl-lang.c: Use string.h, not gdb_string.h.
804 * osabi.c: Use string.h, not gdb_string.h.
805 * osdata.c: Use string.h, not gdb_string.h.
806 * p-exp.y: Use string.h, not gdb_string.h.
807 * p-lang.c: Use string.h, not gdb_string.h.
808 * p-typeprint.c: Use string.h, not gdb_string.h.
809 * parse.c: Use string.h, not gdb_string.h.
810 * posix-hdep.c: Use string.h, not gdb_string.h.
811 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
812 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
813 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
814 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
815 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
816 * printcmd.c: Use string.h, not gdb_string.h.
817 * procfs.c: Use string.h, not gdb_string.h.
818 * prologue-value.c: Use string.h, not gdb_string.h.
819 * python/py-auto-load.c: Use string.h, not gdb_string.h.
820 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
821 * ravenscar-thread.c: Use string.h, not gdb_string.h.
822 * regcache.c: Use string.h, not gdb_string.h.
823 * registry.c: Use string.h, not gdb_string.h.
824 * remote-fileio.c: Use string.h, not gdb_string.h.
825 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
826 * remote-mips.c: Use string.h, not gdb_string.h.
827 * remote-sim.c: Use string.h, not gdb_string.h.
828 * remote.c: Use string.h, not gdb_string.h.
829 * reverse.c: Use string.h, not gdb_string.h.
830 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
831 * ser-base.c: Use string.h, not gdb_string.h.
832 * ser-go32.c: Use string.h, not gdb_string.h.
833 * ser-mingw.c: Use string.h, not gdb_string.h.
834 * ser-pipe.c: Use string.h, not gdb_string.h.
835 * ser-tcp.c: Use string.h, not gdb_string.h.
836 * ser-unix.c: Use string.h, not gdb_string.h.
837 * serial.c: Use string.h, not gdb_string.h.
838 * sh-tdep.c: Use string.h, not gdb_string.h.
839 * sh64-tdep.c: Use string.h, not gdb_string.h.
840 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
841 * skip.c: Use string.h, not gdb_string.h.
842 * sol-thread.c: Use string.h, not gdb_string.h.
843 * solib-dsbt.c: Use string.h, not gdb_string.h.
844 * solib-frv.c: Use string.h, not gdb_string.h.
845 * solib-osf.c: Use string.h, not gdb_string.h.
846 * solib-spu.c: Use string.h, not gdb_string.h.
847 * solib-target.c: Use string.h, not gdb_string.h.
848 * solib.c: Use string.h, not gdb_string.h.
849 * somread.c: Use string.h, not gdb_string.h.
850 * source.c: Use string.h, not gdb_string.h.
851 * sparc-nat.c: Use string.h, not gdb_string.h.
852 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
853 * sparc-tdep.c: Use string.h, not gdb_string.h.
854 * sparc64-tdep.c: Use string.h, not gdb_string.h.
855 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
856 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
857 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
858 * spu-linux-nat.c: Use string.h, not gdb_string.h.
859 * spu-multiarch.c: Use string.h, not gdb_string.h.
860 * spu-tdep.c: Use string.h, not gdb_string.h.
861 * stabsread.c: Use string.h, not gdb_string.h.
862 * stack.c: Use string.h, not gdb_string.h.
863 * std-regs.c: Use string.h, not gdb_string.h.
864 * symfile.c: Use string.h, not gdb_string.h.
865 * symmisc.c: Use string.h, not gdb_string.h.
866 * symtab.c: Use string.h, not gdb_string.h.
867 * target.c: Use string.h, not gdb_string.h.
868 * thread.c: Use string.h, not gdb_string.h.
869 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
870 * tilegx-tdep.c: Use string.h, not gdb_string.h.
871 * top.c: Use string.h, not gdb_string.h.
872 * tracepoint.c: Use string.h, not gdb_string.h.
873 * tui/tui-command.c: Use string.h, not gdb_string.h.
874 * tui/tui-data.c: Use string.h, not gdb_string.h.
875 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
876 * tui/tui-file.c: Use string.h, not gdb_string.h.
877 * tui/tui-layout.c: Use string.h, not gdb_string.h.
878 * tui/tui-out.c: Use string.h, not gdb_string.h.
879 * tui/tui-regs.c: Use string.h, not gdb_string.h.
880 * tui/tui-source.c: Use string.h, not gdb_string.h.
881 * tui/tui-stack.c: Use string.h, not gdb_string.h.
882 * tui/tui-win.c: Use string.h, not gdb_string.h.
883 * tui/tui-windata.c: Use string.h, not gdb_string.h.
884 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
885 * typeprint.c: Use string.h, not gdb_string.h.
886 * ui-file.c: Use string.h, not gdb_string.h.
887 * ui-out.c: Use string.h, not gdb_string.h.
888 * user-regs.c: Use string.h, not gdb_string.h.
889 * utils.c: Use string.h, not gdb_string.h.
890 * v850-tdep.c: Use string.h, not gdb_string.h.
891 * valarith.c: Use string.h, not gdb_string.h.
892 * valops.c: Use string.h, not gdb_string.h.
893 * valprint.c: Use string.h, not gdb_string.h.
894 * value.c: Use string.h, not gdb_string.h.
895 * varobj.c: Use string.h, not gdb_string.h.
896 * vax-tdep.c: Use string.h, not gdb_string.h.
897 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
898 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
899 * windows-nat.c: Use string.h, not gdb_string.h.
900 * xcoffread.c: Use string.h, not gdb_string.h.
901 * xml-support.c: Use string.h, not gdb_string.h.
902 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
903 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
904
905 2013-11-18 Tom Tromey <tromey@redhat.com>
906
907 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
908 and strstr.
909 * gnulib/aclocal.m4: Update.
910 * gnulib/config.in: Update.
911 * gnulib/configure: Update.
912 * gnulib/import/Makefile.am: Update.
913 * gnulib/import/Makefile.in: Update.
914 * gnulib/import/errno.in.h: New.
915 * gnulib/import/intprops.h: New.
916 * gnulib/import/m4/errno_h.m4: New.
917 * gnulib/import/m4/gnulib-cache.m4: Update.
918 * gnulib/import/m4/gnulib-comp.m4: Update.
919 * gnulib/import/m4/strerror.m4: New.
920 * gnulib/import/m4/strstr.m4: New.
921 * gnulib/import/m4/sys_socket_h.m4: New.
922 * gnulib/import/strerror-override.c: New.
923 * gnulib/import/strerror-override.h: New.
924 * gnulib/import/strerror.c: New.
925 * gnulib/import/strstr.c: New.
926
927 2013-11-18 Tom Tromey <tromey@redhat.com>
928
929 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
930 multiple lines.
931
932 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
933
934 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
935 * sparc-tdep.h: And its prototype.
936
937 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
938 function.
939 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
940
941 2013-11-18 Pedro Alves <palves@redhat.com>
942
943 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
944 use unpack_pointer.
945
946 2013-11-18 Joel Brobecker <brobecker@adacore.com>
947
948 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
949 to -list-features output.
950
951 2013-11-17 Joel Brobecker <brobecker@adacore.com>
952
953 * dwarf2expr.h (struct dwarf_expr_context_funcs)
954 <read_addr_from_reg>: Renames "read_reg".
955 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
956 Adjust comment.
957 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
958 Use read_addr_from_reg in place of read_reg.
959 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
960 in place of read_reg.
961 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
962 dwarf_expr_read_reg.
963 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
964 with dwarf_expr_read_addr_from_reg.
965 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
966 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
967 needs_frame_read_addr_from_reg.
968
969 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
970
971 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
972
973 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
974
975 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
976 NULL.
977
978 2013-11-15 Tom Tromey <tromey@redhat.com>
979
980 PR c++/16117:
981 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
982 (classify_name): Likewise. Prefer a field of "this" over a
983 filename.
984 (classify_inner_name, yylex): Update.
985
986 2013-11-15 Joel Brobecker <brobecker@adacore.com>
987
988 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
989 Extend the documentation a bit.
990 <get_reg_value>: New field.
991 * dwarf2loc.c (dwarf_expr_get_reg_value)
992 (needs_frame_get_reg_value): New functions.
993 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
994 callback.
995 * dwarf2-frame.c (get_reg_value): New function.
996 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
997 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
998 Use new callback to compute result_val.
999
1000 2013-11-15 Alan Modra <amodra@gmail.com>
1001
1002 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1003 (ppc64_desc_entry_point): ..this. Update comments here and at
1004 call points.
1005 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1006 ppc64_standard_linkage3): Update comments.
1007 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1008 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1009 patterns.
1010 (ppc64_standard_linkage4_target): New function.
1011 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1012 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1013 nop match. Fix comment wrap.
1014
1015 2013-11-14 Pedro Alves <palves@redhat.com>
1016
1017 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1018 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1019
1020 2013-11-14 Pedro Alves <palves@redhat.com>
1021
1022 * infrun.c (struct execution_control_state)
1023 <stepped_after_stopped_by_watchpoint>: New field.
1024 (get_inferior_stop_soon): New function.
1025 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1026 moved to struct execution_control_state -- adjust. Use
1027 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1028 new function.
1029 (handle_signal_stop): New function, factored out from
1030 handle_inferior_event.
1031
1032 2013-11-14 Pedro Alves <palves@redhat.com>
1033
1034 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1035 return a boolean.
1036 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1037 boolean.
1038 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1039 Adjust to return a boolean.
1040 * breakpoint.h (enum bpstat_signal_value): Delete.
1041 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1042 (bpstat_explains_signal): Likewise.
1043 * infrun.c (handle_inferior_event) <random signal checks>:
1044 bpstat_explains_signal now returns a boolean - adjust. No longer
1045 consider hiding signals.
1046
1047 2013-11-14 Pedro Alves <palves@redhat.com>
1048
1049 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1050 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1051 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1052 BPSTAT_SIGNAL_HIDE.
1053 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1054 instead of BPSTAT_SIGNAL_HIDE.
1055 * infrun.c (handle_inferior_event): Rework random signal checks.
1056
1057 2013-11-14 Pedro Alves <palves@redhat.com>
1058
1059 * infrun.c (struct execution_control_state): Remove
1060 'random_signal' field.
1061 (handle_syscall_event): Use bpstat_causes_stop instead of
1062 bpstat_explains_signal. Don't set ecs->random_signal.
1063 (handle_inferior_event): New 'random_signal' local.
1064 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1065 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1066 bpstat_explains_signal. Don't set ecs->random_signal.
1067 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1068 ecs->random_signal.
1069
1070 2013-11-14 Pedro Alves <palves@redhat.com>
1071
1072 * infrun.c (handle_inferior_event): Move comment from the
1073 function's body to the function's description, adjusted.
1074
1075 2013-11-14 Pedro Alves <palves@redhat.com>
1076
1077 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1078 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1079 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1080 case.
1081
1082 2013-11-14 Tom Tromey <tromey@redhat.com>
1083
1084 * python/py-linetable.c (ltpy_has_line)
1085 (ltpy_get_all_source_lines): Fix loop termination condition.
1086
1087 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1088
1089 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1090 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1091 PARSE->LANGUAGE during command execution, if set.
1092 * mi/mi-parse.c: Add "language.h" #include.
1093 (mi_parse): Add parsing of "--language" command option.
1094
1095 * NEWS: Add entry mentioning the new "--language" command option.
1096
1097 2013-11-14 Pedro Alves <palves@redhat.com>
1098 Joel Brobecker <brobecker@adacore.com>
1099
1100 * cli/cli-utils.h (extract_arg_const): Add declaration.
1101 * cli/cli-utils.c (extract_arg_const): New function.
1102 (extract_arg): Reimplement using extract_arg_const.
1103
1104 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1105
1106 * language.h: Add "symtab.h" #include.
1107
1108 2013-11-13 Doug Evans <xdje42@gmail.com>
1109
1110 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1111 specific breakpoints, don't evaluate breakpoint condition if
1112 different thread.
1113
1114 2013-11-13 Keith Seitz <keiths@redhat.com>
1115
1116 PR c++/7935
1117 PR c++/10541
1118 * cp-support.c (insepct_type): Add support for substituting
1119 namespace aliases, too.
1120 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1121 for DW_TAG_imported_declaration.
1122 (add_partial_symbol): Likewise.
1123 (process_die): Handle namespace aliases with
1124 read_namespace_alias.
1125 (die_needs_namespace): Add DW_TAG_imported_declaration.
1126 (read_namespace_alias): New function.
1127 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1128 (new_symbol_full): Handle DW_TAG_imported_declaration.
1129
1130 2013-11-13 Keith Seitz <keiths@redhat.com>
1131
1132 * p-exp.y (uptok): Make first parameter const.
1133 (yylex): Make `tokstart' and `tokptr' const.
1134 Don't copy the lexer input to a temporary buffer.
1135 Make `p' const.
1136 Remove const workaround for parse_escape.
1137 Create a temporary buffer for a convenience variable instead
1138 of doing in-place modification of the input.
1139 If a match is found with a different case from the input,
1140 do not change the input at all.
1141 Use `tmp' to construct the resultant stoken instead of
1142 `tokstart'.
1143
1144 2013-11-13 Doug Evans <xdje42@gmail.com>
1145
1146 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1147
1148 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1149
1150 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1151 entry with "ada-exceptions".
1152
1153 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1154
1155 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1156 after re-initialization of OBJFILE's obstack.
1157
1158 2013-11-12 Doug Evans <xdje42@gmail.com>
1159
1160 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1161 bs->stop != 0 on entry. Update function comment. Simplify early
1162 exit for frame mismatch. Reindent rest of function.
1163
1164 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165
1166 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1167 NULL.
1168
1169 2013-11-12 Doug Evans <dje@google.com>
1170
1171 Work around gold/15646.
1172 * dwarf2read.c (read_index_from_section): Update comment.
1173 (struct dw2_symtab_iterator): New member global_seen.
1174 (dw2_symtab_iter_init): Initialize it.
1175 (dw2_symtab_iter_next): Skip duplicate global symbols.
1176 (dw2_expand_symtabs_matching): Ditto.
1177
1178 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1179
1180 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1181 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1182 command.
1183 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1184 (mi_cmd_info_ada_exceptions): New function.
1185 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1186
1187 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1188
1189 * ada-lang.h: #include "vec.h".
1190 (struct ada_exc_info): New.
1191 (ada_exc_info): New typedef.
1192 (DEF_VEC_O(ada_exc_info)): New vector.
1193 (ada_exceptions_list): Add declaration.
1194 * ada-lang.c (ada_is_exception_sym)
1195 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1196 (sort_remove_dups_ada_exceptions_list)
1197 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1198 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1199 (ada_exceptions_list_1, ada_exceptions_list)
1200 (info_exceptions_command): New function.
1201 (_initialize_ada_language): Add "info exception" command.
1202
1203 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1204
1205 PR python/15629
1206 * NEWS: Add linetable feature.
1207 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1208 * python/py-linetable.c: New file.
1209 * python/py-symtab.c (stpy_get_linetable): New function.
1210 * python/python-internal.h (symtab_to_linetable_object): Declare.
1211 (gdbpy_initialize_linetable): Ditto.
1212 * python/python.c (_initialize_python): Call
1213 gdbpy_initialize_linetable.
1214
1215 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1216
1217 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1218 the documentation of fields "except_string" and "condition".
1219 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1220 CONDITION on the heap before passing it to
1221 create_ada_exception_catchpoint.
1222 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1223 CONDITION.
1224
1225 2013-11-11 Tom Tromey <tromey@redhat.com>
1226
1227 * config.in, configure: Rebuild.
1228 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1229
1230 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1231
1232 * remote-sim.c (gdbsim_detach): Break declaration into
1233 shorter lines. No code change.
1234
1235 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1236
1237 * remote-sim.c (gdbsim_detach): Fix prototype.
1238
1239 2013-11-08 Doug Evans <dje@google.com>
1240
1241 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1242 (create_debug_types_hash_table): Only print debugging messages for
1243 each TU if dwarf2-read >= 2.
1244 (process_queue): Ditto.
1245 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1246 Update doc string.
1247
1248 2013-11-08 Tom Tromey <tromey@redhat.com>
1249
1250 * configure: Rebuild.
1251 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1252
1253 2013-11-08 Tom Tromey <tromey@redhat.com>
1254
1255 * configure, config.in: Rebuild.
1256 * configure.ac: Remove unused configury.
1257
1258 2013-11-08 Tom Tromey <tromey@redhat.com>
1259
1260 * m32c-tdep.c: Use gdb_string.h.
1261
1262 2013-11-08 Tom Tromey <tromey@redhat.com>
1263
1264 * configure, config.in: Rebuild.
1265 * configure.ac: Remove all link.h-related checks.
1266
1267 2013-11-08 Tom Tromey <tromey@redhat.com>
1268
1269 * acinclude.m4: Include common.m4.
1270 * common/common.m4: New file.
1271 * configure, config.in: Rebuild.
1272 * configure.ac: Use GDB_AC_COMMON.
1273
1274 2013-11-08 Doug Evans <dje@google.com>
1275
1276 * NEWS: Mention that "set debug symtab-create" now accepts a
1277 verbosity level.
1278 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1279 to set the symtab's primary flag.
1280 * jit.c (finalize_symtab): Ditto.
1281 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1282 * symfile.c (allocate_symtab): Only print debugging messages for
1283 symtab_create_debug levels 2 and higher.
1284 * symtab.c (symtab_create_debug): Change type to unsigned int.
1285 (set_symtab_primary): New function.
1286 (_initialize_symtab): Change "set debug symtab-create" to a
1287 zuinteger option.
1288 * symtab.h (set_symtab_primary): Declare.
1289 (symtab_create_debug): Update decl.
1290
1291 2013-11-08 Tom Tromey <tromey@redhat.com>
1292
1293 * aix-thread.c (aix_thread_detach): Update.
1294 * corelow.c (core_detach): Update.
1295 * darwin-nat.c (darwin_detach): Update.
1296 * dec-thread.c (dec_thread_detach): Update.
1297 * gnu-nat.c (gnu_detach): Update.
1298 * go32-nat.c (go32_detach): Update.
1299 * inf-ptrace.c (inf_ptrace_detach): Update.
1300 * inf-ttrace.c (inf_ttrace_detach): Update.
1301 * linux-fork.c (linux_fork_detach): Update.
1302 * linux-fork.h (linux_fork_detach): Update.
1303 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1304 local for const-correctness.
1305 * linux-thread-db.c (thread_db_detach): Update.
1306 * monitor.c (monitor_detach): Update.
1307 * nto-procfs.c (procfs_detach): Update.
1308 * procfs.c (procfs_detach): Update.
1309 * record.c (record_detach): Update.
1310 * record.h (record_detach): Update.
1311 * remote-m32r-sdi.c (m32r_detach): Update.
1312 * remote-mips.c (mips_detach): Update.
1313 * remote-sim.c (gdbsim_detach): Update.
1314 * remote.c (remote_detach_1, remote_detach)
1315 (extended_remote_detach): Update.
1316 * sol-thread.c (sol_thread_detach): Update.
1317 * target.c (target_detach): Make "args" const.
1318 (init_dummy_target): Update.
1319 * target.h (struct target_ops) <to_detach>: Make argument const.
1320 (target_detach): Likewise.
1321 * windows-nat.c (windows_detach): Update.
1322
1323 2013-11-07 Doug Evans <dje@google.com>
1324
1325 PR 11786
1326 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1327 and align fields for PT_GNU_RELRO segments.
1328
1329 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1330
1331 PR python/15747
1332 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1333
1334 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1335
1336 * NEWS: Document Python temporary breakpoint support.
1337 * python/py-breakpoint.c (bppy_get_temporary): New function.
1338 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1339 to temporary if True.
1340
1341 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1342
1343 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1344 removed to allow analyzing unconditional branch instructions
1345 with PC-relative offsets of zero.
1346
1347 2013-11-07 Yao Qi <yao@codesourcery.com>
1348
1349 * mi/mi-cmd-var.c: Include "language.h".
1350 (mi_cmd_var_info_expression): Get language name from
1351 language_defn.
1352 * varobj.c (varobj_language_string): Remove.
1353 (variable_language): Remove declaration.
1354 (languages): Remove.
1355 (varobj_get_language): Change the type of return value.
1356 (variable_language): Remove.
1357 * varobj.h (enum varobj_languages): Remove.
1358 (varobj_language_string): Remove declaration.
1359 (varobj_get_language): Update declaration.
1360
1361 2013-11-07 Yao Qi <yao@codesourcery.com>
1362
1363 * language.h (struct language_defn) <la_natural_name>: New
1364 field.
1365 * ada-lang.c (ada_language_defn): Initialize field
1366 'la_natural_name'.
1367 * c-lang.c (c_language_defn): Likewise.
1368 (cplus_language_defn, asm_language_defn): Likewise.
1369 * d-lang.c (d_language_defn): Likewise.
1370 * f-lang.c (f_language_defn): Likewise.
1371 * go-lang.c (go_language_defn): Likewise.
1372 * jv-lang.c (java_language_defn): Likewise.
1373 * language.c (unknown_language_defn ): Likewise.
1374 (auto_language_defn): Likewise.
1375 * m2-lang.c (m2_language_defn): Likewise.
1376 * objc-lang.c (objc_language_defn): Likewise.
1377 * opencl-lang.c (opencl_language_defn): Likewise.
1378 * p-lang.c (pascal_language_defn): Likewise.
1379
1380 2013-11-07 Yao Qi <yao@codesourcery.com>
1381
1382 * language.c (language_str): Return const char *.
1383 (add_language): Add const to 'language_names'
1384 * language.h (struct language_defn) <la_name>: Add const.
1385 (language_str: Update declaration.
1386
1387 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388
1389 * s390-linux-nat.c (s390_read_description): Consider the TE field
1390 in the HWCAP for determining 'have_regset_tdb'.
1391
1392 2013-11-06 Will Newton <will.newton@linaro.org>
1393
1394 PR gdb/12866
1395 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1396 values. (read_partial_die): Likewise.
1397
1398 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1399
1400 PR cli/16122
1401 * top.c (command_line_input): Unify interactivity tests to use
1402 input_from_terminal_p.
1403 * event-top.c (command_line_handler): Likewise.
1404
1405 2013-11-06 Yao Qi <yao@codesourcery.com>
1406
1407 * Makefile.in (check-perf): New target.
1408
1409 2013-11-05 Will Newton <will.newton@linaro.org>
1410
1411 PR gdb/7670
1412 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1413 (arm_print_float_info): Likewise.
1414
1415 2013-11-04 Anton Blanchard <anton@samba.org>
1416
1417 * target.c (memory_xfer_partial): Cap write to 4KB.
1418
1419 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1420
1421 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1422 probe scan even when the arch provides no get_longjmp_target.
1423
1424 2013-10-31 Pedro Alves <palves@redhat.com>
1425
1426 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1427 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1428 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1429 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1430 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1431 <bpstat handling>: If the bpstat chain wants the signal to be
1432 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1433 GDB_SIGNAL_TRAP.
1434
1435 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1436
1437 * breakpoint.c (update_watchpoint): Update error message and add
1438 an additional error message.
1439
1440 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1441
1442 * s390-tdep.h: Rename to...
1443 * s390-linux-tdep.h: ...here.
1444 * s390-tdep.c: Rename to...
1445 * s390-linux-tdep.c: ...here. Adjust #include.
1446 * s390-nat.c: Rename to...
1447 * s390-linux-nat.c: ...here. Adjust #include.
1448 * config/s390/s390.mh: Rename to...
1449 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1450 s390-linux-nat.o.
1451 * configure.host: Reflect host rename "s390" -> "linux".
1452 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1453 * Makefile.in (ALL_TARGET_OBS): Likewise.
1454 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1455 s390-linux-tdep.h.
1456 (ALLDEPFILES): Reflect rename of .c files.
1457
1458 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1459
1460 * s390-nat.c: Whitespace cleanup.
1461 * s390-tdep.c: Likewise.
1462 * s390-tdep.h: Remove empty line at end of file.
1463
1464 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1465
1466 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1467 siginfo_size.
1468
1469 2013-10-29 Tom Tromey <tromey@redhat.com>
1470
1471 * utils.c (reg): Move undefinition...
1472 * gdb_curses.h: ... here. Update comment to mention AIX.
1473
1474 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1475
1476 * exec.h (add_target_sections_of_objfile): New declaration.
1477 * exec.c (add_target_sections_of_objfile): New function.
1478 * symfile.c (add_symbol_file_command): Update current target sections.
1479 (remove_symbol_file_command): New command.
1480 (symfile_free_objfile): New function.
1481 (_initialize_symfile): Register observer for free_objfile events.
1482 * NEWS: Add description of the remove-symbol-file command.
1483 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1484 * objfiles.c (free_objfile): Notify free_objfile.
1485 (is_addr_in_objfile): New function.
1486 * objfiles.h (is_addr_in_objfile): New declaration.
1487 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1488 events instead of solib_unloaded events.
1489 (_initialize_printcmd): Register observer for free_objfile instead
1490 of solib_unloaded notifications.
1491 * solib.c (remove_user_added_objfile): New function.
1492 (_initialize_symfile): Add remove-symbol-file.
1493
1494 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1495
1496 * infcmd.c (default_print_one_register_info): Use val_print to
1497 print all values even optimized out or unavailable ones. Don't
1498 try to print a raw form of optimized out or unavailable values.
1499
1500 2013-10-29 Yao Qi <yao@codesourcery.com>
1501
1502 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1503 parameter 'arg' instead of from program_space_data.
1504 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1505 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1506 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1507 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1508 * inflow.c (inflow_inferior_data_cleanup): Get data from
1509 parameter 'arg' instead of inferior_data.
1510 * registry.h: Add comments.
1511
1512 2013-10-28 Pedro Alves <palves@redhat.com>
1513
1514 * breakpoint.c (watchpoints_triggered)
1515 <!target_stopped_data_address>: Hardcode return 1.
1516
1517 2013-10-28 Pedro Alves <palves@redhat.com>
1518
1519 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1520 level and reindent.
1521
1522 2013-10-28 Pedro Alves <palves@redhat.com>
1523
1524 * infrun.c (process_event_stop_test): New function, factored out
1525 from handle_inferior_event.
1526 (handle_inferior_event): 'process_event_stop_test' is now a
1527 function instead of a goto label -- adjust.
1528
1529 2013-10-28 Pedro Alves <palves@redhat.com>
1530
1531 * infrun.c (handle_inferior_event): Move process_event_stop_test
1532 goto label to the else branch of the ecs->random_signal check,
1533 along with FRAME and GDBARCH re-fetching.
1534
1535 2013-10-28 Pedro Alves <palves@redhat.com>
1536
1537 * infrun.c (switch_back_to_stepped_thread): New function, factored
1538 out from handle_inferior_event.
1539 (handle_inferior_event): Adjust to call
1540 switch_back_to_stepped_thread. Call it also at the tail of the
1541 random signal handling, and return, instead of also handling
1542 random signals just before the stepping tests.
1543
1544 2013-10-28 Pedro Alves <palves@redhat.com>
1545
1546 * infrun.c (clear_stop_func): Delete.
1547 (handle_inferior_event): Don't call clear_stop_func and don't
1548 clear 'ecs->random_signal'.
1549
1550 2013-10-27 Yao Qi <yao@codesourcery.com>
1551
1552 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1553 (varobj_create, varobj_get_path_expr): Update.
1554 (varobj_value_has_mutated, varobj_update): Likewise.
1555 (create_child_with_value, new_root_variable): Likewise.
1556 (number_of_children, name_of_variable): Likewise.
1557 (value_of_child, my_value_of_variable): Likewise.
1558 (varobj_value_is_changeable_p): Likewise.
1559
1560 2013-10-25 Yao Qi <yao@codesourcery.com>
1561
1562 * language.h (struct lang_varobj_ops): Declare.
1563 (struct language_defn) <la_varobj_ops>: New field.
1564 * ada-lang.c: Include "varobj.h"
1565 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1566 ada_varobj_ops.
1567 * c-lang.c: Include "varobj.h"
1568 (c_language_defn): Initialize field 'la_varobj_ops' with
1569 c_varobj_ops.
1570 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1571 cplus_varobj_ops.
1572 (asm_language_defn): Initialize field 'la_varobj_ops' with
1573 default_varobj_ops.
1574 (minimal_language_defn): Likewise.
1575 * d-lang.c (d_language_defn): Likewise.
1576 * f-lang.c (f_language_defn): Likewise.
1577 * go-lang.c (go_language_defn): Likewise.
1578 * m2-lang.c (m2_language_defn): Likewise.
1579 * objc-lang.c (objc_language_defn): Likewise.
1580 * opencl-lang.c (opencl_language_defn): Likewise.
1581 * p-lang.c (pascal_language_defn): Likewise.
1582 * language.c (unknown_language_defn): Likewise.
1583 (auto_language_defn): Likewise.
1584 (local_language_defn): Likewise.
1585 * jv-lang.c (java_language_defn): Initialize field
1586 'la_varobj_ops' with java_varobj_ops.
1587 * varobj.c (varobj_create): Update.
1588 * varobj.h (default_varobj_ops): Define macro.
1589
1590 2013-10-25 Pedro Alves <palves@redhat.com>
1591
1592 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1593 static field value.
1594 (cp_print_static_field): If the value is entirely optimized out,
1595 print <optimized out> here.
1596 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1597 static field value.
1598 * p-valprint.c (pascal_object_print_static_field): If the value is
1599 entirely optimized out, print <optimized out> here.
1600 * valops.c (do_search_struct_field)
1601 (value_struct_elt_for_reference): No longer handle a NULL static
1602 field value.
1603 * value.c (value_static_field): Return an optimized out value
1604 instead of NULL.
1605
1606 2013-10-25 Yao Qi <yao@codesourcery.com>
1607
1608 * remote.c (remote_traceframe_info): Return early if
1609 traceframe is not selected.
1610
1611 2013-10-25 Yao Qi <yao@codesourcery.com>
1612
1613 * tracepoint.c (traceframe_fun): Remove.
1614 (traceframe_sal): Remove.
1615 (set_traceframe_context): Add local variables.
1616
1617 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1618
1619 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1620 and parameter name.
1621
1622 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1623
1624 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1625 failure from register information collection.
1626
1627 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1628
1629 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1630 member.
1631 (linux_corefile_thread_callback): Update accordingly.
1632 (linux_make_corefile_notes): Likewise.
1633
1634 2013-10-24 Pedro Alves <palves@redhat.com>
1635
1636 * NEWS (New options): Mention set/show startup-with-shell.
1637 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1638 instead of 3.
1639 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1640 startup-with-shell'.
1641 (show_startup_with_shell): New function.
1642 (_initialize_fork_child): Register the set/show startup-with-shell
1643 commands.
1644 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1645 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1646 * procfs.c (procfs_init_inferior): Remove comment.
1647 * infcmd.c (startup_with_shell): New global.
1648 * inferior.h (startup_with_shell): Declare global.
1649 (STARTUP_WITH_SHELL): Delete.
1650 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1651
1652 2013-10-23 Pedro Alves <palves@redhat.com>
1653
1654 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1655 * common/signals.c: Include "gdb_assert.h".
1656 (signals): New field 'symbol'.
1657 (SET): Use the 'symbol' parameter.
1658 (gdb_signal_to_symbol_string): New function.
1659 * infrun.c (handle_inferior_event) <random signal>: In debug
1660 output, print the random signal enum as string in addition to its
1661 number.
1662 * target/waitstatus.c (target_waitstatus_to_string): Print the
1663 signal's enum value as string instead of the (POSIX) signal name.
1664
1665 2013-10-23 Gary Benson <gbenson@redhat.com>
1666
1667 PR 16013
1668 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1669 from 32 to 18. Adjusted fscanf format string accordingly.
1670 (Avoids leaving cmd unterminated.)
1671 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1672 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1673 that local_address and remote_address will not overflow.
1674 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1675 leaving dependencies unterminated. Parse size as "%u" to match
1676 definition.
1677
1678 2013-10-22 Pedro Alves <palves@redhat.com>
1679
1680 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1681 set ecs->random signal.
1682
1683 2013-10-22 Pedro Alves <palves@redhat.com>
1684
1685 * infrun.c (keep_going): Update comments.
1686
1687 2013-10-22 Pedro Alves <palves@redhat.com>
1688
1689 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1690 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1691
1692 2013-10-22 Pedro Alves <palves@redhat.com>
1693
1694 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1695 GDB_EXC_BAD_ACCESS.
1696 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1697 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1698 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1699 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1700 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1701 (GDB_SIGNAL_LAST): Change description string.
1702 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1703 Adjust to signal renaming.
1704 * darwin-nat.c (darwin_decode_message): Likewise.
1705
1706 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1707
1708 * MAINTAINERS (Write After Approval): Add myself to the list.
1709
1710 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1711
1712 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1713 forced off, downgrade them to software watchpoints if possible,
1714 and error out if not possible.
1715 (watch_command_1): Move watchpoint type selection closer to
1716 watchpoint creation, and extend the comments.
1717
1718 2013-10-18 Pedro Alves <palves@redhat.com>
1719
1720 PR gdb/16062
1721 * infrun.c (handle_inferior_event): Keep going if we got a random
1722 signal we should not stop for, instead of falling through to the
1723 step tests.
1724
1725 2013-10-18 Yao Qi <yao@codesourcery.com>
1726
1727 * c-varobj.c (cplus_number_of_children): Fix indentation.
1728
1729 2013-10-17 Tom Tromey <tromey@redhat.com>
1730
1731 PR gdb/15995:
1732 * printcmd.c (printcmd): Call gdb_flush.
1733
1734 2013-10-17 Tom Tromey <tromey@redhat.com>
1735
1736 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1737 (elf_locate_sections): Update.
1738
1739 2013-10-17 Yao Qi <yao@codesourcery.com>
1740
1741 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1742 * ada-varobj.c: Remove the include of ada-varobj.h.
1743 (ada_varobj_get_number_of_children): Declare.
1744 (ada_varobj_get_name_of_child): Make it static.
1745 (ada_varobj_get_path_expr_of_child): Likewise.
1746 (ada_varobj_get_value_of_child): Likewise.
1747 (ada_varobj_get_type_of_child): Likewise.
1748 (ada_varobj_get_value_of_array_variable): Likewise.
1749 * ada-varobj.h: Remove.
1750
1751 2013-10-17 Yao Qi <yao@codesourcery.com>
1752
1753 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1754 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1755 * ada-varobj.c: Include "varobj.h".
1756 (ada_number_of_children): New. Moved from varobj.c.
1757 (ada_name_of_variable, ada_name_of_child): Likewise.
1758 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1759 (ada_type_of_child, ada_value_of_variable): Likewise.
1760 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1761 (ada_varobj_ops): New.
1762 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1763 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1764 * gdbtypes.h (get_target_type): Declare.
1765 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1766 "ada-lang.h".
1767 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1768 (ANONYMOUS_UNION_NAME): Likewise.
1769 (get_type, get_value_type, get_target_type): Remove declarations.
1770 (value_get_print_value, varobj_value_get_print_value): Likewise.
1771 (c_number_of_children, c_name_of_variable): Likewise.
1772 (c_name_of_child, c_path_expr_of_child): Likewise.
1773 (c_value_of_child, c_type_of_child): Likewise.
1774 (c_value_of_variable, cplus_number_of_children): Likewise.
1775 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1776 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1777 (cplus_value_of_child, cplus_type_of_child): Likewise.
1778 (cplus_value_of_variable, java_number_of_children): Likewise.
1779 (java_name_of_variable, java_name_of_child): Likewise.
1780 (java_path_expr_of_child, java_value_of_child): Likewise.
1781 (java_type_of_child, java_value_of_variable): Likewise.
1782 (ada_number_of_children, ada_name_of_variable): Likewise.
1783 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1784 (ada_value_of_child, ada_type_of_child): Likewise.
1785 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1786 (ada_value_has_mutated): Likewise.
1787 (struct language_specific): Move it to varobj.h.
1788 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1789 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1790 Callers update.
1791 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1792 Make it extern.
1793 (is_anonymous_child): Move it to c-varobj.c and rename to
1794 varobj_is_anonymous_child. Caller update.
1795 (get_type): Move it to c-varobj.c.
1796 (get_value_type): Rename it varobj_get_value_type. Make it
1797 extern.
1798 (get_target_type): Move it gdbtypes.c.
1799 (varobj_formatted_print_options): New function.
1800 (value_get_print_value): Rename it to
1801 varobj_value_get_print_value and make it extern.
1802 (varobj_value_is_changeable_p): Make it extern.
1803 (adjust_value_for_child_access): Move it to c-varobj.c.
1804 (default_value_is_changeable_p): Rename it to
1805 varobj_default_value_is_changeable_p. Make it extern.
1806 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1807 (c_name_of_child, c_path_expr_of_child): Likewise.
1808 (c_value_of_child, c_type_of_child): Likewise.
1809 (c_value_of_variable, cplus_number_of_children): Likewise.
1810 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1811 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1812 (cplus_value_of_child, cplus_type_of_child): Likewise.
1813 (cplus_value_of_variable): Likewise.
1814 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1815 (java_name_of_child, java_path_expr_of_child): Likewise.
1816 (java_value_of_child, java_type_of_child): Likewise.
1817 (java_value_of_variable): Likewise.
1818 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1819 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1820 (ada_value_of_child, ada_type_of_child): Likewise.
1821 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1822 (ada_value_has_mutated): Likewise.
1823 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1824 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1825 (c_varobj_ops, cplus_varobj_ops): Declare.
1826 (java_varobj_ops, ada_varobj_ops): Declare.
1827 (varobj_default_value_is_changeable_p): Declare.
1828 (varobj_value_is_changeable_p): Declare.
1829 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1830 (varobj_get_path_expr_parent): Declare.
1831 (varobj_value_get_print_value): Declare.
1832 (varobj_formatted_print_options): Declare.
1833 (varobj_restrict_range): Declare.
1834
1835 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1836
1837 * target/waitstatus.h (target_waitkind): Remove spurious
1838 character from the comments.
1839
1840 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1841
1842 * gdbarch.sh (get_longjmp_target): Add method documentation.
1843 * gdbarch.h: Regenerate.
1844
1845 2013-10-16 Tom Tromey <tromey@redhat.com>
1846
1847 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1848 label.
1849
1850 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1851
1852 * gcore.in: Call GDB using the full path to the gcore script.
1853 Error out if the GDB binary is not found.
1854
1855 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1856
1857 PR gdb/16014
1858 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1859 sizeof.
1860
1861 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1862
1863 PR gdb/16042
1864 * target.c (target_disable_btrace): Fix invalid return value for
1865 void function.
1866 (target_teardown_btrace): Likewise.
1867
1868 2013-10-14 Yao Qi <yao@codesourcery.com>
1869
1870 * varobj.c (struct varobj): Move most of the fields to
1871 varobj.h.
1872 (struct varobj_dynamic): New struct.
1873 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1874 (varobj_has_more): Likewise.
1875 (dynamic_varobj_has_child_method): Likewise.
1876 (update_dynamic_varobj_children): Likewise.
1877 (varobj_get_num_children): Likewise.
1878 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1879 (install_new_value_visualizer): Likewise.
1880 (install_new_value_visualizer, install_new_value): Likewise.
1881 (varobj_update, new_variable, free_variable): Likewise.
1882 (my_value_of_variable, value_get_print_value): Likewise.
1883 (install_visualizer): Change the type of parameter 'var' to
1884 'struct varobjd_dynamic *'. Callers update.
1885 * varobj.h (struct varobj): Moved from varobj.c.
1886 (struct varobj) <dynamic>: New field.
1887
1888 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1889
1890 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1891 as the preferred name of r30.
1892 * nios2-linux-tdep.c (reg_offsets): Likewise.
1893 * features/nios2-cpu.xml: Likewise.
1894 * features/nios2-linux.c: Regenerated.
1895 * features/nios2.c: Regenerated.
1896 * regformats/nios2-linux.dat: Regenerated.
1897
1898 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1899
1900 Canonicalize directories for EXEC_FILENAME.
1901 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
1902 exec_filename.
1903 * utils.c (gdb_realpath_keepfile): New function.
1904 * utils.h (gdb_realpath_keepfile): New declaration.
1905
1906 2013-10-11 Doug Evans <dje@google.com>
1907
1908 * Makefile.in (GDBFLAGS): New variable.
1909 (run): New rule.
1910
1911 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1912
1913 * NEWS: Add entry documenting the new "-catch-assert" and
1914 "-catch-exception" GDB/MI commands.
1915
1916 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1917
1918 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
1919 "enabled".
1920 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
1921 "enabled". Set B->ENABLE_STATE accordingly.
1922 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
1923 ada-lang.c.
1924 (create_ada_exception_catchpoint): Add declaration.
1925 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
1926 (create_ada_exception_catchpoint): Make non-static. Add new
1927 parameter "disabled". Use it in call to
1928 init_ada_exception_breakpoint.
1929 (catch_ada_exception_command): Add parameter "enabled" in call
1930 to create_ada_exception_catchpoint.
1931 (catch_assert_command): Likewise.
1932
1933 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
1934 Add declarations.
1935 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
1936 "catch-exception" commands.
1937 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
1938 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
1939
1940 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1941
1942 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
1943 "enum exception_catchpoint_kind". Replace the "ex_" prefix
1944 of all its enumerates with "ada_". Update the rest of this
1945 file throughout.
1946
1947 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1948
1949 * ada-lang.c (ada_decode_exception_location): Delete.
1950 (create_ada_exception_catchpoint): Remove arguments "sal",
1951 "addr_string" and "ops". Add argument "ex_kind" instead.
1952 Adjust implementation accordingly, calling ada_exception_sal
1953 to get the entities it no longer gets passed as arguments.
1954 Document the function's arguments.
1955 (catch_ada_exception_command): Use catch_ada_exception_command_split
1956 instead of ada_decode_exception_location, and update call to
1957 create_ada_exception_catchpoint.
1958 (catch_ada_assert_command_split): Renames
1959 ada_decode_assert_location. Remove parameters "addr_string" and
1960 "ops", and now returns void. Adjust implementation accordingly.
1961 Update the function documentation.
1962 (catch_assert_command): Use catch_ada_assert_command_split
1963 instead of ada_decode_assert_location. Update call to
1964 create_ada_exception_catchpoint.
1965
1966 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1967
1968 * utils.h (perror_warning_with_name): Add declaration.
1969 * utils.c (perror_warning_with_name): New function.
1970 * cli/cli-cmds.c (source_script_with_search): Add call to
1971 perror_warning_with_name if from_tty is nul.
1972
1973 2013-10-11 Joel Brobecker <brobecker@adacore.com>
1974
1975 * utils.c (perror_string): New function, extracted out of
1976 throw_perror_with_name.
1977 (throw_perror_with_name): Rework to use perror_string.
1978
1979 2013-10-11 Yao Qi <yao@codesourcery.com>
1980
1981 * remote.c (discard_pending_stop_replies_in_queue): Update
1982 declaration.
1983 (struct stop_reply) <rs>: New field.
1984 (remove_stop_reply_of_remote_state): New function.
1985 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
1986 Callers update. Pass remove_stop_reply_of_remote_state to
1987 QUEUE_iterate.
1988 (remote_parse_stop_reply): Initialize field 'rs'.
1989
1990 2013-10-10 Will Newton <will.newton@linaro.org>
1991
1992 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
1993 linux_init_abi.
1994
1995 2013-10-10 Joel Brobecker <brobecker@adacore.com>
1996
1997 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
1998 serial_baud_show_cmd.
1999 (_initialize_cli_cmds): Delete the code creating the
2000 "set/show remotebaud" commands.
2001 * serial.c (baud_rate): Move here from top.c.
2002 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2003 (_initialize_serial): Create "set/show serial baud" commands.
2004 Add "set/show remotebaud" command aliases.
2005 * top.c (baud_rate): Moved to serial.c.
2006 * NEWS: Document the new "set/show serial baud" commands,
2007 replacing "set/show remotebaud".
2008
2009 2013-10-09 Pedro Alves <palves@redhat.com>
2010
2011 * breakpoint.c (insert_bp_location): Use memory_error_message to
2012 build the memory error string.
2013 * c-lang.c: Include "gdbcore.h".
2014 (c_get_string): Use memory_error to throw error.
2015 (target_xfer_memory_error): Delete.
2016 (memory_error_message): New, factored out from
2017 target_xfer_memory_error.
2018 (memory_error): Change parameter type to target_xfer_error.
2019 Rewrite.
2020 (read_memory): Use memory_error instead of
2021 target_xfer_memory_error.
2022 * gdbcore.h: Include "target.h".
2023 (memory_error): Change parameter type to target_xfer_error.
2024 (memory_error_message): Declare function.
2025 * target.c (target_read_memory, target_read_stack)
2026 (target_write_memory, target_write_raw_memory): Return
2027 TARGET_XFER_E_IO on error. Adjust comments.
2028 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2029 instead of EIO.
2030 * target.h (target_read, target_insert_breakpoint)
2031 (target_remove_breakpoint): Adjust comments.
2032 * valprint.c (partial_memory_read): Rename parameter, and adjust
2033 comment.
2034 (val_print_string): Use memory_error_message to build the memory
2035 error string.
2036
2037 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2040 result variable. Rename variable fopen_e_ever_failed to
2041 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2042
2043 2013-10-09 Pedro Alves <palves@redhat.com>
2044
2045 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2046 (monitor_write_memory_longlongs, monitor_write_memory_block):
2047 Constify 'myaddr' parameter.
2048 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2049 helper.
2050 (monitor_xfer_partial): New function.
2051 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2052 hook. Install a to_xfer_partial hook.
2053
2054 2013-10-09 Tom Tromey <tromey@redhat.com>
2055
2056 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2057 bfd_get_alt_debug_link_info.
2058
2059 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 New flag OBJF_NOT_FILENAME.
2062 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2063 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2064 allocate_objfile.
2065 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2066 symbol_file_add_from_bfd.
2067 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2068 allocate_objfile.
2069 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2070 NULL.
2071 * objfiles.h (OBJF_NOT_FILENAME): New.
2072
2073 2013-10-08 Tom Tromey <tromey@redhat.com>
2074
2075 * Makefile.in (SFILES): Add build-id.c.
2076 (HFILES_NO_SRCDIR): Add build-id.h.
2077 * build-id.c: New file, largely from elfread.c. Modified
2078 most functions.
2079 * build-id.h: New file.
2080 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2081 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2082 Search for dwz file using build-id.
2083 * elfread.c (build_id_bfd_get, build_id_verify)
2084 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2085
2086 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2087
2088 * ada-lang.c (compare_names_with_case): Renamed from
2089 compare_names, adding a new parameter "casing" and its handling.
2090 New function documentation.
2091 (compare_names): New function, implemented using
2092 compare_names_with_case.
2093
2094 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2095
2096 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2097
2098 2013-10-07 Tom Tromey <tromey@redhat.com>
2099
2100 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2101 demangled_names_hash.
2102 (free_objfile): Don't delete the demangled_names_hash.
2103 * objfiles.h (struct objfile_per_bfd_storage)
2104 <demangled_names_hash>: New field.
2105 (struct objfile) <demangled_names_hash>: Move to
2106 objfile_per_bfd_storage.
2107 * symfile.c (reread_symbols): Don't delete the
2108 demangled_names_hash.
2109 * symtab.c (create_demangled_names_hash): Update.
2110 (symbol_set_names): Update.
2111
2112 2013-10-07 Tom Tromey <tromey@redhat.com>
2113
2114 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2115 needs_relocations>: New fields.
2116 (gdb_bfd_requires_relocations): New function.
2117 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2118 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2119 the BFD needs relocations applied.
2120
2121 2013-10-07 Pedro Alves <palves@redhat.com>
2122
2123 PR breakpoints/11568
2124 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2125 the thread list" instead of "gone".
2126
2127 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2128
2129 * NEWS: Mention new convenience variable $_exitsignal.
2130 * corelow.c (core_open): Reset exit convenience variables. Set
2131 $_exitsignal to the uncaught signal which generated the corefile.
2132 * infrun.c (handle_inferior_event): Reset exit convenience
2133 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2134 (clear_exit_convenience_vars): New function.
2135 * inferior.h (clear_exit_convenience_vars): New prototype.
2136
2137 2013-10-06 Yao Qi <yao@codesourcery.com>
2138
2139 * varobj.h: Add comments to enum varobj_languages.
2140
2141 2013-10-04 Doug Evans <dje@google.com>
2142
2143 Add support for DWP file format version 2.
2144 * NEWS: Mention support for DWP file format version 2.
2145 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2146 union of asection, containing_section. New fields virtual_offset
2147 and is_virtual. Change type of readin filed from int to char.
2148 (dwo_sections, dwo_file): Tweak comments.
2149 (dwp_v2_section_ids): New enum.
2150 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2151 str_offsets, types.
2152 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2153 All uses updated.
2154 (virtual_v2_dwo_sections): New struct.
2155 (dwp_hash_table): New fields version, nr_columns. Change type of
2156 section_pool field to a union.
2157 (dwp_file): New field version.
2158 (dwarf2_has_info): Check for virtual sections.
2159 (get_containing_section): New function.
2160 (get_section_bfd_owner, get_section_bfd_section): Call it.
2161 (dwarf2_locate_sections): Update.
2162 (dwarf2_section_empty_p): Update.
2163 (dwarf2_read_section): Handle virtual sections.
2164 (locate_dwz_sections): Update.
2165 (create_dwp_hash_table): Document and handle V2 format.
2166 (locate_v1_virtual_dwo_sections): Renamed from
2167 locate_virtual_dwo_sections and update. All callers updated.
2168 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2169 Delete arg htab. Rename arg section_index to unit_index.
2170 All callers updated.
2171 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2172 All uses updated.
2173 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2174 (lookup_dwo_unit_in_dwp): Add V2 support.
2175 (dwarf2_locate_dwo_sections): Update.
2176 (dwarf2_locate_common_dwp_sections): Renamed from
2177 dwarf2_locate_dwp_sections and update. All callers updated.
2178 (dwarf2_locate_v2_dwp_sections): New function.
2179 (open_and_init_dwp_file): Add V2 support.
2180 (read_str_index): New locals str_section, str_offsets_section.
2181
2182 2013-10-04 Pedro Alves <palves@redhat.com>
2183
2184 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2185 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2186 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2187 describing comments with references to ptid.h.
2188 * common/ptid.h: Remove intro description of constructors,
2189 accessors and predicates.
2190 (struct ptid): Reformat.
2191 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2192 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2193 describing comments.
2194
2195 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2196
2197 * aix-thread.c (sync_threadlists): Add missing ')' in call
2198 to ptid_build.
2199
2200 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2201
2202 * procfs.c (procfs_init_inferior): Fix typo causing the build
2203 to fail.
2204
2205 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2206
2207 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2208
2209 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2210
2211 * mi/mi-main.c (run_one_inferior): Add function description.
2212 Make ARG a pointer to an integer whose value determines whether
2213 we should "run" or "start" the program.
2214 (mi_cmd_exec_run): Add handling of the "--start" option.
2215 Reject all other command-line options.
2216 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2217
2218 2013-10-04 Yao Qi <yao@codesourcery.com>
2219
2220 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2221 (struct notif_client) <pending_event>: Moved
2222 to struct remote_notif_state.
2223 <id>: New field.
2224 (struct remote_notif_state) <pending_event>: New field.
2225 (notif_event_xfree): Declare.
2226 * remote-notif.c (handle_notification): Adjust.
2227 (notif_event_xfree): New function.
2228 (do_notif_event_xfree): Call notif_event_xfree.
2229 (remote_notif_state_xfree): Call notif_event_xfree to free
2230 each element in field pending_event.
2231 * remote.c (discard_pending_stop_replies): Remove declaration.
2232 (discard_pending_stop_replies_in_queue): Declare.
2233 (remote_close): Call discard_pending_stop_replies_in_queue
2234 instead of discard_pending_stop_replies.
2235 (remote_start_remote): Adjust.
2236 (stop_reply_xfree): Call notif_event_xfree.
2237 (notif_client_stop): Adjust initialization.
2238 (remote_notif_remove_all): Rename it to ...
2239 (remove_stop_reply_for_inferior): ... this. Update comments.
2240 Don't check INF is NULL.
2241 (discard_pending_stop_replies): Return early if notif_state is
2242 NULL. Adjust. Don't check INF is NULL.
2243 (remote_notif_get_pending_events): Adjust.
2244 (discard_pending_stop_replies_in_queue): New function.
2245 (remote_wait_ns): Likewise.
2246
2247 2013-10-04 Yao Qi <yao@codesourcery.com>
2248
2249 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2250 (notif_queue): Remove.
2251 (remote_notif_process): Add one parameter 'notif_queue'.
2252 Update comments. Callers update.
2253 (remote_async_get_pending_events_token): Remove.
2254 (remote_notif_register_async_event_handler): Remove.
2255 (remote_notif_unregister_async_event_handler): Remove.
2256 (handle_notification): Add parameter 'notif_queue'. Update
2257 comments. Callers update.
2258 (notif_xfree): Remove.
2259 (remote_notif_state_allocate): New function.
2260 (remote_notif_state_xfree): New function.
2261 (_initialize_notif): Remove code to allocate queue.
2262 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2263 (struct remote_notif_state): New.
2264 (handle_notification): Update declaration.
2265 (remote_notif_process): Likewise.
2266 (remote_notif_register_async_event_handler): Remove.
2267 (remote_notif_unregister_async_event_handler): Remove.
2268 (remote_notif_state_allocate): Declare.
2269 (remote_notif_state_xfree): Declare.
2270 * remote.c (struct remote_state) <notif_state>: New field.
2271 (remote_close): Don't call
2272 remote_notif_unregister_async_event_handler. Call
2273 remote_notif_state_xfree.
2274 (remote_open_1): Don't call
2275 remote_notif_register_async_event_handler. Call
2276 remote_notif_state_allocate.
2277
2278 2013-10-04 Yao Qi <yao@codesourcery.com>
2279
2280 * varobj.c (create_child_with_value): Remove 'const' from the
2281 type of parameter 'name'.
2282 (varobj_add_child): Likewise.
2283 (install_dynamic_child): Remove 'const' from the type of
2284 parameter 'name'.
2285 (varobj_add_child): Likewise.
2286 (create_child_with_value): Likewise. Update comments. Don't
2287 duplicate 'name'.
2288 (update_dynamic_varobj_children): Duplicate 'name'
2289 and pass it to install_dynamic_child.
2290
2291 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2292
2293 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2294 conversion logic to occur after PyLong_Check. Comment on order
2295 change significance.
2296 * python/py-arch.c (archpy_disassemble): Comment on order of
2297 conversion for integers and longs.
2298
2299 2013-10-03 Pedro Alves <palves@redhat.com>
2300
2301 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2302 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2303 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2304 PTRACE_O_TRACEFORK is not supported.
2305 (linux_test_for_tracesysgood): New function.
2306 (linux_test_for_tracefork): New function, factored out from
2307 linux_check_ptrace_features, and also don't kill child_pid here.
2308
2309 2013-10-03 Tristan Gingold <gingold@adacore.com>
2310
2311 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2312 Remove verbose error reporting. Use detected state to
2313 thread_set_state call.
2314 (i386_darwin_dr_get): Fix return type. Remove verbose error
2315 report.
2316 Remove trailing spaces.
2317
2318 2013-10-02 Pedro Alves <palves@redhat.com>
2319
2320 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2321 val_print_optimized_out.
2322 * jv-valprint.c (java_print_value_fields): Likewise.
2323 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2324 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2325 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2326 new optimized out value.
2327 * findvar.c (address_from_register): Likewise.
2328 * frame.c (put_frame_register): Tweak error string to say the
2329 register was not saved, rather than optimized out.
2330 * infcmd.c (default_print_one_register_info): Adjust call to
2331 val_print_optimized_out. Use value_of_register instead of
2332 get_frame_register_value.
2333 * mi/mi-main.c (output_register): Use value_of_register instead of
2334 get_frame_register_value.
2335 * valprint.c (valprint_check_validity): Likewise.
2336 (val_print_optimized_out): New value parameter. If the value is
2337 lval_register, print <not saved> instead.
2338 (value_check_printable, val_print_scalar_formatted): Adjust calls
2339 to val_print_optimized_out.
2340 * valprint.h (val_print_optimized_out): New value parameter.
2341 * value.c (struct value) <optimized_out>: Extend comment.
2342 (error_value_optimized_out): New function.
2343 (require_not_optimized_out): Use it. Use a different string for
2344 lval_register values.
2345 * value.h (error_value_optimized_out): New declaration.
2346 * NEWS: Mention <not saved>.
2347
2348 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2349
2350 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2351 strcmp to compare two symtab filenames.
2352
2353 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2354
2355 * symtab.c (search_symbols_equal): Delete.
2356 (sort_search_symbols_remove_dups): Replace call to
2357 search_symbols_equal by call to compare_search_syms,
2358 adjusting as necessary.
2359
2360 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2361
2362 PR python/15579
2363 * python/python.c: Document gdb.execute command in Python help.
2364
2365 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2366
2367 * python/py-frame.c (frame_info_to_frame_object): Use
2368 gdbpy_convert_exception. Clean up Python object on failure.
2369
2370 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2371
2372 * python/lib/gdb/command/frame_filters.py
2373 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2374 (ShowFrameFilterPriority.invoke): Ditto.
2375
2376 2013-10-01 Keith Seitz <keiths@redhat.com>
2377
2378 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2379 (parse_linespec): Make 'argptr' const.
2380 Remove temporary cast of 'argptr' to const char **.
2381 (decode_line_full): Pass const pointer to parse_linespec.
2382 (decode_line_1): Likewise.
2383 (decode_objc): Make local variable 'new_argptr' const.
2384 (find_function_symbols): Remove temporary cast to char *
2385 to find_imps.
2386 * objc-lang.c (find_imps): Make argument 'method' const.
2387 Return const.
2388 * objc-lang.h (find_imps): Likewise.
2389
2390 2013-10-01 Keith Seitz <keiths@redhat.com>
2391
2392 * completer.c (skip_quoted_chars): Make all arguments const.
2393 Return const.
2394 (skip_quoted): Likewise.
2395 * completer.h (skip_quoted_chars): Likewise.
2396 (skip_quoted): Likewise.
2397 * defs.h (skip_quoted): Remove duplicate declaration.
2398 * jv-exp.y: Include completer.h.
2399 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2400 * p-exp.y: Include completer.h.
2401
2402 2013-10-01 Keith Seitz <keiths@redhat.com>
2403
2404 * c-exp.y (parse_number): Make first argument const.
2405 Make a copy of the input to manipulate.
2406 (c_parse_escape): Make first argument const.
2407 Make local variable 'tokptr' const.
2408 (parse_string_or_char): Make first two arguments const.
2409 (macro_original_text): Make const.
2410 (lex_one_token): Make local variable 'tokstart' const.
2411 Likewise for local variables named 'p'.
2412 Cast away const for struct stoken (temporary).
2413 * c-lang.h (c_parse_escpae): Make first argument const.
2414 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2415 const.
2416 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2417 var_string case.
2418 * f-exp.y (parse_number): Make first argument const.
2419 (match_string_literal): Make local variable 'tokstart'
2420 const.
2421 (yylex): Make local variable 'p' const.
2422 Cast away const for struct stoken (temporary).
2423 * go-exp.y (parse_number): Make first argument const.
2424 (parse_string_or_char): Likewise.
2425 Make local variable 'tokstart' const.
2426 (lex_one_token): Likewise for numerous locals called 'p'.
2427 Cast away const for struct stoken (temporary).
2428 * jv-exp.y (parse_number): Make first argument const.
2429 Make local variables 'tokstart' and 'tokptr' const.
2430 Cast away const for call to skip_quoted (temporary).
2431 (yylex): Make local variable 'p' const.
2432 Cast away const for struct stoken (temporary).
2433 * m2-exp.y (parse_number): Make local variable 'p' const.
2434 (yylex): Likewise for 'tokstart'.
2435 Cast away const for struct stoken (temporary).
2436 Make local variable 'p' const.
2437 * macroexp.c (get_character_constant): Pass a const string
2438 to c_parse_escape.
2439 (get_string_literal): Likewise.
2440 (macro_expand_next): Make first argument const.
2441 Cast away const for init_shared_buffer.
2442 * macroexp.h (macro_expand_next): Make first argument const.
2443 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2444 Pass a const string to c_parse_escape.
2445 Make local variables 'p' and 'namestart' const.
2446 * parse.c (lexptr): Make const.
2447 (prev_lexptr): Likewise.
2448 (find_template_name_end): Return const.
2449 Make argument const, too.
2450 (parse_exp_in_context): Make first argument const.
2451 Remove the entire const_hack.
2452 (parse_exp_in_context_1): Make first argument const.
2453 * parser-defs.h (find_template_name_end): Return const.
2454 Make argument const, too.
2455 (lexptr): Make const.
2456 (prev_lexptr): Likewise.
2457 * utils.c (parse_escape): Make second argument const.
2458 * utils.h (parse_escape): Likewise.
2459
2460 2013-10-01 Keith Seitz <keiths@redhat.com>
2461
2462 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2463 is now const.
2464 (block_lookup): Make 'raw_name' and 'name' const.
2465 * ada-lex.l (processString): Update for struct stoken.ptr.
2466 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2467 (operator_stoken): Likewise.
2468 (lex_one_token): Remove temporary cast to char * for
2469 'yylval.sval.ptr'.
2470 * f-exp.y (yylex): Likewise.
2471 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2472 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2473 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2474 'yylval.sval.ptr'.
2475 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2476 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2477 * linespec.c (struct ls_parser): Make 'stream' const.
2478 (find_parameter_list_end): Make argument 'input' and local
2479 variable 'p' const.
2480 (linespec_lexer_lex_string): Make local variables 'start' and
2481 'p' const.
2482 Use skip_spaces_const instead of skip_spaces.
2483 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2484 const.
2485 (parse_linespec): Temporarily cast 'argptr' to const for
2486 'parser->lexer.stream'.
2487 * m2-exp.y (yylex): Remove temporary cast to char * for
2488 'yylval.sval.ptr'.
2489 * objc-lang.c (add_msglist): Make local variable 'p' const.
2490 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2491 (exp : STRING): Make 'sp' const.
2492 (parse_number): Make argument 'p' const.
2493 * parser-defs.h (struct stoken): Make 'ptr' const.
2494
2495 2013-10-01 Doug Evans <dje@google.com>
2496
2497 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2498
2499 2013-10-01 Yao Qi <yao@codesourcery.com>
2500
2501 * varobj.c (c_value_of_root): Remove declaration.
2502 (cplus_value_of_root, java_value_of_root): Likewise.
2503 (ada_value_of_root): Likewise.
2504 (struct language_specific) <value_of_root>: Remove.
2505 (languages): Update initialization.
2506 (check_scope): Move earlier.
2507 (c_value_of_root): Move earlier and rename to ...
2508 (value_of_root_1): ... this.
2509 (value_of_root): Caller update.
2510 (cplus_value_of_root, java_value_of_root): Remove.
2511 (ada_value_of_root): Remove.
2512
2513 2013-10-01 Yao Qi <yao@codesourcery.com>
2514
2515 * varobj.c (varobj_format_string): Remove "unknown".
2516 (languages): Remove the first element.
2517 * varobj.h (enum varobj_languages): Remove vlang_c.
2518
2519 2013-10-01 Yao Qi <yao@codesourcery.com>
2520
2521 * varobj.c (struct language_specific) <language>: Remove.
2522 (languages): Update the initialization.
2523
2524 2013-10-01 Yao Qi <yao@codesourcery.com>
2525
2526 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2527 "solib-target.h". Include "windows-tdep.h".
2528 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2529 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2530 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2531 windows-tdep.o to gdb_target_obs.
2532
2533 2013-10-01 Yao Qi <yao@codesourcery.com>
2534
2535 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2536 "solib-target.h".
2537 (amd64_windows_init_abi): Don't call set_solib_ops and
2538 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2539 windows_init_abi instead.
2540 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2541 "solib-target.h".
2542 (i386_cygwin_init_abi): Don't call set_solib_ops,
2543 set_gdbarch_has_dos_based_file_system and
2544 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2545 windows_init_abi instead.
2546 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2547 (windows_init_abi): New function.
2548 (windows_iterate_over_objfiles_in_search_order): Make it
2549 static.
2550 * windows-tdep.h (windows_init_abi): Declare.
2551 (windows_iterate_over_objfiles_in_search_order): Remove
2552 declaration.
2553
2554 2013-10-01 Jerome Guitton <guitton@adacore.com>
2555
2556 Checked in by Joel Brobecker <brobecker@adacore.com>
2557 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2558 incomplete dictionnary instead of None in case of missing
2559 environment variables.
2560 (elinos_init): in case of an incomplete environment, best
2561 effort to load system libraries instead of abort.
2562
2563 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2564
2565 * ada-lang.c (ada_has_this_exception_support): Ignore
2566 mst_solib_trampoline minimal symbols.
2567
2568 2013-09-30 Tristan Gingold <gingold@adacore.com>
2569
2570 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2571 hardware watchpoint.
2572 (i386_darwin_dr_set): Support 32 and 64 bit states.
2573 (i386_darwin_dr_get): Likewise.
2574 (i386_darwin_dr_set_control): Make static.
2575 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2576 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2577
2578 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2579
2580 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2581 Replace TIDGET with ptid_get_lwp.
2582 Replace GET_LWP with ptid_get_lwp.
2583 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2584 Replace BUILD_THREAD with ptid_build.
2585 Replace BUILD_LWP with ptid_build.
2586 Replace PIDGET with ptid_get_pid.
2587 Replace TIDGET with ptid_get_lwp.
2588 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2589 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2590 Replace TIDGET with ptid_get_lwp.
2591 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2592 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2593 Replace TIDGET with ptid_get_lwp.
2594 Replace GET_LWP with ptid_get_lwp.
2595 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2596 * auxv.c: Likewise.
2597 * breakpoint.c: Likewise.
2598 * common/ptid.c (ptid_is_pid): Condense check for
2599 null_ptid and minus_one_ptid.
2600 (ptid_lwp_p): New function.
2601 (ptid_tid_p): New function.
2602 * common/ptid.h: Update comments for accessors.
2603 (ptid_lwp_p): New prototype.
2604 (ptid_tid_p): New prototype.
2605 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2606 * gcore.c: Replace PIDGET with ptid_get_pid.
2607 * gdbthread.h: Likewise.
2608 * gnu-nat.c: Likewise.
2609 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2610 Replace TIDGET with ptid_get_lwp.
2611 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2612 * hppanbsd-nat.c: Likewise.
2613 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2614 Replace TIDGET with ptid_get_lwp.
2615 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2616 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2617 * infcmd.c: Likewise.
2618 * inferior.h: Likewise.
2619 * inflow.c: Likewise.
2620 * infrun.c: Likewise.
2621 * linux-fork.c: Likewise.
2622 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2623 Replace GET_PID with ptid_get_pid.
2624 Replace is_lwp with ptid_lwp_p.
2625 Replace GET_LWP with ptid_get_lwp.
2626 Replace BUILD_LWP with ptid_build.
2627
2628 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2629
2630 * common/linux-btrace.c: Move sys/syscall.h out of the
2631 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2632 Also check for SYS_perf_event_open before attempting to buid.
2633
2634 2013-09-27 Doug Evans <dje@google.com>
2635
2636 * dwarf2read.c (dwarf2_section_info): Add comment.
2637 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2638 All uses updated.
2639 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2640 (dwarf2_read_section): Delete unused local "header". Add section
2641 name to error message.
2642 (create_dwo_in_dwp): Tweak comment.
2643 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2644
2645 * dwarf2read.c (die_reader_specs): Tweak comment.
2646 (get_section_bfd_owner, get_section_bfd_section): New functions.
2647 (get_section_name, get_section_file_name): New functions.
2648 (get_section_id, get_section_flags): New functions.
2649 (*): Use new functions to access section fields.
2650
2651 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2652 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2653 arg "htab". All callers updated.
2654 (create_debug_types_hash_table): Remove redundant copy of
2655 abbrev_section.
2656 (create_dwo_in_dwp): Tweak comments.
2657 (read_str_index): Tweak comment. Record dwarf form name in static
2658 local.
2659
2660 2013-09-27 Pedro Alves <palves@redhat.com>
2661
2662 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2663 (remote_filename_p): Add comment.
2664 * remote.c (remote_filename_p): Adjust to use
2665 REMOTE_SYSROOT_PREFIX.
2666 * solib.c (solib_find): When deciding whether we need to add a
2667 directory separator, check whether the sysroot is "remote:"
2668 instead of checking whether the patch has a drive spec. Add
2669 comments.
2670
2671 2013-09-27 Pedro Alves <palves@redhat.com>
2672
2673 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2674 Delete fields.
2675 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2676 directly.
2677
2678 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 Fix set debug frame output.
2681 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2682 SENTINEL_FRAME entry lower to match enum frame_type order.
2683
2684 2013-09-26 Pierre Muller <muller@sourceware.org>
2685
2686 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2687 AMD64_R15_REGNUM when a register index is expected.
2688 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2689 Substitute in array.
2690 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2691 (amd64_push_arguments): Substitute in integer_regnum array.
2692
2693 2013-09-25 Doug Evans <dje@google.com>
2694
2695 * objfiles.c (allocate_objfile): Move comment to better place.
2696
2697 New option "set debug symfile on".
2698 * NEWS: Mention "set debug symfile".
2699 * Makefile.in (SFILES): Add symfile-debug.c.
2700 (COMMON_OBS): Add symfile-debug.o.
2701 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2702 objfile's symbol functions.
2703 * objfiles.h (objfile_set_sym_fns): Declare.
2704 * symfile-debug.c: New file.
2705 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2706 objfile's symbol functions.
2707 (reread_symbols): Ditto.
2708
2709 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2710 All uses updated.
2711 (add_symtab_fns): Update prototype.
2712 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2713 (registered_sym_fns): ... this.
2714 (symtab_fns): Update.
2715 (add_symtab_fns): New arg "flavour". All callers updated.
2716 (find_sym_fns): Rewrite to use new sym_fns registry.
2717
2718 * symfile.h (struct sym_fns): Add "objfile" argument to
2719 sym_read_linetable. All uses updated.
2720
2721 * symtab.c (domain_name, search_domain_name): New functions.
2722 * symtab.h (domain_name, search_domain_name): Declare.
2723
2724 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2725 map_matching_symbols so objfile is first. All uses updated.
2726 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2727 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2728
2729 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2730
2731 PR shlibs/8882
2732 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2733 link map entries.
2734
2735 2013-09-24 Doug Evans <dje@google.com>
2736
2737 * objfiles.c (free_objfile): Move comment.
2738
2739 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2740
2741 * ada-exp.y (string_to_operator): Delete.
2742 (dummy_string_to_ada_operator): Delete.
2743
2744 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2745
2746 Revert:
2747 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2748 amd64-tdep.c.
2749 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2750 call_dummy_integer_regs, and classify.
2751 * amd64-tdep.h (amd64_classify): Add declaration.
2752 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2753 (amd64_reg_class): Delete, moved to i386-tdep.h.
2754 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2755 Replace call to amd64_classify by call to tdep->classify.
2756 (amd64_push_arguments): Get the list of registers to use for
2757 passing integer parameters from the gdbarch tdep structure,
2758 rather than using a hardcoded one. Replace calls to amd64_classify
2759 by calls to tdep->classify.
2760 (amd64_push_dummy_call): Get the register number used for
2761 the "hidden" argument from tdep->call_dummy_integer_regs.
2762 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2763 and tdep->call_dummy_integer_regs. Set tdep->classify.
2764
2765 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2766
2767 Revert:
2768 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2769 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2770 where tdep->memory_args_by_pointer is non-zero.
2771
2772 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2773
2774 Revert:
2775 * i386-tdep.h (struct gdbarch_tdep): Add new field
2776 integer_param_regs_saved_in_caller_frame.
2777 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2778 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2779
2780 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2781
2782 * amd64-windows-tdep.c: #include "value.h"
2783 (amd64_windows_classify): Delete.
2784 (amd64_windows_passed_by_integer_register)
2785 (amd64_windows_passed_by_xmm_register)
2786 (amd64_windows_passed_by_pointer)
2787 (amd64_windows_adjust_args_passed_by_pointer)
2788 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2789 (amd64_windows_push_dummy_call): New functions.
2790 (amd64_windows_init_abi): Remove setting of
2791 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2792 tdep->classify, tdep->memory_args_by_pointer and
2793 tdep->integer_param_regs_saved_in_caller_frame.
2794 Add call to set_gdbarch_push_dummy_call.
2795
2796 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2797
2798 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2799 objfile->original_name.
2800
2801 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2802
2803 Pass down original filename for objfile.
2804 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2805 * elfread.c (elf_symfile_read): Likewise.
2806 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2807 longer set ORIGINAL_NAME.
2808 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2809 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2810 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2811 symbol_file_add_from_bfd call.
2812 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2813 (macho_check_dsym): Add parameter filenamep. Change function comment.
2814 Set *filenamep.
2815 (macho_symfile_read): New variable dsym_filename. Update
2816 macho_check_dsym call. Use it for symbol_file_add_separate.
2817 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2818 it. Use it for objfile->original_name.
2819 (objfile_name): Return OBFD's filename, if available.
2820 * objfiles.h (allocate_objfile): Add new parameter name.
2821 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2822 * symfile-mem.c (symbol_file_add_from_memory): Update
2823 symbol_file_add_from_bfd call.
2824 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2825 comment for it.
2826 (symbol_file_add_with_addrs): New parameter name, add function comment
2827 for it. Remove variable name. Update allocate_objfile call.
2828 (symbol_file_add_separate): New parameter name, add function comment
2829 for it. Update symbol_file_add_with_addrs call.
2830 (symbol_file_add_from_bfd): New parameter name. Update
2831 symbol_file_add_with_addrs call.
2832 (symbol_file_add): Update symbol_file_add_from_bfd call.
2833 (reread_symbols): New variable original_name. Save
2834 objfile->original_name by it.
2835 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2836 second parameter.
2837
2838 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2839
2840 Code cleanup: Add objfile_name accessor function.
2841 * ada-lang.c (is_known_support_routine): Use objfile_name.
2842 * auto-load.c (source_gdb_script_for_objfile)
2843 (auto_load_objfile_script): Likewise.
2844 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2845 * dbxread.c (dbx_symfile_read): Likewise.
2846 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2847 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2848 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2849 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2850 (lookup_dwp_signatured_type, lookup_dwo_unit)
2851 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2852 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2853 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2854 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2855 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2856 (read_subrange_type, load_partial_dies, read_partial_die)
2857 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2858 (die_containing_type, build_error_marker_type, lookup_die_type)
2859 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2860 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2861 (get_DW_AT_signature_type, write_psymtabs_to_index)
2862 (save_gdb_index_command): Likewise.
2863 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2864 Likewise.
2865 * expprint.c (dump_subexp_body_standard): Likewise.
2866 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2867 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2868 original_name.
2869 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2870 obj_name, use objfile_name for it, use the variable.
2871 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2872 Use objfile_name.
2873 * machoread.c (macho_symtab_read, macho_check_dsym)
2874 (macho_symfile_relocate): Likewise.
2875 * maint.c (maintenance_translate_address): Likewise.
2876 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2877 * minsyms.c (install_minimal_symbols): Likewise.
2878 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2879 original_name.
2880 (filter_overlapping_sections): Use objfile_name.
2881 (objfile_name): New function.
2882 * objfiles.h (struct objfile): Rename field name to original_name.
2883 (objfile_name): New prototype.
2884 * printcmd.c (sym_info, address_info): Use objfile_name.
2885 * probe.c (parse_probes, collect_probes, compare_probes)
2886 (info_probes_for_ops): Likewise.
2887 * progspace.c (clone_program_space): Likewise.
2888 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2889 (maintenance_info_psymtabs): Likewise.
2890 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2891 (source_section_scripts): Likewise.
2892 * python/py-objfile.c (objfpy_get_filename): Likewise.
2893 * python/py-progspace.c (pspy_get_filename): Likewise.
2894 * solib-aix.c (solib_aix_get_toc_value): Likewise.
2895 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
2896 * solib.c (solib_read_symbols): Likewise.
2897 * stabsread.c (scan_file_globals): Likewise.
2898 * stap-probe.c (handle_stap_probe): Likewise.
2899 * symfile.c (symbol_file_clear, separate_debug_file_exists)
2900 (find_separate_debug_file_by_debuglink): Likewise.
2901 (reread_symbols): Likewise. Use the objfile field name renamed to
2902 original_name.
2903 (allocate_symtab): Use objfile_name.
2904 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
2905 (dump_objfile, dump_msymbols, dump_symtab_1)
2906 (maintenance_print_msymbols, maintenance_print_objfiles)
2907 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
2908 * target.c (target_translate_tls_address, target_info): Likewise.
2909 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
2910 objfile_name.
2911
2912 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2913
2914 Code cleanup.
2915 * probe.c (parse_probes): Rename variable objfile_name to
2916 objfile_namestr.
2917
2918 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2919
2920 Remove solib-sunos.c.
2921 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
2922 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
2923 * objfiles.c (rt_common_objfile): Remove.
2924 (free_objfile): Remove rt_common_objfile comparison.
2925 * objfiles.h (rt_common_objfile): Remove.
2926 * solib-sunos.c: Remove.
2927 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
2928
2929 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 Remove a.out NetBSD and OpenBSD hosts.
2932 * NEWS (Removed native configurations): New.
2933 * config/arm/nbsdaout.mh: Remove.
2934 * config/i386/nbsdaout.mh: Remove.
2935 * config/i386/obsdaout.mh: Remove.
2936 * config/m68k/nbsdaout.mh: Remove.
2937 * config/sparc/nbsdaout.mh: Remove.
2938 * config/vax/nbsdaout.mh: Remove.
2939 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
2940 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
2941 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
2942 error.
2943 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
2944 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
2945 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
2946
2947 2013-09-23 Tom Tromey <tromey@redhat.com>
2948
2949 * linespec.c (struct minsym_and_objfile): Remove.
2950 (minsym_and_objfile_d): Remove.
2951 (struct linespec, struct collect_info, linespec_parse_basic)
2952 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
2953 (compare_msymbols, find_method, find_function_symbols)
2954 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
2955 (add_minsym, search_minsyms_for_name): Update.
2956
2957 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2958
2959 * regcache.c: Add include of valprint.h.
2960 (dump_endian_bytes): Delete.
2961 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
2962
2963 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
2964
2965 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
2966
2967 2013-09-19 Pedro Alves <palves@redhat.com>
2968
2969 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
2970 breakpoints.
2971
2972 2013-09-19 Pedro Alves <palves@redhat.com>
2973 Thomas Schwinge <thomas@codesourcery.com>
2974 Yue Lu <hacklu.newborn@gmail.com>
2975
2976 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
2977 Take a gdb_byte pointer instead of a char pointer.
2978
2979 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
2980 gnu_xfer_partial helper.
2981 (gnu_xfer_partial): New function.
2982 (gnu_target): Don't install a deprecated_xfer_memory hook.
2983 Install a to_xfer_partial hook.
2984
2985 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2986
2987 Constification.
2988 * main.c (captured_main): Replace catch_command_errors by
2989 catch_command_errors_const. Twice.
2990 * symfile.c (symbol_file_add_main_1): Make args parameter const.
2991 (symbol_file_add): Make name parameter const.
2992 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
2993 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
2994 variable name. Change their usage accordingly.
2995 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
2996 const.
2997 (symbol_file_add_main): Make args parameter const.
2998
2999 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3000 Ulrich Weigand <uweigand@de.ibm.com>
3001
3002 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3003 of c_value member.
3004 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3005
3006 2013-09-18 Pedro Alves <palves@redhat.com>
3007 Yue Lu <hacklu.newborn@gmail.com>
3008
3009 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3010 (gnu_create_inferior)
3011 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3012 (set_sig_thread_cmd): Use the lwpid field of ptids to
3013 store/extract thread ids instead of the tid field.
3014 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3015
3016 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3017
3018 * infcmd.c (default_print_one_register_info): Add detection of
3019 optimized out values.
3020 (default_print_registers_info): Switch to using
3021 get_frame_register_value.
3022
3023 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3024
3025 * infrun.c (handle_inferior_event): Check if we know the
3026 function start address before setting a resume breakpoint.
3027
3028 2013-09-18 Pedro Alves <palves@redhat.com>
3029
3030 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3031 minus_one_ptid instead of looking at the ptid's tid field and
3032 comparing that to -1.
3033
3034 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3035
3036 * main.h (get_gdb_program_name): Remove extra whitespace.
3037
3038 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3039
3040 * main.h (get_gdb_program_name): Add declaration.
3041 * main.c (get_gdb_program_name): Add definition.
3042
3043 2013-09-17 Doug Evans <dje@google.com>
3044
3045 * dwarf2read.c: Move definitions of complaint functions to after
3046 forward declarations of local functions.
3047
3048 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3049 Pedro Alves <palves@redhat.com>
3050
3051 PR gdb/11568
3052 * breakpoint.c (remove_threaded_breakpoints): New function.
3053 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3054 as thread_exit observer.
3055
3056 2013-09-17 Pedro Alves <palves@redhat.com>
3057
3058 PR gdb/15911
3059 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3060 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3061 * corelow.c (core_open):
3062 * frame.h (print_stack_frame, print_frame_info): New
3063 'set_current_sal' parameter.
3064 * infcmd.c (finish_command, kill_command): Adjust call to
3065 print_stack_frame.
3066 * inferior.c (inferior_command): Likewise.
3067 * infrun.c (normal_stop): Likewise.
3068 * linux-fork.c (linux_fork_context): Likewise.
3069 * record-full.c (record_full_goto_entry, record_full_restore):
3070 Likewise.
3071 * remote-mips.c (common_open): Likewise.
3072 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3073 Use it.
3074 (print_frame_info): New 'set_current_sal' parameter. Set the last
3075 displayed sal depending on the new paremeter instead of looking at
3076 print_what.
3077 (backtrace_command_1, select_and_print_frame, frame_command)
3078 (current_frame_command, up_command, down_command): Adjust call to
3079 print_stack_frame.
3080 * thread.c (print_thread_info, restore_selected_frame)
3081 (do_captured_thread_select): Adjust call to print_stack_frame.
3082 * tracepoint.c (tfind_1): Likewise.
3083 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3084 (mi_cmd_stack_info_frame): Likewise.
3085 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3086 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3087
3088 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3089
3090 * value.c (isvoid_internal_fn): Replace "parameter" with
3091 "argument".
3092
3093 2013-09-16 Stan Shebs <stan@codesourcery.com>
3094
3095 * README: Update references to writing code for GDB.
3096 * configure.ac (build_warnings): Remove obsolete comment.
3097 * configure: Regenerate.
3098 * gdbarch.sh: Remove references to gdbint.texinfo.
3099 * gdbarch.h: Regenerate.
3100 * gdbtypes.c (objfile_type): Remove comments referencing internals
3101 manual and D10V.
3102
3103 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3104
3105 * NEWS: Mention new convenience function $_isvoid.
3106 * value.c (isvoid_internal_fn): New function.
3107 (_initialize_values): Add new convenience function $_isvoid.
3108
3109 2013-09-16 Pierre Muller <muller@sourceware.org>
3110
3111 * arm-linux-tdep.c: Add "elf/common.h" header.
3112 Remove AT_HWCAP macro definintion as it is provided in
3113 added include file.
3114 * s390-tdep.c: Remove system header <elf.h>
3115 Add "elf/common.h" header for AT_HWCAP definition.
3116 (s390_core_read_description): Use correct CORE_ADDR
3117 for hwcap local variable used as third parameter
3118 of function target_auxv_search.
3119
3120 2013-09-14 Pierre Muller <muller@sourceware.org>
3121 Tom Tromey <tromey@redhat.com>
3122 Pedro Alves <palves@redhat.com>
3123
3124 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3125 mode if operating system doesn't know O_CLOEXEC.
3126
3127 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3128
3129 Code cleanup.
3130 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3131 inner block.
3132
3133 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134
3135 * NEWS: Mention TDB support.
3136 * features/s390-tdb.xml: New file.
3137 * features/s390-te-linux64.xml: New file.
3138 * features/s390x-te-linux64.xml: New file.
3139 * features/Makefile (WHICH): Add new tdescs above.
3140 (s390-te-linux64-expedite): Set.
3141 (s390x-te-linux64-expedite): Set.
3142 * features/s390-te-linux64.c: New file (generated).
3143 * features/s390x-te-linux64.c: New file (generated).
3144 * regformats/s390-te-linux64.dat: New file (generated).
3145 * regformats/s390x-te-linux64.dat: New file (generated).
3146 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3147 (HWCAP_S390_TE): Likewise.
3148 (S390_TDB_DWORD0_REGNUM): Likewise.
3149 (S390_TDB_DWORD0_REGNUM): Likewise.
3150 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3151 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3152 (S390_TDB_ATIA_REGNUM): Likewise.
3153 (S390_TDB_R0_REGNUM): Likewise.
3154 (S390_TDB_R1_REGNUM): Likewise.
3155 (S390_TDB_R2_REGNUM): Likewise.
3156 (S390_TDB_R3_REGNUM): Likewise.
3157 (S390_TDB_R4_REGNUM): Likewise.
3158 (S390_TDB_R5_REGNUM): Likewise.
3159 (S390_TDB_R6_REGNUM): Likewise.
3160 (S390_TDB_R7_REGNUM): Likewise.
3161 (S390_TDB_R8_REGNUM): Likewise.
3162 (S390_TDB_R9_REGNUM): Likewise.
3163 (S390_TDB_R10_REGNUM): Likewise.
3164 (S390_TDB_R11_REGNUM): Likewise.
3165 (S390_TDB_R12_REGNUM): Likewise.
3166 (S390_TDB_R13_REGNUM): Likewise.
3167 (S390_TDB_R14_REGNUM): Likewise.
3168 (S390_TDB_R15_REGNUM): Likewise.
3169 (S390_NUM_REGS): Increase.
3170 (S390_IS_TDBREGSET_REGNUM): New macro.
3171 (s390_regmap_tdb): Declare.
3172 (s390_sizeof_tdbregset): Define.
3173 (tdesc_s390_te_linux64): Declare.
3174 (tdesc_s390x_te_linux64): Likewise.
3175 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3176 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3177 (s390_regmap_tdb): New regmap.
3178 (s390_supply_tdb_regset): New function.
3179 (s390_tdb_regset): New regset.
3180 (s390_linux64v2_regset_sections): Add TDB regset to list.
3181 (s390x_linux64v2_regset_sections): Likewise.
3182 (s390_regset_from_core_section): Recognize TDB core note section.
3183 (s390_core_read_description): If HWCAP indicates TE support,
3184 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3185 (s390_gdbarch_init): Handle TDB regset.
3186 (_initialize_s390_tdep): Initialize new tdescs.
3187 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3188 (have_regset_tdb): New variable.
3189 (s390_native_supply): Support register invalidation.
3190 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3191 (check_regset): Treat ENODATA as "regset exists".
3192 (s390_linux_fetch_inferior_registers): Add TDB.
3193 (s390_read_description): Check for TDB existence and select
3194 appropriate tdesc.
3195 * gdbserver/Makefile.in (clean): Add removal of new makefile
3196 targets.
3197 (s390-te-linux64.c): New makefile target.
3198 (s390x-te-linux64.c): Likewise.
3199 * gdbserver/configure.srv (srv_regobj): Append new objects
3200 s390-te-linux64.o and s390x-te-linux64.o.
3201 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3202 s390x-te-linux64.xml, and s390-tdb.xml.
3203 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3204 declaration.
3205 (tdesc_s390_te_linux64): Likewise.
3206 (init_registers_s390x_te_linux64): Likewise.
3207 (tdesc_s390x_te_linux64): Likewise.
3208 (s390_check_regset): Treat ENODATA as "regset exists".
3209 (s390_arch_setup): Add TDB regset support.
3210 (initialize_low_arch): Initialize registers for new tdescs.
3211
3212 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3213
3214 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3215 (S390_IS_FPREGSET_REGNUM): New macro.
3216 * s390-tdep.c (s390_dwarf_regmap): Make const.
3217 (regnum_is_gpr_full): New function for replacing repeated code.
3218 (s390_pseudo_register_name): Use it.
3219 (s390_pseudo_register_type): Likewise.
3220 (s390_pseudo_register_read): Likewise.
3221 (s390_pseudo_register_write): Likewise.
3222 (s390_unwind_pseudo_register): Likewise.
3223 (s390_regmap_gregset): New format for regmap.
3224 (s390x_regmap_gregset): Likewise.
3225 (s390_regmap_fpregset): Likewise.
3226 (s390_regmap_upper): Likewise.
3227 (s390_regmap_last_break): Likewise.
3228 (s390_regmap_system_call): Likewise.
3229 (s390_supply_regset): Adjust to new regmap format.
3230 (s390_collect_regset): Likewise.
3231 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3232 (s390_native_collect): Likewise.
3233 (supply_gregset): Likewise.
3234 (fill_gregset): Likewise.
3235 (supply_fpregset): Likewise.
3236 (fill_fpregset): Likewise.
3237 (fetch_regset): Likewise.
3238 (store_regset): Likewise.
3239 (s390_linux_fetch_inferior_registers): Likewise.
3240 (s390_linux_fetch_inferior_registers): Likewise.
3241
3242 2013-09-12 Andrew Pinski <apinski@cavium.com>
3243
3244 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3245
3246 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3247
3248 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3249
3250 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3251
3252 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3253
3254 2013-09-06 Pedro Alves <palves@redhat.com>
3255
3256 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3257 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3258 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3259 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3260 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3261 gdb_stdlog.
3262
3263 2013-09-06 Pedro Alves <palves@redhat.com>
3264
3265 * remote-sim.c (dump_mem): Constify buf parameter.
3266 gdbsim_xfer_inferior_memory): Rename to ...
3267 (gdbsim_xfer_memory): ... this. Adjust interface as
3268 target_xfer_partial helper.
3269 (gdbsim_xfer_partial): New function.
3270 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3271 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3272
3273 2013-09-06 Pedro Alves <palves@redhat.com>
3274
3275 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3276 host_address_to_string, and send debug output to gdb_stdlog.
3277
3278 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3279
3280 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3281 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3282 gdb_target_obs for cris target.
3283 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3284 (cris_gdbarch_init): Move calls to
3285 set_gdbarch_fetch_tls_load_module_address and
3286 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3287 Add call to gdbarch_init_osabi.
3288 * cris-linux-tdep.c: New file.
3289 * cris-tdep.h: New file.
3290
3291 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3292
3293 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3294 to deprecated_init_ui_hook.
3295
3296 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3297
3298 * cli/cli-interp.c (_initialize_cli_interp): Add a
3299 command_loop_proc to interp_procs.
3300 * event-top.c (cli_command_loop): Change signature to match
3301 interp_command_loop_ftype.
3302 * event-top.h (cli_command_loop): Same.
3303 * interps.c (interp_new): Require every interpreter to have a
3304 command_loop_proc.
3305 (current_interp_command_loop): Just call the command_loop_proc on
3306 the current interpreter.
3307 * tui/tui-interp.c (_initialize_tui_interp): Add a
3308 command_loop_proc to interp_procs.
3309
3310 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3311
3312 * cris-tdep.c (cris_gdbarch_init): Add call to
3313 get_gdbarch_fetch_tls_load_module_address.
3314
3315 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3316
3317 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3318 (cris_elf_gregset_t): Rename from elf_gregset_t.
3319 (crisv32_elf_gregset_t): Adjust.
3320 (cris_supply_gregset, fetch_core_registers): Adjust.
3321
3322 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3323
3324 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3325
3326 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3327
3328 * defs.h (deprecated_command_loop_hook): Remove, including
3329 references in comments.
3330 * interps.c (current_interp_command_loop): No longer use
3331 deprecated_command_loop_hook.
3332 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3333 setup.
3334 * top.c (deprecated_command_loop_hook): Remove.
3335
3336 2013-09-05 Pedro Alves <palves@redhat.com>
3337
3338 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3339 local is now int instead of ULONGEST. Print it with %d
3340 instead of paddress.
3341
3342 2013-09-05 Tristan Gingold <gingold@adacore.com>
3343
3344 * MAINTAINERS: Remove avr maintainership.
3345
3346 2013-09-05 Pedro Alves <palves@redhat.com>
3347
3348 * findvar.c (value_of_register): Rework in terms of
3349 value_of_register_lazy.
3350
3351 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3352
3353 * symfile.c (add_symbol_file_command): Remove trailing
3354 whitespaces and blank line after comment.
3355
3356 2013-09-05 Pedro Alves <palves@redhat.com>
3357
3358 * tui/tui-regs.c (tui_register_format): Don't look at the
3359 register's name here. Return string representing register
3360 value instead of storing it in the data element.
3361 (tui_get_register): Compare register string representations
3362 instead of register value states and contents.
3363
3364 2013-09-05 Pedro Alves <palves@redhat.com>
3365
3366 PR tui/15933
3367 * tui/tui-regs.c (tui_show_registers): Show registers of the
3368 selected frame, not the current frame.
3369
3370 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3371
3372 * MAINTAINERS (Write After Approval): Add myself to the list.
3373
3374 2013-09-04 Doug Evans <dje@google.com>
3375
3376 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3377 (queue_and_load_dwo_tu): New function.
3378 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3379 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3380 Make dependent_cu optional.
3381 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3382 and an older .gdb_index is in use, queue and load all its TUs too.
3383
3384 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3387 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3388 variable search_flags.
3389 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3390 (OPF_RETURN_REALPATH): ... here.
3391 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3392 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3393 call. Twice.
3394 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3395 openp call.
3396 * solib.c (solib_find): Likewise. Four times.
3397 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3398 in the function comment and for the realpath_fptr variable.
3399 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3400 (find_and_open_source): Likewise. Twice.
3401 * symfile.c (symfile_bfd_open): Likewise, also twice.
3402
3403 2013-09-04 Doug Evans <dje@google.com>
3404
3405 * progspace.c (save_current_space_and_thread): Remove unnecessary
3406 call to save_current_inferior.
3407
3408 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3409
3410 * sh64-tdep.c (sh64_do_register): Return after printing message
3411 about unavailable register contents.
3412
3413 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3414 Pedro Alves <palves@redhat.com>
3415
3416 * symfile.c (add_symbol_file_command): Error out on unknown
3417 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3418 options and collapse into single conditional branch.
3419
3420 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3421
3422 * inf-child.c (inf_child_follow_fork): New parameter
3423 detach_fork.
3424 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3425 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3426 * inferior.h (detach_fork): Remove.
3427 * infrun.c (detach_fork): Adjust comment and make it
3428 static.
3429 (follow_fork): Pass detach_fork parameter to
3430 target_follow_fork.
3431 * linux-nat.c (linux_child_follow_fork): New parameter
3432 detach_fork.
3433 * target.c (target_follow_fork): New parameter detach_fork.
3434 Pass detach_fork as parameter and print its value.
3435 * target.h (struct target_ops) <to_follow_fork>: New int
3436 parameter.
3437 (target_follow_fork): New parameter detach_fork.
3438
3439 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3440
3441 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3442 Replace sec->bfd by sec->the_bfd_section->owner.
3443
3444 2013-09-03 Yao Qi <yao@codesourcery.com>
3445
3446 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3447 from linux_has_shared_address_space.
3448 (linux_has_shared_address_space): Call linux_is_uclinux.
3449 * linux-tdep.h (linux_is_uclinux): Declare.
3450 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3451 linux_is_uclinux.
3452
3453 2013-09-03 Yao Qi <yao@codesourcery.com>
3454
3455 * config/djgpp/fnchange.lst: Remove entry of
3456 i386-interix-nat.c and i386-interix-tdep.c.
3457 * configure.ac: Remove '*-*-interix*'.
3458 * configure: Re-generated.
3459 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3460 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3461 obsolete comments.
3462 * osabi.c (gdb_osabi_names): Remove "Interix".
3463
3464 2013-09-03 Yao Qi <yao@codesourcery.com>
3465
3466 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3467
3468 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3469
3470 * record.h (record_print_flag) <record_print_src_line,
3471 record_print_insn_range>: Rename into ...
3472 (record_print_flag) <record_print_src_line,
3473 record_print_insn_range>: ... this. Update all users.
3474
3475 2013-09-02 Pierre Muller <muller@sourceware.org>
3476
3477 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3478 error code.
3479
3480 2013-09-02 Pierre Muller <muller@sourceware.org>
3481
3482 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3483 by use of plongest function.
3484
3485 2013-09-02 Tristan Gingold <gingold@adacore.com>
3486
3487 * NEWS: Add entry mentioning support for native Windows x64
3488 SEH data.
3489
3490 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3491 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3492 (struct amd64_windows_frame_cache): New struct.
3493 (amd64_windows_w2gdb_regnum): New global.
3494 (pc_in_range, amd64_windows_frame_decode_epilogue)
3495 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3496 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3497 (amd64_windows_frame_this_id): New functions.
3498 (amd64_windows_frame_unwind): New static global.
3499 (amd64_windows_skip_prologue): New function.
3500 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3501 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3502 with amd64_windows_skip_prologue.
3503
3504 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3505
3506 GDB 7.6.1 released.
3507
3508 2013-08-30 Pedro Alves <palves@redhat.com>
3509
3510 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3511 SRC_AND_LOC.
3512
3513 2013-08-30 Pedro Alves <palves@redhat.com>
3514
3515 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3516 warning text.
3517
3518 2013-08-30 Pedro Alves <palves@redhat.com>
3519
3520 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3521 Adjust arguments to print_stack_frame.
3522
3523 2013-08-30 Pedro Alves <palves@redhat.com>
3524
3525 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3526
3527 2013-08-30 Pedro Alves <palves@redhat.com>
3528
3529 * frame.h (show_and_print_stack_frame): Delete declaration.
3530
3531 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3532
3533 PR python/15461
3534 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3535 (archpy_name): Check for valid architecture.
3536 (archpy_disassemble): Ditto.
3537
3538 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3539
3540 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3541 instead of "long long" in call to ptrace64.
3542
3543 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3544
3545 * mi/mi-interp.c (mi_command_loop): Change signature to match
3546 interp_command_loop_ftype.
3547 (mi1_command_loop): Remove.
3548 (mi2_command_loop): Remove.
3549 (mi3_command_loop): Remove.
3550 (mi_interpreter_resume): Remove setting of
3551 deprecated_command_loop_hook.
3552 (_initialize_mi_interp): Set mi_command_loop as the command loop
3553 callback.
3554
3555 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3556
3557 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3558 value_type.
3559
3560 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3561
3562 * value.c (allocate_value_contents): Make static.
3563 * value.h (allocate_value_contents): Remove prototype.
3564
3565 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3566
3567 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3568 of assembling value via allocate_value_lazy and attribute setter.
3569 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3570 assembling value via allocate_value_lazy and attribute setter.
3571 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3572 assembling value via allocate_value_lazy and attribute setter.
3573
3574 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3575
3576 * value.c (value_from_contents_and_address): Replace allocate_value and
3577 memcpy with value_from_contents.
3578
3579 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3580
3581 * python/py-framefilter.c (py_print_frame): Remove usage of
3582 PyString_AsString. Use python_string_to_host_string instead.
3583 Refactor function to work with a string as a new allocation
3584 instead of a pointer.
3585 (py_print_frame): Ditto.
3586 * python/lib/gdb/frames.py (return_list): Cain iterators together
3587 instead of adding them as a list.
3588 (_sort_list): Call return_list, and remove duplicate code.
3589 (execute_frame_filters): Convert iterator to a list with list().
3590 * python/lib/gdb/command/frame_filters.py
3591 (SetFrameFilterPriority._set_filter_priority): Convert priority
3592 attribute to an integer.
3593 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3594 wrapper function __next__.
3595 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3596 define as "str".
3597
3598 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3599
3600 PR python/15752
3601 * python/py-framefilter.c (apply_frame_filter): Check
3602 gdb_python_initialized. Exit if the Python frame-filter code
3603 cannot be initialized.
3604
3605 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3606
3607 PR cli/15842
3608 * top.c (print_gdb_version): Remove erroneous newline after help
3609 text.
3610
3611 2013-08-29 Yao Qi <yao@codesourcery.com>
3612
3613 * varobj.c (install_dynamic_child): Remove trailing space.
3614 Add one blank line after variable declaration.
3615
3616 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 PR gdb/15415
3619 * corefile.c (get_exec_file): Use exec_filename.
3620 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3621 * exec.c (exec_close): Free EXEC_FILENAME.
3622 (exec_file_attach): New variable canonical_pathname. Use
3623 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3624 EXEC_FILENAME.
3625 * exec.h (exec_filename): New.
3626 * inferior.c (print_inferior, inferior_command): Use
3627 PSPACE_EXEC_FILENAME.
3628 * mi/mi-main.c (print_one_inferior): Likewise.
3629 * progspace.c (clone_program_space, print_program_space): Likewise.
3630 * progspace.h (struct program_space): New field pspace_exec_filename.
3631 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3632 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3633
3634 2013-08-28 Will Newton <will.newton@linaro.org>
3635
3636 * common/linux-ptrace.c: Include stdint.h unconditionally.
3637
3638 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3639
3640 Code cleanup.
3641 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3642
3643 2013-08-28 Yao Qi <yao@codesourcery.com>
3644 Pedro Alves <palves@redhat.com>
3645
3646 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3647 instead of stdio_fileopen.
3648 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3649 .Call stderr_fileopen instead of stdio_fileopen.
3650 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3651 [__MINGW32__] (stderr_file_fputs): New function.
3652 (stderr_fileopen): New function.
3653 * ui-file.h (stderr_fileopen): Declare.
3654
3655 2013-08-27 Doug Evans <dje@google.com>
3656
3657 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3658 (struct dwarf2_per_cu_data): Ditto.
3659 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3660 (process_imported_unit_die): Ditto.
3661 (follow_die_sig_1): Simplify assert.
3662
3663 2013-08-27 Pedro Alves <palves@redhat.com>
3664
3665 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3666 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3667 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3668 windows_xfer_memory directly.
3669 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3670
3671 2013-08-27 Pedro Alves <palves@redhat.com>
3672
3673 * darwin-nat.c (darwin_xfer_memory): Delete.
3674 (_initialize_darwin_inferior): Don't install a
3675 deprecated_xfer_memory method.
3676
3677 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3678 Yao Qi <yao@codesourcery.com>
3679
3680 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3681 (parse_no_frames_option): Remove.
3682 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3683 (mi_cmd_stack_list_args): Adjust.
3684 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3685 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3686 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3687 Caller update.
3688 (list_args_or_locals): New parameter 'skip_unavailable'.
3689 Handle it.
3690 * valprint.c (scalar_type_p): Rename to ...
3691 (val_print_scalar_type_p): ... this. Make extern.
3692 (val_print, value_check_printable): Adjust.
3693 * valprint.h (val_print_scalar_type_p): Declare.
3694 * value.c (value_entirely_unavailable): New function.
3695 * value.h (value_entirely_unavailable): Declare.
3696
3697 * NEWS: Mention the new option "--skip-unavailable" to MI
3698 commands '-stack-list-locals', '-stack-list-arguments' and
3699 '-stack-list-variables'.
3700
3701 2013-08-27 Yao Qi <yao@codesourcery.com>
3702
3703 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3704 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3705 options.
3706 * mi/mi-getopt.c (mi_getopt): Remove.
3707 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3708 'error_on_unknown'.
3709 (mi_getopt): Call mi_getopt_1.
3710 (mi_getopt_silent): New.
3711 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3712
3713 2013-08-26 Doug Evans <dje@google.com>
3714
3715 PR symtab/15885
3716 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3717 .gdb_index is in use.
3718 * symfile.c (reread_symbols): Reset objfile->sf.
3719
3720 * NEWS: Document "mt print objfiles" now takes optional regexp.
3721 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3722 regexp of objfiles to print.
3723 (_initialize_symmisc): Update doc string for "mt print objfiles".
3724
3725 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3726 missing debug info checks.
3727
3728 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3729 Ulrich Weigand <uweigand@de.ibm.com>
3730
3731 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3732 line tables generated by XLC compiled binaries.
3733
3734 2013-08-23 Doug Evans <dje@google.com>
3735
3736 * symmisc.c (dump_symtab): Delete prototype.
3737 (dump_msymbols, dump_objfile): Ditto.
3738 (maintenance_info_symtabs): Mark as dont_repeat.
3739 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3740
3741 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3742 debugging printf to better location.
3743
3744 2013-08-23 Pedro Alves <palves@redhat.com>
3745
3746 * target.c (target_read_live_memory): Change type of 'ret' local
3747 to LONGEST.
3748
3749 2013-08-23 Pedro Alves <palves@redhat.com>
3750
3751 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3752 (remote_read_bytes): Change return type to LONGEST, and adjust to
3753 return a target_xfer_error on error.
3754 (remote_xfer_memory): Delete.
3755 (remote_flash_write): Change type of 'ret' local to LONGEST.
3756 (remote_xfer_partial, remote_xfer_partial): Adjust.
3757 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3758
3759 2013-08-23 Pierre Muller <muller@sourceware.org>
3760
3761 ARI fix: Push # directives to start of line.
3762 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3763
3764 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3765
3766 PR gdb/15501
3767 * breakpoint.c (enable_command, disable_command): Iterate over
3768 all specified breakpoint locations.
3769
3770 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3771
3772 * common/linux-ptrace.c (linux_fork_to_function): Push #
3773 directives to the start of the line.
3774 (linux_check_ptrace_features): Fix warning message to use
3775 the "_" markup.
3776
3777 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3778
3779 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3780 nat/linux-waitpid.h.
3781 (linux-waitpid.o): New object file rule.
3782 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3783 (current_ptrace_options): Moved from linux-nat.c.
3784 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3785 parameters.
3786 (linux_fork_to_function): New function.
3787 (linux_grandchild_function): Likewise.
3788 (linux_child_function): Likewise.
3789 (linux_check_ptrace_features): New function, heavily
3790 based on linux-nat.c:linux_test_for_tracefork.
3791 (linux_enable_event_reporting): New function.
3792 (ptrace_supports_feature): Likewise.
3793 (linux_supports_tracefork): Likewise.
3794 (linux_supports_traceclone): Likewise.
3795 (linux_supports_tracevforkdone): Likewise.
3796 (linux_supports_tracesysgood): Likewise.
3797 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3798 gdbserver/linux-low.c.
3799 (linux_enable_event_reporting): New declaration.
3800 (linux_supports_tracefork): Likewise.
3801 (linux_supports_traceclone): Likewise.
3802 (linux_supports_tracevforkdone): Likewise.
3803 (linux_supports_tracesysgood): Likewise.
3804 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3805 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3806 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3807 * config/arm/linux.mh (NATDEPFILES): Likewise.
3808 * config/i386/linux.mh (NATDEPFILES): Likewise.
3809 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3810 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3811 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3812 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3813 * config/mips/linux.mh (NATDEPFILES): Likewise.
3814 * config/pa/linux.mh (NATDEPFILES): Likewise..
3815 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3816 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3817 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3818 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3819 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3820 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3821 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3822 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3823 ptrace's 4th argument's types.
3824 Check the type of PTRACE_TYPE_ARG4.
3825 * configure: Regenerate.
3826 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3827 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3828 (linux_supports_tracefork_flag): Remove.
3829 (linux_supports_tracesysgood_flag): Likewise.
3830 (linux_supports_tracevforkdone_flag): Likewise.
3831 (current_ptrace_options): Moved to
3832 common/linux-ptrace.c.
3833 (linux_tracefork_child): Remove.
3834 (my_waitpid): Remove.
3835 (linux_test_for_tracefork): Renamed to
3836 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3837 (linux_test_for_tracesysgood): Remove.
3838 (linux_supports_tracesysgood): Remove.
3839 (linux_supports_tracefork): Remove.
3840 (linux_supports_tracevforkdone): Remove.
3841 (linux_enable_tracesysgood): Remove.
3842 (linux_enable_event_reporting): Remove.
3843 (linux_init_ptrace): New function.
3844 (linux_child_post_attach): Call linux_init_ptrace.
3845 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3846 (linux_child_follow_fork): Call linux_supports_tracefork
3847 and linux_supports_tracevforkdone.
3848 (linux_child_insert_fork_catchpoint): Call
3849 linux_supports_tracefork.
3850 (linux_child_insert_vfork_catchpoint): Likewise.
3851 (linux_child_set_syscall_catchpoint): Call
3852 linux_supports_tracesysgood.
3853 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3854 * nat/linux-nat.h: New file.
3855 * nat/linux-waitpid.c: New file.
3856 * nat/linux-waitpid.h: New file.
3857
3858 2013-08-22 Samuel Bronson <naesten@gmail.com>
3859
3860 ARM Linux support for `catch syscall'.
3861 * syscalls/arm-linux.py: New file.
3862 * syscalls/arm-linux.xml: Likewise.
3863 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3864 (arm_linux_init_abi): Register the new function and syscall xml file.
3865 * data-directory/Makefile.in: Install the new syscall xml file.
3866 * NEWS: Brag about this.
3867
3868 2013-08-22 Pedro Alves <palves@redhat.com>
3869
3870 PR gdb/15871
3871 * corefile.c (target_xfer_memory_error): New function.
3872 (memory_error): Defer EIO to target_memory_error.
3873 (read_memory): Use target_xfer_partial, and handle finer-grained
3874 target xfer errors.
3875 * target.c (target_xfer_error_to_string): New function.
3876 (memory_xfer_partial_1): If memory is known to be
3877 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3878 (target_xfer_partial): Make extern.
3879 * target.h (enum target_xfer_error): New enum.
3880 (target_xfer_error_to_string): Declare function.
3881 (target_xfer_partial): Declare function.
3882 (struct target_ops) <xfer_partial>: Adjust describing comment.
3883
3884 2013-08-22 Alan Modra <amodra@gmail.com>
3885
3886 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3887 * configure.tgt: Likewise as targets.
3888
3889 2013-08-20 Doug Evans <dje@google.com>
3890
3891 * buildsym.c (subfile_stack): Move here from buildsym.h.
3892 (pending_macros): Ditto.
3893 (get_macro_table): New function.
3894 (buildsym_init): Initialize subfile_stack.
3895 * coffread.c (type_vector,type_vector_length): Moved here from
3896 buildsym.h.
3897 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3898 (coff_symtab_read): Use it.
3899 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
3900 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
3901 with call to get_macro_table.
3902 * stabsread.c (type_vector,type_vector_length): Moved here from
3903 buildsym.h.
3904 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
3905 * buildsym.h (get_macro_table): Declare.
3906
3907 2013-08-20 Tom Tromey <tromey@redhat.com>
3908
3909 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
3910 Update.
3911 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
3912
3913 2013-08-20 Doug Evans <dje@google.com>
3914
3915 * blockframe.c: Remove #include "psymtab.h".
3916 * cp-support.c: Ditto.
3917 * source.c: Ditto.
3918 * stack.c: Ditto.
3919
3920 2013-08-20 Tom Tromey <tromey@redhat.com>
3921
3922 PR python/15816:
3923 * exceptions.h (return_mask): Now an enum.
3924 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
3925 enum constants.
3926
3927 2013-08-20 Tom Tromey <tromey@redhat.com>
3928
3929 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
3930 get_objfile_arch.
3931 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3932 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
3933 * jit.c (jit_object_close_impl): Update.
3934 * jv-lang.c (get_dynamics_objfile): Update.
3935 * linespec.c (add_minsym): Use get_dynamics_objfile.
3936 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
3937 (allocate_objfile): Don't initialize 'gdbarch' field.
3938 (get_objfile_arch): Update.
3939 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
3940 moved from...
3941 (struct objfile) <gdbarch>: ... here. Remove.
3942 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
3943 get_objfile_arch.
3944 * symfile.c (init_entry_point_info): Use get_objfile_arch.
3945
3946 2013-08-20 Alan Modra <amodra@gmail.com>
3947
3948 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
3949 for IBM long double nan and inf.
3950 (floatformat_is_negative, floatformat_classify,
3951 floatformat_mantissa): Similarly.
3952 (floatformat_ieee_single, floatformat_ieee_double,
3953 floatformat_ieee_quad, floatformat_arm_ext,
3954 floatformat_ia64_spill): Delete unused vars.
3955 (_initialize_doublest): Delete unused function.
3956 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
3957 little-endian variants of floatformat_ibm_long_double.
3958
3959 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
3960
3961 * Makefile.in (SFILES): Remove common/target-common.c and
3962 add target/waitstatus.c.
3963 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
3964 target/resume.h, target/wait.h and target/waitstatus.h.
3965 (COMMON_OBS): Remove target-common.o and add
3966 waitstatus.o.
3967 (target-common.o): Remove.
3968 (waitstatus.o): New target object file.
3969 * common/target-common.c: Move contents to
3970 target/waitstatus.c and remove.
3971 * common/target-common.h: Move contents to other files and
3972 remove.
3973 (enum resume_kind: Move to target/resume.h.
3974 (TARGET_WNOHANG): Move to target/wait.h.
3975 (enum target_waitkind): Move to target/waitstatus.h.
3976 (struct target_waitstatus): Likewise.
3977 * target.h: Do not include target-common.h and
3978 include target/resume.h, target/wait.h and
3979 target/waitstatus.h.
3980 * target/resume.h: New file.
3981 * target/wait.h: New file.
3982 * target/waitstatus.h: New file.
3983 * target/waitstatus.c: New file.
3984
3985 2013-08-19 Pedro Alves <palves@redhat.com>
3986
3987 * linux-nat.c (linux_test_for_tracefork)
3988 (linux_test_for_tracesysgood, linux_child_follow_fork)
3989 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
3990 (linux_nat_wait_1): Extend comment.
3991 (linux_async_pipe): Add comment.
3992
3993 2013-08-15 Kevin Buettner <kevinb@redhat.com>
3994
3995 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
3996 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
3997 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
3998 Update to account for fact that PC is now a pseudo-register.
3999 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4000 cases for RL78_PC_REGNUM.
4001
4002 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4003
4004 PR cli/15841
4005 * top.c (quit_force): Skip writing history file
4006 if input is not from terminal.
4007
4008 2013-08-14 Tom Tromey <tromey@redhat.com>
4009
4010 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4011 resultthreadlist>: New fields.
4012 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4013 (remote_get_threadlist, remote_threadlist_iterator): Use
4014 new fields. Remove static variables.
4015
4016 2013-08-14 Tom Tromey <tromey@redhat.com>
4017
4018 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4019 remote_watch_data_address>: New fields.
4020 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4021 (process_stop_reply, remote_wait_as)
4022 (remote_check_watch_resources, remote_stopped_data_address): Update.
4023
4024 2013-08-14 Tom Tromey <tromey@redhat.com>
4025
4026 * remote.c (struct remote_state) <async_client_callback,
4027 async_client_context>: New fields.
4028 (async_client_callback, async_client_context): Remove.
4029 (remote_async_serial_handler, remote_async): Update.
4030
4031 2013-08-14 Tom Tromey <tromey@redhat.com>
4032
4033 * remote.c (sizeof_pkt): Remove.
4034 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4035
4036 2013-08-14 Tom Tromey <tromey@redhat.com>
4037
4038 * remote.c (struct remote_state) <use_threadinfo_query,
4039 use_threadextra_query>: New fields.
4040 (remote_threads_info, remote_threads_extra_info)
4041 (remote_open_1): Update.
4042
4043 2013-08-14 Tom Tromey <tromey@redhat.com>
4044
4045 * remote.c (struct remote_state) <finished_object,
4046 finished_annex, finished_offset>: New fields.
4047 (remote_read_qxfer): Use remote_state fields; remove static
4048 variables.
4049
4050 2013-08-14 Tom Tromey <tromey@redhat.com>
4051
4052 * remote.c (struct remote_state) <last_sent_step>:
4053 New field.
4054 (last_sent_step): Remove.
4055 (remote_resume, remote_wait_as): Update.
4056
4057 2013-08-14 Tom Tromey <tromey@redhat.com>
4058
4059 * remote.c (struct remote_state) <last_sent_signal>:
4060 New field.
4061 (last_sent_signal): Remove.
4062 (new_remote_state, remote_resume, remote_wait_as): Update.
4063
4064 2013-08-14 Tom Tromey <tromey@redhat.com>
4065
4066 * remote.c (struct remote_state) <last_program_signals_packet>:
4067 New field.
4068 (last_program_signals_packet): Remove.
4069 (remote_program_signals, remote_open_1): Update.
4070
4071 2013-08-14 Tom Tromey <tromey@redhat.com>
4072
4073 * remote.c (struct remote_state) <last_pass_packet>:
4074 New field.
4075 (last_pass_packet): Remove.
4076 (remote_pass_signals, remote_open_1): Update.
4077
4078 2013-08-14 Tom Tromey <tromey@redhat.com>
4079
4080 * remote.c (struct remote_state) <remote_traceframe_number>:
4081 New field.
4082 (remote_traceframe_number): Remove.
4083 (new_remote_state, remote_open_1, set_remote_traceframe)
4084 (remote_trace_find): Update.
4085
4086 2013-08-14 Tom Tromey <tromey@redhat.com>
4087
4088 * remote.c (struct remote_state) <general_thread, continue_thread>:
4089 New fields.
4090 (general_thread, continue_thread): Remove.
4091 (record_currthread, set_thread, set_general_process)
4092 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4093 (extended_remote_mourn_1): Update.
4094
4095 2013-08-14 Tom Tromey <tromey@redhat.com>
4096
4097 * remote.c (struct remote_state) <remote_desc>: New field.
4098 (remote_desc): Remove.
4099 (remote_threads_info, remote_threads_extra_info, remote_close)
4100 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4101 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4102 (remote_hostio_send_command, remote_file_put, remote_file_get)
4103 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4104 (remote_async, remote_new_objfile, set_range_stepping): Update.
4105
4106 2013-08-14 Tom Tromey <tromey@redhat.com>
4107
4108 * remote.c (remote_state): Now a pointer.
4109 (get_remote_state_raw): Update.
4110 (new_remote_state): New function.
4111 (_initialize_remote): Use new_remote_state.
4112
4113 2013-08-14 Tom Tromey <tromey@redhat.com>
4114
4115 * remote.c (remote_protocol_features): Now const.
4116
4117 2013-08-14 Tom Tromey <tromey@redhat.com>
4118
4119 * remote.c (crc32_table, crc32): Remove.
4120 (remote_verify_memory): Use xcrc32.
4121
4122 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4123
4124 * value.h (create_internalvar_type_lazy): Adjust prototype
4125 declaration.
4126
4127 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4128
4129 * common/format.c (parse_format_string): Don't allow '#' flag for
4130 pointer arguments in format string.
4131
4132 2013-08-13 Pierre Muller <muller@sourceware.org>
4133
4134 * utils.c (init_page_info): Only call tgetnum function
4135 if rl_get_screen_size did not return useful values.
4136
4137 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4138
4139 PR breakpoints/15117
4140 * linespec.c (linespec_parse_basic): Check for convenience
4141 variable or history value while parsing.
4142
4143 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4144
4145 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4146 AVR.
4147 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4148 different signals between the generic Linux kernel implementation
4149 and AVR's.
4150 (avr_linux_gdb_signal_from_target): Delete.
4151 (avr_linux_gdb_signal_to_target): Delete.
4152 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4153
4154 2013-08-09 Doug Evans <dje@google.com>
4155
4156 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4157 entries.
4158
4159 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4160
4161 * linux-tdep.c: Define enum with generic signal numbers.
4162 (linux_gdb_signal_from_target): New function.
4163 (linux_gdb_signal_to_target): Likewise.
4164 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4165 methods to the functions above.
4166 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4167 (linux_gdb_signal_to_target): Likewise.
4168 * alpha-linux-tdep.c: Define new enum with signals different
4169 from generic Linux kernel.
4170 (alpha_linux_gdb_signal_from_target): New function.
4171 (alpha_linux_gdb_signal_to_target): Likewise.
4172 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4173 with the functions mentioned above.
4174 * avr-tdep.c: Define enum with differences between Linux kernel
4175 and AVR signals.
4176 (avr_linux_gdb_signal_from_target): New function.
4177 (avr_linux_gdb_signal_to_target): Likewise.
4178 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4179 the functions mentioned above.
4180 * sparc-linux-tdep.c: Define enum with differences between SPARC
4181 and generic Linux kernel signal numbers.
4182 (sparc32_linux_gdb_signal_from_target): New function.
4183 (sparc32_linux_gdb_signal_to_target): Likewise.
4184 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4185 to the functions defined above.
4186 * xtensa-linux-tdep.c: Define enum with differences between
4187 Xtensa and Linux kernel generic signals.
4188 (xtensa_linux_gdb_signal_from_target): New function.
4189 (xtensa_linux_gdb_signal_to_target): Likewise.
4190 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4191 to the functions defined above.
4192 * mips-linux-tdep.c: Define enum with differences between
4193 signals in MIPS and Linux kernel generic ones.
4194 (mips_gdb_signal_to_target): New function.
4195 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4196 only different signals from the Linux kernel generic.
4197 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4198 the functions defined above.
4199 * mips-linux-tdep.h (enum mips_signals): Remove.
4200
4201 2013-08-09 Pedro Alves <palves@redhat.com>
4202
4203 * avr-tdep.c (XMALLOC): Delete macro.
4204 * cli/cli-dump.c (XMALLOC): Delete macro.
4205
4206 2013-08-09 Pedro Alves <palves@redhat.com>
4207
4208 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4209 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4210 (fopen_with_cleanup, add_dump_command): Make static.
4211 * cli/cli-dump.h: Delete file.
4212 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4213 cli/cli-dump.h.
4214
4215 2013-08-09 Pedro Alves <palves@redhat.com>
4216
4217 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4218 error message.
4219
4220 2013-08-09 Pedro Alves <palves@redhat.com>
4221
4222 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4223 error message.
4224
4225 2013-08-09 Pedro Alves <palves@redhat.com>
4226
4227 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4228 (gcore_command): Use tilde_expand here, and when showing the
4229 filename to the user, show the expanded version.
4230
4231 2013-08-09 Yao Qi <yao@codesourcery.com>
4232
4233 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4234 'entryval' is set.
4235
4236 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4237
4238 * gcore.c (create_gcore_bfd): Use tilde_expand.
4239
4240 2013-08-08 Yao Qi <yao@codesourcery.com>
4241
4242 * frame.h (read_frame_local): Declare.
4243 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4244 read_frame_local.
4245 * stack.c (read_frame_local): New.
4246
4247 2013-08-08 Yao Qi <yao@codesourcery.com>
4248
4249 * mi/mi-cmd-stack.c: Update comments to function
4250 list_args_or_locals.
4251
4252 2013-08-07 Tom Tromey <tromey@redhat.com>
4253
4254 PR symtab/15028:
4255 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4256 (process_psymtab_comp_unit_reader): Use it.
4257 (process_psymtab_comp_unit): Update. Add "pretend_language"
4258 argument.
4259 (dwarf2_build_psymtabs_hard): Update.
4260 (scan_partial_symbols): Pass CU's language to
4261 process_psymtab_comp_unit.
4262
4263 2013-08-07 Tom Tromey <tromey@redhat.com>
4264
4265 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4266 (dwarf2_gdb_index_functions): Update.
4267 * psymtab.c (find_symbol_file_from_partial): Remove.
4268 (psym_functions): Update.
4269 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4270 Remove.
4271
4272 2013-08-07 Tom Tromey <tromey@redhat.com>
4273
4274 * symfile.c (set_initial_language): Look up "main" symbol
4275 and use its language.
4276 * symtab.c (find_main_filename): Remove.
4277 * symtab.h (find_main_filename): Remove.
4278
4279 2013-08-07 Tom Tromey <tromey@redhat.com>
4280
4281 * dwarf2read.c (recursively_compute_inclusions): Add
4282 "immediate_parent" argument. Set symtab's "user" field
4283 if not set.
4284 (compute_symtab_includes): Update.
4285
4286 2013-08-07 Tom Tromey <tromey@redhat.com>
4287
4288 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4289 when adding label symbols.
4290
4291 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4292 Ulrich Weigand <uweigand@de.ibm.com>
4293
4294 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4295 * configure.host (powerpc64-*-aix*): Likewise.
4296
4297 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4298 Ulrich Weigand <uweigand@de.ibm.com>
4299
4300 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4301 is defined.
4302 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4303 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4304 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4305 * configure.ac: Check for ptrace64.
4306 * configure, config.in: Regenerate.
4307
4308 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4309 Ulrich Weigand <uweigand@de.ibm.com>
4310
4311 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4312 Call ptrace64 instead of ptrace if defined.
4313 Add macro addr_ptr to take care of ptrace address argument.
4314 (pdc_read_regs): Likewise.
4315 (pdc_write_regs): Likewise.
4316 (aix_thread_resume): Likewise.
4317 (fetch_regs_kernel_thread): Likewise.
4318 (store_regs_kernel_thread): Likewise.
4319
4320 2013-08-07 Anton Blanchard <anton@samba.org>
4321
4322 * MAINTAINERS: Add myself to Write After Approval.
4323
4324 2013-08-05 Tom Tromey <tromey@redhat.com>
4325
4326 * aix-thread.c (_initialize_aix_thread): Use
4327 complete_target_initialization.
4328 * bsd-uthread.c (_initialize_bsd_uthread): Use
4329 complete_target_initialization.
4330 * dec-thread.c (_initialize_dec_thread): Use
4331 complete_target_initialization.
4332 * ravenscar-thread.c (_initialize_ravenscar): Use
4333 complete_target_initialization.
4334 * sol-thread.c (_initialize_sol_thread): Use
4335 complete_target_initialization.
4336 * spu-multiarch.c (_initialize_spu_multiarch): Use
4337 complete_target_initialization.
4338
4339 2013-08-05 Tom Tromey <tromey@redhat.com>
4340
4341 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4342 * ada-lang.c (ada_lookup_simple_minsym): Return
4343 bound_minimal_symbol.
4344 * ada-lang.h (ada_lookup_simple_minsym): Update.
4345 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4346 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4347 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4348 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4349 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4350 * minsyms.c (msymbol_objfile): Remove.
4351 (lookup_minimal_symbol_internal): New function, from
4352 lookup_minimal_symbol.
4353 (lookup_minimal_symbol): Rewrite using
4354 lookup_minimal_symbol_internal.
4355 (lookup_bound_minimal_symbol): New function.
4356 * minsyms.h (msymbol_objfile): Remove.
4357 (lookup_bound_minimal_symbol): Declare.
4358 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4359 * parse.c (write_exp_msymbol): Change parameter to a
4360 bound_minimal_symbol.
4361 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4362 * parser-defs.h (write_exp_msymbol): Update.
4363 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4364 * symfile.c (simple_read_overlay_table): Use
4365 lookup_bound_minimal_symbol.
4366 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4367 (search_symbols): Likewise.
4368 (print_msymbol_info): Take a bound_minimal_symbol argument.
4369 (symtab_symbol_info, rbreak_command): Update.
4370 * symtab.h (struct symbol_search) <msymbol>: Change type
4371 to bound_minimal_symbol.
4372 * valops.c (find_function_in_inferior): Use
4373 lookup_bound_minimal_symbol.
4374 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4375
4376 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4377
4378 Code cleanup.
4379 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4380 to ...
4381 (async_cleanup_sigint_signal_handler): ... this.
4382 (initialize_sigint_signal_handler): Remove declaration.
4383 (handle_remote_sigint): Rename the declaration to ...
4384 (async_handle_remote_sigint): ... this.
4385 (handle_remote_sigint_twice): Rename the declaration to ...
4386 (async_handle_remote_sigint_twice): ... this.
4387 (async_remote_interrupt, async_remote_interrupt_twice)
4388 (remote_interrupt): Remove the declarations.
4389 (remote_interrupt_twice): Rename the declaration ...
4390 (sync_remote_interrupt_twice): ... this.
4391 (sigint_remote_twice_token): Rename the variable to ...
4392 (async_sigint_remote_twice_token): ... this.
4393 (sigint_remote_token): Rename the variable to ...
4394 (async_sigint_remote_token): ... this.
4395 (initialize_sigint_signal_handler): Rename the function to ...
4396 (async_initialize_sigint_signal_handler): ... this. Update the name
4397 inside.
4398 (handle_remote_sigint): Rename the function to ...
4399 (async_handle_remote_sigint): ... this. Update the names inside.
4400 (handle_remote_sigint_twice): Rename the function to ...
4401 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4402 (cleanup_sigint_signal_handler): Rename the function to ...
4403 (async_cleanup_sigint_signal_handler): ... this.
4404 (remote_interrupt): Rename the function to ...
4405 (sync_remote_interrupt): this. Update the names inside.
4406 (remote_interrupt_twice): Rename the function to ...
4407 (sync_remote_interrupt_twice): this. Update the names inside.
4408 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4409 (_initialize_remote): Update the names inside.
4410
4411 2013-08-02 Tom Tromey <tromey@redhat.com>
4412
4413 PR symtab/15719:
4414 * breakpoint.c (update_watchpoint, watchpoint_check)
4415 (watch_command_1): Update.
4416 * eval.c (fetch_subexp_value): Add "preserve_errors"
4417 parameter.
4418 * ppc-linux-nat.c (check_condition): Update.
4419 * value.h (fetch_subexp_value): Update.
4420
4421 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4422
4423 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4424 add_file_handler.
4425
4426 2013-08-01 Doug Evans <dje@google.com>
4427
4428 PR symtab/15691
4429 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4430 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4431 Add assert of sig_entry->dwo_unit == NULL.
4432 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4433 had already been read.
4434 (read_signatured_type): Set per_cu.tu_read.
4435
4436 PR symtab/15695
4437 * valops.c (value_struct_elt): Add missing call to check_typedef.
4438 (value_find_oload_method_list): Ditto.
4439
4440 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4441 effectively, struct symbol_search **.
4442 (make_cleanup_free_search_symbols): Change arg to struct
4443 symbol_search **. All callers updated.
4444 (compare_search_syms): Compare symtab file name and block as well.
4445 (search_symbols_equal): New function.
4446 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4447 New args new_head, new_tail. Result is now void. Remove dups after
4448 sorting the symbols.
4449 (search_symbols): Sort all found symbols once, after all have been
4450 found, and remove duplicates. Simplify cleanup tracking of result.
4451 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4452
4453 Further workarounds for binutils/15021.
4454 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4455 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4456 Watch for duplicate symtabs coming from type units.
4457 (compute_symtab_includes): Update call to
4458 recursively_compute_inclusions. Build vector of included symtabs
4459 instead of per_cus.
4460 * symtab.h (symtab_ptr): New typedef.
4461 (DEF_VEC_P (symtab_ptr)): New VEC type.
4462 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4463 instead.
4464
4465 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4466
4467 * cli/cli-script.c (script_from_file): Remove use of
4468 error_pre_print.
4469 * main.c (captured_main): Remove use of error_pre_print and
4470 quit_pre_print.
4471 * utils.c (error_pre_print, quit_pre_print): Remove.
4472 * utils.h (error_pre_print, quit_pre_print): Likewise.
4473
4474 2013-08-01 Yao Qi <yao@codesourcery.com>
4475
4476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4477 with mi_getopt.
4478 (mi_cmd_stack_list_variables): Likewise.
4479
4480 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4481
4482 * exceptions.c (deprecated_throw_reason): Remove.
4483 * exceptions.h (deprecated_throw_reason): Remove.
4484
4485 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4486
4487 * remote-mips.c (mips_error): Replace use of
4488 deprecated_throw_reason with throw_verror. Use the error message
4489 passed to mips_error as the error message for throw_verror.
4490
4491 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4492
4493 * monitor.c (monitor_interrupt_query): Replace use of
4494 deprecated_throw_reason with quit.
4495 * nto-procfs.c (interrupt_query): Likewise.
4496 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4497 * remote-mips.c (mips_kill): Likewise.
4498 * remote.c (interrupt_query): Likewise.
4499
4500 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4501
4502 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4503 with call to fatal.
4504
4505 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4506 Yao Qi <yao@codesourcery.com>
4507
4508 * tracepoint.c (trace_dump_command): Select the current frame.
4509
4510 2013-07-30 Doug Evans <dje@google.com>
4511
4512 * dwarf2read.c (process_queue): Add type signature to debug output.
4513
4514 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4515
4516 * value.c (value_fetch_lazy): Mark optimized out values as such
4517 rather than raising an error.
4518
4519 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4520
4521 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4522 before checking which bits of the parent, not the child, value are
4523 valid.
4524
4525 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4526
4527 PR gdb/15715
4528 * top.c: Include "filenames.h".
4529 (set_history_filename): New function.
4530 (init_main): Install it as set hook of the "set history filename"
4531 command.
4532
4533 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4534
4535 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4536 attribute parameter.
4537 (dwarf2_const_value_data): Constify struct attribute parameter.
4538 (dwarf2_const_value): Constify struct attribute parameter.
4539 (dwarf2_const_value_attr): Constify struct attribute parameter.
4540 (lookup_die_type): Constify struct attribute parameter.
4541 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4542 (follow_die_ref_or_sig): Constify struct attribute parameter.
4543 (follow_die_ref): Constify struct attribute parameter.
4544 (follow_die_sig): Constify struct attribute parameter.
4545 (get_DW_AT_signature_type): Constify struct attribute parameter.
4546 (get_type_unit_group): Constify struct attribute parameter.
4547 (fill_in_loclist_baton): Constify struct attribute parameter.
4548 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4549 (type_unit_group): Constify struct attribute parameter.
4550
4551 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4552
4553 * dwarf2read.c (attr_form_is_block): Make argument const.
4554 (attr_form_is_section_offset): Make argument const.
4555 (attr_form_is_constant): Make argument const.
4556 (attr_form_is_ref): Make argument const.
4557
4558 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4559
4560 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4561 All uses updated.
4562 (attr_form_is_ref): Moved below attr_form_is_constant.
4563
4564 2013-07-29 Doug Evans <dje@google.com>
4565
4566 * main.c (captured_command_loop): Tweak comment.
4567
4568 * target.c (target_async_permitted_1): Fix comment.
4569
4570 * symtab.c (iterate_over_some_symtabs): Add comment.
4571
4572 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4573
4574 2013-07-27 Yao Qi <yao@codesourcery.com>
4575
4576 * NEWS: Mention that GDBserver now supports hardware
4577 watchpoints on the MIPS GNU/Linux target.
4578
4579 2013-07-27 Yao Qi <yao@codesourcery.com>
4580
4581 * Makefile.in (HFILES_NO_SRCDIR): Add
4582 common/mips-linux-watch.h.
4583 (mips-linux-watch.o): New rule.
4584 * common/mips-linux-watch.c: New.
4585 * common/mips-linux-watch.h: New.
4586 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4587 * mips-linux-nat.c: Include mips-linux-watch.h.
4588 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4589 to common/mips-linux-watch.h.
4590 (MAX_DEBUG_REGISTER): Likewise.
4591 (enum pt_watch_style): Likewise.
4592 (struct mips32_watch_regs): Likewise.
4593 (struct mips64_watch_regs): Likewise.
4594 (struct pt_watch_regs): Likewise.
4595 (struct mips_watchpoint): Likewise.
4596 (mips_linux_watch_get_irw_mask): Move to
4597 common/mips-linux-watch.c.
4598 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4599 (mips_linux_watch_get_watchlo): Likewise.
4600 (mips_linux_watch_set_watchlo): Likewise.
4601 (mips_linux_watch_get_watchhi): Likewise.
4602 (mips_linux_watch_set_watchhi): Likewise.
4603 (mips_linux_read_watch_registers): Likewise.
4604 (mips_linux_watch_type_to_irw): Likewise.
4605 (mips_linux_stopped_data_address, fill_mask): Likewise.
4606 (mips_linux_watch_try_one_watch): Likewise.
4607 (mips_linux_watch_populate_regs): Likewise.
4608
4609 2013-07-27 Yao Qi <yao@codesourcery.com>
4610
4611 * mips-linux-nat.c (get_irw_mask): Rename to ...
4612 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4613 'set' to 'n'. Update function comment. All callers changed.
4614 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4615 function comment. All callers changed.
4616 (get_num_valid): Rename to ...
4617 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4618 'set' to 'n'. Update function comment. All callers changed.
4619 (get_watchlo): Rename to ...
4620 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4621 'set' to 'n'. Update function comment. All callers changed.
4622 (set_watchlo): Rename to ...
4623 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4624 'set' to 'n'. Update function comment. All callers changed.
4625 (get_watchhi): Rename to ...
4626 (mips_linux_watch_get_watchhi): ... this. Update function
4627 comment. All callers changed.
4628 (set_watchhi): Rename to ...
4629 (mips_linux_watch_set_watchhi): ... this. Update function
4630 comment. All callers changed.
4631 (mips_linux_read_watch_registers): Update function comment.
4632 Add new parameters 'lwpid', 'watch_readback', and
4633 'watch_readback_valid'. Update.
4634 (type_to_irw): Rename to ...
4635 (mips_linux_watch_type_to_irw): ... this. Update function
4636 comment. All callers changed.
4637 (fill_mask): Update function comment.
4638 (try_one_watch): Rename to ...
4639 (mips_linux_watch_try_one_watch): ... this. Change the type
4640 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4641 (populate_regs_from_watches): Rename to ...
4642 (mips_linux_watch_populate_regs): ... this. Add parameter
4643 'current_watches'. All callers changed.
4644
4645 2013-07-27 Yao Qi <yao@codesourcery.com>
4646
4647 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4648 the code.
4649 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4650 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4651 (struct pt_watch_regs): Likewise.
4652 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4653 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4654 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4655 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4656 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4657
4658 2013-07-27 Yao Qi <yao@codesourcery.com>
4659
4660 * breakpoint.h: Include break-common.h.
4661 (enum target_hw_bp_type): Move to ...
4662 * common/break-common.h: ... here. New.
4663
4664 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4665
4666 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4667 process group regardless of having tty on stdin.
4668
4669 2013-07-25 Doug Evans <dje@google.com>
4670
4671 * linux-fork.h (detach_fork): Delete.
4672
4673 2013-07-25 Tom Tromey <tromey@redhat.com>
4674
4675 PR remote/15256, PR remote/15266:
4676 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4677 * monitor.c (monitor_detach): Use unpush_target.
4678 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4679 * remote-mips.c (mips_detach): Use unpush_target. Don't
4680 call mips_close.
4681 * remote-sim.c (gdbsim_detach): Use unpush_target.
4682 * target.c (pop_target): Remove.
4683 (pop_all_targets_above): Don't call target_close.
4684 (target_close): Assert that the target is unpushed.
4685 * target.h (pop_target): Don't declare.
4686 * tracepoint.c (tfile_open): Use unpush_target.
4687
4688 2013-07-25 Tom Tromey <tromey@redhat.com>
4689
4690 * linux-thread-db.c (init_thread_db_ops): Call
4691 complete_target_initialization.
4692 (_initialize_thread_db): Don't call add_target.
4693 * target.c (complete_target_initialization): New function.
4694 (add_target_with_completer): Call it.
4695 * target.h (complete_target_initialization): Declare.
4696
4697 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4698
4699 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4700 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4701 (HPPANBSD_SIZEOF_GREGS): New define.
4702 (hppaobsd_supply_gregset): Handle additional registers.
4703 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4704 we provide more registers now.
4705 (hppabsd_supply_gregset): Supply additional registers.
4706 (hppabsd_collect_gregset): Collect additional registers.
4707
4708 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4709
4710 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4711 (hppabsd_dwarf2_frame_init_reg): New function.
4712 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4713
4714 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4715
4716 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4717 'z' format code. Remove error for optimized out values, standard
4718 code will handle these fine.
4719
4720 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4721
4722 * NEWS: Mention new 'z' formatter.
4723 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4724 (_initialize_printcmd): Mention 'z' formatter in help text of the
4725 'x' command.
4726
4727 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4728
4729 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4730 formatting.
4731
4732 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4733
4734 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4735 interface can evaluate arguments. Fallback to the old mode if it
4736 cannot.
4737 (create_exception_master_breakpoint): Likewise.
4738 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4739 (struct sym_probe_fns elf_probe_fns): Export function above to the
4740 probe interface.
4741 * probe.c (can_evaluate_probe_arguments): New function.
4742 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4743 function pointer.
4744 (can_evaluate_probe_arguments): New function prototype.
4745 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4746 probe interface can evaluate arguments. Fallback to the old mode
4747 if it cannot.
4748 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4749 interface can evaluate arguments. Warning the user if it cannot.
4750 (stap_can_evaluate_probe_arguments): New function.
4751 (struct probe_ops stap_probe_ops): Export function above to the
4752 probe interface.
4753 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4754 New function pointer.
4755
4756 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4757
4758 * Makefile.in (SFILES): Add common/target-common.c.
4759 Add common/target-common.h to headers.
4760 (COMMON_OBS): Add target-common.o.
4761 (target-common.o): New target.
4762 * linux-nat.h (resume_kind): Move to common/target-common.h.
4763 * target.c (target_waitstatus_to_string): Move to
4764 common/target-common.c.
4765 * target.h: Include target-common.h.
4766 (target_waitkind): Move to common/target-common.h.
4767 (target_waitstatus): Likewise.
4768 (TARGET_WNOHANG): Likewise.
4769 * common/target-common.c: New file.
4770 * common/target-common.h: New file.
4771
4772 2013-07-24 Doug Evans <dje@google.com>
4773
4774 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4775 a warning.
4776
4777 2013-07-23 Yao Qi <yao@codesourcery.com>
4778
4779 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4780 parameter 'gdbarch'.
4781 (i386_stack_tramp_frame_sniffer): Caller update.
4782 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4783 parameter 'gdbarch' and 'target'.
4784 (i386_linux_core_read_description): Caller update.
4785 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4786 Likewise.
4787 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4788 declaration.
4789
4790 2013-07-23 Tom Tromey <tromey@redhat.com>
4791
4792 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4793 2013-07-22.
4794
4795 2013-07-22 Doug Evans <dje@google.com>
4796
4797 * exec.h (remove_target_sections): Delete arg abfd.
4798 * exec.c (exec_close): Update call to remove_target_sections.
4799 (remove_target_sections): Delete arg abfd.
4800 * solib.c (update_solib_list): Ditto.
4801 (reload_shared_libraries_1): Ditto.
4802 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4803 * target.h (struct target_section): Rename key to owner.
4804 All uses updated.
4805
4806 2013-07-22 Tom Tromey <tromey@redhat.com>
4807
4808 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4809
4810 2013-07-22 Tom Tromey <tromey@redhat.com>
4811
4812 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4813 Simplify cleanup handling.
4814
4815 2013-07-22 Tom Tromey <tromey@redhat.com>
4816
4817 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4818 on all return paths.
4819
4820 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4821
4822 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4823 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4824 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4825
4826 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4827
4828 * top.c (print_gdb_version): Add help, apropos description and
4829 url to online documentation.
4830
4831 2013-07-19 Hui Zhu <hui@codesourcery.com>
4832
4833 PR gdb/15692
4834 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4835
4836 2013-07-19 Yao Qi <yao@codesourcery.com>
4837
4838 * target.c (update_current_target): Change the default action
4839 of 'to_traceframe_info' from tcomplain to return_zero.
4840 * target.h (struct target_ops) <to_traceframe_info>: Add more
4841 comments.
4842 * valops.c (read_value_memory): Call
4843 traceframe_available_memory unconditionally.
4844
4845 2013-07-18 Yao Qi <yao@codesourcery.com>
4846
4847 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4848 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4849 symbol without prefix. If found, set its type to
4850 'mst_solib_trampoline'.
4851
4852 2013-07-17 Doug Evans <dje@google.com>
4853
4854 * NEWS: Mention "set print raw frame-arguments".
4855 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4856 * stack.c (print_raw_frame_arguments): New static global.
4857 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4858 (_initialize_stack): New command "set/show print raw frame-arguments".
4859 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4860 (set_print_raw, show_print_raw): New functions.
4861 (_initialize_valprint): New prefix command "set/show print raw".
4862 * valprint.h (value_print_options): Improve comments.
4863
4864 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4865 of all *list variables.
4866
4867 * gdbcmd.h (togglelist): Delete.
4868 * cli/cli-cmds.c (togglelist): Delete.
4869 (init_cmd_lists): Update.
4870 * cli/cli-cmds.h (togglelist): Delete.
4871
4872 2013-07-17 Tom Tromey <tromey@redhat.com>
4873
4874 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4875 dwarf2_per_objfile.
4876
4877 2013-07-16 Doug Evans <dje@google.com>
4878
4879 * nto-tdep.c (nto_relocate_section_addresses): Update,
4880 target_section.bfd deleted.
4881 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4882 * s390-tdep.c (s390_load): Ditto.
4883 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4884
4885 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4886
4887 * common/format.c (parse_format_string): Add checks for NULL
4888 character before calling strchr.
4889
4890 2013-07-16 Doug Evans <dje@google.com>
4891
4892 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4893 temp_pathname argument.
4894 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
4895 when opening the file fails.
4896
4897 * target.h (struct target_section): Delete member bfd.
4898 All users updated to use the_bfd_section->owner instead.
4899 * exec.c (add_to_section_table): Assert bfd is expected value.
4900 Remove initialization of target_section.bfd.
4901 (remove_target_sections): Update.
4902 (section_table_available_memory): Update.
4903 (section_table_xfer_memory_partial): Update.
4904 (print_section_info): Update.
4905 (exec_set_section_address): Update.
4906 * record-full.c (record_full_core_xfer_partial): Update.
4907 * solib-svr4.c (svr4_relocate_section_addresses): Update.
4908 * solib-target.c (solib_target_relocate_section_addresses): Update.
4909 * symfile.c (build_section_addr_info_from_section_table): Update.
4910 * target.c (memory_xfer_live_readonly_partial): Update.
4911 (memory_xfer_partial_1): Update.
4912
4913 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4914
4915 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
4916 now available for embedded (BookE) and server (BookS) processors,
4917 correct mentions of 'booke' and adjust comments accordingly in order to
4918 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
4919 (have_ptrace_booke_interface): Rename function and variable
4920 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
4921 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
4922 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
4923 'hwdebug_point_cmp'. Update all uses.
4924 (booke_find_thread_points_by_tid): Rename function
4925 'booke_find_thread_points_by_tid' to
4926 'hwdebug_find_thread_points_by_tid'. Update all uses.
4927 (booke_insert_point): Rename function 'booke_insert_point' to
4928 'hwdebug_insert_point'. Update all uses.
4929 (booke_remove_point): Rename function 'booke_remove_point' to
4930 'hwdebug_remove_point'. Update all uses.
4931
4932 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
4933
4934 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
4935 numbers with enum values.
4936
4937 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
4938
4939 PR threads/13217
4940 * thread.c (thread_apply_all_command): Check for valid threads
4941 and thread count.
4942 (thread_array_cleanup): New struct.
4943 (set_thread_refcount): New function.
4944
4945 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
4946
4947 * infcmd.c (default_print_one_register_info): Reuse function
4948 print_hex_chars.
4949
4950 2013-07-10 Tom Tromey <tromey@redhat.com>
4951
4952 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
4953 (ada-exp.o): New target.
4954
4955 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
4956
4957 * mt-tdep.c (mt_registers_info): Call
4958 get_no_prettyformat_print_options instead of
4959 get_raw_print_options (regression by last patch from Doug
4960 Evans).
4961
4962 2013-07-09 Pedro Alves <palves@redhat.com>
4963
4964 Checked in by Joel Brobecker <brobecker@adacore.com>.
4965 * ada-lang.c (coerce_unspec_val_to_type): Use
4966 value_optimized_out_const.
4967 * value.c (value_optimized_out_const): New function.
4968 * value.h (value_optimized_out_const): New declaration.
4969
4970 2013-07-09 Doug Evans <dje@google.com>
4971
4972 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4973 Enum values rename as well. All uses updated.
4974 * valprint.h (value_print_options): Rename member pretty to
4975 pretty format. Rename member prettyprint_arrays to
4976 prettyformat_arrays. Rename member prettyprint_structs to
4977 prettyformat_structs. All uses updated.
4978 (get_no_prettyformat_print_options): Renamed from
4979 get_raw_print_options.
4980 * valprint.c (get_no_prettyformat_print_options): Renamed from
4981 get_raw_print_options. All callers updated.
4982 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
4983 All callers updated.
4984 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
4985 All callers updated.
4986 (_initialize_valprint): Improve help text for "set print pretty" and
4987 "set print arrays".
4988
4989 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
4990
4991 * value.c (value_bits_valid): Revert previous change, and change
4992 by Pedro on 2013-07-04, due to regressions in
4993 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
4994
4995 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
4996 Pedro Alves <palves@redhat.com>
4997
4998 * value.c (value_bits_valid): If the value is not lval_computed
4999 or has no check validity handler then the answer is the
5000 optimized_out flag, otherwise defer to the handler.
5001
5002 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5003
5004 * top.c (print_gdb_configuration): Explain in output of
5005 --configuration what does "relocatable" mean.
5006
5007 * main.c (print_gdb_help): Regroup options in the --help text.
5008 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5009 the relevant discussions.
5010
5011 2013-07-06 Yao Qi <yao@codesourcery.com>
5012
5013 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5014 Remove parameter 'lsal'.
5015 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5016 to inner block. Caller update.
5017 (base_breakpoint_create_breakpoints_sal): Update.
5018 (bkpt_create_breakpoints_sal): Likewise.
5019 (tracepoint_create_breakpoints_sal): Likewise.
5020 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5021 element 0 of vector 'canonical->sals'.
5022
5023 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5024
5025 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5026 register number instead of the pseudo register one.
5027 (rs6000_dwarf2_reg_to_regnum): Likewise.
5028
5029 2013-07-04 Pedro Alves <palves@redhat.com>
5030
5031 * findvar.c (value_of_register): Use allocate_optimized_out_value
5032 if the register has been optimized out, instead of
5033 set_value_optimized_out.
5034 * frame-unwind.c (frame_unwind_got_optimized): Use
5035 allocate_optimized_out_value.
5036
5037 2013-07-04 Pedro Alves <palves@redhat.com>
5038
5039 * value.c (value_bits_valid): If the value is not lval_computed,
5040 or doesn't have a check_validity hook, assume the value is entirely
5041 valid.
5042
5043 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5044
5045 * stack.c (read_frame_arg): No longer fetch lazy values.
5046 * value.c (value_optimized_out): If the value is not already
5047 marked optimized out, and is lazy then fetch it.
5048 (value_primitive_field): Move optimized out check to later in the
5049 function, after we have loaded any lazy values.
5050 (value_fetch_lazy): Use optimized out flag directly rather than
5051 calling optimized_out method.
5052
5053 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5054
5055 * valops.c: Don't include "user-regs.h".
5056 (value_fetch_lazy): Moved to value.c.
5057 * value.c: Include "user-regs.h".
5058 (value_fetch_lazy): Moved from valops.c.
5059
5060 2013-07-04 Yao Qi <yao@codesourcery.com>
5061
5062 Revert:
5063 2013-06-27 Yao Qi <yao@codesourcery.com>
5064
5065 * common/create-version.sh: Update comments. Handle the case
5066 that TARGET_ALIAS is empty.
5067
5068 2013-07-03 Pedro Alves <palves@redhat.com>
5069
5070 * Makefile.in (config.status): Depend on development.sh.
5071 (aclocal_m4_deps): Add libmcheck.m4.
5072 * acinclude.m4: Include libmcheck.m4.
5073 * configure.ac: Source development.sh instead of setting
5074 'development' here. --enable-libmcheck/--disable-libmcheck code
5075 factored out to GDB_AC_LIBMCHECK. Run it.
5076 * development.sh: New file.
5077 * libmcheck.m4: New file.
5078 * configure: Regenerate.
5079
5080 2013-07-02 Tom Tromey <tromey@redhat.com>
5081
5082 * contrib/ari/update-web-ari.sh: Update for version.in change.
5083
5084 2013-07-02 Tom Tromey <tromey@redhat.com>
5085
5086 * common/ptid.h: Comment fixes.
5087
5088 2013-07-01 Tom Tromey <tromey@redhat.com>
5089
5090 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5091 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5092 (dwarf2_read_index, create_all_comp_units): Update.
5093
5094 2013-07-01 Tom Tromey <tromey@redhat.com>
5095
5096 * configure.ac (build_warnings): Add -Wold-style-definition.
5097 * configure: Rebuild.
5098 * machoread.c (_initialize_machoread): Use "(void)".
5099 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5100 use "(void)".
5101
5102 2013-07-01 Tom Tromey <tromey@redhat.com>
5103
5104 * configure.ac (build_warnings): Add -Wold-style-declaration.
5105 * configure: Rebuild.
5106 * dsrec.c (make_srec): Use "static const", not "const static".
5107 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5108 not "const static".
5109 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5110 Use "static const", not "const static".
5111 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5112 not "const static".
5113 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5114 not "const static".
5115 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5116 not "const static".
5117 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5118 not "const static".
5119 (v850_dbtrap_breakpoint_from_pc): Likewise.
5120 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5121 not "const static".
5122
5123 2013-07-01 Tom Tromey <tromey@redhat.com>
5124
5125 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5126 * configure: Rebuild.
5127
5128 2013-07-01 Pedro Alves <palves@redhat.com>
5129
5130 * defs.h: Include "pathmax.h".
5131 * utils.c: Don't include sys/param.h.
5132 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5133 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5134 instead of MAXPATHLEN.
5135 * solib-sunos.c: Don't include sys/param.h.
5136 * xcoffread.c: Don't include sys/param.h.
5137 * bsd-kvm.c: Don't include sys/param.h.
5138 * darwin-nat.c: Don't include sys/param.h.
5139 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5140 * darwin-nat-info.c: Don't include sys/param.h.
5141 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5142 MAXPATHLEN.
5143 * i386obsd-nat.c: Don't include sys/param.h.
5144 * inf-child.c: Don't include sys/param.h.
5145 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5146 * linux-fork.c: Don't include sys/param.h.
5147 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5148 * linux-nat.c: Don't include sys/param.h.
5149 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5150 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5151 * m68klinux-nat.c: Don't include sys/param.h.
5152 * nbsd-nat.c: Don't include sys/param.h.
5153 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5154 * ppc-linux-nat.c: Don't include sys/param.h.
5155 * rs6000-nat.c: Don't include sys/param.h.
5156 * spu-linux-nat.c. Don't include sys/param.h.
5157 * windows-nat.c: Don't include sys/param.h.
5158 * xtensa-linux-nat.c: Don't include sys/param.h.
5159 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5160
5161 2013-07-01 Pedro Alves <palves@redhat.com>
5162
5163 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5164 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5165 * gnulib/aclocal.m4: Regenerate.
5166 * gnulib/config.in: Regenerate.
5167 * gnulib/configure: Regenerate.
5168 * gnulib/import/pathmax.h: New file.
5169 * gnulib/import/Makefile.am: Regenerate.
5170 * gnulib/import/Makefile.in: Regenerate.
5171 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5172 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5173 * gnulib/import/m4/pathmax.m4: New file.
5174
5175 2013-07-01 Pedro Alves <palves@redhat.com>
5176
5177 * configure.ac (GDBINIT): Define, depending on host.
5178 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5179 * top.c (PATH_MAX): Delete fallback definition.
5180 (GDBINIT_FILENAME): Delete.
5181 (gdbinit): Reimplement as const char array set to the GDBINIT
5182 string constant.
5183 * top.h (gdbinit): Make const.
5184 * configure, config.in: Regenerate.
5185
5186 2013-07-01 Pedro Alves <palves@redhat.com>
5187
5188 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5189 * cli/cli-cmds.h (source_script): Likewise.
5190 * exceptions.c (catch_command_errors_const): New function.
5191 * exceptions.h (catch_command_errors_const): Declare.
5192 * main.c (get_init_files): Make parameters const, and adjust.
5193 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5194 'local_gdbinit' locals const. Adjust to use
5195 catch_command_errors_const.
5196 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5197 'local_gdbinit' locals const.
5198
5199 2013-07-01 Pedro Alves <palves@redhat.com>
5200
5201 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5202 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5203 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5204 <unistd.h>.
5205
5206 2013-07-01 Pedro Alves <palves@redhat.com>
5207
5208 Import the "unistd" gnulib module.
5209 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5210 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5211 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5212 import/m4/unistd_h.m4.
5213 * gnulib/aclocal.m4: Renenerate.
5214 * gnulib/config.in: Renenerate.
5215 * gnulib/configure: Renenerate.
5216 * gnulib/import/Makefile.am: Renenerate.
5217 * gnulib/import/Makefile.in: Renenerate.
5218 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5219 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5220 * gnulib/import/m4/off_t.m4: New file.
5221 * gnulib/import/m4/ssize_t.m4: New file.
5222 * gnulib/import/m4/sys_types_h.m4: New file.
5223 * gnulib/import/m4/unistd_h.m4: New file.
5224 * gnulib/import/sys_types.in.h: New file.
5225 * gnulib/import/unistd.c: New file.
5226 * gnulib/import/unistd.in.h: New file.
5227
5228 2013-07-01 Pedro Alves <palves@redhat.com>
5229
5230 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5231 defined instead of checking HAVE_UNISTD_H.
5232
5233 2013-07-01 Pedro Alves <palves@redhat.com>
5234
5235 Reimport gnulib from scratch.
5236 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5237 import/m4/onceonly.m4.
5238 * gnulib/aclocal.m4: Renegerate.
5239 * gnulib/config.in: Renegerate.
5240 * gnulib/configure: Renegerate.
5241 * gnulib/import/Makefile.in: Renegerate.
5242 * gnulib/import/extra/update-copyright: Renegerate.
5243 * gnulib/import/m4/onceonly.m4: Delete.
5244
5245 2013-07-01 Pedro Alves <palves@redhat.com>
5246
5247 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5248
5249 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5250
5251 Code cleanup.
5252 * remote.c (async_remote_interrupt_twice): Make it static.
5253 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5254
5255 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5256
5257 * ia64-linux-tdep.c: Include <ctype.h>.
5258 (ia64_linux_stap_is_single_operand): New function.
5259 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5260
5261 2013-06-28 Tom Tromey <tromey@redhat.com>
5262
5263 * Makefile.in (version.c): Use version.in, not
5264 common/version.in.
5265 * common/create-version.sh: Likewise.
5266 * common/version.in: Move...
5267 * version.in: ...here.
5268
5269 2013-06-28 Pedro Alves <palves@redhat.com>
5270
5271 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5272 here.
5273 * utils.h (pagination_enabled): Declare.
5274
5275 2013-06-28 Pedro Alves <palves@redhat.com>
5276
5277 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5278 Move higher up in file.
5279
5280 2013-06-28 Tom Tromey <tromey@redhat.com>
5281
5282 * tracepoint.c (deprecated_readline_begin_hook)
5283 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5284 declare.
5285
5286 2013-06-28 Pedro Alves <palves@redhat.com>
5287
5288 PR tui/14880
5289 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5290 checking if they're available.
5291 * value.c (value_available_contents_eq): Change comment.
5292 * value.h (value_available_contents_eq): Expand comment.
5293
5294 2013-06-27 Tom Tromey <tromey@redhat.com>
5295
5296 * target.c (find_run_target): Remove.
5297 * target.h (find_run_target): Remove.
5298
5299 2013-06-27 Tom Tromey <tromey@redhat.com>
5300
5301 * corelow.c (core_gdbarch): Now static.
5302
5303 2013-06-27 Tom Tromey <tromey@redhat.com>
5304
5305 * target.c (target_struct_index): Remove.
5306
5307 2013-06-27 Pedro Alves <palves@redhat.com>
5308
5309 * infrun.c: Remove comment describing the 'stepping over runtime
5310 loader dynamic symbol resolution code' mechanism; moved to
5311 gdbint.texinfo.
5312
5313 2013-06-27 Pedro Alves <palves@redhat.com>
5314
5315 * exceptions.c (catch_command_errors): Remove spurious space.
5316 * exceptions.h (catch_command_errors): Second parameter is "arg",
5317 not "command".
5318
5319 2013-06-27 Yao Qi <yao@codesourcery.com>
5320
5321 * common/create-version.sh: Update comments. Handle the case
5322 that TARGET_ALIAS is empty.
5323
5324 2013-06-26 Pedro Alves <palves@redhat.com>
5325
5326 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5327 comment.
5328
5329 2013-06-26 Pedro Alves <palves@redhat.com>
5330
5331 * infrun.c: Update comments on stepping over runtime loader
5332 dynamic symbol resolution code.
5333
5334 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5335
5336 * ax-gdb.h (union exp_element): Forward declare.
5337 * parser-defs.h: Include expression.h.
5338
5339 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5340
5341 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5342
5343 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5344
5345 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5346
5347 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5348
5349 Fix trace-status to output proper start-time and stop-time.
5350 * tracepoint.c (trace_status_command): Fix type of printf arg to
5351 prevent improper type conversion.
5352 (trace_status_mi): Likewise.
5353
5354 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5355
5356 * mips-tdep.c (mips_next_pc): Fix a typo.
5357
5358 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5359
5360 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5361
5362 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5363 Yao Qi <yao@codesourcery.com>
5364
5365 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5366 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5367 * mi/mi-main.c (print_variable_or_computed): New function.
5368 (mi_cmd_trace_frame_collected): New function.
5369 * tracepoint.c (find_trace_state_variable_by_number): New.
5370 (struct traceframe_info): Move to tracepoint.h
5371 (struct collection_list): Likewise.
5372 (do_collect_symbol): Include locals and arguments in the
5373 collected variables list.
5374 (clear_collection_list): Clear wholly collected variables list
5375 and computed variables list.
5376 (append_exp): New function.
5377 (encode_actions_1): Include variables in the wholly
5378 collected variables list. Include memory ranges and
5379 full-fledged expressions in the computed expressions list.
5380 (encode_actions): Move some code to ...
5381 Return the cleanup chain.
5382 (encode_actions_rsp): ... here. New function.
5383 (get_traceframe_location, get_traceframe_info): Remove static.
5384 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5385 (struct collection_list): Moved from tracepoint.c. Add two
5386 new fields 'wholly_collected' and 'computed'.
5387 (find_trace_state_variable_by_number): Declare.
5388 (encode_actions): Adjust declaration.
5389 (encode_actions_rsp): Declare.
5390 (get_traceframe_info, get_traceframe_location): Declare.
5391
5392 * NEWS: Mention new MI command -trace-frame-collected.
5393
5394 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5395 Yao Qi <yao@codesourcery.com>
5396
5397 * ctf.c (ctf_traceframe_info): Push trace state variables
5398 present in the trace data into the traceframe info object.
5399 * breakpoint.c (DEF_VEC_I): Remove.
5400 * common/filestuff.c (DEF_VEC_I): Likewise.
5401 * dwarf2loc.c (DEF_VEC_I): Likewise.
5402 * mi/mi-main.c (DEF_VEC_I): Likewise.
5403 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5404 * features/traceframe-info.dtd: Add tvar element and its
5405 attributes.
5406 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5407 (build_traceframe_info): Push trace state variables present in
5408 the trace data into the traceframe info object.
5409 (traceframe_info_start_tvar): New function.
5410 (tvar_attributes): New.
5411 (traceframe_info_children): Add "tvar" element.
5412 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5413
5414 * NEWS: Mention the change in GDB and GDBserver.
5415
5416 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5417 Yao Qi <yao@codesourcery.com>
5418
5419 * tracepoint.c (trace_dump_command): Move code to ...
5420 (get_traceframe_location): ... here. New.
5421
5422 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5423 Yao Qi <yao@codesourcery.com>
5424
5425 * tracepoint.c (trace_dump_command): GDB emits an error
5426 instead of a warning when a traceframe is not selected.
5427
5428 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5429 Yao Qi <yao@codesourcery.com>
5430
5431 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5432 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5433 in collection_list.
5434 (do_clear_collection_list, init_collection_list): New.
5435 (encode_actions): Add local variables 'tracepoint_list' and
5436 'stepping_list'. Call init_collection_list and make cleanup
5437 which calls do_clear_collection_list. Don't call
5438 clear_collection_list.
5439 (_initialize_tracepoint): Delete references to
5440 'tracepoint_list' and 'stepping_list'.
5441
5442 2013-06-25 Tom Tromey <tromey@redhat.com>
5443
5444 * common/create-version.sh (date): Use "$", not "$$" in sed
5445 expression.
5446
5447 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5448
5449 * NEWS (New targets): Add entry for TI MSP430.
5450
5451 2013-06-25 Yao Qi <yao@codesourcery.com>
5452
5453 * remote.c (remote_start_remote): Move code to upload tsv
5454 earlier.
5455
5456 2013-06-25 Yao Qi <yao@codesourcery.com>
5457 Hui Zhu <hui@codesourcery.com>
5458 Pedro Alves <palves@redhat.com>
5459
5460 PR breakpoints/15075
5461 PR breakpoints/15434
5462 * breakpoint.c (bpstat_stop_status): Call
5463 b->ops->after_condition_true.
5464 (update_dprintf_command_list): Don't append "continue" command
5465 to the command list of dprintf breakpoint.
5466 (base_breakpoint_after_condition_true): New function.
5467 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5468 (dprintf_after_condition_true): New function.
5469 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5470 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5471
5472 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5473
5474 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5475 (ALLDEPFILES): Add msp430-tdep.c.
5476 * configure.tgt (msp430*-*-elf): New target.
5477 * msp430-tdep.c: New file.
5478
5479 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5480
5481 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5482 microMIPS synthetic symbols.
5483
5484 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5485
5486 * objfiles.h (pc_in_section): New prototype.
5487 (in_plt_section): Remove name argument, replace prototype with
5488 static inline function.
5489 * mips-tdep.h: Include "objfiles.h".
5490 (in_mips_stubs_section): New function.
5491 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5492 in_solib_call_trampoline member.
5493 (hppa_in_solib_call_trampoline): Remove name argument.
5494 * objfiles.c (pc_in_section): New function.
5495 (in_plt_section): Remove function.
5496 * mips-linux-tdep.c: Include "objfiles.h".
5497 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5498 name argument. Return 1 rather than the low 16-bit halfword of
5499 any instruction examined.
5500 (mips_linux_in_dynsym_resolve_code): Update
5501 mips_linux_in_dynsym_stub call accordingly.
5502 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5503 rather than an equivalent hand-coded sequence.
5504 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5505 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5506 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5507 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5508 in_opd_section.
5509 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5510 on call to tdep->in_solib_call_trampoline.
5511 (hppa_in_solib_call_trampoline): Remove name argument, update
5512 according to in_plt_section change.
5513 (hppa_skip_trampoline_code): Update according to in_plt_section
5514 change.
5515 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5516 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5517 Likewise.
5518 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5519 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5520 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5521 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5522 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5523 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5524 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5525 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5526 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5527 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5528 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5529 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5530 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5531
5532 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5533
5534 * common/create-version.sh: Fix expansion of $host_alias
5535 and $target_alias in generation of HOST_NAME and TARGET_NAME
5536 (resp.).
5537
5538 2013-06-24 Tom Tromey <tromey@redhat.com>
5539
5540 * common/create-version.sh: New file.
5541 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5542 create-version.sh.
5543 (HFILES_NO_SRCDIR): Use common/version.h.
5544 * version.in: Move to ...
5545 * common/version.in: ... here. Replace date with "DATE".
5546 * version.h: Move to ...
5547 * common/version.h: ... here.
5548
5549 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5550
5551 * gdb/gnulib/Makefile.in: Update date in copyright header.
5552 * gdb/gnulib/configure.ac: Ditto.
5553 * gdb/gnulib/update-gnulib.sh: Ditto.
5554
5555 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5556
5557 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5558 "gdb/gnulib/import".
5559
5560 2013-06-21 Will Newton <will.newton@linaro.org>
5561
5562 * doublest.c (ldfrexp): Remove function.
5563 (convert_doublest_to_floatformat): Call frexpl instead of
5564 ldfrexp.
5565
5566 2013-06-21 Will Newton <will.newton@linaro.org>
5567
5568 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5569 * gnulib/aclocal.m4: Regenerate.
5570 * gnulib/config.in: Regenerate.
5571 * gnulib/configure: Regenerate.
5572 * gnulib/import/Makefile.am: Update.
5573 * gnulib/import/Makefile.in: Update.
5574 * gnulib/import/m4/gnulib-cache.m4: Update.
5575 * gnulib/import/m4/gnulib-comp.m4: Update.
5576 * gnulib/import/float+.h: Import.
5577 * gnulib/import/float.c: Import.
5578 * gnulib/import/float.in.h: Import.
5579 * gnulib/import/fpucw.h: Import.
5580 * gnulib/import/frexp.c: Import.
5581 * gnulib/import/frexpl.c: Import.
5582 * gnulib/import/isnan.c: Import.
5583 * gnulib/import/isnand-nolibm.h: Import.
5584 * gnulib/import/isnand.c: Import.
5585 * gnulib/import/isnanl-nolibm.h: Import.
5586 * gnulib/import/isnanl.c: Import.
5587 * gnulib/import/itold.c: Import.
5588 * gnulib/import/m4/exponentd.m4: Import.
5589 * gnulib/import/m4/exponentl.m4: Import.
5590 * gnulib/import/m4/float_h.m4: Import.
5591 * gnulib/import/m4/fpieee.m4: Import.
5592 * gnulib/import/m4/frexp.m4: Import.
5593 * gnulib/import/m4/frexpl.m4: Import.
5594 * gnulib/import/m4/isnand.m4: Import.
5595 * gnulib/import/m4/isnanl.m4: Import.
5596 * gnulib/import/m4/math_h.m4: Import.
5597 * gnulib/import/math.c: Import.
5598 * gnulib/import/math.in.h: Import.
5599
5600 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5601
5602 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5603 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5604 signature_INTEL_edx comparisons.
5605
5606 2013-06-20 Doug Evans <dje@google.com>
5607
5608 symtab/15652
5609 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5610 All callers updated.
5611 (open_dwp_file): If we can't find the dwp file, search the basename
5612 in debug-file-directory.
5613
5614 * dwarf2read.c (struct dwp_file): Fix comment.
5615 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5616
5617 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5618 better.
5619
5620 2013-06-20 Yao Qi <yao@codesourcery.com>
5621
5622 * breakpoint.c (create_breakpoint): Fix code indentation.
5623
5624 2013-06-20 Yao Qi <yao@codesourcery.com>
5625
5626 * breakpoint.c (create_breakpoints_sal_default): Remove
5627 parameter 'lsal'. Update declaration.
5628 (bkpt_create_breakpoints_sal): Caller update.
5629 (tracepoint_create_breakpoints_sal): Likewise.
5630
5631 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5632 Yao Qi <yao@codesourcery.com>
5633
5634 * NEWS: Mention the new option '--skip-unavailable' of command
5635 -data-list-register-values.
5636 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5637 --skip-unavailable option. Adjust to use output_register.
5638 (output_register): Add new 'skip_unavailable' parameter.
5639 Handle it.
5640
5641 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5642
5643 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5644 common/i386-gcc-cpuid.h.
5645 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5646 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5647 Copy the latest version from upstream gcc.
5648 * common/linux-btrace.c: Include i386-cpuid.h.
5649 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5650 call to i386_cpuid.
5651 (cpu_supports_btrace): Likewise.
5652 * go32-nat.c: Include i386-cpuid.h.
5653 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5654
5655 2013-06-19 Doug Evans <dje@google.com>
5656
5657 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5658 (get_section_index): Ditto.
5659
5660 2013-06-19 Tom Tromey <tromey@redhat.com>
5661
5662 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5663 "dprintf" help.
5664
5665 2013-06-18 Doug Evans <dje@google.com>
5666
5667 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5668 before using it.
5669 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5670 Move test of cu_index closer to use. Print complaint if cu_index
5671 is bad.
5672
5673 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5674
5675 * machoread.c (oso_vector): Delete this global.
5676 (macho_register_oso): Add new parameter "oso_vector_ptr".
5677 Use it instead of the "oso_vector" global.
5678 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5679 (macho_symfile_read): Use a local oso_vector, to be free'ed
5680 at the end of this function, in place of the old "oso_vector"
5681 global. Update various function calls accordingly. Use one
5682 single cleanup chain for the entire function.
5683
5684 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5685
5686 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5687 DWARF2_PER_OBJFILE by uses of DATA instead.
5688
5689 2013-06-18 Tom Tromey <tromey@redhat.com>
5690
5691 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5692 argument.
5693 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5694 Special case signals other than GDB_SIGNAL_TRAP.
5695 (explains_signal_watchpoint): New function.
5696 (base_breakpoint_explains_signal): Add 'sig' argument.
5697 (initialize_breakpoint_ops): Set 'explains_signal' method for
5698 watchpoints.
5699 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5700 signal argument.
5701 (bpstat_explains_signal): Likewise.
5702 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5703
5704 2013-06-18 Tom Tromey <tromey@redhat.com>
5705
5706 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5707
5708 2013-06-18 Tom Tromey <tromey@redhat.com>
5709
5710 * python/python.c (finish_python_initialization): Decref
5711 'pythondir' on failure path as well.
5712
5713 2013-06-18 Tom Tromey <tromey@redhat.com>
5714
5715 PR symtab/15391:
5716 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5717 after taking bits_to_skip into account. Sign extend byte_offset.
5718 * utils.h (gdb_sign_extend): Declare.
5719 * utils.c (gdb_sign_extend): New function.
5720
5721 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5724
5725 2013-06-17 Pierre Muller <muller@sourceware.org>
5726
5727 * corelow.c (core_open): Print GDB signal name instead of target
5728 signal number.
5729
5730 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5731
5732 * .gitignore: Add /gcore.
5733
5734 2013-06-13 Doug Evans <dje@google.com>
5735
5736 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5737 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5738
5739 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5740
5741 * stack.c (backtrace_command_1): Fix indentation.
5742
5743 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5744
5745 * window-nat.c (thread_rec): Add missing empty line after
5746 local variable declaration.
5747
5748 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5749
5750 * windows-nat.c (thread_rec): Revert format used to print
5751 error code returned by SuspendThread from %d back to %u.
5752
5753 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5754
5755 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5756 ID in debug trace.
5757 (get_windows_debug_event): Likewise, for all debug traces.
5758
5759 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5760
5761 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5762 warning message.
5763
5764 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5765 Yao Qi <yao@codesourcery.com>
5766
5767 * mi/mi-main.c (get_register): Remove declaration.
5768 (output_register): Declare.
5769 (mi_cmd_data_list_register_values): Remove local variable
5770 'tuple_cleanup'. Move some code into output_register.
5771 (get_register): Renamed to ...
5772 (output_register): ... this. Output the register's
5773 "number" ui_out tuple here.
5774
5775 2013-06-07 Pedro Alves <palves@redhat.com>
5776
5777 * darwin-nat.c: Fix formating in copyright header.
5778 * darwin-nat.h: Likewise.
5779 * gnu-nat.c: Likewise.
5780 * machoread.c: Likewise.
5781
5782 2013-06-07 Pedro Alves <palves@redhat.com>
5783
5784 PR server/14823
5785 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5786 static. Output a global target description pointer.
5787 (init_registers_${name}): Adjust to initialize a
5788 target description structure.
5789
5790 2013-06-07 Will Newton <will.newton@linaro.org>
5791
5792 * printcmd.c (build_address_symbolic): Call
5793 gdbarch_addr_bits_remove for text minimal symbols.
5794
5795 2013-06-07 Will Newton <will.newton@linaro.org>
5796
5797 * MAINTAINERS: Add myself to Write After Approval.
5798
5799 2013-06-07 Yao Qi <yao@codesourcery.com>
5800
5801 * tracepoint.c (start_tracing): Move code to ...
5802 (trace_reset_local_state): ... here. New.
5803 (disconnect_tracing): Don't call set_current_traceframe,
5804 set_tracepoint_num, and set_traceframe_context. Call
5805 trace_reset_local_state instead.
5806 (tfile_close): Call trace_reset_local_state.
5807 * ctf.c (ctf_close): Likewise.
5808 * remote.c (remote_close): Likewise.
5809 * tracepoint.h (trace_reset_local_state): Declare.
5810
5811 2013-06-06 Doug Evans <dje@google.com>
5812
5813 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5814 and fix header docs.
5815
5816 2013-06-05 Doug Evans <dje@google.com>
5817 Keith Seitz <keiths@redhat.com>
5818
5819 PR 15519
5820 * cp-namespace.c (find_symbol_in_baseclass): Call
5821 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5822 Check result of call to lookup_symbol_static.
5823 Call lookup_static_symbol_aux unconditionally.
5824 Call check_typedef on base types before accessing them.
5825 (cp_lookup_nested_symbol): Fix comment.
5826
5827 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5828
5829 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5830 minimal symbols pointing to function descriptors.
5831
5832 2013-06-05 Tom Tromey <tromey@redhat.com>
5833
5834 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5835
5836 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5837 Pedro Alves <palves@redhat.com>
5838
5839 * remote.c (remote_wait_as): Restore signal handler before returning
5840 when GDB gets a notification.
5841
5842 2013-06-04 Gary Benson <gbenson@redhat.com>
5843
5844 PR 2328
5845 * breakpoint.h (handle_solib_event): Moved function declaration
5846 to solib.h.
5847 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5848 (bpstat_stop_status): Pass new argument to handle_solib_event.
5849 * solib.h (update_solib_breakpoints): New function declaration.
5850 (handle_solib_event): Moved function declaration from
5851 breakpoint.h.
5852 * solib.c (update_solib_breakpoints): New function.
5853 (handle_solib_event): Moved function from breakpoint.c.
5854 Updated to call solib_ops->handle_event if not NULL.
5855 * solist.h (target_so_ops): New fields "update_breakpoints" and
5856 "handle_event".
5857 * infrun.c (set_stop_on_solib_events): New function.
5858 (_initialize_infrun): Use the above for "set
5859 stop-on-solib-events".
5860 (handle_inferior_event): Pass new argument to handle_solib_event.
5861 * solib-svr4.c (probe.h): New include.
5862 (svr4_free_library_list): New forward declaration.
5863 (probe_action): New enum.
5864 (probe_info): New struct.
5865 (probe_info): New static variable.
5866 (NUM_PROBES): New definition.
5867 (svr4_info): New fields "using_xfer", "probes_table" and
5868 "solib_list".
5869 (free_probes_table): New function.
5870 (free_solib_list): New function.
5871 (svr4_pspace_data_cleanup): Free probes table and solib list.
5872 (svr4_copy_library_list): New function.
5873 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5874 (svr4_read_so_list): New parameter "prev_lm".
5875 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5876 (svr4_current_sos): New function.
5877 (probe_and_action): New struct.
5878 (hash_probe_and_action): New function.
5879 (equal_probe_and_action): Likewise.
5880 (register_solib_event_probe): Likewise.
5881 (solib_event_probe_at): Likewise.
5882 (solib_event_probe_action): Likewise.
5883 (solist_update_full): Likewise.
5884 (solist_update_incremental): Likewise.
5885 (disable_probes_interface_cleanup): Likewise.
5886 (svr4_handle_solib_event): Likewise.
5887 (svr4_update_solib_event_breakpoint): Likewise.
5888 (svr4_update_solib_event_breakpoints): Likewise.
5889 (svr4_create_solib_event_breakpoints): Likewise.
5890 (enable_break): Free probes table before creating breakpoints.
5891 Use svr4_create_solib_event_breakpoints to create breakpoints.
5892 (svr4_solib_create_inferior_hook): Free the solib list.
5893 (_initialize_svr4_solib): Initialise
5894 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
5895
5896 2013-06-04 Gary Benson <gbenson@redhat.com>
5897
5898 * target.h (target_ops): New field
5899 "to_augmented_libraries_svr4_read".
5900 (target_augmented_libraries_svr4_read): New macro.
5901 * target.c (update_current_target): Handle
5902 to_augmented_libraries_svr4_read.
5903 * remote.c (remote_state): New field
5904 "augmented_libraries_svr4_read".
5905 (remote_augmented_libraries_svr4_read_feature): New function.
5906 (remote_protocol_features): Add entry for
5907 "augmented-libraries-svr4-read".
5908 (remote_augmented_libraries_svr4_read): New function.
5909 (init_remote_ops): Initialize
5910 remote_ops.to_augmented_libraries_svr4_read.
5911
5912 2013-06-04 Gary Benson <gbenson@redhat.com>
5913
5914 * NEWS: Update.
5915
5916 2013-06-04 Gary Benson <gbenson@redhat.com>
5917
5918 * objfiles.h (inhibit_section_map_updates): New function
5919 declaration.
5920 (resume_section_map_updates): Likewise.
5921 (resume_section_map_updates_cleanup): Likewise.
5922 * objfiles.c (objfile_pspace_info): Removed field
5923 "objfiles_changed_p". New fields "new_objfiles_available",
5924 "section_map_dirty" and "inhibit_updates".
5925 (allocate_objfile): Set new_objfiles_available.
5926 (free_objfile): Set section_map_dirty.
5927 (objfile_relocate1): Likewise.
5928 (in_plt_section): Likewise.
5929 (find_pc_section): Update the conditions under which the
5930 section map will be updated.
5931 (inhibit_section_map_updates): New function.
5932 (resume_section_map_updates): Likewise.
5933 (resume_section_map_updates_cleanup): Likewise.
5934
5935 2013-06-04 Gary Benson <gbenson@redhat.com>
5936
5937 * probe.h (get_probe_argument_count): New declaration.
5938 (evaluate_probe_argument): Likewise.
5939 * probe.c (get_probe_argument_count): New function.
5940 (evaluate_probe_argument): Likewise.
5941 (probe_safe_evaluate_at_pc): Use the above new functions.
5942
5943 2013-06-04 Alan Modra <amodra@gmail.com>
5944
5945 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5946 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
5947 (ppc_insns_match_pattern): Add frame param. Avoid multiple
5948 target mem reads on optional insns.
5949 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
5950 ppc_insns_match_pattern calls.
5951 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
5952 Add match for power7 thread safety insns, and new order of
5953 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
5954 invocation in comment, and update rest of comment.
5955 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
5956 PPC64_STANDARD_LINKAGE3_LEN): Delete.
5957 (ppc64_standard_linkage2_target): Update insn offsets.
5958 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
5959 stubs first. Update calls.
5960
5961 2013-06-04 Yao Qi <yao@codesourcery.com>
5962
5963 * solib.c (solib_find): Don't need dir separator if path has
5964 drive spec.
5965
5966 2013-06-03 Joel Brobecker <brobecker@adacore.com>
5967
5968 Revert (indirectly causes a SIGSEGV):
5969 * machoread.c (macho_symfile_read): Assign first cleanup to
5970 'back_to'.
5971
5972 2013-06-03 Yao Qi <yao@codesourcery.com>
5973
5974 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
5975 mi-parse.c. Make them static.
5976 (mi_all_values): Likewise.
5977 (mi_parse_values_option): Move to mi-parse.c. Rename it to
5978 mi_parse_print_values. Make it external.
5979 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
5980 Remove the declarations.
5981 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
5982 * mi/mi-parse.h (mi_parse_print_values): Declare.
5983 * mi/mi-cmd-stack.c: Include mi-parse.h.
5984 (parse_print_values): Remove
5985 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
5986 of parse_print_values.
5987 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
5988
5989 2013-05-31 Pedro Alves <pedro@codesourcery.com>
5990 Yao Qi <yao@codesourcery.com>
5991
5992 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
5993 (encode_actions): Move code to ...
5994 (all_tracepoint_actions_and_cleanup): ... here. New.
5995 (trace_dump_command): Likewise.
5996
5997 2013-05-30 Tom Tromey <tromey@redhat.com>
5998
5999 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6000
6001 2013-05-30 Tom Tromey <tromey@redhat.com>
6002
6003 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6004 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6005 'old_chain' argument. Add 'parser_result' argument.
6006 (gdb_xml_create_parser_and_cleanup): Remove old version.
6007 (gdb_xml_parse_quick): Update.
6008 (xml_process_xincludes): Update.
6009 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6010 declare.
6011
6012 2013-05-30 Tom Tromey <tromey@redhat.com>
6013
6014 * probe.c (collect_probes): Check arguments for NULL before
6015 calling compile_rx_or_error.
6016 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6017 Remove NULL return.
6018
6019 2013-05-30 Tom Tromey <tromey@redhat.com>
6020
6021 * infrun.c (adjust_pc_after_break): Introduce an outer null
6022 cleanup.
6023
6024 2013-05-30 Tom Tromey <tromey@redhat.com>
6025
6026 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6027
6028 2013-05-30 Tom Tromey <tromey@redhat.com>
6029
6030 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6031 for 'old_chain'. Do not check 'head' before processing
6032 cleanups.
6033
6034 2013-05-30 Tom Tromey <tromey@redhat.com>
6035
6036 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6037 "cleanup_tuple".
6038
6039 2013-05-30 Tom Tromey <tromey@redhat.com>
6040
6041 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6042 inner scope. Unconditionally call do_cleanups.
6043
6044 2013-05-30 Tom Tromey <tromey@redhat.com>
6045
6046 * source.c (find_and_open_source): Call do_cleanups.
6047
6048 2013-05-30 Tom Tromey <tromey@redhat.com>
6049
6050 * linux-thread-db.c (thread_db_load_search): Unconditionally
6051 call do_cleanups.
6052
6053 2013-05-30 Tom Tromey <tromey@redhat.com>
6054
6055 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6056 for 'cleanup'; instead use a later one.
6057
6058 2013-05-30 Tom Tromey <tromey@redhat.com>
6059
6060 * python/py-breakpoint.c (bppy_get_commands): Use
6061 explicit, unconditional return.
6062 * python/py-frame.c (frapy_read_var): Likewise.
6063 * python/python.c (gdbpy_decode_line): Likewise.
6064
6065 2013-05-30 Tom Tromey <tromey@redhat.com>
6066
6067 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6068 do_cleanups on all return paths.
6069
6070 2013-05-30 Tom Tromey <tromey@redhat.com>
6071
6072 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6073
6074 2013-05-30 Tom Tromey <tromey@redhat.com>
6075
6076 * stabsread.c (read_struct_type): Call do_cleanups along
6077 all return paths.
6078
6079 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6080
6081 * mips-linux-tdep.c: Adjust formatting throughout.
6082
6083 2013-05-30 Tom Tromey <tromey@redhat.com>
6084
6085 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6086 along all return paths.
6087
6088 2013-05-30 Tom Tromey <tromey@redhat.com>
6089
6090 * symfile.c (find_separate_debug_file): Call do_cleanups
6091 along all return paths.
6092
6093 2013-05-30 Tom Tromey <tromey@redhat.com>
6094
6095 * symtab.c (search_symbols): Introduce a null cleanup for
6096 'retval_chain'.
6097
6098 2013-05-30 Tom Tromey <tromey@redhat.com>
6099
6100 * python/py-value.c (valpy_binop): Call do_cleanups before
6101 exiting loop.
6102
6103 2013-05-30 Tom Tromey <tromey@redhat.com>
6104
6105 * python/py-prettyprint.c (print_children): Remove extra
6106 do_cleanups call.
6107
6108 2013-05-30 Tom Tromey <tromey@redhat.com>
6109
6110 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6111 all return paths.
6112
6113 2013-05-30 Tom Tromey <tromey@redhat.com>
6114
6115 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6116 along all return paths.
6117
6118 2013-05-30 Tom Tromey <tromey@redhat.com>
6119
6120 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6121 call do_cleanups.
6122
6123 2013-05-30 Tom Tromey <tromey@redhat.com>
6124
6125 * varobj.c (c_value_of_root): Call do_cleanups along all
6126 return paths.
6127
6128 2013-05-30 Tom Tromey <tromey@redhat.com>
6129
6130 * tracepoint.c (trace_dump_command): Unconditionally call
6131 do_cleanups.
6132
6133 2013-05-30 Tom Tromey <tromey@redhat.com>
6134
6135 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6136 do_cleanups earlier.
6137
6138 2013-05-30 Tom Tromey <tromey@redhat.com>
6139
6140 * machoread.c (macho_symfile_read): Assign first cleanup to
6141 'back_to'.
6142
6143 2013-05-30 Tom Tromey <tromey@redhat.com>
6144
6145 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6146
6147 2013-05-30 Tom Tromey <tromey@redhat.com>
6148
6149 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6150
6151 2013-05-30 Tom Tromey <tromey@redhat.com>
6152
6153 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6154 call discard_cleanups.
6155 (inf_ptrace_attach): Likewise.
6156
6157 2013-05-30 Tom Tromey <tromey@redhat.com>
6158
6159 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6160 return paths.
6161 (mips_initialize): Likewise.
6162 (common_open): Call do_cleanups.
6163
6164 2013-05-30 Tom Tromey <tromey@redhat.com>
6165
6166 * utils.c (internal_vproblem): Call do_cleanups.
6167
6168 2013-05-30 Tom Tromey <tromey@redhat.com>
6169
6170 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6171
6172 2013-05-30 Tom Tromey <tromey@redhat.com>
6173
6174 * cli/cli-script.c (setup_user_args): Don't return after error.
6175
6176 2013-05-30 Tom Tromey <tromey@redhat.com>
6177
6178 * somread.c (som_symtab_read): Call do_cleanups.
6179
6180 2013-05-30 Tom Tromey <tromey@redhat.com>
6181
6182 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6183
6184 2013-05-30 Tom Tromey <tromey@redhat.com>
6185
6186 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6187 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6188 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6189 * source.c (show_substitute_path_command): Call do_cleanups.
6190 (unset_substitute_path_command, set_substitute_path_command):
6191 Likewise.
6192 * symfile.c (load_command): Call do_cleanups.
6193
6194 2013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * contrib/cleanup_check.py: New file.
6197 * contrib/gcc-with-excheck: Add option parsing.
6198
6199 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6200
6201 * windows-nat.c (windows_delete_thread): Add missing space
6202 in cast expression.
6203
6204 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6205
6206 * inferior.c (top level): Include tilde.h.
6207 (add_inferior_command): Call tilde_expand on the value of 'exec'
6208 argument.
6209
6210 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6211 Yao Qi <yao@codesourcery.com>
6212
6213 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6214 Caller update.
6215 (encode_actions): Likewise.
6216 * remote.c (remote_download_tracepoint): Caller update.
6217 * tracepoint.h (encode_actions): Update declaration.
6218
6219 2013-05-30 Pedro Alves <palves@redhat.com>
6220
6221 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6222 pointer.
6223
6224 2013-05-30 Yao Qi <yao@codesourcery.com>
6225
6226 * remote.c (remote_check_symbols): Remove unused parameter
6227 'objfile'.
6228 Declaration update.
6229 (remote_start_remote, remote_new_objfile): Caller update.
6230
6231 2013-05-30 Yao Qi <yao@codesourcery.com>
6232
6233 * mi/mi-cmds.c (mi_cmds): Define MI command
6234 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6235 DEF_MI_CMD_CLI.
6236
6237 2013-05-29 Pedro Alves <palves@redhat.com>
6238
6239 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6240 (remote_insert_watchpoint, remote_remove_watchpoint)
6241 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6242 (remote_verify_memory, compare_sections_command)
6243 (remote_search_memory): Set the general process/thread on the
6244 remote side.
6245
6246 2013-05-29 Pedro Alves <palves@redhat.com>
6247
6248 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6249 (_initialize_aarch64_tdep): Don't call
6250 initialize_tdesc_aarch64_without_fpu.
6251 * features/Makefile (WHICH): Remove reference to
6252 aarch64-without-fpu.
6253 * features/aarch64-without-fpu.c: Delete file.
6254 * regformats/aarch64-without-fpu.dat: Delete file.
6255
6256 2013-05-28 Yao Qi <yao@codesourcery.com>
6257
6258 * tracepoint.c (stringify_collection_list): Remove parameter
6259 'string'.
6260 (encode_actions): Caller update. Remove local variables.
6261
6262 2013-05-24 Yao Qi <yao@codesourcery.com>
6263
6264 * tracepoint.c (TFILE_PID): Remove.
6265 (tfile_open): Don't add thread and inferior.
6266 (tfile_close): Don't set 'inferior_ptid'. Don't call
6267 exit_inferior_silent.
6268 (tfile_thread_alive): Remove.
6269 (init_tfile_ops): Don't set field 'to_thread_alive' of
6270 tfile_ops.
6271
6272 2013-05-23 Doug Evans <dje@google.com>
6273
6274 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6275
6276 2013-05-23 Pedro Alves <palves@redhat.com>
6277
6278 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6279 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6280 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6281 Only define if HAVE_SOCKETS is defined.
6282 * configure.ac: Check for sys/socket.h.
6283 * config.in, configure: Regenerate.
6284
6285 2013-05-23 Pedro Alves <palves@redhat.com>
6286
6287 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6288 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6289 printing uint32_t variables.
6290
6291 2013-05-23 Pedro Alves <palves@redhat.com>
6292
6293 * NEWS: Mention GDBserver range stepping support.
6294
6295 2013-05-23 Yao Qi <yao@codesourcery.com>
6296 Pedro Alves <palves@redhat.com>
6297
6298 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6299 field.
6300 * infcmd.c (step_once, until_next_command): Enable range stepping.
6301 * infrun.c (displaced_step_prepare): Disable range stepping.
6302 (resume): Disable range stepping if stepping over a breakpoint or
6303 we have software watchpoints. If range stepping is enabled,
6304 assert the thread is in the stepping range.
6305 (clear_proceed_status_thread): Clear may_range_step.
6306 (handle_inferior_event): Disable range stepping as soon as we know
6307 the thread that hit the event. Re-enable it whenever we're going
6308 to step with a step range.
6309 * remote.c (struct vCont_action_support) <r>: New field.
6310 (use_range_stepping): New global.
6311 (remote_vcont_probe): Handle 'r' action.
6312 (append_resumption): Append an 'r' action if the thread may range
6313 step.
6314 (show_range_stepping): New function.
6315 (set_range_stepping): New function.
6316 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6317 'set range-stepping' and 'show range-stepping' commands.
6318 * NEWS: Mention range stepping, the new vCont;r action, and the
6319 new "set/show range-stepping" commands.
6320
6321 2013-05-23 Yao Qi <yao@codesourcery.com>
6322 Pedro Alves <palves@redhat.com>
6323
6324 * remote.c (struct vCont_action_support): New struct.
6325 (struct remote_state) <support_vCont_t>: Remove field.
6326 <vCont_actions_support>: New field.
6327 (remote_vcont_probe, remote_stop_ns): Update.
6328
6329 2013-05-23 Yao Qi <yao@codesourcery.com>
6330 Pedro Alves <palves@redhat.com>
6331
6332 * gdbthread.h (pc_in_thread_step_range): New declaration.
6333 * thread.c (pc_in_thread_step_range): New function.
6334 * infrun.c (handle_inferior_event): Use it.
6335
6336 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6337
6338 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6339 of sprintf.
6340
6341 2013-05-22 Keith Seitz <keiths@redhat.com>
6342
6343 * ada-lang.c (is_known_support_routine): Add explicit free of
6344 'func_name' from find_frame_funname.
6345 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6346 for func_name from find_frame_funname.
6347 * python/py-frame.c (frapy_name): Add explicit free of
6348 'name' from find_frame_funname.
6349 * stack.c (find_frame_funname): Add comment explaining that
6350 funcp must be freed by the caller.
6351 Return copy of symbol names instead of pointers.
6352 (print_frame): Add a cleanup for 'funname' from
6353 find_frame_funname.
6354 * stack.h (find_frame_funname): Remove "const" from
6355 'funname' parameter.
6356
6357 2013-05-22 Tom Tromey <tromey@redhat.com>
6358
6359 PR c++/15401:
6360 * c-valprint.c (c_value_print): Use value_addr for
6361 references. Convert back to reference type with value_ref.
6362
6363 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6364
6365 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6366 unloaded DLL, it will be done by handle_solib_event. See
6367 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6368 details.
6369
6370 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6371
6372 * ui-out.c: Create typedef ui_out_level_p and define vector
6373 operations for that type.
6374 (struct ui_out): Use a vector instead of an array.
6375 (current_level): Return level from a vector.
6376 (push_level): Create a level in a vector.
6377 (pop_level): Delete a level in a vector.
6378 (ui_out_new): Create initial level zero level, and store in a
6379 vector.
6380 (ui_out_destroy): Add vector cleanup.
6381
6382 2013-05-22 Pedro Alves <palves@redhat.com>
6383
6384 * python/python-internal.h (gdb_Py_DECREF): Tag with
6385 "ARI: editCase function".
6386
6387 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6388
6389 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6390
6391 2013-05-21 Pedro Alves <palves@redhat.com>
6392
6393 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6394 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6395 * python/py-utils.c (py_decref): Don't check for NULL before
6396 calling Py_DECREF.
6397
6398 2013-05-21 Pedro Alves <palves@redhat.com>
6399
6400 * python/py-utils.c (py_decref): Remove extra braces.
6401 (gdb_pymodule_addobject): Remove extra braces.
6402 * python-internal.h (gdb_Py_DECREF): New static inline function.
6403 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6404
6405 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6406
6407 * breakpoints.c (detach_breakpoints): Do not
6408 detach breakpoints locations with loc_type bp_loc_other.
6409
6410 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6411
6412 Workaround Python 2.6.
6413 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6414 a block.
6415
6416 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6417
6418 Code cleanup: constification.
6419 * solib.c (solib_ops): Make return type and ops variable type const.
6420 (set_solib_ops): Make the new_ops parameter and ops variable const.
6421 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6422 (solib_add, solib_keep_data_in_core, clear_solib)
6423 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6424 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6425 const.
6426 * solib.h (set_solib_ops): Make the new_ops parameter const.
6427
6428 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6429
6430 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6431 variable.
6432 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6433 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6434 (SYSTEM_GDBINIT_FILES): New variables.
6435 (all): Add stamp-system-gdbinit.
6436 (stamp-system-gdbinit): New rule.
6437 (clean-system-gdbinit, install-system-gdbinit)
6438 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6439 (install-only): Add dependency on install-system-gdbinit.
6440 (uninstall): Add dependency on uninstall-system-gdbinit.
6441 (clean): Add dependency on clean-system-gdbinit.
6442 * system-gdbinit/elinos.py: New file.
6443 * system-gdbinit/wrs-linux.py: New file.
6444
6445 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6446
6447 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6448
6449 2013-05-21 Hui Zhu <hui@codesourcery.com>
6450
6451 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6452 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6453 * mi/mi-cmd-break.c (ctype.h): New include.
6454 (gdb_obstack.h): New include.
6455 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6456 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6457 (mi_cmd_dprintf_insert): New.
6458 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6459 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6460
6461 2013-05-20 Tom Tromey <tromey@redhat.com>
6462
6463 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6464
6465 2013-05-20 Tom Tromey <tromey@redhat.com>
6466
6467 * python/py-value.c (valpy_get_dynamic_type): Simplify
6468 dynamic_type assignment. Use Py_XINCREF.
6469
6470 2013-05-20 Tom Tromey <tromey@redhat.com>
6471
6472 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6473
6474 2013-05-20 Tom Tromey <tromey@redhat.com>
6475
6476 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6477 (gdbpy_selected_frame): Move object-construction code
6478 out of TRY_CATCH.
6479
6480 2013-05-20 Tom Tromey <tromey@redhat.com>
6481
6482 * python/py-arch.c (gdbpy_initialize_arch): Use
6483 gdb_pymodule_addobject.
6484 * python/py-block.c (gdbpy_initialize_blocks): Use
6485 gdb_pymodule_addobject.
6486 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6487 gdb_pymodule_addobject.
6488 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6489 gdb_pymodule_addobject.
6490 * python/py-event.c (gdbpy_initialize_event_generic): Use
6491 gdb_pymodule_addobject.
6492 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6493 gdb_pymodule_addobject.
6494 * python/py-evts.c (add_new_registry): Use
6495 gdb_pymodule_addobject.
6496 (gdbpy_initialize_py_events): Likewise.
6497 * python/py-finishbreakpoint.c
6498 (gdbpy_initialize_finishbreakpoints): Use
6499 gdb_pymodule_addobject.
6500 * python/py-frame.c (gdbpy_initialize_frames): Use
6501 gdb_pymodule_addobject.
6502 * python/py-function.c (gdbpy_initialize_functions): Use
6503 gdb_pymodule_addobject.
6504 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6505 gdb_pymodule_addobject.
6506 * python/py-infthread.c (gdbpy_initialize_thread): Use
6507 gdb_pymodule_addobject.
6508 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6509 gdb_pymodule_addobject.
6510 * python/py-param.c (gdbpy_initialize_parameters): Use
6511 gdb_pymodule_addobject.
6512 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6513 gdb_pymodule_addobject.
6514 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6515 gdb_pymodule_addobject.
6516 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6517 gdb_pymodule_addobject.
6518 * python/py-type.c (gdbpy_initialize_types): Use
6519 gdb_pymodule_addobject.
6520 * python/py-utils.c (gdb_pymodule_addobject): New function.
6521 * python/py-value.c (gdbpy_initialize_values): Use
6522 gdb_pymodule_addobject.
6523 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6524 * python/python.c (_initialize_python): Use
6525 gdb_pymodule_addobject.
6526
6527 2013-05-20 Tom Tromey <tromey@redhat.com>
6528
6529 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6530 * python/py-param.c (get_set_value, get_show_value): Use
6531 explicit decrefs.
6532 * python/python.c (start_type_printers, apply_type_printers):
6533 Use explicit decrefs.
6534
6535 2013-05-20 Tom Tromey <tromey@redhat.com>
6536
6537 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6538 incref the module.
6539
6540 2013-05-20 Tom Tromey <tromey@redhat.com>
6541
6542 * python/python.c (gdbpy_run_events): Decref the result
6543 of PyObject_CallObject.
6544
6545 2013-05-20 Tom Tromey <tromey@redhat.com>
6546
6547 * python/py-symtab.c (set_sal): Use
6548 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6549 (symtab_and_line_to_sal_object): Update.
6550
6551 2013-05-20 Tom Tromey <tromey@redhat.com>
6552
6553 * python/py-param.c (compute_enum_values): Decref 'item'.
6554
6555 2013-05-20 Tom Tromey <tromey@redhat.com>
6556
6557 * mi/mi-main.c: Include python-internal.h.
6558 (mi_cmd_list_features): Check gdb_python_initialized.
6559 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6560 (python_inferior_exit, python_new_objfile, add_thread_object)
6561 (delete_thread_object, py_free_inferior): Check
6562 gdb_python_initialized.
6563 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6564 gdb_python_initialized.
6565 * python/py-type.c (save_objfile_types): Check
6566 gdb_python_initialized.
6567 * python/python-internal.h (gdb_python_initialized): Declare.
6568 * python/python.c (ensure_python_env): Throw exception if
6569 Python not initialized.
6570 (before_prompt_hook, source_python_script_for_objfile)
6571 (start_type_printers, apply_type_printers,
6572 free_type_printers): Check gdb_python_initialized.
6573 * varobj.c (varobj_get_display_hint)
6574 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6575 (install_new_value_visualizer, varobj_set_visualizer)
6576 (value_get_print_value): Check gdb_python_initialized.
6577
6578 2013-05-20 Tom Tromey <tromey@redhat.com>
6579
6580 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6581 Check errors.
6582 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6583 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6584 Check errors.
6585 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6586 Check errors.
6587 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6588 Check errors.
6589 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6590 Check errors.
6591 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6592 init function to return 'int'.
6593 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6594 Return 'int'. Check errors.
6595 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6596 Check errors.
6597 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6598 Return 'int'. Check errors.
6599 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6600 Check errors.
6601 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6602 Check errors.
6603 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6604 Check errors.
6605 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6606 Check errors.
6607 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6608 Check errors.
6609 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6610 Check errors.
6611 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6612 Check errors.
6613 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6614 Check errors.
6615 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6616 Check errors.
6617 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6618 Check errors.
6619 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6620 Check errors.
6621 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6622 Check errors.
6623 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6624 Check errors.
6625 * python/python-internal.h (gdbpy_initialize_auto_load,
6626 gdbpy_initialize_values, gdbpy_initialize_frames,
6627 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6628 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6629 gdbpy_initialize_blocks, gdbpy_initialize_types,
6630 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6631 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6632 gdbpy_initialize_finishbreakpoints,
6633 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6634 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6635 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6636 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6637 gdbpy_initialize_signal_event,
6638 gdbpy_initialize_breakpoint_event,
6639 gdbpy_initialize_continue_event,
6640 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6641 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6642 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6643 * python/python.c (gdb_python_initialized): New global.
6644 (gdbpy_initialize_events): Return 'int'. Check errors.
6645 (_initialize_python): Check errors. Set
6646 gdb_python_initialized.
6647
6648 2013-05-20 Tom Tromey <tromey@redhat.com>
6649
6650 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6651 Decref the reslut of PyObject_CallMethod.
6652
6653 2013-05-20 Tom Tromey <tromey@redhat.com>
6654
6655 * python/py-event.c (gdbpy_initialize_event_generic): Return
6656 early if PyType_Ready fails.
6657
6658 2013-05-20 Tom Tromey <tromey@redhat.com>
6659
6660 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6661 as 'default' in the switch.
6662
6663 2013-05-20 Tom Tromey <tromey@redhat.com>
6664
6665 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6666 get_addr_from_python calls out of TRY_CATCH.
6667 (infpy_write_memory, infpy_search_memory): Likewise.
6668 * python/py-utils.c (get_addr_from_python): Return negative
6669 value on error. Use TRY_CATCH.
6670 * python/python-internal.h (get_addr_from_python): Use
6671 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6672
6673 2013-05-20 Tom Tromey <tromey@redhat.com>
6674
6675 * python/py-event.c (evpy_emit_event): Decref the
6676 result of PyObject_CallFunctionObjArgs.
6677
6678 2013-05-20 Tom Tromey <tromey@redhat.com>
6679
6680 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6681 Correctly decref.
6682
6683 2013-05-20 Tom Tromey <tromey@redhat.com>
6684
6685 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6686
6687 2013-05-20 Tom Tromey <tromey@redhat.com>
6688
6689 * python/py-event.h (gdbpy_initialize_event_generic): Use
6690 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6691 * python/py-evts.c (add_new_registry): Use
6692 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6693 * python/python-internal.h
6694 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6695
6696 2013-05-20 Tom Tromey <tromey@redhat.com>
6697
6698 * python/py-arch.c (archpy_disassemble): Update.
6699 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6700 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6701 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6702 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6703 macro.
6704 (GDB_PY_HANDLE_EXCEPTION): Update.
6705 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6706
6707 2013-05-20 Tom Tromey <tromey@redhat.com>
6708
6709 * python/python-internal.h (events_object_type): Remove.
6710
6711 2013-05-20 Tom Tromey <tromey@redhat.com>
6712
6713 * python/py-event.h (evpy_emit_event): Use
6714 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6715 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6716 New macro.
6717
6718 2013-05-20 Tom Tromey <tromey@redhat.com>
6719
6720 * py-evtregistry.c (create_event_object): Decref
6721 eventregistry_object if PyList_New fails.
6722
6723 2013-05-20 Tom Tromey <tromey@redhat.com>
6724
6725 * py-cmd.c (gdbpy_string_to_argv): Check result of
6726 PyList_New.
6727
6728 2013-05-20 Tom Tromey <tromey@redhat.com>
6729
6730 * python/python.c (before_prompt_hook): Add cleanup to
6731 decref 'hook'.
6732
6733 2013-05-20 Tom Tromey <tromey@redhat.com>
6734
6735 * python/py-function.c (fnpy_init): Decref result of
6736 PyObject_GetAttrString.
6737
6738 2013-05-20 Tom Tromey <tromey@redhat.com>
6739
6740 * python/py-threadevent.c (get_event_thread): Use
6741 CPYCHECKER_RETURNS_BORROWED_REF.
6742 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6743 New define.
6744 (pspace_to_pspace_object, objfile_to_objfile_object)
6745 (find_thread_object): Use it.
6746
6747 2013-05-20 Tom Tromey <tromey@redhat.com>
6748
6749 * python/py-arch.c (arch_object_type): Use
6750 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6751 * python/py-block.c (block_syms_iterator_object_type):
6752 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6753 * python/py-bpevent.c (breakpoint_event_object_type):
6754 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6755 * python/py-cmd.c (cmdpy_object_type): Use
6756 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6757 * python/py-continueevent.c (continue_event_object_type):
6758 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6759 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6760 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6761 * python/py-events.h (thread_event_object_type):
6762 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6763 * python/py-evtregistry.c (eventregistry_object_type): Use
6764 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6765 * python/py-exitedevent.c (exited_event_object_type):
6766 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6767 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6768 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6769 * python/py-function.c (fnpy_object_type): Use
6770 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6771 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6772 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6773 * python/py-infthread.c (thread_object_type): Use
6774 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6775 * python/py-lazy-string.c (lazy_string_object_type):
6776 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6777 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6778 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6779 * python/py-objfile.c (objfile_object_type): Use
6780 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6781 * python/py-param.c (parmpy_object_type):
6782 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6783 * python/py-progspace.c (pspace_object_type):
6784 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6785 * python/py-signalevent.c (signal_event_object_type):
6786 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6787 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6788 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6789 * python/py-type.c (type_object_type, field_object_type)
6790 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6791 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6792 define.
6793 (value_object_type, block_object_type, symbol_object_type)
6794 (event_object_type, stop_event_object_type, breakpoint_object_type)
6795 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6796
6797 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6798
6799 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6800 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6801
6802 2013-05-20 Doug Evans <dje@google.com>
6803
6804 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6805 For Fission.
6806 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6807 reading_dwo_directly.
6808 (struct signatured_type): New member dwo_unit.
6809 (struct die_reader_specs): New member comp_dir.
6810 (create_signatured_type_table_from_index): Use malloc for
6811 all_type_units instead of objfile's obstack.
6812 (create_all_type_units): Ditto.
6813 (fill_in_sig_entry_from_dwo_entry): New function.
6814 (add_type_unit): New function.
6815 (lookup_dwo_signatured_type): New function.
6816 (lookup_dwp_signatured_type): New function.
6817 (lookup_signatured_type): New arg cu. All callers updated.
6818 (init_cu_die_reader): Initialize comp_dir.
6819 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6820 Change assert of matching type signatures to call error on mismatch.
6821 (lookup_dwo_unit): Add assert.
6822 (init_tu_and_read_dwo_dies): New function.
6823 (init_cutu_and_read_dies): Call it.
6824 (build_type_unit_groups): Handle case of no type unit groups created.
6825 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6826 (lookup_dwo_cutu): Tweak complaint.
6827 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6828 (dwarf2_per_objfile_free): Free all_type_units.
6829
6830 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6831
6832 * windows-nat.c (handle_unload_dll): Add missing empty line.
6833
6834 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6835
6836 * dwarf2read.c (prototyped_function_p): New function.
6837 (read_subroutine_type): Use it.
6838
6839 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6840
6841 * rs6000-aix-tdep.c: De-indent some example code provided
6842 as a comment.
6843
6844 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6845
6846 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6847 region is ok for a hardware watchpoint using the new ptrace interface
6848 on Power servers.
6849
6850 2013-05-17 Doug Evans <dje@google.com>
6851
6852 * NEWS: Mention new maintenance commands check-symtabs, and
6853 expand-symtabs, and renamed check-psymtabs.
6854 * psymtab.c (maintenance_check_psymtabs): Renamed from
6855 maintenance_check_symtabs. Only process already-expanded symbol
6856 tables.
6857 (_initialize_psymtab): Update.
6858 * symmisc.c (maintenance_check_symtabs): New function.
6859 (maintenance_expand_name_matcher): New function
6860 (maintenance_expand_file_matcher): New function
6861 (maintenance_expand_symtabs): New function.
6862 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6863 commands.
6864
6865 2013-05-17 Tom Tromey <tromey@redhat.com>
6866
6867 * python/py-inferior.c (infpy_read_memory): Don't call
6868 PyErr_SetString if PyObject_New fails.
6869 * python/py-frame.c (frame_info_to_frame_object): Don't call
6870 PyErr_SetString if PyObject_New fails.
6871
6872 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6873
6874 * acinclude.m4: Add check for dlopen in libdl.
6875 * configure.ac: Ditto.
6876 * configure: Regenerate.
6877
6878 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6879
6880 * frame.c (frame_stash): Convert to htab.
6881 (frame_addr_hash): New function.
6882 (frame_addr_hash_eq): New function.
6883 (frame_stash_create): Convert function to create
6884 a hash table.
6885 (frame_stash_add): Convert function to add an entry to a hash
6886 table.
6887 (frame_stash_find): Convert function to search the hash table.
6888 (frame_stash_invalidate): Convert function to empty the hash
6889 table.
6890 (get_frame_id): Only add to stash if a frame_id is created.
6891 (_initialize_frame): Call frame_stash_create.
6892
6893 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
6894
6895 * configure.ac: Ensure MIG is available when building for GNU Hurd
6896 hosts.
6897 * configure: Regenerate.
6898
6899 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6900
6901 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
6902
6903 2013-05-16 Joel Brobecker <brobecker@adacore.com>
6904
6905 * ada-lang.c (ada_make_symbol_completion_list): Make sure
6906 all cleanups are done before returning from this function.
6907
6908 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6909
6910 * utils.h: #include "exceptions.h".
6911 (enum errors): Remove partial declaration.
6912
6913 2013-05-15 Joel Brobecker <brobecker@adacore.com>
6914
6915 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
6916 * gdbarch.h, gdbarch.c: Regenerate.
6917 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
6918 handling.
6919
6920 * rs6000-aix-tdep.h: New file.
6921 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
6922 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
6923 "xml-utils.h".
6924 (struct field_info, struct ld_info_desc): New types.
6925 (ld_info32_desc, ld_info64_desc): New static constants.
6926 (struct ld_info): New type.
6927 (rs6000_aix_extract_ld_info): New function.
6928 (rs6000_aix_shared_library_to_xml): Likewise.
6929 (rs6000_aix_ld_info_to_xml): Likewise.
6930 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
6931 (rs6000_aix_init_osabi): Add call to
6932 set_gdbarch_core_xfer_shared_libraries_aix.
6933 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
6934 Remove "xml-utils.h" include.
6935 (LdInfo): Delete typedef.
6936 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
6937 Delete macros.
6938 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
6939 Adjust code accordingly.
6940 (rs6000_core_ldinfo): Delete, folded into
6941 rs6000_aix_core_xfer_shared_libraries_aix.
6942 (rs6000_xfer_shared_library): Delete.
6943 (rs6000_xfer_shared_libraries): Reimplement.
6944
6945 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
6946
6947 * record.c (record_goto_cmdlist): New.
6948 (cmd_record_goto): Split into this ...
6949 (cmd_record_goto_begin): ... this
6950 (cmd_record_goto_end): ... and this.
6951 (_initialize_record): Change "record goto" to prefix command.
6952 Add commands for "record goto begin" and "record goto end".
6953 Add an alias for "record goto start" to "record goto begin".
6954
6955 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6956
6957 * linespec.c (convert_linespec_to_sals): New comment for
6958 SOURCE_FILENAME assignment.
6959
6960 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
6963 internal_warning.
6964
6965 2013-05-14 Tom Tromey <tromey@redhat.com>
6966
6967 * eval.c (parse_and_eval_long): Make 'exp' const.
6968 * value.h (parse_and_eval_long): Update.
6969
6970 2013-05-14 Tom Tromey <tromey@redhat.com>
6971
6972 * ui-file.c (gdb_fopen): Make arguments const.
6973 * ui-file.h (gdb_fopen): Make arguments const.
6974
6975 2013-05-14 Tom Tromey <tromey@redhat.com>
6976
6977 * remote.c (remote_set_trace_notes): Make arguments const.
6978 * target.c (update_current_target): Update cast.
6979 * target.h (to_set_trace_notes): Make arguments const.
6980
6981 2013-05-14 Tom Tromey <tromey@redhat.com>
6982
6983 * go32-nat.c (go32_terminal_info): Make 'args' const.
6984 * inferior.h (child_terminal_info): Update.
6985 * inflow.c (child_terminal_info): Make 'args' const.
6986 * target.c (default_terminal_info): Make 'args' const.
6987 (debug_to_terminal_save_ours): Likewise.
6988 * target.h (struct target_ops) <to_terminal_info>: Make argument
6989 const.
6990
6991 2013-05-13 Tom Tromey <tromey@redhat.com>
6992
6993 * gcore.c (create_gcore_bfd): Make 'filename' const.
6994 * gcore.h (create_gcore_bfd): Make 'filename' const.
6995 * record-full.c (record_full_save): Make 'recfilename' const.
6996 * target.c (target_save_record): Make 'filename' const.
6997 * target.h (struct target_ops) <to_save_record>: Make 'filename'
6998 const.
6999 (target_save_record): Likewise.
7000
7001 2013-05-13 Tom Tromey <tromey@redhat.com>
7002
7003 PR gdb/15338:
7004 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7005 ranges section has been read.
7006
7007 2013-05-13 Tom Tromey <tromey@redhat.com>
7008
7009 PR exp/15364:
7010 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7011 STRUCTOP_PTR>: Return a not_lval value for
7012 EVAL_AVOID_SIDE_EFFECTS.
7013 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7014 for EVAL_AVOID_SIDE_EFFECTS.
7015
7016 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7017
7018 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7019 floating point registers to register type before storing
7020 value.
7021 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7022 Likewise.
7023
7024 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7025 Tom Tromey <tromey@redhat.com>
7026
7027 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7028 New functions.
7029 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7030 Declare.
7031 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7032 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7033 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7034 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7035
7036 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7037 Tom Tromey <tromey@redhat.com>
7038
7039 PR build/15414:
7040 * configure: Rebuild.
7041 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7042 with -Wno-format.
7043
7044 2013-05-10 Pedro Alves <palves@redhat.com>
7045
7046 * remote.c (_initialize_remote): Fix spelling of
7047 qXfer:traceframe-info:read packet in packet config command.
7048
7049 2013-05-10 David Taylor <dtaylor@emc.com>
7050
7051 PR remote/15455
7052
7053 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7054 "QTro" at start of packet.
7055
7056 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7057
7058 * solib-aix.c (solib_aix_relocate_section_addresses):
7059 For the .bss section action, apply the same offset as
7060 the .data section.
7061
7062 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7063
7064 * solib-aix.c (solib_aix_relocate_section_addresses):
7065 Remove FIXME comment.
7066
7067 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7068
7069 PR tdep/15420:
7070 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7071 New functions, directly copied from sparc-sol-thread.c.
7072 * sparc-sol-thread.c: Delete.
7073 * configure.ac: Remove code handling sparc-solaris-thread.c.
7074 * configure: Regenerate.
7075
7076 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7077
7078 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7079 filter logic.
7080 (backtrace_command): Add "no-filters" option parsing.
7081 (_initialize_stack): Alter help to reflect "no-filters" option.
7082 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7083 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7084 (py-frame.o): Add target
7085 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7086 filter files.
7087 * python/python.h: Add new frame filter constants, and flag enum.
7088 (apply_frame_filter): Add definition.
7089 * python/python.c (apply_frame_filter): New non-Python
7090 enabled function.
7091 * python/py-utils.c (py_xdecref): New function.
7092 (make_cleanup_py_xdecref): Ditto.
7093 * python/py-objfile.c: Declare frame_filters dictionary.
7094 (objfpy_dealloc): Add frame_filters dealloc.
7095 (objfpy_new): Initialize frame_filters attribute.
7096 (objfile_to_objfile_object): Ditto.
7097 (objfpy_get_frame_filters): New function.
7098 (objfpy_set_frame_filters): New function.
7099 * python/py-progspace.c: Declare frame_filters dictionary.
7100 (pspy_dealloc): Add frame_filters dealloc.
7101 (pspy_new): Initialize frame_filters attribute.
7102 (pspacee_to_pspace_object): Ditto.
7103 (pspy_get_frame_filters): New function.
7104 (pspy_set_frame_filters): New function.
7105 * python/py-framefilter.c: New file.
7106 * python/lib/gdb/command/frame_filters.py: New file.
7107 * python/lib/gdb/frames.py: New file.
7108 * python/lib/gdb/__init__.py: Initialize global frame_filters
7109 dictionary
7110 * python/lib/gdb/FrameDecorator.py: New file.
7111 * python/lib/gdb/FrameIterator.py: New file.
7112 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7113 * mi/mi-cmds.h: Declare.
7114 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7115 --no-frame-filter logic, and Python frame filter logic.
7116 (stack_enable_frame_filters): New function.
7117 (parse_no_frame_option): Ditto.
7118 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7119 filter logic.
7120 (mi_cmd_stack_list_locals): Ditto.
7121 (mi_cmd_stack_list_args): Ditto.
7122 (mi_cmd_stack_list_variables): Ditto.
7123 * NEWS: Add frame filter note.
7124
7125 2013-05-09 Doug Evans <dje@google.com>
7126
7127 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7128 All callers updated.
7129 (syms_from_objfile): Ditto. Make static.
7130 (symbol_file_add_with_addrs): Renamed from
7131 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7132 num_offsets. All callers updated.
7133 * symfile.h (syms_from_objfile): Delete.
7134
7135 * symfile.c (decrement_reading_symtab): Add assert.
7136 (increment_reading_symtab): Ditto.
7137
7138 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7139
7140 * source.c (forward_search_command): Replace call to getc
7141 by call to fgetc.
7142 (reverse_search_command): Likewise.
7143
7144 2013-05-08 Doug Evans <dje@google.com>
7145
7146 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7147 matching test.
7148
7149 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7150
7151 * sol-thread.c (info_cb): Factorize the code a little.
7152
7153 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7154
7155 * sol-thread.c (info_cb): Rework the output of the "maintenance
7156 info sol-threads" command a bit.
7157
7158 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7159
7160 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7161 Replace ti.ti_startfunc by ti.ti_pc.
7162
7163 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7164
7165 * solib-aix.c (solib_aix_free_library_list): New function
7166 for the case where HAVE_LIBEXPAT is not defined.
7167
7168 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7169
7170 PR breakpoints/15413:
7171 * breakpoint.c (condition_completer): Simplify the code to
7172 disconsider multiple locations of breakpoints when completing the
7173 "condition" command.
7174
7175 2013-05-07 Pierre Muller <muller@sourceware.org>
7176
7177 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7178 instead of <sys/wait.h>.
7179
7180 2013-05-07 Pierre Muller <muller@sourceware.org>
7181
7182 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7183 trailing new line from warning message.
7184
7185 2013-05-07 Pierre Muller <muller@sourceware.org>
7186
7187 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7188 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7189
7190 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7191
7192 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7193 error message (ARI fix).
7194
7195 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7196
7197 * features/library-list-aix.dtd: Replace library-list by
7198 library-list-aix.
7199 * rs6000-nat.c: Replace library-list by library-list-aix
7200 throughout.
7201 * solib-aix.c: Likewise.
7202
7203 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7204
7205 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7206 Renames TARGET_OBJECT_AIX_LIBRARIES.
7207 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7208 TARGET_OBJECT_LIBRARIES_AIX throughout.
7209 * solib-aix.c: Likwise.
7210
7211 2013-05-07 Yao Qi <yao@codesourcery.com>
7212
7213 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7214 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7215
7216 2013-05-07 Yao Qi <yao@codesourcery.com>
7217
7218 * solib-dsbt.c (enable_break): Declare.
7219 (dsbt_current_sos): Remove call to enable_break2.
7220 (enable_break2): Rename to enable_break. Set solib breakpoint
7221 on '_dl_debug_state'.
7222 (enable_break): Remove.
7223
7224 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7225
7226 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7227 debug state prior to replicating existing hardware watchpoints or
7228 breakpoints.
7229
7230 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7231
7232 * gcore.c (gcore_create_callback): Ignore sections with
7233 separate_debug_objfile_backlink != NULL.
7234
7235 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7236 Andrew Jenner <andrew@codesourcery.com>
7237 Chung-Lin Tang <cltang@codesourcery.com>
7238 Julian Brown <julian@codesourcery.com>
7239
7240 Based on the nios2-elf port from Altera Corporation.
7241
7242 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7243 nios2-linux-tdep.o.
7244 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7245 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7246 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7247 * nios2-tdep.h: New.
7248 * nios2-tdep.c: New.
7249 * nios2-linux-tdep.c: New.
7250 * features/Makefile (WHICH): Add nios2-linux.
7251 (nios2-linux-expedite): Set.
7252 * features/nios2-cpu.xml: New.
7253 * features/nios2.xml: New.
7254 * features/nios2-linux.xml: New.
7255 * features/nios2.c: New (autogenerated).
7256 * features/nios2-linux.c: New (autogenerated).
7257 * regformats/nios2-linux.dat: New (autogenerated).
7258 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7259 and commands.
7260
7261 2013-05-06 Doug Evans <dje@google.com>
7262
7263 * symfile.c: Whitespace cleanup.
7264
7265 * solist.h (struct target_so_ops): New member clear_so.
7266 * solib-svr4.c (svr4_clear_so): New function.
7267 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7268 * solib.c (clear_so): Renamed from free_so_symbols.
7269 All callers updated. Call target clear_so if it exists.
7270
7271 2013-05-06 Tom Tromey <tromey@redhat.com>
7272
7273 * ada-lang.c (ada_value_primitive_packed_val): Don't
7274 call value_incref.
7275 * value.c (set_value_parent): Incref the new parent and decref
7276 the old parent.
7277 (value_copy, value_primitive_field): Use set_value_parent.
7278
7279 2013-05-06 Tom Tromey <tromey@redhat.com>
7280
7281 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7282 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7283 if needed.
7284 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7285 * dwarf2read.c (write_constant_as_bytes)
7286 (dwarf2_fetch_constant_bytes): New functions.
7287
7288 2013-05-06 Tom Tromey <tromey@redhat.com>
7289
7290 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7291 parameters.
7292 (dwarf2_const_value_attr): Update.
7293
7294 2013-05-06 Tom Tromey <tromey@redhat.com>
7295
7296 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7297 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7298 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7299 Remove declaration.
7300
7301 2013-05-06 Tom Tromey <tromey@redhat.com>
7302
7303 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7304 objfile's obstack.
7305
7306 2013-05-06 Doug Evans <dje@google.com>
7307
7308 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7309 * stabsread.h (process_one_symbol): Update declaration.
7310 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7311 * elfread.c (elf_symfile_relocate_probe): Ditto.
7312 * psymtab.c (relocate_psymtabs): Ditto.
7313 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7314 (objfile_relocate): Ditto.
7315 * objfiles.h (objfile_relocate): Update declaration.
7316 * symfile.c (relative_addr_info_to_section_offsets): Constify
7317 addrs parameter.
7318 (default_symfile_offsets): Ditto.
7319 (syms_from_objfile_1): Constify offsets parameter.
7320 (syms_from_objfile): Ditto.
7321 (symbol_file_add_with_addrs_or_offsets): Ditto.
7322 (symfile_map_offsets_to_segments): Constify data parameter.
7323 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7324 delta parameters of member relocate.
7325 (struct sym_probe_fns): Constify new_offsets,
7326 delta parameters of member sym_relocate_probe.
7327 (struct sym_fns): Constify section_addr_info parameter of member
7328 sym_offsets.
7329 (relative_addr_info_to_section_offsets): Update declaration.
7330 (default_symfile_offsets): Ditto.
7331 (syms_from_objfile): Ditto.
7332 (symfile_map_offsets_to_segments): Ditto.
7333
7334 * symfile.c (syms_from_objfile_1): Use correct section count when
7335 objfile->sf == NULL.
7336
7337 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7338
7339 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7340
7341 2013-05-06 Doug Evans <dje@google.com>
7342
7343 * psympriv.h (struct partial_symtab): Augment comment for member
7344 section_offsets.
7345
7346 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7347
7348 Reimplement shared library support on ppc-aix...
7349 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7350 * features/library-list-aix.dtd: New file.
7351 * solib-aix.h, solib-aix.c: New file.
7352 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7353 (rs6000_find_toc_address_hook): Delete.
7354 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7355 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7356 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7357 "xml-utils.h".
7358 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7359 (vmap_symtab, fixup_breakpoints): Delete.
7360 (rs6000_xfer_shared_libraries): New function.
7361 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7362 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7363 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7364 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7365 (rs6000_xfer_shared_library): New function.
7366 (find_toc_address): Delete.
7367 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7368 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7369 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7370 before creating minimal symbol. Adjust function description
7371 accordingly.
7372 (scan_xcoff_symtab): Replace call to
7373 prim_record_minimal_symbol_and_info by call to
7374 record_minimal_symbol.
7375 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7376 around default_symfile_offsets.
7377 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7378 powerpc-aix targets.
7379 * config/rs6000/nm-rs6000.h: Delete.
7380 * config/powerpc/aix.mh (NAT_FILE): Delete.
7381 (NATDEPFILES): Remove xcoffsolib.o.
7382 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7383 (ALL_TARGET_OBS): Add solib-aix.o.
7384 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7385 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7386 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7387 * xcoffsolib.h, xcoffsolib.c: Delete.
7388
7389 * solib.c (reload_shared_libraries): Remove reference to
7390 SOLIB_CREATE_INFERIOR_HOOK.
7391 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7392 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7393 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7394 comment.
7395 * corelow.c (deprecated_core_resize_section_table): Delete.
7396 * exec.c: Remove include of xcoffsolib.h".
7397 (map_vmap, vmap): Delete.
7398 (exec_close_1): Remove references to vmap.
7399 (exec_file_attach): Remove vmap handling code, and reference
7400 to DEPRECATED_IBM6000_TARGET.
7401 (bfdsec_to_vmap): Delete.
7402 (exec_files_info): Remove block of code handling VMAP.
7403 * infcmd.c (post_create_inferior): Remove reference to
7404 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7405 * infrun.c (follow_exec): Remove reference to
7406 SOLIB_CREATE_INFERIOR_HOOK.
7407 * stack.c (print_frame): Remove reference to PC_SOLIB.
7408 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7409 (dsbt_relocate_main_executable): Likewise.
7410 * solib-frv.c (frv_current_sos): Likewise.
7411
7412 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7413
7414 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7415 to target_write_memory and target_read_memory.
7416
7417 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7418
7419 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7420 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7421
7422 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7423
7424 * darwin-nat.c: Replace all "%x" instances in format strings
7425 into "0x%x" throughout.
7426
7427 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7428
7429 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7430 gdb_assert by call to MACH_CHECK_ERROR.
7431 (darwin_attach_pid): Raise an error rather than a failed
7432 assertion when various system calls failed. Report a warning
7433 instead of raising a failed assertion when PREV_NOT is not NULL
7434 after call to mach_port_request_notification.
7435 (darwin_ptrace_me): Raise an error rather than a failed
7436 assertion when read returns nonzero.
7437
7438 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7439
7440 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7441
7442 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7443
7444 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7445
7446 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7449 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7450 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7451 a stale cleanup. Fix double free of NAME.
7452
7453 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7454
7455 * windows-nat.c (windows_delete_thread): Accept an additional
7456 argument, the thread's exit code, and announce thread death when
7457 print_thread_events is non-zero and we are deleting a thread that
7458 is not the main thread.
7459 (get_windows_debug_event): Pass thread exit code to
7460 windows_delete_thread.
7461
7462 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7463
7464 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7465 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7466 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7467 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7468 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7469 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7470 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7471 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7472 (gdbarch_tdep): New struct.
7473 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7474 E_NUM_REGS.
7475 (v850e3v5_register_name): New function.
7476 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7477 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7478 code handling the struct return conventions for the RH850 ABI.
7479 Update all callers.
7480 (v850_eight_byte_align_p): New function.
7481 (v850_push_call_dummy): Push structs by value, not by reference
7482 for the RH850 ABI. Add support for eight byte alignment.
7483 (v850_dbtrap_breakpoint_from_pc): New function.
7484 (v850_gdbarch_init): Add ABI detection code. Register
7485 v850e3v5_register_name for the v850e3v5 architecture. Set the
7486 number of registers for v850e3v5. Register
7487 v850_dbtrap_breakpoint_from_pc as appropriate.
7488 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7489
7490 2013-05-03 Doug Evans <dje@google.com>
7491
7492 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7493 of bfd_count_sections.
7494 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7495 * symfile.c (default_symfile_offsets): Ditto.
7496 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7497 one entry, not bfd_count_sections entries.
7498
7499 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7500
7501 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7502 `save' and `restore' register groups. Don't include SPL
7503 or SPH in these groups.
7504 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7505 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7506 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7507 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7508 dwarf2_append_unwinders().
7509
7510 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7513 ignore SIGINT and SIGTRAP in case these internal signals are
7514 caught explicitely.
7515
7516 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7517
7518 * darwin-nat.c (darwin_read_write_inferior): Change types
7519 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7520 of copy_count to "mach_msg_type_number_t".
7521 (darwin_read_dyld_info): Change type of parameter
7522 rdaddr to "gdb_byte *".
7523
7524 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7525
7526 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7527 of &info->load_map from "char *" to "gdb_byte *".
7528
7529 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7530
7531 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7532 from "char *" to "gdb_byte *".
7533 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7534
7535 2013-04-30 Doug Evans <dje@google.com>
7536
7537 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7538 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7539 DWO stub. If DWO isn't found, just use stub.
7540 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7541
7542 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7543 calling init_cutu_and_read_dies.
7544
7545 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7546
7547 * target-descriptions.c (maint_print_c_tdesc_cmd):
7548 Add case to parse structures as register types and
7549 bitfields.
7550
7551 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7552
7553 * MAINTAINERS (Write After Approval): Add myself to the list.
7554
7555 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7556
7557 * sol-thread.c (rw_common): Change type of parameter "buf"
7558 to "gdb_byte *".
7559 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7560 rw_common to "gdb_byte *" instead of "char *".
7561
7562 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7563
7564 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7565 of local variable msym to const struct bound_minimal_symbol.
7566 Adjust use accordingly.
7567 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7568
7569 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7570
7571 * i386gnu-nat.c (CREG_OFFSET): New macro.
7572 (creg_offset): New array.
7573 (CREG_ADDR): Use creg_offset instead of reg_offset.
7574
7575 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7576
7577 * mep-tdep.c (mep_write_pc): Delete.
7578 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7579 Add call to set_gdbarch_pc_regnum.
7580
7581 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7582
7583 * common/filestuff.c: Replace #include <dirent.h> by
7584 #include "gdb_dirent.h".
7585
7586 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7587
7588 * common/filestuff.c: Replace #include <sys/stat.h> by
7589 #include "gdb_stat.h".
7590
7591 2013-04-29 Pierre Muller <muller@sourceware.org>
7592
7593 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7594 editCase function rule.
7595 (get_DW_AT_signature_type): Likewise.
7596
7597 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7598
7599 * m32r-tdep.c (m32r_write_pc): Delete.
7600 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7601 Add call to set_gdbarch_pc_regnum.
7602
7603 2013-04-29 Pierre Muller <muller@sourceware.org>
7604
7605 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7606
7607 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7608
7609 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7610
7611 2013-04-28 Yao Qi <yao@codesourcery.com>
7612
7613 * solib-dsbt.c (fetch_loadmap): Re-indent.
7614 (displacement_from_map, enable_break2): Likewise.
7615 (dsbt_relocate_section_addresses): Likewise.
7616
7617 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7618
7619 GDB 7.6 released.
7620
7621 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7622
7623 PR corefiles/14983:
7624 * dwarf2read.c (process_full_comp_unit): Always create a static
7625 block.
7626
7627 2013-04-25 Hui Zhu <hui@codesourcery.com>
7628
7629 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7630 to loc->cmd_bytecode.
7631
7632 2013-04-24 Doug Evans <dje@google.com>
7633
7634 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7635
7636 2013-04-22 Keith Seitz <keiths@redhat.com>
7637
7638 * tracepoint.c (trace_save): Call the writer's start method.
7639
7640 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7641
7642 PR gdb/10462
7643 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7644 before argument.
7645
7646 2013-04-23 Tom Tromey <tromey@redhat.com>
7647
7648 * common/filestuff.c: Check USE_WIN32API before including
7649 sys/socket.h.
7650 (HAVE_F_GETFD): New define.
7651 (mark_cloexec): Check HAVE_F_GETFD.
7652 (gdb_open_cloexec): Change 'mode' to unsigned long.
7653 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7654 (gdb_pipe_cloexec): Check HAVE_PIPE.
7655 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7656 long.
7657
7658 2013-04-23 Hui Zhu <hui@codesourcery.com>
7659
7660 PR gdb/15293
7661 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7662
7663 2013-04-23 Hui Zhu <hui@codesourcery.com>
7664
7665 PR gdb/15165
7666 * breakpoint.c (dprintf_print_recreate): New.
7667 (save_breakpoints): Let it not save dprintf commands.
7668 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7669
7670 2013-04-22 Tom Tromey <tromey@redhat.com>
7671
7672 PR gdb/7912:
7673 * Makefile.in (SFILES): Add filestuff.c
7674 (COMMON_OBS): Add filestuff.o.
7675 (filestuff.o): New target.
7676 * auto-load.c (auto_load_objfile_script_1): Use
7677 gdb_fopen_cloexec.
7678 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7679 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7680 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7681 * common/agent.c (gdb_connect_sync_socket): Use
7682 gdb_socket_cloexec.
7683 * common/filestuff.c: New file.
7684 * common/filestuff.h: New file.
7685 * common/linux-osdata.c (linux_common_core_of_thread)
7686 (command_from_pid, commandline_from_pid, print_source_lines)
7687 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7688 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7689 gdb_fopen_cloexec.
7690 * common/linux-procfs.c (linux_proc_get_int)
7691 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7692 * config.in, configure: Rebuild.
7693 * configure.ac: Don't check for sys/socket.h. Check for
7694 fdwalk, pipe2.
7695 * corelow.c (core_open): Use gdb_open_cloexec.
7696 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7697 * fork-child.c (fork_inferior): Call close_most_fds.
7698 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7699 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7700 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7701 Use gdb_fopen_cloexec.
7702 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7703 gdb_open_cloexec.
7704 (linux_async_pipe): Use gdb_pipe_cloexec.
7705 * remote-fileio.c (remote_fileio_func_open): Use
7706 gdb_open_cloexec.
7707 * remote.c (remote_file_put, remote_file_get): Use
7708 gdb_fopen_cloexec.
7709 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7710 close_most_fds.
7711 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7712 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7713 * solib.c (solib_find): Use gdb_open_cloexec.
7714 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7715 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7716 (tfile_open): Use gdb_open_cloexec.
7717 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7718 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7719 * xml-support.c (xml_fetch_content_from_file): Use
7720 gdb_fopen_cloexec.
7721 * main.c (captured_main): Call notice_open_fds.
7722
7723 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7724
7725 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7726 'char *' to 'gdb_byte *'.
7727 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7728 'gdb_byte'.
7729
7730 2013-04-22 Yao Qi <yao@codesourcery.com>
7731
7732 * infrun.c: Fix typo in comment.
7733
7734 2013-04-22 Andrew Haley <aph@redhat.com>
7735
7736 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7737 instead of "long".
7738
7739 2013-04-20 Yao Qi <yao@codesourcery.com>
7740
7741 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7742 'char *' to 'gdb_byte *'. Cast the return value of
7743 'bt_ctf_get_char_array' to 'gdb_byte *'.
7744
7745 2013-04-19 Pedro Alves <palves@redhat.com>
7746
7747 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7748 -Wpointer-sign.
7749 * configure: Regenerate.
7750
7751 2013-04-19 Pedro Alves <palves@redhat.com>
7752
7753 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7754 'void *'.
7755
7756 2013-04-19 Pedro Alves <palves@redhat.com>
7757
7758 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7759 Change type of 'myaddr' parameter to gdb_byte pointer.
7760 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7761 to 'long long' pointer instead of to 'unsigned long long'.
7762 (monitor_write_memory_block, monitor_read_memory_single)
7763 (monitor_read_memory): Change type of 'myaddr' parameter to
7764 gdb_byte pointer.
7765
7766 2013-04-19 Pedro Alves <palves@redhat.com>
7767
7768 * record.c (validate_history_size): Make parameter 'setting'
7769 unsigned.
7770
7771 2013-04-19 Pedro Alves <palves@redhat.com>
7772
7773 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7774 to 'gdb_byte *'.
7775
7776 2013-04-19 Pedro Alves <palves@redhat.com>
7777
7778 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7779 local to int.
7780
7781 2013-04-19 Pedro Alves <palves@redhat.com>
7782
7783 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7784 * ada-tasks.c (read_fat_string_value): Likewise.
7785
7786 2013-04-19 Pedro Alves <palves@redhat.com>
7787
7788 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7789 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7790 'offset', and adjust.
7791
7792 2013-04-19 Pedro Alves <palves@redhat.com>
7793
7794 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7795 (read_index_from_section): Add cast to 'char *'.
7796
7797 2013-04-19 Pedro Alves <palves@redhat.com>
7798
7799 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7800
7801 2013-04-19 Pedro Alves <palves@redhat.com>
7802
7803 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7804
7805 2013-04-19 Pedro Alves <palves@redhat.com>
7806
7807 * record-full.c (record_full_get_bookmark): Change local 'ret'
7808 type to char * and add cast to gdb_byte *.
7809 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7810 string.
7811 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7812
7813 2013-04-19 Pedro Alves <palves@redhat.com>
7814
7815 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7816 * python/py-prettyprint.c (print_string_repr): Change type of
7817 'output' local to char *. Add cast to gdb_byte * in
7818 LA_PRINT_STRING call.
7819 (print_children): Change type of 'output' local to char *.
7820 * python/py-value.c (valpy_string): Add cast to const char * in
7821 PyUnicode_Decode call.
7822
7823 2013-04-19 Pedro Alves <palves@redhat.com>
7824
7825 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7826 and change its type to 'const char *'. Adjust.
7827 (mips_send_packet): Add cast to 'char *', and remove cast to
7828 'unsigned char *'.
7829 (mips_receive_packet): Remove cast to 'unsigned char *'.
7830 (mips_load_srec): Use bfd_byte.
7831 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7832 (pmon_checkset): Make 'value' parameter unsigned.
7833
7834 2013-04-19 Pedro Alves <palves@redhat.com>
7835
7836 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7837
7838 2013-04-19 Pedro Alves <palves@redhat.com>
7839
7840 * remote.c (remote_write_bytes_aux, compare_sections_command)
7841 (remote_read_qxfer)
7842 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7843 (remote_hostio_readlink, remote_bfd_iovec_pread)
7844 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7845 binary buffer, and char when buffer is used as string.
7846 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7847 (trace_save, tfile_open, traceframe_walk_blocks)
7848 (tfile_fetch_registers): Likewise.
7849
7850 2013-04-19 Pedro Alves <palves@redhat.com>
7851
7852 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7853 buffer and size_t size. Adjust.
7854 * ser-base.h (ser_base_write): Adjust.
7855 * ser-go32.c (cnts): Change type to size_t.
7856 (dos_write): Change prototype -- take 'void *'
7857 buffer and size_t size. Adjust.
7858 (dos_info): Print elements of 'cnts' as unsigned long.
7859 * serial.c (serial_write): Likewise.
7860 * serial.h (serial_write): Adjust.
7861 (struct serial_ops) <write>: Change prototype -- take 'void *'
7862 buffer and size_t size. Adjust.
7863
7864 2013-04-19 Pedro Alves <palves@redhat.com>
7865
7866 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7867 gdb_byte *.
7868 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7869
7870 2013-04-19 Pedro Alves <palves@redhat.com>
7871
7872 * alpha-tdep.c (alpha_extract_return_value): Use
7873 regcache_cooked_read_unsigned to read 'v0'.
7874
7875 2013-04-19 Pedro Alves <palves@redhat.com>
7876
7877 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7878 parameters 'at', 'as' and 'offset' to uint32_t.
7879
7880 2013-04-19 Pedro Alves <palves@redhat.com>
7881
7882 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7883 'is64' to signed 'int'.
7884
7885 2013-04-19 Pedro Alves <palves@redhat.com>
7886
7887 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7888 parameter to int *.
7889
7890 2013-04-19 Pedro Alves <palves@redhat.com>
7891
7892 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7893 'insnbuf' buffer type to unsigned int[].
7894
7895 2013-04-19 Pedro Alves <palves@redhat.com>
7896
7897 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
7898
7899 2013-04-19 Pedro Alves <palves@redhat.com>
7900
7901 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
7902 unsigned long *.
7903
7904 2013-04-19 Pedro Alves <palves@redhat.com>
7905
7906 * alpha-tdep.c (heuristic_fence_post): Change type to int.
7907 (alpha_heuristic_proc_start): Adjust to check -1 instead of
7908 UINT_MAX.
7909 * mips-tdep.c (heuristic_fence_post): Change type to int.
7910 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
7911
7912 2013-04-19 Pedro Alves <palves@redhat.com>
7913
7914 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
7915 (struct gdbarch_tdep) <cris_version>: Make unsigned.
7916 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
7917
7918 2013-04-19 Pedro Alves <palves@redhat.com>
7919
7920 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
7921 it to get a string view of the byte buffer.
7922 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
7923 type to gdb_byte *. Adjust.
7924 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
7925 Change local to char *.
7926 * solib-darwin.c (find_program_interpreter): Change return type to
7927 char *. Adjust.
7928 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
7929 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
7930 * solib-frv.c (enable_break2): Change local 'buf' to char *.
7931 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
7932 * solib-svr4.c (find_program_interpreter): Change return type to
7933 char *. Adjust.
7934 (enable_break): Change local 'interp_name' to char *.
7935 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
7936 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
7937 (spu_pseudo_register_write_spu): Use char for string buffer.
7938 Adjust.
7939 (info_spu_event_command, info_spu_signal_command): Add casts to
7940 'char *'.
7941
7942 2013-04-19 Pedro Alves <palves@redhat.com>
7943
7944 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
7945 gdb_byte[].
7946 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
7947 * ada-lang.c (ada_value_assign): Use gdb_byte.
7948 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
7949 (alphanbsd_sigtramp_offset): Use gdb_byte.
7950 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
7951 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
7952 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
7953 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
7954 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
7955 * arm-tdep.c (arm_stub_unwind_sniffer)
7956 (arm_displaced_init_closure): Use gdb_byte.
7957 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
7958 (arm_default_thumb_le_breakpoint)
7959 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
7960 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
7961 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
7962 * arm-wince-tdep.c (arm_wince_le_breakpoint)
7963 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
7964 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
7965 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
7966 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
7967 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
7968 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
7969 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
7970 (cris_store_return_value, cris_extract_return_value): Use
7971 gdb_byte.
7972 (constraint): Change type of parameter to char * from signed
7973 char*. Use gdb_byte.
7974 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
7975 of local buffer to gdb_byte *.
7976 * dwarf2read.c (read_index_from_section): Use gdb_byte.
7977 (create_dwp_hash_table): Change type of locals to gdb_byte *.
7978 (add_address_entry): Change type of local buffer to gdb_byte[].
7979 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
7980 (frv_push_dummy_call): Use gdb_byte.
7981 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
7982 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
7983 (hppa_hpux_supply_save_state): Use gdb_byte.
7984 * hppa-tdep.c (hppa32_push_dummy_call)
7985 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
7986 * ia64-tdep.c (extract_bit_field, replace_bit_field)
7987 (slotN_contents, replace_slotN_contents): Change type of parameter
7988 to gdb_byte *.
7989 (fetch_instruction, ia64_pseudo_register_write)
7990 (ia64_register_to_value, ia64_value_to_register)
7991 (ia64_extract_return_value, ia64_store_return_value)
7992 (ia64_push_dummy_call): Use gdb_byte.
7993 * m32c-tdep.c (m32c_return_value): Remove cast.
7994 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
7995 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
7996 gdb_byte.
7997 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
7998 * mn10300-tdep.c (mn10300_store_return_value)
7999 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8000 gdb_byte.
8001 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8002 (moxie_process_record): Remove casts.
8003 * ppc-ravenscar-thread.c (supply_register_at_address)
8004 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8005 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8006 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8007 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8008 * remote.c (compare_sections_command): Use gdb_byte.
8009 * score-tdep.c (score7_free_memblock): Change type of parameter to
8010 gdb_byte *.
8011 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8012 gdb_byte *. Use gdb_byte.
8013 (sh_push_dummy_call_fpu): Use gdb_byte.
8014 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8015 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8016 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8017 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8018 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8019 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8020 (sh64_store_return_value, sh64_register_convert_to_virtual):
8021 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8022 (sh64_pseudo_register_write): Use gdb_byte.
8023 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8024 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8025 buffer.
8026 (irix_current_sos): Use gdb_byte.
8027 * solib-som.c (som_current_sos): Use gdb_byte.
8028 * sparc-ravenscar-thread.c (supply_register_at_address)
8029 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8030 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8031 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8032 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8033 'gdb_byte *'.
8034 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8035 'gdb_byte *'.
8036 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8037 * xstormy16-tdep.c (xstormy16_extract_return_value)
8038 (xstormy16_store_return_value): Change parameter type to
8039 'gdb_byte *'. Adjust.
8040 (xstormy16_push_dummy_call): Use gdb_byte.
8041 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8042 (call0_analyze_prologue, execute_code): Use gdb_byte.
8043
8044 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8045 Pedro Alves <palves@redhat.com>
8046
8047 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8048 value contents.
8049
8050 2013-04-17 Doug Evans <dje@google.com>
8051
8052 * dwarf2read.c (struct signatured_type): New member type.
8053 (struct attribute): Replace member signatured_type with signature.
8054 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8055 (read_call_site_scope): Call follow_die_ref instead of
8056 follow_die_ref_or_sig.
8057 (read_structure_type): Rewrite handling of signatured types.
8058 (read_enumeration_type): Ditto.
8059 (read_attribute_value): Update.
8060 (build_error_marker_type): New function.
8061 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8062 Don't call error for bad types, just build an error marker type.
8063 (dump_die_shallow): Update.
8064 (follow_die_sig_1): Renamed from follow_die_sig.
8065 Don't call error for bad types, instead return NULL.
8066 (follow_die_sig): New function.
8067 (get_signatured_type, get_DW_AT_signature_type): New functions.
8068
8069 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8070
8071 * aarch64-tdep.c (aarch64_write_pc): Removed.
8072 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8073 function.
8074
8075 2013-04-17 Yao Qi <yao@codesourcery.com>
8076
8077 * top.c (print_gdb_configuration): Print configure-time
8078 parameter on using libbabeltrace or not.
8079
8080 2013-04-16 Pedro Alves <palves@redhat.com>
8081
8082 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8083
8084 2013-04-16 Pedro Alves <palves@redhat.com>
8085
8086 * common/glibc_thread_db.h: Update from upstream glibc
8087 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8088
8089 2013-04-16 Pedro Alves <palves@redhat.com>
8090
8091 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8092 * common/glibc_thread_db.h: ... this new file ...
8093 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8094
8095 2013-04-16 Will Newton <will.newton@gmail.com>
8096 Pedro Alves <palves@redhat.com>
8097
8098 PR build/11881
8099
8100 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8101 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8102 HAVE_THREAD_DB_H.
8103
8104 2013-04-16 Pedro Alves <palves@redhat.com>
8105 Eli Zaretskii <eliz@gnu.org>
8106
8107 * NEWS: Mention "set foo unlimited".
8108
8109 2013-04-15 Doug Evans <dje@google.com>
8110
8111 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8112 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8113 (create_dwo_cu_reader): Renamed from
8114 create_dwo_debug_info_hash_table_reader.
8115 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8116 Remove support for multiple CUs in a DWO file.
8117 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8118
8119 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8120 instead of phex.
8121 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8122 (create_dwo_in_dwp): Ditto.
8123
8124 2013-04-15 Tom Tromey <tromey@redhat.com>
8125
8126 * NEWS: Move recent entries into "since 7.6" section.
8127
8128 2013-04-15 Tom Tromey <tromey@redhat.com>
8129
8130 PR c++/13588:
8131 * NEWS: Update.
8132 * break-catch-throw.c (struct exception_catchpoint)
8133 <exception_rx, pattern>: New fields.
8134 (fetch_probe_arguments, dtor_exception_catchpoint)
8135 (check_status_exception_catchpoint)
8136 (print_one_detail_exception_catchpoint): New functions.
8137 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8138 Compile regular expression if needed.
8139 (extract_exception_regexp): New function.
8140 (catch_exception_command_1): Use extract_exception_regexp.
8141 (compute_exception): Use fetch_probe_arguments.
8142 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8143 and check_status fields.
8144 * cp-abi.c (cplus_typename_from_type_info): New function.
8145 * cp-abi.h (cplus_typename_from_type_info): Declare.
8146 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8147 * gdb_regex.h (compile_rx_or_error): Declare.
8148 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8149 comment.
8150 (init_gnuv3_ops): Set get_type_from_type_info field.
8151 * probe.c (compile_rx_or_error): Move...
8152 * utils.c (compile_rx_or_error): ... here.
8153
8154 2013-04-15 Tom Tromey <tromey@redhat.com>
8155
8156 PR c++/15176:
8157 * NEWS: Update.
8158 * break-catch-throw.c (compute_exception): New function.
8159 (exception_funcs): New global.
8160 (_initialize_break_catch_throw): Create $_exception.
8161 * cp-abi.c (cplus_type_from_type_info): New function.
8162 * cp-abi.h (cplus_type_from_type_info): Declare.
8163 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8164 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8165 (gnuv3_get_type_from_type_info): New functions.
8166 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8167
8168 2013-04-15 Tom Tromey <tromey@redhat.com>
8169
8170 * break-catch-throw.c (struct exception_names): New.
8171 (exception_functions): Change type.
8172 (re_set_exception_catchpoint): Look for SDT probes.
8173
8174 2013-04-15 Tom Tromey <tromey@redhat.com>
8175
8176 PR c++/10119:
8177 * break-catch-throw.c (exception_functions): New global.
8178 (gnu_v3_exception_catchpoint_ops): Move earlier.
8179 (struct exception_catchpoint): New.
8180 (classify_exception_breakpoint): Rewrite.
8181 (re_set_exception_catchpoint): New function.
8182 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8183 Allocate a struct exception_catchpoint.
8184 (catch_exception_command_1): Update.
8185 (initialize_throw_catchpoint_ops): Set 're_set' method.
8186
8187 2013-04-15 Tom Tromey <tromey@redhat.com>
8188
8189 * Makefile.in (SFILES): Add break-catch-throw.c
8190 (COMMON_OBS): Add break-catch-throw.o.
8191 * break-catch-throw.c: New file.
8192 * breakpoint.c: Move exception-catching code to new file.
8193 (ep_parse_optional_if_clause): No longer static.
8194 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8195
8196 2013-04-15 Tom Tromey <tromey@redhat.com>
8197
8198 PR c++/9065:
8199 * NEWS: Update.
8200 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8201 * c-exp.y (TYPEID): New token.
8202 (exp): Add new TYPEID productions.
8203 (ident_tokens): Add "typeid".
8204 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8205 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8206 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8207 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8208 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8209 case.
8210 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8211 (build_std_type_info_type, gnuv3_get_typeid_type)
8212 (gnuv3_get_typeid): New functions.
8213 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8214 new fields on ABI object.
8215 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8216 * std-operator.def (OP_TYPEID): New.
8217
8218 2013-04-15 Tom Tromey <tromey@redhat.com>
8219
8220 * elfread.c (elf_symtab_read): Install versioned symbol under
8221 unversioned name as well.
8222
8223 2013-04-15 Tom Tromey <tromey@redhat.com>
8224
8225 PR c++/11990:
8226 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8227 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8228 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8229 (gdb_demangle): New function.
8230 * cp-support.h (gdb_demangle): Declare.
8231 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8232 (dwarf2_name): Use gdb_demangle.
8233 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8234 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8235 suffixes from name.
8236 (gnuv3_print_method_ptr): Use gdb_demangle.
8237 * jv-lang.c (java_demangle): Use gdb_demangle.
8238 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8239 * language.c (unk_lang_demangle): Use gdb_demangle.
8240 * symtab.c (symbol_find_demangled_name)
8241 (demangle_for_lookup): Use gdb_demangle.
8242
8243 2013-04-15 Tom Tromey <tromey@redhat.com>
8244
8245 PR c++/12824:
8246 * NEWS: Update.
8247 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8248 New constant.
8249 (classify_exception_breakpoint): New function.
8250 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8251 (print_mention_exception_catchpoint)
8252 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8253 (catch_exception_command_1): Handle "rethrow" catchpoint.
8254 (catch_rethrow_command): New function.
8255 (_initialize_breakpoint): Add "catch rethrow" command.
8256
8257 2013-04-15 Pierre Muller <muller@sourceware.org>
8258
8259 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8260 set_gdbarch_write_pc as deprecated anymore.
8261
8262 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8263
8264 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8265 declarations.
8266
8267 2013-04-13 Yao Qi <yao@codesourcery.com>
8268
8269 * ctf.c (_initialize_ctf): Include "completer.h".
8270 Call add_target_with_completer instead of add_target.
8271
8272 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8273
8274 Fix GDB regression related to PR binutils/14813.
8275 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8276 * minidebug.c (lzma_close): Add return value comment.
8277 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8278 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8279 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8280
8281 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 * config.in: Regenerate.
8284
8285 2013-04-12 Tom Tromey <tromey@redhat.com>
8286
8287 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8288 const.
8289 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8290 (struct die_reader_specs) <buffer>: Likewise.
8291 (die_reader_func_ftype): Make 'info_ptr' const.
8292 (struct line_header) <include_dirs, statement_program_start,
8293 statement_program_end>: Now const.
8294 (struct file_entry) <name>: Likewise.
8295 (struct partial_die_info) <sibling>: Likewise.
8296 (struct dwarf_block) <data>: Likewise.
8297 (dwarf2_read_section): Remove cast.
8298 (dwarf2_get_section_info): Make 'bufp' const.
8299 (read_index_from_section): Constify.
8300 (dw2_get_file_names_reader): Make 'info_ptr' const.
8301 (dw2_get_primary_filename_reader): Likewise.
8302 (read_comp_unit_head): Make 'info_ptr' and return type const.
8303 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8304 Likewise.
8305 (read_abbrev_offset): Constify.
8306 (dwarf2_create_include_psymtab): Make 'name' const.
8307 (create_debug_types_hash_table): Update.
8308 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8309 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8310 Constify.
8311 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8312 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8313 (read_comp_units_from_section): Constify.
8314 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8315 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8316 const.
8317 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8318 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8319 (create_dwp_hash_table, dwarf2_ranges_read)
8320 (dwarf2_record_block_ranges): Constify.
8321 (read_die_and_children, read_die_and_siblings_1)
8322 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8323 const.
8324 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8325 (abbrev_table_read_table): Constify.
8326 (load_partial_dies): Make 'info_ptr' const.
8327 (read_partial_die, read_attribute_value, read_attribute): Make
8328 'info_ptr' and return type const.
8329 (read_address, read_initial_length)
8330 (read_checked_initial_length_and_offset, read_offset)
8331 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8332 const.
8333 (read_direct_string): Make 'buf' and return type const.
8334 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8335 (read_indirect_string): Make return type const.
8336 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8337 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8338 'info_ptr' const.
8339 (read_str_index): Make return type const.
8340 (add_include_dir): Make 'include_dir' const.
8341 (add_file_name): Make 'name' const.
8342 (dwarf_decode_line_header): Constify.
8343 (psymtab_include_file_name): Make return type const.
8344 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8345 (dwarf2_start_subfile): Make 'filename' const.
8346 (dwarf2_const_value_attr): Make 'bytes' const.
8347 (read_signatured_type_reader): Make 'info_ptr' const.
8348 (decode_locdesc): Constify.
8349 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8350 const.
8351 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8352 'mac_end', and return type const.
8353 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8354 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8355 type const.
8356 (per_cu_header_read_in): Constify.
8357 * symfile.h (dwarf2_get_section_info): Update.
8358
8359 2013-04-12 Tom Tromey <tromey@redhat.com>
8360
8361 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8362
8363 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8364
8365 * NEWS: Mention "show configuration", --configuration.
8366 * top.c (print_gdb_configuration): New function, displays the
8367 details about GDB configure-time parameters.
8368 (print_gdb_version): Mention "show configuration".
8369 * cli/cli-cmds.c (show_configuration): New function.
8370 (_initialize_cli_cmds): Add the "show configuration" command.
8371 * main.c (captured_main) <print_configuration>: New static var.
8372 <long_options>: Use it.
8373 If --configuration was given, call print_gdb_configuration.
8374
8375 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8376 Pedro Alves <palves@redhat.com>
8377
8378 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8379 (generated_files): Add gcore.
8380 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8381 HAVE_NATIVE_GCORE_HOST.
8382 (gcore): New.
8383 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8384 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8385 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8386 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8387 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8388 Add HAVE_NATIVE_GCORE_HOST.
8389 * configure: Regenerate.
8390 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8391 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8392 AC_CONFIG_FILES for gcore.
8393 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8394 gdb_have_gcore.
8395 * gdb_gcore.sh: Rename to ...
8396 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8397 and GCORE_TRANSFORM_NAME substitutions.
8398
8399 Fix parsing tabs in ${gdb_target_obs}.
8400 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8401
8402 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8403
8404 * remote.c (unpush_and_perror): Add output message final dot.
8405
8406 2013-04-11 Yao Qi <yao@codesourcery.com>
8407
8408 * tracepoint.c (tfile_interp_line): Fit parameters line and
8409 utpp in one line.
8410
8411 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8412
8413 * solib.c (solib_map_sections): Remove code overwriting
8414 SO->SO_NAME with the bfd's filename.
8415
8416 2013-04-10 Pedro Alves <palves@redhat.com>
8417
8418 * cli/cli-decode.c (integer_unlimited_completer): New function.
8419 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8420 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8421 completer.
8422 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8423 (is_unlimited_literal): New function.
8424 (do_set_command): Handle literal "unlimited" arguments.
8425 * frame.c (_initialize_frame) <set backtrace limit>: Document
8426 "unlimited".
8427 * printcmd.c (_initialize_printcmd) <set print
8428 max-symbolic-offset>: Add help text.
8429 * record-full.c (_initialize_record_full) <set record full
8430 insn-number-max>: Likewise.
8431 * record.c (_initialize_record) <set record
8432 instruction-history-size, set record function-call-history-size>:
8433 Add help text.
8434 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8435 help text.
8436 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8437 Likewise.
8438 * source.c (_initialize_source) <set listsize>: Add help text.
8439 * utils.c (initialize_utils) <set height, set width>: Likewise.
8440 <set pagination>: Mention "set height unlimited".
8441 * valprint.c (_initialize_valprint) <set print elements, set print
8442 repeats>: Document "unlimited".
8443
8444 2013-04-10 Pedro Alves <palves@redhat.com>
8445
8446 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8447 instead of disconnect_tracing.
8448 * infcmd.c (detach_command, disconnect_command): Call
8449 query_if_trace_running. Adjust.
8450 * top.c: Include "tracepoint.h".
8451 (quit_target): Delete. Contents moved ...
8452 (quit_force): ... here. Wrap each stage of teardown in
8453 TRY_CATCH. Call disconnect_tracing before detaching.
8454
8455 2013-04-10 Hui Zhu <hui@codesourcery.com>
8456 Yao Qi <yao@codesourcery.com>
8457
8458 * configure.ac: Check libbabeltrace is installed.
8459 * config.in: Regenerate.
8460 * configure: Regenerate.
8461 * Makefile.in (LIBBABELTRACE): New.
8462 (CLIBS): Add LIBBABELTRACE.
8463 * ctf.c: Include "exec.h".
8464 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8465 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8466 (ctf_save_metadata_header): Define new type aliases in
8467 metadata.
8468 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8469 in metadata. Start a new faked packet for trace status.
8470 (ctf_write_status): Write trace status to CTF.
8471 (ctf_write_uploaded_tsv): Write TSV to CTF.
8472 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8473 (ctf_write_definition_end): End the faked packet.
8474
8475 (ctx, ctf_iter, trace_dirname): New.
8476 (start_pos): New variable.
8477 (ctf_destroy, ctf_open_dir, ctf_open): New.
8478 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8479 macros.
8480 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8481 (ctf_fetch_registers, ctf_xfer_partial): New.
8482 (ctf_get_trace_state_variable_value): New.
8483 (ctf_get_tpnum_from_frame_event): New.
8484 (ctf_get_traceframe_address): New.
8485 (ctf_trace_find, ctf_has_stack): New.
8486 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8487 (ctf_get_trace_status, ctf_read_status): New.
8488 (_initialize_ctf): New.
8489 * tracepoint.c (get_tracepoint_number): New
8490 (get_uploaded_tsv): Remove 'static'.
8491 (struct traceframe_info, trace_regblock_size): Move it to ...
8492 * tracepoint.h: ... here.
8493 (get_tracepoint_number): Declare it.
8494 (get_uploaded_tsv): Declare it.
8495
8496 * NEWS: Mention new configure option.
8497
8498 2013-04-10 Pedro Alves <palves@redhat.com>
8499 Hui Zhu <hui@codesourcery.com>
8500
8501 * breakpoint.c (dprintf_re_set): New.
8502 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8503 to dprintf_re_set.
8504
8505 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8506
8507 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8508 Remove solib-svr4.o from the list.
8509
8510 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8511
8512 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8513 Use gdb_assert_not_reached instead of invalid boolean expression.
8514
8515 2013-04-09 Pedro Alves <palves@redhat.com>
8516
8517 * remote.c (unpush_and_perror): New function.
8518 (readchar, remote_serial_write): Use it.
8519
8520 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8521
8522 * NEWS: Mention new btrace RSP packets.
8523
8524 2013-04-08 Tom Tromey <tromey@redhat.com>
8525
8526 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8527 long.
8528
8529 2013-04-08 Tom Tromey <tromey@redhat.com>
8530
8531 * maint.c (print_bfd_section_info): Print the section index.
8532 * symmisc.c (dump_msymbols): Print the section index.
8533
8534 2013-04-08 Tom Tromey <tromey@redhat.com>
8535
8536 PR symtab/8424:
8537 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8538 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8539 * breakpoint.c (resolve_sal_pc): Update.
8540 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8541 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8542 (minsym_lookup_iterator_cb): Use it.
8543 (default_read_var_value): Update.
8544 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8545 Update.
8546 * infcmd.c (jump_command): Update.
8547 * linespec.c (minsym_found): Update.
8548 * maint.c (maintenance_translate_address): Update.
8549 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8550 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8551 * parse.c (write_exp_msymbol): Update.
8552 * printcmd.c (address_info): Update.
8553 * psymtab.c (find_pc_sect_psymbol): Update.
8554 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8555 SYMBOL_OBJ_SECTION.
8556 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8557 Don't initialize SYMBOL_OBJ_SECTION.
8558 * spu-tdep.c (spu_catch_start): Update.
8559 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8560 * symmisc.c (dump_msymbols, print_symbol): Update.
8561 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8562 how fallback section is computed.
8563 (fixup_symbol_section): Update.
8564 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8565 Update.
8566 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8567 Initialize SYMBOL_SECTION.
8568 * symtab.h (struct general_symbol_info) <section>: Update comment.
8569 <obj_section>: Remove.
8570 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8571 (SYMBOL_OBJFILE): New macro.
8572
8573 2013-04-08 Tom Tromey <tromey@redhat.com>
8574
8575 * coffread.c (record_minimal_symbol): Update.
8576 * dbxread.c (record_minimal_symbol): Update.
8577 * elfread.c (record_minimal_symbol): Update.
8578 * machoread.c (macho_symtab_add_minsym): Update.
8579 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8580 Update.
8581 * minsyms.c (prim_record_minimal_symbol): Update.
8582 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8583 argument.
8584 (prim_record_minimal_symbol_and_info): Likewise.
8585 * minsyms.h (prim_record_minimal_symbol_full)
8586 (prim_record_minimal_symbol_and_info): Update.
8587 * symtab.c (allocate_symbol, initialize_symbol)
8588 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8589 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8590 Update.
8591
8592 2013-04-08 Tom Tromey <tromey@redhat.com>
8593
8594 PR symtab/8423:
8595 * solib-som.c (som_solib_section_offsets): Use BFD section
8596 indices. Set offsets for all sections.
8597 * somread.c (som_symtab_read): Compute BFD section for
8598 symbol. Use prim_record_minimal_symbol_and_info.
8599 (som_symfile_read): Fix comment.
8600 (struct find_section_offset_arg): New.
8601 (find_section_offset, set_section_index): New functions.
8602 (som_symfile_offsets): Use set_section_index to compute
8603 section indices.
8604
8605 2013-04-08 Tom Tromey <tromey@redhat.com>
8606
8607 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8608 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8609 gdb_bfd_section_index.
8610 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8611 New functions.
8612 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8613 Declare.
8614 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8615 Update.
8616 * objfiles.c (add_to_objfile_sections_full): New function.
8617 (add_to_objfile_sections): Use it.
8618 (build_section_table): Rewrite.
8619 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8620 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8621 (struct objfile) <sections>: Update comment.
8622 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8623 is NULL.
8624 (ALL_OBJSECTIONS): Use it.
8625 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8626 * solib-frv.c (frv_relocate_main_executable): Update.
8627 * solib-target.c (solib_target_relocate_section_addresses):
8628 Use gdb_bfd_section_index.
8629 * symfile.c (build_section_addr_info_from_section_table):
8630 Use gdb_bfd_section_index.
8631 (build_section_addr_info_from_bfd, place_section): Likewise.
8632 * symtab.c (fixup_section): Update.
8633 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8634
8635 2013-04-08 Tom Tromey <tromey@redhat.com>
8636
8637 * minsyms.h (struct bound_minimal_symbol): New.
8638 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8639 Remove objfile argument.
8640 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8641 Return bound_minimal_symbol.
8642 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8643 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8644 Return bound_minimal_symbol.
8645 (in_gnu_ifunc_stub): Update.
8646 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8647 Remove 'objfile_p' argument.
8648 (lookup_solib_trampoline_symbol_by_pc): Update.
8649 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8650 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8651 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8652 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8653 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8654 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8655 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8656 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8657 stack.c, symtab.c, tui/tui-disasm.c: Update.
8658
8659 2013-04-08 Tom Tromey <tromey@redhat.com>
8660
8661 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8662 Use symbol's obstack, not an objfile.
8663 * coffread.c (process_coff_symbol): Update.
8664 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8665 * jv-lang.c (add_class_symbol): Update.
8666 * mdebugread.c (new_symbol): Update.
8667 * minsyms.c (prim_record_minimal_symbol_full)
8668 (terminate_minimal_symbol_table): Update.
8669 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8670 * stabsread.c (define_symbol, read_enum_type): Update.
8671 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8672 Handle Ada specially.
8673 (symbol_set_language): Add 'obstack' argument.
8674 (symbol_set_names): Update.
8675 (symbol_natural_name, symbol_demangled_name): Always use
8676 ada_decode_symbol.
8677 * symtab.h (struct general_symbol_info)
8678 <language_specific::obstack>: New field.
8679 <ada_mangled>: New field.
8680 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8681 (symbol_set_language): Update.
8682
8683 2013-04-08 Tom Tromey <tromey@redhat.com>
8684
8685 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8686 Take an obstack, not an objfile.
8687 (symbol_set_names): Update.
8688 * symtab.h (symbol_set_demangled_name): Update.
8689
8690 2013-04-08 Tom Tromey <tromey@redhat.com>
8691
8692 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8693 allocate_symbol.
8694 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8695 (read_func_scope): Call allocate_template_symbol.
8696 (new_symbol_full): Call allocate_symbol.
8697 * jit.c (finalize_symtab): Call allocate_symbol.
8698 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8699 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8700 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8701 (common_block_end): Call allocate_symbol.
8702 * symtab.c (allocate_symbol, initialize_symbol)
8703 (allocate_template_symbol): New functions.
8704 * symtab.c (allocate_symbol, initialize_symbol)
8705 (allocate_template_symbol): Declare.
8706 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8707
8708 2013-04-08 Pedro Alves <palves@redhat.com>
8709 Keith Seitz <keiths@redhat.com>
8710
8711 * breakpoint.c (create_breakpoint): Rename
8712 "parse_condition_and_thread" parameter to "parse_arg". Update
8713 describing comment. If !PARSE_ARG, then error out if ARG is not
8714 the empty string after extracting the location.
8715 * breakpoint.h (create_breakpoint): Rename
8716 "parse_condition_and_thread" parameter to "parse_arg".
8717
8718 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8719
8720 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8721
8722 2013-04-07 Yao Qi <yao@codesourcery.com>
8723
8724 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8725 and 'addr2' to CORE_ADDR.
8726 * target.c (update_current_target): Update.
8727 * target.h (struct target_ops) <to_trace_find>: Change parameter
8728 type to CORE_ADDR.
8729 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8730 'addr2' to CORE_ADDR.
8731 (tfile_trace_find): Likewise.
8732 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8733 Change local variable 'addr' to type CORE_ADDR.
8734 * tracepoint.h (tfind_1): Update declaration.
8735
8736 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8737
8738 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8739 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8740 Include main.h.
8741
8742 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8743 here...
8744 * main.h (windows_get_absolute_argv0): ...to here.
8745
8746 2013-04-05 Doug Evans <dje@google.com>
8747
8748 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8749 (read_cutu_die_from_dwo): Add comments.
8750 (read_structure_type): Update comment.
8751 (read_enumeration_type, read_namespace_type): Update comment.
8752 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8753
8754 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8757 * Makefile.in (gdb.z): Remove.
8758 (install-only): Remove $(man1dir) and gdb.1 installation.
8759 * gdb.1: Remove.
8760
8761 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8762
8763 Fix compatibility with Linux kernel 3.8.3.
8764 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8765 to more inner block. Remove parsing of NUMBER from outer block.
8766 Parse NUMBER only if KEYWORD has been identified.
8767
8768 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8769
8770 Fix variable name shadowing.
8771 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8772 filename to mapsfilename and update its uses.
8773
8774 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8775
8776 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8777 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8778 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8779 details of the problem.
8780
8781 2013-04-04 Pedro Alves <palves@redhat.com>
8782 Hui Zhu <hui@codesourcery.com>
8783
8784 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8785 tracepoint, reset its STEP_COUNT and call validate_actionline.
8786
8787 2013-04-03 Doug Evans <dje@google.com>
8788
8789 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8790 read_die_and_siblings.
8791 (read_die_and_siblings): New function.
8792 (read_cutu_die_from_dwo): Dump die if requested.
8793 (read_die_and_children): Call read_full_die_1 and
8794 read_die_and_siblings_1.
8795 (read_full_die): Dump die if requested.
8796
8797 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8798
8799 * dwarf2read.c (struct dwo_file): New member comp_dir.
8800 Rename member name to dwo_name. All uses updated.
8801 (hash_dwo_file): Include comp_dir in computation.
8802 (eq_dwo_file): Ditto.
8803 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8804 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8805
8806 * psymtab.c (read_psymtabs_with_fullname): Don't call
8807 psymtab_to_fullname if the basenames are different.
8808
8809 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8810
8811 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8812 New entry about "fullname" presence.
8813
8814 2013-04-03 Pedro Alves <palves@redhat.com>
8815
8816 * NEWS: Mention x86_64/Cygwin as new native configuration.
8817
8818 2013-04-02 Doug Evans <dje@google.com>
8819
8820 * dwarf2read.c (read_structure_type): Fix typo in comment.
8821
8822 2013-04-02 Pedro Alves <palves@redhat.com>
8823
8824 * NEWS: Mention "set/show debug aarch64", "set/show debug
8825 coff-pe-read" and "set/show debug mach-o".
8826
8827 2013-04-02 Pedro Alves <palves@redhat.com>
8828
8829 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8830
8831 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8832
8833 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8834 gdb_string.h is now in common/.
8835
8836 2013-04-02 Pedro Alves <palves@redhat.com>
8837
8838 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8839 under "New options".
8840
8841 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8842
8843 Revert this patch:
8844 PR gdb/15275
8845 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8846
8847 2013-04-02 Pedro Alves <palves@redhat.com>
8848
8849 PR gdb/15275
8850
8851 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8852 (remote_serial_write): New function.
8853 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8854
8855 2013-04-01 Jiong Wang <jiwang@tilera.com>
8856
8857 * NEWS: Mention TILE-Gx in "New native configurations" and
8858 "New targets" sections.
8859
8860 2013-04-01 Doug Evans <dje@google.com>
8861
8862 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8863 (process_enumeration_scope): Simplify.
8864
8865 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8866 type_unit_group ...
8867 (struct signatured_type): ... to here.
8868 (sig_type_ptr): New typedef.
8869 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8870 out of union 't'. All uses updated.
8871 (dw2_get_file_names_reader): Assert not called for a type unit.
8872 (dw2_get_file_names): Assert not called for a type unit or type
8873 unit group.
8874 (build_type_psymtabs_reader): Assert called for a type unit.
8875 (build_type_psymtab_dependencies): Assert called for a type unit group.
8876
8877 * dwarf2read.c (free_dwo_file): Add comment.
8878 (dwarf2_per_objfile_free): Unref dwp bfd.
8879
8880 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8881
8882 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8883 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8884 (read_pe_exported_syms): Remove unused 'exportix'.
8885 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8886 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8887 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8888
8889 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8890
8891 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8892 (print_it_watchpoint): Remove unused 'bl'.
8893 (say_where): Remove unused 'uiout'.
8894 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
8895 (bkpt_breakpoint_hit): Remove unused 'b'.
8896 (internal_bkpt_print_it): Remove unused 'uiout'.
8897 * buildsym.c (augment_type_symtab): Remove unused 'i'.
8898
8899 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8900
8901 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
8902 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
8903
8904 2013-03-29 Doug Evans <dje@google.com>
8905
8906 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
8907 Delete arg is_dwp. All callers updated.
8908 (open_dwp_file): New function.
8909 (open_and_init_dwp_file): Call it.
8910 (get_dwp_file): New function.
8911 (lookup_dwo_cutu): Call it.
8912
8913 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
8914 unnecessary, cleanup.
8915
8916 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
8917
8918 * dwarf2read.c (read_cutu_die_from_dwo): New function.
8919 (lookup_dwo_unit): New function.
8920 (init_cutu_and_read_dies): Move DWO handling to new functions.
8921
8922 * dwarf2read.c (struct signatured_type): Tweak comment.
8923 (struct dwo_unit): Tweak comment.
8924 (create_debug_types_hash_table): Tweak comment. Reformat long line.
8925 (create_dwo_debug_info_hash_table): Tweak comment.
8926 (dwarf2_per_cu_offset_and_type): Tweak comment.
8927
8928 * dwarf2read.c (lookup_signatured_type): Remove complaint about
8929 missing .debug_types section.
8930
8931 2013-03-29 Yao Qi <yao@codesourcery.com>
8932
8933 * corelow.c: Include "completer.h".
8934 (_initialize_corelow): Call add_target_with_completer with
8935 argument 'filename_completer'.
8936 * tracepoint.c: Likewise.
8937 * exec.c (_initialize_exec): Likewise.
8938 * target.c (add_target): Rename to ...
8939 (add_target_with_completer): ... this. Call set_cmd_completer
8940 if parameter completer is not NULL.
8941 (add_target): New.
8942 * target.h: Include "command.h".
8943 (add_target_with_completer): Declare it.
8944
8945 2013-03-28 Joel Brobecker <brobecker@adacore.com>
8946
8947 * coffread.c (is_import_fixup_symbol): New function.
8948 (record_minimal_symbol): Use is_import_fixup_symbol to
8949 detect import fixup symbols, and discard them.
8950
8951 2013-03-28 Doug Evans <dje@google.com>
8952
8953 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
8954 types hash table until we know we need it.
8955
8956 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
8957 index numbers.
8958
8959 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
8960 All callers updated.
8961 (dw2_print_stats): Print #read CUs too.
8962 (dump_die_shallow): Print signatured types better.
8963
8964 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
8965 info_or_types_section to section. All uses updated.
8966 (struct dwo_unit): Ditto.
8967
8968 2013-03-28 Pedro Alves <palves@redhat.com>
8969
8970 * NEWS (New options): New section.
8971 (New options): Mention set/show remote trace-status-packet.
8972 * remote.c (PACKET_qTStatus): New enumeration value.
8973 (remote_get_trace_status): Skip sending qTStatus if the packet is
8974 disabled. Use packet_ok.
8975 (_initialize_remote): Register a configuration command for
8976 qTStatus packet.
8977
8978 2013-03-28 Doug Evans <dje@google.com>
8979
8980 * symfile.c (find_separate_debug_file): Add comment.
8981 (terminate_after_last_dir_separator): Tweak comment.
8982
8983 * dwarf2read.c (create_partial_symtab): Add forward decl.
8984 (create_partial_symtab): Move to be closer to other psymtab functions.
8985 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
8986
8987 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
8988 (compute_symtab_includes): Remove unnecessary forward declaration.
8989 (die_needs_namespace): Add comment marking group of functions for
8990 dwarf2 name computation.
8991
8992 * typeprint.c (_initialize_typeprint): Improve type help text.
8993
8994 * python/python.c (finish_python_initialization): Provide suggestion
8995 for how to tell gdb to find its python files.
8996
8997 2013-03-28 Pedro Alves <palves@redhat.com>
8998
8999 PR gdb/15294
9000
9001 * source.c (_initialize_source): Change back "set listsize" to an
9002 integer command.
9003
9004 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9005
9006 PR gdb/15275
9007 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9008
9009 2013-03-27 Pedro Alves <palves@redhat.com>
9010
9011 * top.c (history_size): Rename to ...
9012 (history_size_setshow_var): ... this. Add comment.
9013 (show_commands): Use readline's 'history_length' instead of
9014 computing the history length by calling history_get in a loop.
9015 (set_history_size_command): Error out for sizes over INT_MAX.
9016 Restore previous history size on invalid size.
9017 (init_history): If HISTSIZE is negative, leave the history size as
9018 zero. Add comments.
9019 (init_main): Adjust.
9020
9021 2013-03-27 Pedro Alves <palves@redhat.com>
9022
9023 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9024 coff_pe_read" command to "set debug coff-pe-read".
9025
9026 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9027
9028 * record.c (command_size_to_target_size): Fix size comparison.
9029 Change parameter type from pointer to integer to integer.
9030 Update all users.
9031
9032 2013-03-27 Pierre Muller <muller@sourceware.org>
9033
9034 * windows-nat.c (handle_output_debug_string): Avoid typecast
9035 from integer of different size warning.
9036
9037 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9038
9039 * windows-nat.c (handle_output_debug_string): Add empty line
9040 after local block variable definition.
9041
9042 2013-03-26 Pedro Alves <palves@redhat.com>
9043
9044 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9045 (net_open): Make 'polls' local unsigned.
9046
9047 2013-03-26 Pedro Alves <palves@redhat.com>
9048
9049 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9050 a zuinteger command instead of uinteger.
9051
9052 2013-03-26 Pedro Alves <palves@redhat.com>
9053
9054 * record-full.c (record_full_insn_num): Make it unsigned.
9055 (record_full_check_insn_num, record_full_message)
9056 (record_full_registers_change, record_full_xfer_partial): Remove
9057 record_full_insn_max_num check (it's always != 0).
9058 (record_full_info, record_full_restore): Use %u as format string.
9059 (): Use %u as format string.
9060 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9061 check (it's always != 0).
9062
9063 2013-03-26 Pedro Alves <palves@redhat.com>
9064
9065 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9066 and "set dcache size" commands zuinteger instead of uinteger.
9067
9068 2013-03-26 Pedro Alves <palves@redhat.com>
9069
9070 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9071 command zuinteger instead of uinteger.
9072
9073 2013-03-26 Pedro Alves <palves@redhat.com>
9074
9075 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9076 zuinteger instead of uinteger.
9077
9078 2013-03-26 Pedro Alves <palves@redhat.com>
9079
9080 * record.c (record_insn_history_size_setshow_var)
9081 (record_call_history_size_setshow_var): New globals.
9082 (command_size_to_target_size): New function.
9083 (cmd_record_insn_history, cmd_record_call_history): Use
9084 command_size_to_target_size instead of cast.
9085 (validate_history_size, set_record_insn_history_size)
9086 (set_record_call_history_size): New functions.
9087 (_initialize_record): Install set_record_insn_history_size and
9088 set_record_call_history_size as "set" hooks of "set record
9089 instruction-history-size" and "set record
9090 function-call-history-size".
9091
9092 2013-03-26 Pedro Alves <palves@redhat.com>
9093
9094 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9095 use with history_max_entries use. Remove FIXME note.
9096
9097 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9098
9099 * record-btrace.c (record_btrace_close): Call
9100 record_btrace_auto_disable.
9101
9102 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9103
9104 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9105
9106 2013-03-25 Doug Evans <dje@google.com>
9107
9108 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9109
9110 2013-03-25 Tom Tromey <tromey@redhat.com>
9111
9112 PR symtab/11462:
9113 * c-exp.y (exp): Add new productions for destructors after '.' and
9114 '->'.
9115 (write_destructor_name): New function.
9116
9117 2013-03-25 Tom Tromey <tromey@redhat.com>
9118
9119 PR c++/9197:
9120 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9121 value_struct_elt, not lookup_struct_elt_type.
9122 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9123 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9124 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9125
9126 2013-03-25 Yao Qi <yao@codesourcery.com>
9127
9128 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9129 instead of '_mkdir'.
9130
9131 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9132
9133 * windows-nat.c (windows_get_absolute_argv0): New function.
9134 * windows-nat.h: Add its prototype.
9135
9136 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9137 Use IS_DIR_SEPARATOR instead of looking for a character inside
9138 SLASH_STRING. Include filenames.h.
9139 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9140 relocate_gdb_directory works when passed gdb_program_name.
9141 Include windows-nat.h.
9142
9143 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9144
9145 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9146 * remote.c (trace_error): Remove the special handling of '2'.
9147 (readchar) <SERIAL_EOF>
9148 (readchar) <SERIAL_ERROR>
9149 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9150 (remote_get_trace_status): Call throw_exception if EX is
9151 TARGET_CLOSE_ERROR.
9152 * utils.c (perror_with_name): Rename to ...
9153 (throw_perror_with_name): ... here. New parameter errcode, describe it
9154 in the function comment.
9155 (perror_with_name): New function wrapper.
9156 * utils.h (enum errors): New stub declaration.
9157 (throw_perror_with_name): New declaration.
9158
9159 2013-03-22 Pedro Alves <palves@redhat.com>
9160 Yao Qi <yao@codesourcery.com>
9161 Mark Kettenis <kettenis@gnu.org>
9162
9163 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9164 Don't let the user set the value to UINT_MAX directly.
9165 <var_integer>: Don't let the user set the value to INT_MAX
9166 directly.
9167
9168 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9169
9170 * remote.c (remote_unpush_target): New function.
9171 (remote_open_1): Remove two pop_target calls, update one comment, add
9172 comment to target_preopen call. Replace pop_target call by
9173 remote_unpush_target call.
9174 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9175 pop_target calls by remote_unpush_target calls.
9176
9177 2013-03-22 Pedro Alves <palves@redhat.com>
9178
9179 * linux-nat.c (linux_child_follow_fork): Don't call
9180 linux_enable_event_reporting.
9181 (linux_handle_extended_wait): Don't call
9182 linux_enable_event_reporting.
9183
9184 2013-03-22 Pedro Alves <palves@redhat.com>
9185
9186 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9187 use it to rewrite the trampoline buffers with type gdb_byte[], and
9188 undefine the macro. Remove char* cast.
9189
9190 2013-03-21 Doug Evans <dje@google.com>
9191
9192 New commands "mt set per-command {space,time,symtab} {on,off}".
9193 * NEWS: Add entry.
9194 * event-top.c: #include "maint.h".
9195 * main.c: #include "maint.h".
9196 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9197 timeval-utils.h, maint.h, cli/cli-setshow.h.
9198 (per_command_time, per_command_space): New static globals.
9199 (per_command_symtab): New static global.
9200 (per_command_setlist, per_command_showlist): New static globals.
9201 (struct cmd_stats): Move here from utils.c.
9202 (set_per_command_time): Renamed from set_display_time in utils.c
9203 and moved here. All callers updated.
9204 (set_per_command_space): Renamed from set_display_space in utils.c
9205 and moved here. All callers updated.
9206 (count_symtabs_and_blocks): New function.
9207 (report_command_stats): Moved here from utils.c. Add support for
9208 printing symtab stats. Only print data if enabled before command
9209 executed.
9210 (make_command_stats_cleanup): Ditto.
9211 (sert_per_command_cmd, show_per_command_cmd): New functions.
9212 (_initialize_maint_cmds): Add new commands
9213 mt set per-command {space,time,symtab} {on,off}.
9214 * maint.h: New file.
9215 * top.c: #include "maint.h".
9216 * utils.c (reset_prompt_for_continue_wait_time): New function.
9217 (get_prompt_for_continue_wait_time): New function.
9218 * utils.h (reset_prompt_for_continue_wait_time): Declare
9219 (get_prompt_for_continue_wait_time): Declare.
9220 (make_command_stats_cleanup): Moved to maint.h.
9221 (set_display_time, set_display_space): Moved to maint.h and renamed
9222 to set_per_command_time, set_per_command_space.
9223 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9224 parse_binary_operation and made non-static. Don't call error,
9225 just return an error marker. All callers updated.
9226 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9227
9228 2013-03-21 Tom Tromey <tromey@redhat.com>
9229
9230 * symfile.c (alloc_section_addr_info): Update header. Don't set
9231 'num_sections' field.
9232 (build_section_addr_info_from_section_table): Set 'num_sections'.
9233 (build_section_addr_info_from_bfd): Likewise.
9234 (build_section_addr_info_from_objfile): Remove dead loop
9235 condition.
9236 (free_section_addr_info): Unconditionally call xfree.
9237 (relative_addr_info_to_section_offsets, addrs_section_sort)
9238 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9239 condition.
9240 (syms_from_objfile_1): Remove dead 'if' condition. Check
9241 'num_sections'.
9242 (add_symbol_file_command): Set 'num_sections'.
9243 * symfile-mem.c (symbol_file_add_from_memory): Set
9244 'num_sections'.
9245 * somread.c (som_symfile_offsets): Remove dead loop condition.
9246 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9247 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9248
9249 2013-03-21 Tom Tromey <tromey@redhat.com>
9250
9251 * tracepoint.h (decode_agent_options): Add 'trace_string'
9252 argument.
9253 * tracepoint.c (decode_agent_options): Add 'trace_string'
9254 argument.
9255 (validate_actionline): Update.
9256 (collect_symbol): Add 'trace_string' argument.
9257 (struct add_local_symbols_data) <trace_string>: New field.
9258 (do_collect_symbol): Update.
9259 (add_local_symbols): Add 'trace_string' argument.
9260 (encode_actions_1): Update.
9261 (trace_dump_actions): Update.
9262 * dwarf2loc.c (access_memory): Update.
9263 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9264 * ax-general.c (new_agent_expr): Update.
9265 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9266 (gen_trace_for_return_address): Add argument.
9267 (trace_kludge, trace_string_kludge): Remove.
9268 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9269 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9270 (gen_trace_for_var): Add 'trace_string' argument.
9271 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9272 (gen_printf, agent_eval_command_one): Update.
9273
9274 2013-03-21 Tom Tromey <tromey@redhat.com>
9275
9276 PR exp/15109:
9277 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9278 Handle FILENAME token.
9279
9280 2013-03-21 Tom Tromey <tromey@redhat.com>
9281
9282 * c-exp.y (YYPRINT): Define.
9283 (c_print_token): New function.
9284
9285 2013-03-21 Tom Tromey <tromey@redhat.com>
9286
9287 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9288
9289 2013-03-21 Yao Qi <yao@codesourcery.com>
9290
9291 * ctf.c: Include "gdb_stat.h".
9292 [USE_WIN32API]: New macro 'mkdir'.
9293 (ctf_start): Use permission bits macros if they are defined.
9294
9295 2013-03-20 Keith Seitz <keiths@redhat.com>
9296
9297 * breakpoint.h (struct breakpoint): Add comment to
9298 extra_string indicating that this member is mallod'd.
9299 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9300
9301 2013-03-20 Pedro Alves <palves@redhat.com>
9302
9303 PR gdb/15289
9304
9305 * cli/cli-setshow.c (do_set_command)
9306 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9307 the result of parsing the command argument. Throw error if the
9308 value is greater than UINT_MAX. Print the invalid value with
9309 plongest.
9310 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9311 result of parsing the command argument. Throw error if the value
9312 is greater than INT_MAX, not greater or equal. Also throw error
9313 if the value is less than INT_MIN. Print the invalid value with
9314 plongest.
9315 <var_zuinteger_unlimited>: Throw error if the value is greater
9316 than INT_MAX, not greater or equal.
9317 (do_show_command) <var_integer, var_zinteger,
9318 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9319
9320 2013-03-20 Tom Tromey <tromey@redhat.com>
9321
9322 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9323 if possible.
9324 * dwarf2read.c (read_func_scope): Remove old FIXME.
9325 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9326 not LOC_COMPUTED.
9327 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9328 Unconditionally call via computed ops, if possible.
9329 * printcmd.c (address_info): Unconditionally call via computed ops,
9330 if possible.
9331 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9332 if possible.
9333 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9334 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9335 if possible.
9336
9337 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9338 Tom Tromey <tromey@redhat.com>
9339
9340 PR symtab/8421:
9341 * coffread.c (coff_register_index): New global.
9342 (process_coff_symbol, coff_read_enum_type): Set
9343 SYMBOL_ACLASS_INDEX.
9344 (_initialize_coffread): Initialize new global.
9345 * dwarf2loc.c (locexpr_find_frame_base_location)
9346 (dwarf2_block_frame_base_locexpr_funcs)
9347 (loclist_find_frame_base_location)
9348 (dwarf2_block_frame_base_loclist_funcs): New.
9349 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9350 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9351 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9352 (dwarf2_block_frame_base_loclist_funcs): New.
9353 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9354 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9355 globals.
9356 (read_func_scope): Update.
9357 (fixup_go_packaging, mark_common_block_symbol_computed)
9358 (var_decode_location, new_symbol_full, dwarf2_const_value):
9359 Set SYMBOL_ACLASS_INDEX.
9360 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9361 (_initialize_dwarf2_read): Initialize new globals.
9362 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9363 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9364 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9365 globals.
9366 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9367 (_initialize_mdebugread): Initialize new globals.
9368 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9369 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9370 (stab_register_index, stab_regparm_index): New globals.
9371 (define_symbol, read_enum_type, common_block_end): Set
9372 SYMBOL_ACLASS_INDEX.
9373 (_initialize_stabsread): Initialize new globals.
9374 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9375 globals.
9376 (MAX_SYMBOL_IMPLS): New define.
9377 (register_symbol_computed_impl, register_symbol_block_impl)
9378 (register_symbol_register_impl)
9379 (initialize_ordinary_address_classes): New functions.
9380 (_initialize_symtab): Call initialize_ordinary_address_classes.
9381 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9382 (struct symbol_impl): New.
9383 (SYMBOL_ACLASS_BITS): New define.
9384 (struct symbol) <aclass, ops>: Remove fields.
9385 <aclass_index>: New field.
9386 (symbol_impls): Declare.
9387 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9388 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9389 (register_symbol_computed_impl, register_symbol_block_impl)
9390 (register_symbol_register_impl): Declare.
9391 (struct symbol_computed_ops): Add location_has_loclist.
9392 (struct symbol_block_ops): New.
9393 (SYMBOL_BLOCK_OPS): New.
9394 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9395
9396 2013-03-20 Tom Tromey <tromey@redhat.com>
9397
9398 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9399 (print_partial_symbols, recursively_search_psymtabs): Use
9400 PSYMBOL_CLASS.
9401
9402 2013-03-20 Pierre Muller <muller@sourceware.org>
9403
9404 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9405 addtion, subtraction, multiplication and division binary operator.
9406
9407 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 Code cleanup.
9410 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9411 * bsd-kvm.c (bsd_kvm_close): Likewise.
9412 * bsd-uthread.c (bsd_uthread_close): Likewise.
9413 * corelow.c (core_close): Likewise.
9414 (core_close_cleanup): Remove parameter quitting from a caller.
9415 * event-top.c (async_disconnect): Likewise.
9416 * exec.c (exec_close_1): Remove parameter quitting.
9417 * go32-nat.c (go32_close): Likewise.
9418 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9419 parameter quitting from a caller.
9420 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9421 variable.
9422 (mips_linux_close): Remove parameter quitting. Remove parameter
9423 quitting from a caller.
9424 * monitor.c (monitor_close): Remove parameter quitting.
9425 * monitor.h (monitor_close): Likewise.
9426 * record-btrace.c (record_btrace_close): Likewise.
9427 * record-full.c (record_full_close): Likewise.
9428 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9429 it also from fprintf_unfiltered.
9430 * remote-mips.c (mips_close): Remove parameter quitting.
9431 (mips_detach): Remove parameter quitting from a caller.
9432 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9433 (gdbsim_close): Remove duplicate function comment. Remove parameter
9434 quitting and remove it also from printf_filtered.
9435 * remote.c (remote_close): Remove parameter quitting.
9436 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9437 * target.c (update_current_target): Remove parameter int from to_close
9438 de_fault.
9439 (push_target, unpush_target, pop_target): Remove parameter quitting from
9440 a caller.
9441 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9442 Remove parameter quitting from a caller.
9443 (target_preopen): Remove parameter quitting from a caller.
9444 (target_close): Remove parameter quitting. Remove parameter quitting
9445 from a caller two times. Remove parameter quitting also from
9446 fprintf_unfiltered.
9447 * target.h (struct target_ops): Remove parameter quitting and as int
9448 from fields to_xclose and to_close.
9449 (extern struct target_ops current_target):
9450 (target_close, pop_all_targets): Remove parameter quitting. Update the
9451 comment.
9452 (pop_all_targets_above): Remove parameter quitting.
9453 * top.c (quit_target): Remove parameter quitting from a caller.
9454 * tracepoint.c (tfile_close): Remove parameter quitting.
9455 * windows-nat.c (windows_close): Remove parameter quitting.
9456
9457 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9458
9459 * windows-nat.c (handle_output_debug_string): Replace call
9460 to string_to_core_addr with call to strtoull.
9461
9462 2013-03-20 Yao Qi <yao@codesourcery.com>
9463
9464 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9465 and write it to CTF metadata.
9466
9467 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9468
9469 * windows-nat.c (handle_output_debug_string): Change type of n to
9470 SIZE_T to avoid crash on 64 bit systems.
9471
9472 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9473
9474 * python/python-internal.h (HAVE_SNPRINTF)
9475 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9476 about redefinition of snprintf by pyerrors.h.
9477
9478 2013-03-15 Steve Ellcey <sellcey@mips.com>
9479
9480 * remote-sim.c (sim_command_completer): Make char arguments const.
9481
9482 2013-03-15 Tom Tromey <tromey@redhat.com>
9483
9484 PR c++/15116:
9485 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9486
9487 2013-03-14 Tom Tromey <tromey@redhat.com>
9488
9489 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9490 New fields.
9491 (get_file_crc): Move from symfile.c.
9492 (gdb_bfd_crc): New function.
9493 * gdb_bfd.h (gdb_bfd_crc): Declare.
9494 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9495 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9496 (separate_debug_file_exists): Use gdb_bfd_crc.
9497
9498 2013-03-14 Tom Tromey <tromey@redhat.com>
9499
9500 * symfile.c (get_debug_link_info): Remove.
9501 (find_separate_debug_file_by_debuglink): Use
9502 bfd_get_debug_link_info.
9503
9504 2013-03-14 Tom Tromey <tromey@redhat.com>
9505
9506 * symtab.c (error_in_psymtab_expansion): New function.
9507 (lookup_symbol_aux_quick)
9508 (basic_lookup_transparent_type_quick): Remove "last resort"
9509 code. Use error_in_psymtab_expansion.
9510
9511 2013-03-14 Doug Evans <dje@google.com>
9512 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9515 any successful compare_filenames_for_search or FILENAME_CMP.
9516 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9517 * symtab.c (iterate_over_some_symtabs): Likewise.
9518
9519 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9520
9521 * source.c (print_source_lines_base): Make a local copy of
9522 symtab_to_fullname.
9523
9524 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9525 Jan Kratochvil <jan.kratochvil@redhat.com>
9526
9527 * source.c (print_source_lines_base): Suppress "file" for TUI.
9528
9529 2013-03-14 Keith Seitz <keiths@redhat.com>
9530 Alan Matsuoka <alanm@redhat.com>
9531
9532 PR c++/15203
9533 PR c++/15210
9534 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9535 TYPE_CODE_METHOD.
9536 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9537 symbols.
9538
9539 2013-03-14 Yao Qi <yao@codesourcery.com>
9540
9541 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9542 status to tfile if trace is stopped by command 'tstop'.
9543
9544 2013-03-14 Yao Qi <yao@codesourcery.com>
9545
9546 * tracepoint.c (tfile_write_status): Write trace notes and user
9547 name into tfile if they are not NULL.
9548
9549 2013-03-14 Hui Zhu <hui@codesourcery.com>
9550 Yao Qi <yao@codesourcery.com>
9551
9552 * Makefile.in (REMOTE_OBS): Add ctf.o.
9553 (SFILES): Add ctf.c.
9554 (HFILES_NO_SRCDIR): Add ctf.h.
9555 * ctf.c, ctf.h: New files.
9556 * tracepoint.c: Include 'ctf.h'.
9557 (collect_pseudocommand): Remove static.
9558 (trace_save_command): Parse option "-ctf".
9559 Produce different trace file writers per option.
9560 Adjust output message.
9561 (trace_save_tfile, trace_save_ctf): New.
9562 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9563 * mi/mi-main.c: Include 'ctf.h'.
9564 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9565 trace_save_tfile or trace_save_ctf.
9566 * NEWS: Mention these changes.
9567
9568 2013-03-14 Yao Qi <yao@codesourcery.com>
9569
9570 * tracepoint.c (trace_file_writer_xfree): New.
9571 (struct tfile_writer_data): New.
9572 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9573 (tfile_write_header, tfile_write_regblock_type): New.
9574 (tfile_write_status, tfile_write_uploaded_tsv): New.
9575 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9576 (tfile_write_raw_data, (tfile_end): New.
9577 (tfile_write_ops): New global variable.
9578 (TRACE_WRITE_R_BLOCK): New macro.
9579 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9580 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9581 (TRACE_WRITE_V_BLOCK): New macro.
9582 (trace_save): Add extra one parameter WRITER. Make it static.
9583 Use WRITER to writer trace.
9584 (tfile_trace_file_writer_new): New.
9585 (trace_save_command): Caller update.
9586 (trace_save_tfile): Write trace data in TFILE format.
9587 * tracepoint.h (struct trace_frame_write_ops): New.
9588 (struct trace_file_write_ops): New.
9589 (struct trace_file_writer): New.
9590 (trace_save): Remove its declaration.
9591 (trace_save_tfile): Declare it.
9592 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9593 instead of trace_save.
9594
9595 2013-03-13 Pedro Alves <palves@redhat.com>
9596
9597 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9598
9599 2013-03-13 Pedro Alves <palves@redhat.com>
9600
9601 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9602 commented out code.
9603 * demangle.c (current_demangling_style_string): Make it const.
9604 (set_demangling_command): Assert the demangling style is known.
9605 Remove all handling of unknown styles. Set
9606 'current_demangling_style_string' to an element of the
9607 demangling_style_names array.
9608 (set_demangling_style): Delete.
9609 (_initialize_demangler): Set current_demangling_style_string to the
9610 element of the demangling_style_names array that corresponds to
9611 the default demangling style. Remove FIXME note. Don't call
9612 set_demangling_style.
9613 * gdb-demangle.h (set_demangling_style): Remove declaration.
9614
9615 2013-03-13 Pedro Alves <palves@redhat.com>
9616
9617 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9618 fields const.
9619 (ada_make_symbol_completion_list): Make "text0" parameter const.
9620 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9621 * breakpoint.c (condition_completer): Make "text" and "word"
9622 parameters const. Adjust.
9623 (check_tracepoint_command): Adjust to validate_actionline
9624 prototype change.
9625 (catch_syscall_completer): Make "text" and "word" parameters
9626 const.
9627 * cli/cli-cmds.c (show_user): Make "comname" local const.
9628 (valid_command_p): Make "command" parameter const.
9629 (alias_command): Make "alias_prefix" and "command_prefix" locals
9630 const.
9631 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9632 (add_alias_cmd): Make "name" and "oldname" parameters const.
9633 Adjust. No longer make copy of OLDNAME.
9634 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9635 (add_setshow_cmd_full, add_setshow_enum_cmd)
9636 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9637 (add_setshow_filename_cmd, add_setshow_string_cmd)
9638 (add_setshow_string_noescape_cmd)
9639 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9640 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9641 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9642 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9643 Make "name" parameter const.
9644 (help_cmd): Rename "command" parameter to "arg". New const local
9645 "command".
9646 (find_cmd): Make "command" parameter const.
9647 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9648 deprecated_cmd_warning prototype change.
9649 (undef_cmd_error): Make "cmdtype" parameter const.
9650 (lookup_cmd): Make "line" parameter const.
9651 (deprecated_cmd_warning): Change type of "text" parameter to
9652 pointer to const char, from pointer to pointer to char. Adjust.
9653 (lookup_cmd_composition): Make "text" parameter const.
9654 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9655 parameters const.
9656 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9657 const.
9658 * cli/cli-script.c (validate_comname): Make "tem" local const.
9659 (define_command): New const local "tem_c". Use it in calls to
9660 lookup_cmd.
9661 (document_command): Make "tem" and "comfull" locals const.
9662 (show_user_1): Make "prefix" and "name" parameters const.
9663 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9664 const.
9665 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9666 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9667 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9668 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9669 (complete_on_enum, add_setshow_enum_cmd)
9670 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9671 (add_setshow_filename_cmd, add_setshow_string_cmd)
9672 (add_setshow_string_noescape_cmd)
9673 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9674 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9675 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9676 Change prototypes, constifying strings.
9677 * completer.c (noop_completer, filename_completer): Make "text"
9678 and "prefix" parameters const.
9679 (location_completer, expression_completer)
9680 (complete_line_internal): Make "text" and "prefix" parameters
9681 const and adjust.
9682 (command_completer, signal_completer): Make "text" and "prefix"
9683 parameters const.
9684 * completer.h (noop_completer, filename_completer)
9685 (expression_completer, location_completer, command_completer)
9686 (signal_completer): Change prototypes.
9687 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9688 parameters const.
9689 * cp-abi.c (cp_abi_completer): Likewise.
9690 * expression.h (parse_expression_for_completion): Change
9691 prototype.
9692 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9693 parameters const.
9694 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9695 * infrun.c (handle_completer): Make "text" and "word" parameters
9696 const.
9697 * interps.c (interpreter_completer): Make "text" and "word"
9698 parameters const.
9699 * language.h (struct language_defn)
9700 <la_make_symbol_completion_list>: Make "text" and "word"
9701 parameters const.
9702 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9703 (parse_exp_in_context): Rename to ...
9704 (parse_exp_in_context_1): ... this.
9705 (parse_exp_in_context): Reimplement, with const hack from
9706 parse_exp_1.
9707 (parse_expression_for_completion): Make "string" parameter const.
9708 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9709 to pointer to const char. Adjust.
9710 (print_command_1): Make "exp" parameter const.
9711 (output_command): Rename to ...
9712 (output_command_const): ... this. Make "exp" parameter const.
9713 (output_command): Reimplement.
9714 (x_command): Adjust.
9715 (display_command): Rename "exp" parameter to "arg". New "exp"
9716 local, const version of "arg".
9717 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9718 "cmd_name" local const.
9719 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9720 call.
9721 (cmdpy_completer): Make "text" and "word" parameters const.
9722 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9723 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9724 const.
9725 * remote.c (_initialize_remote): Make "cmd_name" local const.
9726 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9727 parameters const. Adjust.
9728 (completion_list_add_fields): Make "sym_text", "text" and "word"
9729 parameters const.
9730 (struct add_name_data) <sym_text, text, word>: Make fields const.
9731 (default_make_symbol_completion_list_break_on): Make "text" and
9732 "word" parameters const. Adjust locals.
9733 (default_make_symbol_completion_list)
9734 (make_symbol_completion_list, make_symbol_completion_type)
9735 (make_symbol_completion_list_fn): Make "text" and "word"
9736 parameters const.
9737 (make_file_symbol_completion_list): Make "text", "word" and
9738 "srcfile" parameters const. Adjust locals.
9739 (add_filename_to_list): Make "text" and "word" parameters const.
9740 (struct add_partial_filename_data) <text, word>: Make fields
9741 const.
9742 (make_source_files_completion_list): Make "text" and "word"
9743 parameters const.
9744 * symtab.h (default_make_symbol_completion_list_break_on)
9745 (default_make_symbol_completion_list, make_symbol_completion_list)
9746 (make_symbol_completion_type enum type_code)
9747 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9748 (make_source_files_completion_list): Change prototype.
9749 * top.c (execute_command): Adjust to pass pointer to pointer to
9750 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9751 change.
9752 (set_verbose): Make "cmdname" local const.
9753 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9754 and adjust.
9755 (validate_actionline): Make "line" parameter a pointer to const
9756 char, and adjust.
9757 (encode_actions_1): Make "action_exp" local const, and adjust.
9758 (encode_actions): Adjust.
9759 (replace_comma): Delete.
9760 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9761 const, and adjust. Don't frob the action string while splitting
9762 it at commas. Instead, make a copy of each split substring in
9763 turn.
9764 (trace_dump_command): Adjust to validate_actionline prototype
9765 change.
9766 * tracepoint.h (decode_agent_options, decode_agent_options)
9767 (encode_actions, validate_actionline): Change prototypes.
9768 * valprint.h (output_command): Delete declaration.
9769 (output_command_const): Declare.
9770 * value.c (function_destroyer): Cast const away in xfree call.
9771
9772 2013-03-13 Pedro Alves <palves@redhat.com>
9773
9774 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9775 rather than casting 'const char * const *' to 'const char **'.
9776 * ada-lex.l (processInt): Make "trailer" local const. Remove
9777 'const char **' cast.
9778 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9779 locals, and use those as strtol output pointer, instead than doing
9780 invalid casts to from 'const char **' to 'char **'.
9781 (_initialize_demangle): Remove cast.
9782 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9783 locals, and use those as strtol output pointer, instead than doing
9784 invalid casts to from 'const char **' to 'char **'.
9785 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9786 casts.
9787 * stap-probe.c (stap_parse_register_operand)
9788 (stap_parse_single_operand): Likewise.
9789
9790 2013-03-13 Yao Qi <yao@codesourcery.com>
9791
9792 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9793 the last matched 'V' blcok in trace frame.
9794
9795 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9796
9797 * NEWS: Create a new section for the next release branch.
9798 Rename the section of the current branch, now that it has
9799 been cut.
9800
9801 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9802
9803 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9804 * version.in: Bump version to 7.6.50.20130312-cvs.
9805
9806 2013-03-12 Keith Seitz <keiths@redhat.com>
9807
9808 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9809 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9810 Remove temporary copy of input string.
9811 (mi_execute_command_wrapper): Make "cmd" const.
9812 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9813 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9814 Use const strings.
9815 (mi_parse): Make "cmd" const.
9816 Use const strings.
9817 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9818
9819 2013-03-12 Keith Seitz <keiths@redhat.com>
9820
9821 * ada-lang.c (ada_read_renaming_var_value): Pass const
9822 pointer to expression string to parse_exp_1.
9823 (create_excep_cond_exprs): Likewise.
9824 * ax-gdb.c (agent_eval_command_one): Likewise.
9825 (maint_agent_printf_command): Likewise.
9826 Constify much of the string handling/parsing.
9827 * breakpoint.c (set_breakpoint_condition): Pass const
9828 pointer to expression string to parse_exp_1.
9829 (update_watchpoint): Likewise.
9830 (parse_cmd_to_aexpr): Constify string handling.
9831 Pass const pointer to parse_exp_1.
9832 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9833 (find_condition_and_thread): Likewise.
9834 Make TOK const.
9835 (watch_command_1): Make "arg" const.
9836 Constify string handling.
9837 Copy the expression string instead of changing the input
9838 string.
9839 (update_breakpoint_location): Pass const pointer to
9840 parse_exp_1.
9841 * eval.c (parse_and_eval_address): Make "exp" const.
9842 (parse_to_comma_and_eval): Make "expp" const.
9843 (parse_and_eval): Make "exp" const.
9844 * expression.h (parse_expression): Make argument const.
9845 (parse_exp_1): Make first argument const.
9846 * findcmd.c (parse_find_args): Treat "args" as const.
9847 * linespec.c (parse_linespec): Pass const pointer to
9848 linespec_expression_to_pc.
9849 (linespec_expression_to_pc): Make "exp_ptr" const.
9850 * parse.c (parse_exp_1): Make "stringptr" const.
9851 Make a copy of the expression to pass to parse_exp_in_context until
9852 this whole interface can be constified.
9853 (parse_expression): Make "string" const.
9854 * printcmd.c (ui_printf): Treat "arg" as const.
9855 Handle const strings.
9856 * tracepoint.c (validate_actionline): Pass const pointer to
9857 all calls to parse_exp_1.
9858 (encode_actions_1): Likewise.
9859 * value.h (parse_to_comma_and_eval): Make argument const.
9860 (parse_and_eval_address): Likewise.
9861 (parse_and_eval): Likewise.
9862 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9863 (varobj_set_value): Likewise.
9864 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9865 constify string handling.
9866 Pass const pointers to parse_and_eval_address and
9867 parse_to_comman_and_eval.
9868 * cli/cli-utils.c (skip_to_space): Rename to ...
9869 (skip_to_space_const): ... this. Handle const strings.
9870 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9871 skip_to_space_const.
9872 (skip_to_space_const): Declare.
9873 * common/format.c (parse_format_string): Make "arg" const.
9874 Handle const strings.
9875 * common/format.h (parse_format_string): Make "arg" const.
9876 * gdbserver/ax.c (ax_printf): Make "format" const.
9877 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9878 of the expression string.
9879
9880 2013-03-12 Hui Zhu <hui@codesourcery.com>
9881
9882 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9883
9884 2013-03-12 Yao Qi <yao@codesourcery.com>
9885 Hui Zhu <hui@codesourcery.com>
9886
9887 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9888 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9889 DW_OP_deref_size.
9890
9891 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9892
9893 * ada-lex.l (rules): Only recognize 'thread' as a
9894 delimiter when followed by numerals, as for c-exp.y.
9895 Use new rewind_to_char function to rewind the input for
9896 expression-delimiting tokens.
9897 (rewind_to_char): New function.
9898
9899 2013-03-11 Pedro Alves <palves@redhat.com>
9900 Jan Kratochvil <jan.kratochvil@redhat.com>
9901
9902 * configure: Regenerate.
9903 * configure.ac (check dynamic export flag): Link python test with
9904 $PYTHON_LIBS.
9905
9906 2013-03-11 Doug Evans <dje@google.com>
9907 Keith Seitz <keiths@redhat.com>
9908
9909 * linespec.c (find_linespec_symbols): Call find_function_symbols
9910 first, and then call lookup_prefix_sym/find_method.
9911
9912 2013-03-11 Pedro Alves <palves@redhat.com>
9913
9914 * charset.c (convert_between_encodings): Don't cast between
9915 different pointer to pointer types. Instead, make the 'inp' local
9916 be of the type iconv expects.
9917 (wchar_iterate): Don't cast between different pointer to pointer
9918 types. Instead, use new pointer local of the type iconv expects.
9919 * target.c (target_read_stralloc, target_fileio_read_stralloc):
9920 Add new local of type char pointer, and use it to get a
9921 char/string view of the byte buffer, instead of casting between
9922 pointer to pointer types.
9923
9924 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
9925
9926 * remote.c (remote_set_trace_buffer_size): Move != operator
9927 to the start of next line to fix an ARI warning.
9928
9929 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9930
9931 * NEWS: Add record changes.
9932
9933 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9934
9935 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
9936 the instruction history disassembly.
9937 * disasm.c (dump_insns): Omit the pc prefix, if requested.
9938 * disasm.h (DISASSEMBLY_OMIT_PC): New.
9939
9940 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9941
9942 * Makefile.in (SFILES): Add record-btrace.c
9943 (COMMON_OBS): Add record-btrace.o
9944 * record-btrace.c: New.
9945 * objfiles.c: Include btrace.h.
9946 (free_objfile): call btrace_free_objfile.
9947
9948 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9949
9950 * target.c (target_call_history, target_call_history_from,
9951 target_call_history_range): New.
9952 * target.h (target_ops) <to_call_history, to_call_history_from,
9953 to_call_history_range>: New fields.
9954 (target_call_history, target_call_history_from,
9955 target_call_history_range): New declaration.
9956 * record.c (get_call_history_modifiers, cmd_record_call_history,
9957 record_call_history_size): New.
9958 (_initialize_record): Add the "record function-call-history" command.
9959 Add "set/show record function-call-history-size" commands.
9960 * record.h (record_print_flag): New.
9961
9962 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9963
9964 * target.h (target_ops) <to_insn_history, to_insn_history_from,
9965 to_insn_history_range>: New fields.
9966 (target_insn_history): New.
9967 (target_insn_history_from): New.
9968 (target_insn_history_range): New.
9969 * target.c (target_insn_history): New.
9970 (target_insn_history_from): New.
9971 (target_insn_history_range): New.
9972 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
9973 (record_insn_history_size): New.
9974 (get_insn_number): New.
9975 (get_context_size): New.
9976 (no_chunk): New.
9977 (get_insn_history_modifiers): New.
9978 (cmd_record_insn_history): New.
9979 (_initialize_record): Add "set/show record instruction-history-size"
9980 command. Add "record instruction-history" command.
9981
9982 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
9983
9984 * record.h (record_disconnect): New.
9985 (record_detach): New.
9986 (record_mourn_inferior): New.
9987 (record_kill): New.
9988 * record-full.c (record_disconnect, record_detach,
9989 record_mourn_inferior, record_kill): Move to...
9990 * record.c: ...here.
9991 (DEBUG): New.
9992 (record_stop): New.
9993 (record_unpush): New.
9994 (cmd_record_stop): Call record_stop. Replace unpush_target
9995 call with record_unpush call.
9996 (record_disconnect, record_detach): Assert that the target
9997 is of record stratum. Call record_unpush, record_stop, and
9998 DEBUG.
9999 (record_mourn_inferior, record_kill): Assert that the target
10000 is of record stratum. Call record_unpush and DEBUG.
10001
10002 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10003
10004 * record-full.h, record-full.c (record_memory_query): Rename
10005 to ...
10006 (record_full_memory_query): ...this. Update all users.
10007 (record_arch_list_add_reg): Rename to ...
10008 (record_full_arch_list_add_reg): ...this. Update all users.
10009 (record_arch_list_add_mem): Rename to ...
10010 (record_full_arch_list_add_mem): ...this. Update all users.
10011 (record_arch_list_add_end): Rename to ...
10012 (record_full_arch_list_add_end): ...this. Update all users.
10013 (record_gdb_operation_disable_set): Rename to ...
10014 (record_full_gdb_operation_disable_set): ...this.
10015 Update all users.
10016
10017 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10018
10019 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10020 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10021 (RECORD_IS_REPLAY): Renamed to ...
10022 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10023 (RECORD_FILE_MAGIC): Renamed to ...
10024 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10025 (record_mem_entry): Renamed to ...
10026 (record_full_mem_entry): ... this. Updated all users.
10027 (record_reg_entry): Renamed to ...
10028 (record_full_reg_entry): ... this. Updated all users.
10029 (record_end_entry): Renamed to ...
10030 (record_full_end_entry): ... this. Updated all users.
10031 (record_type) <record_end, record_reg, record_mem>: Renamed
10032 to ...
10033 (record_full_type) <record_full_end, record_full_reg,
10034 record_full_mem>: ... this. Updated all users.
10035 (record_entry): Renamed to ...
10036 (record_full_entry): ... this. Updated all users.
10037 (record_core_buf_entry): Renamed to ...
10038 (record_full_core_buf_entry): ... this. Updated all users.
10039 (record_core_regbuf): Renamed to ...
10040 (record_full_core_regbuf): ... this. Updated all users.
10041 (record_core_start): Renamed to ...
10042 (record_full_core_start): ... this. Updated all users.
10043 (record_core_end): Renamed to ...
10044 (record_full_core_end): ... this. Updated all users.
10045 (record_core_buf_list): Renamed to ...
10046 (record_full_core_buf_list): ... this. Updated all users.
10047 (record_first): Renamed to ...
10048 (record_full_first): ... this. Updated all users.
10049 (record_list): Renamed to ...
10050 (record_full_list): ... this. Updated all users.
10051 (record_arch_list_head): Renamed to ...
10052 (record_full_arch_list_head): ... this. Updated all users.
10053 (record_arch_list_tail): Renamed to ...
10054 (record_full_arch_list_tail): ... this. Updated all users.
10055 (record_stop_at_limit): Renamed to ...
10056 (record_full_stop_at_limit): ... this. Updated all users.
10057 (record_insn_max_num): Renamed to ...
10058 (record_full_insn_max_num): ... this. Updated all users.
10059 (record_insn_num): Renamed to ...
10060 (record_full_insn_num): ... this. Updated all users.
10061 (record_insn_count): Renamed to ...
10062 (record_full_insn_count): ... this. Updated all users.
10063 (record_ops): Renamed to ...
10064 (record_full_ops): ... this. Updated all users.
10065 (record_core_ops): Renamed to ...
10066 (record_full_core_ops): ... this. Updated all users.
10067 (set_record_cmdlist): Renamed to ...
10068 (set_record_full_cmdlist): ... this. Updated all users.
10069 (show_record_cmdlist): Renamed to ...
10070 (show_record_full_cmdlist): ... this. Updated all users.
10071 (record_cmdlist): Renamed to ...
10072 (record_full_cmdlist): ... this. Updated all users.
10073 (record_beneath_to_resume_ops): Renamed to ...
10074 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10075 (record_beneath_to_resume): Renamed to ...
10076 (record_full_beneath_to_resume): ... this. Updated all users.
10077 (record_beneath_to_wait_ops): Renamed to ...
10078 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10079 (record_beneath_to_wait): Renamed to ...
10080 (record_full_beneath_to_wait): ... this. Updated all users.
10081 (record_beneath_to_store_registers_ops): Renamed to ...
10082 (record_full_beneath_to_store_registers_ops): ... this.
10083 Updated all users.
10084 (record_beneath_to_store_registers): Renamed to ...
10085 (record_full_beneath_to_store_registers): ... this.
10086 Updated all users.
10087 (record_beneath_to_xfer_partial_ops): Renamed to ...
10088 (record_full_beneath_to_xfer_partial_ops): ... this.
10089 Updated all users.
10090 (record_beneath_to_xfer_partial): Renamed to ...
10091 (record_full_beneath_to_xfer_partial): ... this.
10092 Updated all users.
10093 (record_beneath_to_insert_breakpoint): Renamed to ...
10094 (record_full_beneath_to_insert_breakpoint): ... this.
10095 Updated all users.
10096 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10097 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10098 Updated all users.
10099 (record_beneath_to_stopped_data_address): Renamed to ...
10100 (record_full_beneath_to_stopped_data_address): ... this.
10101 Updated all users.
10102 (record_beneath_to_async): Renamed to ...
10103 (record_full_beneath_to_async): ... this. Updated all users.
10104 (record_goto_insn): Renamed to ...
10105 (record_full_goto_insn): ... this. Updated all users.
10106 (record_save): Renamed to ...
10107 (record_full_save): ... this. Updated all users.
10108 (record_reg_alloc): Renamed to ...
10109 (record_full_reg_alloc): ... this. Updated all users.
10110 (record_reg_release): Renamed to ...
10111 (record_full_reg_release): ... this. Updated all users.
10112 (record_mem_alloc): Renamed to ...
10113 (record_full_mem_alloc): ... this. Updated all users.
10114 (record_mem_release): Renamed to ...
10115 (record_full_mem_release): ... this. Updated all users.
10116 (record_end_alloc): Renamed to ...
10117 (record_full_end_alloc): ... this. Updated all users.
10118 (record_end_release): Renamed to ...
10119 (record_full_end_release): ... this. Updated all users.
10120 (record_entry_release): Renamed to ...
10121 (record_full_entry_release): ... this. Updated all users.
10122 (record_list_release): Renamed to ...
10123 (record_full_list_release): ... this. Updated all users.
10124 (record_list_release_following): Renamed to ...
10125 (record_full_list_release_following): ... this.
10126 Updated all users.
10127 (record_list_release_first): Renamed to ...
10128 (record_full_list_release_first): ... this. Updated all users.
10129 (record_arch_list_add): Renamed to ...
10130 (record_full_arch_list_add): ... this. Updated all users.
10131 (record_get_loc): Renamed to ...
10132 (record_full_get_loc): ... this. Updated all users.
10133 (record_check_insn_num): Renamed to ...
10134 (record_full_check_insn_num): ... this. Updated all users.
10135 (record_arch_list_cleanups): Renamed to ...
10136 (record_full_arch_list_cleanups): ... this. Updated all users.
10137 (record_message): Renamed to ...
10138 (record_full_message): ... this. Updated all users.
10139 (record_message_wrapper): Renamed to ...
10140 (record_full_message_wrapper): ... this. Updated all users.
10141 (record_message_wrapper_safe): Renamed to ...
10142 (record_full_message_wrapper_safe): ... this. Updated all users.
10143 (record_gdb_operation_disable): Renamed to ...
10144 (record_full_gdb_operation_disable): ... this. Updated all users.
10145 (record_hw_watchpoint): Renamed to ...
10146 (record_full_hw_watchpoint): ... this. Updated all users.
10147 (record_exec_insn): Renamed to ...
10148 (record_full_exec_insn): ... this. Updated all users.
10149 (record_restore): Renamed to ...
10150 (record_full_restore): ... this. Updated all users.
10151 (record_async_inferior_event_token): Renamed to ...
10152 (record_full_async_inferior_event_token): ... this.
10153 Updated all users.
10154 (record_async_inferior_event_handler): Renamed to ...
10155 (record_full_async_inferior_event_handler): ... this.
10156 Updated all users.
10157 (record_core_open_1): Renamed to ...
10158 (record_full_core_open_1): ... this. Updated all users.
10159 (record_open_1): Renamed to ...
10160 (record_full_open_1): ... this. Updated all users.
10161 (record_open): Renamed to ...
10162 (record_full_open): ... this. Updated all users.
10163 (record_close): Renamed to ...
10164 (record_full_close): ... this. Updated all users.
10165 (record_resume_step): Renamed to ...
10166 (record_full_resume_step): ... this. Updated all users.
10167 (record_resumed): Renamed to ...
10168 (record_full_resumed): ... this. Updated all users.
10169 (record_execution_dir): Renamed to ...
10170 (record_full_execution_dir): ... this. Updated all users.
10171 (record_resume): Renamed to ...
10172 (record_full_resume): ... this. Updated all users.
10173 (record_get_sig): Renamed to ...
10174 (record_full_get_sig): ... this. Updated all users.
10175 (record_sig_handler): Renamed to ...
10176 (record_full_sig_handler): ... this. Updated all users.
10177 (record_wait_cleanups): Renamed to ...
10178 (record_full_wait_cleanups): ... this. Updated all users.
10179 (record_wait_1): Renamed to ...
10180 (record_full_wait_1): ... this. Updated all users.
10181 (record_wait): Renamed to ...
10182 (record_full_wait): ... this. Updated all users.
10183 (record_stopped_by_watchpoint): Renamed to ...
10184 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10185 (record_disconnect): Renamed to ...
10186 (record_full_disconnect): ... this. Updated all users.
10187 (record_detach): Renamed to ...
10188 (record_full_detach): ... this. Updated all users.
10189 (record_mourn_inferior): Renamed to ...
10190 (record_full_mourn_inferior): ... this. Updated all users.
10191 (record_kill): Renamed to ...
10192 (record_full_kill): ... this. Updated all users.
10193 (record_stopped_data_address): Renamed to ...
10194 (record_full_stopped_data_address): ... this. Updated all users.
10195 (record_registers_change): Renamed to ...
10196 (record_full_registers_change): ... this. Updated all users.
10197 (record_store_registers): Renamed to ...
10198 (record_full_store_registers): ... this. Updated all users.
10199 (record_xfer_partial): Renamed to ...
10200 (record_full_xfer_partial): ... this. Updated all users.
10201 (record_breakpoint): Renamed to ...
10202 (record_full_breakpoint): ... this. Updated all users.
10203 (record_breakpoint_p): Renamed to ...
10204 (record_full_breakpoint_p): ... this. Updated all users.
10205 (record_breakpoints): Renamed to ...
10206 (record_full_breakpoints): ... this. Updated all users.
10207 (record_sync_record_breakpoints): Renamed to ...
10208 (record_full_sync_record_breakpoints): ... this.
10209 Updated all users.
10210 (record_init_record_breakpoints): Renamed to ...
10211 (record_full_init_record_breakpoints): ... this.
10212 Updated all users.
10213 (record_insert_breakpoint): Renamed to ...
10214 (record_full_insert_breakpoint): ... this. Updated all users.
10215 (record_remove_breakpoint): Renamed to ...
10216 (record_full_remove_breakpoint): ... this. Updated all users.
10217 (record_can_execute_reverse): Renamed to ...
10218 (record_full_can_execute_reverse): ... this. Updated all users.
10219 (record_get_bookmark): Renamed to ...
10220 (record_full_get_bookmark): ... this. Updated all users.
10221 (record_goto_bookmark): Renamed to ...
10222 (record_full_goto_bookmark): ... this. Updated all users.
10223 (record_async): Renamed to ...
10224 (record_full_async): ... this. Updated all users.
10225 (record_can_async_p): Renamed to ...
10226 (record_full_can_async_p): ... this. Updated all users.
10227 (record_is_async_p): Renamed to ...
10228 (record_full_is_async_p): ... this. Updated all users.
10229 (record_execution_direction): Renamed to ...
10230 (record_full_execution_direction): ... this. Updated all users.
10231 (record_info): Renamed to ...
10232 (record_full_info): ... this. Updated all users.
10233 (record_delete): Renamed to ...
10234 (record_full_delete): ... this. Updated all users.
10235 (record_is_replaying): Renamed to ...
10236 (record_full_is_replaying): ... this. Updated all users.
10237 (record_goto_entry): Renamed to ...
10238 (record_full_goto_entry): ... this. Updated all users.
10239 (record_goto_begin): Renamed to ...
10240 (record_full_goto_begin): ... this. Updated all users.
10241 (record_goto_end): Renamed to ...
10242 (record_full_goto_end): ... this. Updated all users.
10243 (record_goto): Renamed to ...
10244 (record_full_goto): ... this. Updated all users.
10245 (init_record_ops): Renamed to ...
10246 (init_record_full_ops): ... this. Updated all users.
10247 (record_core_resume): Renamed to ...
10248 (record_full_core_resume): ... this. Updated all users.
10249 (record_core_kill): Renamed to ...
10250 (record_full_core_kill): ... this. Updated all users.
10251 (record_core_fetch_registers): Renamed to ...
10252 (record_full_core_fetch_registers): ... this. Updated all users.
10253 (record_core_prepare_to_store): Renamed to ...
10254 (record_full_core_prepare_to_store): ... this. Updated all users.
10255 (record_core_store_registers): Renamed to ...
10256 (record_full_core_store_registers): ... this. Updated all users.
10257 (record_core_xfer_partial): Renamed to ...
10258 (record_full_core_xfer_partial): ... this. Updated all users.
10259 (record_core_insert_breakpoint): Renamed to ...
10260 (record_full_core_insert_breakpoint): ... this. Updated all users.
10261 (record_core_remove_breakpoint): Renamed to ...
10262 (record_full_core_remove_breakpoint): ... this. Updated all users.
10263 (record_core_has_execution): Renamed to ...
10264 (record_full_core_has_execution): ... this. Updated all users.
10265 (init_record_core_ops): Renamed to ...
10266 (init_record_full_core_ops): ... this. Updated all users.
10267 (cmd_record_restore): Renamed to ...
10268 (cmd_record_full_restore): ... this. Updated all users.
10269 (record_save_cleanups): Renamed to ...
10270 (record_full_save_cleanups): ... this. Updated all users.
10271 (cmd_record_start): Renamed to ...
10272 (cmd_record_full_start): ... this. Updated all users.
10273 (set_record_insn_max_num): Renamed to ...
10274 (set_record_full_insn_max_num): ... this. Updated all users.
10275 (set_record_command): Renamed to ...
10276 (set_record_full_command): ... this. Updated all users.
10277 (show_record_command): Renamed to ...
10278 (show_record_full_command): ... this. Updated all users.
10279 (_initialize_record): Renamed to ...
10280 (_initialize_record_full): ... this. Updated all users.
10281
10282 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10283
10284 * record.h: Split into this and ...
10285 * record-full.h: ... this.
10286 * record.c: Split into this and ...
10287 * record-full.c: ... this.
10288 * target.h (target_ops): Add new fields to_info_record,
10289 to_save_record, to_delete_record, to_record_is_replaying,
10290 to_goto_record_begin, to_goto_record_end, to_goto_record.
10291 (target_info_record): New.
10292 (target_save_record): New.
10293 (target_supports_delete_record): New.
10294 (target_delete_record): New.
10295 (target_record_is_replaying): New.
10296 (target_goto_record_begin): New.
10297 (target_goto_record_end): New.
10298 (target_goto_record): New.
10299 * target.c (target_info_record): New.
10300 (target_save_record): New.
10301 (target_supports_delete_record): New.
10302 (target_delete_record): New.
10303 (target_record_is_replaying): New.
10304 (target_goto_record_begin): New.
10305 (target_goto_record_end): New.
10306 (target_goto_record): New.
10307 * record.h: Declare struct cmd_list_element.
10308 (record_cmdlist): New declaration.
10309 (set_record_cmdlist): New declaration.
10310 (show_record_cmdlist): New declaration.
10311 (info_record_cmdlist): New declaration.
10312 (cmd_record_goto): New declaration.
10313 * record.c: Remove unnecessary includes.
10314 Include inferior.h.
10315 (cmd_record_goto): Remove declaration.
10316 (record_cmdlist): Now extern. Initialize.
10317 (set_record_cmdlist): Now extern. Initialize.
10318 (show_record_cmdlist): Now extern. Initialize.
10319 (info_record_cmdlist): Now extern. Initialize.
10320 (find_record_target): New.
10321 (require_record_target): New.
10322 (cmd_record_start): Update.
10323 (cmd_record_delete): Remove target-specific code.
10324 Call target_delete_record.
10325 (cmd_record_stop): Unpush any record target.
10326 (set_record_insn_max_num): Move to record-full.c
10327 (set_record_command): Add comment.
10328 (show_record_command): Add comment.
10329 (info_record_command): Update comment.
10330 Remove target-specific code.
10331 Call the record target's to_info_record.
10332 (cmd_record_start): New.
10333 (cmd_record_goto): Now extern.
10334 Remove target-specific code.
10335 Call target_goto_begin, target_goto_end, or target_goto.
10336 (_initialize_record): Move record target ops initialization to
10337 record-full.c.
10338 Change "record" command help text.
10339 Move "record restore", "record set", and "record show" commands to
10340 record-full.c.
10341 * Makefile.in (SFILES): Add record-full.c.
10342 (HFILES_NO_SRCDIR): Add record-full.h.
10343 (COMMON_OBS): Add record-full.o.
10344 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10345 * arm-tdep.c: Include record-full.h.
10346 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10347 * i386-tdep.c: Include record-full.h.
10348 * infrun.c: Include record-full.h.
10349 * linux-record.c: Include record-full.h.
10350 * moxie-tdep.c: Include record-full.h.
10351 * record-full.c: Include record-full.h.
10352 Change module comment.
10353 (set_record_full_cmdlist): New.
10354 (show_record_full_cmdlist): New.
10355 (record_full_cmdlist): New.
10356 (record_goto_insn): New declaration.
10357 (record_save): New declaration.
10358 (record_check_insn_num): Change query string.
10359 (record_info): New.
10360 (record_delete): New.
10361 (record_is_replaying): New.
10362 (record_goto_entry): New.
10363 (record_goto_begin): New.
10364 (record_goto_end): New.
10365 (record_goto): New.
10366 (init_record_ops): Update.
10367 (init_record_core_ops): Update.
10368 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10369 (cmd_record_start): New.
10370 (set_record_insn_max_num): Moved from record.c
10371 (set_record_full_command): New.
10372 (show_record_full_command): New.
10373 (_initialize_record_full): New.
10374
10375 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10376
10377 * target.h (add_deprecated_target_alias): New.
10378 * target.c (add_deprecated_target_alias): New.
10379
10380 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10381
10382 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10383 and signal.h.
10384 (linux_supports_btrace): Add kernel and
10385 cpuid check.
10386 (kernel_supports_btrace): New function.
10387 (cpu_supports_btrace): New function.
10388 (intel_supports_btrace): New function.
10389
10390 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10391
10392 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10393 * remote.c: Include btrace.h.
10394 (struct btrace_target_info): New struct.
10395 (remote_supports_btrace): New function.
10396 (send_Qbtrace): New function.
10397 (remote_enable_btrace): New function.
10398 (remote_disable_btrace): New function.
10399 (remote_teardown_btrace): New function.
10400 (remote_read_btrace): New function.
10401 (init_remote_ops): Add btrace ops.
10402 (enum <unnamed>): Add btrace packets.
10403 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10404 (_initialize_remote): Add packet configuration for branch tracing.
10405
10406 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10407
10408 * features/btrace.dtd: New file.
10409 * Makefile.in (XMLFILES): Add btrace.dtd.
10410 * btrace.h (parse_xml_btrace): New declaration.
10411 * btrace.c: Include xml-support.h.
10412 (parse_xml_btrace): New function.
10413 (parse_xml_btrace_block): New function.
10414 (block_attributes): New struct.
10415 (btrace_attributes): New struct.
10416 (btrace_children): New struct.
10417 (btrace_elements): New struct.
10418
10419 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10420
10421 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10422 (amd64_linux_enable_btrace): New.
10423 (amd64_linux_disable_btrace): New.
10424 (amd64_linux_teardown_btrace): New.
10425 (_initialize_amd64_linux_nat): Initialize btrace ops.
10426 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10427 (i386_linux_enable_btrace): New.
10428 (i386_linux_disable_btrace): New.
10429 (i386_linux_teardown_btrace): New.
10430 (_initialize_i386_linux_nat): Initialize btrace ops.
10431 * config/i386/linux.mh: Add linux-btrace.o.
10432 * config/i386/linux64.mh: Add linux-btrace.o.
10433
10434 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10435
10436 * common/linux_btrace.h: New file.
10437 * common/linux_btrace.c: New file.
10438 * Makefile.in (SFILES): Add btrace.c.
10439 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10440 (COMMON_OBS): Add btrace.o.
10441 (linux-btrace.o): New rule.
10442
10443 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10444
10445 * target.h: Include btrace.h.
10446 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10447 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10448 * target.c (target_supports_btrace): New function.
10449 (target_enable_btrace): New function.
10450 (target_disable_btrace): New function.
10451 (target_teardown_btrace): New function.
10452 (target_read_btrace): New function.
10453 * btrace.h: New file.
10454 * btrace.c: New file.
10455 * Makefile.in: Add btrace.c.
10456 * gdbthread.h: Include btrace.h.
10457 (struct thread_info): Add btrace field.
10458 * thread.c: Include btrace.h.
10459 (clear_thread_inferior_resources): Call target_teardown_btrace.
10460 * common/btrace-common.h: New file.
10461
10462 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10463
10464 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10465 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10466 kill_status to outer block.
10467
10468 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10469
10470 Fix entry-values if the callee called a noreturn function.
10471 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10472 get_frame_address_in_block. Add new comment.
10473
10474 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10475
10476 Fix entry-values in C++ across CUs.
10477 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10478 lookup_minimal_symbol. Add a comment.
10479 * dwarf2read.c
10480 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10481 DW_AT_linkage_name.
10482
10483 2013-03-08 Yao Qi <yao@codesourcery.com>
10484
10485 * tracepoint.c (_initialize_tracepoint): Indent the code.
10486
10487 2013-03-08 Pedro Alves <palves@redhat.com>
10488
10489 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10490 (parse_find_args, find_command): Change type of pattern buffer
10491 locals to 'gdb_byte *'.
10492
10493 2013-03-08 Stan Shebs <stan@codesourcery.com>
10494 Hafiz Abid Qadeer <abidh@codesourcery.com>
10495
10496 * NEWS: Mention set and show trace-buffer-size commands.
10497 Mention new packet.
10498 * target.h (struct target_ops): New method
10499 to_set_trace_buffer_size.
10500 (target_set_trace_buffer_size): New macro.
10501 * target.c (update_current_target): Set up new method.
10502 * tracepoint.c (trace_buffer_size): New global.
10503 (start_tracing): Send it to the target.
10504 (set_trace_buffer_size): New function.
10505 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10506 * remote.c (remote_set_trace_buffer_size): New function.
10507 (_initialize_remote): Use it.
10508 (QTBuffer:size) New remote command.
10509 (PACKET_QTBuffer_size): New enum.
10510 (remote_protocol_features): Add an entry for
10511 PACKET_QTBuffer_size.
10512
10513 2013-03-08 Tom Tromey <tromey@redhat.com>
10514
10515 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10516 variable.
10517
10518 2013-03-07 Pedro Alves <palves@redhat.com>
10519
10520 * target.c (target_read_stralloc, target_fileio_read_alloc):
10521 *Cast pointer to 'gdb_byte *' in target call.
10522
10523 2013-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10526 call.
10527
10528 2013-03-07 Keith Seitz <keiths@redhat.com>
10529
10530 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10531 (trace_pass_command): Likewise.
10532 * cli/cli-cmds.c: Include cli/cli-utils.h.
10533 (source_command): Use skip-spaces.
10534 (disassemble_command): Likewise.
10535 * findcmd.c: Include cli/cli-utils.h.
10536 (parse_find_args): Use skip_spaces.
10537 * go32-nat.c: Include cli/cli-utils.h.
10538 (go32_sldt): Use skip_spaces.
10539 (go32_sgdt): Likewise.
10540 (go32_sidt): Likewise.
10541 (go32_pde): Likewise.
10542 (go32_pte): Likewise.
10543 (go32_pte_for_address): Likewise.
10544 * infcmd.c: Include cli/cli-utils.h.
10545 (registers_info): Use skip_spaces.
10546 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10547 (linux_info_proc): Likewise.
10548 * linux-thread-db.c: Include cli/cli-utils.h.
10549 (info_auto_load_libthread_db): Use skip_spaces_const.
10550 * m32r-rom.c: Include cli/cli-utils.h.
10551 (m32r_upload_command): Use skip_spaces.
10552 * maint.c: Include cli/cli-utils.h.
10553 (maintenance_translate_address): Use skip_spaces.
10554 * mi/mi-parse.c: Include cli/cli-utils.h.
10555 (mi_parse_argv): Use skip_spaces.
10556 (mi_parse): Likewise.
10557 * minsyms.c: Include cli/cli-utils.h.
10558 (msymbol_hash_iw): Use skip_spaces_const.
10559 * objc-lang.c: Include cli/cli-utils.h.
10560 (parse_selector): Use skip_spaces.
10561 (parse_method): Likewise.
10562 * python/python.c: Include cli/cli-utils.h.
10563 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10564 (python_command)[HAVE_PYTHON]: Likewise.
10565 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10566 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10567 (m32r_load): Use skip_spaces.
10568 * serial.c: Include cli/cli-utils.h.
10569 (serial_open): Use skip_spaces_const.
10570 * stack.c: Include cli/cli-utils.h.
10571 (parse_frame_specification_1): Use skip_spaces_const.
10572 * symfile.c: Include cli/cli-utils.h.
10573 (set_ext_lang_command): Use skip_spaces.
10574 * symtab.c: Include cli/cli-utils.h.
10575 (rbreak_command): Use skip_spaces.
10576 * thread.c (thread_name_command): Use skip_spaces.
10577 * tracepoint.c (validate_actionline): Use skip_spaces.
10578 (encode_actions_1): Likewise.
10579 (trace_find_range_command): Likewise.
10580 (trace_find_outside_command): Likewise.
10581 (trace_dump_actions): Likewise.
10582
10583 2013-03-07 Pedro Alves <palves@redhat.com>
10584
10585 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10586 * expprint.c (print_subexp_standard): Likewise.
10587 * utils.c (host_char_to_target): Likewise.
10588 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10589 * varobj.c (value_get_print_value): Change type of local to char*.
10590 Cast it gdb_byte * in call to language printer.
10591
10592 2013-03-07 Pedro Alves <palves@redhat.com>
10593
10594 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10595 gdb_byte *'.
10596 (make_wchar_iterator): Remove cast to char*.
10597 (wchar_iterate): Change type of local.
10598
10599 2013-03-07 Pedro Alves <palves@redhat.com>
10600
10601 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10602 for 'regcache->register_status'.
10603
10604 2013-03-07 Pedro Alves <palves@redhat.com>
10605
10606 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10607 int.
10608
10609 2013-03-07 Pedro Alves <palves@redhat.com>
10610
10611 * stap-probe.c (handle_stap_probe): Add cast to char*.
10612
10613 2013-03-07 Pedro Alves <palves@redhat.com>
10614
10615 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10616 RECORD_MSGRCV>: Pass a signed variable to
10617 regcache_raw_read_signed, instead of an unsigned one.
10618
10619 2013-03-07 Pedro Alves <palves@redhat.com>
10620
10621 * remote-notif.c (notif_debug): Change type to int.
10622 * remote-notif.h (notif_debug): Likewise.
10623
10624 2013-03-07 Pedro Alves <palves@redhat.com>
10625
10626 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10627
10628 2013-03-07 Pedro Alves <palves@redhat.com>
10629
10630 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10631 * remote.h (hex2bin, bin2hex): ... here.
10632 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10633
10634 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10635
10636 * utils.c (initialize_utils): Improve doc strings of "set/show
10637 width", "set/show height", and "set/show pagination".
10638
10639 2013-03-06 Keith Seitz <keiths@redhat.com>
10640
10641 * ax-gdb.c (gen_printf): Make FORMAT const.
10642 * ax-gdb.h (gen_printf): Likewise.
10643 * ax-general.c (ax_string): Make STR const.
10644 * ax.h (ax_string): Likewise.
10645
10646 2013-03-06 Doug Evans <dje@google.com>
10647
10648 * elfread.c (elf_symfile_read): Move debugging printf to more
10649 logical location.
10650
10651 2013-03-06 Pedro Alves <palves@redhat.com>
10652
10653 * python/py-utils.c (target_string_to_unicode): Delete function.
10654 * python/python-internal.h (target_string_to_unicode): Delete
10655 declaration.
10656
10657 2013-03-06 Pierre Muller <muller@sourceware.org>
10658
10659 * linespec.c (get_current_search_block): ARI fix, use (void)
10660 for empty parameter list.
10661
10662 2013-03-05 Doug Evans <dje@google.com>
10663
10664 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10665 of old ada_lookup_symbol_list. In !full_search case, don't
10666 search superblocks.
10667 (ada_lookup_symbol_list): Delete arg full_search, all callers
10668 updated. Call ada_lookup_symbol_list_worker.
10669 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10670 * ada-lang.h (ada_lookup_symbol_list): Update.
10671 * language.h (language_defn): Update comment for
10672 la_iterate_over_symbols.
10673 * linespec.c (iterate_over_file_blocks): New function.
10674 (iterate_over_all_matching_symtabs): Call it.
10675 (lookup_prefix_sym): Ditto.
10676 (get_current_search_block): New function.
10677 (get_search_block): Delete.
10678 (find_label_symbols): Call get_current_search_block.
10679 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10680 * symtab.c (iterate_over_symbols): Don't search superblocks.
10681
10682 2013-03-05 Yao Qi <yao@codesourcery.com>
10683
10684 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10685 parameter VAR's type from "unsigned int" to "int".
10686 * command.h (var_zuinteger_unlimited): Update its comments.
10687 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10688
10689 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10690
10691 * NEWS: Mention new target x86_64-*-cygwin*.
10692
10693 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10694
10695 * configure.host: Add x86_64-*-cygwin* as host.
10696 * configure.tgt: Add x86_64-*-cygwin* as target.
10697 * config/i386/cygwin64.mh: New file.
10698
10699 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10700
10701 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10702
10703 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10704
10705 * linespec.c (struct linespec_canonical_name): New.
10706 (struct linespec_state): Change canonical_names type to it.
10707 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10708 xrealloc element size. Initialize the different CANONICAL fields.
10709 (canonical_to_fullform): New.
10710 (filter_results): Use it. Add variables canonical, fullform and
10711 cleanup.
10712 (struct decode_line_2_item, decode_line_2_compare_items): New.
10713 (decode_line_2): Remove variables iter and item_names, add variables
10714 items and items_count. Modify the code for these new variables.
10715
10716 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10717
10718 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10719 calling do_cleanup.
10720
10721 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10722
10723 * tracepoint.c (build_traceframe_info): Add code for byte order.
10724
10725 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10726
10727 * v850-tdep.c: (v850e2_register_name): Revise system register
10728 names to match current V850E2M architecture specifications.
10729 Update register number enum comments too.
10730
10731 2013-03-01 Jiong Wang <jiwang@tilera.com>
10732 Pedro Alves <palves@redhat.com>
10733
10734 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10735 to END_ADDR.
10736 (tilegx_skip_prologue): Limit prologue analysis to section end.
10737
10738 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10739
10740 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10741 use it.
10742
10743 2013-03-01 Pedro Alves <palves@redhat.com>
10744
10745 Use gdb_byte for bytes from the program being debugged.
10746
10747 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10748 Change type of local 'buf' to gdb_byte.
10749 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10750 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10751 * cris-tdep.c (cris_sigcontext_addr)
10752 (cris_sigtramp_frame_unwind_cache): Likewise.
10753 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10754 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10755 Likewise.
10756 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10757 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10758 (hppa32_hpux_search_dummy_call_sequence)
10759 (hppa_hpux_supply_save_state): Likewise.
10760 * hppa-linux-tdep.c (insns_match_pattern)
10761 (hppa_linux_find_global_pointer): Likewise.
10762 * hppa-tdep.c (hppa_in_function_epilogue_p)
10763 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10764 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10765 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10766 (i386fbsd_collect_uthread): Likewise.
10767 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10768 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10769 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10770 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10771 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10772 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10773 (ia64_libunwind_frame_prev_register)
10774 (ia64_libunwind_sigtramp_frame_this_id)
10775 (ia64_find_global_pointer_from_dynamic_section)
10776 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10777 (ia64_unwind_pc): Likewise.
10778 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10779 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10780 (m68hc11_extract_return_value): Likewise.
10781 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10782 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10783 (mep_get_insn, mep_push_dummy_call): Likewise.
10784 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10785 (mips_linux_in_dynsym_stub): Likewise.
10786 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10787 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10788 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10789 to gdb_byte.
10790 * remote-mips.c (mips_set_register): Likewise.
10791 * remote-sim.c (gdbsim_fetch_register): Likewise.
10792 * score-tdep.c (score7_fetch_inst): Change type of parameter
10793 'memblock' and local 'buf' to gdb_byte.
10794 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10795 Change type of local 'buf' to gdb_byte. Adjust.
10796 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10797 to gdb_byte**.
10798 (score7_analyze_prologue): Change type of 'memblock' and
10799 'memblock_ptr' locals to gdb_byte*.
10800 * sh64-tdep.c (sh64_extract_return_value)
10801 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10802 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10803 * solib-pa64.c (pa64_solib_create_inferior_hook)
10804 (pa64_open_symbol_file_object): Remove local 'buf'.
10805 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10806 (som_open_symbol_file_object): Likewise.
10807 * solib-spu.c (spu_current_sos): Likewise.
10808 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10809 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10810 (spu_store_registers): Likewise.
10811 * target.c (debug_print_register): Likewise.
10812 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10813 * xstormy16-tdep.c (xstormy16_store_return_value)
10814 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10815 (xstormy16_find_jmp_table_entry): Likewise.
10816
10817 2013-03-01 Jiong Wang <jiwang@tilera.com>
10818
10819 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10820 (tilegx_gdbarch_init): Install it.
10821
10822 2013-02-28 Tom Tromey <tromey@redhat.com>
10823
10824 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10825 PyLong_Check.
10826
10827 2013-02-28 Doug Evans <dje@google.com>
10828
10829 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10830 * python/python.c (gdbpy_find_pc_line): Ditto.
10831
10832 2013-02-28 Tom Tromey <tromey@redhat.com>
10833
10834 * contrib/excheck.py: New file.
10835 * contrib/exsummary.py: New file.
10836 * contrib/gcc-with-excheck: New file.
10837
10838 2013-02-28 Tom Tromey <tromey@redhat.com>
10839
10840 * python/python.c (gdbpy_print_stack): Call begin_line and
10841 fprintf_filtered inside TRY_CATCH.
10842
10843 2013-02-28 Tom Tromey <tromey@redhat.com>
10844
10845 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10846 inside TRY_CATCH.
10847
10848 2013-02-28 Tom Tromey <tromey@redhat.com>
10849
10850 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10851 frame_object_to_frame_info inside TRY_CATCH.
10852
10853 2013-02-28 Tom Tromey <tromey@redhat.com>
10854
10855 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10856 TRY_CATCH.
10857
10858 2013-02-28 Tom Tromey <tromey@redhat.com>
10859
10860 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10861
10862 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10863
10864 * windows-nat.c: Throughout, fix format strings and casts of
10865 printf-like functions to avoid type related warnings on all
10866 platforms.
10867 (handle_output_debug_string): Fetch context information address
10868 from debug string using string_to_core_addr.
10869
10870 2013-02-27 Jiong Wang <jiwang@tilera.com>
10871
10872 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10873 * regformats/reg-tilegx32.dat: New.
10874
10875 2013-02-27 Jiong Wang <jiwang@tilera.com>
10876
10877 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10878
10879 2013-02-27 Jiong Wang <jiwang@tilera.com>
10880
10881 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10882
10883 2013-02-27 Yao Qi <yao@codesourcery.com>
10884 Pedro Alves <palves@redhat.com>
10885
10886 * tracepoint.c (tfile_trace_find): For tfind
10887 pc/tp/range/outside, look for the next trace frame instead of
10888 always starting from frame 0.
10889
10890 2013-02-26 Anthony Green <green@moxielogic.com>
10891
10892 * configure.tgt: Add support for moxie-*-rtems* target.
10893
10894 2013-02-25 Pedro Alves <palves@redhat.com>
10895
10896 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
10897 warning text.
10898
10899 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10900
10901 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
10902 if $fp is used as the virtual frame pointer.
10903
10904 2013-02-23 Alan Modra <amodra@gmail.com>
10905
10906 * elfread.c (elf_symtab_read): Do not use udata.p here to find
10907 symbol size.
10908 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
10909 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
10910 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
10911 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
10912
10913 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10914
10915 Code cleanup.
10916 * elfread.c (build_id_bfd_get): Make the return type const.
10917 (build_id_verify): Make the check parameter const.
10918 (build_id_to_debug_filename): Make the build_id parameter and variable
10919 data const.
10920 (find_separate_debug_file_by_buildid): Make the variable build_id const.
10921
10922 2013-02-21 Alan Modra <amodra@gmail.com>
10923
10924 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
10925
10926 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
10927
10928 Add a new method 'disassemble' to gdb.Architecture class.
10929 * python/py-arch.c (archpy_disassmble): Implementation of the
10930 new method gdb.Architecture.disassemble.
10931 (arch_object_methods): Add entry for the new method.
10932
10933 2013-02-20 Jiong Wang <jiwang@tilera.com>
10934
10935 * MAINTAINERS (Write After Approval): Add myself to the list.
10936
10937 2013-02-19 Pedro Alves <palves@redhat.com>
10938
10939 Garbage collect 'struct monitor_ops'::load_routine.
10940
10941 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
10942 * monitor.c (monitor_load): No longer call
10943 current_monitor->load_routine.
10944 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
10945 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
10946 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
10947
10948 2013-02-19 Pedro Alves <palves@redhat.com>
10949
10950 PR gdb/15161
10951
10952 Harmonize with generic_load.
10953
10954 * monitor.c: Include "readline/readline.h".
10955 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
10956 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
10957 long/strtol for the 'load_offset' local. Error out if no argument
10958 is given or if too many arguments are given. Tilde expand the
10959 passed in file name.
10960
10961 2013-02-19 Kai Tietz <ktietz@redhat.com>
10962
10963 PR gdb/15161
10964 * symfile.c (load_section_data): Change type of load_offset
10965 to CORE_ADDR.
10966 (generic_load): User strtoulst instead of strtoul for conversion
10967 of load_offset.
10968
10969 2013-02-19 Jiong Wang <jiwang@tilera.com>
10970
10971 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
10972 for return address, "lr" register, saved on stack.
10973 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
10974 after we invoke tilegx_analyze_prologue.
10975
10976 2013-02-19 Jiong Wang <jiwang@tilera.com>
10977
10978 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
10979
10980 2013-02-19 Jiong Wang <jiwang@tilera.com>
10981
10982 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
10983
10984 2013-02-19 Jiong Wang <jiwang@tilera.com>
10985
10986 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
10987 (tilegx_write_pc): New function.
10988 (tilegx_cannot_reference_register): Return zero if REGNO
10989 is TILEGX_FAULTNUM_REGNUM.
10990 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
10991 (tilegx_register_name): Add handling of "faultnum" register.
10992 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
10993 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
10994 handling of TILEGX_FAULTNUM_REGNUM.
10995 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
10996
10997 2013-02-19 Jiong Wang <jiwang@tilera.com>
10998
10999 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11000 should be aligned to 64bit.
11001
11002 2013-02-19 Kai Tietz <ktietz@redhat.com>
11003
11004 * windows-nat.c (windows_xfer_memory): Fix debug-output
11005 for LLP64.
11006
11007 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11008
11009 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11010 Don't check DSP register number if HAVE_DSP is not set.
11011
11012 2013-02-19 Alan Modra <amodra@gmail.com>
11013
11014 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11015 throughout file instead.
11016 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11017 Don't xmalloc return value.
11018 (build_id_verify): Similarly. Don't xfree.
11019 (build_id_to_debug_filename): Update.
11020 (find_separate_debug_file_by_buildid): Update, don't xfree.
11021
11022 2013-02-18 Tom Tromey <tromey@redhat.com>
11023
11024 PR gdb/15102:
11025 * dwarf2read.c (read_subrange_type): Use result of
11026 'check_typedef'.
11027
11028 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11029
11030 * frame.c: Remove one extra white space after #include
11031 directive.
11032
11033 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11034
11035 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11036
11037 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11038
11039 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11040 and dir commands into an if block.
11041
11042 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11043
11044 * python/py-breakpoint (struct pybp_code): Use int instead of
11045 enum type_code.
11046
11047 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11048 Hafiz Abid Qadeer <abidh@codesourcery.com>
11049
11050 * NEWS: Mention new field "trace-file".
11051 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11052 (tfile_open): Record the trace file's filename in the trace
11053 status.
11054 (tfile_files_info): Mention the name of the trace file.
11055 Check the "filename" field explicitely.
11056 (trace_status_command): Explicitely check "filename" field.
11057 (trace_find_command): Ditto.
11058 (trace_find_pc_command): Ditto.
11059 (trace_find_tracepoint_command): Ditto.
11060 (trace_find_line_command): Ditto.
11061 (trace_find_range_command): Ditto.
11062 (trace_find_outside_command): Ditto.
11063 * tracepoint.h (struct trace_status) <from_file>: Rename it
11064 to "filename" and make it hold the trace file's filename
11065 instead of a boolean.
11066 * remote.c (remote_get_trace_status): Initialize "filename"
11067 field with NULL instead of 0.
11068
11069 2013-02-15 Yao Qi <yao@codesourcery.com>
11070
11071 * remote.c: Fix a typo.
11072
11073 2013-02-14 Pierre Muller <muller@sourceware.org>
11074
11075 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11076
11077 2013-02-14 Pedro Alves <palves@redhat.com>
11078
11079 * utils.c (savestring): Don't #undef it. Move function to
11080 common/common-utils.c.
11081 * common/common-utils.c: Include gdb_string.h.
11082 (savestring): Move here from utils.c.
11083 * common/common-utils.h (savestring): Declare.
11084
11085 2013-02-14 Pedro Alves <palves@redhat.com>
11086
11087 * utils.c (savestring): Rename parameter 'size' to 'len'.
11088
11089 2013-02-14 Pedro Alves <palves@redhat.com>
11090 Yufeng Zhang <yufeng.zhang@arm.com>
11091
11092 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11093 (aarch64_inferior_data, struct aarch64_inferior_data):
11094 Delete.
11095 (struct aarch64_process_info): New.
11096 (aarch64_process_list): New global.
11097 (aarch64_find_process_pid, aarch64_add_process)
11098 (aarch64_process_info_get): New functions.
11099 (aarch64_inferior_data_get): Delete.
11100 (aarch64_process_info_get): New function.
11101 (aarch64_forget_process): New function.
11102 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11103 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11104 aarch64_get_debug_reg_state.
11105 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11106 instead of linux_nat_iterate_watchpoint_lwps.
11107 (aarch64_linux_new_fork): New function.
11108 (aarch64_linux_child_post_startup_inferior): Use
11109 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11110 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11111 (aarch64_linux_remove_hw_breakpoint)
11112 (aarch64_handle_aligned_watchpoint)
11113 (aarch64_handle_unaligned_watchpoint)
11114 (aarch64_linux_insert_watchpoint)
11115 (aarch64_linux_remove_watchpoint)
11116 (aarch64_linux_stopped_data_address): Adjust to pass the current
11117 process id to aarch64_debug_reg_state.
11118 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11119 linux_nat_new_fork hook, and aarch64_forget_process as
11120 linux_nat_forget_process hook; remove the call to
11121 register_inferior_data_with_cleanup.
11122
11123 2013-02-14 Pedro Alves <palves@redhat.com>
11124
11125 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11126 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11127 lval_memory.
11128
11129 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11130 Hafiz Abid Qadeer <abidh@codesourcery.com>
11131
11132 * tracepoint.h (validate_trace_state_variable_name): Declare.
11133 * tracepoint.c (validate_trace_state_variable_name): New.
11134 (trace_variable_command): Parse the trace state variable's name
11135 without using parse_expression. Do several validations.
11136 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11137 trace state variable's name with parse_expression. Validate it.
11138
11139 2013-02-14 Yao Qi <yao@codesourcery.com>
11140
11141 * infcmd.c (breakpoint_proceeded): Remove it.
11142
11143 2013-02-14 Yao Qi <yao@codesourcery.com>
11144
11145 * tracepoint.c (end_actions_pseudocommand): Make it static.
11146 (while_stepping_pseudocommand): Likewise.
11147 * tracepoint.h (end_actions_pseudocommand): Remove the
11148 declaration.
11149 (while_stepping_pseudocommand): Likewise.
11150
11151 2013-02-14 Yao Qi <yao@codesourcery.com>
11152
11153 * cli/cli-decode.c (help_cmd): Remove the declaration of
11154 "cmdlist".
11155 (help_all): Likewise.
11156
11157 2013-02-13 Pedro Alves <palves@redhat.com>
11158
11159 * amd64-linux-nat.c (update_debug_registers_callback):
11160 Update comment.
11161 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11162 iterate_over_lwps.
11163 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11164 i386_debug_reg_state.
11165 (amd64_linux_new_fork): New function.
11166 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11167 linux_nat_new_fork hook, and i386_forget_process as
11168 linux_nat_forget_process hook.
11169 * i386-linux-nat.c (update_debug_registers_callback):
11170 Update comment.
11171 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11172 iterate_over_lwps.
11173 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11174 i386_debug_reg_state.
11175 (i386_linux_new_fork): New function.
11176 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11177 linux_nat_new_fork hook, and i386_forget_process as
11178 linux_nat_forget_process hook.
11179 * i386-nat.c (i386_init_dregs): Delete.
11180 (i386_inferior_data, struct i386_inferior_data):
11181 Delete.
11182 (struct i386_process_info): New.
11183 (i386_process_list): New global.
11184 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11185 New functions.
11186 (i386_inferior_data_get): Delete.
11187 (i386_process_info_get): New function.
11188 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11189 (i386_forget_process): New function.
11190 (i386_cleanup_dregs): Rewrite.
11191 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11192 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11193 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11194 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11195 to i386_debug_reg_state.
11196 (i386_use_watchpoints): Don't register inferior data.
11197 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11198 adjust comment.
11199 (i386_forget_process): Declare.
11200 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11201 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11202 New static globals.
11203 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11204 (add_initial_lwp): New, factored out from ...
11205 (add_lwp): ... this. Don't check the number of lwps before
11206 calling linux_nat_new_thread.
11207 (linux_nat_iterate_watchpoint_lwps): Delete.
11208 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11209 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11210 forks and vforks.
11211 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11212 initial lwp.
11213 (linux_nat_kill, linux_nat_mourn_inferior): Call
11214 linux_nat_forget_process.
11215 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11216 (linux_nat_forget_process): New functions.
11217 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11218 type.
11219 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11220 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11221 types.
11222 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11223 (linux_nat_forget_process): New declarations.
11224
11225 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11226 (amd64fbsd_mourn_inferior): New function.
11227 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11228 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11229
11230 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11231
11232 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11233 Adding _().
11234
11235 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11236
11237 * aarch64-linux-nat.c (debug_reg_change_callback)
11238 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11239 %s and phex().
11240
11241 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11242
11243 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11244 with LONGEST.
11245
11246 2013-02-13 Pedro Alves <palves@redhat.com>
11247 Hafiz Abid Qadeer <abidh@codesourcery.com>
11248
11249 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11250
11251 2013-02-12 Tom Tromey <tromey@redhat.com>
11252
11253 PR symtab/11464:
11254 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11255 NAME return.
11256 (classify_inner_name): Remove 'first_name' argument, add
11257 'context'. Remove unused variable.
11258 (yylex): Explicitly maintain the context type. Exit loop earlier
11259 if NAME result is seen.
11260
11261 2013-02-12 Pedro Alves <palves@redhat.com>
11262
11263 * amd64-darwin-tdep.c: Add (C) after Copyright.
11264 * cli/cli-cmds.h: Ditto.
11265 * cli/cli-decode.c: Ditto.
11266 * cli/cli-decode.h: Ditto.
11267 * cli/cli-dump.c: Ditto.
11268 * cli/cli-dump.h: Ditto.
11269 * cli/cli-interp.c: Ditto.
11270 * cli/cli-logging.c: Ditto.
11271 * cli/cli-script.c: Ditto.
11272 * cli/cli-script.h: Ditto.
11273 * cli/cli-setshow.c: Ditto.
11274 * cli/cli-setshow.h: Ditto.
11275 * cli/cli-utils.c: Ditto.
11276 * cli/cli-utils.h: Ditto.
11277 * config/alpha/nm-osf3.h: Ditto.
11278 * config/djgpp/djconfig.sh: Ditto.
11279 * config/i386/nm-fbsd.h: Ditto.
11280 * config/i386/nm-i386gnu.h: Ditto.
11281 * config/nm-linux.h: Ditto.
11282 * config/nm-nto.h: Ditto.
11283 * config/rs6000/nm-rs6000.h: Ditto.
11284 * config/sparc/nm-sol2.h: Ditto.
11285 * darwin-nat-info.c: Ditto.
11286 * dfp.c: Ditto.
11287 * dfp.h: Ditto.
11288 * gdb-demangle.h: Ditto.
11289 * i386-darwin-nat.c: Ditto.
11290 * i386-darwin-tdep.c: Ditto.
11291 * linux-fork.h: Ditto.
11292 * m32c-tdep.c: Ditto.
11293 * microblaze-linux-tdep.c: Ditto.
11294 * microblaze-rom.c: Ditto.
11295 * microblaze-tdep.c: Ditto.
11296 * microblaze-tdep.h: Ditto.
11297 * mips-linux-tdep.h: Ditto.
11298 * ppc-ravenscar-thread.c: Ditto.
11299 * ppc-ravenscar-thread.h: Ditto.
11300 * prologue-value.c: Ditto.
11301 * prologue-value.h: Ditto.
11302 * ravenscar-thread.c: Ditto.
11303 * ravenscar-thread.h: Ditto.
11304 * sparc-ravenscar-thread.c: Ditto.
11305 * sparc-ravenscar-thread.h: Ditto.
11306 * tilegx-linux-tdep.c: Ditto.
11307 * unwind_stop_reasons.def: Ditto.
11308 * windows-nat.h: Ditto.
11309 * xtensa-linux-tdep.c: Ditto.
11310 * xtensa-xtregs.c: Ditto.
11311 * regformats/regdat.sh: Ditto.
11312 * regformats/regdef.h: Ditto.
11313
11314 2013-02-12 Pedro Alves <palves@redhat.com>
11315
11316 * break-catch-sig.c: Update copyright years.
11317
11318 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11319
11320 Add support for a destructor for ui_out data and use it to
11321 provide a ui_out destructor.
11322 * ui-out.h: Declare the new ui_out destructor.
11323 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11324 * ui-out.c (default_data_destroy): Add a default data destructor
11325 which does nothing.
11326 (default_ui_out_impl): Set the new data_destroy field to
11327 default_data_destroy
11328 (uo_data_destroy): Local function which invokes the data
11329 destructor if present.
11330 (clear_table): Local function which clears the table data of a
11331 ui_out object.
11332 (ui_out_destroy): Public function which frees a ui_out object.
11333 (ui_out_table_end): Use the new clear_table function.
11334 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11335 NULL.
11336 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11337 to NULL.
11338
11339 2013-02-11 Doug Evans <dje@google.com>
11340
11341 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11342 (printf_decfloat): New function. Broken out from ui_printf.
11343 Remove unnecessary code to shift the entire format string down.
11344 (printf_pointer): New function.
11345 (ui_printf): Code to print C strings, wide C strings, decfloats,
11346 and pointers moved to separate functions.
11347
11348 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11349
11350 * valops.c (value_assign): Handling bitfield offset in
11351 `lval_internalvar_component' case.
11352
11353 2013-02-08 Doug Evans <dje@google.com>
11354
11355 * common/format.c (parse_format_string): Fix whitespace.
11356
11357 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11358
11359 * stack.c (return_command): Work around uninitialized variable
11360 warning.
11361
11362 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11363
11364 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11365 number of the registers from 36 to 34.
11366
11367 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11368
11369 * NEWS: Mention new AArch64 native and target support.
11370
11371 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11372
11373 * MAINTAINERS (Write After Approval): Add myself.
11374
11375 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11376 Marcus Shawcroft <marcus.shawcroft@arm.com>
11377 Nigel Stephens <nigel.stephens@arm.com>
11378 Yufeng Zhang <yufeng.zhang@arm.com>
11379
11380 * aarch64-linux-nat.c: New file.
11381 * config/aarch64/linux.mh: New file.
11382 * configure.host: Add AArch64.
11383 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11384
11385 2013-02-07 Doug Evans <dje@google.com>
11386
11387 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11388 disassemble command.
11389
11390 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11391
11392 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11393 set_gdbarch_fetch_tls_load_module_address.
11394
11395 2013-02-06 David S. Miller <davem@davemloft.net>
11396
11397 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11398 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11399 * value.c (struct_return_convention): New function.
11400 (using_struct_return): Implement in terms of struct_return_convention.
11401 * value.h (struct_return_convention): Declare.
11402 * stack.c (return_command): Allow successful overriding of the return
11403 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11404
11405 2013-02-06 Tom Tromey <tromey@redhat.com>
11406
11407 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11408 outside of TRY_CATCH.
11409
11410 2013-02-06 Yao Qi <yao@codesourcery.com>
11411
11412 * mi/mi-interp.c: Include "tracepoint.h".
11413 (mi_tsv_modified): Declare.
11414 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11415 (mi_interpreter_init): Call observer_attach_tsv_modified.
11416 (mi_tsv_modified): New.
11417 (mi_tsv_created, mi_tsv_deleted): Update.
11418 * tracepoint.c (trace_variable_command): Call
11419 observer_notify_tsv_modified if the initial value of tsv is
11420 changed.
11421 (delete_trace_state_variable): Call
11422 observer_notify_tsv_deleted earlier.
11423 (trace_variable_command): Caller update.
11424 (create_tsv_from_upload): Likewise.
11425 * observer.sh: Declare "struct trace_state_variable".
11426
11427 * NEWS: Mention the new MI notification "=tsv-modified".
11428
11429 2013-02-05 Doug Evans <dje@google.com>
11430
11431 * completer.c (location_completer): Fix typo in comment.
11432
11433 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11434
11435 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11436 ADDRESS sorted.
11437
11438 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11439
11440 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11441 Refactor if statement to avoid trailing || operator.
11442
11443 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11444
11445 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11446
11447 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11448
11449 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11450 * configure.host: Add powerpc*-*-freebsd* target.
11451 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11452 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11453 * config/powerpc/fbsd.mh: New file.
11454
11455 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11456 Denys Vlasenko <dvlasenk@redhat.com>
11457 Pedro Alves <palves@redhat.com>
11458
11459 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11460 (struct elf_internal_linux_prpsinfo): Forward declare.
11461 * gdbarch.h, gdbarch.c: Regenerate.
11462 * linux-tdep.c: Include `cli/cli-utils.h'.
11463 (linux_fill_prpsinfo): New function.
11464 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11465 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11466 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11467 depending on gdbarch pointer bitness.
11468 * ppc-linux-tdep.c: Include elf-bfd.h.
11469 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11470 on 32-bit.
11471
11472 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11473 Marcus Shawcroft <marcus.shawcroft@arm.com>
11474 Nigel Stephens <nigel.stephens@arm.com>
11475 Yufeng Zhang <yufeng.zhang@arm.com>
11476
11477 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11478
11479 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11480 Marcus Shawcroft <marcus.shawcroft@arm.com>
11481 Nigel Stephens <nigel.stephens@arm.com>
11482 Yufeng Zhang <yufeng.zhang@arm.com>
11483
11484 * aarch64-newlib-tdep.c: New file.
11485 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11486 aarch64*-*-elf.
11487 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11488 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11489 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11490 * osabi.c (gdb_osabi_names): Add "Newlib".
11491
11492 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11493 Marcus Shawcroft <marcus.shawcroft@arm.com>
11494 Nigel Stephens <nigel.stephens@arm.com>
11495 Yufeng Zhang <yufeng.zhang@arm.com>
11496
11497 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11498 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11499 * aarch64-linux-tdep.c: New file.
11500 * aarch64-linux-tdep.h: New file.
11501 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11502 * configure.tgt: Add aarch64-none-linux-gnu.
11503
11504 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11505 Marcus Shawcroft <marcus.shawcroft@arm.com>
11506 Nigel Stephens <nigel.stephens@arm.com>
11507 Yufeng Zhang <yufeng.zhang@arm.com>
11508
11509 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11510 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11511 (ALLDEPFILES): Add aarch64-tdep.c.
11512 * aarch64-tdep.c: New file.
11513 * aarch64-tdep.h: New file.
11514 * configure.tgt: Add AArch64.
11515 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11516 (aarch64-expedite): New definition.
11517 * features/aarch64-core.xml: New file.
11518 * features/aarch64-fpu.xml: New file.
11519 * features/aarch64-without-fpu.c: New file (generated).
11520 * features/aarch64-without-fpu.xml: New file.
11521 * features/aarch64.c: New file (generated).
11522 * features/aarch64.xml: New file.
11523 * regformats/aarch64-without-fpu.dat: New file (generated).
11524 * regformats/aarch64.dat: New file (generated).
11525
11526 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11527
11528 * contrib/expect-read1.c: New file.
11529 * contrib/expect-read1.sh: New file.
11530
11531 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11532
11533 * dwarf2read.c (file_file_name): New function with code from
11534 file_full_name.
11535 (file_full_name): Move most of the code to file_file_name.
11536 (macro_start_file): Rename variable full_name to file_name and use
11537 file_file_name for it. Add comp_dir parameter to new_macro_table.
11538 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11539 macro_source_file->filename access by macro_source_fullname call.
11540 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11541 caller.
11542 * macrotab.c (struct macro_table): New field comp_dir.
11543 (macro_include): New variables link_fullname and source_fullname.
11544 Replace any macro_source_file->filename access by macro_source_fullname
11545 call.
11546 (macro_lookup_inclusion): Remove the partial filenames checking code.
11547 (check_for_redefinition): New variables source_fullname and
11548 found_key_fullname. Replace any macro_source_file->filename access by
11549 macro_source_fullname call.
11550 (macro_undef): New variables source_fullname and key_fullname. Replace
11551 any macro_source_file->filename access by macro_source_fullname call.
11552 (macro_lookup_definition): New variables retval and source_fullname.
11553 Replace any macro_source_file->filename access by macro_source_fullname
11554 call.
11555 (foreach_macro): New variable key_fullname. Replace any
11556 macro_source_file->filename access by macro_source_fullname call.
11557 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11558 macro_source_file->filename access by macro_source_fullname call.
11559 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11560 (macro_source_fullname): New function.
11561 * macrotab.h (struct macro_source_file): Extent the filename field
11562 comment.
11563 (new_macro_table): New parameter comp_dir, add a comment for it.
11564 (macro_source_fullname): new declaration.
11565
11566 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11567
11568 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11569 this_real_name to outer block. Use it also for
11570 compare_filenames_for_search.
11571 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11572 with dw2_get_real_path for file_matcher, considering also
11573 BASENAMES_MAY_DIFFER.
11574 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11575
11576 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11577
11578 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11579 to the file_matcher parameter. Pass 0 to it.
11580 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11581 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11582 NULL psymtab_to_fullname result.
11583 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11584 an expected filename instead.
11585 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11586 file_matcher parameter. Call also psymtab_to_fullname, after newly
11587 considering BASENAMES_MAY_DIFFER.
11588 * source.c (rewrite_source_path): Remove static.
11589 * source.h (rewrite_source_path): New declaration.
11590 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11591 the expand_symtabs_matching field. Comment it.
11592 * symtab.c (file_matches): New function comment. Add parameter
11593 basenames, implement it.
11594 (search_symbols_file_matches): Add basenames parameter. Update the
11595 file_matches caller.
11596 (search_symbols): Match FILES also against symtab_to_fullname.
11597 Optimize it for BASENAMES_MAY_DIFFER.
11598
11599 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11600
11601 * source.c (print_source_lines_base): Print for TUI also "fullname".
11602 * tui/tui-data.c (init_content_element): Change tui_locator_element
11603 field to full_name.
11604 * tui/tui-data.h (struct tui_locator_element): Likewise.
11605 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11606 tui_update_locator_filename calls to tui_update_locator_fullname.
11607 Replace symtab->filename refererence by symtab_to_fullname call.
11608 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11609 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11610 field to full_name. Replace symtab->filename refererence by
11611 symtab_to_fullname call.
11612 (tui_show_symtab_source): Rename parameter to fullname. Change
11613 tui_locator_element field to full_name.
11614 * tui/tui-stack.c: Include source.h.
11615 (tui_set_locator_filename): Rename the declaration to ...
11616 (tui_set_locator_fullname): ... here. Rename its parameter to
11617 fullname, updates its comment.
11618 (tui_set_locator_info): Rename its parameter to fullname.
11619 (tui_set_locator_filename): Rename the definition to ...
11620 (tui_set_locator_fullname): ... here. Rename its parameter to
11621 fullname, updates its comment. Change tui_locator_element field to
11622 full_name.
11623 (tui_set_locator_info): Rename its parameter to fullname.
11624 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11625 (tui_update_locator_filename): Rename to ...
11626 (tui_update_locator_fullname): ... here. Rename callee to
11627 tui_set_locator_fullname.
11628 (tui_show_frame_info): Replace symtab->filename refererence by
11629 symtab_to_fullname call.
11630 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11631 (tui_update_locator_fullname): ... here.
11632 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11633 tui_update_locator_fullname. Replace symtab->filename refererence by
11634 symtab_to_fullname call.
11635 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11636 Rename the callee to tui_update_locator_fullname.
11637 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11638
11639 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11640
11641 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11642 by symtab_to_filename_for_display calls.
11643 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11644 (clear_command): New variable sal_fullname, initialize it. Replace
11645 compare_filenames_for_search by filename_cmp with sal_fullname.
11646 (say_where, update_static_tracepoint): Replace symtab->filename
11647 refererences by symtab_to_filename_for_display calls.
11648 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11649 Likewise.
11650 * dwarf2read.c: Include source.h.
11651 (fixup_go_packaging): Replace symtab->filename refererences by
11652 symtab_to_filename_for_display calls.
11653 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11654 Replace symtab->filename refererences by symtab_to_filename_for_display
11655 calls.
11656 (create_sals_line_offset, convert_linespec_to_sals): New variable
11657 fullname, initialize it, replace symtab->filename reference by the
11658 variable.
11659 * linux-fork.c: Include source.h.
11660 (info_checkpoints_command): Replace symtab->filename refererences by
11661 symtab_to_filename_for_display calls.
11662 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11663 by symtab_to_filename_for_display calls.
11664 * mdebugread.c: Include source.h.
11665 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11666 symtab_to_filename_for_display calls.
11667 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11668 (mi_cmd_file_list_exec_source_files): Likewise.
11669 * printcmd.c: Include source.h.
11670 (build_address_symbolic): Replace symtab->filename refererences by
11671 symtab_to_filename_for_display calls.
11672 * psymtab.c (partial_map_symtabs_matching_filename)
11673 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11674 with psymtab_to_fullname.
11675 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11676 by symtab_to_filename_for_display calls.
11677 (stpy_get_filename): New variable filename, initialize it, use instead
11678 of symtab->filename refererences.
11679 (salpy_str): Make variable filename const char *. Replace
11680 symtab->filename refererences by symtab_to_filename_for_display calls.
11681 * skip.c: Include source.h and filenames.h.
11682 (skip_file_command): Remove const from the symtab variable. Replace
11683 symtab->filename refererences by symtab_to_fullname call.
11684 (function_name_is_marked_for_skip): New variables searched_for_fullname
11685 and fullname. Use them to search also with symtab's fullname.
11686 * source.c (find_source_lines): Replace symtab->filename refererences
11687 by symtab_to_filename_for_display calls.
11688 (print_source_lines_base): New variable filename, use it instead of
11689 symtab->filename. Replace symtab->filename refererences by
11690 symtab_to_filename_for_display calls.
11691 (line_info, forward_search_command): Replace symtab->filename
11692 refererences by symtab_to_filename_for_display calls.
11693 (reverse_search_command): Replace symtab->filename refererences by
11694 symtab_to_filename_for_display calls. New variable filename for it.
11695 * stack.c (frame_info): Likewise.
11696 * symmisc.c: Include source.h.
11697 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11698 (maintenance_info_symtabs): Replace symtab->filename refererences by
11699 symtab_to_filename_for_display calls.
11700 * symtab.c (iterate_over_some_symtabs): Call
11701 compare_filenames_for_search also with symtab_to_fullname.
11702 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11703 symtab->filename refererences by symtab_to_filename_for_display calls.
11704 (find_line_symtab): Replace symtab->filename refererences by
11705 symtab_to_filename_for_display calls.
11706 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11707 (print_symbol_info): Make the last parameter const char *. New
11708 variable s_filename. Use it in the function.
11709 (symtab_symbol_info): Make the last_filename variable const char *.
11710 Replace symtab->filename refererences by symtab_to_filename_for_display
11711 calls.
11712 (rbreak_command): New variable fullname. Use it. Replace
11713 symtab->filename refererence by symtab_to_filename_for_display call.
11714 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11715 (print_one_static_tracepoint_marker): Replace symtab->filename
11716 refererences by symtab_to_filename_for_display calls.
11717 * tui/tui-source.c (tui_set_source_content): New variables filename and
11718 s_filename. Replace symtab->filename refererences by this variable.
11719 Replace other symtab->filename refererences by
11720 symtab_to_filename_for_display calls.
11721
11722 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11723 Jan Kratochvil <jan.kratochvil@redhat.com>
11724
11725 Add a new variable that controls a way in which filenames are
11726 displayed.
11727 * NEWS (set filename-display): New entry.
11728 * source.c (filename_display_basename, filename_display_relative)
11729 (filename_display_absolute, filename_display_kind_names)
11730 (filename_display_string, show_filename_display_string)
11731 (symtab_to_filename_for_display): New.
11732 (_initialize_source): Added initialization of 'filename-display'
11733 variable.
11734 * source.h (symtab_to_filename_for_display): Added declaration.
11735 * stack.c (print_frame): Added new variable and calling of a new
11736 function and condition with this variable. Changed third argument of
11737 calling of a function.
11738
11739 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11740
11741 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11742 Rename field reference filename to fullname.
11743 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11744 fullname. New comment for it.
11745 * tui/tui-source.c (tui_set_source_content): Rename field reference
11746 filename to fullname. Initialize field by symtab_to_fullname now.
11747 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11748 reference filename to fullname. Use symtab_to_fullname during
11749 comparison.
11750
11751 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11752
11753 Code cleanup.
11754 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11755 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11756 filename to fullname. Rename variable this_name to this_fullname.
11757 Lowercase FILENAME_CMP call.
11758 (dw2_find_symbol_file): New comment for the returned string.
11759 (dwarf2_gdb_index_functions): Rename the function to
11760 dw2_expand_symtabs_with_fullname.
11761 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11762 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11763 fullname.
11764 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11765 * symfile.h (struct quick_symbol_functions): Rename field
11766 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11767 parameter filename to fullname. Document returned string meaning for
11768 find_symbol_file.
11769 * symtab.c (find_line_symtab): Rename the called function to
11770 expand_symtabs_with_fullname.
11771
11772 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11773
11774 Code cleanup.
11775 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11776 call of filename_cmp with compare_filenames_for_search.
11777 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11778 is_abs, unify the call of FILENAME_CMP with
11779 compare_filenames_for_search. New gdb_asserts for real_path and name.
11780 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11781 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11782 * symfile.h (struct quick_symbol_functions): Extend the comment for
11783 map_symtabs_matching_filename.
11784 * symtab.c (compare_filenames_for_search): Remove the function comment
11785 relative path requirement. Handle absolute filenames, with a comment.
11786 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11787 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11788 real_path and name. Unify the call of compare_filenames_for_search
11789 with FILENAME_CMP.
11790 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11791
11792 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11793
11794 Code cleanup.
11795 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11796 source_file references by symtab field references. Remove variables
11797 sal and fullname.
11798 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11799 (clear_command, say_where): Replace bp_location field source_file
11800 references by symtab field references.
11801 (bp_location_dtor): Remove the source_file reference.
11802 (update_static_tracepoint): Replace bp_location field source_file
11803 references by symtab field references.
11804 (breakpoint_free_objfile): New function.
11805 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11806 Replace the field source_file by field symtab, extend its comment.
11807 (breakpoint_free_objfile): New declaration.
11808 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11809 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11810 field source_file references by symtab field references.
11811
11812 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11813
11814 Replace xfullpath calls by gdb_realpath calls.
11815 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11816 function comment.
11817 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11818 Remove it from the iterate_over_some_symtabs call.
11819 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11820 Remove it from the dw2_map_expand_apply calls, remove a block handling
11821 it.
11822 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11823 Remove it from the iterate_over_some_symtabs call.
11824 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11825 Remove it from the partial_map_expand_apply calls, remove a block
11826 handling it. Drop gdb_realpath call and cleanups from the real_path
11827 handling.
11828 * source.c (openp): Drop the comment part about xfullpath. Replace
11829 xfullpath calls by gdb_realpath calls.
11830 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11831 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11832 from method map_symtabs_matching_filename and its comment.
11833 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11834 gdb_realpath call.
11835 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11836 remove it also from the function comment, remove a block handling it.
11837 Drop gdb_realpath call and cleanups from the real_path handling.
11838 (iterate_over_symtabs): Drop variable full_path and its use.
11839 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11840 * utils.c (xfullpath): Remove.
11841 * utils.h (xfullpath): Remove.
11842
11843 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11844
11845 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11846 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11847 (ALLDEPFILES): Add ppc64-tdep.c.
11848 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11849 ppc64-tdep.o to gdb_target_obs.
11850 * ppc64-tdep.h: New file.
11851 * ppc64-tdep.c: New file.
11852 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11853 ppc-linux-tdep.c to here.
11854 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11855 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11856 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11857 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11858 from ppc-linux-tdep.c to here.
11859 (ppc64_convert_from_func_ptr_addr): Rename from
11860 ppc64_linux_convert_from_func_ptr_addr to
11861 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11862 here.
11863 * rs6000-tdep.c:
11864 (read_insn): Move from ppc-linux-tdep.c to here.
11865 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11866 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11867 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11868 Removed above functions.
11869 (ppc_linux_init_abi): Adjust.
11870
11871 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11872
11873 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11874
11875 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11876
11877 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11878
11879 2013-02-01 Pedro Alves <palves@redhat.com>
11880
11881 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11882 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11883
11884 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11885
11886 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11887 files with no separate debug info.
11888 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11889 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11890 only for files with no separate debug info.
11891
11892 2013-01-31 Tom Tromey <tromey@redhat.com>
11893
11894 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
11895 change type.
11896 (struct jit_program_space_data): Rename from jit_inferior_data.
11897 Update comments.
11898 (get_jit_program_space_data): Rename from get_jit_inferior_data.
11899 Change return type. Attach data to program space.
11900 (jit_program_space_data_cleanup): Rename from
11901 jit_inferior_data_cleanup; change argument type.
11902 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
11903 change type.
11904 (jit_register_code): Update.
11905 (jit_update_inferior_cache): Remove.
11906 (jit_breakpoint_deleted): Get jit data from the location's program
11907 space.
11908 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
11909 'ps_data', change type.
11910 (jit_inferior_init, jit_breakpoint_re_set_internal)
11911 (jit_event_handler): Update.
11912 (free_objfile_data): Get data from objfile's program space.
11913 (_initialize_jit): Update.
11914
11915 2013-01-31 Tom Tromey <tromey@redhat.com>
11916
11917 PR gdb/13987:
11918 * jit.c (struct jit_inferior_data) <cached_code_address,
11919 jit_breakpoint>: New fields.
11920 (jit_breakpoint_re_set_internal): Fix logging. Only create
11921 breakpoint if cached address has changed.
11922 (jit_update_inferior_cache, jit_breakpoint_deleted): New
11923 functions.
11924 (_initialize_jit): Register breakpoint deleted observer.
11925
11926 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11927
11928 * infrun.c (handle_syscall_event): Remove unused gdbarch.
11929 (save_infcall_suspend_state): Ifdef out unused inf.
11930 (restore_infcall_suspend_state): Ifdef out unused inf.
11931 * jit.c (jit_register_code): Remove unused i, b, inf_data.
11932 (jit_frame_sniffer): Remove unused inf_data.
11933
11934 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11935
11936 * c-exp.y (classify_inner_name): Remove unused type.
11937 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
11938 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
11939 need_escape.
11940 (c_get_string): Remove unused kind.
11941 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
11942
11943 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11944
11945 * charset.c (intermediate_encoding): Remove unused i.
11946 * completer.c (signal_completer): Remove unused i.
11947 * continuations.c (discard_my_continuations_1): Remove unused
11948 continuation_ptr.
11949 * corelow.c (core_close): Remove unuseD name.
11950 (get_core_siginfo): Remove unused pid.
11951 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
11952 i, cps.
11953 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
11954 (loclist_describe_location): Remove unused first.
11955 * event-top.c (command_line_handler): Remove unused got_eof.
11956 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
11957 (resize_section_table): Remove unused old_value.
11958 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
11959 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
11960 * i386-tdep.c (i386_process_record): Remove unused rex.
11961 * infcmd.c (get_return_value): Remove unused uiout.
11962 * jv-lang.c (type_from_class): Remove unused is_array.
11963 * jv-valprint.c (java_val_print): Remove unused i.
11964 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
11965 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
11966 * m2-typeprint.c (m2_print_type): Remove unused code.
11967 * macroexp.c (get_character_constant): Remove unused body_start.
11968 (macro_stringify): Remove unused result.
11969 * objc-lang.c (find_methods): Remove unused gdbarch.
11970 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
11971 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
11972 * stack.c (print_frame_args): Remove unused summary.
11973 * thread.c (thread_apply_command): Remove unused p.
11974 * valarith.c (value_x_unop): Remove unused mangle_ptr.
11975 * valops.c (search_struct_method): Remove unused skip.
11976 * valprint.c (generic_val_print): Remove unused byte_order.
11977 * varobj.c (varobj_update): Remove unused changed.
11978 * cli/cli-cmds.c (complete_command): Remove unused next_item.
11979 (alias_command): Remove unused c.
11980 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
11981 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
11982 format.
11983 (mi_cmd_data_write_memory): Remove unused word_format.
11984 (mi_cmd_data_write_memory_bytes): Remove unused r.
11985 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
11986 p_start, p_end.
11987 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
11988 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
11989 line_width.
11990
11991 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
11992
11993 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
11994 * symtab.c (iterate_over_symtabs): Remove unused s.
11995 (find_pc_sect_symtab): Remove unused pspAce.
11996 (find_pc_sect_line): Remove unused alt_symtab.
11997 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
11998 (completion_list_add_name): Remove unused newsize.
11999
12000 2013-01-31 Tom Tromey <tromey@redhat.com>
12001
12002 PR c++/14998:
12003 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12004 TYPE_CODE_FUNC.
12005
12006 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12007
12008 * target.c (target_read_string): Remove unused origlen.
12009
12010 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12011
12012 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12013 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12014 * ax-general.c (ax_print): Remove unused is_float.
12015 * blockframe.c (block_innermost_frame): Remove unused start, end.
12016 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12017
12018 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12019
12020 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12021 (svr4_read_so_list): Remove unused lmo.
12022 * solib-target.c (solib_target_relocate_section_addresses): Remove
12023 unused flags.
12024
12025 2013-01-30 Tom Tromey <tromey@redhat.com>
12026
12027 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12028
12029 2013-01-30 Tom Tromey <tromey@redhat.com>
12030
12031 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12032 * utils.c (gnu_debuglink_crc32): Remove.
12033 * utils.h (gnu_debuglink_crc32): Don't declare.
12034
12035 2013-01-30 Tom Tromey <tromey@redhat.com>
12036
12037 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12038 (read_structure_type, read_enumeration_type): Remove cast.
12039
12040 2013-01-30 Tom Tromey <tromey@redhat.com>
12041
12042 * dwarf2read.c (read_namespace_type): Remove cast.
12043 (read_typedef): Likewise.
12044
12045 2013-01-29 Tom Tromey <tromey@redhat.com>
12046
12047 * dwarf2read.c (free_dwo_file): Remove assert.
12048
12049 2013-01-29 Tom Tromey <tromey@redhat.com>
12050
12051 * value.c (deprecated_set_value_modifiable): Remove.
12052 * value.h (deprecated_set_value_modifiable): Remove.
12053
12054 2013-01-28 Doug Evans <dje@google.com>
12055
12056 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12057 to addresses from dwo files.
12058
12059 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12060
12061 * valops.c (find_overload_match): Remove unused argument 'lax'.
12062 * value.h: Remove unused argument 'lax' from the declaration of
12063 find_overload_match.
12064 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12065 to find_overload_match.
12066 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12067 argument to find_overload_match.
12068
12069 2013-01-25 Tom Tromey <tromey@redhat.com>
12070
12071 * dwarf2read.c (processing_has_namespace_info): Remove.
12072 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12073 (process_die, read_func_scope, dwarf2_start_symtab)
12074 (new_symbol_full): Update.
12075
12076 2013-01-25 Tom Tromey <tromey@redhat.com>
12077
12078 * cp-namespace.c (cp_set_block_scope): Remove.
12079 * cp-support.h (cp_set_block_scope): Remove.
12080 * dbxread.c: Include block.h.
12081 (cp_set_block_scope): New function.
12082 (process_one_symbol): Update.
12083 * dwarf2read.c (read_func_scope): Use block_set_scope.
12084
12085 2013-01-25 Pedro Alves <palves@redhat.com>
12086
12087 * remote.c (add_current_inferior_and_thread): Tweak comment.
12088
12089 2013-01-25 Tom Tromey <tromey@redhat.com>
12090
12091 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12092 (cp_add_using_directive): Add 'copy_names' argument.
12093 * cp-support.h (cp_add_using_directive): Update.
12094 (struct using_direct) <import_src, import_dest, alias,
12095 declaration>: Now const.
12096 * dwarf2read.c (read_import_statement): Use obconcat.
12097 Don't copy names passed to cp_add_using_directive.
12098
12099 2013-01-25 Tom Tromey <tromey@redhat.com>
12100
12101 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12102
12103 2013-01-25 Pedro Alves <palves@redhat.com>
12104
12105 * remote.c (stop_reply_extract_thread): New.
12106 (add_current_inferior_and_thread): New parameter 'wait_status'.
12107 Handle it.
12108 (remote_start_remote): Pass wait status to
12109 add_current_inferior_and_thread.
12110 (extended_remote_run): Update comment.
12111 (extended_remote_create_inferior_1): Pass wait status to
12112 add_current_inferior_and_thread.
12113
12114 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12115 Ulrich Weigand <uweigand@de.ibm.com>
12116
12117 * valarith.c (value_vector_widen): New function for replicating a
12118 scalar into a vector.
12119 (value_binop): Use value_vector_widen to widen scalar to vector
12120 rather than casting, this better matches gcc C behaviour.
12121 * valops.c (value_casst): Update logic for casting between vector
12122 types, and for casting from scalar to vector, try to match gcc C
12123 behaviour.
12124 * value.h (value_vector_widen): Declare.
12125 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12126 function, handle special case for casting scalar to vector.
12127 (opencl_relop): Use opencl_value_cast.
12128 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12129 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12130 in order to use opencl_value_cast.
12131
12132 2013-01-25 Yao Qi <yao@codesourcery.com>
12133
12134 * event-loop.c: Include "queue.h".
12135 (gdb_event_p): New typedef.
12136 (DECLARE_QUEUE_P): Use.
12137 (DEFINE_QUEUE_P): Use.
12138 (async_queue_event): Remove.
12139 (gdb_event_xfree): New.
12140 (initialize_event_loop): New.
12141 (process_event): Use QUEUE macros.
12142 (event_queue): Remove.
12143 (gdb_wait_for_event): Caller update.
12144 (check_async_event_handlers): Likewise.
12145 (poll_timers): Likewise.
12146 * event-loop.h (initialize_event_loop): Declare.
12147 * event-loop.c (gdb_event_xfree): New.
12148 * top.c (gdb_init): Call initialize_event_loop.
12149
12150 2013-01-25 Yao Qi <yao@codesourcery.com>
12151
12152 * event-loop.c (async_queue_event): Remove one parameter
12153 'position'. Remove code handling 'position' == TAIL.
12154 (gdb_wait_for_event): Caller update.
12155 (check_async_event_handlers): Caller update.
12156 (poll_timers): Caller update.
12157 * event-loop.h (enum queue_position): Remove.
12158
12159 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12160
12161 * MAINTAINERS: Update my email.
12162
12163 2013-01-25 Yao Qi <yao@codesourcery.com>
12164
12165 * main.c (print_gdb_help): Remove "--epoch" from the help
12166 message.
12167
12168 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12169
12170 * symtab.c (skip_prologue_using_sal): Consider a file
12171 change the same as an increased line number
12172
12173 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12174
12175 * MAINTAINERS (Write After Approval): Add myself to the list.
12176
12177 2013-01-24 Tom Tromey <tromey@redhat.com>
12178
12179 * ada-lang.h (ada_decode_symbol): Make return type const.
12180 * ada-lang.c (ada_decode_symbol): Likewise.
12181
12182 2013-01-23 Doug Evans <dje@google.com>
12183
12184 * linespec.c (find_linespec_symbols): Make static.
12185
12186 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12187
12188 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12189 type on float conversion for complex type.
12190
12191 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12192
12193 Add a new class gdb.Architecture which exposes GDB's
12194 internal representation of architecture via GDB Python API.
12195 * Makefile.in: Add entries corresponding to the new file
12196 python/py-arch.c.
12197 * NEWS (Python Scripting): Add entries for the new class
12198 gdb.Architecture and the new method gdb.Frame.architecture.
12199 * python/py-arch.c: Implement gdb.Architecture class.
12200 * python/py-frame.c (frapy_arch): Implement the method
12201 gdb.Frame.architecture().
12202 (frame_object_methods): Add 'architecture' to the method table.
12203 * python/python-internal.h: Add declarations of new utility
12204 functions.
12205 * python/python.c (_initialize_python): Initialize
12206 gdb.Architecture class.
12207
12208 2013-01-23 Doug Evans <dje@google.com>
12209
12210 Work around binutils/15021.
12211 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12212 type_unit_group out of union s. All uses updated.
12213 (read_index_from_section): Watch for index version 8.
12214 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12215 an imported symtab.
12216 (write_psymtabs_to_index): Increment version number to 8.
12217
12218 2013-01-22 Pedro Alves <palves@redhat.com>
12219
12220 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12221 user-visible.
12222
12223 2013-01-22 Pedro Alves <palves@redhat.com>
12224
12225 * annotate.c (annotate_breakpoints_changed): Rename to ...
12226 (annotate_breakpoints_invalid): ... this. Make static.
12227 (breakpoint_changed): Adjust.
12228 (_initialize_annotate): Always install the observers. Install a
12229 "breakpoint_created" observer.
12230 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12231 * breakpoint.c (set_breakpoint_condition)
12232 (breakpoint_set_commands, do_map_commands_command)
12233 (init_raw_breakpoint, clear_command, set_ignore_count)
12234 (enable_breakpoint_disp): No longer call
12235 annotate_breakpoints_changed.
12236
12237 2013-01-22 Pedro Alves <palves@redhat.com>
12238
12239 * annotate.c: Include "inferior.h".
12240 (frames_invalid_emitted)
12241 (breakpoints_invalid_emitted): New globals.
12242 (async_background_execution_p): New function.
12243 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12244 emitting the annotation if it has already been emitted.
12245 (annotate_display_prompt): New function.
12246 * annotate.h (annotate_display_prompt): New declaration.
12247 * event-top.c: Include annotate.h.
12248 (display_gdb_prompt): Call annotate_display_prompt.
12249
12250 2013-01-22 Pedro Alves <palves@redhat.com>
12251
12252 * annotate.c (ignore_count_changed): Delete.
12253 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12254 (annotate_ignore_count_change): Delete.
12255 (annotate_stopped): Don't emit a delayed breakpoints-changed
12256 annotation.
12257 * annotate.h (annotate_ignore_count_change): Delete.
12258 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12259 annotate_ignore_count_change.
12260
12261 2013-01-22 Tom Tromey <tromey@redhat.com>
12262
12263 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12264 require_rvalue for a register location.
12265
12266 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12267
12268 * breakpoint.c (print_one_breakpoint_location): Add MI
12269 field 'thread-groups' when printing a breakpoint.
12270 (output_thread_groups): New function.
12271
12272 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12273
12274 * python/lib/gdb/commands/explore.py
12275 (CompoundExplorer.explore_expr): Correct the name of a method
12276 being invoked.
12277 (ExploreTypeCommand.invoke): Add a missing 'return'.
12278
12279 2013-01-21 Tom Tromey <tromey@redhat.com>
12280
12281 * gdb_obstack.h (obconcat): Move declaration here, from...
12282 * symfile.h (obconcat): ... here.
12283 * gdb_obstack.c: New file.
12284 (obconcat): Move from...
12285 * symfile.c (obconcat): ... here.
12286 * Makefile.in (SFILES): Add gdb_obstack.c.
12287 (COMMON_OBS): Add gdb_obstack.o.
12288
12289 2013-01-21 Tom Tromey <tromey@redhat.com>
12290
12291 * symfile.h (obsavestring): Don't declare.
12292 * symfile.c (obsavestring): Remove.
12293 * ada-exp.y: Use obstack_copy0, not obsavestring.
12294 * ada-lang.c: Use obstack_copy0, not obsavestring.
12295 * coffread.c: Use obstack_copy0, not obsavestring.
12296 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12297 * dbxread.c: Use obstack_copy0, not obsavestring.
12298 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12299 * jit.c: Use obstack_copy0, not obsavestring.
12300 * mdebugread.c: Use obstack_copy0, not obsavestring.
12301 * psymtab.c: Use obstack_copy0, not obsavestring.
12302 * stabsread.c: Use obstack_copy0, not obsavestring.
12303 * xcoffread.c: Use obstack_copy0, not obsavestring.
12304
12305 2013-01-21 Tom Tromey <tromey@redhat.com>
12306
12307 * dwarf2read.c (fixup_go_packaging): Save package name
12308 on objfile obstack.
12309 * gdbtypes.c (init_type): Don't copy name.
12310
12311 2013-01-21 Tom Tromey <tromey@redhat.com>
12312
12313 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12314 const.
12315 (struct attribute) <u.str>: Now const.
12316 (struct fnfieldlist) <name>: Now const.
12317 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12318 (partial_die_parent_scope): Make return type const.
12319 (partial_die_full_name, add_partial_symbol): Update.
12320 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12321 'name' const.
12322 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12323 (read_file_scope, read_func_scope, dwarf2_add_field)
12324 (dwarf2_add_member_fn, read_structure_type)
12325 (process_enumeration_scope, read_array_type, read_module_type)
12326 (read_base_type, read_subrange_type): Update.
12327 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12328 (new_symbol_full, guess_full_die_structure_name): Update.
12329 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12330 (dwarf2_name): Return const type.
12331 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12332 const.
12333
12334 2013-01-21 Tom Tromey <tromey@redhat.com>
12335
12336 * gdbtypes.c (init_type): Make 'name' const.
12337 * gdbtypes.h (init_type): Update.
12338
12339 2013-01-21 Tom Tromey <tromey@redhat.com>
12340
12341 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12342 (start_symtab): Make 'name' and 'dirname' const. Use
12343 set_last_source_file.
12344 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12345 (last_source_file): Define. Now static.
12346 (set_last_source_file, get_last_source_file): New functions.
12347 * buildsym.h (last_source_file): Don't declare.
12348 (start_symtab): Update.
12349 (set_last_source_file, get_last_source_file): Declare.
12350 * coffread.c (complete_symtab): Use set_last_source_file.
12351 (coff_end_symtab): Likewise.
12352 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12353 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12354 set_last_source_file.
12355 (process_one_symbol): Use get_last_source_file.
12356 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12357 (psymtab_to_symtab_1): Use get_last_source_file.
12358 * xcoffread.c (process_linenos): Use get_last_source_file.
12359 (complete_symtab): Use set_last_source_file.
12360 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12361 (scan_xcoff_symtab): Use set_last_source_file.
12362
12363 2013-01-21 Tom Tromey <tromey@redhat.com>
12364
12365 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12366 (symbol_set_names): Remove casts. Handle field const-ness.
12367
12368 2013-01-21 Tom Tromey <tromey@redhat.com>
12369
12370 * dwarf2read.c (new_symbol_full): Remove cast.
12371 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12372 * symtab.h (symbol_set_demangled_name): Update.
12373
12374 2013-01-21 Tom Tromey <tromey@redhat.com>
12375
12376 * main.c (captured_main): Call bfd_init.
12377
12378 2013-01-21 Tom Tromey <tromey@redhat.com>
12379
12380 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12381 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12382 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12383 * NEWS: Update.
12384
12385 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12386
12387 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12388
12389 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12390
12391 Fix gdb.fortran/common-block.exp crash in PIE mode.
12392 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12393 LOC_COMMON_BLOCK.
12394 * f-valprint.c (info_common_command_for_block): Expect
12395 LOC_COMMON_BLOCK in gdb_assert.
12396 * symtab.h (struct general_symbol_info): Update comment for the
12397 common_block member.
12398 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12399 (enum address_class): New member LOC_COMMON_BLOCK.
12400
12401 2013-01-18 David Blaikie <dblaikie@gmail.com>
12402
12403 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12404
12405 2013-01-18 Tom Tromey <tromey@redhat.com>
12406
12407 PR c++/14999:
12408 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12409 Call require_rvalue.
12410
12411 2013-01-18 Yao Qi <yao@codesourcery.com>
12412
12413 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12414 (dbx_read_symtab): New declaration.
12415 (dbx_psymtab_to_symtab): Delete.
12416 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12417 Rename parameter PST to SELF. Exchanged two parameters.
12418 (start_psymtab): Caller update.
12419 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12420 (dwarf2_read_symtab): New declaration.
12421 (dwarf2_psymtab_to_symtab): Delete.
12422 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12423 Rename parameter PST to SELF. Exchanged two parameters.
12424 (create_partial_symtab): Caller update.
12425 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12426 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12427 Rename parameter PST to SELF. Exchanged two parameters.
12428 (parse_partial_symbols, new_psymtab): Caller update.
12429 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12430 two parameters.
12431 * psymtab.c (psymtab_to_symtab): Caller update.
12432 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12433 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12434 Rename parameter PST to SELF. Exchanged two parameters.
12435 (xcoff_start_psymtab): Caller update.
12436
12437 2013-01-18 Yao Qi <yao@codesourcery.com>
12438
12439 * infrun.c (proceed): Rename local variable 'oneproc' to
12440 'force_step'.
12441
12442 2013-01-17 Doug Evans <dje@google.com>
12443
12444 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12445 (dw2_build_type_unit_groups): Delete. All uses updated.
12446
12447 * symtab.h (struct symbol_search): Add comment.
12448
12449 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12450
12451 * symtab.c (compare_filenames_for_search): New comment for
12452 HAS_DRIVE_SPEC.
12453
12454 2013-01-17 Tom Tromey <tromey@redhat.com>
12455
12456 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12457
12458 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12459
12460 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12461 initialize it by existing make_cleanup. Call new do_cleanups.
12462
12463 2013-01-17 Tom Tromey <tromey@redhat.com>
12464
12465 * cp-abi.c (cp_abi_completer): New function.
12466 (_initialize_cp_abi): Set completer for "set cp-abi".
12467
12468 2013-01-17 Tom Tromey <tromey@redhat.com>
12469
12470 * mem-break.c: Remove obsolete comment.
12471 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12472
12473 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12474
12475 * jit.c (jit_reader_load_command): Interpret the jit reader name
12476 as an absolute path if it begins with a forward slash.
12477
12478 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12479
12480 PR gdb/14550
12481
12482 * jit.c (finalize_symtab): Ensure that only the global block has a
12483 NULL superblock.
12484
12485 2013-01-17 Pedro Alves <palves@redhat.com>
12486
12487 * acinclude.m4: Include ../config/plugins.m4,
12488 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12489 * Makefile.in (aclocal_m4_deps): Update.
12490 * aclocal.m4: Renegerate.
12491
12492 2013-01-16 Doug Evans <dje@google.com>
12493
12494 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12495
12496 2013-01-16 Pedro Alves <palves@redhat.com>
12497 Tom Tromey <tromey@redhat.com>
12498
12499 PR cli/7221:
12500 * NEWS: Add "catch signal".
12501 * breakpoint.c (base_breakpoint_ops): No longer static.
12502 (bpstat_explains_signal): New function.
12503 (init_catchpoint): No longer static.
12504 (base_breakpoint_explains_signal): New function.
12505 (base_breakpoint_ops): Initialize new field.
12506 * breakpoint.h (enum bpstat_signal_value): New.
12507 (struct breakpoint_ops) <explains_signal>: New field.
12508 (bpstat_explains_signal): Remove macro, declare as function.
12509 (base_breakpoint_ops, init_catchpoint): Declare.
12510 * break-catch-sig.c: New file.
12511 * inferior.h (signal_catch_update): Declare.
12512 * infrun.c (signal_catch): New global.
12513 (handle_syscall_event): Update for change to
12514 bpstat_explains_signal.
12515 (handle_inferior_event): Likewise. Always handle random signals
12516 via bpstats.
12517 (signal_cache_update): Check signal_catch.
12518 (signal_catch_update): New function.
12519 (_initialize_infrun): Initialize signal_catch.
12520 * Makefile.in (SFILES): Add break-catch-sig.c.
12521 (COMMON_OBS): Add break-catch-sig.o.
12522
12523 2013-01-16 Tom Tromey <tromey@redhat.com>
12524
12525 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12526 (print_one_catch_solib, print_one_catch_syscall)
12527 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12528 "catch-type".
12529
12530 2013-01-16 Yao Qi <yao@codesourcery.com>
12531
12532 * printcmd.c (current_display_number): Make it static.
12533
12534 2013-01-16 Yao Qi <yao@codesourcery.com>
12535
12536 * infcmd.c (step_once): Don't check '!single_inst' as it was
12537 checked before.
12538
12539 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12540
12541 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12542
12543 2013-01-14 Tom Tromey <tromey@redhat.com>
12544
12545 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12546 set command.
12547 * command.h (add_setshow_string_noescape_cmd): Update.
12548 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12549 (complete_set_gnutarget): New function.
12550 (_initialize_core): Set the "set gnutarget" completer.
12551
12552 2013-01-14 Tom Tromey <tromey@redhat.com>
12553
12554 PR symtab/14442:
12555 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12556 (c_type_print_modifier): Likewise.
12557 * dwarf2read.c (read_tag_restrict_type): New function.
12558 (read_type_die_1): Handle DW_TAG_restrict_type.
12559 * gdbtypes.c (make_restrict_type): New function.
12560 (recursive_dump_type): Handle TYPE_RESTRICT.
12561 * gdbtypes.h (enum type_flag_values): Renumber.
12562 (enum type_instance_flag_value): Add
12563 TYPE_INSTANCE_FLAG_RESTRICT.
12564 (TYPE_RESTRICT): New macro.
12565 (make_restrict_type): Declare.
12566
12567 2013-01-14 Tom Tromey <tromey@redhat.com>
12568
12569 PR symtab/14931:
12570 * psymtab.c (struct psymtab_state): New.
12571 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12572 functions.
12573 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12574 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12575
12576 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12577 Pedro Alves <palves@redhat.com>
12578
12579 PR remote/14786
12580
12581 * remote.c (remote_threads_info): Make a copy of the reply from
12582 qfThreadInfo and use that instead of rs->buf.
12583
12584 2013-01-14 Yao Qi <yao@codesourcery.com>
12585
12586 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12587 (dbx_psymtab_to_symtab): Likewise.
12588 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12589 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12591
12592 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12593
12594 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12595 make_cleanup_restore_current_language. Call set_language. Move
12596 OLD_CHAIN and INNER_CHAIN cleanups.
12597 * utils.c (do_restore_current_language)
12598 (make_cleanup_restore_current_language): New functions.
12599 * utils.h (make_cleanup_restore_current_language): New declaration.
12600
12601 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12602
12603 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12604 non-existing files.
12605
12606 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12607 non-existing files if FILENAME is already absolute.
12608
12609 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12610
12611 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12612 fputs_filtered. Append trailing newline.
12613
12614 2013-01-11 Yao Qi <yao@codesourcery.com>
12615 Stan Shebs <stan@codesourcery.com>
12616
12617 * psymtab.c (init_psymbol_list): Clarify the comment.
12618
12619 2013-01-11 Yao Qi <yao@codesourcery.com>
12620
12621 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12622 (update_dprintf_command_list): Assert that 'printf_line' is
12623 non-null. Remove condition check.
12624
12625 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12626
12627 Code cleanup.
12628 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12629 type const char *.
12630 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12631 const char *.
12632 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12633
12634 2013-01-09 Anthony Green <green@moxielogic.com>
12635
12636 * cp-abi.c (cplus_print_vtable): Don't return value from void
12637 function.
12638 * ada-lang.c (re_set_catch_assert): Ditto.
12639
12640 2013-01-09 Doug Evans <dje@google.com>
12641
12642 * symfile.h (quick_symbol_functions): Delete member
12643 pre_expand_symtabs_matching. All uses removed.
12644 * dwarf2read.c (dw2_lookup_symbol): Implement.
12645 (dw2_do_expand_symtabs_matching): Delete.
12646 (dw2_pre_expand_symtabs_matching): Delete.
12647 (struct dw2_symtab_iterator): New type.
12648 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12649 (dw2_expand_symtabs_for_function): Rewrite.
12650 (dwarf2_gdb_index_functions): Update.
12651 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12652 (psym_functions): Update.
12653
12654 2013-01-09 Tom Tromey <tromey@redhat.com>
12655
12656 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12657 * configure: Rebuild.
12658 * configure.ac: Add somread.o to the build if BFD has SOM
12659 support.
12660 * somread.c: Include som/aout.h, not syms.h.
12661 (som_symtab_read): Use som_external_symbol_dictionary_record.
12662 Unpack records manually.
12663 (_initialize_somread): Declare.
12664
12665 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12666
12667 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12668 Cast return_address to 64bits.
12669
12670 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12671
12672 * printcmd.c: Remove define of function output_command.
12673 * tracepoint.c: Remove extern of function output_command.
12674 * valprint.h: (output_command): New extern.
12675
12676 2013-01-07 Tom Tromey <tromey@redhat.com>
12677
12678 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12679 Remove.
12680 (objc_language_defn): Use c_printchar, c_printstr,
12681 c_emit_char.
12682
12683 2013-01-07 Tom Tromey <tromey@redhat.com>
12684
12685 PR cli/7719:
12686 * NEWS: Update.
12687 * ada-valprint.c (printstr, print_field_values): Remove
12688 "inspect_it" code.
12689 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12690 code.
12691 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12692 code.
12693 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12694 * main.c (captured_main): Remove "epoch" argument.
12695 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12696 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12697 * p-valprint.c (pascal_object_print_value_fields): Remove
12698 "inspect_it" code.
12699 * printcmd.c (print_command_1): Remove 'inspect' argument.
12700 (print_command, call_command): Update.
12701 (inspect_command): Remove.
12702 (_initialize_printcmd): Make "inspect" an alias for "print".
12703 * top.c (epoch_interface): Remove.
12704 * top.h (epoch_interface): Remove.
12705 * valprint.c (user_print_options): Update.
12706 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12707 * valprint.h (struct value_print_options) <inspect_it>: Remove
12708 field.
12709
12710 2013-01-04 Tom Tromey <tromey@redhat.com>
12711
12712 * valprint.h (read_string): Add 'extern'.
12713
12714 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12715
12716 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12717 used to decide whether to define darwin_read_dyld_info or not.
12718
12719 2013-01-03 Pierre Muller <muller@sourceware.org>
12720
12721 * main.c (relocate_gdb_directory): Avoid calling stat function
12722 if DIR is empty.
12723
12724 2013-01-03 Yao Qi <yao@codesourcery.com>
12725
12726 * psymtab.c (fixup_psymbol_section): Update declaration.
12727 (fixup_psymbol_section): Remove code returning value.
12728
12729 2013-01-03 Yao Qi <yao@codesourcery.com>
12730
12731 * symtab.h: Remove some out of date comments.
12732 (enum exception_event_kind): Move it ...
12733 * breakpoint.c: ... here.
12734
12735 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12736
12737 PR gdb/14405
12738 * darwin-nat.c (darwin_read_dyld_info): Only build if
12739 TASK_DYLD_INFO_COUNT is defined.
12740 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12741 TASK_DYLD_INFO_COUNT is defined.
12742
12743 2013-01-02 Tom Tromey <tromey@redhat.com>
12744
12745 * symfile.h (struct ecoff_debug_hack): Remove.
12746 * objfiles.c: Don't include mdebugread.h.
12747
12748 2013-01-02 Tom Tromey <tromey@redhat.com>
12749
12750 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12751 * configure.ac: Check for Mach-O support in BFD. Update
12752 CONFIG_OBS.
12753 * configure: Rebuild.
12754
12755 2013-01-02 Tom Tromey <tromey@redhat.com>
12756
12757 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12758 * configure.ac: Use GDB_AC_CHECK_BFD.
12759 * configure: Rebuild.
12760
12761 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12762
12763 * MAINTAINERS: Update my email.
12764
12765 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12766
12767 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12768
12769 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12770
12771 * rs6000-nat.c (bss_data_overlap): New function.
12772 (vmap_symtab): Use it to adjust the .bss section's offset.
12773
12774 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12775
12776 Update year range in copyright notice of all files.
12777
12778 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12779
12780 * top.c (print_gdb_version): Update copyright year.
12781
12782 For older changes see ChangeLog-2012.
12783 \f
12784 Local Variables:
12785 mode: change-log
12786 left-margin: 8
12787 fill-column: 74
12788 version-control: never
12789 coding: utf-8
12790 End:
This page took 0.309535 seconds and 3 git commands to generate.