Record objfile->original_name as an absolute path
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-02 Doug Evans <dje@google.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3
4 * objfiles.c (allocate_objfile): Save original_name as an absolute
5 path.
6 * objfiles.h (struct objfile): Expand comment on original_name.
7 * source.c (openp): Call gdb_abspath.
8 * utils.c (gdb_abspath): New function.
9 * utils.h (gdb_abspath): Declare.
10
11 2013-12-02 Pedro Alves <palves@redhat.com>
12
13 * dcache.c (dcache_read_line): Use target_read_raw_memory.
14 * target.c (target_read_raw_memory): New function.
15 (target_read_stack, target_write_memory, target_write_raw_memory):
16 Update comment.
17 (target_read_code): Add comment.
18 * target.h (target_read_raw_memory): Declare.
19
20 2013-12-02 Pedro Alves <palves@redhat.com>
21
22 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
23 unconditionally.
24
25 2013-12-02 Pedro Alves <pedro@codesourcery.com>
26 Maciej W. Rozycki <macro@codesourcery.com>
27
28 * remote.c (putpkt_for_catch_errors): Remove function.
29 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
30 gracefully.
31
32 2013-12-02 Pedro Alves <palves@redhat.com>
33
34 PR remote/15974
35 * remote-notif.c (handle_notification): Return early if no
36 notification is found.
37
38 2013-12-02 Joel Brobecker <brobecker@adacore.com>
39
40 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
41 preprocessor check.
42
43 2013-12-02 Joel Brobecker <brobecker@adacore.com>
44
45 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
46
47 2013-12-02 Joel Brobecker <brobecker@adacore.com>
48
49 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
50 * ctf.c (ctf_start): Remove obsolete comment.
51
52 2013-12-02 Joel Brobecker <brobecker@adacore.com>
53
54 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
55
56 2013-11-30 Doug Evans <xdje42@gmail.com>
57
58 * auto-load.h (script_language): New members name, auto_load_enabled.
59 Add missing comments on struct members.
60 (auto_load_objfile_script): Delete.
61 * auto-load.c: #include "cli/cli-cmds.h".
62 (auto_load_gdb_scripts_enabled): New function.
63 (script_language_gdb): Update, add new members.
64 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
65 and call to maybe_add_script moved to caller.
66 (auto_load_objfile_script_1): Auto-load safe-checking and
67 call to maybe_add_script moved here.
68 (auto_load_objfile_script): Make static. Early exit if support for
69 scripting language hasn't been compiled in, or auto-loading has been
70 disabled.
71 (source_section_scripts): Argument "source_name" renamed to
72 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
73 with section_name. Skip loading script if support for scripting
74 language hasn't been compiled in, or auto-loading has been disabled.
75 Call language->source_script_for_objfile instead of calling
76 source_python_script_for_objfile directly.
77 (load_auto_scripts_for_objfile): Update.
78 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
79 (gdbpy_load_auto_script_for_objfile): Delete.
80 (auto_load_python_scripts_enabled): New function.
81 (script_language_python): Update, add new members.
82 (gdbpy_script_language_defn): New function.
83 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
84 (gdbpy_script_language_defn): Declare.
85
86 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
87 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
88 (source_section_scripts): Moved here from py-auto-load.c.
89 (auto_load_section_scripts): Ditto.
90 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
91 auto-load.c, renamed AUTO_SECTION_NAME.
92 (source_section_scripts, auto_load_section_scripts): Moved to
93 auto-load.c.
94
95 2013-11-30 Yao Qi <yao@codesourcery.com>
96
97 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
98
99 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
100
101 * gdbarch.sh: Remove include of "gdb_string.h", replace by
102 <string.h>.
103
104 2013-11-29 Doug Evans <xdje42@gmail.com>
105
106 * python/py-auto-load.c (source_section_scripts): Move comment to
107 more relevant location.
108
109 Whitespace cleanup.
110 * python/py-breakpoint.c: Remove trailing whitespace.
111 * python/py-cmd.c: Ditto.
112 * python/py-evts.c: Ditto.
113 * python/py-finishbreakpoint.c: Ditto.
114 * python/py-frame.c: Ditto.
115 * python/py-function.c: Ditto.
116 * python/py-inferior.c: Ditto.
117 * python/py-infthread.c: Ditto.
118 * python/py-param.c: Ditto.
119 * python/py-prettyprint.c: Ditto.
120 * python/py-symbol.c: Ditto.
121 * python/py-type.c: Ditto.
122 * python/py-utils.c: Ditto.
123 * python/py-value.c: Ditto.
124 * python/python-internal.h: Ditto.
125 * python/python.c: Ditto.
126
127 2013-11-29 Pedro Alves <palves@redhat.com>
128
129 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
130
131 2013-11-29 Pedro Alves <palves@redhat.com>
132
133 * breakpoint.c (build_target_condition_list): Release previous
134 conditions.
135 (build_target_command_list): Release previous commands.
136 (bp_location_dtor): Release target conditions and commands.
137 * remote.c (remote_add_target_side_condition): Don't release
138 conditions.
139 (remote_add_target_side_commands): Don't release commands.
140
141 2013-11-29 Yao Qi <yao@codesourcery.com>
142 Pedro Alves <palves@redhat.com>
143
144 * dcache.c (dcache_read_line): Use current_target.beneath
145 instead of &current_target.
146 * target.c (memory_xfer_partial_1): Factor code out to ...
147 (raw_memory_xfer_partial): ... it. New function.
148 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
149 is TARGET_OBJECT_RAW_MEMORY.
150
151 2013-11-28 Doug Evans <xdje42@gmail.com>
152
153 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
154 breakpoint_object. All uses updated.
155 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
156 breakpoint_object. All uses updated.
157 * python.c (*): All uses of breakpoint_object updated.
158 * python.h (*): All uses of breakpoint_object updated.
159 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
160 * python/py-finishbreakpoint.c (*): Ditto.
161
162 2013-11-28 Doug Evans <xdje42@gmail.com>
163
164 * configure.ac: Add comments delineating libpython and libmcheck.
165 * configure: Regenerate.
166
167 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
168 Pedro Alves <palves@redhat.com>
169
170 * valprint.c (value_check_printable): If the value is entirely
171 unavailable, print a single "<unavailable>" instead of printing
172 all subfields.
173
174 2013-11-28 Pedro Alves <palves@redhat.com>
175
176 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
177 Add "set debug frame" output.
178 (frame_stop_reason_symbol_string): New function.
179
180 2013-11-28 Pedro Alves <palves@redhat.com>
181
182 * frame-unwind.c (default_frame_unwind_stop_reason): Return
183 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
184 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
185
186 2013-11-28 Pedro Alves <palves@redhat.com>
187
188 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
189 set the unwind stop reason to UNWIND_OUTERMOST, not
190 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
191
192 2013-11-28 Pedro Alves <palves@redhat.com>
193
194 * frame.c (frame_unwind_register): Say the register was "not
195 saved" instead of "optimized out".
196
197 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
198
199 PR 16152
200 * configure: Rebuild.
201 * configure.ac: Tighten cygwin detection check.
202
203 2013-11-27 Pedro Alves <palves@redhat.com>
204
205 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
206 register in the previous frame's arch.
207
208 2013-11-27 Pedro Alves <palves@redhat.com>
209
210 * frame-unwind.c (frame_unwind_got_optimized): Return
211 an lval_register value instead of a not_lval value.
212
213 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
214
215 * frame.c: Include "valprint.h".
216 (frame_unwind_register_value): Use value_optimized_out.
217 * value.c (value_fetch_lazy): Likewise.
218
219 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
220
221 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
222
223 2013-11-26 Tom Tromey <tromey@redhat.com>
224
225 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
226 2013-11-22.
227
228 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
229
230 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
231 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
232 (HAS_MPX): New macro.
233 (HAS_AVX): New macro.
234 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
235
236 2013-11-25 Keith Seitz <keiths@redhat.com>
237
238 PR c++/14819
239 * c-exp.y (classify_inner_name): If no matching symbol was
240 found, try looking up the token as a base class.
241 Likewise if a constructor was found.
242 * cp-namespace.c (find_type_baseclass_by_name): New function.
243 * cp-support.h (find_type_baseclass_by_name): Declare.
244 * valops.c (value_struct_elt_for_reference): If we get
245 a non-static field, try to get a value based on the
246 current instance, if any.
247
248 2013-11-24 Yao Qi <yao@codesourcery.com>
249
250 * disasm.c (dis_asm_read_memory): Call target_read_code
251 instead of target_read_memory.
252
253 2013-11-24 Yao Qi <yao@codesourcery.com>
254
255 * NEWS: Add note on new "set code-cache" option.
256 * target-dcache.c (code_cache_enabled_1): New variable.
257 (code_cache_enabled): New variable.
258 (show_code_cache, set_code_cache): New function.
259 (code_cache_enabled_p): New function.
260 (_initialize_target_dcache): Register command.
261 * target-dcache.h (code_cache_enabled_p): Declare.
262 * target.c (memory_xfer_partial_1):Handle
263 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
264 (target_read_code): New function.
265 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
266 New.
267 (target_read_code): Declare.
268
269 2013-11-24 Yao Qi <yao@codesourcery.com>
270
271 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
272 (stack_cache_enabled_1): ... this. New variable.
273 (stack_cache_enabled_p): Rename to ...
274 (stack_cache_enabled): ... this. New variable.
275 (set_stack_cache_enabled_p): Rename to ...
276 (set_stack_cache): ... this. Update caller.
277 (show_stack_cache_enabled_p): Rename to ...
278 (show_stack_cache): ... this. Update caller.
279 (stack_cache_enabled): Rename to ...
280 (stack_cache_enabled_p): ... this. Update caller.
281 (_initialize_target_dcache): Replace "data cache" with
282 "target memory cache".
283 * target-dcache.h (stack_cache_enabled): Remove declaration.
284 (stack_cache_enabled_p): Add declaration.
285
286 2013-11-23 Doug Evans <xdje42@gmail.com>
287
288 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
289 superfluous.
290
291 2013-11-23 Doug Evans <xdje42@gmail.com>
292
293 * python/py-frame.c (frapy_block): Fix error message text.
294
295 2013-11-23 Doug Evans <xdje42@gmail.com>
296
297 * cli/cli-script.c (multi_line_command_p): New function.
298 (recurse_read_control_structure, read_command_lines_1): Call it.
299 (execute_control_command): Consistently have a blank line between
300 each case.
301
302 2013-11-22 Sterling Augustine <saugustine@google.com>
303
304 PR gdb/16196:
305 * valprint.c (read_string): Set new variable fetchlen based on
306 fetchlimit and size. Use it in call to partial_memory_read.
307 Update comment.
308
309 2013-11-22 Tom Tromey <tromey@redhat.com>
310
311 PR backtrace/16155:
312 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
313 the return address column is unspecified.
314
315 2013-11-22 Tom Tromey <tromey@redhat.com>
316 Pedro Alves <palves@redhat.com>
317
318 PR backtrace/16155
319 * value.c (value_fetch_lazy): Internal error if
320 get_frame_register_value returns the same register.
321
322 2013-11-22 Pedro Alves <palves@redhat.com>
323 Tom Tromey <tromey@redhat.com>
324
325 * frame.c (frame_stash_add): Now returns whether a frame with the
326 same ID was already known.
327 (compute_frame_id): New function, factored out from get_frame_id.
328 (get_frame_id): No longer lazilly compute the frame id here.
329 (get_prev_frame_if_no_cycle): New function. Detects wider stack
330 cycles.
331 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
332 and checking for stack cycles here.
333
334 2013-11-22 Pedro Alves <palves@redhat.com>
335
336 PR 16155
337 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
338 this frame and the new previous frame, not between this frame and
339 the next frame.
340
341 2013-11-22 Pedro Alves <palves@redhat.com>
342
343 PR 16155
344 * dwarf2-frame.c (struct dwarf2_frame_cache)
345 <checked_tailcall_bottom, entry_cfa_sp_offset,
346 entry_cfa_sp_offset_p>: New fields.
347 (dwarf2_frame_cache): Adjust to use the new cache fields instead
348 of locals. Don't call dwarf2_tailcall_sniffer_first here.
349 (dwarf2_frame_prev_register): Call it here, but only once.
350
351 2013-11-21 Doug Evans <xdje42@gmail.com>
352
353 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
354 (type_equality_entry): Move here from python/py-type.c.
355 (type_equality_entry_d): Ditto.
356 (compare_maybe_null_strings, check_types_equal): Ditto.
357 (check_types_worklist, types_deeply_equal): Ditto.
358 * gdbtypes.h (types_deeply_equal): Declare.
359 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
360 (typy_richcompare): Update.
361
362 2013-11-20 Joel Brobecker <brobecker@adacore.com>
363
364 * python/py-value.c (is_intlike): Delete.
365 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
366 by use of is_integral_type.
367 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
368 by use of is_integral_type and check for TYPE_CODE_PTR.
369
370 2013-11-20 Tom Tromey <tromey@redhat.com>
371
372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
373 strerror module.
374 * gnulib/aclocal.m4: Update.
375 * gnulib/config.in: Update.
376 * gnulib/configure: Update.
377 * gnulib/import/Makefile.am: Update.
378 * gnulib/import/Makefile.in: Update.
379 * gnulib/import/errno.in.h: Remove.
380 * gnulib/import/intprops.h: Remove.
381 * gnulib/import/m4/errno_h.m4: Remove.
382 * gnulib/import/m4/gnulib-cache.m4: Update.
383 * gnulib/import/m4/gnulib-comp.m4: Update.
384 * gnulib/import/m4/strerror.m4: Remove.
385 * gnulib/import/m4/sys_socket_h.m4: Remove.
386 * gnulib/import/strerror-override.c: Remove.
387 * gnulib/import/strerror-override.h: Remove.
388 * gnulib/import/strerror.c: Remove.
389 * gnulib/update-gnulib.sh: Update.
390
391 2013-11-20 Yao Qi <yao@codesourcery.com>
392
393 * target-dcache.c (target_dcache_get_or_init): Call
394 set_address_space_data if 'dcache' is NULL.
395
396 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
397
398 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
399
400 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
401
402 * python/lib/gdb/command/bound_register.py: New file.
403 * data-directory/Makefile.in: Copy bond_register.py to the right path
404 to be initialized at gdb startup.
405
406 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
407
408 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
409 Add MPX registers.
410 (amd64_linux_read_description): Add initialization for MPX and
411 AVX independently.
412 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
413 (amd64_linux_gregset_reg_offset): Add MPX registers.
414 (amd64_linux_core_read_description): Add initialization for MPX
415 registers.
416 (_initialize_amd64_linux_tdep): Initialize MPX targets.
417 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
418 register on the list.
419 (tdesc_amd64_mpx_linux) Add new target for MPX.
420 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
421 (amd64_mpx_names): MPX register names.
422 (amd64_init_abi): Add MPX register while initializing the ABI.
423 (_initialize_amd64_tdep): Initialize MPX targets.
424 * amd64-tdep.h (amd64_regnum): Add MPX registers.
425 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
426
427 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
428
429 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
430 registers on the range of registers to be read from
431 xsave buffer.
432 (i386_linux_read_description): Add case for MPX.
433 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
434 (i386_linux_gregset_reg_offset): Add MPX registers.
435 (i386_linux_core_read_description): Initialize also MPX.
436 (_initialize_i386_linux_tdep): Add mpx initialization.
437 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
438 mpx_register_names.
439 (i386_regnum): Add MPX registers.
440 (I386_MPX_NUM_REGS): New macro.
441 (i386_bnd_regnum_p): New function.
442 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
443 number of registers to be the number of BNDSTATUS.
444 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
445 * i386-tdep.c: Include features/i386/i386-mpx.c.
446 (i386_mpx_names): Add MPX register names array.
447 (i386_bnd_names): Add bnd pseudo register names array.
448 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
449 registers.
450 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
451 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
452 registers.
453 (i386_bnd_type): New function.
454 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
455 register types.
456 (i386_pseudo_register_read_into_value): Add bnd case.
457 (i386_pseudo_register_write): Add bnd pseudo registers.
458 (i386_register_reggroup_p): Add MPX register to the group all.
459 (i386_validate_tdesc_p): Add MPX to the target description
460 validation.
461 (i386_pseudo_register_name): Add bnd pseudo registers.
462 (i386_gdbarch_init): Add MPX for architecture initialization.
463 (_initia_initialize_i386_tdep): Add mpx initialization.
464 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
465 XSAVE buffer.
466 (XSAVE_MPX_ADDR): New macro.
467 (i387_supply_xsave): Add MPX case.
468 (i387_collect_xsave): Add MPX case.
469 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
470 (I387_BNDCFGU_REGNUM): New macro.
471 (I387_NUM_MPX_REGS): New macro.
472 (I387_NUM_BND_REGS): New macro.
473 (I387_NUM_MPX_CTRL_REGS): New macro.
474 (I387_MPXEND_REGNUM): New macro.
475 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
476 (I386_XSTATE_BNDCFG): Likewise.
477 (I386_XSTATE_MPX_MASK): Likewise.
478 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
479 (I386_XSTATE_BNDREGS_SIZE): New macro.
480 (I386_XSTATE_BNDCFG_SIZE): Likewise.
481 (I386_XSTATE_SIZE): Adapt for MPX.
482 (I386_XSTATE_MAX_SIZE): Likewise.
483
484 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
485
486 * features/i386/Makefile: Adapts for using MPX registers.
487 * features/i386/32bit-mpx.xml: New file.
488 * features/i386/64bit-mpx.xml: Likewise.
489 * features/i386/amd64-mpx-linux.c: Likewise.
490 * features/i386/amd64-mpx-linux.xml: Likewise.
491 * features/i386/amd64-mpx.c: Likewise.
492 * features/i386/amd64-mpx.xml: Likewise.
493 * features/i386/i386-mpx-linux.c: Likewise.
494 * features/i386/i386-mpx-linux.xml: Likewise.
495 * features/i386/i386-mpx.c: Likewise.
496 * features/i386/i386-mpx.xml: Likewise.
497 * regformats/i386/amd64-mpx-linux.dat: New file.
498 * regformats/i386/amd64-mpx.dat: Likewise.
499 * regformats/i386/i386-mpx-linux.dat: Likewise.
500 * regformats/i386/i386-mpx.dat: Likewise.
501
502 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
503
504 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
505 Modified logic of creating a bitfield to be in sync with
506 tdesc_gdb_type.
507
508 2013-11-20 Will Newton <will.newton@linaro.org>
509
510 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
511 error message.
512
513 2013-11-20 Yao Qi <yao@codesourcery.com>
514
515 * progspace.h (struct address_space_data): Declare.
516 * target-dcache.c: Include "progspace.h".
517 (target_dache): Remove.
518 (target_dcache_aspace_key): New.
519 (target_dcache_cleanup): New function.
520 (target_dcache_init_p): Get data through
521 target_dcache_aspace_key.
522 (target_dcache_invalidate): Likewise.
523 (target_dcache_get): Likewise.
524 (target_dcache_get_or_init): Likewise.
525 (_initialize_target_dcache): Initialize
526 target_dcache_aspace_key.
527
528 2013-11-20 Yao Qi <yao@codesourcery.com>
529
530 * progspace.c (struct address_space): Update comments.
531 <REGISTRY_FIELDS>: New fields.
532 DEFINE_REGISTRY for address_space.
533 (new_address_space): Call address_space_alloc_data.
534 (free_address_space): Call address_space_free_data.
535 * progspace.h: Use DECLARE_REGISTRY.
536
537 2013-11-20 Yao Qi <yao@codesourcery.com>
538
539 * Makefile.in (SFILES):Add target-dcache.c.
540 (HFILES_NO_SRCDIR): Add target-dcache.h.
541 (COMMON_OBS): Add target-dcache.o.
542 * dcache.c: Remove inclusion to "target.h". Include
543 "target-dcache.h".
544 * memattr.c: Include "target-dcache.h".
545 * top.c: Likewise.
546 * tracepoint.c: Likewise.
547 * target.c: (stack_cache_enabled_p_1): Move to
548 target-dcache.c.
549 (stack_cache_enabled_p): Likewise.
550 (set_stack_cache_enabled_p): Likewise.
551 (show_stack_cache_enabled_p): Likewise.
552 (target_dcache, target_dcache_init_p): Likewise.
553 (target_dcache_invalidate): Likewise.
554 (target_dcache_get, target_dcache_get_or_init): Likewise.
555 (memory_xfer_partial_1): Call function stack_cache_enabled.
556 (initialize_target): Move code to target-dcache.c.
557 * target.h (target_dcache_invalidate): Move to
558 target-dcache.h.
559 (target_dcache_get): Likewise.
560 * target-dcache.c: New.
561 * target-dcache.h: New.
562
563 2013-11-20 Yao Qi <yao@codesourcery.com>
564
565 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
566 it is initialized.
567
568 2013-11-20 Yao Qi <yao@codesourcery.com>
569
570 * dcache.c (last_cache): Remove.
571 (dcache_free, dcache_init): Update.
572 (dcache_update):
573 (dcache_print_line): Add parameter 'dcache'. Replace
574 'target_dcache' with 'dcache'.
575 (dcache_info): Move code to dcache_info_1. Call
576 'dcache_info_1'.
577 (dcache_info_1): New function.
578 (set_dcache_size): Call target_dcache_invalidate.
579 (set_dcache_line_size): Call target_dcache_invalidate.
580 * target.c (target_dcache_init_p): New function.
581 (target_dcache_invalidate): Check target_dcache_init_p first.
582 (target_dcache_get, target_dcache_get_or_init): New function.
583 (memory_xfer_partial_1): Adjust.
584 (initialize_target): Don't initialize 'target_dcache'.
585 * target.h (struct dcache_struct): Declare.
586 (target_dcache_get): Declare.
587
588 2013-11-19 Yao Qi <yao@codesourcery.com>
589
590 * varobj.c (varobj_get_type): Fix typo.
591
592 2013-11-19 Joel Brobecker <brobecker@adacore.com>
593
594 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
595
596 2013-11-19 Joel Brobecker <brobecker@adacore.com>
597
598 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
599 "stat.h".
600
601 2013-11-18 Tom Tromey <tromey@redhat.com>
602
603 * common/gdb_stat.h: Remove.
604 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
605 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
606 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
607 * corefile.c: Use sys/stat.h, not gdb_stat.h.
608 * ctf.c: Use sys/stat.h, not gdb_stat.h.
609 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
610 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
611 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
612 * exec.c: Use sys/stat.h, not gdb_stat.h.
613 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
614 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
615 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
616 * jit.c: Use sys/stat.h, not gdb_stat.h.
617 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
618 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
619 * main.c: Use sys/stat.h, not gdb_stat.h.
620 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
621 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
622 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
623 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
624 * procfs.c: Use sys/stat.h, not gdb_stat.h.
625 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
626 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
627 * remote.c: Use sys/stat.h, not gdb_stat.h.
628 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
629 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
630 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
631 * source.c: Use sys/stat.h, not gdb_stat.h.
632 * symfile.c: Use sys/stat.h, not gdb_stat.h.
633 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
634 * symtab.c: Use sys/stat.h, not gdb_stat.h.
635 * top.c: Use sys/stat.h, not gdb_stat.h.
636 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
637
638 2013-11-18 Tom Tromey <tromey@redhat.com>
639
640 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
641 sys_stat.
642 * gnulib/aclocal.m4: Update.
643 * gnulib/config.in: Update.
644 * gnulib/configure: Update.
645 * gnulib/import/Makefile.am: Update.
646 * gnulib/import/Makefile.in: Update.
647 * gnulib/import/m4/gnulib-cache.m4: Update.
648 * gnulib/import/m4/gnulib-comp.m4: Update.
649 * gnulib/import/m4/sys_stat_h.m4: New.
650 * gnulib/import/m4/time_h.m4: New.
651 * gnulib/import/sys_stat.in.h: New.
652 * gnulib/import/time.in.h: New.
653
654 2013-11-18 Tom Tromey <tromey@redhat.com>
655
656 * configure: Rebuild.
657 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
658
659 2013-11-18 Tom Tromey <tromey@redhat.com>
660
661 * configure: Rebuild.
662 * configure.ac: Don't check for unistd.h.
663
664 2013-11-18 Tom Tromey <tromey@redhat.com>
665
666 * configure: Rebuild.
667 * configure.ac: Don't check for stdlib.h
668 * defs.h: Include stdlib.h unconditionally.
669
670 2013-11-18 Tom Tromey <tromey@redhat.com>
671
672 * config.in: Rebuild.
673 * configure: Rebuild.
674 * configure.ac: Don't check for stddef.h.
675 * defs.h: Unconditionally include stddef.h. Remove duplicate
676 inclusion.
677
678 2013-11-18 Tom Tromey <tromey@redhat.com>
679
680 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
681 * common/gdb_dirent.h: Remove.
682 * common/filestuff.c: Use dirent.h.
683 * common/linux-osdata.c: Use dirent.h.
684 (NAMELEN): Define.
685 * config.in: Rebuild.
686 * configure: Rebuild.
687 * configure.ac: Don't use AC_HEADER_DIRENT.
688 * linux-fork.c: Use dirent.h
689 * linux-nat.c: Use dirent.h.
690 * nto-procfs.c: Use dirent.h.
691 * procfs.c: Use dirent.h.
692
693 2013-11-18 Tom Tromey <tromey@redhat.com>
694
695 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
696 * gnulib/aclocal.m4: Update.
697 * gnulib/config.in: Update.
698 * gnulib/configure: Update.
699 * gnulib/import/Makefile.am: Update.
700 * gnulib/import/Makefile.in: Update.
701 * gnulib/import/dirent.in.h: New.
702 * gnulib/import/m4/dirent_h.m4: New.
703 * gnulib/import/m4/gnulib-cache.m4: Update.
704 * gnulib/import/m4/gnulib-comp.m4: Update.
705
706 2013-11-18 Tom Tromey <tromey@redhat.com>
707
708 * configure: Rebuild.
709 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
710 strings.h.
711
712 2013-11-18 Tom Tromey <tromey@redhat.com>
713
714 * common/gdb_string.h: Remove.
715 * aarch64-tdep.c: Use string.h, not gdb_string.h.
716 * ada-exp.y: Use string.h, not gdb_string.h.
717 * ada-lang.c: Use string.h, not gdb_string.h.
718 * ada-lex.l: Use string.h, not gdb_string.h.
719 * ada-typeprint.c: Use string.h, not gdb_string.h.
720 * ada-valprint.c: Use string.h, not gdb_string.h.
721 * aix-thread.c: Use string.h, not gdb_string.h.
722 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
723 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
724 * alpha-nat.c: Use string.h, not gdb_string.h.
725 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
726 * alpha-tdep.c: Use string.h, not gdb_string.h.
727 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
728 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
729 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
730 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
731 * amd64-nat.c: Use string.h, not gdb_string.h.
732 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
733 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
734 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
735 * arch-utils.c: Use string.h, not gdb_string.h.
736 * arm-linux-nat.c: Use string.h, not gdb_string.h.
737 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
738 * arm-tdep.c: Use string.h, not gdb_string.h.
739 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
740 * armbsd-tdep.c: Use string.h, not gdb_string.h.
741 * armnbsd-nat.c: Use string.h, not gdb_string.h.
742 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
743 * armobsd-tdep.c: Use string.h, not gdb_string.h.
744 * avr-tdep.c: Use string.h, not gdb_string.h.
745 * ax-gdb.c: Use string.h, not gdb_string.h.
746 * ax-general.c: Use string.h, not gdb_string.h.
747 * bcache.c: Use string.h, not gdb_string.h.
748 * bfin-tdep.c: Use string.h, not gdb_string.h.
749 * breakpoint.c: Use string.h, not gdb_string.h.
750 * build-id.c: Use string.h, not gdb_string.h.
751 * buildsym.c: Use string.h, not gdb_string.h.
752 * c-exp.y: Use string.h, not gdb_string.h.
753 * c-lang.c: Use string.h, not gdb_string.h.
754 * c-typeprint.c: Use string.h, not gdb_string.h.
755 * c-valprint.c: Use string.h, not gdb_string.h.
756 * charset.c: Use string.h, not gdb_string.h.
757 * cli-out.c: Use string.h, not gdb_string.h.
758 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
759 * cli/cli-decode.c: Use string.h, not gdb_string.h.
760 * cli/cli-dump.c: Use string.h, not gdb_string.h.
761 * cli/cli-interp.c: Use string.h, not gdb_string.h.
762 * cli/cli-logging.c: Use string.h, not gdb_string.h.
763 * cli/cli-script.c: Use string.h, not gdb_string.h.
764 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
765 * cli/cli-utils.c: Use string.h, not gdb_string.h.
766 * coffread.c: Use string.h, not gdb_string.h.
767 * common/common-utils.c: Use string.h, not gdb_string.h.
768 * common/filestuff.c: Use string.h, not gdb_string.h.
769 * common/linux-procfs.c: Use string.h, not gdb_string.h.
770 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
771 * common/signals.c: Use string.h, not gdb_string.h.
772 * common/vec.h: Use string.h, not gdb_string.h.
773 * core-regset.c: Use string.h, not gdb_string.h.
774 * corefile.c: Use string.h, not gdb_string.h.
775 * corelow.c: Use string.h, not gdb_string.h.
776 * cp-abi.c: Use string.h, not gdb_string.h.
777 * cp-support.c: Use string.h, not gdb_string.h.
778 * cp-valprint.c: Use string.h, not gdb_string.h.
779 * cris-tdep.c: Use string.h, not gdb_string.h.
780 * d-lang.c: Use string.h, not gdb_string.h.
781 * dbxread.c: Use string.h, not gdb_string.h.
782 * dcache.c: Use string.h, not gdb_string.h.
783 * demangle.c: Use string.h, not gdb_string.h.
784 * dicos-tdep.c: Use string.h, not gdb_string.h.
785 * disasm.c: Use string.h, not gdb_string.h.
786 * doublest.c: Use string.h, not gdb_string.h.
787 * dsrec.c: Use string.h, not gdb_string.h.
788 * dummy-frame.c: Use string.h, not gdb_string.h.
789 * dwarf2-frame.c: Use string.h, not gdb_string.h.
790 * dwarf2loc.c: Use string.h, not gdb_string.h.
791 * dwarf2read.c: Use string.h, not gdb_string.h.
792 * elfread.c: Use string.h, not gdb_string.h.
793 * environ.c: Use string.h, not gdb_string.h.
794 * eval.c: Use string.h, not gdb_string.h.
795 * event-loop.c: Use string.h, not gdb_string.h.
796 * exceptions.c: Use string.h, not gdb_string.h.
797 * exec.c: Use string.h, not gdb_string.h.
798 * expprint.c: Use string.h, not gdb_string.h.
799 * f-exp.y: Use string.h, not gdb_string.h.
800 * f-lang.c: Use string.h, not gdb_string.h.
801 * f-typeprint.c: Use string.h, not gdb_string.h.
802 * f-valprint.c: Use string.h, not gdb_string.h.
803 * fbsd-nat.c: Use string.h, not gdb_string.h.
804 * findcmd.c: Use string.h, not gdb_string.h.
805 * findvar.c: Use string.h, not gdb_string.h.
806 * fork-child.c: Use string.h, not gdb_string.h.
807 * frame.c: Use string.h, not gdb_string.h.
808 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
809 * frv-tdep.c: Use string.h, not gdb_string.h.
810 * gdb.c: Use string.h, not gdb_string.h.
811 * gdb_bfd.c: Use string.h, not gdb_string.h.
812 * gdbarch.c: Use string.h, not gdb_string.h.
813 * gdbtypes.c: Use string.h, not gdb_string.h.
814 * gnu-nat.c: Use string.h, not gdb_string.h.
815 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
816 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
817 * go-exp.y: Use string.h, not gdb_string.h.
818 * go-lang.c: Use string.h, not gdb_string.h.
819 * go32-nat.c: Use string.h, not gdb_string.h.
820 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
821 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
822 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
823 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
824 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
825 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
826 * i386-linux-nat.c: Use string.h, not gdb_string.h.
827 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
828 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
829 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
830 * i386-tdep.c: Use string.h, not gdb_string.h.
831 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
832 * i386gnu-nat.c: Use string.h, not gdb_string.h.
833 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
834 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
835 * i387-tdep.c: Use string.h, not gdb_string.h.
836 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
837 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
838 * inf-child.c: Use string.h, not gdb_string.h.
839 * inf-ptrace.c: Use string.h, not gdb_string.h.
840 * inf-ttrace.c: Use string.h, not gdb_string.h.
841 * infcall.c: Use string.h, not gdb_string.h.
842 * infcmd.c: Use string.h, not gdb_string.h.
843 * inflow.c: Use string.h, not gdb_string.h.
844 * infrun.c: Use string.h, not gdb_string.h.
845 * interps.c: Use string.h, not gdb_string.h.
846 * iq2000-tdep.c: Use string.h, not gdb_string.h.
847 * irix5-nat.c: Use string.h, not gdb_string.h.
848 * jv-exp.y: Use string.h, not gdb_string.h.
849 * jv-lang.c: Use string.h, not gdb_string.h.
850 * jv-typeprint.c: Use string.h, not gdb_string.h.
851 * jv-valprint.c: Use string.h, not gdb_string.h.
852 * language.c: Use string.h, not gdb_string.h.
853 * linux-fork.c: Use string.h, not gdb_string.h.
854 * linux-nat.c: Use string.h, not gdb_string.h.
855 * lm32-tdep.c: Use string.h, not gdb_string.h.
856 * m2-exp.y: Use string.h, not gdb_string.h.
857 * m2-typeprint.c: Use string.h, not gdb_string.h.
858 * m32c-tdep.c: Use string.h, not gdb_string.h.
859 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
860 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
861 * m32r-rom.c: Use string.h, not gdb_string.h.
862 * m32r-tdep.c: Use string.h, not gdb_string.h.
863 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
864 * m68k-tdep.c: Use string.h, not gdb_string.h.
865 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
866 * m68klinux-nat.c: Use string.h, not gdb_string.h.
867 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
868 * m88k-tdep.c: Use string.h, not gdb_string.h.
869 * macrocmd.c: Use string.h, not gdb_string.h.
870 * main.c: Use string.h, not gdb_string.h.
871 * mdebugread.c: Use string.h, not gdb_string.h.
872 * mem-break.c: Use string.h, not gdb_string.h.
873 * memattr.c: Use string.h, not gdb_string.h.
874 * memory-map.c: Use string.h, not gdb_string.h.
875 * mep-tdep.c: Use string.h, not gdb_string.h.
876 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
877 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
878 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
879 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
880 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
881 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
882 * mi/mi-console.c: Use string.h, not gdb_string.h.
883 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
884 * mi/mi-interp.c: Use string.h, not gdb_string.h.
885 * mi/mi-main.c: Use string.h, not gdb_string.h.
886 * mi/mi-parse.c: Use string.h, not gdb_string.h.
887 * microblaze-rom.c: Use string.h, not gdb_string.h.
888 * microblaze-tdep.c: Use string.h, not gdb_string.h.
889 * mingw-hdep.c: Use string.h, not gdb_string.h.
890 * minidebug.c: Use string.h, not gdb_string.h.
891 * minsyms.c: Use string.h, not gdb_string.h.
892 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
893 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
894 * mips-tdep.c: Use string.h, not gdb_string.h.
895 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
896 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
897 * mipsread.c: Use string.h, not gdb_string.h.
898 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
899 * mn10300-tdep.c: Use string.h, not gdb_string.h.
900 * monitor.c: Use string.h, not gdb_string.h.
901 * moxie-tdep.c: Use string.h, not gdb_string.h.
902 * mt-tdep.c: Use string.h, not gdb_string.h.
903 * nbsd-tdep.c: Use string.h, not gdb_string.h.
904 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
905 * nto-procfs.c: Use string.h, not gdb_string.h.
906 * nto-tdep.c: Use string.h, not gdb_string.h.
907 * objc-lang.c: Use string.h, not gdb_string.h.
908 * objfiles.c: Use string.h, not gdb_string.h.
909 * opencl-lang.c: Use string.h, not gdb_string.h.
910 * osabi.c: Use string.h, not gdb_string.h.
911 * osdata.c: Use string.h, not gdb_string.h.
912 * p-exp.y: Use string.h, not gdb_string.h.
913 * p-lang.c: Use string.h, not gdb_string.h.
914 * p-typeprint.c: Use string.h, not gdb_string.h.
915 * parse.c: Use string.h, not gdb_string.h.
916 * posix-hdep.c: Use string.h, not gdb_string.h.
917 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
918 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
919 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
920 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
921 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
922 * printcmd.c: Use string.h, not gdb_string.h.
923 * procfs.c: Use string.h, not gdb_string.h.
924 * prologue-value.c: Use string.h, not gdb_string.h.
925 * python/py-auto-load.c: Use string.h, not gdb_string.h.
926 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
927 * ravenscar-thread.c: Use string.h, not gdb_string.h.
928 * regcache.c: Use string.h, not gdb_string.h.
929 * registry.c: Use string.h, not gdb_string.h.
930 * remote-fileio.c: Use string.h, not gdb_string.h.
931 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
932 * remote-mips.c: Use string.h, not gdb_string.h.
933 * remote-sim.c: Use string.h, not gdb_string.h.
934 * remote.c: Use string.h, not gdb_string.h.
935 * reverse.c: Use string.h, not gdb_string.h.
936 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
937 * ser-base.c: Use string.h, not gdb_string.h.
938 * ser-go32.c: Use string.h, not gdb_string.h.
939 * ser-mingw.c: Use string.h, not gdb_string.h.
940 * ser-pipe.c: Use string.h, not gdb_string.h.
941 * ser-tcp.c: Use string.h, not gdb_string.h.
942 * ser-unix.c: Use string.h, not gdb_string.h.
943 * serial.c: Use string.h, not gdb_string.h.
944 * sh-tdep.c: Use string.h, not gdb_string.h.
945 * sh64-tdep.c: Use string.h, not gdb_string.h.
946 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
947 * skip.c: Use string.h, not gdb_string.h.
948 * sol-thread.c: Use string.h, not gdb_string.h.
949 * solib-dsbt.c: Use string.h, not gdb_string.h.
950 * solib-frv.c: Use string.h, not gdb_string.h.
951 * solib-osf.c: Use string.h, not gdb_string.h.
952 * solib-spu.c: Use string.h, not gdb_string.h.
953 * solib-target.c: Use string.h, not gdb_string.h.
954 * solib.c: Use string.h, not gdb_string.h.
955 * somread.c: Use string.h, not gdb_string.h.
956 * source.c: Use string.h, not gdb_string.h.
957 * sparc-nat.c: Use string.h, not gdb_string.h.
958 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
959 * sparc-tdep.c: Use string.h, not gdb_string.h.
960 * sparc64-tdep.c: Use string.h, not gdb_string.h.
961 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
962 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
963 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
964 * spu-linux-nat.c: Use string.h, not gdb_string.h.
965 * spu-multiarch.c: Use string.h, not gdb_string.h.
966 * spu-tdep.c: Use string.h, not gdb_string.h.
967 * stabsread.c: Use string.h, not gdb_string.h.
968 * stack.c: Use string.h, not gdb_string.h.
969 * std-regs.c: Use string.h, not gdb_string.h.
970 * symfile.c: Use string.h, not gdb_string.h.
971 * symmisc.c: Use string.h, not gdb_string.h.
972 * symtab.c: Use string.h, not gdb_string.h.
973 * target.c: Use string.h, not gdb_string.h.
974 * thread.c: Use string.h, not gdb_string.h.
975 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
976 * tilegx-tdep.c: Use string.h, not gdb_string.h.
977 * top.c: Use string.h, not gdb_string.h.
978 * tracepoint.c: Use string.h, not gdb_string.h.
979 * tui/tui-command.c: Use string.h, not gdb_string.h.
980 * tui/tui-data.c: Use string.h, not gdb_string.h.
981 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
982 * tui/tui-file.c: Use string.h, not gdb_string.h.
983 * tui/tui-layout.c: Use string.h, not gdb_string.h.
984 * tui/tui-out.c: Use string.h, not gdb_string.h.
985 * tui/tui-regs.c: Use string.h, not gdb_string.h.
986 * tui/tui-source.c: Use string.h, not gdb_string.h.
987 * tui/tui-stack.c: Use string.h, not gdb_string.h.
988 * tui/tui-win.c: Use string.h, not gdb_string.h.
989 * tui/tui-windata.c: Use string.h, not gdb_string.h.
990 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
991 * typeprint.c: Use string.h, not gdb_string.h.
992 * ui-file.c: Use string.h, not gdb_string.h.
993 * ui-out.c: Use string.h, not gdb_string.h.
994 * user-regs.c: Use string.h, not gdb_string.h.
995 * utils.c: Use string.h, not gdb_string.h.
996 * v850-tdep.c: Use string.h, not gdb_string.h.
997 * valarith.c: Use string.h, not gdb_string.h.
998 * valops.c: Use string.h, not gdb_string.h.
999 * valprint.c: Use string.h, not gdb_string.h.
1000 * value.c: Use string.h, not gdb_string.h.
1001 * varobj.c: Use string.h, not gdb_string.h.
1002 * vax-tdep.c: Use string.h, not gdb_string.h.
1003 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1004 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1005 * windows-nat.c: Use string.h, not gdb_string.h.
1006 * xcoffread.c: Use string.h, not gdb_string.h.
1007 * xml-support.c: Use string.h, not gdb_string.h.
1008 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1009 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1010
1011 2013-11-18 Tom Tromey <tromey@redhat.com>
1012
1013 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1014 and strstr.
1015 * gnulib/aclocal.m4: Update.
1016 * gnulib/config.in: Update.
1017 * gnulib/configure: Update.
1018 * gnulib/import/Makefile.am: Update.
1019 * gnulib/import/Makefile.in: Update.
1020 * gnulib/import/errno.in.h: New.
1021 * gnulib/import/intprops.h: New.
1022 * gnulib/import/m4/errno_h.m4: New.
1023 * gnulib/import/m4/gnulib-cache.m4: Update.
1024 * gnulib/import/m4/gnulib-comp.m4: Update.
1025 * gnulib/import/m4/strerror.m4: New.
1026 * gnulib/import/m4/strstr.m4: New.
1027 * gnulib/import/m4/sys_socket_h.m4: New.
1028 * gnulib/import/strerror-override.c: New.
1029 * gnulib/import/strerror-override.h: New.
1030 * gnulib/import/strerror.c: New.
1031 * gnulib/import/strstr.c: New.
1032
1033 2013-11-18 Tom Tromey <tromey@redhat.com>
1034
1035 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1036 multiple lines.
1037
1038 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1039
1040 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1041 * sparc-tdep.h: And its prototype.
1042
1043 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1044 function.
1045 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1046
1047 2013-11-18 Pedro Alves <palves@redhat.com>
1048
1049 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1050 use unpack_pointer.
1051
1052 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1053
1054 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1055 to -list-features output.
1056
1057 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1058
1059 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1060 <read_addr_from_reg>: Renames "read_reg".
1061 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1062 Adjust comment.
1063 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1064 Use read_addr_from_reg in place of read_reg.
1065 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1066 in place of read_reg.
1067 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1068 dwarf_expr_read_reg.
1069 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1070 with dwarf_expr_read_addr_from_reg.
1071 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1072 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1073 needs_frame_read_addr_from_reg.
1074
1075 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1076
1077 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1078
1079 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1080
1081 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1082 NULL.
1083
1084 2013-11-15 Tom Tromey <tromey@redhat.com>
1085
1086 PR c++/16117:
1087 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1088 (classify_name): Likewise. Prefer a field of "this" over a
1089 filename.
1090 (classify_inner_name, yylex): Update.
1091
1092 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1093
1094 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1095 Extend the documentation a bit.
1096 <get_reg_value>: New field.
1097 * dwarf2loc.c (dwarf_expr_get_reg_value)
1098 (needs_frame_get_reg_value): New functions.
1099 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1100 callback.
1101 * dwarf2-frame.c (get_reg_value): New function.
1102 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1103 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1104 Use new callback to compute result_val.
1105
1106 2013-11-15 Alan Modra <amodra@gmail.com>
1107
1108 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1109 (ppc64_desc_entry_point): ..this. Update comments here and at
1110 call points.
1111 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1112 ppc64_standard_linkage3): Update comments.
1113 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1114 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1115 patterns.
1116 (ppc64_standard_linkage4_target): New function.
1117 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1118 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1119 nop match. Fix comment wrap.
1120
1121 2013-11-14 Pedro Alves <palves@redhat.com>
1122
1123 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1124 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1125
1126 2013-11-14 Pedro Alves <palves@redhat.com>
1127
1128 * infrun.c (struct execution_control_state)
1129 <stepped_after_stopped_by_watchpoint>: New field.
1130 (get_inferior_stop_soon): New function.
1131 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1132 moved to struct execution_control_state -- adjust. Use
1133 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1134 new function.
1135 (handle_signal_stop): New function, factored out from
1136 handle_inferior_event.
1137
1138 2013-11-14 Pedro Alves <palves@redhat.com>
1139
1140 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1141 return a boolean.
1142 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1143 boolean.
1144 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1145 Adjust to return a boolean.
1146 * breakpoint.h (enum bpstat_signal_value): Delete.
1147 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1148 (bpstat_explains_signal): Likewise.
1149 * infrun.c (handle_inferior_event) <random signal checks>:
1150 bpstat_explains_signal now returns a boolean - adjust. No longer
1151 consider hiding signals.
1152
1153 2013-11-14 Pedro Alves <palves@redhat.com>
1154
1155 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1156 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1157 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1158 BPSTAT_SIGNAL_HIDE.
1159 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1160 instead of BPSTAT_SIGNAL_HIDE.
1161 * infrun.c (handle_inferior_event): Rework random signal checks.
1162
1163 2013-11-14 Pedro Alves <palves@redhat.com>
1164
1165 * infrun.c (struct execution_control_state): Remove
1166 'random_signal' field.
1167 (handle_syscall_event): Use bpstat_causes_stop instead of
1168 bpstat_explains_signal. Don't set ecs->random_signal.
1169 (handle_inferior_event): New 'random_signal' local.
1170 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1171 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1172 bpstat_explains_signal. Don't set ecs->random_signal.
1173 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1174 ecs->random_signal.
1175
1176 2013-11-14 Pedro Alves <palves@redhat.com>
1177
1178 * infrun.c (handle_inferior_event): Move comment from the
1179 function's body to the function's description, adjusted.
1180
1181 2013-11-14 Pedro Alves <palves@redhat.com>
1182
1183 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1184 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1185 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1186 case.
1187
1188 2013-11-14 Tom Tromey <tromey@redhat.com>
1189
1190 * python/py-linetable.c (ltpy_has_line)
1191 (ltpy_get_all_source_lines): Fix loop termination condition.
1192
1193 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1194
1195 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1196 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1197 PARSE->LANGUAGE during command execution, if set.
1198 * mi/mi-parse.c: Add "language.h" #include.
1199 (mi_parse): Add parsing of "--language" command option.
1200
1201 * NEWS: Add entry mentioning the new "--language" command option.
1202
1203 2013-11-14 Pedro Alves <palves@redhat.com>
1204 Joel Brobecker <brobecker@adacore.com>
1205
1206 * cli/cli-utils.h (extract_arg_const): Add declaration.
1207 * cli/cli-utils.c (extract_arg_const): New function.
1208 (extract_arg): Reimplement using extract_arg_const.
1209
1210 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1211
1212 * language.h: Add "symtab.h" #include.
1213
1214 2013-11-13 Doug Evans <xdje42@gmail.com>
1215
1216 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1217 specific breakpoints, don't evaluate breakpoint condition if
1218 different thread.
1219
1220 2013-11-13 Keith Seitz <keiths@redhat.com>
1221
1222 PR c++/7935
1223 PR c++/10541
1224 * cp-support.c (insepct_type): Add support for substituting
1225 namespace aliases, too.
1226 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1227 for DW_TAG_imported_declaration.
1228 (add_partial_symbol): Likewise.
1229 (process_die): Handle namespace aliases with
1230 read_namespace_alias.
1231 (die_needs_namespace): Add DW_TAG_imported_declaration.
1232 (read_namespace_alias): New function.
1233 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1234 (new_symbol_full): Handle DW_TAG_imported_declaration.
1235
1236 2013-11-13 Keith Seitz <keiths@redhat.com>
1237
1238 * p-exp.y (uptok): Make first parameter const.
1239 (yylex): Make `tokstart' and `tokptr' const.
1240 Don't copy the lexer input to a temporary buffer.
1241 Make `p' const.
1242 Remove const workaround for parse_escape.
1243 Create a temporary buffer for a convenience variable instead
1244 of doing in-place modification of the input.
1245 If a match is found with a different case from the input,
1246 do not change the input at all.
1247 Use `tmp' to construct the resultant stoken instead of
1248 `tokstart'.
1249
1250 2013-11-13 Doug Evans <xdje42@gmail.com>
1251
1252 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1253
1254 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1255
1256 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1257 entry with "ada-exceptions".
1258
1259 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1260
1261 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1262 after re-initialization of OBJFILE's obstack.
1263
1264 2013-11-12 Doug Evans <xdje42@gmail.com>
1265
1266 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1267 bs->stop != 0 on entry. Update function comment. Simplify early
1268 exit for frame mismatch. Reindent rest of function.
1269
1270 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1273 NULL.
1274
1275 2013-11-12 Doug Evans <dje@google.com>
1276
1277 Work around gold/15646.
1278 * dwarf2read.c (read_index_from_section): Update comment.
1279 (struct dw2_symtab_iterator): New member global_seen.
1280 (dw2_symtab_iter_init): Initialize it.
1281 (dw2_symtab_iter_next): Skip duplicate global symbols.
1282 (dw2_expand_symtabs_matching): Ditto.
1283
1284 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1285
1286 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1287 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1288 command.
1289 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1290 (mi_cmd_info_ada_exceptions): New function.
1291 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1292
1293 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1294
1295 * ada-lang.h: #include "vec.h".
1296 (struct ada_exc_info): New.
1297 (ada_exc_info): New typedef.
1298 (DEF_VEC_O(ada_exc_info)): New vector.
1299 (ada_exceptions_list): Add declaration.
1300 * ada-lang.c (ada_is_exception_sym)
1301 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1302 (sort_remove_dups_ada_exceptions_list)
1303 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1304 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1305 (ada_exceptions_list_1, ada_exceptions_list)
1306 (info_exceptions_command): New function.
1307 (_initialize_ada_language): Add "info exception" command.
1308
1309 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1310
1311 PR python/15629
1312 * NEWS: Add linetable feature.
1313 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1314 * python/py-linetable.c: New file.
1315 * python/py-symtab.c (stpy_get_linetable): New function.
1316 * python/python-internal.h (symtab_to_linetable_object): Declare.
1317 (gdbpy_initialize_linetable): Ditto.
1318 * python/python.c (_initialize_python): Call
1319 gdbpy_initialize_linetable.
1320
1321 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1322
1323 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1324 the documentation of fields "except_string" and "condition".
1325 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1326 CONDITION on the heap before passing it to
1327 create_ada_exception_catchpoint.
1328 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1329 CONDITION.
1330
1331 2013-11-11 Tom Tromey <tromey@redhat.com>
1332
1333 * config.in, configure: Rebuild.
1334 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1335
1336 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1337
1338 * remote-sim.c (gdbsim_detach): Break declaration into
1339 shorter lines. No code change.
1340
1341 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1342
1343 * remote-sim.c (gdbsim_detach): Fix prototype.
1344
1345 2013-11-08 Doug Evans <dje@google.com>
1346
1347 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1348 (create_debug_types_hash_table): Only print debugging messages for
1349 each TU if dwarf2-read >= 2.
1350 (process_queue): Ditto.
1351 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1352 Update doc string.
1353
1354 2013-11-08 Tom Tromey <tromey@redhat.com>
1355
1356 * configure: Rebuild.
1357 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1358
1359 2013-11-08 Tom Tromey <tromey@redhat.com>
1360
1361 * configure, config.in: Rebuild.
1362 * configure.ac: Remove unused configury.
1363
1364 2013-11-08 Tom Tromey <tromey@redhat.com>
1365
1366 * m32c-tdep.c: Use gdb_string.h.
1367
1368 2013-11-08 Tom Tromey <tromey@redhat.com>
1369
1370 * configure, config.in: Rebuild.
1371 * configure.ac: Remove all link.h-related checks.
1372
1373 2013-11-08 Tom Tromey <tromey@redhat.com>
1374
1375 * acinclude.m4: Include common.m4.
1376 * common/common.m4: New file.
1377 * configure, config.in: Rebuild.
1378 * configure.ac: Use GDB_AC_COMMON.
1379
1380 2013-11-08 Doug Evans <dje@google.com>
1381
1382 * NEWS: Mention that "set debug symtab-create" now accepts a
1383 verbosity level.
1384 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1385 to set the symtab's primary flag.
1386 * jit.c (finalize_symtab): Ditto.
1387 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1388 * symfile.c (allocate_symtab): Only print debugging messages for
1389 symtab_create_debug levels 2 and higher.
1390 * symtab.c (symtab_create_debug): Change type to unsigned int.
1391 (set_symtab_primary): New function.
1392 (_initialize_symtab): Change "set debug symtab-create" to a
1393 zuinteger option.
1394 * symtab.h (set_symtab_primary): Declare.
1395 (symtab_create_debug): Update decl.
1396
1397 2013-11-08 Tom Tromey <tromey@redhat.com>
1398
1399 * aix-thread.c (aix_thread_detach): Update.
1400 * corelow.c (core_detach): Update.
1401 * darwin-nat.c (darwin_detach): Update.
1402 * dec-thread.c (dec_thread_detach): Update.
1403 * gnu-nat.c (gnu_detach): Update.
1404 * go32-nat.c (go32_detach): Update.
1405 * inf-ptrace.c (inf_ptrace_detach): Update.
1406 * inf-ttrace.c (inf_ttrace_detach): Update.
1407 * linux-fork.c (linux_fork_detach): Update.
1408 * linux-fork.h (linux_fork_detach): Update.
1409 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1410 local for const-correctness.
1411 * linux-thread-db.c (thread_db_detach): Update.
1412 * monitor.c (monitor_detach): Update.
1413 * nto-procfs.c (procfs_detach): Update.
1414 * procfs.c (procfs_detach): Update.
1415 * record.c (record_detach): Update.
1416 * record.h (record_detach): Update.
1417 * remote-m32r-sdi.c (m32r_detach): Update.
1418 * remote-mips.c (mips_detach): Update.
1419 * remote-sim.c (gdbsim_detach): Update.
1420 * remote.c (remote_detach_1, remote_detach)
1421 (extended_remote_detach): Update.
1422 * sol-thread.c (sol_thread_detach): Update.
1423 * target.c (target_detach): Make "args" const.
1424 (init_dummy_target): Update.
1425 * target.h (struct target_ops) <to_detach>: Make argument const.
1426 (target_detach): Likewise.
1427 * windows-nat.c (windows_detach): Update.
1428
1429 2013-11-07 Doug Evans <dje@google.com>
1430
1431 PR 11786
1432 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1433 and align fields for PT_GNU_RELRO segments.
1434
1435 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1436
1437 PR python/15747
1438 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1439
1440 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1441
1442 * NEWS: Document Python temporary breakpoint support.
1443 * python/py-breakpoint.c (bppy_get_temporary): New function.
1444 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1445 to temporary if True.
1446
1447 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1448
1449 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1450 removed to allow analyzing unconditional branch instructions
1451 with PC-relative offsets of zero.
1452
1453 2013-11-07 Yao Qi <yao@codesourcery.com>
1454
1455 * mi/mi-cmd-var.c: Include "language.h".
1456 (mi_cmd_var_info_expression): Get language name from
1457 language_defn.
1458 * varobj.c (varobj_language_string): Remove.
1459 (variable_language): Remove declaration.
1460 (languages): Remove.
1461 (varobj_get_language): Change the type of return value.
1462 (variable_language): Remove.
1463 * varobj.h (enum varobj_languages): Remove.
1464 (varobj_language_string): Remove declaration.
1465 (varobj_get_language): Update declaration.
1466
1467 2013-11-07 Yao Qi <yao@codesourcery.com>
1468
1469 * language.h (struct language_defn) <la_natural_name>: New
1470 field.
1471 * ada-lang.c (ada_language_defn): Initialize field
1472 'la_natural_name'.
1473 * c-lang.c (c_language_defn): Likewise.
1474 (cplus_language_defn, asm_language_defn): Likewise.
1475 * d-lang.c (d_language_defn): Likewise.
1476 * f-lang.c (f_language_defn): Likewise.
1477 * go-lang.c (go_language_defn): Likewise.
1478 * jv-lang.c (java_language_defn): Likewise.
1479 * language.c (unknown_language_defn ): Likewise.
1480 (auto_language_defn): Likewise.
1481 * m2-lang.c (m2_language_defn): Likewise.
1482 * objc-lang.c (objc_language_defn): Likewise.
1483 * opencl-lang.c (opencl_language_defn): Likewise.
1484 * p-lang.c (pascal_language_defn): Likewise.
1485
1486 2013-11-07 Yao Qi <yao@codesourcery.com>
1487
1488 * language.c (language_str): Return const char *.
1489 (add_language): Add const to 'language_names'
1490 * language.h (struct language_defn) <la_name>: Add const.
1491 (language_str: Update declaration.
1492
1493 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1494
1495 * s390-linux-nat.c (s390_read_description): Consider the TE field
1496 in the HWCAP for determining 'have_regset_tdb'.
1497
1498 2013-11-06 Will Newton <will.newton@linaro.org>
1499
1500 PR gdb/12866
1501 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1502 values. (read_partial_die): Likewise.
1503
1504 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1505
1506 PR cli/16122
1507 * top.c (command_line_input): Unify interactivity tests to use
1508 input_from_terminal_p.
1509 * event-top.c (command_line_handler): Likewise.
1510
1511 2013-11-06 Yao Qi <yao@codesourcery.com>
1512
1513 * Makefile.in (check-perf): New target.
1514
1515 2013-11-05 Will Newton <will.newton@linaro.org>
1516
1517 PR gdb/7670
1518 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1519 (arm_print_float_info): Likewise.
1520
1521 2013-11-04 Anton Blanchard <anton@samba.org>
1522
1523 * target.c (memory_xfer_partial): Cap write to 4KB.
1524
1525 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1526
1527 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1528 probe scan even when the arch provides no get_longjmp_target.
1529
1530 2013-10-31 Pedro Alves <palves@redhat.com>
1531
1532 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1533 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1534 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1535 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1536 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1537 <bpstat handling>: If the bpstat chain wants the signal to be
1538 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1539 GDB_SIGNAL_TRAP.
1540
1541 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1542
1543 * breakpoint.c (update_watchpoint): Update error message and add
1544 an additional error message.
1545
1546 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1547
1548 * s390-tdep.h: Rename to...
1549 * s390-linux-tdep.h: ...here.
1550 * s390-tdep.c: Rename to...
1551 * s390-linux-tdep.c: ...here. Adjust #include.
1552 * s390-nat.c: Rename to...
1553 * s390-linux-nat.c: ...here. Adjust #include.
1554 * config/s390/s390.mh: Rename to...
1555 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1556 s390-linux-nat.o.
1557 * configure.host: Reflect host rename "s390" -> "linux".
1558 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1559 * Makefile.in (ALL_TARGET_OBS): Likewise.
1560 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1561 s390-linux-tdep.h.
1562 (ALLDEPFILES): Reflect rename of .c files.
1563
1564 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1565
1566 * s390-nat.c: Whitespace cleanup.
1567 * s390-tdep.c: Likewise.
1568 * s390-tdep.h: Remove empty line at end of file.
1569
1570 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1571
1572 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1573 siginfo_size.
1574
1575 2013-10-29 Tom Tromey <tromey@redhat.com>
1576
1577 * utils.c (reg): Move undefinition...
1578 * gdb_curses.h: ... here. Update comment to mention AIX.
1579
1580 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1581
1582 * exec.h (add_target_sections_of_objfile): New declaration.
1583 * exec.c (add_target_sections_of_objfile): New function.
1584 * symfile.c (add_symbol_file_command): Update current target sections.
1585 (remove_symbol_file_command): New command.
1586 (symfile_free_objfile): New function.
1587 (_initialize_symfile): Register observer for free_objfile events.
1588 * NEWS: Add description of the remove-symbol-file command.
1589 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1590 * objfiles.c (free_objfile): Notify free_objfile.
1591 (is_addr_in_objfile): New function.
1592 * objfiles.h (is_addr_in_objfile): New declaration.
1593 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1594 events instead of solib_unloaded events.
1595 (_initialize_printcmd): Register observer for free_objfile instead
1596 of solib_unloaded notifications.
1597 * solib.c (remove_user_added_objfile): New function.
1598 (_initialize_symfile): Add remove-symbol-file.
1599
1600 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1601
1602 * infcmd.c (default_print_one_register_info): Use val_print to
1603 print all values even optimized out or unavailable ones. Don't
1604 try to print a raw form of optimized out or unavailable values.
1605
1606 2013-10-29 Yao Qi <yao@codesourcery.com>
1607
1608 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1609 parameter 'arg' instead of from program_space_data.
1610 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1611 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1612 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1613 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1614 * inflow.c (inflow_inferior_data_cleanup): Get data from
1615 parameter 'arg' instead of inferior_data.
1616 * registry.h: Add comments.
1617
1618 2013-10-28 Pedro Alves <palves@redhat.com>
1619
1620 * breakpoint.c (watchpoints_triggered)
1621 <!target_stopped_data_address>: Hardcode return 1.
1622
1623 2013-10-28 Pedro Alves <palves@redhat.com>
1624
1625 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1626 level and reindent.
1627
1628 2013-10-28 Pedro Alves <palves@redhat.com>
1629
1630 * infrun.c (process_event_stop_test): New function, factored out
1631 from handle_inferior_event.
1632 (handle_inferior_event): 'process_event_stop_test' is now a
1633 function instead of a goto label -- adjust.
1634
1635 2013-10-28 Pedro Alves <palves@redhat.com>
1636
1637 * infrun.c (handle_inferior_event): Move process_event_stop_test
1638 goto label to the else branch of the ecs->random_signal check,
1639 along with FRAME and GDBARCH re-fetching.
1640
1641 2013-10-28 Pedro Alves <palves@redhat.com>
1642
1643 * infrun.c (switch_back_to_stepped_thread): New function, factored
1644 out from handle_inferior_event.
1645 (handle_inferior_event): Adjust to call
1646 switch_back_to_stepped_thread. Call it also at the tail of the
1647 random signal handling, and return, instead of also handling
1648 random signals just before the stepping tests.
1649
1650 2013-10-28 Pedro Alves <palves@redhat.com>
1651
1652 * infrun.c (clear_stop_func): Delete.
1653 (handle_inferior_event): Don't call clear_stop_func and don't
1654 clear 'ecs->random_signal'.
1655
1656 2013-10-27 Yao Qi <yao@codesourcery.com>
1657
1658 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1659 (varobj_create, varobj_get_path_expr): Update.
1660 (varobj_value_has_mutated, varobj_update): Likewise.
1661 (create_child_with_value, new_root_variable): Likewise.
1662 (number_of_children, name_of_variable): Likewise.
1663 (value_of_child, my_value_of_variable): Likewise.
1664 (varobj_value_is_changeable_p): Likewise.
1665
1666 2013-10-25 Yao Qi <yao@codesourcery.com>
1667
1668 * language.h (struct lang_varobj_ops): Declare.
1669 (struct language_defn) <la_varobj_ops>: New field.
1670 * ada-lang.c: Include "varobj.h"
1671 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1672 ada_varobj_ops.
1673 * c-lang.c: Include "varobj.h"
1674 (c_language_defn): Initialize field 'la_varobj_ops' with
1675 c_varobj_ops.
1676 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1677 cplus_varobj_ops.
1678 (asm_language_defn): Initialize field 'la_varobj_ops' with
1679 default_varobj_ops.
1680 (minimal_language_defn): Likewise.
1681 * d-lang.c (d_language_defn): Likewise.
1682 * f-lang.c (f_language_defn): Likewise.
1683 * go-lang.c (go_language_defn): Likewise.
1684 * m2-lang.c (m2_language_defn): Likewise.
1685 * objc-lang.c (objc_language_defn): Likewise.
1686 * opencl-lang.c (opencl_language_defn): Likewise.
1687 * p-lang.c (pascal_language_defn): Likewise.
1688 * language.c (unknown_language_defn): Likewise.
1689 (auto_language_defn): Likewise.
1690 (local_language_defn): Likewise.
1691 * jv-lang.c (java_language_defn): Initialize field
1692 'la_varobj_ops' with java_varobj_ops.
1693 * varobj.c (varobj_create): Update.
1694 * varobj.h (default_varobj_ops): Define macro.
1695
1696 2013-10-25 Pedro Alves <palves@redhat.com>
1697
1698 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1699 static field value.
1700 (cp_print_static_field): If the value is entirely optimized out,
1701 print <optimized out> here.
1702 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1703 static field value.
1704 * p-valprint.c (pascal_object_print_static_field): If the value is
1705 entirely optimized out, print <optimized out> here.
1706 * valops.c (do_search_struct_field)
1707 (value_struct_elt_for_reference): No longer handle a NULL static
1708 field value.
1709 * value.c (value_static_field): Return an optimized out value
1710 instead of NULL.
1711
1712 2013-10-25 Yao Qi <yao@codesourcery.com>
1713
1714 * remote.c (remote_traceframe_info): Return early if
1715 traceframe is not selected.
1716
1717 2013-10-25 Yao Qi <yao@codesourcery.com>
1718
1719 * tracepoint.c (traceframe_fun): Remove.
1720 (traceframe_sal): Remove.
1721 (set_traceframe_context): Add local variables.
1722
1723 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1724
1725 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1726 and parameter name.
1727
1728 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1729
1730 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1731 failure from register information collection.
1732
1733 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1734
1735 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1736 member.
1737 (linux_corefile_thread_callback): Update accordingly.
1738 (linux_make_corefile_notes): Likewise.
1739
1740 2013-10-24 Pedro Alves <palves@redhat.com>
1741
1742 * NEWS (New options): Mention set/show startup-with-shell.
1743 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1744 instead of 3.
1745 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1746 startup-with-shell'.
1747 (show_startup_with_shell): New function.
1748 (_initialize_fork_child): Register the set/show startup-with-shell
1749 commands.
1750 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1751 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1752 * procfs.c (procfs_init_inferior): Remove comment.
1753 * infcmd.c (startup_with_shell): New global.
1754 * inferior.h (startup_with_shell): Declare global.
1755 (STARTUP_WITH_SHELL): Delete.
1756 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1757
1758 2013-10-23 Pedro Alves <palves@redhat.com>
1759
1760 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1761 * common/signals.c: Include "gdb_assert.h".
1762 (signals): New field 'symbol'.
1763 (SET): Use the 'symbol' parameter.
1764 (gdb_signal_to_symbol_string): New function.
1765 * infrun.c (handle_inferior_event) <random signal>: In debug
1766 output, print the random signal enum as string in addition to its
1767 number.
1768 * target/waitstatus.c (target_waitstatus_to_string): Print the
1769 signal's enum value as string instead of the (POSIX) signal name.
1770
1771 2013-10-23 Gary Benson <gbenson@redhat.com>
1772
1773 PR 16013
1774 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1775 from 32 to 18. Adjusted fscanf format string accordingly.
1776 (Avoids leaving cmd unterminated.)
1777 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1778 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1779 that local_address and remote_address will not overflow.
1780 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1781 leaving dependencies unterminated. Parse size as "%u" to match
1782 definition.
1783
1784 2013-10-22 Pedro Alves <palves@redhat.com>
1785
1786 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1787 set ecs->random signal.
1788
1789 2013-10-22 Pedro Alves <palves@redhat.com>
1790
1791 * infrun.c (keep_going): Update comments.
1792
1793 2013-10-22 Pedro Alves <palves@redhat.com>
1794
1795 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1796 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1797
1798 2013-10-22 Pedro Alves <palves@redhat.com>
1799
1800 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1801 GDB_EXC_BAD_ACCESS.
1802 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1803 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1804 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1805 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1806 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1807 (GDB_SIGNAL_LAST): Change description string.
1808 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1809 Adjust to signal renaming.
1810 * darwin-nat.c (darwin_decode_message): Likewise.
1811
1812 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1813
1814 * MAINTAINERS (Write After Approval): Add myself to the list.
1815
1816 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1817
1818 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1819 forced off, downgrade them to software watchpoints if possible,
1820 and error out if not possible.
1821 (watch_command_1): Move watchpoint type selection closer to
1822 watchpoint creation, and extend the comments.
1823
1824 2013-10-18 Pedro Alves <palves@redhat.com>
1825
1826 PR gdb/16062
1827 * infrun.c (handle_inferior_event): Keep going if we got a random
1828 signal we should not stop for, instead of falling through to the
1829 step tests.
1830
1831 2013-10-18 Yao Qi <yao@codesourcery.com>
1832
1833 * c-varobj.c (cplus_number_of_children): Fix indentation.
1834
1835 2013-10-17 Tom Tromey <tromey@redhat.com>
1836
1837 PR gdb/15995:
1838 * printcmd.c (printcmd): Call gdb_flush.
1839
1840 2013-10-17 Tom Tromey <tromey@redhat.com>
1841
1842 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1843 (elf_locate_sections): Update.
1844
1845 2013-10-17 Yao Qi <yao@codesourcery.com>
1846
1847 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1848 * ada-varobj.c: Remove the include of ada-varobj.h.
1849 (ada_varobj_get_number_of_children): Declare.
1850 (ada_varobj_get_name_of_child): Make it static.
1851 (ada_varobj_get_path_expr_of_child): Likewise.
1852 (ada_varobj_get_value_of_child): Likewise.
1853 (ada_varobj_get_type_of_child): Likewise.
1854 (ada_varobj_get_value_of_array_variable): Likewise.
1855 * ada-varobj.h: Remove.
1856
1857 2013-10-17 Yao Qi <yao@codesourcery.com>
1858
1859 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1860 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1861 * ada-varobj.c: Include "varobj.h".
1862 (ada_number_of_children): New. Moved from varobj.c.
1863 (ada_name_of_variable, ada_name_of_child): Likewise.
1864 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1865 (ada_type_of_child, ada_value_of_variable): Likewise.
1866 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1867 (ada_varobj_ops): New.
1868 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1869 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1870 * gdbtypes.h (get_target_type): Declare.
1871 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1872 "ada-lang.h".
1873 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1874 (ANONYMOUS_UNION_NAME): Likewise.
1875 (get_type, get_value_type, get_target_type): Remove declarations.
1876 (value_get_print_value, varobj_value_get_print_value): Likewise.
1877 (c_number_of_children, c_name_of_variable): Likewise.
1878 (c_name_of_child, c_path_expr_of_child): Likewise.
1879 (c_value_of_child, c_type_of_child): Likewise.
1880 (c_value_of_variable, cplus_number_of_children): Likewise.
1881 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1882 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1883 (cplus_value_of_child, cplus_type_of_child): Likewise.
1884 (cplus_value_of_variable, java_number_of_children): Likewise.
1885 (java_name_of_variable, java_name_of_child): Likewise.
1886 (java_path_expr_of_child, java_value_of_child): Likewise.
1887 (java_type_of_child, java_value_of_variable): Likewise.
1888 (ada_number_of_children, ada_name_of_variable): Likewise.
1889 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1890 (ada_value_of_child, ada_type_of_child): Likewise.
1891 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1892 (ada_value_has_mutated): Likewise.
1893 (struct language_specific): Move it to varobj.h.
1894 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1895 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1896 Callers update.
1897 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1898 Make it extern.
1899 (is_anonymous_child): Move it to c-varobj.c and rename to
1900 varobj_is_anonymous_child. Caller update.
1901 (get_type): Move it to c-varobj.c.
1902 (get_value_type): Rename it varobj_get_value_type. Make it
1903 extern.
1904 (get_target_type): Move it gdbtypes.c.
1905 (varobj_formatted_print_options): New function.
1906 (value_get_print_value): Rename it to
1907 varobj_value_get_print_value and make it extern.
1908 (varobj_value_is_changeable_p): Make it extern.
1909 (adjust_value_for_child_access): Move it to c-varobj.c.
1910 (default_value_is_changeable_p): Rename it to
1911 varobj_default_value_is_changeable_p. Make it extern.
1912 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1913 (c_name_of_child, c_path_expr_of_child): Likewise.
1914 (c_value_of_child, c_type_of_child): Likewise.
1915 (c_value_of_variable, cplus_number_of_children): Likewise.
1916 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1917 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1918 (cplus_value_of_child, cplus_type_of_child): Likewise.
1919 (cplus_value_of_variable): Likewise.
1920 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1921 (java_name_of_child, java_path_expr_of_child): Likewise.
1922 (java_value_of_child, java_type_of_child): Likewise.
1923 (java_value_of_variable): Likewise.
1924 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1925 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1926 (ada_value_of_child, ada_type_of_child): Likewise.
1927 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1928 (ada_value_has_mutated): Likewise.
1929 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1930 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1931 (c_varobj_ops, cplus_varobj_ops): Declare.
1932 (java_varobj_ops, ada_varobj_ops): Declare.
1933 (varobj_default_value_is_changeable_p): Declare.
1934 (varobj_value_is_changeable_p): Declare.
1935 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1936 (varobj_get_path_expr_parent): Declare.
1937 (varobj_value_get_print_value): Declare.
1938 (varobj_formatted_print_options): Declare.
1939 (varobj_restrict_range): Declare.
1940
1941 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
1942
1943 * target/waitstatus.h (target_waitkind): Remove spurious
1944 character from the comments.
1945
1946 2013-10-17 Joel Brobecker <brobecker@adacore.com>
1947
1948 * gdbarch.sh (get_longjmp_target): Add method documentation.
1949 * gdbarch.h: Regenerate.
1950
1951 2013-10-16 Tom Tromey <tromey@redhat.com>
1952
1953 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
1954 label.
1955
1956 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
1957
1958 * gcore.in: Call GDB using the full path to the gcore script.
1959 Error out if the GDB binary is not found.
1960
1961 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1962
1963 PR gdb/16014
1964 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
1965 sizeof.
1966
1967 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
1968
1969 PR gdb/16042
1970 * target.c (target_disable_btrace): Fix invalid return value for
1971 void function.
1972 (target_teardown_btrace): Likewise.
1973
1974 2013-10-14 Yao Qi <yao@codesourcery.com>
1975
1976 * varobj.c (struct varobj): Move most of the fields to
1977 varobj.h.
1978 (struct varobj_dynamic): New struct.
1979 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
1980 (varobj_has_more): Likewise.
1981 (dynamic_varobj_has_child_method): Likewise.
1982 (update_dynamic_varobj_children): Likewise.
1983 (varobj_get_num_children): Likewise.
1984 (varobj_list_children, varobj_pretty_printed_p): Likewise.
1985 (install_new_value_visualizer): Likewise.
1986 (install_new_value_visualizer, install_new_value): Likewise.
1987 (varobj_update, new_variable, free_variable): Likewise.
1988 (my_value_of_variable, value_get_print_value): Likewise.
1989 (install_visualizer): Change the type of parameter 'var' to
1990 'struct varobjd_dynamic *'. Callers update.
1991 * varobj.h (struct varobj): Moved from varobj.c.
1992 (struct varobj) <dynamic>: New field.
1993
1994 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
1995
1996 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
1997 as the preferred name of r30.
1998 * nios2-linux-tdep.c (reg_offsets): Likewise.
1999 * features/nios2-cpu.xml: Likewise.
2000 * features/nios2-linux.c: Regenerated.
2001 * features/nios2.c: Regenerated.
2002 * regformats/nios2-linux.dat: Regenerated.
2003
2004 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 Canonicalize directories for EXEC_FILENAME.
2007 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2008 exec_filename.
2009 * utils.c (gdb_realpath_keepfile): New function.
2010 * utils.h (gdb_realpath_keepfile): New declaration.
2011
2012 2013-10-11 Doug Evans <dje@google.com>
2013
2014 * Makefile.in (GDBFLAGS): New variable.
2015 (run): New rule.
2016
2017 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2018
2019 * NEWS: Add entry documenting the new "-catch-assert" and
2020 "-catch-exception" GDB/MI commands.
2021
2022 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2023
2024 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2025 "enabled".
2026 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2027 "enabled". Set B->ENABLE_STATE accordingly.
2028 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2029 ada-lang.c.
2030 (create_ada_exception_catchpoint): Add declaration.
2031 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2032 (create_ada_exception_catchpoint): Make non-static. Add new
2033 parameter "disabled". Use it in call to
2034 init_ada_exception_breakpoint.
2035 (catch_ada_exception_command): Add parameter "enabled" in call
2036 to create_ada_exception_catchpoint.
2037 (catch_assert_command): Likewise.
2038
2039 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2040 Add declarations.
2041 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2042 "catch-exception" commands.
2043 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2044 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2045
2046 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2047
2048 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2049 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2050 of all its enumerates with "ada_". Update the rest of this
2051 file throughout.
2052
2053 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2054
2055 * ada-lang.c (ada_decode_exception_location): Delete.
2056 (create_ada_exception_catchpoint): Remove arguments "sal",
2057 "addr_string" and "ops". Add argument "ex_kind" instead.
2058 Adjust implementation accordingly, calling ada_exception_sal
2059 to get the entities it no longer gets passed as arguments.
2060 Document the function's arguments.
2061 (catch_ada_exception_command): Use catch_ada_exception_command_split
2062 instead of ada_decode_exception_location, and update call to
2063 create_ada_exception_catchpoint.
2064 (catch_ada_assert_command_split): Renames
2065 ada_decode_assert_location. Remove parameters "addr_string" and
2066 "ops", and now returns void. Adjust implementation accordingly.
2067 Update the function documentation.
2068 (catch_assert_command): Use catch_ada_assert_command_split
2069 instead of ada_decode_assert_location. Update call to
2070 create_ada_exception_catchpoint.
2071
2072 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2073
2074 * utils.h (perror_warning_with_name): Add declaration.
2075 * utils.c (perror_warning_with_name): New function.
2076 * cli/cli-cmds.c (source_script_with_search): Add call to
2077 perror_warning_with_name if from_tty is nul.
2078
2079 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2080
2081 * utils.c (perror_string): New function, extracted out of
2082 throw_perror_with_name.
2083 (throw_perror_with_name): Rework to use perror_string.
2084
2085 2013-10-11 Yao Qi <yao@codesourcery.com>
2086
2087 * remote.c (discard_pending_stop_replies_in_queue): Update
2088 declaration.
2089 (struct stop_reply) <rs>: New field.
2090 (remove_stop_reply_of_remote_state): New function.
2091 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2092 Callers update. Pass remove_stop_reply_of_remote_state to
2093 QUEUE_iterate.
2094 (remote_parse_stop_reply): Initialize field 'rs'.
2095
2096 2013-10-10 Will Newton <will.newton@linaro.org>
2097
2098 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2099 linux_init_abi.
2100
2101 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2102
2103 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2104 serial_baud_show_cmd.
2105 (_initialize_cli_cmds): Delete the code creating the
2106 "set/show remotebaud" commands.
2107 * serial.c (baud_rate): Move here from top.c.
2108 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2109 (_initialize_serial): Create "set/show serial baud" commands.
2110 Add "set/show remotebaud" command aliases.
2111 * top.c (baud_rate): Moved to serial.c.
2112 * NEWS: Document the new "set/show serial baud" commands,
2113 replacing "set/show remotebaud".
2114
2115 2013-10-09 Pedro Alves <palves@redhat.com>
2116
2117 * breakpoint.c (insert_bp_location): Use memory_error_message to
2118 build the memory error string.
2119 * c-lang.c: Include "gdbcore.h".
2120 (c_get_string): Use memory_error to throw error.
2121 (target_xfer_memory_error): Delete.
2122 (memory_error_message): New, factored out from
2123 target_xfer_memory_error.
2124 (memory_error): Change parameter type to target_xfer_error.
2125 Rewrite.
2126 (read_memory): Use memory_error instead of
2127 target_xfer_memory_error.
2128 * gdbcore.h: Include "target.h".
2129 (memory_error): Change parameter type to target_xfer_error.
2130 (memory_error_message): Declare function.
2131 * target.c (target_read_memory, target_read_stack)
2132 (target_write_memory, target_write_raw_memory): Return
2133 TARGET_XFER_E_IO on error. Adjust comments.
2134 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2135 instead of EIO.
2136 * target.h (target_read, target_insert_breakpoint)
2137 (target_remove_breakpoint): Adjust comments.
2138 * valprint.c (partial_memory_read): Rename parameter, and adjust
2139 comment.
2140 (val_print_string): Use memory_error_message to build the memory
2141 error string.
2142
2143 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2146 result variable. Rename variable fopen_e_ever_failed to
2147 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2148
2149 2013-10-09 Pedro Alves <palves@redhat.com>
2150
2151 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2152 (monitor_write_memory_longlongs, monitor_write_memory_block):
2153 Constify 'myaddr' parameter.
2154 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2155 helper.
2156 (monitor_xfer_partial): New function.
2157 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2158 hook. Install a to_xfer_partial hook.
2159
2160 2013-10-09 Tom Tromey <tromey@redhat.com>
2161
2162 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2163 bfd_get_alt_debug_link_info.
2164
2165 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 New flag OBJF_NOT_FILENAME.
2168 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2169 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2170 allocate_objfile.
2171 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2172 symbol_file_add_from_bfd.
2173 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2174 allocate_objfile.
2175 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2176 NULL.
2177 * objfiles.h (OBJF_NOT_FILENAME): New.
2178
2179 2013-10-08 Tom Tromey <tromey@redhat.com>
2180
2181 * Makefile.in (SFILES): Add build-id.c.
2182 (HFILES_NO_SRCDIR): Add build-id.h.
2183 * build-id.c: New file, largely from elfread.c. Modified
2184 most functions.
2185 * build-id.h: New file.
2186 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2187 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2188 Search for dwz file using build-id.
2189 * elfread.c (build_id_bfd_get, build_id_verify)
2190 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2191
2192 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2193
2194 * ada-lang.c (compare_names_with_case): Renamed from
2195 compare_names, adding a new parameter "casing" and its handling.
2196 New function documentation.
2197 (compare_names): New function, implemented using
2198 compare_names_with_case.
2199
2200 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2201
2202 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2203
2204 2013-10-07 Tom Tromey <tromey@redhat.com>
2205
2206 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2207 demangled_names_hash.
2208 (free_objfile): Don't delete the demangled_names_hash.
2209 * objfiles.h (struct objfile_per_bfd_storage)
2210 <demangled_names_hash>: New field.
2211 (struct objfile) <demangled_names_hash>: Move to
2212 objfile_per_bfd_storage.
2213 * symfile.c (reread_symbols): Don't delete the
2214 demangled_names_hash.
2215 * symtab.c (create_demangled_names_hash): Update.
2216 (symbol_set_names): Update.
2217
2218 2013-10-07 Tom Tromey <tromey@redhat.com>
2219
2220 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2221 needs_relocations>: New fields.
2222 (gdb_bfd_requires_relocations): New function.
2223 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2224 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2225 the BFD needs relocations applied.
2226
2227 2013-10-07 Pedro Alves <palves@redhat.com>
2228
2229 PR breakpoints/11568
2230 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2231 the thread list" instead of "gone".
2232
2233 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2234
2235 * NEWS: Mention new convenience variable $_exitsignal.
2236 * corelow.c (core_open): Reset exit convenience variables. Set
2237 $_exitsignal to the uncaught signal which generated the corefile.
2238 * infrun.c (handle_inferior_event): Reset exit convenience
2239 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2240 (clear_exit_convenience_vars): New function.
2241 * inferior.h (clear_exit_convenience_vars): New prototype.
2242
2243 2013-10-06 Yao Qi <yao@codesourcery.com>
2244
2245 * varobj.h: Add comments to enum varobj_languages.
2246
2247 2013-10-04 Doug Evans <dje@google.com>
2248
2249 Add support for DWP file format version 2.
2250 * NEWS: Mention support for DWP file format version 2.
2251 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2252 union of asection, containing_section. New fields virtual_offset
2253 and is_virtual. Change type of readin filed from int to char.
2254 (dwo_sections, dwo_file): Tweak comments.
2255 (dwp_v2_section_ids): New enum.
2256 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2257 str_offsets, types.
2258 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2259 All uses updated.
2260 (virtual_v2_dwo_sections): New struct.
2261 (dwp_hash_table): New fields version, nr_columns. Change type of
2262 section_pool field to a union.
2263 (dwp_file): New field version.
2264 (dwarf2_has_info): Check for virtual sections.
2265 (get_containing_section): New function.
2266 (get_section_bfd_owner, get_section_bfd_section): Call it.
2267 (dwarf2_locate_sections): Update.
2268 (dwarf2_section_empty_p): Update.
2269 (dwarf2_read_section): Handle virtual sections.
2270 (locate_dwz_sections): Update.
2271 (create_dwp_hash_table): Document and handle V2 format.
2272 (locate_v1_virtual_dwo_sections): Renamed from
2273 locate_virtual_dwo_sections and update. All callers updated.
2274 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2275 Delete arg htab. Rename arg section_index to unit_index.
2276 All callers updated.
2277 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2278 All uses updated.
2279 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2280 (lookup_dwo_unit_in_dwp): Add V2 support.
2281 (dwarf2_locate_dwo_sections): Update.
2282 (dwarf2_locate_common_dwp_sections): Renamed from
2283 dwarf2_locate_dwp_sections and update. All callers updated.
2284 (dwarf2_locate_v2_dwp_sections): New function.
2285 (open_and_init_dwp_file): Add V2 support.
2286 (read_str_index): New locals str_section, str_offsets_section.
2287
2288 2013-10-04 Pedro Alves <palves@redhat.com>
2289
2290 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2291 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2292 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2293 describing comments with references to ptid.h.
2294 * common/ptid.h: Remove intro description of constructors,
2295 accessors and predicates.
2296 (struct ptid): Reformat.
2297 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2298 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2299 describing comments.
2300
2301 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2302
2303 * aix-thread.c (sync_threadlists): Add missing ')' in call
2304 to ptid_build.
2305
2306 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2307
2308 * procfs.c (procfs_init_inferior): Fix typo causing the build
2309 to fail.
2310
2311 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2312
2313 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2314
2315 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2316
2317 * mi/mi-main.c (run_one_inferior): Add function description.
2318 Make ARG a pointer to an integer whose value determines whether
2319 we should "run" or "start" the program.
2320 (mi_cmd_exec_run): Add handling of the "--start" option.
2321 Reject all other command-line options.
2322 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2323
2324 2013-10-04 Yao Qi <yao@codesourcery.com>
2325
2326 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2327 (struct notif_client) <pending_event>: Moved
2328 to struct remote_notif_state.
2329 <id>: New field.
2330 (struct remote_notif_state) <pending_event>: New field.
2331 (notif_event_xfree): Declare.
2332 * remote-notif.c (handle_notification): Adjust.
2333 (notif_event_xfree): New function.
2334 (do_notif_event_xfree): Call notif_event_xfree.
2335 (remote_notif_state_xfree): Call notif_event_xfree to free
2336 each element in field pending_event.
2337 * remote.c (discard_pending_stop_replies): Remove declaration.
2338 (discard_pending_stop_replies_in_queue): Declare.
2339 (remote_close): Call discard_pending_stop_replies_in_queue
2340 instead of discard_pending_stop_replies.
2341 (remote_start_remote): Adjust.
2342 (stop_reply_xfree): Call notif_event_xfree.
2343 (notif_client_stop): Adjust initialization.
2344 (remote_notif_remove_all): Rename it to ...
2345 (remove_stop_reply_for_inferior): ... this. Update comments.
2346 Don't check INF is NULL.
2347 (discard_pending_stop_replies): Return early if notif_state is
2348 NULL. Adjust. Don't check INF is NULL.
2349 (remote_notif_get_pending_events): Adjust.
2350 (discard_pending_stop_replies_in_queue): New function.
2351 (remote_wait_ns): Likewise.
2352
2353 2013-10-04 Yao Qi <yao@codesourcery.com>
2354
2355 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2356 (notif_queue): Remove.
2357 (remote_notif_process): Add one parameter 'notif_queue'.
2358 Update comments. Callers update.
2359 (remote_async_get_pending_events_token): Remove.
2360 (remote_notif_register_async_event_handler): Remove.
2361 (remote_notif_unregister_async_event_handler): Remove.
2362 (handle_notification): Add parameter 'notif_queue'. Update
2363 comments. Callers update.
2364 (notif_xfree): Remove.
2365 (remote_notif_state_allocate): New function.
2366 (remote_notif_state_xfree): New function.
2367 (_initialize_notif): Remove code to allocate queue.
2368 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2369 (struct remote_notif_state): New.
2370 (handle_notification): Update declaration.
2371 (remote_notif_process): Likewise.
2372 (remote_notif_register_async_event_handler): Remove.
2373 (remote_notif_unregister_async_event_handler): Remove.
2374 (remote_notif_state_allocate): Declare.
2375 (remote_notif_state_xfree): Declare.
2376 * remote.c (struct remote_state) <notif_state>: New field.
2377 (remote_close): Don't call
2378 remote_notif_unregister_async_event_handler. Call
2379 remote_notif_state_xfree.
2380 (remote_open_1): Don't call
2381 remote_notif_register_async_event_handler. Call
2382 remote_notif_state_allocate.
2383
2384 2013-10-04 Yao Qi <yao@codesourcery.com>
2385
2386 * varobj.c (create_child_with_value): Remove 'const' from the
2387 type of parameter 'name'.
2388 (varobj_add_child): Likewise.
2389 (install_dynamic_child): Remove 'const' from the type of
2390 parameter 'name'.
2391 (varobj_add_child): Likewise.
2392 (create_child_with_value): Likewise. Update comments. Don't
2393 duplicate 'name'.
2394 (update_dynamic_varobj_children): Duplicate 'name'
2395 and pass it to install_dynamic_child.
2396
2397 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2398
2399 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2400 conversion logic to occur after PyLong_Check. Comment on order
2401 change significance.
2402 * python/py-arch.c (archpy_disassemble): Comment on order of
2403 conversion for integers and longs.
2404
2405 2013-10-03 Pedro Alves <palves@redhat.com>
2406
2407 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2408 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2409 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2410 PTRACE_O_TRACEFORK is not supported.
2411 (linux_test_for_tracesysgood): New function.
2412 (linux_test_for_tracefork): New function, factored out from
2413 linux_check_ptrace_features, and also don't kill child_pid here.
2414
2415 2013-10-03 Tristan Gingold <gingold@adacore.com>
2416
2417 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2418 Remove verbose error reporting. Use detected state to
2419 thread_set_state call.
2420 (i386_darwin_dr_get): Fix return type. Remove verbose error
2421 report.
2422 Remove trailing spaces.
2423
2424 2013-10-02 Pedro Alves <palves@redhat.com>
2425
2426 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2427 val_print_optimized_out.
2428 * jv-valprint.c (java_print_value_fields): Likewise.
2429 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2430 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2431 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2432 new optimized out value.
2433 * findvar.c (address_from_register): Likewise.
2434 * frame.c (put_frame_register): Tweak error string to say the
2435 register was not saved, rather than optimized out.
2436 * infcmd.c (default_print_one_register_info): Adjust call to
2437 val_print_optimized_out. Use value_of_register instead of
2438 get_frame_register_value.
2439 * mi/mi-main.c (output_register): Use value_of_register instead of
2440 get_frame_register_value.
2441 * valprint.c (valprint_check_validity): Likewise.
2442 (val_print_optimized_out): New value parameter. If the value is
2443 lval_register, print <not saved> instead.
2444 (value_check_printable, val_print_scalar_formatted): Adjust calls
2445 to val_print_optimized_out.
2446 * valprint.h (val_print_optimized_out): New value parameter.
2447 * value.c (struct value) <optimized_out>: Extend comment.
2448 (error_value_optimized_out): New function.
2449 (require_not_optimized_out): Use it. Use a different string for
2450 lval_register values.
2451 * value.h (error_value_optimized_out): New declaration.
2452 * NEWS: Mention <not saved>.
2453
2454 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2455
2456 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2457 strcmp to compare two symtab filenames.
2458
2459 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2460
2461 * symtab.c (search_symbols_equal): Delete.
2462 (sort_search_symbols_remove_dups): Replace call to
2463 search_symbols_equal by call to compare_search_syms,
2464 adjusting as necessary.
2465
2466 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2467
2468 PR python/15579
2469 * python/python.c: Document gdb.execute command in Python help.
2470
2471 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2472
2473 * python/py-frame.c (frame_info_to_frame_object): Use
2474 gdbpy_convert_exception. Clean up Python object on failure.
2475
2476 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2477
2478 * python/lib/gdb/command/frame_filters.py
2479 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2480 (ShowFrameFilterPriority.invoke): Ditto.
2481
2482 2013-10-01 Keith Seitz <keiths@redhat.com>
2483
2484 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2485 (parse_linespec): Make 'argptr' const.
2486 Remove temporary cast of 'argptr' to const char **.
2487 (decode_line_full): Pass const pointer to parse_linespec.
2488 (decode_line_1): Likewise.
2489 (decode_objc): Make local variable 'new_argptr' const.
2490 (find_function_symbols): Remove temporary cast to char *
2491 to find_imps.
2492 * objc-lang.c (find_imps): Make argument 'method' const.
2493 Return const.
2494 * objc-lang.h (find_imps): Likewise.
2495
2496 2013-10-01 Keith Seitz <keiths@redhat.com>
2497
2498 * completer.c (skip_quoted_chars): Make all arguments const.
2499 Return const.
2500 (skip_quoted): Likewise.
2501 * completer.h (skip_quoted_chars): Likewise.
2502 (skip_quoted): Likewise.
2503 * defs.h (skip_quoted): Remove duplicate declaration.
2504 * jv-exp.y: Include completer.h.
2505 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2506 * p-exp.y: Include completer.h.
2507
2508 2013-10-01 Keith Seitz <keiths@redhat.com>
2509
2510 * c-exp.y (parse_number): Make first argument const.
2511 Make a copy of the input to manipulate.
2512 (c_parse_escape): Make first argument const.
2513 Make local variable 'tokptr' const.
2514 (parse_string_or_char): Make first two arguments const.
2515 (macro_original_text): Make const.
2516 (lex_one_token): Make local variable 'tokstart' const.
2517 Likewise for local variables named 'p'.
2518 Cast away const for struct stoken (temporary).
2519 * c-lang.h (c_parse_escpae): Make first argument const.
2520 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2521 const.
2522 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2523 var_string case.
2524 * f-exp.y (parse_number): Make first argument const.
2525 (match_string_literal): Make local variable 'tokstart'
2526 const.
2527 (yylex): Make local variable 'p' const.
2528 Cast away const for struct stoken (temporary).
2529 * go-exp.y (parse_number): Make first argument const.
2530 (parse_string_or_char): Likewise.
2531 Make local variable 'tokstart' const.
2532 (lex_one_token): Likewise for numerous locals called 'p'.
2533 Cast away const for struct stoken (temporary).
2534 * jv-exp.y (parse_number): Make first argument const.
2535 Make local variables 'tokstart' and 'tokptr' const.
2536 Cast away const for call to skip_quoted (temporary).
2537 (yylex): Make local variable 'p' const.
2538 Cast away const for struct stoken (temporary).
2539 * m2-exp.y (parse_number): Make local variable 'p' const.
2540 (yylex): Likewise for 'tokstart'.
2541 Cast away const for struct stoken (temporary).
2542 Make local variable 'p' const.
2543 * macroexp.c (get_character_constant): Pass a const string
2544 to c_parse_escape.
2545 (get_string_literal): Likewise.
2546 (macro_expand_next): Make first argument const.
2547 Cast away const for init_shared_buffer.
2548 * macroexp.h (macro_expand_next): Make first argument const.
2549 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2550 Pass a const string to c_parse_escape.
2551 Make local variables 'p' and 'namestart' const.
2552 * parse.c (lexptr): Make const.
2553 (prev_lexptr): Likewise.
2554 (find_template_name_end): Return const.
2555 Make argument const, too.
2556 (parse_exp_in_context): Make first argument const.
2557 Remove the entire const_hack.
2558 (parse_exp_in_context_1): Make first argument const.
2559 * parser-defs.h (find_template_name_end): Return const.
2560 Make argument const, too.
2561 (lexptr): Make const.
2562 (prev_lexptr): Likewise.
2563 * utils.c (parse_escape): Make second argument const.
2564 * utils.h (parse_escape): Likewise.
2565
2566 2013-10-01 Keith Seitz <keiths@redhat.com>
2567
2568 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2569 is now const.
2570 (block_lookup): Make 'raw_name' and 'name' const.
2571 * ada-lex.l (processString): Update for struct stoken.ptr.
2572 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2573 (operator_stoken): Likewise.
2574 (lex_one_token): Remove temporary cast to char * for
2575 'yylval.sval.ptr'.
2576 * f-exp.y (yylex): Likewise.
2577 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2578 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2579 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2580 'yylval.sval.ptr'.
2581 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2582 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2583 * linespec.c (struct ls_parser): Make 'stream' const.
2584 (find_parameter_list_end): Make argument 'input' and local
2585 variable 'p' const.
2586 (linespec_lexer_lex_string): Make local variables 'start' and
2587 'p' const.
2588 Use skip_spaces_const instead of skip_spaces.
2589 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2590 const.
2591 (parse_linespec): Temporarily cast 'argptr' to const for
2592 'parser->lexer.stream'.
2593 * m2-exp.y (yylex): Remove temporary cast to char * for
2594 'yylval.sval.ptr'.
2595 * objc-lang.c (add_msglist): Make local variable 'p' const.
2596 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2597 (exp : STRING): Make 'sp' const.
2598 (parse_number): Make argument 'p' const.
2599 * parser-defs.h (struct stoken): Make 'ptr' const.
2600
2601 2013-10-01 Doug Evans <dje@google.com>
2602
2603 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2604
2605 2013-10-01 Yao Qi <yao@codesourcery.com>
2606
2607 * varobj.c (c_value_of_root): Remove declaration.
2608 (cplus_value_of_root, java_value_of_root): Likewise.
2609 (ada_value_of_root): Likewise.
2610 (struct language_specific) <value_of_root>: Remove.
2611 (languages): Update initialization.
2612 (check_scope): Move earlier.
2613 (c_value_of_root): Move earlier and rename to ...
2614 (value_of_root_1): ... this.
2615 (value_of_root): Caller update.
2616 (cplus_value_of_root, java_value_of_root): Remove.
2617 (ada_value_of_root): Remove.
2618
2619 2013-10-01 Yao Qi <yao@codesourcery.com>
2620
2621 * varobj.c (varobj_format_string): Remove "unknown".
2622 (languages): Remove the first element.
2623 * varobj.h (enum varobj_languages): Remove vlang_c.
2624
2625 2013-10-01 Yao Qi <yao@codesourcery.com>
2626
2627 * varobj.c (struct language_specific) <language>: Remove.
2628 (languages): Update the initialization.
2629
2630 2013-10-01 Yao Qi <yao@codesourcery.com>
2631
2632 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2633 "solib-target.h". Include "windows-tdep.h".
2634 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2635 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2636 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2637 windows-tdep.o to gdb_target_obs.
2638
2639 2013-10-01 Yao Qi <yao@codesourcery.com>
2640
2641 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2642 "solib-target.h".
2643 (amd64_windows_init_abi): Don't call set_solib_ops and
2644 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2645 windows_init_abi instead.
2646 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2647 "solib-target.h".
2648 (i386_cygwin_init_abi): Don't call set_solib_ops,
2649 set_gdbarch_has_dos_based_file_system and
2650 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2651 windows_init_abi instead.
2652 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2653 (windows_init_abi): New function.
2654 (windows_iterate_over_objfiles_in_search_order): Make it
2655 static.
2656 * windows-tdep.h (windows_init_abi): Declare.
2657 (windows_iterate_over_objfiles_in_search_order): Remove
2658 declaration.
2659
2660 2013-10-01 Jerome Guitton <guitton@adacore.com>
2661
2662 Checked in by Joel Brobecker <brobecker@adacore.com>
2663 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2664 incomplete dictionnary instead of None in case of missing
2665 environment variables.
2666 (elinos_init): in case of an incomplete environment, best
2667 effort to load system libraries instead of abort.
2668
2669 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2670
2671 * ada-lang.c (ada_has_this_exception_support): Ignore
2672 mst_solib_trampoline minimal symbols.
2673
2674 2013-09-30 Tristan Gingold <gingold@adacore.com>
2675
2676 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2677 hardware watchpoint.
2678 (i386_darwin_dr_set): Support 32 and 64 bit states.
2679 (i386_darwin_dr_get): Likewise.
2680 (i386_darwin_dr_set_control): Make static.
2681 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2682 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2683
2684 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2685
2686 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2687 Replace TIDGET with ptid_get_lwp.
2688 Replace GET_LWP with ptid_get_lwp.
2689 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2690 Replace BUILD_THREAD with ptid_build.
2691 Replace BUILD_LWP with ptid_build.
2692 Replace PIDGET with ptid_get_pid.
2693 Replace TIDGET with ptid_get_lwp.
2694 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2695 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2696 Replace TIDGET with ptid_get_lwp.
2697 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2698 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2699 Replace TIDGET with ptid_get_lwp.
2700 Replace GET_LWP with ptid_get_lwp.
2701 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2702 * auxv.c: Likewise.
2703 * breakpoint.c: Likewise.
2704 * common/ptid.c (ptid_is_pid): Condense check for
2705 null_ptid and minus_one_ptid.
2706 (ptid_lwp_p): New function.
2707 (ptid_tid_p): New function.
2708 * common/ptid.h: Update comments for accessors.
2709 (ptid_lwp_p): New prototype.
2710 (ptid_tid_p): New prototype.
2711 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2712 * gcore.c: Replace PIDGET with ptid_get_pid.
2713 * gdbthread.h: Likewise.
2714 * gnu-nat.c: Likewise.
2715 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2716 Replace TIDGET with ptid_get_lwp.
2717 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2718 * hppanbsd-nat.c: Likewise.
2719 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2720 Replace TIDGET with ptid_get_lwp.
2721 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2722 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2723 * infcmd.c: Likewise.
2724 * inferior.h: Likewise.
2725 * inflow.c: Likewise.
2726 * infrun.c: Likewise.
2727 * linux-fork.c: Likewise.
2728 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2729 Replace GET_PID with ptid_get_pid.
2730 Replace is_lwp with ptid_lwp_p.
2731 Replace GET_LWP with ptid_get_lwp.
2732 Replace BUILD_LWP with ptid_build.
2733
2734 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2735
2736 * common/linux-btrace.c: Move sys/syscall.h out of the
2737 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2738 Also check for SYS_perf_event_open before attempting to buid.
2739
2740 2013-09-27 Doug Evans <dje@google.com>
2741
2742 * dwarf2read.c (dwarf2_section_info): Add comment.
2743 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2744 All uses updated.
2745 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2746 (dwarf2_read_section): Delete unused local "header". Add section
2747 name to error message.
2748 (create_dwo_in_dwp): Tweak comment.
2749 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2750
2751 * dwarf2read.c (die_reader_specs): Tweak comment.
2752 (get_section_bfd_owner, get_section_bfd_section): New functions.
2753 (get_section_name, get_section_file_name): New functions.
2754 (get_section_id, get_section_flags): New functions.
2755 (*): Use new functions to access section fields.
2756
2757 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2758 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2759 arg "htab". All callers updated.
2760 (create_debug_types_hash_table): Remove redundant copy of
2761 abbrev_section.
2762 (create_dwo_in_dwp): Tweak comments.
2763 (read_str_index): Tweak comment. Record dwarf form name in static
2764 local.
2765
2766 2013-09-27 Pedro Alves <palves@redhat.com>
2767
2768 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2769 (remote_filename_p): Add comment.
2770 * remote.c (remote_filename_p): Adjust to use
2771 REMOTE_SYSROOT_PREFIX.
2772 * solib.c (solib_find): When deciding whether we need to add a
2773 directory separator, check whether the sysroot is "remote:"
2774 instead of checking whether the patch has a drive spec. Add
2775 comments.
2776
2777 2013-09-27 Pedro Alves <palves@redhat.com>
2778
2779 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2780 Delete fields.
2781 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2782 directly.
2783
2784 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2785
2786 Fix set debug frame output.
2787 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2788 SENTINEL_FRAME entry lower to match enum frame_type order.
2789
2790 2013-09-26 Pierre Muller <muller@sourceware.org>
2791
2792 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2793 AMD64_R15_REGNUM when a register index is expected.
2794 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2795 Substitute in array.
2796 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2797 (amd64_push_arguments): Substitute in integer_regnum array.
2798
2799 2013-09-25 Doug Evans <dje@google.com>
2800
2801 * objfiles.c (allocate_objfile): Move comment to better place.
2802
2803 New option "set debug symfile on".
2804 * NEWS: Mention "set debug symfile".
2805 * Makefile.in (SFILES): Add symfile-debug.c.
2806 (COMMON_OBS): Add symfile-debug.o.
2807 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2808 objfile's symbol functions.
2809 * objfiles.h (objfile_set_sym_fns): Declare.
2810 * symfile-debug.c: New file.
2811 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2812 objfile's symbol functions.
2813 (reread_symbols): Ditto.
2814
2815 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2816 All uses updated.
2817 (add_symtab_fns): Update prototype.
2818 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2819 (registered_sym_fns): ... this.
2820 (symtab_fns): Update.
2821 (add_symtab_fns): New arg "flavour". All callers updated.
2822 (find_sym_fns): Rewrite to use new sym_fns registry.
2823
2824 * symfile.h (struct sym_fns): Add "objfile" argument to
2825 sym_read_linetable. All uses updated.
2826
2827 * symtab.c (domain_name, search_domain_name): New functions.
2828 * symtab.h (domain_name, search_domain_name): Declare.
2829
2830 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2831 map_matching_symbols so objfile is first. All uses updated.
2832 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2833 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2834
2835 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2836
2837 PR shlibs/8882
2838 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2839 link map entries.
2840
2841 2013-09-24 Doug Evans <dje@google.com>
2842
2843 * objfiles.c (free_objfile): Move comment.
2844
2845 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2846
2847 * ada-exp.y (string_to_operator): Delete.
2848 (dummy_string_to_ada_operator): Delete.
2849
2850 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2851
2852 Revert:
2853 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2854 amd64-tdep.c.
2855 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2856 call_dummy_integer_regs, and classify.
2857 * amd64-tdep.h (amd64_classify): Add declaration.
2858 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2859 (amd64_reg_class): Delete, moved to i386-tdep.h.
2860 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2861 Replace call to amd64_classify by call to tdep->classify.
2862 (amd64_push_arguments): Get the list of registers to use for
2863 passing integer parameters from the gdbarch tdep structure,
2864 rather than using a hardcoded one. Replace calls to amd64_classify
2865 by calls to tdep->classify.
2866 (amd64_push_dummy_call): Get the register number used for
2867 the "hidden" argument from tdep->call_dummy_integer_regs.
2868 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2869 and tdep->call_dummy_integer_regs. Set tdep->classify.
2870
2871 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2872
2873 Revert:
2874 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2875 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2876 where tdep->memory_args_by_pointer is non-zero.
2877
2878 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2879
2880 Revert:
2881 * i386-tdep.h (struct gdbarch_tdep): Add new field
2882 integer_param_regs_saved_in_caller_frame.
2883 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2884 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2885
2886 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2887
2888 * amd64-windows-tdep.c: #include "value.h"
2889 (amd64_windows_classify): Delete.
2890 (amd64_windows_passed_by_integer_register)
2891 (amd64_windows_passed_by_xmm_register)
2892 (amd64_windows_passed_by_pointer)
2893 (amd64_windows_adjust_args_passed_by_pointer)
2894 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2895 (amd64_windows_push_dummy_call): New functions.
2896 (amd64_windows_init_abi): Remove setting of
2897 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2898 tdep->classify, tdep->memory_args_by_pointer and
2899 tdep->integer_param_regs_saved_in_caller_frame.
2900 Add call to set_gdbarch_push_dummy_call.
2901
2902 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2903
2904 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2905 objfile->original_name.
2906
2907 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2908
2909 Pass down original filename for objfile.
2910 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2911 * elfread.c (elf_symfile_read): Likewise.
2912 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2913 longer set ORIGINAL_NAME.
2914 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2915 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2916 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2917 symbol_file_add_from_bfd call.
2918 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2919 (macho_check_dsym): Add parameter filenamep. Change function comment.
2920 Set *filenamep.
2921 (macho_symfile_read): New variable dsym_filename. Update
2922 macho_check_dsym call. Use it for symbol_file_add_separate.
2923 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2924 it. Use it for objfile->original_name.
2925 (objfile_name): Return OBFD's filename, if available.
2926 * objfiles.h (allocate_objfile): Add new parameter name.
2927 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2928 * symfile-mem.c (symbol_file_add_from_memory): Update
2929 symbol_file_add_from_bfd call.
2930 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2931 comment for it.
2932 (symbol_file_add_with_addrs): New parameter name, add function comment
2933 for it. Remove variable name. Update allocate_objfile call.
2934 (symbol_file_add_separate): New parameter name, add function comment
2935 for it. Update symbol_file_add_with_addrs call.
2936 (symbol_file_add_from_bfd): New parameter name. Update
2937 symbol_file_add_with_addrs call.
2938 (symbol_file_add): Update symbol_file_add_from_bfd call.
2939 (reread_symbols): New variable original_name. Save
2940 objfile->original_name by it.
2941 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
2942 second parameter.
2943
2944 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2945
2946 Code cleanup: Add objfile_name accessor function.
2947 * ada-lang.c (is_known_support_routine): Use objfile_name.
2948 * auto-load.c (source_gdb_script_for_objfile)
2949 (auto_load_objfile_script): Likewise.
2950 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
2951 * dbxread.c (dbx_symfile_read): Likewise.
2952 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2953 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
2954 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
2955 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
2956 (lookup_dwp_signatured_type, lookup_dwo_unit)
2957 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
2958 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
2959 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
2960 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
2961 (dwarf2_record_block_ranges, read_common_block, read_typedef)
2962 (read_subrange_type, load_partial_dies, read_partial_die)
2963 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
2964 (die_containing_type, build_error_marker_type, lookup_die_type)
2965 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
2966 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
2967 (get_DW_AT_signature_type, write_psymtabs_to_index)
2968 (save_gdb_index_command): Likewise.
2969 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
2970 Likewise.
2971 * expprint.c (dump_subexp_body_standard): Likewise.
2972 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
2973 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
2974 original_name.
2975 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
2976 obj_name, use objfile_name for it, use the variable.
2977 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
2978 Use objfile_name.
2979 * machoread.c (macho_symtab_read, macho_check_dsym)
2980 (macho_symfile_relocate): Likewise.
2981 * maint.c (maintenance_translate_address): Likewise.
2982 * minidebug.c (find_separate_debug_file_in_section): Likewise.
2983 * minsyms.c (install_minimal_symbols): Likewise.
2984 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
2985 original_name.
2986 (filter_overlapping_sections): Use objfile_name.
2987 (objfile_name): New function.
2988 * objfiles.h (struct objfile): Rename field name to original_name.
2989 (objfile_name): New prototype.
2990 * printcmd.c (sym_info, address_info): Use objfile_name.
2991 * probe.c (parse_probes, collect_probes, compare_probes)
2992 (info_probes_for_ops): Likewise.
2993 * progspace.c (clone_program_space): Likewise.
2994 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
2995 (maintenance_info_psymtabs): Likewise.
2996 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2997 (source_section_scripts): Likewise.
2998 * python/py-objfile.c (objfpy_get_filename): Likewise.
2999 * python/py-progspace.c (pspy_get_filename): Likewise.
3000 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3001 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3002 * solib.c (solib_read_symbols): Likewise.
3003 * stabsread.c (scan_file_globals): Likewise.
3004 * stap-probe.c (handle_stap_probe): Likewise.
3005 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3006 (find_separate_debug_file_by_debuglink): Likewise.
3007 (reread_symbols): Likewise. Use the objfile field name renamed to
3008 original_name.
3009 (allocate_symtab): Use objfile_name.
3010 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3011 (dump_objfile, dump_msymbols, dump_symtab_1)
3012 (maintenance_print_msymbols, maintenance_print_objfiles)
3013 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3014 * target.c (target_translate_tls_address, target_info): Likewise.
3015 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3016 objfile_name.
3017
3018 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3019
3020 Code cleanup.
3021 * probe.c (parse_probes): Rename variable objfile_name to
3022 objfile_namestr.
3023
3024 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3025
3026 Remove solib-sunos.c.
3027 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3028 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3029 * objfiles.c (rt_common_objfile): Remove.
3030 (free_objfile): Remove rt_common_objfile comparison.
3031 * objfiles.h (rt_common_objfile): Remove.
3032 * solib-sunos.c: Remove.
3033 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3034
3035 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 Remove a.out NetBSD and OpenBSD hosts.
3038 * NEWS (Removed native configurations): New.
3039 * config/arm/nbsdaout.mh: Remove.
3040 * config/i386/nbsdaout.mh: Remove.
3041 * config/i386/obsdaout.mh: Remove.
3042 * config/m68k/nbsdaout.mh: Remove.
3043 * config/sparc/nbsdaout.mh: Remove.
3044 * config/vax/nbsdaout.mh: Remove.
3045 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3046 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3047 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3048 error.
3049 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3050 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3051 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3052
3053 2013-09-23 Tom Tromey <tromey@redhat.com>
3054
3055 * linespec.c (struct minsym_and_objfile): Remove.
3056 (minsym_and_objfile_d): Remove.
3057 (struct linespec, struct collect_info, linespec_parse_basic)
3058 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3059 (compare_msymbols, find_method, find_function_symbols)
3060 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3061 (add_minsym, search_minsyms_for_name): Update.
3062
3063 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3064
3065 * regcache.c: Add include of valprint.h.
3066 (dump_endian_bytes): Delete.
3067 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3068
3069 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3070
3071 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3072
3073 2013-09-19 Pedro Alves <palves@redhat.com>
3074
3075 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3076 breakpoints.
3077
3078 2013-09-19 Pedro Alves <palves@redhat.com>
3079 Thomas Schwinge <thomas@codesourcery.com>
3080 Yue Lu <hacklu.newborn@gmail.com>
3081
3082 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3083 Take a gdb_byte pointer instead of a char pointer.
3084
3085 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3086 gnu_xfer_partial helper.
3087 (gnu_xfer_partial): New function.
3088 (gnu_target): Don't install a deprecated_xfer_memory hook.
3089 Install a to_xfer_partial hook.
3090
3091 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3092
3093 Constification.
3094 * main.c (captured_main): Replace catch_command_errors by
3095 catch_command_errors_const. Twice.
3096 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3097 (symbol_file_add): Make name parameter const.
3098 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3099 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3100 variable name. Change their usage accordingly.
3101 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3102 const.
3103 (symbol_file_add_main): Make args parameter const.
3104
3105 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3106 Ulrich Weigand <uweigand@de.ibm.com>
3107
3108 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3109 of c_value member.
3110 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3111
3112 2013-09-18 Pedro Alves <palves@redhat.com>
3113 Yue Lu <hacklu.newborn@gmail.com>
3114
3115 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3116 (gnu_create_inferior)
3117 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3118 (set_sig_thread_cmd): Use the lwpid field of ptids to
3119 store/extract thread ids instead of the tid field.
3120 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3121
3122 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3123
3124 * infcmd.c (default_print_one_register_info): Add detection of
3125 optimized out values.
3126 (default_print_registers_info): Switch to using
3127 get_frame_register_value.
3128
3129 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3130
3131 * infrun.c (handle_inferior_event): Check if we know the
3132 function start address before setting a resume breakpoint.
3133
3134 2013-09-18 Pedro Alves <palves@redhat.com>
3135
3136 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3137 minus_one_ptid instead of looking at the ptid's tid field and
3138 comparing that to -1.
3139
3140 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3141
3142 * main.h (get_gdb_program_name): Remove extra whitespace.
3143
3144 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3145
3146 * main.h (get_gdb_program_name): Add declaration.
3147 * main.c (get_gdb_program_name): Add definition.
3148
3149 2013-09-17 Doug Evans <dje@google.com>
3150
3151 * dwarf2read.c: Move definitions of complaint functions to after
3152 forward declarations of local functions.
3153
3154 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3155 Pedro Alves <palves@redhat.com>
3156
3157 PR gdb/11568
3158 * breakpoint.c (remove_threaded_breakpoints): New function.
3159 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3160 as thread_exit observer.
3161
3162 2013-09-17 Pedro Alves <palves@redhat.com>
3163
3164 PR gdb/15911
3165 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3166 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3167 * corelow.c (core_open):
3168 * frame.h (print_stack_frame, print_frame_info): New
3169 'set_current_sal' parameter.
3170 * infcmd.c (finish_command, kill_command): Adjust call to
3171 print_stack_frame.
3172 * inferior.c (inferior_command): Likewise.
3173 * infrun.c (normal_stop): Likewise.
3174 * linux-fork.c (linux_fork_context): Likewise.
3175 * record-full.c (record_full_goto_entry, record_full_restore):
3176 Likewise.
3177 * remote-mips.c (common_open): Likewise.
3178 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3179 Use it.
3180 (print_frame_info): New 'set_current_sal' parameter. Set the last
3181 displayed sal depending on the new paremeter instead of looking at
3182 print_what.
3183 (backtrace_command_1, select_and_print_frame, frame_command)
3184 (current_frame_command, up_command, down_command): Adjust call to
3185 print_stack_frame.
3186 * thread.c (print_thread_info, restore_selected_frame)
3187 (do_captured_thread_select): Adjust call to print_stack_frame.
3188 * tracepoint.c (tfind_1): Likewise.
3189 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3190 (mi_cmd_stack_info_frame): Likewise.
3191 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3192 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3193
3194 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3195
3196 * value.c (isvoid_internal_fn): Replace "parameter" with
3197 "argument".
3198
3199 2013-09-16 Stan Shebs <stan@codesourcery.com>
3200
3201 * README: Update references to writing code for GDB.
3202 * configure.ac (build_warnings): Remove obsolete comment.
3203 * configure: Regenerate.
3204 * gdbarch.sh: Remove references to gdbint.texinfo.
3205 * gdbarch.h: Regenerate.
3206 * gdbtypes.c (objfile_type): Remove comments referencing internals
3207 manual and D10V.
3208
3209 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3210
3211 * NEWS: Mention new convenience function $_isvoid.
3212 * value.c (isvoid_internal_fn): New function.
3213 (_initialize_values): Add new convenience function $_isvoid.
3214
3215 2013-09-16 Pierre Muller <muller@sourceware.org>
3216
3217 * arm-linux-tdep.c: Add "elf/common.h" header.
3218 Remove AT_HWCAP macro definintion as it is provided in
3219 added include file.
3220 * s390-tdep.c: Remove system header <elf.h>
3221 Add "elf/common.h" header for AT_HWCAP definition.
3222 (s390_core_read_description): Use correct CORE_ADDR
3223 for hwcap local variable used as third parameter
3224 of function target_auxv_search.
3225
3226 2013-09-14 Pierre Muller <muller@sourceware.org>
3227 Tom Tromey <tromey@redhat.com>
3228 Pedro Alves <palves@redhat.com>
3229
3230 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3231 mode if operating system doesn't know O_CLOEXEC.
3232
3233 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3234
3235 Code cleanup.
3236 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3237 inner block.
3238
3239 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3240
3241 * NEWS: Mention TDB support.
3242 * features/s390-tdb.xml: New file.
3243 * features/s390-te-linux64.xml: New file.
3244 * features/s390x-te-linux64.xml: New file.
3245 * features/Makefile (WHICH): Add new tdescs above.
3246 (s390-te-linux64-expedite): Set.
3247 (s390x-te-linux64-expedite): Set.
3248 * features/s390-te-linux64.c: New file (generated).
3249 * features/s390x-te-linux64.c: New file (generated).
3250 * regformats/s390-te-linux64.dat: New file (generated).
3251 * regformats/s390x-te-linux64.dat: New file (generated).
3252 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3253 (HWCAP_S390_TE): Likewise.
3254 (S390_TDB_DWORD0_REGNUM): Likewise.
3255 (S390_TDB_DWORD0_REGNUM): Likewise.
3256 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3257 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3258 (S390_TDB_ATIA_REGNUM): Likewise.
3259 (S390_TDB_R0_REGNUM): Likewise.
3260 (S390_TDB_R1_REGNUM): Likewise.
3261 (S390_TDB_R2_REGNUM): Likewise.
3262 (S390_TDB_R3_REGNUM): Likewise.
3263 (S390_TDB_R4_REGNUM): Likewise.
3264 (S390_TDB_R5_REGNUM): Likewise.
3265 (S390_TDB_R6_REGNUM): Likewise.
3266 (S390_TDB_R7_REGNUM): Likewise.
3267 (S390_TDB_R8_REGNUM): Likewise.
3268 (S390_TDB_R9_REGNUM): Likewise.
3269 (S390_TDB_R10_REGNUM): Likewise.
3270 (S390_TDB_R11_REGNUM): Likewise.
3271 (S390_TDB_R12_REGNUM): Likewise.
3272 (S390_TDB_R13_REGNUM): Likewise.
3273 (S390_TDB_R14_REGNUM): Likewise.
3274 (S390_TDB_R15_REGNUM): Likewise.
3275 (S390_NUM_REGS): Increase.
3276 (S390_IS_TDBREGSET_REGNUM): New macro.
3277 (s390_regmap_tdb): Declare.
3278 (s390_sizeof_tdbregset): Define.
3279 (tdesc_s390_te_linux64): Declare.
3280 (tdesc_s390x_te_linux64): Likewise.
3281 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3282 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3283 (s390_regmap_tdb): New regmap.
3284 (s390_supply_tdb_regset): New function.
3285 (s390_tdb_regset): New regset.
3286 (s390_linux64v2_regset_sections): Add TDB regset to list.
3287 (s390x_linux64v2_regset_sections): Likewise.
3288 (s390_regset_from_core_section): Recognize TDB core note section.
3289 (s390_core_read_description): If HWCAP indicates TE support,
3290 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3291 (s390_gdbarch_init): Handle TDB regset.
3292 (_initialize_s390_tdep): Initialize new tdescs.
3293 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3294 (have_regset_tdb): New variable.
3295 (s390_native_supply): Support register invalidation.
3296 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3297 (check_regset): Treat ENODATA as "regset exists".
3298 (s390_linux_fetch_inferior_registers): Add TDB.
3299 (s390_read_description): Check for TDB existence and select
3300 appropriate tdesc.
3301 * gdbserver/Makefile.in (clean): Add removal of new makefile
3302 targets.
3303 (s390-te-linux64.c): New makefile target.
3304 (s390x-te-linux64.c): Likewise.
3305 * gdbserver/configure.srv (srv_regobj): Append new objects
3306 s390-te-linux64.o and s390x-te-linux64.o.
3307 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3308 s390x-te-linux64.xml, and s390-tdb.xml.
3309 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3310 declaration.
3311 (tdesc_s390_te_linux64): Likewise.
3312 (init_registers_s390x_te_linux64): Likewise.
3313 (tdesc_s390x_te_linux64): Likewise.
3314 (s390_check_regset): Treat ENODATA as "regset exists".
3315 (s390_arch_setup): Add TDB regset support.
3316 (initialize_low_arch): Initialize registers for new tdescs.
3317
3318 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3319
3320 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3321 (S390_IS_FPREGSET_REGNUM): New macro.
3322 * s390-tdep.c (s390_dwarf_regmap): Make const.
3323 (regnum_is_gpr_full): New function for replacing repeated code.
3324 (s390_pseudo_register_name): Use it.
3325 (s390_pseudo_register_type): Likewise.
3326 (s390_pseudo_register_read): Likewise.
3327 (s390_pseudo_register_write): Likewise.
3328 (s390_unwind_pseudo_register): Likewise.
3329 (s390_regmap_gregset): New format for regmap.
3330 (s390x_regmap_gregset): Likewise.
3331 (s390_regmap_fpregset): Likewise.
3332 (s390_regmap_upper): Likewise.
3333 (s390_regmap_last_break): Likewise.
3334 (s390_regmap_system_call): Likewise.
3335 (s390_supply_regset): Adjust to new regmap format.
3336 (s390_collect_regset): Likewise.
3337 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3338 (s390_native_collect): Likewise.
3339 (supply_gregset): Likewise.
3340 (fill_gregset): Likewise.
3341 (supply_fpregset): Likewise.
3342 (fill_fpregset): Likewise.
3343 (fetch_regset): Likewise.
3344 (store_regset): Likewise.
3345 (s390_linux_fetch_inferior_registers): Likewise.
3346 (s390_linux_fetch_inferior_registers): Likewise.
3347
3348 2013-09-12 Andrew Pinski <apinski@cavium.com>
3349
3350 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3351
3352 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3353
3354 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3355
3356 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3357
3358 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3359
3360 2013-09-06 Pedro Alves <palves@redhat.com>
3361
3362 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3363 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3364 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3365 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3366 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3367 gdb_stdlog.
3368
3369 2013-09-06 Pedro Alves <palves@redhat.com>
3370
3371 * remote-sim.c (dump_mem): Constify buf parameter.
3372 gdbsim_xfer_inferior_memory): Rename to ...
3373 (gdbsim_xfer_memory): ... this. Adjust interface as
3374 target_xfer_partial helper.
3375 (gdbsim_xfer_partial): New function.
3376 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3377 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3378
3379 2013-09-06 Pedro Alves <palves@redhat.com>
3380
3381 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3382 host_address_to_string, and send debug output to gdb_stdlog.
3383
3384 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3385
3386 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3387 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3388 gdb_target_obs for cris target.
3389 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3390 (cris_gdbarch_init): Move calls to
3391 set_gdbarch_fetch_tls_load_module_address and
3392 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3393 Add call to gdbarch_init_osabi.
3394 * cris-linux-tdep.c: New file.
3395 * cris-tdep.h: New file.
3396
3397 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3398
3399 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3400 to deprecated_init_ui_hook.
3401
3402 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3403
3404 * cli/cli-interp.c (_initialize_cli_interp): Add a
3405 command_loop_proc to interp_procs.
3406 * event-top.c (cli_command_loop): Change signature to match
3407 interp_command_loop_ftype.
3408 * event-top.h (cli_command_loop): Same.
3409 * interps.c (interp_new): Require every interpreter to have a
3410 command_loop_proc.
3411 (current_interp_command_loop): Just call the command_loop_proc on
3412 the current interpreter.
3413 * tui/tui-interp.c (_initialize_tui_interp): Add a
3414 command_loop_proc to interp_procs.
3415
3416 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3417
3418 * cris-tdep.c (cris_gdbarch_init): Add call to
3419 get_gdbarch_fetch_tls_load_module_address.
3420
3421 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3422
3423 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3424 (cris_elf_gregset_t): Rename from elf_gregset_t.
3425 (crisv32_elf_gregset_t): Adjust.
3426 (cris_supply_gregset, fetch_core_registers): Adjust.
3427
3428 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3429
3430 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3431
3432 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3433
3434 * defs.h (deprecated_command_loop_hook): Remove, including
3435 references in comments.
3436 * interps.c (current_interp_command_loop): No longer use
3437 deprecated_command_loop_hook.
3438 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3439 setup.
3440 * top.c (deprecated_command_loop_hook): Remove.
3441
3442 2013-09-05 Pedro Alves <palves@redhat.com>
3443
3444 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3445 local is now int instead of ULONGEST. Print it with %d
3446 instead of paddress.
3447
3448 2013-09-05 Tristan Gingold <gingold@adacore.com>
3449
3450 * MAINTAINERS: Remove avr maintainership.
3451
3452 2013-09-05 Pedro Alves <palves@redhat.com>
3453
3454 * findvar.c (value_of_register): Rework in terms of
3455 value_of_register_lazy.
3456
3457 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3458
3459 * symfile.c (add_symbol_file_command): Remove trailing
3460 whitespaces and blank line after comment.
3461
3462 2013-09-05 Pedro Alves <palves@redhat.com>
3463
3464 * tui/tui-regs.c (tui_register_format): Don't look at the
3465 register's name here. Return string representing register
3466 value instead of storing it in the data element.
3467 (tui_get_register): Compare register string representations
3468 instead of register value states and contents.
3469
3470 2013-09-05 Pedro Alves <palves@redhat.com>
3471
3472 PR tui/15933
3473 * tui/tui-regs.c (tui_show_registers): Show registers of the
3474 selected frame, not the current frame.
3475
3476 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3477
3478 * MAINTAINERS (Write After Approval): Add myself to the list.
3479
3480 2013-09-04 Doug Evans <dje@google.com>
3481
3482 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3483 (queue_and_load_dwo_tu): New function.
3484 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3485 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3486 Make dependent_cu optional.
3487 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3488 and an older .gdb_index is in use, queue and load all its TUs too.
3489
3490 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3491
3492 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3493 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3494 variable search_flags.
3495 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3496 (OPF_RETURN_REALPATH): ... here.
3497 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3498 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3499 call. Twice.
3500 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3501 openp call.
3502 * solib.c (solib_find): Likewise. Four times.
3503 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3504 in the function comment and for the realpath_fptr variable.
3505 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3506 (find_and_open_source): Likewise. Twice.
3507 * symfile.c (symfile_bfd_open): Likewise, also twice.
3508
3509 2013-09-04 Doug Evans <dje@google.com>
3510
3511 * progspace.c (save_current_space_and_thread): Remove unnecessary
3512 call to save_current_inferior.
3513
3514 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3515
3516 * sh64-tdep.c (sh64_do_register): Return after printing message
3517 about unavailable register contents.
3518
3519 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3520 Pedro Alves <palves@redhat.com>
3521
3522 * symfile.c (add_symbol_file_command): Error out on unknown
3523 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3524 options and collapse into single conditional branch.
3525
3526 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3527
3528 * inf-child.c (inf_child_follow_fork): New parameter
3529 detach_fork.
3530 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3531 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3532 * inferior.h (detach_fork): Remove.
3533 * infrun.c (detach_fork): Adjust comment and make it
3534 static.
3535 (follow_fork): Pass detach_fork parameter to
3536 target_follow_fork.
3537 * linux-nat.c (linux_child_follow_fork): New parameter
3538 detach_fork.
3539 * target.c (target_follow_fork): New parameter detach_fork.
3540 Pass detach_fork as parameter and print its value.
3541 * target.h (struct target_ops) <to_follow_fork>: New int
3542 parameter.
3543 (target_follow_fork): New parameter detach_fork.
3544
3545 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3546
3547 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3548 Replace sec->bfd by sec->the_bfd_section->owner.
3549
3550 2013-09-03 Yao Qi <yao@codesourcery.com>
3551
3552 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3553 from linux_has_shared_address_space.
3554 (linux_has_shared_address_space): Call linux_is_uclinux.
3555 * linux-tdep.h (linux_is_uclinux): Declare.
3556 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3557 linux_is_uclinux.
3558
3559 2013-09-03 Yao Qi <yao@codesourcery.com>
3560
3561 * config/djgpp/fnchange.lst: Remove entry of
3562 i386-interix-nat.c and i386-interix-tdep.c.
3563 * configure.ac: Remove '*-*-interix*'.
3564 * configure: Re-generated.
3565 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3566 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3567 obsolete comments.
3568 * osabi.c (gdb_osabi_names): Remove "Interix".
3569
3570 2013-09-03 Yao Qi <yao@codesourcery.com>
3571
3572 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3573
3574 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3575
3576 * record.h (record_print_flag) <record_print_src_line,
3577 record_print_insn_range>: Rename into ...
3578 (record_print_flag) <record_print_src_line,
3579 record_print_insn_range>: ... this. Update all users.
3580
3581 2013-09-02 Pierre Muller <muller@sourceware.org>
3582
3583 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3584 error code.
3585
3586 2013-09-02 Pierre Muller <muller@sourceware.org>
3587
3588 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3589 by use of plongest function.
3590
3591 2013-09-02 Tristan Gingold <gingold@adacore.com>
3592
3593 * NEWS: Add entry mentioning support for native Windows x64
3594 SEH data.
3595
3596 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3597 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3598 (struct amd64_windows_frame_cache): New struct.
3599 (amd64_windows_w2gdb_regnum): New global.
3600 (pc_in_range, amd64_windows_frame_decode_epilogue)
3601 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3602 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3603 (amd64_windows_frame_this_id): New functions.
3604 (amd64_windows_frame_unwind): New static global.
3605 (amd64_windows_skip_prologue): New function.
3606 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3607 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3608 with amd64_windows_skip_prologue.
3609
3610 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3611
3612 GDB 7.6.1 released.
3613
3614 2013-08-30 Pedro Alves <palves@redhat.com>
3615
3616 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3617 SRC_AND_LOC.
3618
3619 2013-08-30 Pedro Alves <palves@redhat.com>
3620
3621 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3622 warning text.
3623
3624 2013-08-30 Pedro Alves <palves@redhat.com>
3625
3626 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3627 Adjust arguments to print_stack_frame.
3628
3629 2013-08-30 Pedro Alves <palves@redhat.com>
3630
3631 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3632
3633 2013-08-30 Pedro Alves <palves@redhat.com>
3634
3635 * frame.h (show_and_print_stack_frame): Delete declaration.
3636
3637 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3638
3639 PR python/15461
3640 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3641 (archpy_name): Check for valid architecture.
3642 (archpy_disassemble): Ditto.
3643
3644 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3645
3646 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3647 instead of "long long" in call to ptrace64.
3648
3649 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3650
3651 * mi/mi-interp.c (mi_command_loop): Change signature to match
3652 interp_command_loop_ftype.
3653 (mi1_command_loop): Remove.
3654 (mi2_command_loop): Remove.
3655 (mi3_command_loop): Remove.
3656 (mi_interpreter_resume): Remove setting of
3657 deprecated_command_loop_hook.
3658 (_initialize_mi_interp): Set mi_command_loop as the command loop
3659 callback.
3660
3661 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3662
3663 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3664 value_type.
3665
3666 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3667
3668 * value.c (allocate_value_contents): Make static.
3669 * value.h (allocate_value_contents): Remove prototype.
3670
3671 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3672
3673 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3674 of assembling value via allocate_value_lazy and attribute setter.
3675 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3676 assembling value via allocate_value_lazy and attribute setter.
3677 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3678 assembling value via allocate_value_lazy and attribute setter.
3679
3680 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3681
3682 * value.c (value_from_contents_and_address): Replace allocate_value and
3683 memcpy with value_from_contents.
3684
3685 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3686
3687 * python/py-framefilter.c (py_print_frame): Remove usage of
3688 PyString_AsString. Use python_string_to_host_string instead.
3689 Refactor function to work with a string as a new allocation
3690 instead of a pointer.
3691 (py_print_frame): Ditto.
3692 * python/lib/gdb/frames.py (return_list): Cain iterators together
3693 instead of adding them as a list.
3694 (_sort_list): Call return_list, and remove duplicate code.
3695 (execute_frame_filters): Convert iterator to a list with list().
3696 * python/lib/gdb/command/frame_filters.py
3697 (SetFrameFilterPriority._set_filter_priority): Convert priority
3698 attribute to an integer.
3699 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3700 wrapper function __next__.
3701 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3702 define as "str".
3703
3704 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3705
3706 PR python/15752
3707 * python/py-framefilter.c (apply_frame_filter): Check
3708 gdb_python_initialized. Exit if the Python frame-filter code
3709 cannot be initialized.
3710
3711 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3712
3713 PR cli/15842
3714 * top.c (print_gdb_version): Remove erroneous newline after help
3715 text.
3716
3717 2013-08-29 Yao Qi <yao@codesourcery.com>
3718
3719 * varobj.c (install_dynamic_child): Remove trailing space.
3720 Add one blank line after variable declaration.
3721
3722 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3723
3724 PR gdb/15415
3725 * corefile.c (get_exec_file): Use exec_filename.
3726 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3727 * exec.c (exec_close): Free EXEC_FILENAME.
3728 (exec_file_attach): New variable canonical_pathname. Use
3729 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3730 EXEC_FILENAME.
3731 * exec.h (exec_filename): New.
3732 * inferior.c (print_inferior, inferior_command): Use
3733 PSPACE_EXEC_FILENAME.
3734 * mi/mi-main.c (print_one_inferior): Likewise.
3735 * progspace.c (clone_program_space, print_program_space): Likewise.
3736 * progspace.h (struct program_space): New field pspace_exec_filename.
3737 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3738 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3739
3740 2013-08-28 Will Newton <will.newton@linaro.org>
3741
3742 * common/linux-ptrace.c: Include stdint.h unconditionally.
3743
3744 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 Code cleanup.
3747 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3748
3749 2013-08-28 Yao Qi <yao@codesourcery.com>
3750 Pedro Alves <palves@redhat.com>
3751
3752 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3753 instead of stdio_fileopen.
3754 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3755 .Call stderr_fileopen instead of stdio_fileopen.
3756 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3757 [__MINGW32__] (stderr_file_fputs): New function.
3758 (stderr_fileopen): New function.
3759 * ui-file.h (stderr_fileopen): Declare.
3760
3761 2013-08-27 Doug Evans <dje@google.com>
3762
3763 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3764 (struct dwarf2_per_cu_data): Ditto.
3765 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3766 (process_imported_unit_die): Ditto.
3767 (follow_die_sig_1): Simplify assert.
3768
3769 2013-08-27 Pedro Alves <palves@redhat.com>
3770
3771 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3772 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3773 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3774 windows_xfer_memory directly.
3775 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3776
3777 2013-08-27 Pedro Alves <palves@redhat.com>
3778
3779 * darwin-nat.c (darwin_xfer_memory): Delete.
3780 (_initialize_darwin_inferior): Don't install a
3781 deprecated_xfer_memory method.
3782
3783 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3784 Yao Qi <yao@codesourcery.com>
3785
3786 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3787 (parse_no_frames_option): Remove.
3788 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3789 (mi_cmd_stack_list_args): Adjust.
3790 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3791 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3792 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3793 Caller update.
3794 (list_args_or_locals): New parameter 'skip_unavailable'.
3795 Handle it.
3796 * valprint.c (scalar_type_p): Rename to ...
3797 (val_print_scalar_type_p): ... this. Make extern.
3798 (val_print, value_check_printable): Adjust.
3799 * valprint.h (val_print_scalar_type_p): Declare.
3800 * value.c (value_entirely_unavailable): New function.
3801 * value.h (value_entirely_unavailable): Declare.
3802
3803 * NEWS: Mention the new option "--skip-unavailable" to MI
3804 commands '-stack-list-locals', '-stack-list-arguments' and
3805 '-stack-list-variables'.
3806
3807 2013-08-27 Yao Qi <yao@codesourcery.com>
3808
3809 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3810 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3811 options.
3812 * mi/mi-getopt.c (mi_getopt): Remove.
3813 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3814 'error_on_unknown'.
3815 (mi_getopt): Call mi_getopt_1.
3816 (mi_getopt_silent): New.
3817 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3818
3819 2013-08-26 Doug Evans <dje@google.com>
3820
3821 PR symtab/15885
3822 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3823 .gdb_index is in use.
3824 * symfile.c (reread_symbols): Reset objfile->sf.
3825
3826 * NEWS: Document "mt print objfiles" now takes optional regexp.
3827 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3828 regexp of objfiles to print.
3829 (_initialize_symmisc): Update doc string for "mt print objfiles".
3830
3831 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3832 missing debug info checks.
3833
3834 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3835 Ulrich Weigand <uweigand@de.ibm.com>
3836
3837 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3838 line tables generated by XLC compiled binaries.
3839
3840 2013-08-23 Doug Evans <dje@google.com>
3841
3842 * symmisc.c (dump_symtab): Delete prototype.
3843 (dump_msymbols, dump_objfile): Ditto.
3844 (maintenance_info_symtabs): Mark as dont_repeat.
3845 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3846
3847 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3848 debugging printf to better location.
3849
3850 2013-08-23 Pedro Alves <palves@redhat.com>
3851
3852 * target.c (target_read_live_memory): Change type of 'ret' local
3853 to LONGEST.
3854
3855 2013-08-23 Pedro Alves <palves@redhat.com>
3856
3857 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3858 (remote_read_bytes): Change return type to LONGEST, and adjust to
3859 return a target_xfer_error on error.
3860 (remote_xfer_memory): Delete.
3861 (remote_flash_write): Change type of 'ret' local to LONGEST.
3862 (remote_xfer_partial, remote_xfer_partial): Adjust.
3863 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3864
3865 2013-08-23 Pierre Muller <muller@sourceware.org>
3866
3867 ARI fix: Push # directives to start of line.
3868 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3869
3870 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3871
3872 PR gdb/15501
3873 * breakpoint.c (enable_command, disable_command): Iterate over
3874 all specified breakpoint locations.
3875
3876 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3877
3878 * common/linux-ptrace.c (linux_fork_to_function): Push #
3879 directives to the start of the line.
3880 (linux_check_ptrace_features): Fix warning message to use
3881 the "_" markup.
3882
3883 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3884
3885 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3886 nat/linux-waitpid.h.
3887 (linux-waitpid.o): New object file rule.
3888 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3889 (current_ptrace_options): Moved from linux-nat.c.
3890 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3891 parameters.
3892 (linux_fork_to_function): New function.
3893 (linux_grandchild_function): Likewise.
3894 (linux_child_function): Likewise.
3895 (linux_check_ptrace_features): New function, heavily
3896 based on linux-nat.c:linux_test_for_tracefork.
3897 (linux_enable_event_reporting): New function.
3898 (ptrace_supports_feature): Likewise.
3899 (linux_supports_tracefork): Likewise.
3900 (linux_supports_traceclone): Likewise.
3901 (linux_supports_tracevforkdone): Likewise.
3902 (linux_supports_tracesysgood): Likewise.
3903 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3904 gdbserver/linux-low.c.
3905 (linux_enable_event_reporting): New declaration.
3906 (linux_supports_tracefork): Likewise.
3907 (linux_supports_traceclone): Likewise.
3908 (linux_supports_tracevforkdone): Likewise.
3909 (linux_supports_tracesysgood): Likewise.
3910 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3911 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3912 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3913 * config/arm/linux.mh (NATDEPFILES): Likewise.
3914 * config/i386/linux.mh (NATDEPFILES): Likewise.
3915 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3916 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3917 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3918 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3919 * config/mips/linux.mh (NATDEPFILES): Likewise.
3920 * config/pa/linux.mh (NATDEPFILES): Likewise..
3921 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3922 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3923 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3924 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3925 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3926 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3927 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3928 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3929 ptrace's 4th argument's types.
3930 Check the type of PTRACE_TYPE_ARG4.
3931 * configure: Regenerate.
3932 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3933 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3934 (linux_supports_tracefork_flag): Remove.
3935 (linux_supports_tracesysgood_flag): Likewise.
3936 (linux_supports_tracevforkdone_flag): Likewise.
3937 (current_ptrace_options): Moved to
3938 common/linux-ptrace.c.
3939 (linux_tracefork_child): Remove.
3940 (my_waitpid): Remove.
3941 (linux_test_for_tracefork): Renamed to
3942 linux_check_ptrace_features and moved to common/linux-ptrace.c.
3943 (linux_test_for_tracesysgood): Remove.
3944 (linux_supports_tracesysgood): Remove.
3945 (linux_supports_tracefork): Remove.
3946 (linux_supports_tracevforkdone): Remove.
3947 (linux_enable_tracesysgood): Remove.
3948 (linux_enable_event_reporting): Remove.
3949 (linux_init_ptrace): New function.
3950 (linux_child_post_attach): Call linux_init_ptrace.
3951 (linux_child_post_startup_inferior): Call linux_init_ptrace.
3952 (linux_child_follow_fork): Call linux_supports_tracefork
3953 and linux_supports_tracevforkdone.
3954 (linux_child_insert_fork_catchpoint): Call
3955 linux_supports_tracefork.
3956 (linux_child_insert_vfork_catchpoint): Likewise.
3957 (linux_child_set_syscall_catchpoint): Call
3958 linux_supports_tracesysgood.
3959 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
3960 * nat/linux-nat.h: New file.
3961 * nat/linux-waitpid.c: New file.
3962 * nat/linux-waitpid.h: New file.
3963
3964 2013-08-22 Samuel Bronson <naesten@gmail.com>
3965
3966 ARM Linux support for `catch syscall'.
3967 * syscalls/arm-linux.py: New file.
3968 * syscalls/arm-linux.xml: Likewise.
3969 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
3970 (arm_linux_init_abi): Register the new function and syscall xml file.
3971 * data-directory/Makefile.in: Install the new syscall xml file.
3972 * NEWS: Brag about this.
3973
3974 2013-08-22 Pedro Alves <palves@redhat.com>
3975
3976 PR gdb/15871
3977 * corefile.c (target_xfer_memory_error): New function.
3978 (memory_error): Defer EIO to target_memory_error.
3979 (read_memory): Use target_xfer_partial, and handle finer-grained
3980 target xfer errors.
3981 * target.c (target_xfer_error_to_string): New function.
3982 (memory_xfer_partial_1): If memory is known to be
3983 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
3984 (target_xfer_partial): Make extern.
3985 * target.h (enum target_xfer_error): New enum.
3986 (target_xfer_error_to_string): Declare function.
3987 (target_xfer_partial): Declare function.
3988 (struct target_ops) <xfer_partial>: Adjust describing comment.
3989
3990 2013-08-22 Alan Modra <amodra@gmail.com>
3991
3992 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
3993 * configure.tgt: Likewise as targets.
3994
3995 2013-08-20 Doug Evans <dje@google.com>
3996
3997 * buildsym.c (subfile_stack): Move here from buildsym.h.
3998 (pending_macros): Ditto.
3999 (get_macro_table): New function.
4000 (buildsym_init): Initialize subfile_stack.
4001 * coffread.c (type_vector,type_vector_length): Moved here from
4002 buildsym.h.
4003 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4004 (coff_symtab_read): Use it.
4005 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4006 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4007 with call to get_macro_table.
4008 * stabsread.c (type_vector,type_vector_length): Moved here from
4009 buildsym.h.
4010 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4011 * buildsym.h (get_macro_table): Declare.
4012
4013 2013-08-20 Tom Tromey <tromey@redhat.com>
4014
4015 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4016 Update.
4017 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4018
4019 2013-08-20 Doug Evans <dje@google.com>
4020
4021 * blockframe.c: Remove #include "psymtab.h".
4022 * cp-support.c: Ditto.
4023 * source.c: Ditto.
4024 * stack.c: Ditto.
4025
4026 2013-08-20 Tom Tromey <tromey@redhat.com>
4027
4028 PR python/15816:
4029 * exceptions.h (return_mask): Now an enum.
4030 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4031 enum constants.
4032
4033 2013-08-20 Tom Tromey <tromey@redhat.com>
4034
4035 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4036 get_objfile_arch.
4037 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4038 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4039 * jit.c (jit_object_close_impl): Update.
4040 * jv-lang.c (get_dynamics_objfile): Update.
4041 * linespec.c (add_minsym): Use get_dynamics_objfile.
4042 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4043 (allocate_objfile): Don't initialize 'gdbarch' field.
4044 (get_objfile_arch): Update.
4045 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4046 moved from...
4047 (struct objfile) <gdbarch>: ... here. Remove.
4048 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4049 get_objfile_arch.
4050 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4051
4052 2013-08-20 Alan Modra <amodra@gmail.com>
4053
4054 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4055 for IBM long double nan and inf.
4056 (floatformat_is_negative, floatformat_classify,
4057 floatformat_mantissa): Similarly.
4058 (floatformat_ieee_single, floatformat_ieee_double,
4059 floatformat_ieee_quad, floatformat_arm_ext,
4060 floatformat_ia64_spill): Delete unused vars.
4061 (_initialize_doublest): Delete unused function.
4062 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4063 little-endian variants of floatformat_ibm_long_double.
4064
4065 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4066
4067 * Makefile.in (SFILES): Remove common/target-common.c and
4068 add target/waitstatus.c.
4069 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4070 target/resume.h, target/wait.h and target/waitstatus.h.
4071 (COMMON_OBS): Remove target-common.o and add
4072 waitstatus.o.
4073 (target-common.o): Remove.
4074 (waitstatus.o): New target object file.
4075 * common/target-common.c: Move contents to
4076 target/waitstatus.c and remove.
4077 * common/target-common.h: Move contents to other files and
4078 remove.
4079 (enum resume_kind: Move to target/resume.h.
4080 (TARGET_WNOHANG): Move to target/wait.h.
4081 (enum target_waitkind): Move to target/waitstatus.h.
4082 (struct target_waitstatus): Likewise.
4083 * target.h: Do not include target-common.h and
4084 include target/resume.h, target/wait.h and
4085 target/waitstatus.h.
4086 * target/resume.h: New file.
4087 * target/wait.h: New file.
4088 * target/waitstatus.h: New file.
4089 * target/waitstatus.c: New file.
4090
4091 2013-08-19 Pedro Alves <palves@redhat.com>
4092
4093 * linux-nat.c (linux_test_for_tracefork)
4094 (linux_test_for_tracesysgood, linux_child_follow_fork)
4095 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4096 (linux_nat_wait_1): Extend comment.
4097 (linux_async_pipe): Add comment.
4098
4099 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4100
4101 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4102 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4103 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4104 Update to account for fact that PC is now a pseudo-register.
4105 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4106 cases for RL78_PC_REGNUM.
4107
4108 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4109
4110 PR cli/15841
4111 * top.c (quit_force): Skip writing history file
4112 if input is not from terminal.
4113
4114 2013-08-14 Tom Tromey <tromey@redhat.com>
4115
4116 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4117 resultthreadlist>: New fields.
4118 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4119 (remote_get_threadlist, remote_threadlist_iterator): Use
4120 new fields. Remove static variables.
4121
4122 2013-08-14 Tom Tromey <tromey@redhat.com>
4123
4124 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4125 remote_watch_data_address>: New fields.
4126 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4127 (process_stop_reply, remote_wait_as)
4128 (remote_check_watch_resources, remote_stopped_data_address): Update.
4129
4130 2013-08-14 Tom Tromey <tromey@redhat.com>
4131
4132 * remote.c (struct remote_state) <async_client_callback,
4133 async_client_context>: New fields.
4134 (async_client_callback, async_client_context): Remove.
4135 (remote_async_serial_handler, remote_async): Update.
4136
4137 2013-08-14 Tom Tromey <tromey@redhat.com>
4138
4139 * remote.c (sizeof_pkt): Remove.
4140 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4141
4142 2013-08-14 Tom Tromey <tromey@redhat.com>
4143
4144 * remote.c (struct remote_state) <use_threadinfo_query,
4145 use_threadextra_query>: New fields.
4146 (remote_threads_info, remote_threads_extra_info)
4147 (remote_open_1): Update.
4148
4149 2013-08-14 Tom Tromey <tromey@redhat.com>
4150
4151 * remote.c (struct remote_state) <finished_object,
4152 finished_annex, finished_offset>: New fields.
4153 (remote_read_qxfer): Use remote_state fields; remove static
4154 variables.
4155
4156 2013-08-14 Tom Tromey <tromey@redhat.com>
4157
4158 * remote.c (struct remote_state) <last_sent_step>:
4159 New field.
4160 (last_sent_step): Remove.
4161 (remote_resume, remote_wait_as): Update.
4162
4163 2013-08-14 Tom Tromey <tromey@redhat.com>
4164
4165 * remote.c (struct remote_state) <last_sent_signal>:
4166 New field.
4167 (last_sent_signal): Remove.
4168 (new_remote_state, remote_resume, remote_wait_as): Update.
4169
4170 2013-08-14 Tom Tromey <tromey@redhat.com>
4171
4172 * remote.c (struct remote_state) <last_program_signals_packet>:
4173 New field.
4174 (last_program_signals_packet): Remove.
4175 (remote_program_signals, remote_open_1): Update.
4176
4177 2013-08-14 Tom Tromey <tromey@redhat.com>
4178
4179 * remote.c (struct remote_state) <last_pass_packet>:
4180 New field.
4181 (last_pass_packet): Remove.
4182 (remote_pass_signals, remote_open_1): Update.
4183
4184 2013-08-14 Tom Tromey <tromey@redhat.com>
4185
4186 * remote.c (struct remote_state) <remote_traceframe_number>:
4187 New field.
4188 (remote_traceframe_number): Remove.
4189 (new_remote_state, remote_open_1, set_remote_traceframe)
4190 (remote_trace_find): Update.
4191
4192 2013-08-14 Tom Tromey <tromey@redhat.com>
4193
4194 * remote.c (struct remote_state) <general_thread, continue_thread>:
4195 New fields.
4196 (general_thread, continue_thread): Remove.
4197 (record_currthread, set_thread, set_general_process)
4198 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4199 (extended_remote_mourn_1): Update.
4200
4201 2013-08-14 Tom Tromey <tromey@redhat.com>
4202
4203 * remote.c (struct remote_state) <remote_desc>: New field.
4204 (remote_desc): Remove.
4205 (remote_threads_info, remote_threads_extra_info, remote_close)
4206 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4207 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4208 (remote_hostio_send_command, remote_file_put, remote_file_get)
4209 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4210 (remote_async, remote_new_objfile, set_range_stepping): Update.
4211
4212 2013-08-14 Tom Tromey <tromey@redhat.com>
4213
4214 * remote.c (remote_state): Now a pointer.
4215 (get_remote_state_raw): Update.
4216 (new_remote_state): New function.
4217 (_initialize_remote): Use new_remote_state.
4218
4219 2013-08-14 Tom Tromey <tromey@redhat.com>
4220
4221 * remote.c (remote_protocol_features): Now const.
4222
4223 2013-08-14 Tom Tromey <tromey@redhat.com>
4224
4225 * remote.c (crc32_table, crc32): Remove.
4226 (remote_verify_memory): Use xcrc32.
4227
4228 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4229
4230 * value.h (create_internalvar_type_lazy): Adjust prototype
4231 declaration.
4232
4233 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4234
4235 * common/format.c (parse_format_string): Don't allow '#' flag for
4236 pointer arguments in format string.
4237
4238 2013-08-13 Pierre Muller <muller@sourceware.org>
4239
4240 * utils.c (init_page_info): Only call tgetnum function
4241 if rl_get_screen_size did not return useful values.
4242
4243 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4244
4245 PR breakpoints/15117
4246 * linespec.c (linespec_parse_basic): Check for convenience
4247 variable or history value while parsing.
4248
4249 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4250
4251 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4252 AVR.
4253 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4254 different signals between the generic Linux kernel implementation
4255 and AVR's.
4256 (avr_linux_gdb_signal_from_target): Delete.
4257 (avr_linux_gdb_signal_to_target): Delete.
4258 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4259
4260 2013-08-09 Doug Evans <dje@google.com>
4261
4262 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4263 entries.
4264
4265 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4266
4267 * linux-tdep.c: Define enum with generic signal numbers.
4268 (linux_gdb_signal_from_target): New function.
4269 (linux_gdb_signal_to_target): Likewise.
4270 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4271 methods to the functions above.
4272 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4273 (linux_gdb_signal_to_target): Likewise.
4274 * alpha-linux-tdep.c: Define new enum with signals different
4275 from generic Linux kernel.
4276 (alpha_linux_gdb_signal_from_target): New function.
4277 (alpha_linux_gdb_signal_to_target): Likewise.
4278 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4279 with the functions mentioned above.
4280 * avr-tdep.c: Define enum with differences between Linux kernel
4281 and AVR signals.
4282 (avr_linux_gdb_signal_from_target): New function.
4283 (avr_linux_gdb_signal_to_target): Likewise.
4284 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4285 the functions mentioned above.
4286 * sparc-linux-tdep.c: Define enum with differences between SPARC
4287 and generic Linux kernel signal numbers.
4288 (sparc32_linux_gdb_signal_from_target): New function.
4289 (sparc32_linux_gdb_signal_to_target): Likewise.
4290 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4291 to the functions defined above.
4292 * xtensa-linux-tdep.c: Define enum with differences between
4293 Xtensa and Linux kernel generic signals.
4294 (xtensa_linux_gdb_signal_from_target): New function.
4295 (xtensa_linux_gdb_signal_to_target): Likewise.
4296 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4297 to the functions defined above.
4298 * mips-linux-tdep.c: Define enum with differences between
4299 signals in MIPS and Linux kernel generic ones.
4300 (mips_gdb_signal_to_target): New function.
4301 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4302 only different signals from the Linux kernel generic.
4303 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4304 the functions defined above.
4305 * mips-linux-tdep.h (enum mips_signals): Remove.
4306
4307 2013-08-09 Pedro Alves <palves@redhat.com>
4308
4309 * avr-tdep.c (XMALLOC): Delete macro.
4310 * cli/cli-dump.c (XMALLOC): Delete macro.
4311
4312 2013-08-09 Pedro Alves <palves@redhat.com>
4313
4314 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4315 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4316 (fopen_with_cleanup, add_dump_command): Make static.
4317 * cli/cli-dump.h: Delete file.
4318 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4319 cli/cli-dump.h.
4320
4321 2013-08-09 Pedro Alves <palves@redhat.com>
4322
4323 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4324 error message.
4325
4326 2013-08-09 Pedro Alves <palves@redhat.com>
4327
4328 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4329 error message.
4330
4331 2013-08-09 Pedro Alves <palves@redhat.com>
4332
4333 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4334 (gcore_command): Use tilde_expand here, and when showing the
4335 filename to the user, show the expanded version.
4336
4337 2013-08-09 Yao Qi <yao@codesourcery.com>
4338
4339 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4340 'entryval' is set.
4341
4342 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4343
4344 * gcore.c (create_gcore_bfd): Use tilde_expand.
4345
4346 2013-08-08 Yao Qi <yao@codesourcery.com>
4347
4348 * frame.h (read_frame_local): Declare.
4349 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4350 read_frame_local.
4351 * stack.c (read_frame_local): New.
4352
4353 2013-08-08 Yao Qi <yao@codesourcery.com>
4354
4355 * mi/mi-cmd-stack.c: Update comments to function
4356 list_args_or_locals.
4357
4358 2013-08-07 Tom Tromey <tromey@redhat.com>
4359
4360 PR symtab/15028:
4361 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4362 (process_psymtab_comp_unit_reader): Use it.
4363 (process_psymtab_comp_unit): Update. Add "pretend_language"
4364 argument.
4365 (dwarf2_build_psymtabs_hard): Update.
4366 (scan_partial_symbols): Pass CU's language to
4367 process_psymtab_comp_unit.
4368
4369 2013-08-07 Tom Tromey <tromey@redhat.com>
4370
4371 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4372 (dwarf2_gdb_index_functions): Update.
4373 * psymtab.c (find_symbol_file_from_partial): Remove.
4374 (psym_functions): Update.
4375 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4376 Remove.
4377
4378 2013-08-07 Tom Tromey <tromey@redhat.com>
4379
4380 * symfile.c (set_initial_language): Look up "main" symbol
4381 and use its language.
4382 * symtab.c (find_main_filename): Remove.
4383 * symtab.h (find_main_filename): Remove.
4384
4385 2013-08-07 Tom Tromey <tromey@redhat.com>
4386
4387 * dwarf2read.c (recursively_compute_inclusions): Add
4388 "immediate_parent" argument. Set symtab's "user" field
4389 if not set.
4390 (compute_symtab_includes): Update.
4391
4392 2013-08-07 Tom Tromey <tromey@redhat.com>
4393
4394 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4395 when adding label symbols.
4396
4397 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4398 Ulrich Weigand <uweigand@de.ibm.com>
4399
4400 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4401 * configure.host (powerpc64-*-aix*): Likewise.
4402
4403 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4404 Ulrich Weigand <uweigand@de.ibm.com>
4405
4406 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4407 is defined.
4408 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4409 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4410 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4411 * configure.ac: Check for ptrace64.
4412 * configure, config.in: Regenerate.
4413
4414 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4415 Ulrich Weigand <uweigand@de.ibm.com>
4416
4417 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4418 Call ptrace64 instead of ptrace if defined.
4419 Add macro addr_ptr to take care of ptrace address argument.
4420 (pdc_read_regs): Likewise.
4421 (pdc_write_regs): Likewise.
4422 (aix_thread_resume): Likewise.
4423 (fetch_regs_kernel_thread): Likewise.
4424 (store_regs_kernel_thread): Likewise.
4425
4426 2013-08-07 Anton Blanchard <anton@samba.org>
4427
4428 * MAINTAINERS: Add myself to Write After Approval.
4429
4430 2013-08-05 Tom Tromey <tromey@redhat.com>
4431
4432 * aix-thread.c (_initialize_aix_thread): Use
4433 complete_target_initialization.
4434 * bsd-uthread.c (_initialize_bsd_uthread): Use
4435 complete_target_initialization.
4436 * dec-thread.c (_initialize_dec_thread): Use
4437 complete_target_initialization.
4438 * ravenscar-thread.c (_initialize_ravenscar): Use
4439 complete_target_initialization.
4440 * sol-thread.c (_initialize_sol_thread): Use
4441 complete_target_initialization.
4442 * spu-multiarch.c (_initialize_spu_multiarch): Use
4443 complete_target_initialization.
4444
4445 2013-08-05 Tom Tromey <tromey@redhat.com>
4446
4447 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4448 * ada-lang.c (ada_lookup_simple_minsym): Return
4449 bound_minimal_symbol.
4450 * ada-lang.h (ada_lookup_simple_minsym): Update.
4451 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4452 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4453 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4454 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4455 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4456 * minsyms.c (msymbol_objfile): Remove.
4457 (lookup_minimal_symbol_internal): New function, from
4458 lookup_minimal_symbol.
4459 (lookup_minimal_symbol): Rewrite using
4460 lookup_minimal_symbol_internal.
4461 (lookup_bound_minimal_symbol): New function.
4462 * minsyms.h (msymbol_objfile): Remove.
4463 (lookup_bound_minimal_symbol): Declare.
4464 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4465 * parse.c (write_exp_msymbol): Change parameter to a
4466 bound_minimal_symbol.
4467 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4468 * parser-defs.h (write_exp_msymbol): Update.
4469 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4470 * symfile.c (simple_read_overlay_table): Use
4471 lookup_bound_minimal_symbol.
4472 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4473 (search_symbols): Likewise.
4474 (print_msymbol_info): Take a bound_minimal_symbol argument.
4475 (symtab_symbol_info, rbreak_command): Update.
4476 * symtab.h (struct symbol_search) <msymbol>: Change type
4477 to bound_minimal_symbol.
4478 * valops.c (find_function_in_inferior): Use
4479 lookup_bound_minimal_symbol.
4480 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4481
4482 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4483
4484 Code cleanup.
4485 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4486 to ...
4487 (async_cleanup_sigint_signal_handler): ... this.
4488 (initialize_sigint_signal_handler): Remove declaration.
4489 (handle_remote_sigint): Rename the declaration to ...
4490 (async_handle_remote_sigint): ... this.
4491 (handle_remote_sigint_twice): Rename the declaration to ...
4492 (async_handle_remote_sigint_twice): ... this.
4493 (async_remote_interrupt, async_remote_interrupt_twice)
4494 (remote_interrupt): Remove the declarations.
4495 (remote_interrupt_twice): Rename the declaration ...
4496 (sync_remote_interrupt_twice): ... this.
4497 (sigint_remote_twice_token): Rename the variable to ...
4498 (async_sigint_remote_twice_token): ... this.
4499 (sigint_remote_token): Rename the variable to ...
4500 (async_sigint_remote_token): ... this.
4501 (initialize_sigint_signal_handler): Rename the function to ...
4502 (async_initialize_sigint_signal_handler): ... this. Update the name
4503 inside.
4504 (handle_remote_sigint): Rename the function to ...
4505 (async_handle_remote_sigint): ... this. Update the names inside.
4506 (handle_remote_sigint_twice): Rename the function to ...
4507 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4508 (cleanup_sigint_signal_handler): Rename the function to ...
4509 (async_cleanup_sigint_signal_handler): ... this.
4510 (remote_interrupt): Rename the function to ...
4511 (sync_remote_interrupt): this. Update the names inside.
4512 (remote_interrupt_twice): Rename the function to ...
4513 (sync_remote_interrupt_twice): this. Update the names inside.
4514 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4515 (_initialize_remote): Update the names inside.
4516
4517 2013-08-02 Tom Tromey <tromey@redhat.com>
4518
4519 PR symtab/15719:
4520 * breakpoint.c (update_watchpoint, watchpoint_check)
4521 (watch_command_1): Update.
4522 * eval.c (fetch_subexp_value): Add "preserve_errors"
4523 parameter.
4524 * ppc-linux-nat.c (check_condition): Update.
4525 * value.h (fetch_subexp_value): Update.
4526
4527 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4528
4529 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4530 add_file_handler.
4531
4532 2013-08-01 Doug Evans <dje@google.com>
4533
4534 PR symtab/15691
4535 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4536 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4537 Add assert of sig_entry->dwo_unit == NULL.
4538 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4539 had already been read.
4540 (read_signatured_type): Set per_cu.tu_read.
4541
4542 PR symtab/15695
4543 * valops.c (value_struct_elt): Add missing call to check_typedef.
4544 (value_find_oload_method_list): Ditto.
4545
4546 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4547 effectively, struct symbol_search **.
4548 (make_cleanup_free_search_symbols): Change arg to struct
4549 symbol_search **. All callers updated.
4550 (compare_search_syms): Compare symtab file name and block as well.
4551 (search_symbols_equal): New function.
4552 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4553 New args new_head, new_tail. Result is now void. Remove dups after
4554 sorting the symbols.
4555 (search_symbols): Sort all found symbols once, after all have been
4556 found, and remove duplicates. Simplify cleanup tracking of result.
4557 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4558
4559 Further workarounds for binutils/15021.
4560 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4561 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4562 Watch for duplicate symtabs coming from type units.
4563 (compute_symtab_includes): Update call to
4564 recursively_compute_inclusions. Build vector of included symtabs
4565 instead of per_cus.
4566 * symtab.h (symtab_ptr): New typedef.
4567 (DEF_VEC_P (symtab_ptr)): New VEC type.
4568 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4569 instead.
4570
4571 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4572
4573 * cli/cli-script.c (script_from_file): Remove use of
4574 error_pre_print.
4575 * main.c (captured_main): Remove use of error_pre_print and
4576 quit_pre_print.
4577 * utils.c (error_pre_print, quit_pre_print): Remove.
4578 * utils.h (error_pre_print, quit_pre_print): Likewise.
4579
4580 2013-08-01 Yao Qi <yao@codesourcery.com>
4581
4582 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4583 with mi_getopt.
4584 (mi_cmd_stack_list_variables): Likewise.
4585
4586 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4587
4588 * exceptions.c (deprecated_throw_reason): Remove.
4589 * exceptions.h (deprecated_throw_reason): Remove.
4590
4591 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4592
4593 * remote-mips.c (mips_error): Replace use of
4594 deprecated_throw_reason with throw_verror. Use the error message
4595 passed to mips_error as the error message for throw_verror.
4596
4597 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4598
4599 * monitor.c (monitor_interrupt_query): Replace use of
4600 deprecated_throw_reason with quit.
4601 * nto-procfs.c (interrupt_query): Likewise.
4602 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4603 * remote-mips.c (mips_kill): Likewise.
4604 * remote.c (interrupt_query): Likewise.
4605
4606 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4607
4608 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4609 with call to fatal.
4610
4611 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4612 Yao Qi <yao@codesourcery.com>
4613
4614 * tracepoint.c (trace_dump_command): Select the current frame.
4615
4616 2013-07-30 Doug Evans <dje@google.com>
4617
4618 * dwarf2read.c (process_queue): Add type signature to debug output.
4619
4620 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4621
4622 * value.c (value_fetch_lazy): Mark optimized out values as such
4623 rather than raising an error.
4624
4625 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4626
4627 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4628 before checking which bits of the parent, not the child, value are
4629 valid.
4630
4631 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4632
4633 PR gdb/15715
4634 * top.c: Include "filenames.h".
4635 (set_history_filename): New function.
4636 (init_main): Install it as set hook of the "set history filename"
4637 command.
4638
4639 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4640
4641 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4642 attribute parameter.
4643 (dwarf2_const_value_data): Constify struct attribute parameter.
4644 (dwarf2_const_value): Constify struct attribute parameter.
4645 (dwarf2_const_value_attr): Constify struct attribute parameter.
4646 (lookup_die_type): Constify struct attribute parameter.
4647 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4648 (follow_die_ref_or_sig): Constify struct attribute parameter.
4649 (follow_die_ref): Constify struct attribute parameter.
4650 (follow_die_sig): Constify struct attribute parameter.
4651 (get_DW_AT_signature_type): Constify struct attribute parameter.
4652 (get_type_unit_group): Constify struct attribute parameter.
4653 (fill_in_loclist_baton): Constify struct attribute parameter.
4654 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4655 (type_unit_group): Constify struct attribute parameter.
4656
4657 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4658
4659 * dwarf2read.c (attr_form_is_block): Make argument const.
4660 (attr_form_is_section_offset): Make argument const.
4661 (attr_form_is_constant): Make argument const.
4662 (attr_form_is_ref): Make argument const.
4663
4664 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4665
4666 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4667 All uses updated.
4668 (attr_form_is_ref): Moved below attr_form_is_constant.
4669
4670 2013-07-29 Doug Evans <dje@google.com>
4671
4672 * main.c (captured_command_loop): Tweak comment.
4673
4674 * target.c (target_async_permitted_1): Fix comment.
4675
4676 * symtab.c (iterate_over_some_symtabs): Add comment.
4677
4678 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4679
4680 2013-07-27 Yao Qi <yao@codesourcery.com>
4681
4682 * NEWS: Mention that GDBserver now supports hardware
4683 watchpoints on the MIPS GNU/Linux target.
4684
4685 2013-07-27 Yao Qi <yao@codesourcery.com>
4686
4687 * Makefile.in (HFILES_NO_SRCDIR): Add
4688 common/mips-linux-watch.h.
4689 (mips-linux-watch.o): New rule.
4690 * common/mips-linux-watch.c: New.
4691 * common/mips-linux-watch.h: New.
4692 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4693 * mips-linux-nat.c: Include mips-linux-watch.h.
4694 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4695 to common/mips-linux-watch.h.
4696 (MAX_DEBUG_REGISTER): Likewise.
4697 (enum pt_watch_style): Likewise.
4698 (struct mips32_watch_regs): Likewise.
4699 (struct mips64_watch_regs): Likewise.
4700 (struct pt_watch_regs): Likewise.
4701 (struct mips_watchpoint): Likewise.
4702 (mips_linux_watch_get_irw_mask): Move to
4703 common/mips-linux-watch.c.
4704 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4705 (mips_linux_watch_get_watchlo): Likewise.
4706 (mips_linux_watch_set_watchlo): Likewise.
4707 (mips_linux_watch_get_watchhi): Likewise.
4708 (mips_linux_watch_set_watchhi): Likewise.
4709 (mips_linux_read_watch_registers): Likewise.
4710 (mips_linux_watch_type_to_irw): Likewise.
4711 (mips_linux_stopped_data_address, fill_mask): Likewise.
4712 (mips_linux_watch_try_one_watch): Likewise.
4713 (mips_linux_watch_populate_regs): Likewise.
4714
4715 2013-07-27 Yao Qi <yao@codesourcery.com>
4716
4717 * mips-linux-nat.c (get_irw_mask): Rename to ...
4718 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4719 'set' to 'n'. Update function comment. All callers changed.
4720 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4721 function comment. All callers changed.
4722 (get_num_valid): Rename to ...
4723 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4724 'set' to 'n'. Update function comment. All callers changed.
4725 (get_watchlo): Rename to ...
4726 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4727 'set' to 'n'. Update function comment. All callers changed.
4728 (set_watchlo): Rename to ...
4729 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4730 'set' to 'n'. Update function comment. All callers changed.
4731 (get_watchhi): Rename to ...
4732 (mips_linux_watch_get_watchhi): ... this. Update function
4733 comment. All callers changed.
4734 (set_watchhi): Rename to ...
4735 (mips_linux_watch_set_watchhi): ... this. Update function
4736 comment. All callers changed.
4737 (mips_linux_read_watch_registers): Update function comment.
4738 Add new parameters 'lwpid', 'watch_readback', and
4739 'watch_readback_valid'. Update.
4740 (type_to_irw): Rename to ...
4741 (mips_linux_watch_type_to_irw): ... this. Update function
4742 comment. All callers changed.
4743 (fill_mask): Update function comment.
4744 (try_one_watch): Rename to ...
4745 (mips_linux_watch_try_one_watch): ... this. Change the type
4746 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4747 (populate_regs_from_watches): Rename to ...
4748 (mips_linux_watch_populate_regs): ... this. Add parameter
4749 'current_watches'. All callers changed.
4750
4751 2013-07-27 Yao Qi <yao@codesourcery.com>
4752
4753 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4754 the code.
4755 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4756 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4757 (struct pt_watch_regs): Likewise.
4758 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4759 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4760 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4761 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4762 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4763
4764 2013-07-27 Yao Qi <yao@codesourcery.com>
4765
4766 * breakpoint.h: Include break-common.h.
4767 (enum target_hw_bp_type): Move to ...
4768 * common/break-common.h: ... here. New.
4769
4770 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4771
4772 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4773 process group regardless of having tty on stdin.
4774
4775 2013-07-25 Doug Evans <dje@google.com>
4776
4777 * linux-fork.h (detach_fork): Delete.
4778
4779 2013-07-25 Tom Tromey <tromey@redhat.com>
4780
4781 PR remote/15256, PR remote/15266:
4782 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4783 * monitor.c (monitor_detach): Use unpush_target.
4784 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4785 * remote-mips.c (mips_detach): Use unpush_target. Don't
4786 call mips_close.
4787 * remote-sim.c (gdbsim_detach): Use unpush_target.
4788 * target.c (pop_target): Remove.
4789 (pop_all_targets_above): Don't call target_close.
4790 (target_close): Assert that the target is unpushed.
4791 * target.h (pop_target): Don't declare.
4792 * tracepoint.c (tfile_open): Use unpush_target.
4793
4794 2013-07-25 Tom Tromey <tromey@redhat.com>
4795
4796 * linux-thread-db.c (init_thread_db_ops): Call
4797 complete_target_initialization.
4798 (_initialize_thread_db): Don't call add_target.
4799 * target.c (complete_target_initialization): New function.
4800 (add_target_with_completer): Call it.
4801 * target.h (complete_target_initialization): Declare.
4802
4803 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4804
4805 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4806 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4807 (HPPANBSD_SIZEOF_GREGS): New define.
4808 (hppaobsd_supply_gregset): Handle additional registers.
4809 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4810 we provide more registers now.
4811 (hppabsd_supply_gregset): Supply additional registers.
4812 (hppabsd_collect_gregset): Collect additional registers.
4813
4814 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4815
4816 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4817 (hppabsd_dwarf2_frame_init_reg): New function.
4818 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4819
4820 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4821
4822 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4823 'z' format code. Remove error for optimized out values, standard
4824 code will handle these fine.
4825
4826 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4827
4828 * NEWS: Mention new 'z' formatter.
4829 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4830 (_initialize_printcmd): Mention 'z' formatter in help text of the
4831 'x' command.
4832
4833 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4834
4835 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4836 formatting.
4837
4838 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4839
4840 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4841 interface can evaluate arguments. Fallback to the old mode if it
4842 cannot.
4843 (create_exception_master_breakpoint): Likewise.
4844 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4845 (struct sym_probe_fns elf_probe_fns): Export function above to the
4846 probe interface.
4847 * probe.c (can_evaluate_probe_arguments): New function.
4848 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4849 function pointer.
4850 (can_evaluate_probe_arguments): New function prototype.
4851 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4852 probe interface can evaluate arguments. Fallback to the old mode
4853 if it cannot.
4854 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4855 interface can evaluate arguments. Warning the user if it cannot.
4856 (stap_can_evaluate_probe_arguments): New function.
4857 (struct probe_ops stap_probe_ops): Export function above to the
4858 probe interface.
4859 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4860 New function pointer.
4861
4862 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4863
4864 * Makefile.in (SFILES): Add common/target-common.c.
4865 Add common/target-common.h to headers.
4866 (COMMON_OBS): Add target-common.o.
4867 (target-common.o): New target.
4868 * linux-nat.h (resume_kind): Move to common/target-common.h.
4869 * target.c (target_waitstatus_to_string): Move to
4870 common/target-common.c.
4871 * target.h: Include target-common.h.
4872 (target_waitkind): Move to common/target-common.h.
4873 (target_waitstatus): Likewise.
4874 (TARGET_WNOHANG): Likewise.
4875 * common/target-common.c: New file.
4876 * common/target-common.h: New file.
4877
4878 2013-07-24 Doug Evans <dje@google.com>
4879
4880 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4881 a warning.
4882
4883 2013-07-23 Yao Qi <yao@codesourcery.com>
4884
4885 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4886 parameter 'gdbarch'.
4887 (i386_stack_tramp_frame_sniffer): Caller update.
4888 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4889 parameter 'gdbarch' and 'target'.
4890 (i386_linux_core_read_description): Caller update.
4891 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4892 Likewise.
4893 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4894 declaration.
4895
4896 2013-07-23 Tom Tromey <tromey@redhat.com>
4897
4898 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4899 2013-07-22.
4900
4901 2013-07-22 Doug Evans <dje@google.com>
4902
4903 * exec.h (remove_target_sections): Delete arg abfd.
4904 * exec.c (exec_close): Update call to remove_target_sections.
4905 (remove_target_sections): Delete arg abfd.
4906 * solib.c (update_solib_list): Ditto.
4907 (reload_shared_libraries_1): Ditto.
4908 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4909 * target.h (struct target_section): Rename key to owner.
4910 All uses updated.
4911
4912 2013-07-22 Tom Tromey <tromey@redhat.com>
4913
4914 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4915
4916 2013-07-22 Tom Tromey <tromey@redhat.com>
4917
4918 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4919 Simplify cleanup handling.
4920
4921 2013-07-22 Tom Tromey <tromey@redhat.com>
4922
4923 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4924 on all return paths.
4925
4926 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4927
4928 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4929 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4930 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4931
4932 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4933
4934 * top.c (print_gdb_version): Add help, apropos description and
4935 url to online documentation.
4936
4937 2013-07-19 Hui Zhu <hui@codesourcery.com>
4938
4939 PR gdb/15692
4940 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
4941
4942 2013-07-19 Yao Qi <yao@codesourcery.com>
4943
4944 * target.c (update_current_target): Change the default action
4945 of 'to_traceframe_info' from tcomplain to return_zero.
4946 * target.h (struct target_ops) <to_traceframe_info>: Add more
4947 comments.
4948 * valops.c (read_value_memory): Call
4949 traceframe_available_memory unconditionally.
4950
4951 2013-07-18 Yao Qi <yao@codesourcery.com>
4952
4953 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
4954 if the name is prefixed by "__imp_" or "_imp_", look for minimal
4955 symbol without prefix. If found, set its type to
4956 'mst_solib_trampoline'.
4957
4958 2013-07-17 Doug Evans <dje@google.com>
4959
4960 * NEWS: Mention "set print raw frame-arguments".
4961 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
4962 * stack.c (print_raw_frame_arguments): New static global.
4963 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
4964 (_initialize_stack): New command "set/show print raw frame-arguments".
4965 * valprint.c (setprintrawlist, showprintrawlist): New globals.
4966 (set_print_raw, show_print_raw): New functions.
4967 (_initialize_valprint): New prefix command "set/show print raw".
4968 * valprint.h (value_print_options): Improve comments.
4969
4970 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
4971 of all *list variables.
4972
4973 * gdbcmd.h (togglelist): Delete.
4974 * cli/cli-cmds.c (togglelist): Delete.
4975 (init_cmd_lists): Update.
4976 * cli/cli-cmds.h (togglelist): Delete.
4977
4978 2013-07-17 Tom Tromey <tromey@redhat.com>
4979
4980 * dwarf2read.c (dwarf2_per_objfile_free): Clear
4981 dwarf2_per_objfile.
4982
4983 2013-07-16 Doug Evans <dje@google.com>
4984
4985 * nto-tdep.c (nto_relocate_section_addresses): Update,
4986 target_section.bfd deleted.
4987 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
4988 * s390-tdep.c (s390_load): Ditto.
4989 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
4990
4991 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
4992
4993 * common/format.c (parse_format_string): Add checks for NULL
4994 character before calling strchr.
4995
4996 2013-07-16 Doug Evans <dje@google.com>
4997
4998 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
4999 temp_pathname argument.
5000 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5001 when opening the file fails.
5002
5003 * target.h (struct target_section): Delete member bfd.
5004 All users updated to use the_bfd_section->owner instead.
5005 * exec.c (add_to_section_table): Assert bfd is expected value.
5006 Remove initialization of target_section.bfd.
5007 (remove_target_sections): Update.
5008 (section_table_available_memory): Update.
5009 (section_table_xfer_memory_partial): Update.
5010 (print_section_info): Update.
5011 (exec_set_section_address): Update.
5012 * record-full.c (record_full_core_xfer_partial): Update.
5013 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5014 * solib-target.c (solib_target_relocate_section_addresses): Update.
5015 * symfile.c (build_section_addr_info_from_section_table): Update.
5016 * target.c (memory_xfer_live_readonly_partial): Update.
5017 (memory_xfer_partial_1): Update.
5018
5019 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5020
5021 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5022 now available for embedded (BookE) and server (BookS) processors,
5023 correct mentions of 'booke' and adjust comments accordingly in order to
5024 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5025 (have_ptrace_booke_interface): Rename function and variable
5026 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5027 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5028 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5029 'hwdebug_point_cmp'. Update all uses.
5030 (booke_find_thread_points_by_tid): Rename function
5031 'booke_find_thread_points_by_tid' to
5032 'hwdebug_find_thread_points_by_tid'. Update all uses.
5033 (booke_insert_point): Rename function 'booke_insert_point' to
5034 'hwdebug_insert_point'. Update all uses.
5035 (booke_remove_point): Rename function 'booke_remove_point' to
5036 'hwdebug_remove_point'. Update all uses.
5037
5038 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5039
5040 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5041 numbers with enum values.
5042
5043 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5044
5045 PR threads/13217
5046 * thread.c (thread_apply_all_command): Check for valid threads
5047 and thread count.
5048 (thread_array_cleanup): New struct.
5049 (set_thread_refcount): New function.
5050
5051 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5052
5053 * infcmd.c (default_print_one_register_info): Reuse function
5054 print_hex_chars.
5055
5056 2013-07-10 Tom Tromey <tromey@redhat.com>
5057
5058 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5059 (ada-exp.o): New target.
5060
5061 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5062
5063 * mt-tdep.c (mt_registers_info): Call
5064 get_no_prettyformat_print_options instead of
5065 get_raw_print_options (regression by last patch from Doug
5066 Evans).
5067
5068 2013-07-09 Pedro Alves <palves@redhat.com>
5069
5070 Checked in by Joel Brobecker <brobecker@adacore.com>.
5071 * ada-lang.c (coerce_unspec_val_to_type): Use
5072 value_optimized_out_const.
5073 * value.c (value_optimized_out_const): New function.
5074 * value.h (value_optimized_out_const): New declaration.
5075
5076 2013-07-09 Doug Evans <dje@google.com>
5077
5078 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5079 Enum values rename as well. All uses updated.
5080 * valprint.h (value_print_options): Rename member pretty to
5081 pretty format. Rename member prettyprint_arrays to
5082 prettyformat_arrays. Rename member prettyprint_structs to
5083 prettyformat_structs. All uses updated.
5084 (get_no_prettyformat_print_options): Renamed from
5085 get_raw_print_options.
5086 * valprint.c (get_no_prettyformat_print_options): Renamed from
5087 get_raw_print_options. All callers updated.
5088 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5089 All callers updated.
5090 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5091 All callers updated.
5092 (_initialize_valprint): Improve help text for "set print pretty" and
5093 "set print arrays".
5094
5095 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5096
5097 * value.c (value_bits_valid): Revert previous change, and change
5098 by Pedro on 2013-07-04, due to regressions in
5099 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5100
5101 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5102 Pedro Alves <palves@redhat.com>
5103
5104 * value.c (value_bits_valid): If the value is not lval_computed
5105 or has no check validity handler then the answer is the
5106 optimized_out flag, otherwise defer to the handler.
5107
5108 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5109
5110 * top.c (print_gdb_configuration): Explain in output of
5111 --configuration what does "relocatable" mean.
5112
5113 * main.c (print_gdb_help): Regroup options in the --help text.
5114 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5115 the relevant discussions.
5116
5117 2013-07-06 Yao Qi <yao@codesourcery.com>
5118
5119 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5120 Remove parameter 'lsal'.
5121 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5122 to inner block. Caller update.
5123 (base_breakpoint_create_breakpoints_sal): Update.
5124 (bkpt_create_breakpoints_sal): Likewise.
5125 (tracepoint_create_breakpoints_sal): Likewise.
5126 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5127 element 0 of vector 'canonical->sals'.
5128
5129 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5130
5131 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5132 register number instead of the pseudo register one.
5133 (rs6000_dwarf2_reg_to_regnum): Likewise.
5134
5135 2013-07-04 Pedro Alves <palves@redhat.com>
5136
5137 * findvar.c (value_of_register): Use allocate_optimized_out_value
5138 if the register has been optimized out, instead of
5139 set_value_optimized_out.
5140 * frame-unwind.c (frame_unwind_got_optimized): Use
5141 allocate_optimized_out_value.
5142
5143 2013-07-04 Pedro Alves <palves@redhat.com>
5144
5145 * value.c (value_bits_valid): If the value is not lval_computed,
5146 or doesn't have a check_validity hook, assume the value is entirely
5147 valid.
5148
5149 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5150
5151 * stack.c (read_frame_arg): No longer fetch lazy values.
5152 * value.c (value_optimized_out): If the value is not already
5153 marked optimized out, and is lazy then fetch it.
5154 (value_primitive_field): Move optimized out check to later in the
5155 function, after we have loaded any lazy values.
5156 (value_fetch_lazy): Use optimized out flag directly rather than
5157 calling optimized_out method.
5158
5159 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5160
5161 * valops.c: Don't include "user-regs.h".
5162 (value_fetch_lazy): Moved to value.c.
5163 * value.c: Include "user-regs.h".
5164 (value_fetch_lazy): Moved from valops.c.
5165
5166 2013-07-04 Yao Qi <yao@codesourcery.com>
5167
5168 Revert:
5169 2013-06-27 Yao Qi <yao@codesourcery.com>
5170
5171 * common/create-version.sh: Update comments. Handle the case
5172 that TARGET_ALIAS is empty.
5173
5174 2013-07-03 Pedro Alves <palves@redhat.com>
5175
5176 * Makefile.in (config.status): Depend on development.sh.
5177 (aclocal_m4_deps): Add libmcheck.m4.
5178 * acinclude.m4: Include libmcheck.m4.
5179 * configure.ac: Source development.sh instead of setting
5180 'development' here. --enable-libmcheck/--disable-libmcheck code
5181 factored out to GDB_AC_LIBMCHECK. Run it.
5182 * development.sh: New file.
5183 * libmcheck.m4: New file.
5184 * configure: Regenerate.
5185
5186 2013-07-02 Tom Tromey <tromey@redhat.com>
5187
5188 * contrib/ari/update-web-ari.sh: Update for version.in change.
5189
5190 2013-07-02 Tom Tromey <tromey@redhat.com>
5191
5192 * common/ptid.h: Comment fixes.
5193
5194 2013-07-01 Tom Tromey <tromey@redhat.com>
5195
5196 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5197 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5198 (dwarf2_read_index, create_all_comp_units): Update.
5199
5200 2013-07-01 Tom Tromey <tromey@redhat.com>
5201
5202 * configure.ac (build_warnings): Add -Wold-style-definition.
5203 * configure: Rebuild.
5204 * machoread.c (_initialize_machoread): Use "(void)".
5205 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5206 use "(void)".
5207
5208 2013-07-01 Tom Tromey <tromey@redhat.com>
5209
5210 * configure.ac (build_warnings): Add -Wold-style-declaration.
5211 * configure: Rebuild.
5212 * dsrec.c (make_srec): Use "static const", not "const static".
5213 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5214 not "const static".
5215 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5216 Use "static const", not "const static".
5217 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5218 not "const static".
5219 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5220 not "const static".
5221 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5222 not "const static".
5223 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5224 not "const static".
5225 (v850_dbtrap_breakpoint_from_pc): Likewise.
5226 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5227 not "const static".
5228
5229 2013-07-01 Tom Tromey <tromey@redhat.com>
5230
5231 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5232 * configure: Rebuild.
5233
5234 2013-07-01 Pedro Alves <palves@redhat.com>
5235
5236 * defs.h: Include "pathmax.h".
5237 * utils.c: Don't include sys/param.h.
5238 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5239 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5240 instead of MAXPATHLEN.
5241 * solib-sunos.c: Don't include sys/param.h.
5242 * xcoffread.c: Don't include sys/param.h.
5243 * bsd-kvm.c: Don't include sys/param.h.
5244 * darwin-nat.c: Don't include sys/param.h.
5245 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5246 * darwin-nat-info.c: Don't include sys/param.h.
5247 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5248 MAXPATHLEN.
5249 * i386obsd-nat.c: Don't include sys/param.h.
5250 * inf-child.c: Don't include sys/param.h.
5251 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5252 * linux-fork.c: Don't include sys/param.h.
5253 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5254 * linux-nat.c: Don't include sys/param.h.
5255 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5256 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5257 * m68klinux-nat.c: Don't include sys/param.h.
5258 * nbsd-nat.c: Don't include sys/param.h.
5259 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5260 * ppc-linux-nat.c: Don't include sys/param.h.
5261 * rs6000-nat.c: Don't include sys/param.h.
5262 * spu-linux-nat.c. Don't include sys/param.h.
5263 * windows-nat.c: Don't include sys/param.h.
5264 * xtensa-linux-nat.c: Don't include sys/param.h.
5265 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5266
5267 2013-07-01 Pedro Alves <palves@redhat.com>
5268
5269 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5270 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5271 * gnulib/aclocal.m4: Regenerate.
5272 * gnulib/config.in: Regenerate.
5273 * gnulib/configure: Regenerate.
5274 * gnulib/import/pathmax.h: New file.
5275 * gnulib/import/Makefile.am: Regenerate.
5276 * gnulib/import/Makefile.in: Regenerate.
5277 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5278 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5279 * gnulib/import/m4/pathmax.m4: New file.
5280
5281 2013-07-01 Pedro Alves <palves@redhat.com>
5282
5283 * configure.ac (GDBINIT): Define, depending on host.
5284 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5285 * top.c (PATH_MAX): Delete fallback definition.
5286 (GDBINIT_FILENAME): Delete.
5287 (gdbinit): Reimplement as const char array set to the GDBINIT
5288 string constant.
5289 * top.h (gdbinit): Make const.
5290 * configure, config.in: Regenerate.
5291
5292 2013-07-01 Pedro Alves <palves@redhat.com>
5293
5294 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5295 * cli/cli-cmds.h (source_script): Likewise.
5296 * exceptions.c (catch_command_errors_const): New function.
5297 * exceptions.h (catch_command_errors_const): Declare.
5298 * main.c (get_init_files): Make parameters const, and adjust.
5299 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5300 'local_gdbinit' locals const. Adjust to use
5301 catch_command_errors_const.
5302 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5303 'local_gdbinit' locals const.
5304
5305 2013-07-01 Pedro Alves <palves@redhat.com>
5306
5307 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5308 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5309 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5310 <unistd.h>.
5311
5312 2013-07-01 Pedro Alves <palves@redhat.com>
5313
5314 Import the "unistd" gnulib module.
5315 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5316 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5317 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5318 import/m4/unistd_h.m4.
5319 * gnulib/aclocal.m4: Renenerate.
5320 * gnulib/config.in: Renenerate.
5321 * gnulib/configure: Renenerate.
5322 * gnulib/import/Makefile.am: Renenerate.
5323 * gnulib/import/Makefile.in: Renenerate.
5324 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5325 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5326 * gnulib/import/m4/off_t.m4: New file.
5327 * gnulib/import/m4/ssize_t.m4: New file.
5328 * gnulib/import/m4/sys_types_h.m4: New file.
5329 * gnulib/import/m4/unistd_h.m4: New file.
5330 * gnulib/import/sys_types.in.h: New file.
5331 * gnulib/import/unistd.c: New file.
5332 * gnulib/import/unistd.in.h: New file.
5333
5334 2013-07-01 Pedro Alves <palves@redhat.com>
5335
5336 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5337 defined instead of checking HAVE_UNISTD_H.
5338
5339 2013-07-01 Pedro Alves <palves@redhat.com>
5340
5341 Reimport gnulib from scratch.
5342 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5343 import/m4/onceonly.m4.
5344 * gnulib/aclocal.m4: Renegerate.
5345 * gnulib/config.in: Renegerate.
5346 * gnulib/configure: Renegerate.
5347 * gnulib/import/Makefile.in: Renegerate.
5348 * gnulib/import/extra/update-copyright: Renegerate.
5349 * gnulib/import/m4/onceonly.m4: Delete.
5350
5351 2013-07-01 Pedro Alves <palves@redhat.com>
5352
5353 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5354
5355 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5356
5357 Code cleanup.
5358 * remote.c (async_remote_interrupt_twice): Make it static.
5359 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5360
5361 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5362
5363 * ia64-linux-tdep.c: Include <ctype.h>.
5364 (ia64_linux_stap_is_single_operand): New function.
5365 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5366
5367 2013-06-28 Tom Tromey <tromey@redhat.com>
5368
5369 * Makefile.in (version.c): Use version.in, not
5370 common/version.in.
5371 * common/create-version.sh: Likewise.
5372 * common/version.in: Move...
5373 * version.in: ...here.
5374
5375 2013-06-28 Pedro Alves <palves@redhat.com>
5376
5377 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5378 here.
5379 * utils.h (pagination_enabled): Declare.
5380
5381 2013-06-28 Pedro Alves <palves@redhat.com>
5382
5383 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5384 Move higher up in file.
5385
5386 2013-06-28 Tom Tromey <tromey@redhat.com>
5387
5388 * tracepoint.c (deprecated_readline_begin_hook)
5389 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5390 declare.
5391
5392 2013-06-28 Pedro Alves <palves@redhat.com>
5393
5394 PR tui/14880
5395 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5396 checking if they're available.
5397 * value.c (value_available_contents_eq): Change comment.
5398 * value.h (value_available_contents_eq): Expand comment.
5399
5400 2013-06-27 Tom Tromey <tromey@redhat.com>
5401
5402 * target.c (find_run_target): Remove.
5403 * target.h (find_run_target): Remove.
5404
5405 2013-06-27 Tom Tromey <tromey@redhat.com>
5406
5407 * corelow.c (core_gdbarch): Now static.
5408
5409 2013-06-27 Tom Tromey <tromey@redhat.com>
5410
5411 * target.c (target_struct_index): Remove.
5412
5413 2013-06-27 Pedro Alves <palves@redhat.com>
5414
5415 * infrun.c: Remove comment describing the 'stepping over runtime
5416 loader dynamic symbol resolution code' mechanism; moved to
5417 gdbint.texinfo.
5418
5419 2013-06-27 Pedro Alves <palves@redhat.com>
5420
5421 * exceptions.c (catch_command_errors): Remove spurious space.
5422 * exceptions.h (catch_command_errors): Second parameter is "arg",
5423 not "command".
5424
5425 2013-06-27 Yao Qi <yao@codesourcery.com>
5426
5427 * common/create-version.sh: Update comments. Handle the case
5428 that TARGET_ALIAS is empty.
5429
5430 2013-06-26 Pedro Alves <palves@redhat.com>
5431
5432 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5433 comment.
5434
5435 2013-06-26 Pedro Alves <palves@redhat.com>
5436
5437 * infrun.c: Update comments on stepping over runtime loader
5438 dynamic symbol resolution code.
5439
5440 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5441
5442 * ax-gdb.h (union exp_element): Forward declare.
5443 * parser-defs.h: Include expression.h.
5444
5445 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5446
5447 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5448
5449 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5450
5451 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5452
5453 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5454
5455 Fix trace-status to output proper start-time and stop-time.
5456 * tracepoint.c (trace_status_command): Fix type of printf arg to
5457 prevent improper type conversion.
5458 (trace_status_mi): Likewise.
5459
5460 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5461
5462 * mips-tdep.c (mips_next_pc): Fix a typo.
5463
5464 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5465
5466 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5467
5468 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5469 Yao Qi <yao@codesourcery.com>
5470
5471 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5472 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5473 * mi/mi-main.c (print_variable_or_computed): New function.
5474 (mi_cmd_trace_frame_collected): New function.
5475 * tracepoint.c (find_trace_state_variable_by_number): New.
5476 (struct traceframe_info): Move to tracepoint.h
5477 (struct collection_list): Likewise.
5478 (do_collect_symbol): Include locals and arguments in the
5479 collected variables list.
5480 (clear_collection_list): Clear wholly collected variables list
5481 and computed variables list.
5482 (append_exp): New function.
5483 (encode_actions_1): Include variables in the wholly
5484 collected variables list. Include memory ranges and
5485 full-fledged expressions in the computed expressions list.
5486 (encode_actions): Move some code to ...
5487 Return the cleanup chain.
5488 (encode_actions_rsp): ... here. New function.
5489 (get_traceframe_location, get_traceframe_info): Remove static.
5490 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5491 (struct collection_list): Moved from tracepoint.c. Add two
5492 new fields 'wholly_collected' and 'computed'.
5493 (find_trace_state_variable_by_number): Declare.
5494 (encode_actions): Adjust declaration.
5495 (encode_actions_rsp): Declare.
5496 (get_traceframe_info, get_traceframe_location): Declare.
5497
5498 * NEWS: Mention new MI command -trace-frame-collected.
5499
5500 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5501 Yao Qi <yao@codesourcery.com>
5502
5503 * ctf.c (ctf_traceframe_info): Push trace state variables
5504 present in the trace data into the traceframe info object.
5505 * breakpoint.c (DEF_VEC_I): Remove.
5506 * common/filestuff.c (DEF_VEC_I): Likewise.
5507 * dwarf2loc.c (DEF_VEC_I): Likewise.
5508 * mi/mi-main.c (DEF_VEC_I): Likewise.
5509 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5510 * features/traceframe-info.dtd: Add tvar element and its
5511 attributes.
5512 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5513 (build_traceframe_info): Push trace state variables present in
5514 the trace data into the traceframe info object.
5515 (traceframe_info_start_tvar): New function.
5516 (tvar_attributes): New.
5517 (traceframe_info_children): Add "tvar" element.
5518 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5519
5520 * NEWS: Mention the change in GDB and GDBserver.
5521
5522 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5523 Yao Qi <yao@codesourcery.com>
5524
5525 * tracepoint.c (trace_dump_command): Move code to ...
5526 (get_traceframe_location): ... here. New.
5527
5528 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5529 Yao Qi <yao@codesourcery.com>
5530
5531 * tracepoint.c (trace_dump_command): GDB emits an error
5532 instead of a warning when a traceframe is not selected.
5533
5534 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5535 Yao Qi <yao@codesourcery.com>
5536
5537 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5538 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5539 in collection_list.
5540 (do_clear_collection_list, init_collection_list): New.
5541 (encode_actions): Add local variables 'tracepoint_list' and
5542 'stepping_list'. Call init_collection_list and make cleanup
5543 which calls do_clear_collection_list. Don't call
5544 clear_collection_list.
5545 (_initialize_tracepoint): Delete references to
5546 'tracepoint_list' and 'stepping_list'.
5547
5548 2013-06-25 Tom Tromey <tromey@redhat.com>
5549
5550 * common/create-version.sh (date): Use "$", not "$$" in sed
5551 expression.
5552
5553 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5554
5555 * NEWS (New targets): Add entry for TI MSP430.
5556
5557 2013-06-25 Yao Qi <yao@codesourcery.com>
5558
5559 * remote.c (remote_start_remote): Move code to upload tsv
5560 earlier.
5561
5562 2013-06-25 Yao Qi <yao@codesourcery.com>
5563 Hui Zhu <hui@codesourcery.com>
5564 Pedro Alves <palves@redhat.com>
5565
5566 PR breakpoints/15075
5567 PR breakpoints/15434
5568 * breakpoint.c (bpstat_stop_status): Call
5569 b->ops->after_condition_true.
5570 (update_dprintf_command_list): Don't append "continue" command
5571 to the command list of dprintf breakpoint.
5572 (base_breakpoint_after_condition_true): New function.
5573 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5574 (dprintf_after_condition_true): New function.
5575 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5576 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5577
5578 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5579
5580 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5581 (ALLDEPFILES): Add msp430-tdep.c.
5582 * configure.tgt (msp430*-*-elf): New target.
5583 * msp430-tdep.c: New file.
5584
5585 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5586
5587 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5588 microMIPS synthetic symbols.
5589
5590 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5591
5592 * objfiles.h (pc_in_section): New prototype.
5593 (in_plt_section): Remove name argument, replace prototype with
5594 static inline function.
5595 * mips-tdep.h: Include "objfiles.h".
5596 (in_mips_stubs_section): New function.
5597 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5598 in_solib_call_trampoline member.
5599 (hppa_in_solib_call_trampoline): Remove name argument.
5600 * objfiles.c (pc_in_section): New function.
5601 (in_plt_section): Remove function.
5602 * mips-linux-tdep.c: Include "objfiles.h".
5603 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5604 name argument. Return 1 rather than the low 16-bit halfword of
5605 any instruction examined.
5606 (mips_linux_in_dynsym_resolve_code): Update
5607 mips_linux_in_dynsym_stub call accordingly.
5608 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5609 rather than an equivalent hand-coded sequence.
5610 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5611 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5612 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5613 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5614 in_opd_section.
5615 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5616 on call to tdep->in_solib_call_trampoline.
5617 (hppa_in_solib_call_trampoline): Remove name argument, update
5618 according to in_plt_section change.
5619 (hppa_skip_trampoline_code): Update according to in_plt_section
5620 change.
5621 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5622 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5623 Likewise.
5624 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5625 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5626 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5627 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5628 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5629 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5630 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5631 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5632 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5633 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5634 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5635 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5636 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5637
5638 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5639
5640 * common/create-version.sh: Fix expansion of $host_alias
5641 and $target_alias in generation of HOST_NAME and TARGET_NAME
5642 (resp.).
5643
5644 2013-06-24 Tom Tromey <tromey@redhat.com>
5645
5646 * common/create-version.sh: New file.
5647 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5648 create-version.sh.
5649 (HFILES_NO_SRCDIR): Use common/version.h.
5650 * version.in: Move to ...
5651 * common/version.in: ... here. Replace date with "DATE".
5652 * version.h: Move to ...
5653 * common/version.h: ... here.
5654
5655 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5656
5657 * gdb/gnulib/Makefile.in: Update date in copyright header.
5658 * gdb/gnulib/configure.ac: Ditto.
5659 * gdb/gnulib/update-gnulib.sh: Ditto.
5660
5661 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5662
5663 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5664 "gdb/gnulib/import".
5665
5666 2013-06-21 Will Newton <will.newton@linaro.org>
5667
5668 * doublest.c (ldfrexp): Remove function.
5669 (convert_doublest_to_floatformat): Call frexpl instead of
5670 ldfrexp.
5671
5672 2013-06-21 Will Newton <will.newton@linaro.org>
5673
5674 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5675 * gnulib/aclocal.m4: Regenerate.
5676 * gnulib/config.in: Regenerate.
5677 * gnulib/configure: Regenerate.
5678 * gnulib/import/Makefile.am: Update.
5679 * gnulib/import/Makefile.in: Update.
5680 * gnulib/import/m4/gnulib-cache.m4: Update.
5681 * gnulib/import/m4/gnulib-comp.m4: Update.
5682 * gnulib/import/float+.h: Import.
5683 * gnulib/import/float.c: Import.
5684 * gnulib/import/float.in.h: Import.
5685 * gnulib/import/fpucw.h: Import.
5686 * gnulib/import/frexp.c: Import.
5687 * gnulib/import/frexpl.c: Import.
5688 * gnulib/import/isnan.c: Import.
5689 * gnulib/import/isnand-nolibm.h: Import.
5690 * gnulib/import/isnand.c: Import.
5691 * gnulib/import/isnanl-nolibm.h: Import.
5692 * gnulib/import/isnanl.c: Import.
5693 * gnulib/import/itold.c: Import.
5694 * gnulib/import/m4/exponentd.m4: Import.
5695 * gnulib/import/m4/exponentl.m4: Import.
5696 * gnulib/import/m4/float_h.m4: Import.
5697 * gnulib/import/m4/fpieee.m4: Import.
5698 * gnulib/import/m4/frexp.m4: Import.
5699 * gnulib/import/m4/frexpl.m4: Import.
5700 * gnulib/import/m4/isnand.m4: Import.
5701 * gnulib/import/m4/isnanl.m4: Import.
5702 * gnulib/import/m4/math_h.m4: Import.
5703 * gnulib/import/math.c: Import.
5704 * gnulib/import/math.in.h: Import.
5705
5706 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5707
5708 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5709 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5710 signature_INTEL_edx comparisons.
5711
5712 2013-06-20 Doug Evans <dje@google.com>
5713
5714 symtab/15652
5715 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5716 All callers updated.
5717 (open_dwp_file): If we can't find the dwp file, search the basename
5718 in debug-file-directory.
5719
5720 * dwarf2read.c (struct dwp_file): Fix comment.
5721 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5722
5723 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5724 better.
5725
5726 2013-06-20 Yao Qi <yao@codesourcery.com>
5727
5728 * breakpoint.c (create_breakpoint): Fix code indentation.
5729
5730 2013-06-20 Yao Qi <yao@codesourcery.com>
5731
5732 * breakpoint.c (create_breakpoints_sal_default): Remove
5733 parameter 'lsal'. Update declaration.
5734 (bkpt_create_breakpoints_sal): Caller update.
5735 (tracepoint_create_breakpoints_sal): Likewise.
5736
5737 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5738 Yao Qi <yao@codesourcery.com>
5739
5740 * NEWS: Mention the new option '--skip-unavailable' of command
5741 -data-list-register-values.
5742 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5743 --skip-unavailable option. Adjust to use output_register.
5744 (output_register): Add new 'skip_unavailable' parameter.
5745 Handle it.
5746
5747 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5748
5749 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5750 common/i386-gcc-cpuid.h.
5751 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5752 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5753 Copy the latest version from upstream gcc.
5754 * common/linux-btrace.c: Include i386-cpuid.h.
5755 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5756 call to i386_cpuid.
5757 (cpu_supports_btrace): Likewise.
5758 * go32-nat.c: Include i386-cpuid.h.
5759 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5760
5761 2013-06-19 Doug Evans <dje@google.com>
5762
5763 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5764 (get_section_index): Ditto.
5765
5766 2013-06-19 Tom Tromey <tromey@redhat.com>
5767
5768 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5769 "dprintf" help.
5770
5771 2013-06-18 Doug Evans <dje@google.com>
5772
5773 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5774 before using it.
5775 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5776 Move test of cu_index closer to use. Print complaint if cu_index
5777 is bad.
5778
5779 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5780
5781 * machoread.c (oso_vector): Delete this global.
5782 (macho_register_oso): Add new parameter "oso_vector_ptr".
5783 Use it instead of the "oso_vector" global.
5784 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5785 (macho_symfile_read): Use a local oso_vector, to be free'ed
5786 at the end of this function, in place of the old "oso_vector"
5787 global. Update various function calls accordingly. Use one
5788 single cleanup chain for the entire function.
5789
5790 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5791
5792 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5793 DWARF2_PER_OBJFILE by uses of DATA instead.
5794
5795 2013-06-18 Tom Tromey <tromey@redhat.com>
5796
5797 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5798 argument.
5799 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5800 Special case signals other than GDB_SIGNAL_TRAP.
5801 (explains_signal_watchpoint): New function.
5802 (base_breakpoint_explains_signal): Add 'sig' argument.
5803 (initialize_breakpoint_ops): Set 'explains_signal' method for
5804 watchpoints.
5805 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5806 signal argument.
5807 (bpstat_explains_signal): Likewise.
5808 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5809
5810 2013-06-18 Tom Tromey <tromey@redhat.com>
5811
5812 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5813
5814 2013-06-18 Tom Tromey <tromey@redhat.com>
5815
5816 * python/python.c (finish_python_initialization): Decref
5817 'pythondir' on failure path as well.
5818
5819 2013-06-18 Tom Tromey <tromey@redhat.com>
5820
5821 PR symtab/15391:
5822 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5823 after taking bits_to_skip into account. Sign extend byte_offset.
5824 * utils.h (gdb_sign_extend): Declare.
5825 * utils.c (gdb_sign_extend): New function.
5826
5827 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5828
5829 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5830
5831 2013-06-17 Pierre Muller <muller@sourceware.org>
5832
5833 * corelow.c (core_open): Print GDB signal name instead of target
5834 signal number.
5835
5836 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5837
5838 * .gitignore: Add /gcore.
5839
5840 2013-06-13 Doug Evans <dje@google.com>
5841
5842 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5843 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5844
5845 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5846
5847 * stack.c (backtrace_command_1): Fix indentation.
5848
5849 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5850
5851 * window-nat.c (thread_rec): Add missing empty line after
5852 local variable declaration.
5853
5854 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5855
5856 * windows-nat.c (thread_rec): Revert format used to print
5857 error code returned by SuspendThread from %d back to %u.
5858
5859 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5860
5861 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5862 ID in debug trace.
5863 (get_windows_debug_event): Likewise, for all debug traces.
5864
5865 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5866
5867 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5868 warning message.
5869
5870 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5871 Yao Qi <yao@codesourcery.com>
5872
5873 * mi/mi-main.c (get_register): Remove declaration.
5874 (output_register): Declare.
5875 (mi_cmd_data_list_register_values): Remove local variable
5876 'tuple_cleanup'. Move some code into output_register.
5877 (get_register): Renamed to ...
5878 (output_register): ... this. Output the register's
5879 "number" ui_out tuple here.
5880
5881 2013-06-07 Pedro Alves <palves@redhat.com>
5882
5883 * darwin-nat.c: Fix formating in copyright header.
5884 * darwin-nat.h: Likewise.
5885 * gnu-nat.c: Likewise.
5886 * machoread.c: Likewise.
5887
5888 2013-06-07 Pedro Alves <palves@redhat.com>
5889
5890 PR server/14823
5891 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5892 static. Output a global target description pointer.
5893 (init_registers_${name}): Adjust to initialize a
5894 target description structure.
5895
5896 2013-06-07 Will Newton <will.newton@linaro.org>
5897
5898 * printcmd.c (build_address_symbolic): Call
5899 gdbarch_addr_bits_remove for text minimal symbols.
5900
5901 2013-06-07 Will Newton <will.newton@linaro.org>
5902
5903 * MAINTAINERS: Add myself to Write After Approval.
5904
5905 2013-06-07 Yao Qi <yao@codesourcery.com>
5906
5907 * tracepoint.c (start_tracing): Move code to ...
5908 (trace_reset_local_state): ... here. New.
5909 (disconnect_tracing): Don't call set_current_traceframe,
5910 set_tracepoint_num, and set_traceframe_context. Call
5911 trace_reset_local_state instead.
5912 (tfile_close): Call trace_reset_local_state.
5913 * ctf.c (ctf_close): Likewise.
5914 * remote.c (remote_close): Likewise.
5915 * tracepoint.h (trace_reset_local_state): Declare.
5916
5917 2013-06-06 Doug Evans <dje@google.com>
5918
5919 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5920 and fix header docs.
5921
5922 2013-06-05 Doug Evans <dje@google.com>
5923 Keith Seitz <keiths@redhat.com>
5924
5925 PR 15519
5926 * cp-namespace.c (find_symbol_in_baseclass): Call
5927 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5928 Check result of call to lookup_symbol_static.
5929 Call lookup_static_symbol_aux unconditionally.
5930 Call check_typedef on base types before accessing them.
5931 (cp_lookup_nested_symbol): Fix comment.
5932
5933 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5934
5935 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5936 minimal symbols pointing to function descriptors.
5937
5938 2013-06-05 Tom Tromey <tromey@redhat.com>
5939
5940 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
5941
5942 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
5943 Pedro Alves <palves@redhat.com>
5944
5945 * remote.c (remote_wait_as): Restore signal handler before returning
5946 when GDB gets a notification.
5947
5948 2013-06-04 Gary Benson <gbenson@redhat.com>
5949
5950 PR 2328
5951 * breakpoint.h (handle_solib_event): Moved function declaration
5952 to solib.h.
5953 * breakpoint.c (handle_solib_event): Moved function to solib.c.
5954 (bpstat_stop_status): Pass new argument to handle_solib_event.
5955 * solib.h (update_solib_breakpoints): New function declaration.
5956 (handle_solib_event): Moved function declaration from
5957 breakpoint.h.
5958 * solib.c (update_solib_breakpoints): New function.
5959 (handle_solib_event): Moved function from breakpoint.c.
5960 Updated to call solib_ops->handle_event if not NULL.
5961 * solist.h (target_so_ops): New fields "update_breakpoints" and
5962 "handle_event".
5963 * infrun.c (set_stop_on_solib_events): New function.
5964 (_initialize_infrun): Use the above for "set
5965 stop-on-solib-events".
5966 (handle_inferior_event): Pass new argument to handle_solib_event.
5967 * solib-svr4.c (probe.h): New include.
5968 (svr4_free_library_list): New forward declaration.
5969 (probe_action): New enum.
5970 (probe_info): New struct.
5971 (probe_info): New static variable.
5972 (NUM_PROBES): New definition.
5973 (svr4_info): New fields "using_xfer", "probes_table" and
5974 "solib_list".
5975 (free_probes_table): New function.
5976 (free_solib_list): New function.
5977 (svr4_pspace_data_cleanup): Free probes table and solib list.
5978 (svr4_copy_library_list): New function.
5979 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
5980 (svr4_read_so_list): New parameter "prev_lm".
5981 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
5982 (svr4_current_sos): New function.
5983 (probe_and_action): New struct.
5984 (hash_probe_and_action): New function.
5985 (equal_probe_and_action): Likewise.
5986 (register_solib_event_probe): Likewise.
5987 (solib_event_probe_at): Likewise.
5988 (solib_event_probe_action): Likewise.
5989 (solist_update_full): Likewise.
5990 (solist_update_incremental): Likewise.
5991 (disable_probes_interface_cleanup): Likewise.
5992 (svr4_handle_solib_event): Likewise.
5993 (svr4_update_solib_event_breakpoint): Likewise.
5994 (svr4_update_solib_event_breakpoints): Likewise.
5995 (svr4_create_solib_event_breakpoints): Likewise.
5996 (enable_break): Free probes table before creating breakpoints.
5997 Use svr4_create_solib_event_breakpoints to create breakpoints.
5998 (svr4_solib_create_inferior_hook): Free the solib list.
5999 (_initialize_svr4_solib): Initialise
6000 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6001
6002 2013-06-04 Gary Benson <gbenson@redhat.com>
6003
6004 * target.h (target_ops): New field
6005 "to_augmented_libraries_svr4_read".
6006 (target_augmented_libraries_svr4_read): New macro.
6007 * target.c (update_current_target): Handle
6008 to_augmented_libraries_svr4_read.
6009 * remote.c (remote_state): New field
6010 "augmented_libraries_svr4_read".
6011 (remote_augmented_libraries_svr4_read_feature): New function.
6012 (remote_protocol_features): Add entry for
6013 "augmented-libraries-svr4-read".
6014 (remote_augmented_libraries_svr4_read): New function.
6015 (init_remote_ops): Initialize
6016 remote_ops.to_augmented_libraries_svr4_read.
6017
6018 2013-06-04 Gary Benson <gbenson@redhat.com>
6019
6020 * NEWS: Update.
6021
6022 2013-06-04 Gary Benson <gbenson@redhat.com>
6023
6024 * objfiles.h (inhibit_section_map_updates): New function
6025 declaration.
6026 (resume_section_map_updates): Likewise.
6027 (resume_section_map_updates_cleanup): Likewise.
6028 * objfiles.c (objfile_pspace_info): Removed field
6029 "objfiles_changed_p". New fields "new_objfiles_available",
6030 "section_map_dirty" and "inhibit_updates".
6031 (allocate_objfile): Set new_objfiles_available.
6032 (free_objfile): Set section_map_dirty.
6033 (objfile_relocate1): Likewise.
6034 (in_plt_section): Likewise.
6035 (find_pc_section): Update the conditions under which the
6036 section map will be updated.
6037 (inhibit_section_map_updates): New function.
6038 (resume_section_map_updates): Likewise.
6039 (resume_section_map_updates_cleanup): Likewise.
6040
6041 2013-06-04 Gary Benson <gbenson@redhat.com>
6042
6043 * probe.h (get_probe_argument_count): New declaration.
6044 (evaluate_probe_argument): Likewise.
6045 * probe.c (get_probe_argument_count): New function.
6046 (evaluate_probe_argument): Likewise.
6047 (probe_safe_evaluate_at_pc): Use the above new functions.
6048
6049 2013-06-04 Alan Modra <amodra@gmail.com>
6050
6051 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6052 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6053 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6054 target mem reads on optional insns.
6055 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6056 ppc_insns_match_pattern calls.
6057 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6058 Add match for power7 thread safety insns, and new order of
6059 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6060 invocation in comment, and update rest of comment.
6061 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6062 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6063 (ppc64_standard_linkage2_target): Update insn offsets.
6064 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6065 stubs first. Update calls.
6066
6067 2013-06-04 Yao Qi <yao@codesourcery.com>
6068
6069 * solib.c (solib_find): Don't need dir separator if path has
6070 drive spec.
6071
6072 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6073
6074 Revert (indirectly causes a SIGSEGV):
6075 * machoread.c (macho_symfile_read): Assign first cleanup to
6076 'back_to'.
6077
6078 2013-06-03 Yao Qi <yao@codesourcery.com>
6079
6080 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6081 mi-parse.c. Make them static.
6082 (mi_all_values): Likewise.
6083 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6084 mi_parse_print_values. Make it external.
6085 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6086 Remove the declarations.
6087 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6088 * mi/mi-parse.h (mi_parse_print_values): Declare.
6089 * mi/mi-cmd-stack.c: Include mi-parse.h.
6090 (parse_print_values): Remove
6091 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6092 of parse_print_values.
6093 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6094
6095 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6096 Yao Qi <yao@codesourcery.com>
6097
6098 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6099 (encode_actions): Move code to ...
6100 (all_tracepoint_actions_and_cleanup): ... here. New.
6101 (trace_dump_command): Likewise.
6102
6103 2013-05-30 Tom Tromey <tromey@redhat.com>
6104
6105 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6106
6107 2013-05-30 Tom Tromey <tromey@redhat.com>
6108
6109 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6110 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6111 'old_chain' argument. Add 'parser_result' argument.
6112 (gdb_xml_create_parser_and_cleanup): Remove old version.
6113 (gdb_xml_parse_quick): Update.
6114 (xml_process_xincludes): Update.
6115 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6116 declare.
6117
6118 2013-05-30 Tom Tromey <tromey@redhat.com>
6119
6120 * probe.c (collect_probes): Check arguments for NULL before
6121 calling compile_rx_or_error.
6122 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6123 Remove NULL return.
6124
6125 2013-05-30 Tom Tromey <tromey@redhat.com>
6126
6127 * infrun.c (adjust_pc_after_break): Introduce an outer null
6128 cleanup.
6129
6130 2013-05-30 Tom Tromey <tromey@redhat.com>
6131
6132 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6133
6134 2013-05-30 Tom Tromey <tromey@redhat.com>
6135
6136 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6137 for 'old_chain'. Do not check 'head' before processing
6138 cleanups.
6139
6140 2013-05-30 Tom Tromey <tromey@redhat.com>
6141
6142 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6143 "cleanup_tuple".
6144
6145 2013-05-30 Tom Tromey <tromey@redhat.com>
6146
6147 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6148 inner scope. Unconditionally call do_cleanups.
6149
6150 2013-05-30 Tom Tromey <tromey@redhat.com>
6151
6152 * source.c (find_and_open_source): Call do_cleanups.
6153
6154 2013-05-30 Tom Tromey <tromey@redhat.com>
6155
6156 * linux-thread-db.c (thread_db_load_search): Unconditionally
6157 call do_cleanups.
6158
6159 2013-05-30 Tom Tromey <tromey@redhat.com>
6160
6161 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6162 for 'cleanup'; instead use a later one.
6163
6164 2013-05-30 Tom Tromey <tromey@redhat.com>
6165
6166 * python/py-breakpoint.c (bppy_get_commands): Use
6167 explicit, unconditional return.
6168 * python/py-frame.c (frapy_read_var): Likewise.
6169 * python/python.c (gdbpy_decode_line): Likewise.
6170
6171 2013-05-30 Tom Tromey <tromey@redhat.com>
6172
6173 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6174 do_cleanups on all return paths.
6175
6176 2013-05-30 Tom Tromey <tromey@redhat.com>
6177
6178 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6179
6180 2013-05-30 Tom Tromey <tromey@redhat.com>
6181
6182 * stabsread.c (read_struct_type): Call do_cleanups along
6183 all return paths.
6184
6185 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6186
6187 * mips-linux-tdep.c: Adjust formatting throughout.
6188
6189 2013-05-30 Tom Tromey <tromey@redhat.com>
6190
6191 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6192 along all return paths.
6193
6194 2013-05-30 Tom Tromey <tromey@redhat.com>
6195
6196 * symfile.c (find_separate_debug_file): Call do_cleanups
6197 along all return paths.
6198
6199 2013-05-30 Tom Tromey <tromey@redhat.com>
6200
6201 * symtab.c (search_symbols): Introduce a null cleanup for
6202 'retval_chain'.
6203
6204 2013-05-30 Tom Tromey <tromey@redhat.com>
6205
6206 * python/py-value.c (valpy_binop): Call do_cleanups before
6207 exiting loop.
6208
6209 2013-05-30 Tom Tromey <tromey@redhat.com>
6210
6211 * python/py-prettyprint.c (print_children): Remove extra
6212 do_cleanups call.
6213
6214 2013-05-30 Tom Tromey <tromey@redhat.com>
6215
6216 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6217 all return paths.
6218
6219 2013-05-30 Tom Tromey <tromey@redhat.com>
6220
6221 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6222 along all return paths.
6223
6224 2013-05-30 Tom Tromey <tromey@redhat.com>
6225
6226 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6227 call do_cleanups.
6228
6229 2013-05-30 Tom Tromey <tromey@redhat.com>
6230
6231 * varobj.c (c_value_of_root): Call do_cleanups along all
6232 return paths.
6233
6234 2013-05-30 Tom Tromey <tromey@redhat.com>
6235
6236 * tracepoint.c (trace_dump_command): Unconditionally call
6237 do_cleanups.
6238
6239 2013-05-30 Tom Tromey <tromey@redhat.com>
6240
6241 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6242 do_cleanups earlier.
6243
6244 2013-05-30 Tom Tromey <tromey@redhat.com>
6245
6246 * machoread.c (macho_symfile_read): Assign first cleanup to
6247 'back_to'.
6248
6249 2013-05-30 Tom Tromey <tromey@redhat.com>
6250
6251 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6252
6253 2013-05-30 Tom Tromey <tromey@redhat.com>
6254
6255 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6256
6257 2013-05-30 Tom Tromey <tromey@redhat.com>
6258
6259 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6260 call discard_cleanups.
6261 (inf_ptrace_attach): Likewise.
6262
6263 2013-05-30 Tom Tromey <tromey@redhat.com>
6264
6265 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6266 return paths.
6267 (mips_initialize): Likewise.
6268 (common_open): Call do_cleanups.
6269
6270 2013-05-30 Tom Tromey <tromey@redhat.com>
6271
6272 * utils.c (internal_vproblem): Call do_cleanups.
6273
6274 2013-05-30 Tom Tromey <tromey@redhat.com>
6275
6276 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6277
6278 2013-05-30 Tom Tromey <tromey@redhat.com>
6279
6280 * cli/cli-script.c (setup_user_args): Don't return after error.
6281
6282 2013-05-30 Tom Tromey <tromey@redhat.com>
6283
6284 * somread.c (som_symtab_read): Call do_cleanups.
6285
6286 2013-05-30 Tom Tromey <tromey@redhat.com>
6287
6288 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6289
6290 2013-05-30 Tom Tromey <tromey@redhat.com>
6291
6292 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6293 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6294 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6295 * source.c (show_substitute_path_command): Call do_cleanups.
6296 (unset_substitute_path_command, set_substitute_path_command):
6297 Likewise.
6298 * symfile.c (load_command): Call do_cleanups.
6299
6300 2013-05-30 Tom Tromey <tromey@redhat.com>
6301
6302 * contrib/cleanup_check.py: New file.
6303 * contrib/gcc-with-excheck: Add option parsing.
6304
6305 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6306
6307 * windows-nat.c (windows_delete_thread): Add missing space
6308 in cast expression.
6309
6310 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6311
6312 * inferior.c (top level): Include tilde.h.
6313 (add_inferior_command): Call tilde_expand on the value of 'exec'
6314 argument.
6315
6316 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6317 Yao Qi <yao@codesourcery.com>
6318
6319 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6320 Caller update.
6321 (encode_actions): Likewise.
6322 * remote.c (remote_download_tracepoint): Caller update.
6323 * tracepoint.h (encode_actions): Update declaration.
6324
6325 2013-05-30 Pedro Alves <palves@redhat.com>
6326
6327 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6328 pointer.
6329
6330 2013-05-30 Yao Qi <yao@codesourcery.com>
6331
6332 * remote.c (remote_check_symbols): Remove unused parameter
6333 'objfile'.
6334 Declaration update.
6335 (remote_start_remote, remote_new_objfile): Caller update.
6336
6337 2013-05-30 Yao Qi <yao@codesourcery.com>
6338
6339 * mi/mi-cmds.c (mi_cmds): Define MI command
6340 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6341 DEF_MI_CMD_CLI.
6342
6343 2013-05-29 Pedro Alves <palves@redhat.com>
6344
6345 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6346 (remote_insert_watchpoint, remote_remove_watchpoint)
6347 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6348 (remote_verify_memory, compare_sections_command)
6349 (remote_search_memory): Set the general process/thread on the
6350 remote side.
6351
6352 2013-05-29 Pedro Alves <palves@redhat.com>
6353
6354 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6355 (_initialize_aarch64_tdep): Don't call
6356 initialize_tdesc_aarch64_without_fpu.
6357 * features/Makefile (WHICH): Remove reference to
6358 aarch64-without-fpu.
6359 * features/aarch64-without-fpu.c: Delete file.
6360 * regformats/aarch64-without-fpu.dat: Delete file.
6361
6362 2013-05-28 Yao Qi <yao@codesourcery.com>
6363
6364 * tracepoint.c (stringify_collection_list): Remove parameter
6365 'string'.
6366 (encode_actions): Caller update. Remove local variables.
6367
6368 2013-05-24 Yao Qi <yao@codesourcery.com>
6369
6370 * tracepoint.c (TFILE_PID): Remove.
6371 (tfile_open): Don't add thread and inferior.
6372 (tfile_close): Don't set 'inferior_ptid'. Don't call
6373 exit_inferior_silent.
6374 (tfile_thread_alive): Remove.
6375 (init_tfile_ops): Don't set field 'to_thread_alive' of
6376 tfile_ops.
6377
6378 2013-05-23 Doug Evans <dje@google.com>
6379
6380 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6381
6382 2013-05-23 Pedro Alves <palves@redhat.com>
6383
6384 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6385 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6386 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6387 Only define if HAVE_SOCKETS is defined.
6388 * configure.ac: Check for sys/socket.h.
6389 * config.in, configure: Regenerate.
6390
6391 2013-05-23 Pedro Alves <palves@redhat.com>
6392
6393 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6394 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6395 printing uint32_t variables.
6396
6397 2013-05-23 Pedro Alves <palves@redhat.com>
6398
6399 * NEWS: Mention GDBserver range stepping support.
6400
6401 2013-05-23 Yao Qi <yao@codesourcery.com>
6402 Pedro Alves <palves@redhat.com>
6403
6404 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6405 field.
6406 * infcmd.c (step_once, until_next_command): Enable range stepping.
6407 * infrun.c (displaced_step_prepare): Disable range stepping.
6408 (resume): Disable range stepping if stepping over a breakpoint or
6409 we have software watchpoints. If range stepping is enabled,
6410 assert the thread is in the stepping range.
6411 (clear_proceed_status_thread): Clear may_range_step.
6412 (handle_inferior_event): Disable range stepping as soon as we know
6413 the thread that hit the event. Re-enable it whenever we're going
6414 to step with a step range.
6415 * remote.c (struct vCont_action_support) <r>: New field.
6416 (use_range_stepping): New global.
6417 (remote_vcont_probe): Handle 'r' action.
6418 (append_resumption): Append an 'r' action if the thread may range
6419 step.
6420 (show_range_stepping): New function.
6421 (set_range_stepping): New function.
6422 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6423 'set range-stepping' and 'show range-stepping' commands.
6424 * NEWS: Mention range stepping, the new vCont;r action, and the
6425 new "set/show range-stepping" commands.
6426
6427 2013-05-23 Yao Qi <yao@codesourcery.com>
6428 Pedro Alves <palves@redhat.com>
6429
6430 * remote.c (struct vCont_action_support): New struct.
6431 (struct remote_state) <support_vCont_t>: Remove field.
6432 <vCont_actions_support>: New field.
6433 (remote_vcont_probe, remote_stop_ns): Update.
6434
6435 2013-05-23 Yao Qi <yao@codesourcery.com>
6436 Pedro Alves <palves@redhat.com>
6437
6438 * gdbthread.h (pc_in_thread_step_range): New declaration.
6439 * thread.c (pc_in_thread_step_range): New function.
6440 * infrun.c (handle_inferior_event): Use it.
6441
6442 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6443
6444 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6445 of sprintf.
6446
6447 2013-05-22 Keith Seitz <keiths@redhat.com>
6448
6449 * ada-lang.c (is_known_support_routine): Add explicit free of
6450 'func_name' from find_frame_funname.
6451 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6452 for func_name from find_frame_funname.
6453 * python/py-frame.c (frapy_name): Add explicit free of
6454 'name' from find_frame_funname.
6455 * stack.c (find_frame_funname): Add comment explaining that
6456 funcp must be freed by the caller.
6457 Return copy of symbol names instead of pointers.
6458 (print_frame): Add a cleanup for 'funname' from
6459 find_frame_funname.
6460 * stack.h (find_frame_funname): Remove "const" from
6461 'funname' parameter.
6462
6463 2013-05-22 Tom Tromey <tromey@redhat.com>
6464
6465 PR c++/15401:
6466 * c-valprint.c (c_value_print): Use value_addr for
6467 references. Convert back to reference type with value_ref.
6468
6469 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6470
6471 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6472 unloaded DLL, it will be done by handle_solib_event. See
6473 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6474 details.
6475
6476 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6477
6478 * ui-out.c: Create typedef ui_out_level_p and define vector
6479 operations for that type.
6480 (struct ui_out): Use a vector instead of an array.
6481 (current_level): Return level from a vector.
6482 (push_level): Create a level in a vector.
6483 (pop_level): Delete a level in a vector.
6484 (ui_out_new): Create initial level zero level, and store in a
6485 vector.
6486 (ui_out_destroy): Add vector cleanup.
6487
6488 2013-05-22 Pedro Alves <palves@redhat.com>
6489
6490 * python/python-internal.h (gdb_Py_DECREF): Tag with
6491 "ARI: editCase function".
6492
6493 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6494
6495 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6496
6497 2013-05-21 Pedro Alves <palves@redhat.com>
6498
6499 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6500 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6501 * python/py-utils.c (py_decref): Don't check for NULL before
6502 calling Py_DECREF.
6503
6504 2013-05-21 Pedro Alves <palves@redhat.com>
6505
6506 * python/py-utils.c (py_decref): Remove extra braces.
6507 (gdb_pymodule_addobject): Remove extra braces.
6508 * python-internal.h (gdb_Py_DECREF): New static inline function.
6509 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6510
6511 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6512
6513 * breakpoints.c (detach_breakpoints): Do not
6514 detach breakpoints locations with loc_type bp_loc_other.
6515
6516 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 Workaround Python 2.6.
6519 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6520 a block.
6521
6522 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6523
6524 Code cleanup: constification.
6525 * solib.c (solib_ops): Make return type and ops variable type const.
6526 (set_solib_ops): Make the new_ops parameter and ops variable const.
6527 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6528 (solib_add, solib_keep_data_in_core, clear_solib)
6529 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6530 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6531 const.
6532 * solib.h (set_solib_ops): Make the new_ops parameter const.
6533
6534 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6535
6536 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6537 variable.
6538 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6539 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6540 (SYSTEM_GDBINIT_FILES): New variables.
6541 (all): Add stamp-system-gdbinit.
6542 (stamp-system-gdbinit): New rule.
6543 (clean-system-gdbinit, install-system-gdbinit)
6544 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6545 (install-only): Add dependency on install-system-gdbinit.
6546 (uninstall): Add dependency on uninstall-system-gdbinit.
6547 (clean): Add dependency on clean-system-gdbinit.
6548 * system-gdbinit/elinos.py: New file.
6549 * system-gdbinit/wrs-linux.py: New file.
6550
6551 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6552
6553 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6554
6555 2013-05-21 Hui Zhu <hui@codesourcery.com>
6556
6557 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6558 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6559 * mi/mi-cmd-break.c (ctype.h): New include.
6560 (gdb_obstack.h): New include.
6561 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6562 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6563 (mi_cmd_dprintf_insert): New.
6564 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6565 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6566
6567 2013-05-20 Tom Tromey <tromey@redhat.com>
6568
6569 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6570
6571 2013-05-20 Tom Tromey <tromey@redhat.com>
6572
6573 * python/py-value.c (valpy_get_dynamic_type): Simplify
6574 dynamic_type assignment. Use Py_XINCREF.
6575
6576 2013-05-20 Tom Tromey <tromey@redhat.com>
6577
6578 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6579
6580 2013-05-20 Tom Tromey <tromey@redhat.com>
6581
6582 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6583 (gdbpy_selected_frame): Move object-construction code
6584 out of TRY_CATCH.
6585
6586 2013-05-20 Tom Tromey <tromey@redhat.com>
6587
6588 * python/py-arch.c (gdbpy_initialize_arch): Use
6589 gdb_pymodule_addobject.
6590 * python/py-block.c (gdbpy_initialize_blocks): Use
6591 gdb_pymodule_addobject.
6592 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6593 gdb_pymodule_addobject.
6594 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6595 gdb_pymodule_addobject.
6596 * python/py-event.c (gdbpy_initialize_event_generic): Use
6597 gdb_pymodule_addobject.
6598 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6599 gdb_pymodule_addobject.
6600 * python/py-evts.c (add_new_registry): Use
6601 gdb_pymodule_addobject.
6602 (gdbpy_initialize_py_events): Likewise.
6603 * python/py-finishbreakpoint.c
6604 (gdbpy_initialize_finishbreakpoints): Use
6605 gdb_pymodule_addobject.
6606 * python/py-frame.c (gdbpy_initialize_frames): Use
6607 gdb_pymodule_addobject.
6608 * python/py-function.c (gdbpy_initialize_functions): Use
6609 gdb_pymodule_addobject.
6610 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6611 gdb_pymodule_addobject.
6612 * python/py-infthread.c (gdbpy_initialize_thread): Use
6613 gdb_pymodule_addobject.
6614 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6615 gdb_pymodule_addobject.
6616 * python/py-param.c (gdbpy_initialize_parameters): Use
6617 gdb_pymodule_addobject.
6618 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6619 gdb_pymodule_addobject.
6620 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6621 gdb_pymodule_addobject.
6622 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6623 gdb_pymodule_addobject.
6624 * python/py-type.c (gdbpy_initialize_types): Use
6625 gdb_pymodule_addobject.
6626 * python/py-utils.c (gdb_pymodule_addobject): New function.
6627 * python/py-value.c (gdbpy_initialize_values): Use
6628 gdb_pymodule_addobject.
6629 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6630 * python/python.c (_initialize_python): Use
6631 gdb_pymodule_addobject.
6632
6633 2013-05-20 Tom Tromey <tromey@redhat.com>
6634
6635 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6636 * python/py-param.c (get_set_value, get_show_value): Use
6637 explicit decrefs.
6638 * python/python.c (start_type_printers, apply_type_printers):
6639 Use explicit decrefs.
6640
6641 2013-05-20 Tom Tromey <tromey@redhat.com>
6642
6643 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6644 incref the module.
6645
6646 2013-05-20 Tom Tromey <tromey@redhat.com>
6647
6648 * python/python.c (gdbpy_run_events): Decref the result
6649 of PyObject_CallObject.
6650
6651 2013-05-20 Tom Tromey <tromey@redhat.com>
6652
6653 * python/py-symtab.c (set_sal): Use
6654 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6655 (symtab_and_line_to_sal_object): Update.
6656
6657 2013-05-20 Tom Tromey <tromey@redhat.com>
6658
6659 * python/py-param.c (compute_enum_values): Decref 'item'.
6660
6661 2013-05-20 Tom Tromey <tromey@redhat.com>
6662
6663 * mi/mi-main.c: Include python-internal.h.
6664 (mi_cmd_list_features): Check gdb_python_initialized.
6665 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6666 (python_inferior_exit, python_new_objfile, add_thread_object)
6667 (delete_thread_object, py_free_inferior): Check
6668 gdb_python_initialized.
6669 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6670 gdb_python_initialized.
6671 * python/py-type.c (save_objfile_types): Check
6672 gdb_python_initialized.
6673 * python/python-internal.h (gdb_python_initialized): Declare.
6674 * python/python.c (ensure_python_env): Throw exception if
6675 Python not initialized.
6676 (before_prompt_hook, source_python_script_for_objfile)
6677 (start_type_printers, apply_type_printers,
6678 free_type_printers): Check gdb_python_initialized.
6679 * varobj.c (varobj_get_display_hint)
6680 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6681 (install_new_value_visualizer, varobj_set_visualizer)
6682 (value_get_print_value): Check gdb_python_initialized.
6683
6684 2013-05-20 Tom Tromey <tromey@redhat.com>
6685
6686 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6687 Check errors.
6688 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6689 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6690 Check errors.
6691 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6692 Check errors.
6693 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6694 Check errors.
6695 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6696 Check errors.
6697 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6698 init function to return 'int'.
6699 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6700 Return 'int'. Check errors.
6701 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6702 Check errors.
6703 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6704 Return 'int'. Check errors.
6705 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6706 Check errors.
6707 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6708 Check errors.
6709 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6710 Check errors.
6711 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6712 Check errors.
6713 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6714 Check errors.
6715 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6716 Check errors.
6717 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6718 Check errors.
6719 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6720 Check errors.
6721 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6722 Check errors.
6723 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6724 Check errors.
6725 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6726 Check errors.
6727 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6728 Check errors.
6729 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6730 Check errors.
6731 * python/python-internal.h (gdbpy_initialize_auto_load,
6732 gdbpy_initialize_values, gdbpy_initialize_frames,
6733 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6734 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6735 gdbpy_initialize_blocks, gdbpy_initialize_types,
6736 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6737 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6738 gdbpy_initialize_finishbreakpoints,
6739 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6740 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6741 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6742 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6743 gdbpy_initialize_signal_event,
6744 gdbpy_initialize_breakpoint_event,
6745 gdbpy_initialize_continue_event,
6746 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6747 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6748 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6749 * python/python.c (gdb_python_initialized): New global.
6750 (gdbpy_initialize_events): Return 'int'. Check errors.
6751 (_initialize_python): Check errors. Set
6752 gdb_python_initialized.
6753
6754 2013-05-20 Tom Tromey <tromey@redhat.com>
6755
6756 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6757 Decref the reslut of PyObject_CallMethod.
6758
6759 2013-05-20 Tom Tromey <tromey@redhat.com>
6760
6761 * python/py-event.c (gdbpy_initialize_event_generic): Return
6762 early if PyType_Ready fails.
6763
6764 2013-05-20 Tom Tromey <tromey@redhat.com>
6765
6766 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6767 as 'default' in the switch.
6768
6769 2013-05-20 Tom Tromey <tromey@redhat.com>
6770
6771 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6772 get_addr_from_python calls out of TRY_CATCH.
6773 (infpy_write_memory, infpy_search_memory): Likewise.
6774 * python/py-utils.c (get_addr_from_python): Return negative
6775 value on error. Use TRY_CATCH.
6776 * python/python-internal.h (get_addr_from_python): Use
6777 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6778
6779 2013-05-20 Tom Tromey <tromey@redhat.com>
6780
6781 * python/py-event.c (evpy_emit_event): Decref the
6782 result of PyObject_CallFunctionObjArgs.
6783
6784 2013-05-20 Tom Tromey <tromey@redhat.com>
6785
6786 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6787 Correctly decref.
6788
6789 2013-05-20 Tom Tromey <tromey@redhat.com>
6790
6791 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6792
6793 2013-05-20 Tom Tromey <tromey@redhat.com>
6794
6795 * python/py-event.h (gdbpy_initialize_event_generic): Use
6796 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6797 * python/py-evts.c (add_new_registry): Use
6798 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6799 * python/python-internal.h
6800 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6801
6802 2013-05-20 Tom Tromey <tromey@redhat.com>
6803
6804 * python/py-arch.c (archpy_disassemble): Update.
6805 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6806 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6807 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6808 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6809 macro.
6810 (GDB_PY_HANDLE_EXCEPTION): Update.
6811 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6812
6813 2013-05-20 Tom Tromey <tromey@redhat.com>
6814
6815 * python/python-internal.h (events_object_type): Remove.
6816
6817 2013-05-20 Tom Tromey <tromey@redhat.com>
6818
6819 * python/py-event.h (evpy_emit_event): Use
6820 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6821 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6822 New macro.
6823
6824 2013-05-20 Tom Tromey <tromey@redhat.com>
6825
6826 * py-evtregistry.c (create_event_object): Decref
6827 eventregistry_object if PyList_New fails.
6828
6829 2013-05-20 Tom Tromey <tromey@redhat.com>
6830
6831 * py-cmd.c (gdbpy_string_to_argv): Check result of
6832 PyList_New.
6833
6834 2013-05-20 Tom Tromey <tromey@redhat.com>
6835
6836 * python/python.c (before_prompt_hook): Add cleanup to
6837 decref 'hook'.
6838
6839 2013-05-20 Tom Tromey <tromey@redhat.com>
6840
6841 * python/py-function.c (fnpy_init): Decref result of
6842 PyObject_GetAttrString.
6843
6844 2013-05-20 Tom Tromey <tromey@redhat.com>
6845
6846 * python/py-threadevent.c (get_event_thread): Use
6847 CPYCHECKER_RETURNS_BORROWED_REF.
6848 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6849 New define.
6850 (pspace_to_pspace_object, objfile_to_objfile_object)
6851 (find_thread_object): Use it.
6852
6853 2013-05-20 Tom Tromey <tromey@redhat.com>
6854
6855 * python/py-arch.c (arch_object_type): Use
6856 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6857 * python/py-block.c (block_syms_iterator_object_type):
6858 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6859 * python/py-bpevent.c (breakpoint_event_object_type):
6860 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6861 * python/py-cmd.c (cmdpy_object_type): Use
6862 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6863 * python/py-continueevent.c (continue_event_object_type):
6864 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6865 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6866 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6867 * python/py-events.h (thread_event_object_type):
6868 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6869 * python/py-evtregistry.c (eventregistry_object_type): Use
6870 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6871 * python/py-exitedevent.c (exited_event_object_type):
6872 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6873 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6874 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6875 * python/py-function.c (fnpy_object_type): Use
6876 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6877 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6878 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6879 * python/py-infthread.c (thread_object_type): Use
6880 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6881 * python/py-lazy-string.c (lazy_string_object_type):
6882 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6883 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6884 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6885 * python/py-objfile.c (objfile_object_type): Use
6886 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6887 * python/py-param.c (parmpy_object_type):
6888 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6889 * python/py-progspace.c (pspace_object_type):
6890 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6891 * python/py-signalevent.c (signal_event_object_type):
6892 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6893 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6894 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6895 * python/py-type.c (type_object_type, field_object_type)
6896 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6897 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6898 define.
6899 (value_object_type, block_object_type, symbol_object_type)
6900 (event_object_type, stop_event_object_type, breakpoint_object_type)
6901 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6902
6903 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6904
6905 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6906 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6907
6908 2013-05-20 Doug Evans <dje@google.com>
6909
6910 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6911 For Fission.
6912 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6913 reading_dwo_directly.
6914 (struct signatured_type): New member dwo_unit.
6915 (struct die_reader_specs): New member comp_dir.
6916 (create_signatured_type_table_from_index): Use malloc for
6917 all_type_units instead of objfile's obstack.
6918 (create_all_type_units): Ditto.
6919 (fill_in_sig_entry_from_dwo_entry): New function.
6920 (add_type_unit): New function.
6921 (lookup_dwo_signatured_type): New function.
6922 (lookup_dwp_signatured_type): New function.
6923 (lookup_signatured_type): New arg cu. All callers updated.
6924 (init_cu_die_reader): Initialize comp_dir.
6925 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6926 Change assert of matching type signatures to call error on mismatch.
6927 (lookup_dwo_unit): Add assert.
6928 (init_tu_and_read_dwo_dies): New function.
6929 (init_cutu_and_read_dies): Call it.
6930 (build_type_unit_groups): Handle case of no type unit groups created.
6931 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6932 (lookup_dwo_cutu): Tweak complaint.
6933 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6934 (dwarf2_per_objfile_free): Free all_type_units.
6935
6936 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6937
6938 * windows-nat.c (handle_unload_dll): Add missing empty line.
6939
6940 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6941
6942 * dwarf2read.c (prototyped_function_p): New function.
6943 (read_subroutine_type): Use it.
6944
6945 2013-05-20 Joel Brobecker <brobecker@adacore.com>
6946
6947 * rs6000-aix-tdep.c: De-indent some example code provided
6948 as a comment.
6949
6950 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
6951
6952 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
6953 region is ok for a hardware watchpoint using the new ptrace interface
6954 on Power servers.
6955
6956 2013-05-17 Doug Evans <dje@google.com>
6957
6958 * NEWS: Mention new maintenance commands check-symtabs, and
6959 expand-symtabs, and renamed check-psymtabs.
6960 * psymtab.c (maintenance_check_psymtabs): Renamed from
6961 maintenance_check_symtabs. Only process already-expanded symbol
6962 tables.
6963 (_initialize_psymtab): Update.
6964 * symmisc.c (maintenance_check_symtabs): New function.
6965 (maintenance_expand_name_matcher): New function
6966 (maintenance_expand_file_matcher): New function
6967 (maintenance_expand_symtabs): New function.
6968 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
6969 commands.
6970
6971 2013-05-17 Tom Tromey <tromey@redhat.com>
6972
6973 * python/py-inferior.c (infpy_read_memory): Don't call
6974 PyErr_SetString if PyObject_New fails.
6975 * python/py-frame.c (frame_info_to_frame_object): Don't call
6976 PyErr_SetString if PyObject_New fails.
6977
6978 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
6979
6980 * acinclude.m4: Add check for dlopen in libdl.
6981 * configure.ac: Ditto.
6982 * configure: Regenerate.
6983
6984 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
6985
6986 * frame.c (frame_stash): Convert to htab.
6987 (frame_addr_hash): New function.
6988 (frame_addr_hash_eq): New function.
6989 (frame_stash_create): Convert function to create
6990 a hash table.
6991 (frame_stash_add): Convert function to add an entry to a hash
6992 table.
6993 (frame_stash_find): Convert function to search the hash table.
6994 (frame_stash_invalidate): Convert function to empty the hash
6995 table.
6996 (get_frame_id): Only add to stash if a frame_id is created.
6997 (_initialize_frame): Call frame_stash_create.
6998
6999 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7000
7001 * configure.ac: Ensure MIG is available when building for GNU Hurd
7002 hosts.
7003 * configure: Regenerate.
7004
7005 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7006
7007 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7008
7009 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7010
7011 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7012 all cleanups are done before returning from this function.
7013
7014 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7015
7016 * utils.h: #include "exceptions.h".
7017 (enum errors): Remove partial declaration.
7018
7019 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7020
7021 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7022 * gdbarch.h, gdbarch.c: Regenerate.
7023 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7024 handling.
7025
7026 * rs6000-aix-tdep.h: New file.
7027 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7028 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7029 "xml-utils.h".
7030 (struct field_info, struct ld_info_desc): New types.
7031 (ld_info32_desc, ld_info64_desc): New static constants.
7032 (struct ld_info): New type.
7033 (rs6000_aix_extract_ld_info): New function.
7034 (rs6000_aix_shared_library_to_xml): Likewise.
7035 (rs6000_aix_ld_info_to_xml): Likewise.
7036 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7037 (rs6000_aix_init_osabi): Add call to
7038 set_gdbarch_core_xfer_shared_libraries_aix.
7039 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7040 Remove "xml-utils.h" include.
7041 (LdInfo): Delete typedef.
7042 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7043 Delete macros.
7044 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7045 Adjust code accordingly.
7046 (rs6000_core_ldinfo): Delete, folded into
7047 rs6000_aix_core_xfer_shared_libraries_aix.
7048 (rs6000_xfer_shared_library): Delete.
7049 (rs6000_xfer_shared_libraries): Reimplement.
7050
7051 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7052
7053 * record.c (record_goto_cmdlist): New.
7054 (cmd_record_goto): Split into this ...
7055 (cmd_record_goto_begin): ... this
7056 (cmd_record_goto_end): ... and this.
7057 (_initialize_record): Change "record goto" to prefix command.
7058 Add commands for "record goto begin" and "record goto end".
7059 Add an alias for "record goto start" to "record goto begin".
7060
7061 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 * linespec.c (convert_linespec_to_sals): New comment for
7064 SOURCE_FILENAME assignment.
7065
7066 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7067
7068 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7069 internal_warning.
7070
7071 2013-05-14 Tom Tromey <tromey@redhat.com>
7072
7073 * eval.c (parse_and_eval_long): Make 'exp' const.
7074 * value.h (parse_and_eval_long): Update.
7075
7076 2013-05-14 Tom Tromey <tromey@redhat.com>
7077
7078 * ui-file.c (gdb_fopen): Make arguments const.
7079 * ui-file.h (gdb_fopen): Make arguments const.
7080
7081 2013-05-14 Tom Tromey <tromey@redhat.com>
7082
7083 * remote.c (remote_set_trace_notes): Make arguments const.
7084 * target.c (update_current_target): Update cast.
7085 * target.h (to_set_trace_notes): Make arguments const.
7086
7087 2013-05-14 Tom Tromey <tromey@redhat.com>
7088
7089 * go32-nat.c (go32_terminal_info): Make 'args' const.
7090 * inferior.h (child_terminal_info): Update.
7091 * inflow.c (child_terminal_info): Make 'args' const.
7092 * target.c (default_terminal_info): Make 'args' const.
7093 (debug_to_terminal_save_ours): Likewise.
7094 * target.h (struct target_ops) <to_terminal_info>: Make argument
7095 const.
7096
7097 2013-05-13 Tom Tromey <tromey@redhat.com>
7098
7099 * gcore.c (create_gcore_bfd): Make 'filename' const.
7100 * gcore.h (create_gcore_bfd): Make 'filename' const.
7101 * record-full.c (record_full_save): Make 'recfilename' const.
7102 * target.c (target_save_record): Make 'filename' const.
7103 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7104 const.
7105 (target_save_record): Likewise.
7106
7107 2013-05-13 Tom Tromey <tromey@redhat.com>
7108
7109 PR gdb/15338:
7110 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7111 ranges section has been read.
7112
7113 2013-05-13 Tom Tromey <tromey@redhat.com>
7114
7115 PR exp/15364:
7116 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7117 STRUCTOP_PTR>: Return a not_lval value for
7118 EVAL_AVOID_SIDE_EFFECTS.
7119 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7120 for EVAL_AVOID_SIDE_EFFECTS.
7121
7122 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7123
7124 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7125 floating point registers to register type before storing
7126 value.
7127 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7128 Likewise.
7129
7130 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7131 Tom Tromey <tromey@redhat.com>
7132
7133 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7134 New functions.
7135 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7136 Declare.
7137 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7138 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7139 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7140 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7141
7142 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7143 Tom Tromey <tromey@redhat.com>
7144
7145 PR build/15414:
7146 * configure: Rebuild.
7147 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7148 with -Wno-format.
7149
7150 2013-05-10 Pedro Alves <palves@redhat.com>
7151
7152 * remote.c (_initialize_remote): Fix spelling of
7153 qXfer:traceframe-info:read packet in packet config command.
7154
7155 2013-05-10 David Taylor <dtaylor@emc.com>
7156
7157 PR remote/15455
7158
7159 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7160 "QTro" at start of packet.
7161
7162 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7163
7164 * solib-aix.c (solib_aix_relocate_section_addresses):
7165 For the .bss section action, apply the same offset as
7166 the .data section.
7167
7168 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7169
7170 * solib-aix.c (solib_aix_relocate_section_addresses):
7171 Remove FIXME comment.
7172
7173 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7174
7175 PR tdep/15420:
7176 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7177 New functions, directly copied from sparc-sol-thread.c.
7178 * sparc-sol-thread.c: Delete.
7179 * configure.ac: Remove code handling sparc-solaris-thread.c.
7180 * configure: Regenerate.
7181
7182 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7183
7184 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7185 filter logic.
7186 (backtrace_command): Add "no-filters" option parsing.
7187 (_initialize_stack): Alter help to reflect "no-filters" option.
7188 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7189 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7190 (py-frame.o): Add target
7191 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7192 filter files.
7193 * python/python.h: Add new frame filter constants, and flag enum.
7194 (apply_frame_filter): Add definition.
7195 * python/python.c (apply_frame_filter): New non-Python
7196 enabled function.
7197 * python/py-utils.c (py_xdecref): New function.
7198 (make_cleanup_py_xdecref): Ditto.
7199 * python/py-objfile.c: Declare frame_filters dictionary.
7200 (objfpy_dealloc): Add frame_filters dealloc.
7201 (objfpy_new): Initialize frame_filters attribute.
7202 (objfile_to_objfile_object): Ditto.
7203 (objfpy_get_frame_filters): New function.
7204 (objfpy_set_frame_filters): New function.
7205 * python/py-progspace.c: Declare frame_filters dictionary.
7206 (pspy_dealloc): Add frame_filters dealloc.
7207 (pspy_new): Initialize frame_filters attribute.
7208 (pspacee_to_pspace_object): Ditto.
7209 (pspy_get_frame_filters): New function.
7210 (pspy_set_frame_filters): New function.
7211 * python/py-framefilter.c: New file.
7212 * python/lib/gdb/command/frame_filters.py: New file.
7213 * python/lib/gdb/frames.py: New file.
7214 * python/lib/gdb/__init__.py: Initialize global frame_filters
7215 dictionary
7216 * python/lib/gdb/FrameDecorator.py: New file.
7217 * python/lib/gdb/FrameIterator.py: New file.
7218 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7219 * mi/mi-cmds.h: Declare.
7220 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7221 --no-frame-filter logic, and Python frame filter logic.
7222 (stack_enable_frame_filters): New function.
7223 (parse_no_frame_option): Ditto.
7224 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7225 filter logic.
7226 (mi_cmd_stack_list_locals): Ditto.
7227 (mi_cmd_stack_list_args): Ditto.
7228 (mi_cmd_stack_list_variables): Ditto.
7229 * NEWS: Add frame filter note.
7230
7231 2013-05-09 Doug Evans <dje@google.com>
7232
7233 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7234 All callers updated.
7235 (syms_from_objfile): Ditto. Make static.
7236 (symbol_file_add_with_addrs): Renamed from
7237 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7238 num_offsets. All callers updated.
7239 * symfile.h (syms_from_objfile): Delete.
7240
7241 * symfile.c (decrement_reading_symtab): Add assert.
7242 (increment_reading_symtab): Ditto.
7243
7244 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7245
7246 * source.c (forward_search_command): Replace call to getc
7247 by call to fgetc.
7248 (reverse_search_command): Likewise.
7249
7250 2013-05-08 Doug Evans <dje@google.com>
7251
7252 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7253 matching test.
7254
7255 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7256
7257 * sol-thread.c (info_cb): Factorize the code a little.
7258
7259 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7260
7261 * sol-thread.c (info_cb): Rework the output of the "maintenance
7262 info sol-threads" command a bit.
7263
7264 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7265
7266 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7267 Replace ti.ti_startfunc by ti.ti_pc.
7268
7269 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7270
7271 * solib-aix.c (solib_aix_free_library_list): New function
7272 for the case where HAVE_LIBEXPAT is not defined.
7273
7274 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7275
7276 PR breakpoints/15413:
7277 * breakpoint.c (condition_completer): Simplify the code to
7278 disconsider multiple locations of breakpoints when completing the
7279 "condition" command.
7280
7281 2013-05-07 Pierre Muller <muller@sourceware.org>
7282
7283 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7284 instead of <sys/wait.h>.
7285
7286 2013-05-07 Pierre Muller <muller@sourceware.org>
7287
7288 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7289 trailing new line from warning message.
7290
7291 2013-05-07 Pierre Muller <muller@sourceware.org>
7292
7293 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7294 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7295
7296 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7297
7298 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7299 error message (ARI fix).
7300
7301 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7302
7303 * features/library-list-aix.dtd: Replace library-list by
7304 library-list-aix.
7305 * rs6000-nat.c: Replace library-list by library-list-aix
7306 throughout.
7307 * solib-aix.c: Likewise.
7308
7309 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7310
7311 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7312 Renames TARGET_OBJECT_AIX_LIBRARIES.
7313 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7314 TARGET_OBJECT_LIBRARIES_AIX throughout.
7315 * solib-aix.c: Likwise.
7316
7317 2013-05-07 Yao Qi <yao@codesourcery.com>
7318
7319 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7320 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7321
7322 2013-05-07 Yao Qi <yao@codesourcery.com>
7323
7324 * solib-dsbt.c (enable_break): Declare.
7325 (dsbt_current_sos): Remove call to enable_break2.
7326 (enable_break2): Rename to enable_break. Set solib breakpoint
7327 on '_dl_debug_state'.
7328 (enable_break): Remove.
7329
7330 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7331
7332 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7333 debug state prior to replicating existing hardware watchpoints or
7334 breakpoints.
7335
7336 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 * gcore.c (gcore_create_callback): Ignore sections with
7339 separate_debug_objfile_backlink != NULL.
7340
7341 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7342 Andrew Jenner <andrew@codesourcery.com>
7343 Chung-Lin Tang <cltang@codesourcery.com>
7344 Julian Brown <julian@codesourcery.com>
7345
7346 Based on the nios2-elf port from Altera Corporation.
7347
7348 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7349 nios2-linux-tdep.o.
7350 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7351 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7352 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7353 * nios2-tdep.h: New.
7354 * nios2-tdep.c: New.
7355 * nios2-linux-tdep.c: New.
7356 * features/Makefile (WHICH): Add nios2-linux.
7357 (nios2-linux-expedite): Set.
7358 * features/nios2-cpu.xml: New.
7359 * features/nios2.xml: New.
7360 * features/nios2-linux.xml: New.
7361 * features/nios2.c: New (autogenerated).
7362 * features/nios2-linux.c: New (autogenerated).
7363 * regformats/nios2-linux.dat: New (autogenerated).
7364 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7365 and commands.
7366
7367 2013-05-06 Doug Evans <dje@google.com>
7368
7369 * symfile.c: Whitespace cleanup.
7370
7371 * solist.h (struct target_so_ops): New member clear_so.
7372 * solib-svr4.c (svr4_clear_so): New function.
7373 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7374 * solib.c (clear_so): Renamed from free_so_symbols.
7375 All callers updated. Call target clear_so if it exists.
7376
7377 2013-05-06 Tom Tromey <tromey@redhat.com>
7378
7379 * ada-lang.c (ada_value_primitive_packed_val): Don't
7380 call value_incref.
7381 * value.c (set_value_parent): Incref the new parent and decref
7382 the old parent.
7383 (value_copy, value_primitive_field): Use set_value_parent.
7384
7385 2013-05-06 Tom Tromey <tromey@redhat.com>
7386
7387 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7388 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7389 if needed.
7390 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7391 * dwarf2read.c (write_constant_as_bytes)
7392 (dwarf2_fetch_constant_bytes): New functions.
7393
7394 2013-05-06 Tom Tromey <tromey@redhat.com>
7395
7396 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7397 parameters.
7398 (dwarf2_const_value_attr): Update.
7399
7400 2013-05-06 Tom Tromey <tromey@redhat.com>
7401
7402 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7403 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7404 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7405 Remove declaration.
7406
7407 2013-05-06 Tom Tromey <tromey@redhat.com>
7408
7409 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7410 objfile's obstack.
7411
7412 2013-05-06 Doug Evans <dje@google.com>
7413
7414 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7415 * stabsread.h (process_one_symbol): Update declaration.
7416 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7417 * elfread.c (elf_symfile_relocate_probe): Ditto.
7418 * psymtab.c (relocate_psymtabs): Ditto.
7419 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7420 (objfile_relocate): Ditto.
7421 * objfiles.h (objfile_relocate): Update declaration.
7422 * symfile.c (relative_addr_info_to_section_offsets): Constify
7423 addrs parameter.
7424 (default_symfile_offsets): Ditto.
7425 (syms_from_objfile_1): Constify offsets parameter.
7426 (syms_from_objfile): Ditto.
7427 (symbol_file_add_with_addrs_or_offsets): Ditto.
7428 (symfile_map_offsets_to_segments): Constify data parameter.
7429 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7430 delta parameters of member relocate.
7431 (struct sym_probe_fns): Constify new_offsets,
7432 delta parameters of member sym_relocate_probe.
7433 (struct sym_fns): Constify section_addr_info parameter of member
7434 sym_offsets.
7435 (relative_addr_info_to_section_offsets): Update declaration.
7436 (default_symfile_offsets): Ditto.
7437 (syms_from_objfile): Ditto.
7438 (symfile_map_offsets_to_segments): Ditto.
7439
7440 * symfile.c (syms_from_objfile_1): Use correct section count when
7441 objfile->sf == NULL.
7442
7443 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7444
7445 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7446
7447 2013-05-06 Doug Evans <dje@google.com>
7448
7449 * psympriv.h (struct partial_symtab): Augment comment for member
7450 section_offsets.
7451
7452 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7453
7454 Reimplement shared library support on ppc-aix...
7455 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7456 * features/library-list-aix.dtd: New file.
7457 * solib-aix.h, solib-aix.c: New file.
7458 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7459 (rs6000_find_toc_address_hook): Delete.
7460 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7461 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7462 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7463 "xml-utils.h".
7464 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7465 (vmap_symtab, fixup_breakpoints): Delete.
7466 (rs6000_xfer_shared_libraries): New function.
7467 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7468 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7469 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7470 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7471 (rs6000_xfer_shared_library): New function.
7472 (find_toc_address): Delete.
7473 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7474 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7475 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7476 before creating minimal symbol. Adjust function description
7477 accordingly.
7478 (scan_xcoff_symtab): Replace call to
7479 prim_record_minimal_symbol_and_info by call to
7480 record_minimal_symbol.
7481 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7482 around default_symfile_offsets.
7483 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7484 powerpc-aix targets.
7485 * config/rs6000/nm-rs6000.h: Delete.
7486 * config/powerpc/aix.mh (NAT_FILE): Delete.
7487 (NATDEPFILES): Remove xcoffsolib.o.
7488 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7489 (ALL_TARGET_OBS): Add solib-aix.o.
7490 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7491 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7492 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7493 * xcoffsolib.h, xcoffsolib.c: Delete.
7494
7495 * solib.c (reload_shared_libraries): Remove reference to
7496 SOLIB_CREATE_INFERIOR_HOOK.
7497 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7498 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7499 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7500 comment.
7501 * corelow.c (deprecated_core_resize_section_table): Delete.
7502 * exec.c: Remove include of xcoffsolib.h".
7503 (map_vmap, vmap): Delete.
7504 (exec_close_1): Remove references to vmap.
7505 (exec_file_attach): Remove vmap handling code, and reference
7506 to DEPRECATED_IBM6000_TARGET.
7507 (bfdsec_to_vmap): Delete.
7508 (exec_files_info): Remove block of code handling VMAP.
7509 * infcmd.c (post_create_inferior): Remove reference to
7510 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7511 * infrun.c (follow_exec): Remove reference to
7512 SOLIB_CREATE_INFERIOR_HOOK.
7513 * stack.c (print_frame): Remove reference to PC_SOLIB.
7514 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7515 (dsbt_relocate_main_executable): Likewise.
7516 * solib-frv.c (frv_current_sos): Likewise.
7517
7518 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7519
7520 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7521 to target_write_memory and target_read_memory.
7522
7523 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7524
7525 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7526 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7527
7528 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7529
7530 * darwin-nat.c: Replace all "%x" instances in format strings
7531 into "0x%x" throughout.
7532
7533 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7534
7535 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7536 gdb_assert by call to MACH_CHECK_ERROR.
7537 (darwin_attach_pid): Raise an error rather than a failed
7538 assertion when various system calls failed. Report a warning
7539 instead of raising a failed assertion when PREV_NOT is not NULL
7540 after call to mach_port_request_notification.
7541 (darwin_ptrace_me): Raise an error rather than a failed
7542 assertion when read returns nonzero.
7543
7544 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7545
7546 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7547
7548 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7549
7550 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7551
7552 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7553
7554 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7555 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7556 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7557 a stale cleanup. Fix double free of NAME.
7558
7559 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7560
7561 * windows-nat.c (windows_delete_thread): Accept an additional
7562 argument, the thread's exit code, and announce thread death when
7563 print_thread_events is non-zero and we are deleting a thread that
7564 is not the main thread.
7565 (get_windows_debug_event): Pass thread exit code to
7566 windows_delete_thread.
7567
7568 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7569
7570 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7571 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7572 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7573 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7574 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7575 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7576 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7577 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7578 (gdbarch_tdep): New struct.
7579 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7580 E_NUM_REGS.
7581 (v850e3v5_register_name): New function.
7582 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7583 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7584 code handling the struct return conventions for the RH850 ABI.
7585 Update all callers.
7586 (v850_eight_byte_align_p): New function.
7587 (v850_push_call_dummy): Push structs by value, not by reference
7588 for the RH850 ABI. Add support for eight byte alignment.
7589 (v850_dbtrap_breakpoint_from_pc): New function.
7590 (v850_gdbarch_init): Add ABI detection code. Register
7591 v850e3v5_register_name for the v850e3v5 architecture. Set the
7592 number of registers for v850e3v5. Register
7593 v850_dbtrap_breakpoint_from_pc as appropriate.
7594 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7595
7596 2013-05-03 Doug Evans <dje@google.com>
7597
7598 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7599 of bfd_count_sections.
7600 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7601 * symfile.c (default_symfile_offsets): Ditto.
7602 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7603 one entry, not bfd_count_sections entries.
7604
7605 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7606
7607 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7608 `save' and `restore' register groups. Don't include SPL
7609 or SPH in these groups.
7610 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7611 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7612 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7613 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7614 dwarf2_append_unwinders().
7615
7616 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7617
7618 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7619 ignore SIGINT and SIGTRAP in case these internal signals are
7620 caught explicitely.
7621
7622 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7623
7624 * darwin-nat.c (darwin_read_write_inferior): Change types
7625 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7626 of copy_count to "mach_msg_type_number_t".
7627 (darwin_read_dyld_info): Change type of parameter
7628 rdaddr to "gdb_byte *".
7629
7630 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7631
7632 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7633 of &info->load_map from "char *" to "gdb_byte *".
7634
7635 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7636
7637 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7638 from "char *" to "gdb_byte *".
7639 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7640
7641 2013-04-30 Doug Evans <dje@google.com>
7642
7643 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7644 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7645 DWO stub. If DWO isn't found, just use stub.
7646 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7647
7648 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7649 calling init_cutu_and_read_dies.
7650
7651 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7652
7653 * target-descriptions.c (maint_print_c_tdesc_cmd):
7654 Add case to parse structures as register types and
7655 bitfields.
7656
7657 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7658
7659 * MAINTAINERS (Write After Approval): Add myself to the list.
7660
7661 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7662
7663 * sol-thread.c (rw_common): Change type of parameter "buf"
7664 to "gdb_byte *".
7665 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7666 rw_common to "gdb_byte *" instead of "char *".
7667
7668 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7669
7670 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7671 of local variable msym to const struct bound_minimal_symbol.
7672 Adjust use accordingly.
7673 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7674
7675 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7676
7677 * i386gnu-nat.c (CREG_OFFSET): New macro.
7678 (creg_offset): New array.
7679 (CREG_ADDR): Use creg_offset instead of reg_offset.
7680
7681 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7682
7683 * mep-tdep.c (mep_write_pc): Delete.
7684 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7685 Add call to set_gdbarch_pc_regnum.
7686
7687 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7688
7689 * common/filestuff.c: Replace #include <dirent.h> by
7690 #include "gdb_dirent.h".
7691
7692 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7693
7694 * common/filestuff.c: Replace #include <sys/stat.h> by
7695 #include "gdb_stat.h".
7696
7697 2013-04-29 Pierre Muller <muller@sourceware.org>
7698
7699 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7700 editCase function rule.
7701 (get_DW_AT_signature_type): Likewise.
7702
7703 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7704
7705 * m32r-tdep.c (m32r_write_pc): Delete.
7706 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7707 Add call to set_gdbarch_pc_regnum.
7708
7709 2013-04-29 Pierre Muller <muller@sourceware.org>
7710
7711 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7712
7713 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7714
7715 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7716
7717 2013-04-28 Yao Qi <yao@codesourcery.com>
7718
7719 * solib-dsbt.c (fetch_loadmap): Re-indent.
7720 (displacement_from_map, enable_break2): Likewise.
7721 (dsbt_relocate_section_addresses): Likewise.
7722
7723 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7724
7725 GDB 7.6 released.
7726
7727 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7728
7729 PR corefiles/14983:
7730 * dwarf2read.c (process_full_comp_unit): Always create a static
7731 block.
7732
7733 2013-04-25 Hui Zhu <hui@codesourcery.com>
7734
7735 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7736 to loc->cmd_bytecode.
7737
7738 2013-04-24 Doug Evans <dje@google.com>
7739
7740 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7741
7742 2013-04-22 Keith Seitz <keiths@redhat.com>
7743
7744 * tracepoint.c (trace_save): Call the writer's start method.
7745
7746 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7747
7748 PR gdb/10462
7749 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7750 before argument.
7751
7752 2013-04-23 Tom Tromey <tromey@redhat.com>
7753
7754 * common/filestuff.c: Check USE_WIN32API before including
7755 sys/socket.h.
7756 (HAVE_F_GETFD): New define.
7757 (mark_cloexec): Check HAVE_F_GETFD.
7758 (gdb_open_cloexec): Change 'mode' to unsigned long.
7759 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7760 (gdb_pipe_cloexec): Check HAVE_PIPE.
7761 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7762 long.
7763
7764 2013-04-23 Hui Zhu <hui@codesourcery.com>
7765
7766 PR gdb/15293
7767 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7768
7769 2013-04-23 Hui Zhu <hui@codesourcery.com>
7770
7771 PR gdb/15165
7772 * breakpoint.c (dprintf_print_recreate): New.
7773 (save_breakpoints): Let it not save dprintf commands.
7774 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7775
7776 2013-04-22 Tom Tromey <tromey@redhat.com>
7777
7778 PR gdb/7912:
7779 * Makefile.in (SFILES): Add filestuff.c
7780 (COMMON_OBS): Add filestuff.o.
7781 (filestuff.o): New target.
7782 * auto-load.c (auto_load_objfile_script_1): Use
7783 gdb_fopen_cloexec.
7784 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7785 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7786 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7787 * common/agent.c (gdb_connect_sync_socket): Use
7788 gdb_socket_cloexec.
7789 * common/filestuff.c: New file.
7790 * common/filestuff.h: New file.
7791 * common/linux-osdata.c (linux_common_core_of_thread)
7792 (command_from_pid, commandline_from_pid, print_source_lines)
7793 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7794 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7795 gdb_fopen_cloexec.
7796 * common/linux-procfs.c (linux_proc_get_int)
7797 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7798 * config.in, configure: Rebuild.
7799 * configure.ac: Don't check for sys/socket.h. Check for
7800 fdwalk, pipe2.
7801 * corelow.c (core_open): Use gdb_open_cloexec.
7802 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7803 * fork-child.c (fork_inferior): Call close_most_fds.
7804 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7805 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7806 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7807 Use gdb_fopen_cloexec.
7808 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7809 gdb_open_cloexec.
7810 (linux_async_pipe): Use gdb_pipe_cloexec.
7811 * remote-fileio.c (remote_fileio_func_open): Use
7812 gdb_open_cloexec.
7813 * remote.c (remote_file_put, remote_file_get): Use
7814 gdb_fopen_cloexec.
7815 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7816 close_most_fds.
7817 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7818 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7819 * solib.c (solib_find): Use gdb_open_cloexec.
7820 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7821 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7822 (tfile_open): Use gdb_open_cloexec.
7823 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7824 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7825 * xml-support.c (xml_fetch_content_from_file): Use
7826 gdb_fopen_cloexec.
7827 * main.c (captured_main): Call notice_open_fds.
7828
7829 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7830
7831 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7832 'char *' to 'gdb_byte *'.
7833 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7834 'gdb_byte'.
7835
7836 2013-04-22 Yao Qi <yao@codesourcery.com>
7837
7838 * infrun.c: Fix typo in comment.
7839
7840 2013-04-22 Andrew Haley <aph@redhat.com>
7841
7842 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7843 instead of "long".
7844
7845 2013-04-20 Yao Qi <yao@codesourcery.com>
7846
7847 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7848 'char *' to 'gdb_byte *'. Cast the return value of
7849 'bt_ctf_get_char_array' to 'gdb_byte *'.
7850
7851 2013-04-19 Pedro Alves <palves@redhat.com>
7852
7853 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7854 -Wpointer-sign.
7855 * configure: Regenerate.
7856
7857 2013-04-19 Pedro Alves <palves@redhat.com>
7858
7859 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7860 'void *'.
7861
7862 2013-04-19 Pedro Alves <palves@redhat.com>
7863
7864 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7865 Change type of 'myaddr' parameter to gdb_byte pointer.
7866 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7867 to 'long long' pointer instead of to 'unsigned long long'.
7868 (monitor_write_memory_block, monitor_read_memory_single)
7869 (monitor_read_memory): Change type of 'myaddr' parameter to
7870 gdb_byte pointer.
7871
7872 2013-04-19 Pedro Alves <palves@redhat.com>
7873
7874 * record.c (validate_history_size): Make parameter 'setting'
7875 unsigned.
7876
7877 2013-04-19 Pedro Alves <palves@redhat.com>
7878
7879 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7880 to 'gdb_byte *'.
7881
7882 2013-04-19 Pedro Alves <palves@redhat.com>
7883
7884 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7885 local to int.
7886
7887 2013-04-19 Pedro Alves <palves@redhat.com>
7888
7889 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7890 * ada-tasks.c (read_fat_string_value): Likewise.
7891
7892 2013-04-19 Pedro Alves <palves@redhat.com>
7893
7894 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7895 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7896 'offset', and adjust.
7897
7898 2013-04-19 Pedro Alves <palves@redhat.com>
7899
7900 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7901 (read_index_from_section): Add cast to 'char *'.
7902
7903 2013-04-19 Pedro Alves <palves@redhat.com>
7904
7905 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7906
7907 2013-04-19 Pedro Alves <palves@redhat.com>
7908
7909 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7910
7911 2013-04-19 Pedro Alves <palves@redhat.com>
7912
7913 * record-full.c (record_full_get_bookmark): Change local 'ret'
7914 type to char * and add cast to gdb_byte *.
7915 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7916 string.
7917 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7918
7919 2013-04-19 Pedro Alves <palves@redhat.com>
7920
7921 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7922 * python/py-prettyprint.c (print_string_repr): Change type of
7923 'output' local to char *. Add cast to gdb_byte * in
7924 LA_PRINT_STRING call.
7925 (print_children): Change type of 'output' local to char *.
7926 * python/py-value.c (valpy_string): Add cast to const char * in
7927 PyUnicode_Decode call.
7928
7929 2013-04-19 Pedro Alves <palves@redhat.com>
7930
7931 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7932 and change its type to 'const char *'. Adjust.
7933 (mips_send_packet): Add cast to 'char *', and remove cast to
7934 'unsigned char *'.
7935 (mips_receive_packet): Remove cast to 'unsigned char *'.
7936 (mips_load_srec): Use bfd_byte.
7937 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
7938 (pmon_checkset): Make 'value' parameter unsigned.
7939
7940 2013-04-19 Pedro Alves <palves@redhat.com>
7941
7942 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
7943
7944 2013-04-19 Pedro Alves <palves@redhat.com>
7945
7946 * remote.c (remote_write_bytes_aux, compare_sections_command)
7947 (remote_read_qxfer)
7948 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
7949 (remote_hostio_readlink, remote_bfd_iovec_pread)
7950 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
7951 binary buffer, and char when buffer is used as string.
7952 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
7953 (trace_save, tfile_open, traceframe_walk_blocks)
7954 (tfile_fetch_registers): Likewise.
7955
7956 2013-04-19 Pedro Alves <palves@redhat.com>
7957
7958 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
7959 buffer and size_t size. Adjust.
7960 * ser-base.h (ser_base_write): Adjust.
7961 * ser-go32.c (cnts): Change type to size_t.
7962 (dos_write): Change prototype -- take 'void *'
7963 buffer and size_t size. Adjust.
7964 (dos_info): Print elements of 'cnts' as unsigned long.
7965 * serial.c (serial_write): Likewise.
7966 * serial.h (serial_write): Adjust.
7967 (struct serial_ops) <write>: Change prototype -- take 'void *'
7968 buffer and size_t size. Adjust.
7969
7970 2013-04-19 Pedro Alves <palves@redhat.com>
7971
7972 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
7973 gdb_byte *.
7974 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
7975
7976 2013-04-19 Pedro Alves <palves@redhat.com>
7977
7978 * alpha-tdep.c (alpha_extract_return_value): Use
7979 regcache_cooked_read_unsigned to read 'v0'.
7980
7981 2013-04-19 Pedro Alves <palves@redhat.com>
7982
7983 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
7984 parameters 'at', 'as' and 'offset' to uint32_t.
7985
7986 2013-04-19 Pedro Alves <palves@redhat.com>
7987
7988 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
7989 'is64' to signed 'int'.
7990
7991 2013-04-19 Pedro Alves <palves@redhat.com>
7992
7993 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
7994 parameter to int *.
7995
7996 2013-04-19 Pedro Alves <palves@redhat.com>
7997
7998 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
7999 'insnbuf' buffer type to unsigned int[].
8000
8001 2013-04-19 Pedro Alves <palves@redhat.com>
8002
8003 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8004
8005 2013-04-19 Pedro Alves <palves@redhat.com>
8006
8007 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8008 unsigned long *.
8009
8010 2013-04-19 Pedro Alves <palves@redhat.com>
8011
8012 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8013 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8014 UINT_MAX.
8015 * mips-tdep.c (heuristic_fence_post): Change type to int.
8016 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8017
8018 2013-04-19 Pedro Alves <palves@redhat.com>
8019
8020 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8021 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8022 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8023
8024 2013-04-19 Pedro Alves <palves@redhat.com>
8025
8026 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8027 it to get a string view of the byte buffer.
8028 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8029 type to gdb_byte *. Adjust.
8030 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8031 Change local to char *.
8032 * solib-darwin.c (find_program_interpreter): Change return type to
8033 char *. Adjust.
8034 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8035 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8036 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8037 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8038 * solib-svr4.c (find_program_interpreter): Change return type to
8039 char *. Adjust.
8040 (enable_break): Change local 'interp_name' to char *.
8041 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8042 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8043 (spu_pseudo_register_write_spu): Use char for string buffer.
8044 Adjust.
8045 (info_spu_event_command, info_spu_signal_command): Add casts to
8046 'char *'.
8047
8048 2013-04-19 Pedro Alves <palves@redhat.com>
8049
8050 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8051 gdb_byte[].
8052 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8053 * ada-lang.c (ada_value_assign): Use gdb_byte.
8054 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8055 (alphanbsd_sigtramp_offset): Use gdb_byte.
8056 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8057 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8058 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8059 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8060 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8061 * arm-tdep.c (arm_stub_unwind_sniffer)
8062 (arm_displaced_init_closure): Use gdb_byte.
8063 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8064 (arm_default_thumb_le_breakpoint)
8065 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8066 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8067 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8068 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8069 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8070 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8071 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8072 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8073 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8074 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8075 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8076 (cris_store_return_value, cris_extract_return_value): Use
8077 gdb_byte.
8078 (constraint): Change type of parameter to char * from signed
8079 char*. Use gdb_byte.
8080 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8081 of local buffer to gdb_byte *.
8082 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8083 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8084 (add_address_entry): Change type of local buffer to gdb_byte[].
8085 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8086 (frv_push_dummy_call): Use gdb_byte.
8087 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8088 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8089 (hppa_hpux_supply_save_state): Use gdb_byte.
8090 * hppa-tdep.c (hppa32_push_dummy_call)
8091 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8092 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8093 (slotN_contents, replace_slotN_contents): Change type of parameter
8094 to gdb_byte *.
8095 (fetch_instruction, ia64_pseudo_register_write)
8096 (ia64_register_to_value, ia64_value_to_register)
8097 (ia64_extract_return_value, ia64_store_return_value)
8098 (ia64_push_dummy_call): Use gdb_byte.
8099 * m32c-tdep.c (m32c_return_value): Remove cast.
8100 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8101 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8102 gdb_byte.
8103 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8104 * mn10300-tdep.c (mn10300_store_return_value)
8105 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8106 gdb_byte.
8107 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8108 (moxie_process_record): Remove casts.
8109 * ppc-ravenscar-thread.c (supply_register_at_address)
8110 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8111 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8112 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8113 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8114 * remote.c (compare_sections_command): Use gdb_byte.
8115 * score-tdep.c (score7_free_memblock): Change type of parameter to
8116 gdb_byte *.
8117 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8118 gdb_byte *. Use gdb_byte.
8119 (sh_push_dummy_call_fpu): Use gdb_byte.
8120 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8121 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8122 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8123 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8124 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8125 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8126 (sh64_store_return_value, sh64_register_convert_to_virtual):
8127 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8128 (sh64_pseudo_register_write): Use gdb_byte.
8129 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8130 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8131 buffer.
8132 (irix_current_sos): Use gdb_byte.
8133 * solib-som.c (som_current_sos): Use gdb_byte.
8134 * sparc-ravenscar-thread.c (supply_register_at_address)
8135 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8136 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8137 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8138 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8139 'gdb_byte *'.
8140 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8141 'gdb_byte *'.
8142 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8143 * xstormy16-tdep.c (xstormy16_extract_return_value)
8144 (xstormy16_store_return_value): Change parameter type to
8145 'gdb_byte *'. Adjust.
8146 (xstormy16_push_dummy_call): Use gdb_byte.
8147 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8148 (call0_analyze_prologue, execute_code): Use gdb_byte.
8149
8150 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8151 Pedro Alves <palves@redhat.com>
8152
8153 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8154 value contents.
8155
8156 2013-04-17 Doug Evans <dje@google.com>
8157
8158 * dwarf2read.c (struct signatured_type): New member type.
8159 (struct attribute): Replace member signatured_type with signature.
8160 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8161 (read_call_site_scope): Call follow_die_ref instead of
8162 follow_die_ref_or_sig.
8163 (read_structure_type): Rewrite handling of signatured types.
8164 (read_enumeration_type): Ditto.
8165 (read_attribute_value): Update.
8166 (build_error_marker_type): New function.
8167 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8168 Don't call error for bad types, just build an error marker type.
8169 (dump_die_shallow): Update.
8170 (follow_die_sig_1): Renamed from follow_die_sig.
8171 Don't call error for bad types, instead return NULL.
8172 (follow_die_sig): New function.
8173 (get_signatured_type, get_DW_AT_signature_type): New functions.
8174
8175 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8176
8177 * aarch64-tdep.c (aarch64_write_pc): Removed.
8178 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8179 function.
8180
8181 2013-04-17 Yao Qi <yao@codesourcery.com>
8182
8183 * top.c (print_gdb_configuration): Print configure-time
8184 parameter on using libbabeltrace or not.
8185
8186 2013-04-16 Pedro Alves <palves@redhat.com>
8187
8188 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8189
8190 2013-04-16 Pedro Alves <palves@redhat.com>
8191
8192 * common/glibc_thread_db.h: Update from upstream glibc
8193 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8194
8195 2013-04-16 Pedro Alves <palves@redhat.com>
8196
8197 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8198 * common/glibc_thread_db.h: ... this new file ...
8199 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8200
8201 2013-04-16 Will Newton <will.newton@gmail.com>
8202 Pedro Alves <palves@redhat.com>
8203
8204 PR build/11881
8205
8206 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8207 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8208 HAVE_THREAD_DB_H.
8209
8210 2013-04-16 Pedro Alves <palves@redhat.com>
8211 Eli Zaretskii <eliz@gnu.org>
8212
8213 * NEWS: Mention "set foo unlimited".
8214
8215 2013-04-15 Doug Evans <dje@google.com>
8216
8217 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8218 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8219 (create_dwo_cu_reader): Renamed from
8220 create_dwo_debug_info_hash_table_reader.
8221 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8222 Remove support for multiple CUs in a DWO file.
8223 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8224
8225 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8226 instead of phex.
8227 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8228 (create_dwo_in_dwp): Ditto.
8229
8230 2013-04-15 Tom Tromey <tromey@redhat.com>
8231
8232 * NEWS: Move recent entries into "since 7.6" section.
8233
8234 2013-04-15 Tom Tromey <tromey@redhat.com>
8235
8236 PR c++/13588:
8237 * NEWS: Update.
8238 * break-catch-throw.c (struct exception_catchpoint)
8239 <exception_rx, pattern>: New fields.
8240 (fetch_probe_arguments, dtor_exception_catchpoint)
8241 (check_status_exception_catchpoint)
8242 (print_one_detail_exception_catchpoint): New functions.
8243 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8244 Compile regular expression if needed.
8245 (extract_exception_regexp): New function.
8246 (catch_exception_command_1): Use extract_exception_regexp.
8247 (compute_exception): Use fetch_probe_arguments.
8248 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8249 and check_status fields.
8250 * cp-abi.c (cplus_typename_from_type_info): New function.
8251 * cp-abi.h (cplus_typename_from_type_info): Declare.
8252 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8253 * gdb_regex.h (compile_rx_or_error): Declare.
8254 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8255 comment.
8256 (init_gnuv3_ops): Set get_type_from_type_info field.
8257 * probe.c (compile_rx_or_error): Move...
8258 * utils.c (compile_rx_or_error): ... here.
8259
8260 2013-04-15 Tom Tromey <tromey@redhat.com>
8261
8262 PR c++/15176:
8263 * NEWS: Update.
8264 * break-catch-throw.c (compute_exception): New function.
8265 (exception_funcs): New global.
8266 (_initialize_break_catch_throw): Create $_exception.
8267 * cp-abi.c (cplus_type_from_type_info): New function.
8268 * cp-abi.h (cplus_type_from_type_info): Declare.
8269 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8270 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8271 (gnuv3_get_type_from_type_info): New functions.
8272 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8273
8274 2013-04-15 Tom Tromey <tromey@redhat.com>
8275
8276 * break-catch-throw.c (struct exception_names): New.
8277 (exception_functions): Change type.
8278 (re_set_exception_catchpoint): Look for SDT probes.
8279
8280 2013-04-15 Tom Tromey <tromey@redhat.com>
8281
8282 PR c++/10119:
8283 * break-catch-throw.c (exception_functions): New global.
8284 (gnu_v3_exception_catchpoint_ops): Move earlier.
8285 (struct exception_catchpoint): New.
8286 (classify_exception_breakpoint): Rewrite.
8287 (re_set_exception_catchpoint): New function.
8288 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8289 Allocate a struct exception_catchpoint.
8290 (catch_exception_command_1): Update.
8291 (initialize_throw_catchpoint_ops): Set 're_set' method.
8292
8293 2013-04-15 Tom Tromey <tromey@redhat.com>
8294
8295 * Makefile.in (SFILES): Add break-catch-throw.c
8296 (COMMON_OBS): Add break-catch-throw.o.
8297 * break-catch-throw.c: New file.
8298 * breakpoint.c: Move exception-catching code to new file.
8299 (ep_parse_optional_if_clause): No longer static.
8300 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8301
8302 2013-04-15 Tom Tromey <tromey@redhat.com>
8303
8304 PR c++/9065:
8305 * NEWS: Update.
8306 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8307 * c-exp.y (TYPEID): New token.
8308 (exp): Add new TYPEID productions.
8309 (ident_tokens): Add "typeid".
8310 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8311 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8312 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8313 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8314 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8315 case.
8316 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8317 (build_std_type_info_type, gnuv3_get_typeid_type)
8318 (gnuv3_get_typeid): New functions.
8319 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8320 new fields on ABI object.
8321 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8322 * std-operator.def (OP_TYPEID): New.
8323
8324 2013-04-15 Tom Tromey <tromey@redhat.com>
8325
8326 * elfread.c (elf_symtab_read): Install versioned symbol under
8327 unversioned name as well.
8328
8329 2013-04-15 Tom Tromey <tromey@redhat.com>
8330
8331 PR c++/11990:
8332 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8333 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8334 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8335 (gdb_demangle): New function.
8336 * cp-support.h (gdb_demangle): Declare.
8337 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8338 (dwarf2_name): Use gdb_demangle.
8339 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8340 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8341 suffixes from name.
8342 (gnuv3_print_method_ptr): Use gdb_demangle.
8343 * jv-lang.c (java_demangle): Use gdb_demangle.
8344 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8345 * language.c (unk_lang_demangle): Use gdb_demangle.
8346 * symtab.c (symbol_find_demangled_name)
8347 (demangle_for_lookup): Use gdb_demangle.
8348
8349 2013-04-15 Tom Tromey <tromey@redhat.com>
8350
8351 PR c++/12824:
8352 * NEWS: Update.
8353 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8354 New constant.
8355 (classify_exception_breakpoint): New function.
8356 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8357 (print_mention_exception_catchpoint)
8358 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8359 (catch_exception_command_1): Handle "rethrow" catchpoint.
8360 (catch_rethrow_command): New function.
8361 (_initialize_breakpoint): Add "catch rethrow" command.
8362
8363 2013-04-15 Pierre Muller <muller@sourceware.org>
8364
8365 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8366 set_gdbarch_write_pc as deprecated anymore.
8367
8368 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8369
8370 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8371 declarations.
8372
8373 2013-04-13 Yao Qi <yao@codesourcery.com>
8374
8375 * ctf.c (_initialize_ctf): Include "completer.h".
8376 Call add_target_with_completer instead of add_target.
8377
8378 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8379
8380 Fix GDB regression related to PR binutils/14813.
8381 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8382 * minidebug.c (lzma_close): Add return value comment.
8383 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8384 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8385 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8386
8387 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8388
8389 * config.in: Regenerate.
8390
8391 2013-04-12 Tom Tromey <tromey@redhat.com>
8392
8393 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8394 const.
8395 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8396 (struct die_reader_specs) <buffer>: Likewise.
8397 (die_reader_func_ftype): Make 'info_ptr' const.
8398 (struct line_header) <include_dirs, statement_program_start,
8399 statement_program_end>: Now const.
8400 (struct file_entry) <name>: Likewise.
8401 (struct partial_die_info) <sibling>: Likewise.
8402 (struct dwarf_block) <data>: Likewise.
8403 (dwarf2_read_section): Remove cast.
8404 (dwarf2_get_section_info): Make 'bufp' const.
8405 (read_index_from_section): Constify.
8406 (dw2_get_file_names_reader): Make 'info_ptr' const.
8407 (dw2_get_primary_filename_reader): Likewise.
8408 (read_comp_unit_head): Make 'info_ptr' and return type const.
8409 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8410 Likewise.
8411 (read_abbrev_offset): Constify.
8412 (dwarf2_create_include_psymtab): Make 'name' const.
8413 (create_debug_types_hash_table): Update.
8414 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8415 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8416 Constify.
8417 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8418 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8419 (read_comp_units_from_section): Constify.
8420 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8421 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8422 const.
8423 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8424 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8425 (create_dwp_hash_table, dwarf2_ranges_read)
8426 (dwarf2_record_block_ranges): Constify.
8427 (read_die_and_children, read_die_and_siblings_1)
8428 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8429 const.
8430 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8431 (abbrev_table_read_table): Constify.
8432 (load_partial_dies): Make 'info_ptr' const.
8433 (read_partial_die, read_attribute_value, read_attribute): Make
8434 'info_ptr' and return type const.
8435 (read_address, read_initial_length)
8436 (read_checked_initial_length_and_offset, read_offset)
8437 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8438 const.
8439 (read_direct_string): Make 'buf' and return type const.
8440 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8441 (read_indirect_string): Make return type const.
8442 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8443 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8444 'info_ptr' const.
8445 (read_str_index): Make return type const.
8446 (add_include_dir): Make 'include_dir' const.
8447 (add_file_name): Make 'name' const.
8448 (dwarf_decode_line_header): Constify.
8449 (psymtab_include_file_name): Make return type const.
8450 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8451 (dwarf2_start_subfile): Make 'filename' const.
8452 (dwarf2_const_value_attr): Make 'bytes' const.
8453 (read_signatured_type_reader): Make 'info_ptr' const.
8454 (decode_locdesc): Constify.
8455 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8456 const.
8457 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8458 'mac_end', and return type const.
8459 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8460 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8461 type const.
8462 (per_cu_header_read_in): Constify.
8463 * symfile.h (dwarf2_get_section_info): Update.
8464
8465 2013-04-12 Tom Tromey <tromey@redhat.com>
8466
8467 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8468
8469 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8470
8471 * NEWS: Mention "show configuration", --configuration.
8472 * top.c (print_gdb_configuration): New function, displays the
8473 details about GDB configure-time parameters.
8474 (print_gdb_version): Mention "show configuration".
8475 * cli/cli-cmds.c (show_configuration): New function.
8476 (_initialize_cli_cmds): Add the "show configuration" command.
8477 * main.c (captured_main) <print_configuration>: New static var.
8478 <long_options>: Use it.
8479 If --configuration was given, call print_gdb_configuration.
8480
8481 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8482 Pedro Alves <palves@redhat.com>
8483
8484 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8485 (generated_files): Add gcore.
8486 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8487 HAVE_NATIVE_GCORE_HOST.
8488 (gcore): New.
8489 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8490 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8491 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8492 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8493 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8494 Add HAVE_NATIVE_GCORE_HOST.
8495 * configure: Regenerate.
8496 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8497 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8498 AC_CONFIG_FILES for gcore.
8499 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8500 gdb_have_gcore.
8501 * gdb_gcore.sh: Rename to ...
8502 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8503 and GCORE_TRANSFORM_NAME substitutions.
8504
8505 Fix parsing tabs in ${gdb_target_obs}.
8506 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8507
8508 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8509
8510 * remote.c (unpush_and_perror): Add output message final dot.
8511
8512 2013-04-11 Yao Qi <yao@codesourcery.com>
8513
8514 * tracepoint.c (tfile_interp_line): Fit parameters line and
8515 utpp in one line.
8516
8517 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8518
8519 * solib.c (solib_map_sections): Remove code overwriting
8520 SO->SO_NAME with the bfd's filename.
8521
8522 2013-04-10 Pedro Alves <palves@redhat.com>
8523
8524 * cli/cli-decode.c (integer_unlimited_completer): New function.
8525 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8526 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8527 completer.
8528 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8529 (is_unlimited_literal): New function.
8530 (do_set_command): Handle literal "unlimited" arguments.
8531 * frame.c (_initialize_frame) <set backtrace limit>: Document
8532 "unlimited".
8533 * printcmd.c (_initialize_printcmd) <set print
8534 max-symbolic-offset>: Add help text.
8535 * record-full.c (_initialize_record_full) <set record full
8536 insn-number-max>: Likewise.
8537 * record.c (_initialize_record) <set record
8538 instruction-history-size, set record function-call-history-size>:
8539 Add help text.
8540 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8541 help text.
8542 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8543 Likewise.
8544 * source.c (_initialize_source) <set listsize>: Add help text.
8545 * utils.c (initialize_utils) <set height, set width>: Likewise.
8546 <set pagination>: Mention "set height unlimited".
8547 * valprint.c (_initialize_valprint) <set print elements, set print
8548 repeats>: Document "unlimited".
8549
8550 2013-04-10 Pedro Alves <palves@redhat.com>
8551
8552 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8553 instead of disconnect_tracing.
8554 * infcmd.c (detach_command, disconnect_command): Call
8555 query_if_trace_running. Adjust.
8556 * top.c: Include "tracepoint.h".
8557 (quit_target): Delete. Contents moved ...
8558 (quit_force): ... here. Wrap each stage of teardown in
8559 TRY_CATCH. Call disconnect_tracing before detaching.
8560
8561 2013-04-10 Hui Zhu <hui@codesourcery.com>
8562 Yao Qi <yao@codesourcery.com>
8563
8564 * configure.ac: Check libbabeltrace is installed.
8565 * config.in: Regenerate.
8566 * configure: Regenerate.
8567 * Makefile.in (LIBBABELTRACE): New.
8568 (CLIBS): Add LIBBABELTRACE.
8569 * ctf.c: Include "exec.h".
8570 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8571 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8572 (ctf_save_metadata_header): Define new type aliases in
8573 metadata.
8574 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8575 in metadata. Start a new faked packet for trace status.
8576 (ctf_write_status): Write trace status to CTF.
8577 (ctf_write_uploaded_tsv): Write TSV to CTF.
8578 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8579 (ctf_write_definition_end): End the faked packet.
8580
8581 (ctx, ctf_iter, trace_dirname): New.
8582 (start_pos): New variable.
8583 (ctf_destroy, ctf_open_dir, ctf_open): New.
8584 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8585 macros.
8586 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8587 (ctf_fetch_registers, ctf_xfer_partial): New.
8588 (ctf_get_trace_state_variable_value): New.
8589 (ctf_get_tpnum_from_frame_event): New.
8590 (ctf_get_traceframe_address): New.
8591 (ctf_trace_find, ctf_has_stack): New.
8592 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8593 (ctf_get_trace_status, ctf_read_status): New.
8594 (_initialize_ctf): New.
8595 * tracepoint.c (get_tracepoint_number): New
8596 (get_uploaded_tsv): Remove 'static'.
8597 (struct traceframe_info, trace_regblock_size): Move it to ...
8598 * tracepoint.h: ... here.
8599 (get_tracepoint_number): Declare it.
8600 (get_uploaded_tsv): Declare it.
8601
8602 * NEWS: Mention new configure option.
8603
8604 2013-04-10 Pedro Alves <palves@redhat.com>
8605 Hui Zhu <hui@codesourcery.com>
8606
8607 * breakpoint.c (dprintf_re_set): New.
8608 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8609 to dprintf_re_set.
8610
8611 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8612
8613 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8614 Remove solib-svr4.o from the list.
8615
8616 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8617
8618 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8619 Use gdb_assert_not_reached instead of invalid boolean expression.
8620
8621 2013-04-09 Pedro Alves <palves@redhat.com>
8622
8623 * remote.c (unpush_and_perror): New function.
8624 (readchar, remote_serial_write): Use it.
8625
8626 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8627
8628 * NEWS: Mention new btrace RSP packets.
8629
8630 2013-04-08 Tom Tromey <tromey@redhat.com>
8631
8632 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8633 long.
8634
8635 2013-04-08 Tom Tromey <tromey@redhat.com>
8636
8637 * maint.c (print_bfd_section_info): Print the section index.
8638 * symmisc.c (dump_msymbols): Print the section index.
8639
8640 2013-04-08 Tom Tromey <tromey@redhat.com>
8641
8642 PR symtab/8424:
8643 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8644 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8645 * breakpoint.c (resolve_sal_pc): Update.
8646 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8647 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8648 (minsym_lookup_iterator_cb): Use it.
8649 (default_read_var_value): Update.
8650 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8651 Update.
8652 * infcmd.c (jump_command): Update.
8653 * linespec.c (minsym_found): Update.
8654 * maint.c (maintenance_translate_address): Update.
8655 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8656 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8657 * parse.c (write_exp_msymbol): Update.
8658 * printcmd.c (address_info): Update.
8659 * psymtab.c (find_pc_sect_psymbol): Update.
8660 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8661 SYMBOL_OBJ_SECTION.
8662 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8663 Don't initialize SYMBOL_OBJ_SECTION.
8664 * spu-tdep.c (spu_catch_start): Update.
8665 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8666 * symmisc.c (dump_msymbols, print_symbol): Update.
8667 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8668 how fallback section is computed.
8669 (fixup_symbol_section): Update.
8670 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8671 Update.
8672 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8673 Initialize SYMBOL_SECTION.
8674 * symtab.h (struct general_symbol_info) <section>: Update comment.
8675 <obj_section>: Remove.
8676 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8677 (SYMBOL_OBJFILE): New macro.
8678
8679 2013-04-08 Tom Tromey <tromey@redhat.com>
8680
8681 * coffread.c (record_minimal_symbol): Update.
8682 * dbxread.c (record_minimal_symbol): Update.
8683 * elfread.c (record_minimal_symbol): Update.
8684 * machoread.c (macho_symtab_add_minsym): Update.
8685 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8686 Update.
8687 * minsyms.c (prim_record_minimal_symbol): Update.
8688 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8689 argument.
8690 (prim_record_minimal_symbol_and_info): Likewise.
8691 * minsyms.h (prim_record_minimal_symbol_full)
8692 (prim_record_minimal_symbol_and_info): Update.
8693 * symtab.c (allocate_symbol, initialize_symbol)
8694 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8695 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8696 Update.
8697
8698 2013-04-08 Tom Tromey <tromey@redhat.com>
8699
8700 PR symtab/8423:
8701 * solib-som.c (som_solib_section_offsets): Use BFD section
8702 indices. Set offsets for all sections.
8703 * somread.c (som_symtab_read): Compute BFD section for
8704 symbol. Use prim_record_minimal_symbol_and_info.
8705 (som_symfile_read): Fix comment.
8706 (struct find_section_offset_arg): New.
8707 (find_section_offset, set_section_index): New functions.
8708 (som_symfile_offsets): Use set_section_index to compute
8709 section indices.
8710
8711 2013-04-08 Tom Tromey <tromey@redhat.com>
8712
8713 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8714 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8715 gdb_bfd_section_index.
8716 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8717 New functions.
8718 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8719 Declare.
8720 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8721 Update.
8722 * objfiles.c (add_to_objfile_sections_full): New function.
8723 (add_to_objfile_sections): Use it.
8724 (build_section_table): Rewrite.
8725 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8726 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8727 (struct objfile) <sections>: Update comment.
8728 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8729 is NULL.
8730 (ALL_OBJSECTIONS): Use it.
8731 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8732 * solib-frv.c (frv_relocate_main_executable): Update.
8733 * solib-target.c (solib_target_relocate_section_addresses):
8734 Use gdb_bfd_section_index.
8735 * symfile.c (build_section_addr_info_from_section_table):
8736 Use gdb_bfd_section_index.
8737 (build_section_addr_info_from_bfd, place_section): Likewise.
8738 * symtab.c (fixup_section): Update.
8739 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8740
8741 2013-04-08 Tom Tromey <tromey@redhat.com>
8742
8743 * minsyms.h (struct bound_minimal_symbol): New.
8744 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8745 Remove objfile argument.
8746 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8747 Return bound_minimal_symbol.
8748 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8749 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8750 Return bound_minimal_symbol.
8751 (in_gnu_ifunc_stub): Update.
8752 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8753 Remove 'objfile_p' argument.
8754 (lookup_solib_trampoline_symbol_by_pc): Update.
8755 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8756 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8757 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8758 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8759 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8760 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8761 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8762 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8763 stack.c, symtab.c, tui/tui-disasm.c: Update.
8764
8765 2013-04-08 Tom Tromey <tromey@redhat.com>
8766
8767 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8768 Use symbol's obstack, not an objfile.
8769 * coffread.c (process_coff_symbol): Update.
8770 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8771 * jv-lang.c (add_class_symbol): Update.
8772 * mdebugread.c (new_symbol): Update.
8773 * minsyms.c (prim_record_minimal_symbol_full)
8774 (terminate_minimal_symbol_table): Update.
8775 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8776 * stabsread.c (define_symbol, read_enum_type): Update.
8777 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8778 Handle Ada specially.
8779 (symbol_set_language): Add 'obstack' argument.
8780 (symbol_set_names): Update.
8781 (symbol_natural_name, symbol_demangled_name): Always use
8782 ada_decode_symbol.
8783 * symtab.h (struct general_symbol_info)
8784 <language_specific::obstack>: New field.
8785 <ada_mangled>: New field.
8786 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8787 (symbol_set_language): Update.
8788
8789 2013-04-08 Tom Tromey <tromey@redhat.com>
8790
8791 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8792 Take an obstack, not an objfile.
8793 (symbol_set_names): Update.
8794 * symtab.h (symbol_set_demangled_name): Update.
8795
8796 2013-04-08 Tom Tromey <tromey@redhat.com>
8797
8798 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8799 allocate_symbol.
8800 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8801 (read_func_scope): Call allocate_template_symbol.
8802 (new_symbol_full): Call allocate_symbol.
8803 * jit.c (finalize_symtab): Call allocate_symbol.
8804 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8805 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8806 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8807 (common_block_end): Call allocate_symbol.
8808 * symtab.c (allocate_symbol, initialize_symbol)
8809 (allocate_template_symbol): New functions.
8810 * symtab.c (allocate_symbol, initialize_symbol)
8811 (allocate_template_symbol): Declare.
8812 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8813
8814 2013-04-08 Pedro Alves <palves@redhat.com>
8815 Keith Seitz <keiths@redhat.com>
8816
8817 * breakpoint.c (create_breakpoint): Rename
8818 "parse_condition_and_thread" parameter to "parse_arg". Update
8819 describing comment. If !PARSE_ARG, then error out if ARG is not
8820 the empty string after extracting the location.
8821 * breakpoint.h (create_breakpoint): Rename
8822 "parse_condition_and_thread" parameter to "parse_arg".
8823
8824 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8825
8826 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8827
8828 2013-04-07 Yao Qi <yao@codesourcery.com>
8829
8830 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8831 and 'addr2' to CORE_ADDR.
8832 * target.c (update_current_target): Update.
8833 * target.h (struct target_ops) <to_trace_find>: Change parameter
8834 type to CORE_ADDR.
8835 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8836 'addr2' to CORE_ADDR.
8837 (tfile_trace_find): Likewise.
8838 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8839 Change local variable 'addr' to type CORE_ADDR.
8840 * tracepoint.h (tfind_1): Update declaration.
8841
8842 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8843
8844 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8845 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8846 Include main.h.
8847
8848 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8849 here...
8850 * main.h (windows_get_absolute_argv0): ...to here.
8851
8852 2013-04-05 Doug Evans <dje@google.com>
8853
8854 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8855 (read_cutu_die_from_dwo): Add comments.
8856 (read_structure_type): Update comment.
8857 (read_enumeration_type, read_namespace_type): Update comment.
8858 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8859
8860 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8861
8862 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8863 * Makefile.in (gdb.z): Remove.
8864 (install-only): Remove $(man1dir) and gdb.1 installation.
8865 * gdb.1: Remove.
8866
8867 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Fix compatibility with Linux kernel 3.8.3.
8870 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8871 to more inner block. Remove parsing of NUMBER from outer block.
8872 Parse NUMBER only if KEYWORD has been identified.
8873
8874 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8875
8876 Fix variable name shadowing.
8877 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8878 filename to mapsfilename and update its uses.
8879
8880 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8881
8882 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8883 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8884 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8885 details of the problem.
8886
8887 2013-04-04 Pedro Alves <palves@redhat.com>
8888 Hui Zhu <hui@codesourcery.com>
8889
8890 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8891 tracepoint, reset its STEP_COUNT and call validate_actionline.
8892
8893 2013-04-03 Doug Evans <dje@google.com>
8894
8895 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8896 read_die_and_siblings.
8897 (read_die_and_siblings): New function.
8898 (read_cutu_die_from_dwo): Dump die if requested.
8899 (read_die_and_children): Call read_full_die_1 and
8900 read_die_and_siblings_1.
8901 (read_full_die): Dump die if requested.
8902
8903 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8904
8905 * dwarf2read.c (struct dwo_file): New member comp_dir.
8906 Rename member name to dwo_name. All uses updated.
8907 (hash_dwo_file): Include comp_dir in computation.
8908 (eq_dwo_file): Ditto.
8909 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8910 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8911
8912 * psymtab.c (read_psymtabs_with_fullname): Don't call
8913 psymtab_to_fullname if the basenames are different.
8914
8915 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8916
8917 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8918 New entry about "fullname" presence.
8919
8920 2013-04-03 Pedro Alves <palves@redhat.com>
8921
8922 * NEWS: Mention x86_64/Cygwin as new native configuration.
8923
8924 2013-04-02 Doug Evans <dje@google.com>
8925
8926 * dwarf2read.c (read_structure_type): Fix typo in comment.
8927
8928 2013-04-02 Pedro Alves <palves@redhat.com>
8929
8930 * NEWS: Mention "set/show debug aarch64", "set/show debug
8931 coff-pe-read" and "set/show debug mach-o".
8932
8933 2013-04-02 Pedro Alves <palves@redhat.com>
8934
8935 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8936
8937 2013-04-02 Eli Zaretskii <eliz@gnu.org>
8938
8939 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
8940 gdb_string.h is now in common/.
8941
8942 2013-04-02 Pedro Alves <palves@redhat.com>
8943
8944 * NEWS: Move "set debug notification" and "set trace-buffer-size"
8945 under "New options".
8946
8947 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8948
8949 Revert this patch:
8950 PR gdb/15275
8951 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
8952
8953 2013-04-02 Pedro Alves <palves@redhat.com>
8954
8955 PR gdb/15275
8956
8957 * remote.c (send_interrupt_sequence): Use remote_serial_write.
8958 (remote_serial_write): New function.
8959 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
8960
8961 2013-04-01 Jiong Wang <jiwang@tilera.com>
8962
8963 * NEWS: Mention TILE-Gx in "New native configurations" and
8964 "New targets" sections.
8965
8966 2013-04-01 Doug Evans <dje@google.com>
8967
8968 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
8969 (process_enumeration_scope): Simplify.
8970
8971 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
8972 type_unit_group ...
8973 (struct signatured_type): ... to here.
8974 (sig_type_ptr): New typedef.
8975 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
8976 out of union 't'. All uses updated.
8977 (dw2_get_file_names_reader): Assert not called for a type unit.
8978 (dw2_get_file_names): Assert not called for a type unit or type
8979 unit group.
8980 (build_type_psymtabs_reader): Assert called for a type unit.
8981 (build_type_psymtab_dependencies): Assert called for a type unit group.
8982
8983 * dwarf2read.c (free_dwo_file): Add comment.
8984 (dwarf2_per_objfile_free): Unref dwp bfd.
8985
8986 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8987
8988 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
8989 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
8990 (read_pe_exported_syms): Remove unused 'exportix'.
8991 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
8992 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
8993 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
8994
8995 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
8996
8997 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
8998 (print_it_watchpoint): Remove unused 'bl'.
8999 (say_where): Remove unused 'uiout'.
9000 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9001 (bkpt_breakpoint_hit): Remove unused 'b'.
9002 (internal_bkpt_print_it): Remove unused 'uiout'.
9003 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9004
9005 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9006
9007 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9008 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9009
9010 2013-03-29 Doug Evans <dje@google.com>
9011
9012 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9013 Delete arg is_dwp. All callers updated.
9014 (open_dwp_file): New function.
9015 (open_and_init_dwp_file): Call it.
9016 (get_dwp_file): New function.
9017 (lookup_dwo_cutu): Call it.
9018
9019 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9020 unnecessary, cleanup.
9021
9022 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9023
9024 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9025 (lookup_dwo_unit): New function.
9026 (init_cutu_and_read_dies): Move DWO handling to new functions.
9027
9028 * dwarf2read.c (struct signatured_type): Tweak comment.
9029 (struct dwo_unit): Tweak comment.
9030 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9031 (create_dwo_debug_info_hash_table): Tweak comment.
9032 (dwarf2_per_cu_offset_and_type): Tweak comment.
9033
9034 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9035 missing .debug_types section.
9036
9037 2013-03-29 Yao Qi <yao@codesourcery.com>
9038
9039 * corelow.c: Include "completer.h".
9040 (_initialize_corelow): Call add_target_with_completer with
9041 argument 'filename_completer'.
9042 * tracepoint.c: Likewise.
9043 * exec.c (_initialize_exec): Likewise.
9044 * target.c (add_target): Rename to ...
9045 (add_target_with_completer): ... this. Call set_cmd_completer
9046 if parameter completer is not NULL.
9047 (add_target): New.
9048 * target.h: Include "command.h".
9049 (add_target_with_completer): Declare it.
9050
9051 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9052
9053 * coffread.c (is_import_fixup_symbol): New function.
9054 (record_minimal_symbol): Use is_import_fixup_symbol to
9055 detect import fixup symbols, and discard them.
9056
9057 2013-03-28 Doug Evans <dje@google.com>
9058
9059 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9060 types hash table until we know we need it.
9061
9062 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9063 index numbers.
9064
9065 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9066 All callers updated.
9067 (dw2_print_stats): Print #read CUs too.
9068 (dump_die_shallow): Print signatured types better.
9069
9070 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9071 info_or_types_section to section. All uses updated.
9072 (struct dwo_unit): Ditto.
9073
9074 2013-03-28 Pedro Alves <palves@redhat.com>
9075
9076 * NEWS (New options): New section.
9077 (New options): Mention set/show remote trace-status-packet.
9078 * remote.c (PACKET_qTStatus): New enumeration value.
9079 (remote_get_trace_status): Skip sending qTStatus if the packet is
9080 disabled. Use packet_ok.
9081 (_initialize_remote): Register a configuration command for
9082 qTStatus packet.
9083
9084 2013-03-28 Doug Evans <dje@google.com>
9085
9086 * symfile.c (find_separate_debug_file): Add comment.
9087 (terminate_after_last_dir_separator): Tweak comment.
9088
9089 * dwarf2read.c (create_partial_symtab): Add forward decl.
9090 (create_partial_symtab): Move to be closer to other psymtab functions.
9091 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9092
9093 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9094 (compute_symtab_includes): Remove unnecessary forward declaration.
9095 (die_needs_namespace): Add comment marking group of functions for
9096 dwarf2 name computation.
9097
9098 * typeprint.c (_initialize_typeprint): Improve type help text.
9099
9100 * python/python.c (finish_python_initialization): Provide suggestion
9101 for how to tell gdb to find its python files.
9102
9103 2013-03-28 Pedro Alves <palves@redhat.com>
9104
9105 PR gdb/15294
9106
9107 * source.c (_initialize_source): Change back "set listsize" to an
9108 integer command.
9109
9110 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9111
9112 PR gdb/15275
9113 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9114
9115 2013-03-27 Pedro Alves <palves@redhat.com>
9116
9117 * top.c (history_size): Rename to ...
9118 (history_size_setshow_var): ... this. Add comment.
9119 (show_commands): Use readline's 'history_length' instead of
9120 computing the history length by calling history_get in a loop.
9121 (set_history_size_command): Error out for sizes over INT_MAX.
9122 Restore previous history size on invalid size.
9123 (init_history): If HISTSIZE is negative, leave the history size as
9124 zero. Add comments.
9125 (init_main): Adjust.
9126
9127 2013-03-27 Pedro Alves <palves@redhat.com>
9128
9129 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9130 coff_pe_read" command to "set debug coff-pe-read".
9131
9132 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9133
9134 * record.c (command_size_to_target_size): Fix size comparison.
9135 Change parameter type from pointer to integer to integer.
9136 Update all users.
9137
9138 2013-03-27 Pierre Muller <muller@sourceware.org>
9139
9140 * windows-nat.c (handle_output_debug_string): Avoid typecast
9141 from integer of different size warning.
9142
9143 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9144
9145 * windows-nat.c (handle_output_debug_string): Add empty line
9146 after local block variable definition.
9147
9148 2013-03-26 Pedro Alves <palves@redhat.com>
9149
9150 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9151 (net_open): Make 'polls' local unsigned.
9152
9153 2013-03-26 Pedro Alves <palves@redhat.com>
9154
9155 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9156 a zuinteger command instead of uinteger.
9157
9158 2013-03-26 Pedro Alves <palves@redhat.com>
9159
9160 * record-full.c (record_full_insn_num): Make it unsigned.
9161 (record_full_check_insn_num, record_full_message)
9162 (record_full_registers_change, record_full_xfer_partial): Remove
9163 record_full_insn_max_num check (it's always != 0).
9164 (record_full_info, record_full_restore): Use %u as format string.
9165 (): Use %u as format string.
9166 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9167 check (it's always != 0).
9168
9169 2013-03-26 Pedro Alves <palves@redhat.com>
9170
9171 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9172 and "set dcache size" commands zuinteger instead of uinteger.
9173
9174 2013-03-26 Pedro Alves <palves@redhat.com>
9175
9176 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9177 command zuinteger instead of uinteger.
9178
9179 2013-03-26 Pedro Alves <palves@redhat.com>
9180
9181 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9182 zuinteger instead of uinteger.
9183
9184 2013-03-26 Pedro Alves <palves@redhat.com>
9185
9186 * record.c (record_insn_history_size_setshow_var)
9187 (record_call_history_size_setshow_var): New globals.
9188 (command_size_to_target_size): New function.
9189 (cmd_record_insn_history, cmd_record_call_history): Use
9190 command_size_to_target_size instead of cast.
9191 (validate_history_size, set_record_insn_history_size)
9192 (set_record_call_history_size): New functions.
9193 (_initialize_record): Install set_record_insn_history_size and
9194 set_record_call_history_size as "set" hooks of "set record
9195 instruction-history-size" and "set record
9196 function-call-history-size".
9197
9198 2013-03-26 Pedro Alves <palves@redhat.com>
9199
9200 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9201 use with history_max_entries use. Remove FIXME note.
9202
9203 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9204
9205 * record-btrace.c (record_btrace_close): Call
9206 record_btrace_auto_disable.
9207
9208 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9209
9210 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9211
9212 2013-03-25 Doug Evans <dje@google.com>
9213
9214 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9215
9216 2013-03-25 Tom Tromey <tromey@redhat.com>
9217
9218 PR symtab/11462:
9219 * c-exp.y (exp): Add new productions for destructors after '.' and
9220 '->'.
9221 (write_destructor_name): New function.
9222
9223 2013-03-25 Tom Tromey <tromey@redhat.com>
9224
9225 PR c++/9197:
9226 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9227 value_struct_elt, not lookup_struct_elt_type.
9228 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9229 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9230 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9231
9232 2013-03-25 Yao Qi <yao@codesourcery.com>
9233
9234 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9235 instead of '_mkdir'.
9236
9237 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9238
9239 * windows-nat.c (windows_get_absolute_argv0): New function.
9240 * windows-nat.h: Add its prototype.
9241
9242 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9243 Use IS_DIR_SEPARATOR instead of looking for a character inside
9244 SLASH_STRING. Include filenames.h.
9245 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9246 relocate_gdb_directory works when passed gdb_program_name.
9247 Include windows-nat.h.
9248
9249 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9250
9251 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9252 * remote.c (trace_error): Remove the special handling of '2'.
9253 (readchar) <SERIAL_EOF>
9254 (readchar) <SERIAL_ERROR>
9255 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9256 (remote_get_trace_status): Call throw_exception if EX is
9257 TARGET_CLOSE_ERROR.
9258 * utils.c (perror_with_name): Rename to ...
9259 (throw_perror_with_name): ... here. New parameter errcode, describe it
9260 in the function comment.
9261 (perror_with_name): New function wrapper.
9262 * utils.h (enum errors): New stub declaration.
9263 (throw_perror_with_name): New declaration.
9264
9265 2013-03-22 Pedro Alves <palves@redhat.com>
9266 Yao Qi <yao@codesourcery.com>
9267 Mark Kettenis <kettenis@gnu.org>
9268
9269 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9270 Don't let the user set the value to UINT_MAX directly.
9271 <var_integer>: Don't let the user set the value to INT_MAX
9272 directly.
9273
9274 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9275
9276 * remote.c (remote_unpush_target): New function.
9277 (remote_open_1): Remove two pop_target calls, update one comment, add
9278 comment to target_preopen call. Replace pop_target call by
9279 remote_unpush_target call.
9280 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9281 pop_target calls by remote_unpush_target calls.
9282
9283 2013-03-22 Pedro Alves <palves@redhat.com>
9284
9285 * linux-nat.c (linux_child_follow_fork): Don't call
9286 linux_enable_event_reporting.
9287 (linux_handle_extended_wait): Don't call
9288 linux_enable_event_reporting.
9289
9290 2013-03-22 Pedro Alves <palves@redhat.com>
9291
9292 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9293 use it to rewrite the trampoline buffers with type gdb_byte[], and
9294 undefine the macro. Remove char* cast.
9295
9296 2013-03-21 Doug Evans <dje@google.com>
9297
9298 New commands "mt set per-command {space,time,symtab} {on,off}".
9299 * NEWS: Add entry.
9300 * event-top.c: #include "maint.h".
9301 * main.c: #include "maint.h".
9302 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9303 timeval-utils.h, maint.h, cli/cli-setshow.h.
9304 (per_command_time, per_command_space): New static globals.
9305 (per_command_symtab): New static global.
9306 (per_command_setlist, per_command_showlist): New static globals.
9307 (struct cmd_stats): Move here from utils.c.
9308 (set_per_command_time): Renamed from set_display_time in utils.c
9309 and moved here. All callers updated.
9310 (set_per_command_space): Renamed from set_display_space in utils.c
9311 and moved here. All callers updated.
9312 (count_symtabs_and_blocks): New function.
9313 (report_command_stats): Moved here from utils.c. Add support for
9314 printing symtab stats. Only print data if enabled before command
9315 executed.
9316 (make_command_stats_cleanup): Ditto.
9317 (sert_per_command_cmd, show_per_command_cmd): New functions.
9318 (_initialize_maint_cmds): Add new commands
9319 mt set per-command {space,time,symtab} {on,off}.
9320 * maint.h: New file.
9321 * top.c: #include "maint.h".
9322 * utils.c (reset_prompt_for_continue_wait_time): New function.
9323 (get_prompt_for_continue_wait_time): New function.
9324 * utils.h (reset_prompt_for_continue_wait_time): Declare
9325 (get_prompt_for_continue_wait_time): Declare.
9326 (make_command_stats_cleanup): Moved to maint.h.
9327 (set_display_time, set_display_space): Moved to maint.h and renamed
9328 to set_per_command_time, set_per_command_space.
9329 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9330 parse_binary_operation and made non-static. Don't call error,
9331 just return an error marker. All callers updated.
9332 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9333
9334 2013-03-21 Tom Tromey <tromey@redhat.com>
9335
9336 * symfile.c (alloc_section_addr_info): Update header. Don't set
9337 'num_sections' field.
9338 (build_section_addr_info_from_section_table): Set 'num_sections'.
9339 (build_section_addr_info_from_bfd): Likewise.
9340 (build_section_addr_info_from_objfile): Remove dead loop
9341 condition.
9342 (free_section_addr_info): Unconditionally call xfree.
9343 (relative_addr_info_to_section_offsets, addrs_section_sort)
9344 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9345 condition.
9346 (syms_from_objfile_1): Remove dead 'if' condition. Check
9347 'num_sections'.
9348 (add_symbol_file_command): Set 'num_sections'.
9349 * symfile-mem.c (symbol_file_add_from_memory): Set
9350 'num_sections'.
9351 * somread.c (som_symfile_offsets): Remove dead loop condition.
9352 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9353 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9354
9355 2013-03-21 Tom Tromey <tromey@redhat.com>
9356
9357 * tracepoint.h (decode_agent_options): Add 'trace_string'
9358 argument.
9359 * tracepoint.c (decode_agent_options): Add 'trace_string'
9360 argument.
9361 (validate_actionline): Update.
9362 (collect_symbol): Add 'trace_string' argument.
9363 (struct add_local_symbols_data) <trace_string>: New field.
9364 (do_collect_symbol): Update.
9365 (add_local_symbols): Add 'trace_string' argument.
9366 (encode_actions_1): Update.
9367 (trace_dump_actions): Update.
9368 * dwarf2loc.c (access_memory): Update.
9369 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9370 * ax-general.c (new_agent_expr): Update.
9371 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9372 (gen_trace_for_return_address): Add argument.
9373 (trace_kludge, trace_string_kludge): Remove.
9374 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9375 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9376 (gen_trace_for_var): Add 'trace_string' argument.
9377 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9378 (gen_printf, agent_eval_command_one): Update.
9379
9380 2013-03-21 Tom Tromey <tromey@redhat.com>
9381
9382 PR exp/15109:
9383 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9384 Handle FILENAME token.
9385
9386 2013-03-21 Tom Tromey <tromey@redhat.com>
9387
9388 * c-exp.y (YYPRINT): Define.
9389 (c_print_token): New function.
9390
9391 2013-03-21 Tom Tromey <tromey@redhat.com>
9392
9393 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9394
9395 2013-03-21 Yao Qi <yao@codesourcery.com>
9396
9397 * ctf.c: Include "gdb_stat.h".
9398 [USE_WIN32API]: New macro 'mkdir'.
9399 (ctf_start): Use permission bits macros if they are defined.
9400
9401 2013-03-20 Keith Seitz <keiths@redhat.com>
9402
9403 * breakpoint.h (struct breakpoint): Add comment to
9404 extra_string indicating that this member is mallod'd.
9405 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9406
9407 2013-03-20 Pedro Alves <palves@redhat.com>
9408
9409 PR gdb/15289
9410
9411 * cli/cli-setshow.c (do_set_command)
9412 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9413 the result of parsing the command argument. Throw error if the
9414 value is greater than UINT_MAX. Print the invalid value with
9415 plongest.
9416 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9417 result of parsing the command argument. Throw error if the value
9418 is greater than INT_MAX, not greater or equal. Also throw error
9419 if the value is less than INT_MIN. Print the invalid value with
9420 plongest.
9421 <var_zuinteger_unlimited>: Throw error if the value is greater
9422 than INT_MAX, not greater or equal.
9423 (do_show_command) <var_integer, var_zinteger,
9424 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9425
9426 2013-03-20 Tom Tromey <tromey@redhat.com>
9427
9428 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9429 if possible.
9430 * dwarf2read.c (read_func_scope): Remove old FIXME.
9431 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9432 not LOC_COMPUTED.
9433 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9434 Unconditionally call via computed ops, if possible.
9435 * printcmd.c (address_info): Unconditionally call via computed ops,
9436 if possible.
9437 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9438 if possible.
9439 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9440 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9441 if possible.
9442
9443 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9444 Tom Tromey <tromey@redhat.com>
9445
9446 PR symtab/8421:
9447 * coffread.c (coff_register_index): New global.
9448 (process_coff_symbol, coff_read_enum_type): Set
9449 SYMBOL_ACLASS_INDEX.
9450 (_initialize_coffread): Initialize new global.
9451 * dwarf2loc.c (locexpr_find_frame_base_location)
9452 (dwarf2_block_frame_base_locexpr_funcs)
9453 (loclist_find_frame_base_location)
9454 (dwarf2_block_frame_base_loclist_funcs): New.
9455 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9456 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9457 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9458 (dwarf2_block_frame_base_loclist_funcs): New.
9459 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9460 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9461 globals.
9462 (read_func_scope): Update.
9463 (fixup_go_packaging, mark_common_block_symbol_computed)
9464 (var_decode_location, new_symbol_full, dwarf2_const_value):
9465 Set SYMBOL_ACLASS_INDEX.
9466 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9467 (_initialize_dwarf2_read): Initialize new globals.
9468 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9469 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9470 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9471 globals.
9472 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9473 (_initialize_mdebugread): Initialize new globals.
9474 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9475 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9476 (stab_register_index, stab_regparm_index): New globals.
9477 (define_symbol, read_enum_type, common_block_end): Set
9478 SYMBOL_ACLASS_INDEX.
9479 (_initialize_stabsread): Initialize new globals.
9480 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9481 globals.
9482 (MAX_SYMBOL_IMPLS): New define.
9483 (register_symbol_computed_impl, register_symbol_block_impl)
9484 (register_symbol_register_impl)
9485 (initialize_ordinary_address_classes): New functions.
9486 (_initialize_symtab): Call initialize_ordinary_address_classes.
9487 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9488 (struct symbol_impl): New.
9489 (SYMBOL_ACLASS_BITS): New define.
9490 (struct symbol) <aclass, ops>: Remove fields.
9491 <aclass_index>: New field.
9492 (symbol_impls): Declare.
9493 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9494 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9495 (register_symbol_computed_impl, register_symbol_block_impl)
9496 (register_symbol_register_impl): Declare.
9497 (struct symbol_computed_ops): Add location_has_loclist.
9498 (struct symbol_block_ops): New.
9499 (SYMBOL_BLOCK_OPS): New.
9500 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9501
9502 2013-03-20 Tom Tromey <tromey@redhat.com>
9503
9504 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9505 (print_partial_symbols, recursively_search_psymtabs): Use
9506 PSYMBOL_CLASS.
9507
9508 2013-03-20 Pierre Muller <muller@sourceware.org>
9509
9510 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9511 addtion, subtraction, multiplication and division binary operator.
9512
9513 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9514
9515 Code cleanup.
9516 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9517 * bsd-kvm.c (bsd_kvm_close): Likewise.
9518 * bsd-uthread.c (bsd_uthread_close): Likewise.
9519 * corelow.c (core_close): Likewise.
9520 (core_close_cleanup): Remove parameter quitting from a caller.
9521 * event-top.c (async_disconnect): Likewise.
9522 * exec.c (exec_close_1): Remove parameter quitting.
9523 * go32-nat.c (go32_close): Likewise.
9524 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9525 parameter quitting from a caller.
9526 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9527 variable.
9528 (mips_linux_close): Remove parameter quitting. Remove parameter
9529 quitting from a caller.
9530 * monitor.c (monitor_close): Remove parameter quitting.
9531 * monitor.h (monitor_close): Likewise.
9532 * record-btrace.c (record_btrace_close): Likewise.
9533 * record-full.c (record_full_close): Likewise.
9534 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9535 it also from fprintf_unfiltered.
9536 * remote-mips.c (mips_close): Remove parameter quitting.
9537 (mips_detach): Remove parameter quitting from a caller.
9538 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9539 (gdbsim_close): Remove duplicate function comment. Remove parameter
9540 quitting and remove it also from printf_filtered.
9541 * remote.c (remote_close): Remove parameter quitting.
9542 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9543 * target.c (update_current_target): Remove parameter int from to_close
9544 de_fault.
9545 (push_target, unpush_target, pop_target): Remove parameter quitting from
9546 a caller.
9547 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9548 Remove parameter quitting from a caller.
9549 (target_preopen): Remove parameter quitting from a caller.
9550 (target_close): Remove parameter quitting. Remove parameter quitting
9551 from a caller two times. Remove parameter quitting also from
9552 fprintf_unfiltered.
9553 * target.h (struct target_ops): Remove parameter quitting and as int
9554 from fields to_xclose and to_close.
9555 (extern struct target_ops current_target):
9556 (target_close, pop_all_targets): Remove parameter quitting. Update the
9557 comment.
9558 (pop_all_targets_above): Remove parameter quitting.
9559 * top.c (quit_target): Remove parameter quitting from a caller.
9560 * tracepoint.c (tfile_close): Remove parameter quitting.
9561 * windows-nat.c (windows_close): Remove parameter quitting.
9562
9563 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * windows-nat.c (handle_output_debug_string): Replace call
9566 to string_to_core_addr with call to strtoull.
9567
9568 2013-03-20 Yao Qi <yao@codesourcery.com>
9569
9570 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9571 and write it to CTF metadata.
9572
9573 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9574
9575 * windows-nat.c (handle_output_debug_string): Change type of n to
9576 SIZE_T to avoid crash on 64 bit systems.
9577
9578 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9579
9580 * python/python-internal.h (HAVE_SNPRINTF)
9581 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9582 about redefinition of snprintf by pyerrors.h.
9583
9584 2013-03-15 Steve Ellcey <sellcey@mips.com>
9585
9586 * remote-sim.c (sim_command_completer): Make char arguments const.
9587
9588 2013-03-15 Tom Tromey <tromey@redhat.com>
9589
9590 PR c++/15116:
9591 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9592
9593 2013-03-14 Tom Tromey <tromey@redhat.com>
9594
9595 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9596 New fields.
9597 (get_file_crc): Move from symfile.c.
9598 (gdb_bfd_crc): New function.
9599 * gdb_bfd.h (gdb_bfd_crc): Declare.
9600 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9601 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9602 (separate_debug_file_exists): Use gdb_bfd_crc.
9603
9604 2013-03-14 Tom Tromey <tromey@redhat.com>
9605
9606 * symfile.c (get_debug_link_info): Remove.
9607 (find_separate_debug_file_by_debuglink): Use
9608 bfd_get_debug_link_info.
9609
9610 2013-03-14 Tom Tromey <tromey@redhat.com>
9611
9612 * symtab.c (error_in_psymtab_expansion): New function.
9613 (lookup_symbol_aux_quick)
9614 (basic_lookup_transparent_type_quick): Remove "last resort"
9615 code. Use error_in_psymtab_expansion.
9616
9617 2013-03-14 Doug Evans <dje@google.com>
9618 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9621 any successful compare_filenames_for_search or FILENAME_CMP.
9622 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9623 * symtab.c (iterate_over_some_symtabs): Likewise.
9624
9625 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 * source.c (print_source_lines_base): Make a local copy of
9628 symtab_to_fullname.
9629
9630 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9631 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 * source.c (print_source_lines_base): Suppress "file" for TUI.
9634
9635 2013-03-14 Keith Seitz <keiths@redhat.com>
9636 Alan Matsuoka <alanm@redhat.com>
9637
9638 PR c++/15203
9639 PR c++/15210
9640 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9641 TYPE_CODE_METHOD.
9642 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9643 symbols.
9644
9645 2013-03-14 Yao Qi <yao@codesourcery.com>
9646
9647 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9648 status to tfile if trace is stopped by command 'tstop'.
9649
9650 2013-03-14 Yao Qi <yao@codesourcery.com>
9651
9652 * tracepoint.c (tfile_write_status): Write trace notes and user
9653 name into tfile if they are not NULL.
9654
9655 2013-03-14 Hui Zhu <hui@codesourcery.com>
9656 Yao Qi <yao@codesourcery.com>
9657
9658 * Makefile.in (REMOTE_OBS): Add ctf.o.
9659 (SFILES): Add ctf.c.
9660 (HFILES_NO_SRCDIR): Add ctf.h.
9661 * ctf.c, ctf.h: New files.
9662 * tracepoint.c: Include 'ctf.h'.
9663 (collect_pseudocommand): Remove static.
9664 (trace_save_command): Parse option "-ctf".
9665 Produce different trace file writers per option.
9666 Adjust output message.
9667 (trace_save_tfile, trace_save_ctf): New.
9668 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9669 * mi/mi-main.c: Include 'ctf.h'.
9670 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9671 trace_save_tfile or trace_save_ctf.
9672 * NEWS: Mention these changes.
9673
9674 2013-03-14 Yao Qi <yao@codesourcery.com>
9675
9676 * tracepoint.c (trace_file_writer_xfree): New.
9677 (struct tfile_writer_data): New.
9678 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9679 (tfile_write_header, tfile_write_regblock_type): New.
9680 (tfile_write_status, tfile_write_uploaded_tsv): New.
9681 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9682 (tfile_write_raw_data, (tfile_end): New.
9683 (tfile_write_ops): New global variable.
9684 (TRACE_WRITE_R_BLOCK): New macro.
9685 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9686 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9687 (TRACE_WRITE_V_BLOCK): New macro.
9688 (trace_save): Add extra one parameter WRITER. Make it static.
9689 Use WRITER to writer trace.
9690 (tfile_trace_file_writer_new): New.
9691 (trace_save_command): Caller update.
9692 (trace_save_tfile): Write trace data in TFILE format.
9693 * tracepoint.h (struct trace_frame_write_ops): New.
9694 (struct trace_file_write_ops): New.
9695 (struct trace_file_writer): New.
9696 (trace_save): Remove its declaration.
9697 (trace_save_tfile): Declare it.
9698 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9699 instead of trace_save.
9700
9701 2013-03-13 Pedro Alves <palves@redhat.com>
9702
9703 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9704
9705 2013-03-13 Pedro Alves <palves@redhat.com>
9706
9707 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9708 commented out code.
9709 * demangle.c (current_demangling_style_string): Make it const.
9710 (set_demangling_command): Assert the demangling style is known.
9711 Remove all handling of unknown styles. Set
9712 'current_demangling_style_string' to an element of the
9713 demangling_style_names array.
9714 (set_demangling_style): Delete.
9715 (_initialize_demangler): Set current_demangling_style_string to the
9716 element of the demangling_style_names array that corresponds to
9717 the default demangling style. Remove FIXME note. Don't call
9718 set_demangling_style.
9719 * gdb-demangle.h (set_demangling_style): Remove declaration.
9720
9721 2013-03-13 Pedro Alves <palves@redhat.com>
9722
9723 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9724 fields const.
9725 (ada_make_symbol_completion_list): Make "text0" parameter const.
9726 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9727 * breakpoint.c (condition_completer): Make "text" and "word"
9728 parameters const. Adjust.
9729 (check_tracepoint_command): Adjust to validate_actionline
9730 prototype change.
9731 (catch_syscall_completer): Make "text" and "word" parameters
9732 const.
9733 * cli/cli-cmds.c (show_user): Make "comname" local const.
9734 (valid_command_p): Make "command" parameter const.
9735 (alias_command): Make "alias_prefix" and "command_prefix" locals
9736 const.
9737 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9738 (add_alias_cmd): Make "name" and "oldname" parameters const.
9739 Adjust. No longer make copy of OLDNAME.
9740 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9741 (add_setshow_cmd_full, add_setshow_enum_cmd)
9742 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9743 (add_setshow_filename_cmd, add_setshow_string_cmd)
9744 (add_setshow_string_noescape_cmd)
9745 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9746 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9747 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9748 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9749 Make "name" parameter const.
9750 (help_cmd): Rename "command" parameter to "arg". New const local
9751 "command".
9752 (find_cmd): Make "command" parameter const.
9753 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9754 deprecated_cmd_warning prototype change.
9755 (undef_cmd_error): Make "cmdtype" parameter const.
9756 (lookup_cmd): Make "line" parameter const.
9757 (deprecated_cmd_warning): Change type of "text" parameter to
9758 pointer to const char, from pointer to pointer to char. Adjust.
9759 (lookup_cmd_composition): Make "text" parameter const.
9760 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9761 parameters const.
9762 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9763 const.
9764 * cli/cli-script.c (validate_comname): Make "tem" local const.
9765 (define_command): New const local "tem_c". Use it in calls to
9766 lookup_cmd.
9767 (document_command): Make "tem" and "comfull" locals const.
9768 (show_user_1): Make "prefix" and "name" parameters const.
9769 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9770 const.
9771 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9772 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9773 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9774 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9775 (complete_on_enum, add_setshow_enum_cmd)
9776 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9777 (add_setshow_filename_cmd, add_setshow_string_cmd)
9778 (add_setshow_string_noescape_cmd)
9779 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9780 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9781 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9782 Change prototypes, constifying strings.
9783 * completer.c (noop_completer, filename_completer): Make "text"
9784 and "prefix" parameters const.
9785 (location_completer, expression_completer)
9786 (complete_line_internal): Make "text" and "prefix" parameters
9787 const and adjust.
9788 (command_completer, signal_completer): Make "text" and "prefix"
9789 parameters const.
9790 * completer.h (noop_completer, filename_completer)
9791 (expression_completer, location_completer, command_completer)
9792 (signal_completer): Change prototypes.
9793 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9794 parameters const.
9795 * cp-abi.c (cp_abi_completer): Likewise.
9796 * expression.h (parse_expression_for_completion): Change
9797 prototype.
9798 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9799 parameters const.
9800 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9801 * infrun.c (handle_completer): Make "text" and "word" parameters
9802 const.
9803 * interps.c (interpreter_completer): Make "text" and "word"
9804 parameters const.
9805 * language.h (struct language_defn)
9806 <la_make_symbol_completion_list>: Make "text" and "word"
9807 parameters const.
9808 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9809 (parse_exp_in_context): Rename to ...
9810 (parse_exp_in_context_1): ... this.
9811 (parse_exp_in_context): Reimplement, with const hack from
9812 parse_exp_1.
9813 (parse_expression_for_completion): Make "string" parameter const.
9814 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9815 to pointer to const char. Adjust.
9816 (print_command_1): Make "exp" parameter const.
9817 (output_command): Rename to ...
9818 (output_command_const): ... this. Make "exp" parameter const.
9819 (output_command): Reimplement.
9820 (x_command): Adjust.
9821 (display_command): Rename "exp" parameter to "arg". New "exp"
9822 local, const version of "arg".
9823 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9824 "cmd_name" local const.
9825 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9826 call.
9827 (cmdpy_completer): Make "text" and "word" parameters const.
9828 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9829 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9830 const.
9831 * remote.c (_initialize_remote): Make "cmd_name" local const.
9832 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9833 parameters const. Adjust.
9834 (completion_list_add_fields): Make "sym_text", "text" and "word"
9835 parameters const.
9836 (struct add_name_data) <sym_text, text, word>: Make fields const.
9837 (default_make_symbol_completion_list_break_on): Make "text" and
9838 "word" parameters const. Adjust locals.
9839 (default_make_symbol_completion_list)
9840 (make_symbol_completion_list, make_symbol_completion_type)
9841 (make_symbol_completion_list_fn): Make "text" and "word"
9842 parameters const.
9843 (make_file_symbol_completion_list): Make "text", "word" and
9844 "srcfile" parameters const. Adjust locals.
9845 (add_filename_to_list): Make "text" and "word" parameters const.
9846 (struct add_partial_filename_data) <text, word>: Make fields
9847 const.
9848 (make_source_files_completion_list): Make "text" and "word"
9849 parameters const.
9850 * symtab.h (default_make_symbol_completion_list_break_on)
9851 (default_make_symbol_completion_list, make_symbol_completion_list)
9852 (make_symbol_completion_type enum type_code)
9853 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9854 (make_source_files_completion_list): Change prototype.
9855 * top.c (execute_command): Adjust to pass pointer to pointer to
9856 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9857 change.
9858 (set_verbose): Make "cmdname" local const.
9859 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9860 and adjust.
9861 (validate_actionline): Make "line" parameter a pointer to const
9862 char, and adjust.
9863 (encode_actions_1): Make "action_exp" local const, and adjust.
9864 (encode_actions): Adjust.
9865 (replace_comma): Delete.
9866 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9867 const, and adjust. Don't frob the action string while splitting
9868 it at commas. Instead, make a copy of each split substring in
9869 turn.
9870 (trace_dump_command): Adjust to validate_actionline prototype
9871 change.
9872 * tracepoint.h (decode_agent_options, decode_agent_options)
9873 (encode_actions, validate_actionline): Change prototypes.
9874 * valprint.h (output_command): Delete declaration.
9875 (output_command_const): Declare.
9876 * value.c (function_destroyer): Cast const away in xfree call.
9877
9878 2013-03-13 Pedro Alves <palves@redhat.com>
9879
9880 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9881 rather than casting 'const char * const *' to 'const char **'.
9882 * ada-lex.l (processInt): Make "trailer" local const. Remove
9883 'const char **' cast.
9884 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9885 locals, and use those as strtol output pointer, instead than doing
9886 invalid casts to from 'const char **' to 'char **'.
9887 (_initialize_demangle): Remove cast.
9888 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9889 locals, and use those as strtol output pointer, instead than doing
9890 invalid casts to from 'const char **' to 'char **'.
9891 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9892 casts.
9893 * stap-probe.c (stap_parse_register_operand)
9894 (stap_parse_single_operand): Likewise.
9895
9896 2013-03-13 Yao Qi <yao@codesourcery.com>
9897
9898 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9899 the last matched 'V' blcok in trace frame.
9900
9901 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9902
9903 * NEWS: Create a new section for the next release branch.
9904 Rename the section of the current branch, now that it has
9905 been cut.
9906
9907 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9908
9909 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9910 * version.in: Bump version to 7.6.50.20130312-cvs.
9911
9912 2013-03-12 Keith Seitz <keiths@redhat.com>
9913
9914 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9915 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9916 Remove temporary copy of input string.
9917 (mi_execute_command_wrapper): Make "cmd" const.
9918 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9919 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9920 Use const strings.
9921 (mi_parse): Make "cmd" const.
9922 Use const strings.
9923 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9924
9925 2013-03-12 Keith Seitz <keiths@redhat.com>
9926
9927 * ada-lang.c (ada_read_renaming_var_value): Pass const
9928 pointer to expression string to parse_exp_1.
9929 (create_excep_cond_exprs): Likewise.
9930 * ax-gdb.c (agent_eval_command_one): Likewise.
9931 (maint_agent_printf_command): Likewise.
9932 Constify much of the string handling/parsing.
9933 * breakpoint.c (set_breakpoint_condition): Pass const
9934 pointer to expression string to parse_exp_1.
9935 (update_watchpoint): Likewise.
9936 (parse_cmd_to_aexpr): Constify string handling.
9937 Pass const pointer to parse_exp_1.
9938 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
9939 (find_condition_and_thread): Likewise.
9940 Make TOK const.
9941 (watch_command_1): Make "arg" const.
9942 Constify string handling.
9943 Copy the expression string instead of changing the input
9944 string.
9945 (update_breakpoint_location): Pass const pointer to
9946 parse_exp_1.
9947 * eval.c (parse_and_eval_address): Make "exp" const.
9948 (parse_to_comma_and_eval): Make "expp" const.
9949 (parse_and_eval): Make "exp" const.
9950 * expression.h (parse_expression): Make argument const.
9951 (parse_exp_1): Make first argument const.
9952 * findcmd.c (parse_find_args): Treat "args" as const.
9953 * linespec.c (parse_linespec): Pass const pointer to
9954 linespec_expression_to_pc.
9955 (linespec_expression_to_pc): Make "exp_ptr" const.
9956 * parse.c (parse_exp_1): Make "stringptr" const.
9957 Make a copy of the expression to pass to parse_exp_in_context until
9958 this whole interface can be constified.
9959 (parse_expression): Make "string" const.
9960 * printcmd.c (ui_printf): Treat "arg" as const.
9961 Handle const strings.
9962 * tracepoint.c (validate_actionline): Pass const pointer to
9963 all calls to parse_exp_1.
9964 (encode_actions_1): Likewise.
9965 * value.h (parse_to_comma_and_eval): Make argument const.
9966 (parse_and_eval_address): Likewise.
9967 (parse_and_eval): Likewise.
9968 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
9969 (varobj_set_value): Likewise.
9970 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
9971 constify string handling.
9972 Pass const pointers to parse_and_eval_address and
9973 parse_to_comman_and_eval.
9974 * cli/cli-utils.c (skip_to_space): Rename to ...
9975 (skip_to_space_const): ... this. Handle const strings.
9976 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
9977 skip_to_space_const.
9978 (skip_to_space_const): Declare.
9979 * common/format.c (parse_format_string): Make "arg" const.
9980 Handle const strings.
9981 * common/format.h (parse_format_string): Make "arg" const.
9982 * gdbserver/ax.c (ax_printf): Make "format" const.
9983 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
9984 of the expression string.
9985
9986 2013-03-12 Hui Zhu <hui@codesourcery.com>
9987
9988 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
9989
9990 2013-03-12 Yao Qi <yao@codesourcery.com>
9991 Hui Zhu <hui@codesourcery.com>
9992
9993 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
9994 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
9995 DW_OP_deref_size.
9996
9997 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
9998
9999 * ada-lex.l (rules): Only recognize 'thread' as a
10000 delimiter when followed by numerals, as for c-exp.y.
10001 Use new rewind_to_char function to rewind the input for
10002 expression-delimiting tokens.
10003 (rewind_to_char): New function.
10004
10005 2013-03-11 Pedro Alves <palves@redhat.com>
10006 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 * configure: Regenerate.
10009 * configure.ac (check dynamic export flag): Link python test with
10010 $PYTHON_LIBS.
10011
10012 2013-03-11 Doug Evans <dje@google.com>
10013 Keith Seitz <keiths@redhat.com>
10014
10015 * linespec.c (find_linespec_symbols): Call find_function_symbols
10016 first, and then call lookup_prefix_sym/find_method.
10017
10018 2013-03-11 Pedro Alves <palves@redhat.com>
10019
10020 * charset.c (convert_between_encodings): Don't cast between
10021 different pointer to pointer types. Instead, make the 'inp' local
10022 be of the type iconv expects.
10023 (wchar_iterate): Don't cast between different pointer to pointer
10024 types. Instead, use new pointer local of the type iconv expects.
10025 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10026 Add new local of type char pointer, and use it to get a
10027 char/string view of the byte buffer, instead of casting between
10028 pointer to pointer types.
10029
10030 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10031
10032 * remote.c (remote_set_trace_buffer_size): Move != operator
10033 to the start of next line to fix an ARI warning.
10034
10035 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10036
10037 * NEWS: Add record changes.
10038
10039 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10040
10041 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10042 the instruction history disassembly.
10043 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10044 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10045
10046 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10047
10048 * Makefile.in (SFILES): Add record-btrace.c
10049 (COMMON_OBS): Add record-btrace.o
10050 * record-btrace.c: New.
10051 * objfiles.c: Include btrace.h.
10052 (free_objfile): call btrace_free_objfile.
10053
10054 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10055
10056 * target.c (target_call_history, target_call_history_from,
10057 target_call_history_range): New.
10058 * target.h (target_ops) <to_call_history, to_call_history_from,
10059 to_call_history_range>: New fields.
10060 (target_call_history, target_call_history_from,
10061 target_call_history_range): New declaration.
10062 * record.c (get_call_history_modifiers, cmd_record_call_history,
10063 record_call_history_size): New.
10064 (_initialize_record): Add the "record function-call-history" command.
10065 Add "set/show record function-call-history-size" commands.
10066 * record.h (record_print_flag): New.
10067
10068 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10069
10070 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10071 to_insn_history_range>: New fields.
10072 (target_insn_history): New.
10073 (target_insn_history_from): New.
10074 (target_insn_history_range): New.
10075 * target.c (target_insn_history): New.
10076 (target_insn_history_from): New.
10077 (target_insn_history_range): New.
10078 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10079 (record_insn_history_size): New.
10080 (get_insn_number): New.
10081 (get_context_size): New.
10082 (no_chunk): New.
10083 (get_insn_history_modifiers): New.
10084 (cmd_record_insn_history): New.
10085 (_initialize_record): Add "set/show record instruction-history-size"
10086 command. Add "record instruction-history" command.
10087
10088 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10089
10090 * record.h (record_disconnect): New.
10091 (record_detach): New.
10092 (record_mourn_inferior): New.
10093 (record_kill): New.
10094 * record-full.c (record_disconnect, record_detach,
10095 record_mourn_inferior, record_kill): Move to...
10096 * record.c: ...here.
10097 (DEBUG): New.
10098 (record_stop): New.
10099 (record_unpush): New.
10100 (cmd_record_stop): Call record_stop. Replace unpush_target
10101 call with record_unpush call.
10102 (record_disconnect, record_detach): Assert that the target
10103 is of record stratum. Call record_unpush, record_stop, and
10104 DEBUG.
10105 (record_mourn_inferior, record_kill): Assert that the target
10106 is of record stratum. Call record_unpush and DEBUG.
10107
10108 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10109
10110 * record-full.h, record-full.c (record_memory_query): Rename
10111 to ...
10112 (record_full_memory_query): ...this. Update all users.
10113 (record_arch_list_add_reg): Rename to ...
10114 (record_full_arch_list_add_reg): ...this. Update all users.
10115 (record_arch_list_add_mem): Rename to ...
10116 (record_full_arch_list_add_mem): ...this. Update all users.
10117 (record_arch_list_add_end): Rename to ...
10118 (record_full_arch_list_add_end): ...this. Update all users.
10119 (record_gdb_operation_disable_set): Rename to ...
10120 (record_full_gdb_operation_disable_set): ...this.
10121 Update all users.
10122
10123 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10124
10125 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10126 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10127 (RECORD_IS_REPLAY): Renamed to ...
10128 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10129 (RECORD_FILE_MAGIC): Renamed to ...
10130 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10131 (record_mem_entry): Renamed to ...
10132 (record_full_mem_entry): ... this. Updated all users.
10133 (record_reg_entry): Renamed to ...
10134 (record_full_reg_entry): ... this. Updated all users.
10135 (record_end_entry): Renamed to ...
10136 (record_full_end_entry): ... this. Updated all users.
10137 (record_type) <record_end, record_reg, record_mem>: Renamed
10138 to ...
10139 (record_full_type) <record_full_end, record_full_reg,
10140 record_full_mem>: ... this. Updated all users.
10141 (record_entry): Renamed to ...
10142 (record_full_entry): ... this. Updated all users.
10143 (record_core_buf_entry): Renamed to ...
10144 (record_full_core_buf_entry): ... this. Updated all users.
10145 (record_core_regbuf): Renamed to ...
10146 (record_full_core_regbuf): ... this. Updated all users.
10147 (record_core_start): Renamed to ...
10148 (record_full_core_start): ... this. Updated all users.
10149 (record_core_end): Renamed to ...
10150 (record_full_core_end): ... this. Updated all users.
10151 (record_core_buf_list): Renamed to ...
10152 (record_full_core_buf_list): ... this. Updated all users.
10153 (record_first): Renamed to ...
10154 (record_full_first): ... this. Updated all users.
10155 (record_list): Renamed to ...
10156 (record_full_list): ... this. Updated all users.
10157 (record_arch_list_head): Renamed to ...
10158 (record_full_arch_list_head): ... this. Updated all users.
10159 (record_arch_list_tail): Renamed to ...
10160 (record_full_arch_list_tail): ... this. Updated all users.
10161 (record_stop_at_limit): Renamed to ...
10162 (record_full_stop_at_limit): ... this. Updated all users.
10163 (record_insn_max_num): Renamed to ...
10164 (record_full_insn_max_num): ... this. Updated all users.
10165 (record_insn_num): Renamed to ...
10166 (record_full_insn_num): ... this. Updated all users.
10167 (record_insn_count): Renamed to ...
10168 (record_full_insn_count): ... this. Updated all users.
10169 (record_ops): Renamed to ...
10170 (record_full_ops): ... this. Updated all users.
10171 (record_core_ops): Renamed to ...
10172 (record_full_core_ops): ... this. Updated all users.
10173 (set_record_cmdlist): Renamed to ...
10174 (set_record_full_cmdlist): ... this. Updated all users.
10175 (show_record_cmdlist): Renamed to ...
10176 (show_record_full_cmdlist): ... this. Updated all users.
10177 (record_cmdlist): Renamed to ...
10178 (record_full_cmdlist): ... this. Updated all users.
10179 (record_beneath_to_resume_ops): Renamed to ...
10180 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10181 (record_beneath_to_resume): Renamed to ...
10182 (record_full_beneath_to_resume): ... this. Updated all users.
10183 (record_beneath_to_wait_ops): Renamed to ...
10184 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10185 (record_beneath_to_wait): Renamed to ...
10186 (record_full_beneath_to_wait): ... this. Updated all users.
10187 (record_beneath_to_store_registers_ops): Renamed to ...
10188 (record_full_beneath_to_store_registers_ops): ... this.
10189 Updated all users.
10190 (record_beneath_to_store_registers): Renamed to ...
10191 (record_full_beneath_to_store_registers): ... this.
10192 Updated all users.
10193 (record_beneath_to_xfer_partial_ops): Renamed to ...
10194 (record_full_beneath_to_xfer_partial_ops): ... this.
10195 Updated all users.
10196 (record_beneath_to_xfer_partial): Renamed to ...
10197 (record_full_beneath_to_xfer_partial): ... this.
10198 Updated all users.
10199 (record_beneath_to_insert_breakpoint): Renamed to ...
10200 (record_full_beneath_to_insert_breakpoint): ... this.
10201 Updated all users.
10202 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10203 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10204 Updated all users.
10205 (record_beneath_to_stopped_data_address): Renamed to ...
10206 (record_full_beneath_to_stopped_data_address): ... this.
10207 Updated all users.
10208 (record_beneath_to_async): Renamed to ...
10209 (record_full_beneath_to_async): ... this. Updated all users.
10210 (record_goto_insn): Renamed to ...
10211 (record_full_goto_insn): ... this. Updated all users.
10212 (record_save): Renamed to ...
10213 (record_full_save): ... this. Updated all users.
10214 (record_reg_alloc): Renamed to ...
10215 (record_full_reg_alloc): ... this. Updated all users.
10216 (record_reg_release): Renamed to ...
10217 (record_full_reg_release): ... this. Updated all users.
10218 (record_mem_alloc): Renamed to ...
10219 (record_full_mem_alloc): ... this. Updated all users.
10220 (record_mem_release): Renamed to ...
10221 (record_full_mem_release): ... this. Updated all users.
10222 (record_end_alloc): Renamed to ...
10223 (record_full_end_alloc): ... this. Updated all users.
10224 (record_end_release): Renamed to ...
10225 (record_full_end_release): ... this. Updated all users.
10226 (record_entry_release): Renamed to ...
10227 (record_full_entry_release): ... this. Updated all users.
10228 (record_list_release): Renamed to ...
10229 (record_full_list_release): ... this. Updated all users.
10230 (record_list_release_following): Renamed to ...
10231 (record_full_list_release_following): ... this.
10232 Updated all users.
10233 (record_list_release_first): Renamed to ...
10234 (record_full_list_release_first): ... this. Updated all users.
10235 (record_arch_list_add): Renamed to ...
10236 (record_full_arch_list_add): ... this. Updated all users.
10237 (record_get_loc): Renamed to ...
10238 (record_full_get_loc): ... this. Updated all users.
10239 (record_check_insn_num): Renamed to ...
10240 (record_full_check_insn_num): ... this. Updated all users.
10241 (record_arch_list_cleanups): Renamed to ...
10242 (record_full_arch_list_cleanups): ... this. Updated all users.
10243 (record_message): Renamed to ...
10244 (record_full_message): ... this. Updated all users.
10245 (record_message_wrapper): Renamed to ...
10246 (record_full_message_wrapper): ... this. Updated all users.
10247 (record_message_wrapper_safe): Renamed to ...
10248 (record_full_message_wrapper_safe): ... this. Updated all users.
10249 (record_gdb_operation_disable): Renamed to ...
10250 (record_full_gdb_operation_disable): ... this. Updated all users.
10251 (record_hw_watchpoint): Renamed to ...
10252 (record_full_hw_watchpoint): ... this. Updated all users.
10253 (record_exec_insn): Renamed to ...
10254 (record_full_exec_insn): ... this. Updated all users.
10255 (record_restore): Renamed to ...
10256 (record_full_restore): ... this. Updated all users.
10257 (record_async_inferior_event_token): Renamed to ...
10258 (record_full_async_inferior_event_token): ... this.
10259 Updated all users.
10260 (record_async_inferior_event_handler): Renamed to ...
10261 (record_full_async_inferior_event_handler): ... this.
10262 Updated all users.
10263 (record_core_open_1): Renamed to ...
10264 (record_full_core_open_1): ... this. Updated all users.
10265 (record_open_1): Renamed to ...
10266 (record_full_open_1): ... this. Updated all users.
10267 (record_open): Renamed to ...
10268 (record_full_open): ... this. Updated all users.
10269 (record_close): Renamed to ...
10270 (record_full_close): ... this. Updated all users.
10271 (record_resume_step): Renamed to ...
10272 (record_full_resume_step): ... this. Updated all users.
10273 (record_resumed): Renamed to ...
10274 (record_full_resumed): ... this. Updated all users.
10275 (record_execution_dir): Renamed to ...
10276 (record_full_execution_dir): ... this. Updated all users.
10277 (record_resume): Renamed to ...
10278 (record_full_resume): ... this. Updated all users.
10279 (record_get_sig): Renamed to ...
10280 (record_full_get_sig): ... this. Updated all users.
10281 (record_sig_handler): Renamed to ...
10282 (record_full_sig_handler): ... this. Updated all users.
10283 (record_wait_cleanups): Renamed to ...
10284 (record_full_wait_cleanups): ... this. Updated all users.
10285 (record_wait_1): Renamed to ...
10286 (record_full_wait_1): ... this. Updated all users.
10287 (record_wait): Renamed to ...
10288 (record_full_wait): ... this. Updated all users.
10289 (record_stopped_by_watchpoint): Renamed to ...
10290 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10291 (record_disconnect): Renamed to ...
10292 (record_full_disconnect): ... this. Updated all users.
10293 (record_detach): Renamed to ...
10294 (record_full_detach): ... this. Updated all users.
10295 (record_mourn_inferior): Renamed to ...
10296 (record_full_mourn_inferior): ... this. Updated all users.
10297 (record_kill): Renamed to ...
10298 (record_full_kill): ... this. Updated all users.
10299 (record_stopped_data_address): Renamed to ...
10300 (record_full_stopped_data_address): ... this. Updated all users.
10301 (record_registers_change): Renamed to ...
10302 (record_full_registers_change): ... this. Updated all users.
10303 (record_store_registers): Renamed to ...
10304 (record_full_store_registers): ... this. Updated all users.
10305 (record_xfer_partial): Renamed to ...
10306 (record_full_xfer_partial): ... this. Updated all users.
10307 (record_breakpoint): Renamed to ...
10308 (record_full_breakpoint): ... this. Updated all users.
10309 (record_breakpoint_p): Renamed to ...
10310 (record_full_breakpoint_p): ... this. Updated all users.
10311 (record_breakpoints): Renamed to ...
10312 (record_full_breakpoints): ... this. Updated all users.
10313 (record_sync_record_breakpoints): Renamed to ...
10314 (record_full_sync_record_breakpoints): ... this.
10315 Updated all users.
10316 (record_init_record_breakpoints): Renamed to ...
10317 (record_full_init_record_breakpoints): ... this.
10318 Updated all users.
10319 (record_insert_breakpoint): Renamed to ...
10320 (record_full_insert_breakpoint): ... this. Updated all users.
10321 (record_remove_breakpoint): Renamed to ...
10322 (record_full_remove_breakpoint): ... this. Updated all users.
10323 (record_can_execute_reverse): Renamed to ...
10324 (record_full_can_execute_reverse): ... this. Updated all users.
10325 (record_get_bookmark): Renamed to ...
10326 (record_full_get_bookmark): ... this. Updated all users.
10327 (record_goto_bookmark): Renamed to ...
10328 (record_full_goto_bookmark): ... this. Updated all users.
10329 (record_async): Renamed to ...
10330 (record_full_async): ... this. Updated all users.
10331 (record_can_async_p): Renamed to ...
10332 (record_full_can_async_p): ... this. Updated all users.
10333 (record_is_async_p): Renamed to ...
10334 (record_full_is_async_p): ... this. Updated all users.
10335 (record_execution_direction): Renamed to ...
10336 (record_full_execution_direction): ... this. Updated all users.
10337 (record_info): Renamed to ...
10338 (record_full_info): ... this. Updated all users.
10339 (record_delete): Renamed to ...
10340 (record_full_delete): ... this. Updated all users.
10341 (record_is_replaying): Renamed to ...
10342 (record_full_is_replaying): ... this. Updated all users.
10343 (record_goto_entry): Renamed to ...
10344 (record_full_goto_entry): ... this. Updated all users.
10345 (record_goto_begin): Renamed to ...
10346 (record_full_goto_begin): ... this. Updated all users.
10347 (record_goto_end): Renamed to ...
10348 (record_full_goto_end): ... this. Updated all users.
10349 (record_goto): Renamed to ...
10350 (record_full_goto): ... this. Updated all users.
10351 (init_record_ops): Renamed to ...
10352 (init_record_full_ops): ... this. Updated all users.
10353 (record_core_resume): Renamed to ...
10354 (record_full_core_resume): ... this. Updated all users.
10355 (record_core_kill): Renamed to ...
10356 (record_full_core_kill): ... this. Updated all users.
10357 (record_core_fetch_registers): Renamed to ...
10358 (record_full_core_fetch_registers): ... this. Updated all users.
10359 (record_core_prepare_to_store): Renamed to ...
10360 (record_full_core_prepare_to_store): ... this. Updated all users.
10361 (record_core_store_registers): Renamed to ...
10362 (record_full_core_store_registers): ... this. Updated all users.
10363 (record_core_xfer_partial): Renamed to ...
10364 (record_full_core_xfer_partial): ... this. Updated all users.
10365 (record_core_insert_breakpoint): Renamed to ...
10366 (record_full_core_insert_breakpoint): ... this. Updated all users.
10367 (record_core_remove_breakpoint): Renamed to ...
10368 (record_full_core_remove_breakpoint): ... this. Updated all users.
10369 (record_core_has_execution): Renamed to ...
10370 (record_full_core_has_execution): ... this. Updated all users.
10371 (init_record_core_ops): Renamed to ...
10372 (init_record_full_core_ops): ... this. Updated all users.
10373 (cmd_record_restore): Renamed to ...
10374 (cmd_record_full_restore): ... this. Updated all users.
10375 (record_save_cleanups): Renamed to ...
10376 (record_full_save_cleanups): ... this. Updated all users.
10377 (cmd_record_start): Renamed to ...
10378 (cmd_record_full_start): ... this. Updated all users.
10379 (set_record_insn_max_num): Renamed to ...
10380 (set_record_full_insn_max_num): ... this. Updated all users.
10381 (set_record_command): Renamed to ...
10382 (set_record_full_command): ... this. Updated all users.
10383 (show_record_command): Renamed to ...
10384 (show_record_full_command): ... this. Updated all users.
10385 (_initialize_record): Renamed to ...
10386 (_initialize_record_full): ... this. Updated all users.
10387
10388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10389
10390 * record.h: Split into this and ...
10391 * record-full.h: ... this.
10392 * record.c: Split into this and ...
10393 * record-full.c: ... this.
10394 * target.h (target_ops): Add new fields to_info_record,
10395 to_save_record, to_delete_record, to_record_is_replaying,
10396 to_goto_record_begin, to_goto_record_end, to_goto_record.
10397 (target_info_record): New.
10398 (target_save_record): New.
10399 (target_supports_delete_record): New.
10400 (target_delete_record): New.
10401 (target_record_is_replaying): New.
10402 (target_goto_record_begin): New.
10403 (target_goto_record_end): New.
10404 (target_goto_record): New.
10405 * target.c (target_info_record): New.
10406 (target_save_record): New.
10407 (target_supports_delete_record): New.
10408 (target_delete_record): New.
10409 (target_record_is_replaying): New.
10410 (target_goto_record_begin): New.
10411 (target_goto_record_end): New.
10412 (target_goto_record): New.
10413 * record.h: Declare struct cmd_list_element.
10414 (record_cmdlist): New declaration.
10415 (set_record_cmdlist): New declaration.
10416 (show_record_cmdlist): New declaration.
10417 (info_record_cmdlist): New declaration.
10418 (cmd_record_goto): New declaration.
10419 * record.c: Remove unnecessary includes.
10420 Include inferior.h.
10421 (cmd_record_goto): Remove declaration.
10422 (record_cmdlist): Now extern. Initialize.
10423 (set_record_cmdlist): Now extern. Initialize.
10424 (show_record_cmdlist): Now extern. Initialize.
10425 (info_record_cmdlist): Now extern. Initialize.
10426 (find_record_target): New.
10427 (require_record_target): New.
10428 (cmd_record_start): Update.
10429 (cmd_record_delete): Remove target-specific code.
10430 Call target_delete_record.
10431 (cmd_record_stop): Unpush any record target.
10432 (set_record_insn_max_num): Move to record-full.c
10433 (set_record_command): Add comment.
10434 (show_record_command): Add comment.
10435 (info_record_command): Update comment.
10436 Remove target-specific code.
10437 Call the record target's to_info_record.
10438 (cmd_record_start): New.
10439 (cmd_record_goto): Now extern.
10440 Remove target-specific code.
10441 Call target_goto_begin, target_goto_end, or target_goto.
10442 (_initialize_record): Move record target ops initialization to
10443 record-full.c.
10444 Change "record" command help text.
10445 Move "record restore", "record set", and "record show" commands to
10446 record-full.c.
10447 * Makefile.in (SFILES): Add record-full.c.
10448 (HFILES_NO_SRCDIR): Add record-full.h.
10449 (COMMON_OBS): Add record-full.o.
10450 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10451 * arm-tdep.c: Include record-full.h.
10452 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10453 * i386-tdep.c: Include record-full.h.
10454 * infrun.c: Include record-full.h.
10455 * linux-record.c: Include record-full.h.
10456 * moxie-tdep.c: Include record-full.h.
10457 * record-full.c: Include record-full.h.
10458 Change module comment.
10459 (set_record_full_cmdlist): New.
10460 (show_record_full_cmdlist): New.
10461 (record_full_cmdlist): New.
10462 (record_goto_insn): New declaration.
10463 (record_save): New declaration.
10464 (record_check_insn_num): Change query string.
10465 (record_info): New.
10466 (record_delete): New.
10467 (record_is_replaying): New.
10468 (record_goto_entry): New.
10469 (record_goto_begin): New.
10470 (record_goto_end): New.
10471 (record_goto): New.
10472 (init_record_ops): Update.
10473 (init_record_core_ops): Update.
10474 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10475 (cmd_record_start): New.
10476 (set_record_insn_max_num): Moved from record.c
10477 (set_record_full_command): New.
10478 (show_record_full_command): New.
10479 (_initialize_record_full): New.
10480
10481 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10482
10483 * target.h (add_deprecated_target_alias): New.
10484 * target.c (add_deprecated_target_alias): New.
10485
10486 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10487
10488 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10489 and signal.h.
10490 (linux_supports_btrace): Add kernel and
10491 cpuid check.
10492 (kernel_supports_btrace): New function.
10493 (cpu_supports_btrace): New function.
10494 (intel_supports_btrace): New function.
10495
10496 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10497
10498 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10499 * remote.c: Include btrace.h.
10500 (struct btrace_target_info): New struct.
10501 (remote_supports_btrace): New function.
10502 (send_Qbtrace): New function.
10503 (remote_enable_btrace): New function.
10504 (remote_disable_btrace): New function.
10505 (remote_teardown_btrace): New function.
10506 (remote_read_btrace): New function.
10507 (init_remote_ops): Add btrace ops.
10508 (enum <unnamed>): Add btrace packets.
10509 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10510 (_initialize_remote): Add packet configuration for branch tracing.
10511
10512 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10513
10514 * features/btrace.dtd: New file.
10515 * Makefile.in (XMLFILES): Add btrace.dtd.
10516 * btrace.h (parse_xml_btrace): New declaration.
10517 * btrace.c: Include xml-support.h.
10518 (parse_xml_btrace): New function.
10519 (parse_xml_btrace_block): New function.
10520 (block_attributes): New struct.
10521 (btrace_attributes): New struct.
10522 (btrace_children): New struct.
10523 (btrace_elements): New struct.
10524
10525 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10526
10527 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10528 (amd64_linux_enable_btrace): New.
10529 (amd64_linux_disable_btrace): New.
10530 (amd64_linux_teardown_btrace): New.
10531 (_initialize_amd64_linux_nat): Initialize btrace ops.
10532 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10533 (i386_linux_enable_btrace): New.
10534 (i386_linux_disable_btrace): New.
10535 (i386_linux_teardown_btrace): New.
10536 (_initialize_i386_linux_nat): Initialize btrace ops.
10537 * config/i386/linux.mh: Add linux-btrace.o.
10538 * config/i386/linux64.mh: Add linux-btrace.o.
10539
10540 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10541
10542 * common/linux_btrace.h: New file.
10543 * common/linux_btrace.c: New file.
10544 * Makefile.in (SFILES): Add btrace.c.
10545 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10546 (COMMON_OBS): Add btrace.o.
10547 (linux-btrace.o): New rule.
10548
10549 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10550
10551 * target.h: Include btrace.h.
10552 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10553 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10554 * target.c (target_supports_btrace): New function.
10555 (target_enable_btrace): New function.
10556 (target_disable_btrace): New function.
10557 (target_teardown_btrace): New function.
10558 (target_read_btrace): New function.
10559 * btrace.h: New file.
10560 * btrace.c: New file.
10561 * Makefile.in: Add btrace.c.
10562 * gdbthread.h: Include btrace.h.
10563 (struct thread_info): Add btrace field.
10564 * thread.c: Include btrace.h.
10565 (clear_thread_inferior_resources): Call target_teardown_btrace.
10566 * common/btrace-common.h: New file.
10567
10568 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10569
10570 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10571 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10572 kill_status to outer block.
10573
10574 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10575
10576 Fix entry-values if the callee called a noreturn function.
10577 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10578 get_frame_address_in_block. Add new comment.
10579
10580 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10581
10582 Fix entry-values in C++ across CUs.
10583 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10584 lookup_minimal_symbol. Add a comment.
10585 * dwarf2read.c
10586 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10587 DW_AT_linkage_name.
10588
10589 2013-03-08 Yao Qi <yao@codesourcery.com>
10590
10591 * tracepoint.c (_initialize_tracepoint): Indent the code.
10592
10593 2013-03-08 Pedro Alves <palves@redhat.com>
10594
10595 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10596 (parse_find_args, find_command): Change type of pattern buffer
10597 locals to 'gdb_byte *'.
10598
10599 2013-03-08 Stan Shebs <stan@codesourcery.com>
10600 Hafiz Abid Qadeer <abidh@codesourcery.com>
10601
10602 * NEWS: Mention set and show trace-buffer-size commands.
10603 Mention new packet.
10604 * target.h (struct target_ops): New method
10605 to_set_trace_buffer_size.
10606 (target_set_trace_buffer_size): New macro.
10607 * target.c (update_current_target): Set up new method.
10608 * tracepoint.c (trace_buffer_size): New global.
10609 (start_tracing): Send it to the target.
10610 (set_trace_buffer_size): New function.
10611 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10612 * remote.c (remote_set_trace_buffer_size): New function.
10613 (_initialize_remote): Use it.
10614 (QTBuffer:size) New remote command.
10615 (PACKET_QTBuffer_size): New enum.
10616 (remote_protocol_features): Add an entry for
10617 PACKET_QTBuffer_size.
10618
10619 2013-03-08 Tom Tromey <tromey@redhat.com>
10620
10621 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10622 variable.
10623
10624 2013-03-07 Pedro Alves <palves@redhat.com>
10625
10626 * target.c (target_read_stralloc, target_fileio_read_alloc):
10627 *Cast pointer to 'gdb_byte *' in target call.
10628
10629 2013-03-07 Pedro Alves <palves@redhat.com>
10630
10631 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10632 call.
10633
10634 2013-03-07 Keith Seitz <keiths@redhat.com>
10635
10636 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10637 (trace_pass_command): Likewise.
10638 * cli/cli-cmds.c: Include cli/cli-utils.h.
10639 (source_command): Use skip-spaces.
10640 (disassemble_command): Likewise.
10641 * findcmd.c: Include cli/cli-utils.h.
10642 (parse_find_args): Use skip_spaces.
10643 * go32-nat.c: Include cli/cli-utils.h.
10644 (go32_sldt): Use skip_spaces.
10645 (go32_sgdt): Likewise.
10646 (go32_sidt): Likewise.
10647 (go32_pde): Likewise.
10648 (go32_pte): Likewise.
10649 (go32_pte_for_address): Likewise.
10650 * infcmd.c: Include cli/cli-utils.h.
10651 (registers_info): Use skip_spaces.
10652 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10653 (linux_info_proc): Likewise.
10654 * linux-thread-db.c: Include cli/cli-utils.h.
10655 (info_auto_load_libthread_db): Use skip_spaces_const.
10656 * m32r-rom.c: Include cli/cli-utils.h.
10657 (m32r_upload_command): Use skip_spaces.
10658 * maint.c: Include cli/cli-utils.h.
10659 (maintenance_translate_address): Use skip_spaces.
10660 * mi/mi-parse.c: Include cli/cli-utils.h.
10661 (mi_parse_argv): Use skip_spaces.
10662 (mi_parse): Likewise.
10663 * minsyms.c: Include cli/cli-utils.h.
10664 (msymbol_hash_iw): Use skip_spaces_const.
10665 * objc-lang.c: Include cli/cli-utils.h.
10666 (parse_selector): Use skip_spaces.
10667 (parse_method): Likewise.
10668 * python/python.c: Include cli/cli-utils.h.
10669 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10670 (python_command)[HAVE_PYTHON]: Likewise.
10671 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10672 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10673 (m32r_load): Use skip_spaces.
10674 * serial.c: Include cli/cli-utils.h.
10675 (serial_open): Use skip_spaces_const.
10676 * stack.c: Include cli/cli-utils.h.
10677 (parse_frame_specification_1): Use skip_spaces_const.
10678 * symfile.c: Include cli/cli-utils.h.
10679 (set_ext_lang_command): Use skip_spaces.
10680 * symtab.c: Include cli/cli-utils.h.
10681 (rbreak_command): Use skip_spaces.
10682 * thread.c (thread_name_command): Use skip_spaces.
10683 * tracepoint.c (validate_actionline): Use skip_spaces.
10684 (encode_actions_1): Likewise.
10685 (trace_find_range_command): Likewise.
10686 (trace_find_outside_command): Likewise.
10687 (trace_dump_actions): Likewise.
10688
10689 2013-03-07 Pedro Alves <palves@redhat.com>
10690
10691 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10692 * expprint.c (print_subexp_standard): Likewise.
10693 * utils.c (host_char_to_target): Likewise.
10694 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10695 * varobj.c (value_get_print_value): Change type of local to char*.
10696 Cast it gdb_byte * in call to language printer.
10697
10698 2013-03-07 Pedro Alves <palves@redhat.com>
10699
10700 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10701 gdb_byte *'.
10702 (make_wchar_iterator): Remove cast to char*.
10703 (wchar_iterate): Change type of local.
10704
10705 2013-03-07 Pedro Alves <palves@redhat.com>
10706
10707 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10708 for 'regcache->register_status'.
10709
10710 2013-03-07 Pedro Alves <palves@redhat.com>
10711
10712 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10713 int.
10714
10715 2013-03-07 Pedro Alves <palves@redhat.com>
10716
10717 * stap-probe.c (handle_stap_probe): Add cast to char*.
10718
10719 2013-03-07 Pedro Alves <palves@redhat.com>
10720
10721 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10722 RECORD_MSGRCV>: Pass a signed variable to
10723 regcache_raw_read_signed, instead of an unsigned one.
10724
10725 2013-03-07 Pedro Alves <palves@redhat.com>
10726
10727 * remote-notif.c (notif_debug): Change type to int.
10728 * remote-notif.h (notif_debug): Likewise.
10729
10730 2013-03-07 Pedro Alves <palves@redhat.com>
10731
10732 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10733
10734 2013-03-07 Pedro Alves <palves@redhat.com>
10735
10736 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10737 * remote.h (hex2bin, bin2hex): ... here.
10738 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10739
10740 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10741
10742 * utils.c (initialize_utils): Improve doc strings of "set/show
10743 width", "set/show height", and "set/show pagination".
10744
10745 2013-03-06 Keith Seitz <keiths@redhat.com>
10746
10747 * ax-gdb.c (gen_printf): Make FORMAT const.
10748 * ax-gdb.h (gen_printf): Likewise.
10749 * ax-general.c (ax_string): Make STR const.
10750 * ax.h (ax_string): Likewise.
10751
10752 2013-03-06 Doug Evans <dje@google.com>
10753
10754 * elfread.c (elf_symfile_read): Move debugging printf to more
10755 logical location.
10756
10757 2013-03-06 Pedro Alves <palves@redhat.com>
10758
10759 * python/py-utils.c (target_string_to_unicode): Delete function.
10760 * python/python-internal.h (target_string_to_unicode): Delete
10761 declaration.
10762
10763 2013-03-06 Pierre Muller <muller@sourceware.org>
10764
10765 * linespec.c (get_current_search_block): ARI fix, use (void)
10766 for empty parameter list.
10767
10768 2013-03-05 Doug Evans <dje@google.com>
10769
10770 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10771 of old ada_lookup_symbol_list. In !full_search case, don't
10772 search superblocks.
10773 (ada_lookup_symbol_list): Delete arg full_search, all callers
10774 updated. Call ada_lookup_symbol_list_worker.
10775 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10776 * ada-lang.h (ada_lookup_symbol_list): Update.
10777 * language.h (language_defn): Update comment for
10778 la_iterate_over_symbols.
10779 * linespec.c (iterate_over_file_blocks): New function.
10780 (iterate_over_all_matching_symtabs): Call it.
10781 (lookup_prefix_sym): Ditto.
10782 (get_current_search_block): New function.
10783 (get_search_block): Delete.
10784 (find_label_symbols): Call get_current_search_block.
10785 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10786 * symtab.c (iterate_over_symbols): Don't search superblocks.
10787
10788 2013-03-05 Yao Qi <yao@codesourcery.com>
10789
10790 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10791 parameter VAR's type from "unsigned int" to "int".
10792 * command.h (var_zuinteger_unlimited): Update its comments.
10793 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10794
10795 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10796
10797 * NEWS: Mention new target x86_64-*-cygwin*.
10798
10799 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10800
10801 * configure.host: Add x86_64-*-cygwin* as host.
10802 * configure.tgt: Add x86_64-*-cygwin* as target.
10803 * config/i386/cygwin64.mh: New file.
10804
10805 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10806
10807 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10808
10809 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10810
10811 * linespec.c (struct linespec_canonical_name): New.
10812 (struct linespec_state): Change canonical_names type to it.
10813 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10814 xrealloc element size. Initialize the different CANONICAL fields.
10815 (canonical_to_fullform): New.
10816 (filter_results): Use it. Add variables canonical, fullform and
10817 cleanup.
10818 (struct decode_line_2_item, decode_line_2_compare_items): New.
10819 (decode_line_2): Remove variables iter and item_names, add variables
10820 items and items_count. Modify the code for these new variables.
10821
10822 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10823
10824 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10825 calling do_cleanup.
10826
10827 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10828
10829 * tracepoint.c (build_traceframe_info): Add code for byte order.
10830
10831 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10832
10833 * v850-tdep.c: (v850e2_register_name): Revise system register
10834 names to match current V850E2M architecture specifications.
10835 Update register number enum comments too.
10836
10837 2013-03-01 Jiong Wang <jiwang@tilera.com>
10838 Pedro Alves <palves@redhat.com>
10839
10840 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10841 to END_ADDR.
10842 (tilegx_skip_prologue): Limit prologue analysis to section end.
10843
10844 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10845
10846 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10847 use it.
10848
10849 2013-03-01 Pedro Alves <palves@redhat.com>
10850
10851 Use gdb_byte for bytes from the program being debugged.
10852
10853 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10854 Change type of local 'buf' to gdb_byte.
10855 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10856 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10857 * cris-tdep.c (cris_sigcontext_addr)
10858 (cris_sigtramp_frame_unwind_cache): Likewise.
10859 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10860 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10861 Likewise.
10862 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10863 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10864 (hppa32_hpux_search_dummy_call_sequence)
10865 (hppa_hpux_supply_save_state): Likewise.
10866 * hppa-linux-tdep.c (insns_match_pattern)
10867 (hppa_linux_find_global_pointer): Likewise.
10868 * hppa-tdep.c (hppa_in_function_epilogue_p)
10869 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10870 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10871 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10872 (i386fbsd_collect_uthread): Likewise.
10873 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10874 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10875 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10876 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10877 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10878 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10879 (ia64_libunwind_frame_prev_register)
10880 (ia64_libunwind_sigtramp_frame_this_id)
10881 (ia64_find_global_pointer_from_dynamic_section)
10882 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10883 (ia64_unwind_pc): Likewise.
10884 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10885 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10886 (m68hc11_extract_return_value): Likewise.
10887 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10888 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10889 (mep_get_insn, mep_push_dummy_call): Likewise.
10890 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10891 (mips_linux_in_dynsym_stub): Likewise.
10892 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10893 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10894 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10895 to gdb_byte.
10896 * remote-mips.c (mips_set_register): Likewise.
10897 * remote-sim.c (gdbsim_fetch_register): Likewise.
10898 * score-tdep.c (score7_fetch_inst): Change type of parameter
10899 'memblock' and local 'buf' to gdb_byte.
10900 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10901 Change type of local 'buf' to gdb_byte. Adjust.
10902 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10903 to gdb_byte**.
10904 (score7_analyze_prologue): Change type of 'memblock' and
10905 'memblock_ptr' locals to gdb_byte*.
10906 * sh64-tdep.c (sh64_extract_return_value)
10907 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10908 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10909 * solib-pa64.c (pa64_solib_create_inferior_hook)
10910 (pa64_open_symbol_file_object): Remove local 'buf'.
10911 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10912 (som_open_symbol_file_object): Likewise.
10913 * solib-spu.c (spu_current_sos): Likewise.
10914 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10915 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10916 (spu_store_registers): Likewise.
10917 * target.c (debug_print_register): Likewise.
10918 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10919 * xstormy16-tdep.c (xstormy16_store_return_value)
10920 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10921 (xstormy16_find_jmp_table_entry): Likewise.
10922
10923 2013-03-01 Jiong Wang <jiwang@tilera.com>
10924
10925 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10926 (tilegx_gdbarch_init): Install it.
10927
10928 2013-02-28 Tom Tromey <tromey@redhat.com>
10929
10930 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10931 PyLong_Check.
10932
10933 2013-02-28 Doug Evans <dje@google.com>
10934
10935 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10936 * python/python.c (gdbpy_find_pc_line): Ditto.
10937
10938 2013-02-28 Tom Tromey <tromey@redhat.com>
10939
10940 * contrib/excheck.py: New file.
10941 * contrib/exsummary.py: New file.
10942 * contrib/gcc-with-excheck: New file.
10943
10944 2013-02-28 Tom Tromey <tromey@redhat.com>
10945
10946 * python/python.c (gdbpy_print_stack): Call begin_line and
10947 fprintf_filtered inside TRY_CATCH.
10948
10949 2013-02-28 Tom Tromey <tromey@redhat.com>
10950
10951 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
10952 inside TRY_CATCH.
10953
10954 2013-02-28 Tom Tromey <tromey@redhat.com>
10955
10956 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
10957 frame_object_to_frame_info inside TRY_CATCH.
10958
10959 2013-02-28 Tom Tromey <tromey@redhat.com>
10960
10961 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
10962 TRY_CATCH.
10963
10964 2013-02-28 Tom Tromey <tromey@redhat.com>
10965
10966 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
10967
10968 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
10969
10970 * windows-nat.c: Throughout, fix format strings and casts of
10971 printf-like functions to avoid type related warnings on all
10972 platforms.
10973 (handle_output_debug_string): Fetch context information address
10974 from debug string using string_to_core_addr.
10975
10976 2013-02-27 Jiong Wang <jiwang@tilera.com>
10977
10978 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
10979 * regformats/reg-tilegx32.dat: New.
10980
10981 2013-02-27 Jiong Wang <jiwang@tilera.com>
10982
10983 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
10984
10985 2013-02-27 Jiong Wang <jiwang@tilera.com>
10986
10987 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
10988
10989 2013-02-27 Yao Qi <yao@codesourcery.com>
10990 Pedro Alves <palves@redhat.com>
10991
10992 * tracepoint.c (tfile_trace_find): For tfind
10993 pc/tp/range/outside, look for the next trace frame instead of
10994 always starting from frame 0.
10995
10996 2013-02-26 Anthony Green <green@moxielogic.com>
10997
10998 * configure.tgt: Add support for moxie-*-rtems* target.
10999
11000 2013-02-25 Pedro Alves <palves@redhat.com>
11001
11002 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11003 warning text.
11004
11005 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11006
11007 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11008 if $fp is used as the virtual frame pointer.
11009
11010 2013-02-23 Alan Modra <amodra@gmail.com>
11011
11012 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11013 symbol size.
11014 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11015 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11016 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11017 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11018
11019 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 Code cleanup.
11022 * elfread.c (build_id_bfd_get): Make the return type const.
11023 (build_id_verify): Make the check parameter const.
11024 (build_id_to_debug_filename): Make the build_id parameter and variable
11025 data const.
11026 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11027
11028 2013-02-21 Alan Modra <amodra@gmail.com>
11029
11030 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11031
11032 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11033
11034 Add a new method 'disassemble' to gdb.Architecture class.
11035 * python/py-arch.c (archpy_disassmble): Implementation of the
11036 new method gdb.Architecture.disassemble.
11037 (arch_object_methods): Add entry for the new method.
11038
11039 2013-02-20 Jiong Wang <jiwang@tilera.com>
11040
11041 * MAINTAINERS (Write After Approval): Add myself to the list.
11042
11043 2013-02-19 Pedro Alves <palves@redhat.com>
11044
11045 Garbage collect 'struct monitor_ops'::load_routine.
11046
11047 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11048 * monitor.c (monitor_load): No longer call
11049 current_monitor->load_routine.
11050 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11051 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11052 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11053
11054 2013-02-19 Pedro Alves <palves@redhat.com>
11055
11056 PR gdb/15161
11057
11058 Harmonize with generic_load.
11059
11060 * monitor.c: Include "readline/readline.h".
11061 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11062 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11063 long/strtol for the 'load_offset' local. Error out if no argument
11064 is given or if too many arguments are given. Tilde expand the
11065 passed in file name.
11066
11067 2013-02-19 Kai Tietz <ktietz@redhat.com>
11068
11069 PR gdb/15161
11070 * symfile.c (load_section_data): Change type of load_offset
11071 to CORE_ADDR.
11072 (generic_load): User strtoulst instead of strtoul for conversion
11073 of load_offset.
11074
11075 2013-02-19 Jiong Wang <jiwang@tilera.com>
11076
11077 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11078 for return address, "lr" register, saved on stack.
11079 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11080 after we invoke tilegx_analyze_prologue.
11081
11082 2013-02-19 Jiong Wang <jiwang@tilera.com>
11083
11084 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11085
11086 2013-02-19 Jiong Wang <jiwang@tilera.com>
11087
11088 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11089
11090 2013-02-19 Jiong Wang <jiwang@tilera.com>
11091
11092 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11093 (tilegx_write_pc): New function.
11094 (tilegx_cannot_reference_register): Return zero if REGNO
11095 is TILEGX_FAULTNUM_REGNUM.
11096 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11097 (tilegx_register_name): Add handling of "faultnum" register.
11098 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11099 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11100 handling of TILEGX_FAULTNUM_REGNUM.
11101 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11102
11103 2013-02-19 Jiong Wang <jiwang@tilera.com>
11104
11105 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11106 should be aligned to 64bit.
11107
11108 2013-02-19 Kai Tietz <ktietz@redhat.com>
11109
11110 * windows-nat.c (windows_xfer_memory): Fix debug-output
11111 for LLP64.
11112
11113 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11114
11115 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11116 Don't check DSP register number if HAVE_DSP is not set.
11117
11118 2013-02-19 Alan Modra <amodra@gmail.com>
11119
11120 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11121 throughout file instead.
11122 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11123 Don't xmalloc return value.
11124 (build_id_verify): Similarly. Don't xfree.
11125 (build_id_to_debug_filename): Update.
11126 (find_separate_debug_file_by_buildid): Update, don't xfree.
11127
11128 2013-02-18 Tom Tromey <tromey@redhat.com>
11129
11130 PR gdb/15102:
11131 * dwarf2read.c (read_subrange_type): Use result of
11132 'check_typedef'.
11133
11134 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11135
11136 * frame.c: Remove one extra white space after #include
11137 directive.
11138
11139 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11142
11143 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11144
11145 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11146 and dir commands into an if block.
11147
11148 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11149
11150 * python/py-breakpoint (struct pybp_code): Use int instead of
11151 enum type_code.
11152
11153 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11154 Hafiz Abid Qadeer <abidh@codesourcery.com>
11155
11156 * NEWS: Mention new field "trace-file".
11157 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11158 (tfile_open): Record the trace file's filename in the trace
11159 status.
11160 (tfile_files_info): Mention the name of the trace file.
11161 Check the "filename" field explicitely.
11162 (trace_status_command): Explicitely check "filename" field.
11163 (trace_find_command): Ditto.
11164 (trace_find_pc_command): Ditto.
11165 (trace_find_tracepoint_command): Ditto.
11166 (trace_find_line_command): Ditto.
11167 (trace_find_range_command): Ditto.
11168 (trace_find_outside_command): Ditto.
11169 * tracepoint.h (struct trace_status) <from_file>: Rename it
11170 to "filename" and make it hold the trace file's filename
11171 instead of a boolean.
11172 * remote.c (remote_get_trace_status): Initialize "filename"
11173 field with NULL instead of 0.
11174
11175 2013-02-15 Yao Qi <yao@codesourcery.com>
11176
11177 * remote.c: Fix a typo.
11178
11179 2013-02-14 Pierre Muller <muller@sourceware.org>
11180
11181 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11182
11183 2013-02-14 Pedro Alves <palves@redhat.com>
11184
11185 * utils.c (savestring): Don't #undef it. Move function to
11186 common/common-utils.c.
11187 * common/common-utils.c: Include gdb_string.h.
11188 (savestring): Move here from utils.c.
11189 * common/common-utils.h (savestring): Declare.
11190
11191 2013-02-14 Pedro Alves <palves@redhat.com>
11192
11193 * utils.c (savestring): Rename parameter 'size' to 'len'.
11194
11195 2013-02-14 Pedro Alves <palves@redhat.com>
11196 Yufeng Zhang <yufeng.zhang@arm.com>
11197
11198 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11199 (aarch64_inferior_data, struct aarch64_inferior_data):
11200 Delete.
11201 (struct aarch64_process_info): New.
11202 (aarch64_process_list): New global.
11203 (aarch64_find_process_pid, aarch64_add_process)
11204 (aarch64_process_info_get): New functions.
11205 (aarch64_inferior_data_get): Delete.
11206 (aarch64_process_info_get): New function.
11207 (aarch64_forget_process): New function.
11208 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11209 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11210 aarch64_get_debug_reg_state.
11211 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11212 instead of linux_nat_iterate_watchpoint_lwps.
11213 (aarch64_linux_new_fork): New function.
11214 (aarch64_linux_child_post_startup_inferior): Use
11215 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11216 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11217 (aarch64_linux_remove_hw_breakpoint)
11218 (aarch64_handle_aligned_watchpoint)
11219 (aarch64_handle_unaligned_watchpoint)
11220 (aarch64_linux_insert_watchpoint)
11221 (aarch64_linux_remove_watchpoint)
11222 (aarch64_linux_stopped_data_address): Adjust to pass the current
11223 process id to aarch64_debug_reg_state.
11224 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11225 linux_nat_new_fork hook, and aarch64_forget_process as
11226 linux_nat_forget_process hook; remove the call to
11227 register_inferior_data_with_cleanup.
11228
11229 2013-02-14 Pedro Alves <palves@redhat.com>
11230
11231 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11232 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11233 lval_memory.
11234
11235 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11236 Hafiz Abid Qadeer <abidh@codesourcery.com>
11237
11238 * tracepoint.h (validate_trace_state_variable_name): Declare.
11239 * tracepoint.c (validate_trace_state_variable_name): New.
11240 (trace_variable_command): Parse the trace state variable's name
11241 without using parse_expression. Do several validations.
11242 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11243 trace state variable's name with parse_expression. Validate it.
11244
11245 2013-02-14 Yao Qi <yao@codesourcery.com>
11246
11247 * infcmd.c (breakpoint_proceeded): Remove it.
11248
11249 2013-02-14 Yao Qi <yao@codesourcery.com>
11250
11251 * tracepoint.c (end_actions_pseudocommand): Make it static.
11252 (while_stepping_pseudocommand): Likewise.
11253 * tracepoint.h (end_actions_pseudocommand): Remove the
11254 declaration.
11255 (while_stepping_pseudocommand): Likewise.
11256
11257 2013-02-14 Yao Qi <yao@codesourcery.com>
11258
11259 * cli/cli-decode.c (help_cmd): Remove the declaration of
11260 "cmdlist".
11261 (help_all): Likewise.
11262
11263 2013-02-13 Pedro Alves <palves@redhat.com>
11264
11265 * amd64-linux-nat.c (update_debug_registers_callback):
11266 Update comment.
11267 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11268 iterate_over_lwps.
11269 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11270 i386_debug_reg_state.
11271 (amd64_linux_new_fork): New function.
11272 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11273 linux_nat_new_fork hook, and i386_forget_process as
11274 linux_nat_forget_process hook.
11275 * i386-linux-nat.c (update_debug_registers_callback):
11276 Update comment.
11277 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11278 iterate_over_lwps.
11279 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11280 i386_debug_reg_state.
11281 (i386_linux_new_fork): New function.
11282 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11283 linux_nat_new_fork hook, and i386_forget_process as
11284 linux_nat_forget_process hook.
11285 * i386-nat.c (i386_init_dregs): Delete.
11286 (i386_inferior_data, struct i386_inferior_data):
11287 Delete.
11288 (struct i386_process_info): New.
11289 (i386_process_list): New global.
11290 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11291 New functions.
11292 (i386_inferior_data_get): Delete.
11293 (i386_process_info_get): New function.
11294 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11295 (i386_forget_process): New function.
11296 (i386_cleanup_dregs): Rewrite.
11297 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11298 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11299 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11300 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11301 to i386_debug_reg_state.
11302 (i386_use_watchpoints): Don't register inferior data.
11303 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11304 adjust comment.
11305 (i386_forget_process): Declare.
11306 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11307 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11308 New static globals.
11309 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11310 (add_initial_lwp): New, factored out from ...
11311 (add_lwp): ... this. Don't check the number of lwps before
11312 calling linux_nat_new_thread.
11313 (linux_nat_iterate_watchpoint_lwps): Delete.
11314 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11315 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11316 forks and vforks.
11317 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11318 initial lwp.
11319 (linux_nat_kill, linux_nat_mourn_inferior): Call
11320 linux_nat_forget_process.
11321 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11322 (linux_nat_forget_process): New functions.
11323 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11324 type.
11325 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11326 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11327 types.
11328 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11329 (linux_nat_forget_process): New declarations.
11330
11331 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11332 (amd64fbsd_mourn_inferior): New function.
11333 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11334 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11335
11336 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11337
11338 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11339 Adding _().
11340
11341 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11342
11343 * aarch64-linux-nat.c (debug_reg_change_callback)
11344 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11345 %s and phex().
11346
11347 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11348
11349 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11350 with LONGEST.
11351
11352 2013-02-13 Pedro Alves <palves@redhat.com>
11353 Hafiz Abid Qadeer <abidh@codesourcery.com>
11354
11355 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11356
11357 2013-02-12 Tom Tromey <tromey@redhat.com>
11358
11359 PR symtab/11464:
11360 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11361 NAME return.
11362 (classify_inner_name): Remove 'first_name' argument, add
11363 'context'. Remove unused variable.
11364 (yylex): Explicitly maintain the context type. Exit loop earlier
11365 if NAME result is seen.
11366
11367 2013-02-12 Pedro Alves <palves@redhat.com>
11368
11369 * amd64-darwin-tdep.c: Add (C) after Copyright.
11370 * cli/cli-cmds.h: Ditto.
11371 * cli/cli-decode.c: Ditto.
11372 * cli/cli-decode.h: Ditto.
11373 * cli/cli-dump.c: Ditto.
11374 * cli/cli-dump.h: Ditto.
11375 * cli/cli-interp.c: Ditto.
11376 * cli/cli-logging.c: Ditto.
11377 * cli/cli-script.c: Ditto.
11378 * cli/cli-script.h: Ditto.
11379 * cli/cli-setshow.c: Ditto.
11380 * cli/cli-setshow.h: Ditto.
11381 * cli/cli-utils.c: Ditto.
11382 * cli/cli-utils.h: Ditto.
11383 * config/alpha/nm-osf3.h: Ditto.
11384 * config/djgpp/djconfig.sh: Ditto.
11385 * config/i386/nm-fbsd.h: Ditto.
11386 * config/i386/nm-i386gnu.h: Ditto.
11387 * config/nm-linux.h: Ditto.
11388 * config/nm-nto.h: Ditto.
11389 * config/rs6000/nm-rs6000.h: Ditto.
11390 * config/sparc/nm-sol2.h: Ditto.
11391 * darwin-nat-info.c: Ditto.
11392 * dfp.c: Ditto.
11393 * dfp.h: Ditto.
11394 * gdb-demangle.h: Ditto.
11395 * i386-darwin-nat.c: Ditto.
11396 * i386-darwin-tdep.c: Ditto.
11397 * linux-fork.h: Ditto.
11398 * m32c-tdep.c: Ditto.
11399 * microblaze-linux-tdep.c: Ditto.
11400 * microblaze-rom.c: Ditto.
11401 * microblaze-tdep.c: Ditto.
11402 * microblaze-tdep.h: Ditto.
11403 * mips-linux-tdep.h: Ditto.
11404 * ppc-ravenscar-thread.c: Ditto.
11405 * ppc-ravenscar-thread.h: Ditto.
11406 * prologue-value.c: Ditto.
11407 * prologue-value.h: Ditto.
11408 * ravenscar-thread.c: Ditto.
11409 * ravenscar-thread.h: Ditto.
11410 * sparc-ravenscar-thread.c: Ditto.
11411 * sparc-ravenscar-thread.h: Ditto.
11412 * tilegx-linux-tdep.c: Ditto.
11413 * unwind_stop_reasons.def: Ditto.
11414 * windows-nat.h: Ditto.
11415 * xtensa-linux-tdep.c: Ditto.
11416 * xtensa-xtregs.c: Ditto.
11417 * regformats/regdat.sh: Ditto.
11418 * regformats/regdef.h: Ditto.
11419
11420 2013-02-12 Pedro Alves <palves@redhat.com>
11421
11422 * break-catch-sig.c: Update copyright years.
11423
11424 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11425
11426 Add support for a destructor for ui_out data and use it to
11427 provide a ui_out destructor.
11428 * ui-out.h: Declare the new ui_out destructor.
11429 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11430 * ui-out.c (default_data_destroy): Add a default data destructor
11431 which does nothing.
11432 (default_ui_out_impl): Set the new data_destroy field to
11433 default_data_destroy
11434 (uo_data_destroy): Local function which invokes the data
11435 destructor if present.
11436 (clear_table): Local function which clears the table data of a
11437 ui_out object.
11438 (ui_out_destroy): Public function which frees a ui_out object.
11439 (ui_out_table_end): Use the new clear_table function.
11440 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11441 NULL.
11442 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11443 to NULL.
11444
11445 2013-02-11 Doug Evans <dje@google.com>
11446
11447 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11448 (printf_decfloat): New function. Broken out from ui_printf.
11449 Remove unnecessary code to shift the entire format string down.
11450 (printf_pointer): New function.
11451 (ui_printf): Code to print C strings, wide C strings, decfloats,
11452 and pointers moved to separate functions.
11453
11454 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11455
11456 * valops.c (value_assign): Handling bitfield offset in
11457 `lval_internalvar_component' case.
11458
11459 2013-02-08 Doug Evans <dje@google.com>
11460
11461 * common/format.c (parse_format_string): Fix whitespace.
11462
11463 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11464
11465 * stack.c (return_command): Work around uninitialized variable
11466 warning.
11467
11468 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11469
11470 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11471 number of the registers from 36 to 34.
11472
11473 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11474
11475 * NEWS: Mention new AArch64 native and target support.
11476
11477 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11478
11479 * MAINTAINERS (Write After Approval): Add myself.
11480
11481 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11482 Marcus Shawcroft <marcus.shawcroft@arm.com>
11483 Nigel Stephens <nigel.stephens@arm.com>
11484 Yufeng Zhang <yufeng.zhang@arm.com>
11485
11486 * aarch64-linux-nat.c: New file.
11487 * config/aarch64/linux.mh: New file.
11488 * configure.host: Add AArch64.
11489 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11490
11491 2013-02-07 Doug Evans <dje@google.com>
11492
11493 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11494 disassemble command.
11495
11496 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11497
11498 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11499 set_gdbarch_fetch_tls_load_module_address.
11500
11501 2013-02-06 David S. Miller <davem@davemloft.net>
11502
11503 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11504 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11505 * value.c (struct_return_convention): New function.
11506 (using_struct_return): Implement in terms of struct_return_convention.
11507 * value.h (struct_return_convention): Declare.
11508 * stack.c (return_command): Allow successful overriding of the return
11509 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11510
11511 2013-02-06 Tom Tromey <tromey@redhat.com>
11512
11513 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11514 outside of TRY_CATCH.
11515
11516 2013-02-06 Yao Qi <yao@codesourcery.com>
11517
11518 * mi/mi-interp.c: Include "tracepoint.h".
11519 (mi_tsv_modified): Declare.
11520 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11521 (mi_interpreter_init): Call observer_attach_tsv_modified.
11522 (mi_tsv_modified): New.
11523 (mi_tsv_created, mi_tsv_deleted): Update.
11524 * tracepoint.c (trace_variable_command): Call
11525 observer_notify_tsv_modified if the initial value of tsv is
11526 changed.
11527 (delete_trace_state_variable): Call
11528 observer_notify_tsv_deleted earlier.
11529 (trace_variable_command): Caller update.
11530 (create_tsv_from_upload): Likewise.
11531 * observer.sh: Declare "struct trace_state_variable".
11532
11533 * NEWS: Mention the new MI notification "=tsv-modified".
11534
11535 2013-02-05 Doug Evans <dje@google.com>
11536
11537 * completer.c (location_completer): Fix typo in comment.
11538
11539 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11540
11541 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11542 ADDRESS sorted.
11543
11544 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11545
11546 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11547 Refactor if statement to avoid trailing || operator.
11548
11549 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11550
11551 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11552
11553 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11554
11555 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11556 * configure.host: Add powerpc*-*-freebsd* target.
11557 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11558 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11559 * config/powerpc/fbsd.mh: New file.
11560
11561 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11562 Denys Vlasenko <dvlasenk@redhat.com>
11563 Pedro Alves <palves@redhat.com>
11564
11565 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11566 (struct elf_internal_linux_prpsinfo): Forward declare.
11567 * gdbarch.h, gdbarch.c: Regenerate.
11568 * linux-tdep.c: Include `cli/cli-utils.h'.
11569 (linux_fill_prpsinfo): New function.
11570 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11571 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11572 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11573 depending on gdbarch pointer bitness.
11574 * ppc-linux-tdep.c: Include elf-bfd.h.
11575 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11576 on 32-bit.
11577
11578 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11579 Marcus Shawcroft <marcus.shawcroft@arm.com>
11580 Nigel Stephens <nigel.stephens@arm.com>
11581 Yufeng Zhang <yufeng.zhang@arm.com>
11582
11583 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11584
11585 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11586 Marcus Shawcroft <marcus.shawcroft@arm.com>
11587 Nigel Stephens <nigel.stephens@arm.com>
11588 Yufeng Zhang <yufeng.zhang@arm.com>
11589
11590 * aarch64-newlib-tdep.c: New file.
11591 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11592 aarch64*-*-elf.
11593 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11594 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11595 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11596 * osabi.c (gdb_osabi_names): Add "Newlib".
11597
11598 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11599 Marcus Shawcroft <marcus.shawcroft@arm.com>
11600 Nigel Stephens <nigel.stephens@arm.com>
11601 Yufeng Zhang <yufeng.zhang@arm.com>
11602
11603 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11604 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11605 * aarch64-linux-tdep.c: New file.
11606 * aarch64-linux-tdep.h: New file.
11607 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11608 * configure.tgt: Add aarch64-none-linux-gnu.
11609
11610 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11611 Marcus Shawcroft <marcus.shawcroft@arm.com>
11612 Nigel Stephens <nigel.stephens@arm.com>
11613 Yufeng Zhang <yufeng.zhang@arm.com>
11614
11615 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11616 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11617 (ALLDEPFILES): Add aarch64-tdep.c.
11618 * aarch64-tdep.c: New file.
11619 * aarch64-tdep.h: New file.
11620 * configure.tgt: Add AArch64.
11621 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11622 (aarch64-expedite): New definition.
11623 * features/aarch64-core.xml: New file.
11624 * features/aarch64-fpu.xml: New file.
11625 * features/aarch64-without-fpu.c: New file (generated).
11626 * features/aarch64-without-fpu.xml: New file.
11627 * features/aarch64.c: New file (generated).
11628 * features/aarch64.xml: New file.
11629 * regformats/aarch64-without-fpu.dat: New file (generated).
11630 * regformats/aarch64.dat: New file (generated).
11631
11632 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11633
11634 * contrib/expect-read1.c: New file.
11635 * contrib/expect-read1.sh: New file.
11636
11637 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11638
11639 * dwarf2read.c (file_file_name): New function with code from
11640 file_full_name.
11641 (file_full_name): Move most of the code to file_file_name.
11642 (macro_start_file): Rename variable full_name to file_name and use
11643 file_file_name for it. Add comp_dir parameter to new_macro_table.
11644 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11645 macro_source_file->filename access by macro_source_fullname call.
11646 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11647 caller.
11648 * macrotab.c (struct macro_table): New field comp_dir.
11649 (macro_include): New variables link_fullname and source_fullname.
11650 Replace any macro_source_file->filename access by macro_source_fullname
11651 call.
11652 (macro_lookup_inclusion): Remove the partial filenames checking code.
11653 (check_for_redefinition): New variables source_fullname and
11654 found_key_fullname. Replace any macro_source_file->filename access by
11655 macro_source_fullname call.
11656 (macro_undef): New variables source_fullname and key_fullname. Replace
11657 any macro_source_file->filename access by macro_source_fullname call.
11658 (macro_lookup_definition): New variables retval and source_fullname.
11659 Replace any macro_source_file->filename access by macro_source_fullname
11660 call.
11661 (foreach_macro): New variable key_fullname. Replace any
11662 macro_source_file->filename access by macro_source_fullname call.
11663 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11664 macro_source_file->filename access by macro_source_fullname call.
11665 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11666 (macro_source_fullname): New function.
11667 * macrotab.h (struct macro_source_file): Extent the filename field
11668 comment.
11669 (new_macro_table): New parameter comp_dir, add a comment for it.
11670 (macro_source_fullname): new declaration.
11671
11672 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11673
11674 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11675 this_real_name to outer block. Use it also for
11676 compare_filenames_for_search.
11677 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11678 with dw2_get_real_path for file_matcher, considering also
11679 BASENAMES_MAY_DIFFER.
11680 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11681
11682 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11683
11684 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11685 to the file_matcher parameter. Pass 0 to it.
11686 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11687 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11688 NULL psymtab_to_fullname result.
11689 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11690 an expected filename instead.
11691 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11692 file_matcher parameter. Call also psymtab_to_fullname, after newly
11693 considering BASENAMES_MAY_DIFFER.
11694 * source.c (rewrite_source_path): Remove static.
11695 * source.h (rewrite_source_path): New declaration.
11696 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11697 the expand_symtabs_matching field. Comment it.
11698 * symtab.c (file_matches): New function comment. Add parameter
11699 basenames, implement it.
11700 (search_symbols_file_matches): Add basenames parameter. Update the
11701 file_matches caller.
11702 (search_symbols): Match FILES also against symtab_to_fullname.
11703 Optimize it for BASENAMES_MAY_DIFFER.
11704
11705 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 * source.c (print_source_lines_base): Print for TUI also "fullname".
11708 * tui/tui-data.c (init_content_element): Change tui_locator_element
11709 field to full_name.
11710 * tui/tui-data.h (struct tui_locator_element): Likewise.
11711 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11712 tui_update_locator_filename calls to tui_update_locator_fullname.
11713 Replace symtab->filename refererence by symtab_to_fullname call.
11714 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11715 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11716 field to full_name. Replace symtab->filename refererence by
11717 symtab_to_fullname call.
11718 (tui_show_symtab_source): Rename parameter to fullname. Change
11719 tui_locator_element field to full_name.
11720 * tui/tui-stack.c: Include source.h.
11721 (tui_set_locator_filename): Rename the declaration to ...
11722 (tui_set_locator_fullname): ... here. Rename its parameter to
11723 fullname, updates its comment.
11724 (tui_set_locator_info): Rename its parameter to fullname.
11725 (tui_set_locator_filename): Rename the definition to ...
11726 (tui_set_locator_fullname): ... here. Rename its parameter to
11727 fullname, updates its comment. Change tui_locator_element field to
11728 full_name.
11729 (tui_set_locator_info): Rename its parameter to fullname.
11730 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11731 (tui_update_locator_filename): Rename to ...
11732 (tui_update_locator_fullname): ... here. Rename callee to
11733 tui_set_locator_fullname.
11734 (tui_show_frame_info): Replace symtab->filename refererence by
11735 symtab_to_fullname call.
11736 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11737 (tui_update_locator_fullname): ... here.
11738 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11739 tui_update_locator_fullname. Replace symtab->filename refererence by
11740 symtab_to_fullname call.
11741 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11742 Rename the callee to tui_update_locator_fullname.
11743 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11744
11745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11746
11747 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11748 by symtab_to_filename_for_display calls.
11749 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11750 (clear_command): New variable sal_fullname, initialize it. Replace
11751 compare_filenames_for_search by filename_cmp with sal_fullname.
11752 (say_where, update_static_tracepoint): Replace symtab->filename
11753 refererences by symtab_to_filename_for_display calls.
11754 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11755 Likewise.
11756 * dwarf2read.c: Include source.h.
11757 (fixup_go_packaging): Replace symtab->filename refererences by
11758 symtab_to_filename_for_display calls.
11759 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11760 Replace symtab->filename refererences by symtab_to_filename_for_display
11761 calls.
11762 (create_sals_line_offset, convert_linespec_to_sals): New variable
11763 fullname, initialize it, replace symtab->filename reference by the
11764 variable.
11765 * linux-fork.c: Include source.h.
11766 (info_checkpoints_command): Replace symtab->filename refererences by
11767 symtab_to_filename_for_display calls.
11768 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11769 by symtab_to_filename_for_display calls.
11770 * mdebugread.c: Include source.h.
11771 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11772 symtab_to_filename_for_display calls.
11773 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11774 (mi_cmd_file_list_exec_source_files): Likewise.
11775 * printcmd.c: Include source.h.
11776 (build_address_symbolic): Replace symtab->filename refererences by
11777 symtab_to_filename_for_display calls.
11778 * psymtab.c (partial_map_symtabs_matching_filename)
11779 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11780 with psymtab_to_fullname.
11781 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11782 by symtab_to_filename_for_display calls.
11783 (stpy_get_filename): New variable filename, initialize it, use instead
11784 of symtab->filename refererences.
11785 (salpy_str): Make variable filename const char *. Replace
11786 symtab->filename refererences by symtab_to_filename_for_display calls.
11787 * skip.c: Include source.h and filenames.h.
11788 (skip_file_command): Remove const from the symtab variable. Replace
11789 symtab->filename refererences by symtab_to_fullname call.
11790 (function_name_is_marked_for_skip): New variables searched_for_fullname
11791 and fullname. Use them to search also with symtab's fullname.
11792 * source.c (find_source_lines): Replace symtab->filename refererences
11793 by symtab_to_filename_for_display calls.
11794 (print_source_lines_base): New variable filename, use it instead of
11795 symtab->filename. Replace symtab->filename refererences by
11796 symtab_to_filename_for_display calls.
11797 (line_info, forward_search_command): Replace symtab->filename
11798 refererences by symtab_to_filename_for_display calls.
11799 (reverse_search_command): Replace symtab->filename refererences by
11800 symtab_to_filename_for_display calls. New variable filename for it.
11801 * stack.c (frame_info): Likewise.
11802 * symmisc.c: Include source.h.
11803 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11804 (maintenance_info_symtabs): Replace symtab->filename refererences by
11805 symtab_to_filename_for_display calls.
11806 * symtab.c (iterate_over_some_symtabs): Call
11807 compare_filenames_for_search also with symtab_to_fullname.
11808 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11809 symtab->filename refererences by symtab_to_filename_for_display calls.
11810 (find_line_symtab): Replace symtab->filename refererences by
11811 symtab_to_filename_for_display calls.
11812 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11813 (print_symbol_info): Make the last parameter const char *. New
11814 variable s_filename. Use it in the function.
11815 (symtab_symbol_info): Make the last_filename variable const char *.
11816 Replace symtab->filename refererences by symtab_to_filename_for_display
11817 calls.
11818 (rbreak_command): New variable fullname. Use it. Replace
11819 symtab->filename refererence by symtab_to_filename_for_display call.
11820 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11821 (print_one_static_tracepoint_marker): Replace symtab->filename
11822 refererences by symtab_to_filename_for_display calls.
11823 * tui/tui-source.c (tui_set_source_content): New variables filename and
11824 s_filename. Replace symtab->filename refererences by this variable.
11825 Replace other symtab->filename refererences by
11826 symtab_to_filename_for_display calls.
11827
11828 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11829 Jan Kratochvil <jan.kratochvil@redhat.com>
11830
11831 Add a new variable that controls a way in which filenames are
11832 displayed.
11833 * NEWS (set filename-display): New entry.
11834 * source.c (filename_display_basename, filename_display_relative)
11835 (filename_display_absolute, filename_display_kind_names)
11836 (filename_display_string, show_filename_display_string)
11837 (symtab_to_filename_for_display): New.
11838 (_initialize_source): Added initialization of 'filename-display'
11839 variable.
11840 * source.h (symtab_to_filename_for_display): Added declaration.
11841 * stack.c (print_frame): Added new variable and calling of a new
11842 function and condition with this variable. Changed third argument of
11843 calling of a function.
11844
11845 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11846
11847 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11848 Rename field reference filename to fullname.
11849 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11850 fullname. New comment for it.
11851 * tui/tui-source.c (tui_set_source_content): Rename field reference
11852 filename to fullname. Initialize field by symtab_to_fullname now.
11853 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11854 reference filename to fullname. Use symtab_to_fullname during
11855 comparison.
11856
11857 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11858
11859 Code cleanup.
11860 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11861 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11862 filename to fullname. Rename variable this_name to this_fullname.
11863 Lowercase FILENAME_CMP call.
11864 (dw2_find_symbol_file): New comment for the returned string.
11865 (dwarf2_gdb_index_functions): Rename the function to
11866 dw2_expand_symtabs_with_fullname.
11867 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11868 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11869 fullname.
11870 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11871 * symfile.h (struct quick_symbol_functions): Rename field
11872 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11873 parameter filename to fullname. Document returned string meaning for
11874 find_symbol_file.
11875 * symtab.c (find_line_symtab): Rename the called function to
11876 expand_symtabs_with_fullname.
11877
11878 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11879
11880 Code cleanup.
11881 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11882 call of filename_cmp with compare_filenames_for_search.
11883 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11884 is_abs, unify the call of FILENAME_CMP with
11885 compare_filenames_for_search. New gdb_asserts for real_path and name.
11886 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11887 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11888 * symfile.h (struct quick_symbol_functions): Extend the comment for
11889 map_symtabs_matching_filename.
11890 * symtab.c (compare_filenames_for_search): Remove the function comment
11891 relative path requirement. Handle absolute filenames, with a comment.
11892 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11893 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11894 real_path and name. Unify the call of compare_filenames_for_search
11895 with FILENAME_CMP.
11896 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11897
11898 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11899
11900 Code cleanup.
11901 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11902 source_file references by symtab field references. Remove variables
11903 sal and fullname.
11904 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11905 (clear_command, say_where): Replace bp_location field source_file
11906 references by symtab field references.
11907 (bp_location_dtor): Remove the source_file reference.
11908 (update_static_tracepoint): Replace bp_location field source_file
11909 references by symtab field references.
11910 (breakpoint_free_objfile): New function.
11911 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11912 Replace the field source_file by field symtab, extend its comment.
11913 (breakpoint_free_objfile): New declaration.
11914 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11915 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11916 field source_file references by symtab field references.
11917
11918 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11919
11920 Replace xfullpath calls by gdb_realpath calls.
11921 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11922 function comment.
11923 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11924 Remove it from the iterate_over_some_symtabs call.
11925 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11926 Remove it from the dw2_map_expand_apply calls, remove a block handling
11927 it.
11928 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11929 Remove it from the iterate_over_some_symtabs call.
11930 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11931 Remove it from the partial_map_expand_apply calls, remove a block
11932 handling it. Drop gdb_realpath call and cleanups from the real_path
11933 handling.
11934 * source.c (openp): Drop the comment part about xfullpath. Replace
11935 xfullpath calls by gdb_realpath calls.
11936 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
11937 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
11938 from method map_symtabs_matching_filename and its comment.
11939 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
11940 gdb_realpath call.
11941 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
11942 remove it also from the function comment, remove a block handling it.
11943 Drop gdb_realpath call and cleanups from the real_path handling.
11944 (iterate_over_symtabs): Drop variable full_path and its use.
11945 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
11946 * utils.c (xfullpath): Remove.
11947 * utils.h (xfullpath): Remove.
11948
11949 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
11950
11951 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
11952 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
11953 (ALLDEPFILES): Add ppc64-tdep.c.
11954 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
11955 ppc64-tdep.o to gdb_target_obs.
11956 * ppc64-tdep.h: New file.
11957 * ppc64-tdep.c: New file.
11958 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
11959 ppc-linux-tdep.c to here.
11960 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
11961 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
11962 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
11963 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
11964 from ppc-linux-tdep.c to here.
11965 (ppc64_convert_from_func_ptr_addr): Rename from
11966 ppc64_linux_convert_from_func_ptr_addr to
11967 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
11968 here.
11969 * rs6000-tdep.c:
11970 (read_insn): Move from ppc-linux-tdep.c to here.
11971 (insns_match_pattern, insn_d_field, insn_ds_field): Move
11972 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
11973 * ppc-linux-tdep.c: Include ppc64-tdep.h.
11974 Removed above functions.
11975 (ppc_linux_init_abi): Adjust.
11976
11977 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11978
11979 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
11980
11981 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
11982
11983 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
11984
11985 2013-02-01 Pedro Alves <palves@redhat.com>
11986
11987 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
11988 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
11989
11990 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11991
11992 * elfread.c (elf_symfile_read): Limit separate debug info additions to
11993 files with no separate debug info.
11994 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
11995 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
11996 only for files with no separate debug info.
11997
11998 2013-01-31 Tom Tromey <tromey@redhat.com>
11999
12000 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12001 change type.
12002 (struct jit_program_space_data): Rename from jit_inferior_data.
12003 Update comments.
12004 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12005 Change return type. Attach data to program space.
12006 (jit_program_space_data_cleanup): Rename from
12007 jit_inferior_data_cleanup; change argument type.
12008 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12009 change type.
12010 (jit_register_code): Update.
12011 (jit_update_inferior_cache): Remove.
12012 (jit_breakpoint_deleted): Get jit data from the location's program
12013 space.
12014 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12015 'ps_data', change type.
12016 (jit_inferior_init, jit_breakpoint_re_set_internal)
12017 (jit_event_handler): Update.
12018 (free_objfile_data): Get data from objfile's program space.
12019 (_initialize_jit): Update.
12020
12021 2013-01-31 Tom Tromey <tromey@redhat.com>
12022
12023 PR gdb/13987:
12024 * jit.c (struct jit_inferior_data) <cached_code_address,
12025 jit_breakpoint>: New fields.
12026 (jit_breakpoint_re_set_internal): Fix logging. Only create
12027 breakpoint if cached address has changed.
12028 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12029 functions.
12030 (_initialize_jit): Register breakpoint deleted observer.
12031
12032 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12033
12034 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12035 (save_infcall_suspend_state): Ifdef out unused inf.
12036 (restore_infcall_suspend_state): Ifdef out unused inf.
12037 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12038 (jit_frame_sniffer): Remove unused inf_data.
12039
12040 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12041
12042 * c-exp.y (classify_inner_name): Remove unused type.
12043 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12044 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12045 need_escape.
12046 (c_get_string): Remove unused kind.
12047 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12048
12049 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12050
12051 * charset.c (intermediate_encoding): Remove unused i.
12052 * completer.c (signal_completer): Remove unused i.
12053 * continuations.c (discard_my_continuations_1): Remove unused
12054 continuation_ptr.
12055 * corelow.c (core_close): Remove unuseD name.
12056 (get_core_siginfo): Remove unused pid.
12057 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12058 i, cps.
12059 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12060 (loclist_describe_location): Remove unused first.
12061 * event-top.c (command_line_handler): Remove unused got_eof.
12062 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12063 (resize_section_table): Remove unused old_value.
12064 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12065 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12066 * i386-tdep.c (i386_process_record): Remove unused rex.
12067 * infcmd.c (get_return_value): Remove unused uiout.
12068 * jv-lang.c (type_from_class): Remove unused is_array.
12069 * jv-valprint.c (java_val_print): Remove unused i.
12070 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12071 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12072 * m2-typeprint.c (m2_print_type): Remove unused code.
12073 * macroexp.c (get_character_constant): Remove unused body_start.
12074 (macro_stringify): Remove unused result.
12075 * objc-lang.c (find_methods): Remove unused gdbarch.
12076 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12077 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12078 * stack.c (print_frame_args): Remove unused summary.
12079 * thread.c (thread_apply_command): Remove unused p.
12080 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12081 * valops.c (search_struct_method): Remove unused skip.
12082 * valprint.c (generic_val_print): Remove unused byte_order.
12083 * varobj.c (varobj_update): Remove unused changed.
12084 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12085 (alias_command): Remove unused c.
12086 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12087 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12088 format.
12089 (mi_cmd_data_write_memory): Remove unused word_format.
12090 (mi_cmd_data_write_memory_bytes): Remove unused r.
12091 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12092 p_start, p_end.
12093 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12094 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12095 line_width.
12096
12097 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12098
12099 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12100 * symtab.c (iterate_over_symtabs): Remove unused s.
12101 (find_pc_sect_symtab): Remove unused pspAce.
12102 (find_pc_sect_line): Remove unused alt_symtab.
12103 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12104 (completion_list_add_name): Remove unused newsize.
12105
12106 2013-01-31 Tom Tromey <tromey@redhat.com>
12107
12108 PR c++/14998:
12109 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12110 TYPE_CODE_FUNC.
12111
12112 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12113
12114 * target.c (target_read_string): Remove unused origlen.
12115
12116 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12117
12118 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12119 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12120 * ax-general.c (ax_print): Remove unused is_float.
12121 * blockframe.c (block_innermost_frame): Remove unused start, end.
12122 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12123
12124 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12125
12126 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12127 (svr4_read_so_list): Remove unused lmo.
12128 * solib-target.c (solib_target_relocate_section_addresses): Remove
12129 unused flags.
12130
12131 2013-01-30 Tom Tromey <tromey@redhat.com>
12132
12133 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12134
12135 2013-01-30 Tom Tromey <tromey@redhat.com>
12136
12137 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12138 * utils.c (gnu_debuglink_crc32): Remove.
12139 * utils.h (gnu_debuglink_crc32): Don't declare.
12140
12141 2013-01-30 Tom Tromey <tromey@redhat.com>
12142
12143 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12144 (read_structure_type, read_enumeration_type): Remove cast.
12145
12146 2013-01-30 Tom Tromey <tromey@redhat.com>
12147
12148 * dwarf2read.c (read_namespace_type): Remove cast.
12149 (read_typedef): Likewise.
12150
12151 2013-01-29 Tom Tromey <tromey@redhat.com>
12152
12153 * dwarf2read.c (free_dwo_file): Remove assert.
12154
12155 2013-01-29 Tom Tromey <tromey@redhat.com>
12156
12157 * value.c (deprecated_set_value_modifiable): Remove.
12158 * value.h (deprecated_set_value_modifiable): Remove.
12159
12160 2013-01-28 Doug Evans <dje@google.com>
12161
12162 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12163 to addresses from dwo files.
12164
12165 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12166
12167 * valops.c (find_overload_match): Remove unused argument 'lax'.
12168 * value.h: Remove unused argument 'lax' from the declaration of
12169 find_overload_match.
12170 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12171 to find_overload_match.
12172 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12173 argument to find_overload_match.
12174
12175 2013-01-25 Tom Tromey <tromey@redhat.com>
12176
12177 * dwarf2read.c (processing_has_namespace_info): Remove.
12178 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12179 (process_die, read_func_scope, dwarf2_start_symtab)
12180 (new_symbol_full): Update.
12181
12182 2013-01-25 Tom Tromey <tromey@redhat.com>
12183
12184 * cp-namespace.c (cp_set_block_scope): Remove.
12185 * cp-support.h (cp_set_block_scope): Remove.
12186 * dbxread.c: Include block.h.
12187 (cp_set_block_scope): New function.
12188 (process_one_symbol): Update.
12189 * dwarf2read.c (read_func_scope): Use block_set_scope.
12190
12191 2013-01-25 Pedro Alves <palves@redhat.com>
12192
12193 * remote.c (add_current_inferior_and_thread): Tweak comment.
12194
12195 2013-01-25 Tom Tromey <tromey@redhat.com>
12196
12197 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12198 (cp_add_using_directive): Add 'copy_names' argument.
12199 * cp-support.h (cp_add_using_directive): Update.
12200 (struct using_direct) <import_src, import_dest, alias,
12201 declaration>: Now const.
12202 * dwarf2read.c (read_import_statement): Use obconcat.
12203 Don't copy names passed to cp_add_using_directive.
12204
12205 2013-01-25 Tom Tromey <tromey@redhat.com>
12206
12207 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12208
12209 2013-01-25 Pedro Alves <palves@redhat.com>
12210
12211 * remote.c (stop_reply_extract_thread): New.
12212 (add_current_inferior_and_thread): New parameter 'wait_status'.
12213 Handle it.
12214 (remote_start_remote): Pass wait status to
12215 add_current_inferior_and_thread.
12216 (extended_remote_run): Update comment.
12217 (extended_remote_create_inferior_1): Pass wait status to
12218 add_current_inferior_and_thread.
12219
12220 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12221 Ulrich Weigand <uweigand@de.ibm.com>
12222
12223 * valarith.c (value_vector_widen): New function for replicating a
12224 scalar into a vector.
12225 (value_binop): Use value_vector_widen to widen scalar to vector
12226 rather than casting, this better matches gcc C behaviour.
12227 * valops.c (value_casst): Update logic for casting between vector
12228 types, and for casting from scalar to vector, try to match gcc C
12229 behaviour.
12230 * value.h (value_vector_widen): Declare.
12231 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12232 function, handle special case for casting scalar to vector.
12233 (opencl_relop): Use opencl_value_cast.
12234 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12235 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12236 in order to use opencl_value_cast.
12237
12238 2013-01-25 Yao Qi <yao@codesourcery.com>
12239
12240 * event-loop.c: Include "queue.h".
12241 (gdb_event_p): New typedef.
12242 (DECLARE_QUEUE_P): Use.
12243 (DEFINE_QUEUE_P): Use.
12244 (async_queue_event): Remove.
12245 (gdb_event_xfree): New.
12246 (initialize_event_loop): New.
12247 (process_event): Use QUEUE macros.
12248 (event_queue): Remove.
12249 (gdb_wait_for_event): Caller update.
12250 (check_async_event_handlers): Likewise.
12251 (poll_timers): Likewise.
12252 * event-loop.h (initialize_event_loop): Declare.
12253 * event-loop.c (gdb_event_xfree): New.
12254 * top.c (gdb_init): Call initialize_event_loop.
12255
12256 2013-01-25 Yao Qi <yao@codesourcery.com>
12257
12258 * event-loop.c (async_queue_event): Remove one parameter
12259 'position'. Remove code handling 'position' == TAIL.
12260 (gdb_wait_for_event): Caller update.
12261 (check_async_event_handlers): Caller update.
12262 (poll_timers): Caller update.
12263 * event-loop.h (enum queue_position): Remove.
12264
12265 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12266
12267 * MAINTAINERS: Update my email.
12268
12269 2013-01-25 Yao Qi <yao@codesourcery.com>
12270
12271 * main.c (print_gdb_help): Remove "--epoch" from the help
12272 message.
12273
12274 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12275
12276 * symtab.c (skip_prologue_using_sal): Consider a file
12277 change the same as an increased line number
12278
12279 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12280
12281 * MAINTAINERS (Write After Approval): Add myself to the list.
12282
12283 2013-01-24 Tom Tromey <tromey@redhat.com>
12284
12285 * ada-lang.h (ada_decode_symbol): Make return type const.
12286 * ada-lang.c (ada_decode_symbol): Likewise.
12287
12288 2013-01-23 Doug Evans <dje@google.com>
12289
12290 * linespec.c (find_linespec_symbols): Make static.
12291
12292 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12293
12294 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12295 type on float conversion for complex type.
12296
12297 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12298
12299 Add a new class gdb.Architecture which exposes GDB's
12300 internal representation of architecture via GDB Python API.
12301 * Makefile.in: Add entries corresponding to the new file
12302 python/py-arch.c.
12303 * NEWS (Python Scripting): Add entries for the new class
12304 gdb.Architecture and the new method gdb.Frame.architecture.
12305 * python/py-arch.c: Implement gdb.Architecture class.
12306 * python/py-frame.c (frapy_arch): Implement the method
12307 gdb.Frame.architecture().
12308 (frame_object_methods): Add 'architecture' to the method table.
12309 * python/python-internal.h: Add declarations of new utility
12310 functions.
12311 * python/python.c (_initialize_python): Initialize
12312 gdb.Architecture class.
12313
12314 2013-01-23 Doug Evans <dje@google.com>
12315
12316 Work around binutils/15021.
12317 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12318 type_unit_group out of union s. All uses updated.
12319 (read_index_from_section): Watch for index version 8.
12320 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12321 an imported symtab.
12322 (write_psymtabs_to_index): Increment version number to 8.
12323
12324 2013-01-22 Pedro Alves <palves@redhat.com>
12325
12326 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12327 user-visible.
12328
12329 2013-01-22 Pedro Alves <palves@redhat.com>
12330
12331 * annotate.c (annotate_breakpoints_changed): Rename to ...
12332 (annotate_breakpoints_invalid): ... this. Make static.
12333 (breakpoint_changed): Adjust.
12334 (_initialize_annotate): Always install the observers. Install a
12335 "breakpoint_created" observer.
12336 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12337 * breakpoint.c (set_breakpoint_condition)
12338 (breakpoint_set_commands, do_map_commands_command)
12339 (init_raw_breakpoint, clear_command, set_ignore_count)
12340 (enable_breakpoint_disp): No longer call
12341 annotate_breakpoints_changed.
12342
12343 2013-01-22 Pedro Alves <palves@redhat.com>
12344
12345 * annotate.c: Include "inferior.h".
12346 (frames_invalid_emitted)
12347 (breakpoints_invalid_emitted): New globals.
12348 (async_background_execution_p): New function.
12349 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12350 emitting the annotation if it has already been emitted.
12351 (annotate_display_prompt): New function.
12352 * annotate.h (annotate_display_prompt): New declaration.
12353 * event-top.c: Include annotate.h.
12354 (display_gdb_prompt): Call annotate_display_prompt.
12355
12356 2013-01-22 Pedro Alves <palves@redhat.com>
12357
12358 * annotate.c (ignore_count_changed): Delete.
12359 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12360 (annotate_ignore_count_change): Delete.
12361 (annotate_stopped): Don't emit a delayed breakpoints-changed
12362 annotation.
12363 * annotate.h (annotate_ignore_count_change): Delete.
12364 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12365 annotate_ignore_count_change.
12366
12367 2013-01-22 Tom Tromey <tromey@redhat.com>
12368
12369 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12370 require_rvalue for a register location.
12371
12372 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12373
12374 * breakpoint.c (print_one_breakpoint_location): Add MI
12375 field 'thread-groups' when printing a breakpoint.
12376 (output_thread_groups): New function.
12377
12378 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12379
12380 * python/lib/gdb/commands/explore.py
12381 (CompoundExplorer.explore_expr): Correct the name of a method
12382 being invoked.
12383 (ExploreTypeCommand.invoke): Add a missing 'return'.
12384
12385 2013-01-21 Tom Tromey <tromey@redhat.com>
12386
12387 * gdb_obstack.h (obconcat): Move declaration here, from...
12388 * symfile.h (obconcat): ... here.
12389 * gdb_obstack.c: New file.
12390 (obconcat): Move from...
12391 * symfile.c (obconcat): ... here.
12392 * Makefile.in (SFILES): Add gdb_obstack.c.
12393 (COMMON_OBS): Add gdb_obstack.o.
12394
12395 2013-01-21 Tom Tromey <tromey@redhat.com>
12396
12397 * symfile.h (obsavestring): Don't declare.
12398 * symfile.c (obsavestring): Remove.
12399 * ada-exp.y: Use obstack_copy0, not obsavestring.
12400 * ada-lang.c: Use obstack_copy0, not obsavestring.
12401 * coffread.c: Use obstack_copy0, not obsavestring.
12402 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12403 * dbxread.c: Use obstack_copy0, not obsavestring.
12404 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12405 * jit.c: Use obstack_copy0, not obsavestring.
12406 * mdebugread.c: Use obstack_copy0, not obsavestring.
12407 * psymtab.c: Use obstack_copy0, not obsavestring.
12408 * stabsread.c: Use obstack_copy0, not obsavestring.
12409 * xcoffread.c: Use obstack_copy0, not obsavestring.
12410
12411 2013-01-21 Tom Tromey <tromey@redhat.com>
12412
12413 * dwarf2read.c (fixup_go_packaging): Save package name
12414 on objfile obstack.
12415 * gdbtypes.c (init_type): Don't copy name.
12416
12417 2013-01-21 Tom Tromey <tromey@redhat.com>
12418
12419 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12420 const.
12421 (struct attribute) <u.str>: Now const.
12422 (struct fnfieldlist) <name>: Now const.
12423 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12424 (partial_die_parent_scope): Make return type const.
12425 (partial_die_full_name, add_partial_symbol): Update.
12426 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12427 'name' const.
12428 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12429 (read_file_scope, read_func_scope, dwarf2_add_field)
12430 (dwarf2_add_member_fn, read_structure_type)
12431 (process_enumeration_scope, read_array_type, read_module_type)
12432 (read_base_type, read_subrange_type): Update.
12433 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12434 (new_symbol_full, guess_full_die_structure_name): Update.
12435 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12436 (dwarf2_name): Return const type.
12437 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12438 const.
12439
12440 2013-01-21 Tom Tromey <tromey@redhat.com>
12441
12442 * gdbtypes.c (init_type): Make 'name' const.
12443 * gdbtypes.h (init_type): Update.
12444
12445 2013-01-21 Tom Tromey <tromey@redhat.com>
12446
12447 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12448 (start_symtab): Make 'name' and 'dirname' const. Use
12449 set_last_source_file.
12450 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12451 (last_source_file): Define. Now static.
12452 (set_last_source_file, get_last_source_file): New functions.
12453 * buildsym.h (last_source_file): Don't declare.
12454 (start_symtab): Update.
12455 (set_last_source_file, get_last_source_file): Declare.
12456 * coffread.c (complete_symtab): Use set_last_source_file.
12457 (coff_end_symtab): Likewise.
12458 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12459 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12460 set_last_source_file.
12461 (process_one_symbol): Use get_last_source_file.
12462 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12463 (psymtab_to_symtab_1): Use get_last_source_file.
12464 * xcoffread.c (process_linenos): Use get_last_source_file.
12465 (complete_symtab): Use set_last_source_file.
12466 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12467 (scan_xcoff_symtab): Use set_last_source_file.
12468
12469 2013-01-21 Tom Tromey <tromey@redhat.com>
12470
12471 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12472 (symbol_set_names): Remove casts. Handle field const-ness.
12473
12474 2013-01-21 Tom Tromey <tromey@redhat.com>
12475
12476 * dwarf2read.c (new_symbol_full): Remove cast.
12477 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12478 * symtab.h (symbol_set_demangled_name): Update.
12479
12480 2013-01-21 Tom Tromey <tromey@redhat.com>
12481
12482 * main.c (captured_main): Call bfd_init.
12483
12484 2013-01-21 Tom Tromey <tromey@redhat.com>
12485
12486 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12487 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12488 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12489 * NEWS: Update.
12490
12491 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12492
12493 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12494
12495 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12496
12497 Fix gdb.fortran/common-block.exp crash in PIE mode.
12498 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12499 LOC_COMMON_BLOCK.
12500 * f-valprint.c (info_common_command_for_block): Expect
12501 LOC_COMMON_BLOCK in gdb_assert.
12502 * symtab.h (struct general_symbol_info): Update comment for the
12503 common_block member.
12504 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12505 (enum address_class): New member LOC_COMMON_BLOCK.
12506
12507 2013-01-18 David Blaikie <dblaikie@gmail.com>
12508
12509 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12510
12511 2013-01-18 Tom Tromey <tromey@redhat.com>
12512
12513 PR c++/14999:
12514 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12515 Call require_rvalue.
12516
12517 2013-01-18 Yao Qi <yao@codesourcery.com>
12518
12519 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12520 (dbx_read_symtab): New declaration.
12521 (dbx_psymtab_to_symtab): Delete.
12522 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12523 Rename parameter PST to SELF. Exchanged two parameters.
12524 (start_psymtab): Caller update.
12525 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12526 (dwarf2_read_symtab): New declaration.
12527 (dwarf2_psymtab_to_symtab): Delete.
12528 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12529 Rename parameter PST to SELF. Exchanged two parameters.
12530 (create_partial_symtab): Caller update.
12531 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12532 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12533 Rename parameter PST to SELF. Exchanged two parameters.
12534 (parse_partial_symbols, new_psymtab): Caller update.
12535 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12536 two parameters.
12537 * psymtab.c (psymtab_to_symtab): Caller update.
12538 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12539 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12540 Rename parameter PST to SELF. Exchanged two parameters.
12541 (xcoff_start_psymtab): Caller update.
12542
12543 2013-01-18 Yao Qi <yao@codesourcery.com>
12544
12545 * infrun.c (proceed): Rename local variable 'oneproc' to
12546 'force_step'.
12547
12548 2013-01-17 Doug Evans <dje@google.com>
12549
12550 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12551 (dw2_build_type_unit_groups): Delete. All uses updated.
12552
12553 * symtab.h (struct symbol_search): Add comment.
12554
12555 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12556
12557 * symtab.c (compare_filenames_for_search): New comment for
12558 HAS_DRIVE_SPEC.
12559
12560 2013-01-17 Tom Tromey <tromey@redhat.com>
12561
12562 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12563
12564 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12565
12566 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12567 initialize it by existing make_cleanup. Call new do_cleanups.
12568
12569 2013-01-17 Tom Tromey <tromey@redhat.com>
12570
12571 * cp-abi.c (cp_abi_completer): New function.
12572 (_initialize_cp_abi): Set completer for "set cp-abi".
12573
12574 2013-01-17 Tom Tromey <tromey@redhat.com>
12575
12576 * mem-break.c: Remove obsolete comment.
12577 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12578
12579 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12580
12581 * jit.c (jit_reader_load_command): Interpret the jit reader name
12582 as an absolute path if it begins with a forward slash.
12583
12584 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12585
12586 PR gdb/14550
12587
12588 * jit.c (finalize_symtab): Ensure that only the global block has a
12589 NULL superblock.
12590
12591 2013-01-17 Pedro Alves <palves@redhat.com>
12592
12593 * acinclude.m4: Include ../config/plugins.m4,
12594 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12595 * Makefile.in (aclocal_m4_deps): Update.
12596 * aclocal.m4: Renegerate.
12597
12598 2013-01-16 Doug Evans <dje@google.com>
12599
12600 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12601
12602 2013-01-16 Pedro Alves <palves@redhat.com>
12603 Tom Tromey <tromey@redhat.com>
12604
12605 PR cli/7221:
12606 * NEWS: Add "catch signal".
12607 * breakpoint.c (base_breakpoint_ops): No longer static.
12608 (bpstat_explains_signal): New function.
12609 (init_catchpoint): No longer static.
12610 (base_breakpoint_explains_signal): New function.
12611 (base_breakpoint_ops): Initialize new field.
12612 * breakpoint.h (enum bpstat_signal_value): New.
12613 (struct breakpoint_ops) <explains_signal>: New field.
12614 (bpstat_explains_signal): Remove macro, declare as function.
12615 (base_breakpoint_ops, init_catchpoint): Declare.
12616 * break-catch-sig.c: New file.
12617 * inferior.h (signal_catch_update): Declare.
12618 * infrun.c (signal_catch): New global.
12619 (handle_syscall_event): Update for change to
12620 bpstat_explains_signal.
12621 (handle_inferior_event): Likewise. Always handle random signals
12622 via bpstats.
12623 (signal_cache_update): Check signal_catch.
12624 (signal_catch_update): New function.
12625 (_initialize_infrun): Initialize signal_catch.
12626 * Makefile.in (SFILES): Add break-catch-sig.c.
12627 (COMMON_OBS): Add break-catch-sig.o.
12628
12629 2013-01-16 Tom Tromey <tromey@redhat.com>
12630
12631 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12632 (print_one_catch_solib, print_one_catch_syscall)
12633 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12634 "catch-type".
12635
12636 2013-01-16 Yao Qi <yao@codesourcery.com>
12637
12638 * printcmd.c (current_display_number): Make it static.
12639
12640 2013-01-16 Yao Qi <yao@codesourcery.com>
12641
12642 * infcmd.c (step_once): Don't check '!single_inst' as it was
12643 checked before.
12644
12645 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12646
12647 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12648
12649 2013-01-14 Tom Tromey <tromey@redhat.com>
12650
12651 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12652 set command.
12653 * command.h (add_setshow_string_noescape_cmd): Update.
12654 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12655 (complete_set_gnutarget): New function.
12656 (_initialize_core): Set the "set gnutarget" completer.
12657
12658 2013-01-14 Tom Tromey <tromey@redhat.com>
12659
12660 PR symtab/14442:
12661 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12662 (c_type_print_modifier): Likewise.
12663 * dwarf2read.c (read_tag_restrict_type): New function.
12664 (read_type_die_1): Handle DW_TAG_restrict_type.
12665 * gdbtypes.c (make_restrict_type): New function.
12666 (recursive_dump_type): Handle TYPE_RESTRICT.
12667 * gdbtypes.h (enum type_flag_values): Renumber.
12668 (enum type_instance_flag_value): Add
12669 TYPE_INSTANCE_FLAG_RESTRICT.
12670 (TYPE_RESTRICT): New macro.
12671 (make_restrict_type): Declare.
12672
12673 2013-01-14 Tom Tromey <tromey@redhat.com>
12674
12675 PR symtab/14931:
12676 * psymtab.c (struct psymtab_state): New.
12677 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12678 functions.
12679 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12680 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12681
12682 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12683 Pedro Alves <palves@redhat.com>
12684
12685 PR remote/14786
12686
12687 * remote.c (remote_threads_info): Make a copy of the reply from
12688 qfThreadInfo and use that instead of rs->buf.
12689
12690 2013-01-14 Yao Qi <yao@codesourcery.com>
12691
12692 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12693 (dbx_psymtab_to_symtab): Likewise.
12694 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12695 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12696 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12697
12698 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12699
12700 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12701 make_cleanup_restore_current_language. Call set_language. Move
12702 OLD_CHAIN and INNER_CHAIN cleanups.
12703 * utils.c (do_restore_current_language)
12704 (make_cleanup_restore_current_language): New functions.
12705 * utils.h (make_cleanup_restore_current_language): New declaration.
12706
12707 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12708
12709 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12710 non-existing files.
12711
12712 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12713 non-existing files if FILENAME is already absolute.
12714
12715 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12716
12717 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12718 fputs_filtered. Append trailing newline.
12719
12720 2013-01-11 Yao Qi <yao@codesourcery.com>
12721 Stan Shebs <stan@codesourcery.com>
12722
12723 * psymtab.c (init_psymbol_list): Clarify the comment.
12724
12725 2013-01-11 Yao Qi <yao@codesourcery.com>
12726
12727 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12728 (update_dprintf_command_list): Assert that 'printf_line' is
12729 non-null. Remove condition check.
12730
12731 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12732
12733 Code cleanup.
12734 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12735 type const char *.
12736 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12737 const char *.
12738 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12739
12740 2013-01-09 Anthony Green <green@moxielogic.com>
12741
12742 * cp-abi.c (cplus_print_vtable): Don't return value from void
12743 function.
12744 * ada-lang.c (re_set_catch_assert): Ditto.
12745
12746 2013-01-09 Doug Evans <dje@google.com>
12747
12748 * symfile.h (quick_symbol_functions): Delete member
12749 pre_expand_symtabs_matching. All uses removed.
12750 * dwarf2read.c (dw2_lookup_symbol): Implement.
12751 (dw2_do_expand_symtabs_matching): Delete.
12752 (dw2_pre_expand_symtabs_matching): Delete.
12753 (struct dw2_symtab_iterator): New type.
12754 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12755 (dw2_expand_symtabs_for_function): Rewrite.
12756 (dwarf2_gdb_index_functions): Update.
12757 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12758 (psym_functions): Update.
12759
12760 2013-01-09 Tom Tromey <tromey@redhat.com>
12761
12762 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12763 * configure: Rebuild.
12764 * configure.ac: Add somread.o to the build if BFD has SOM
12765 support.
12766 * somread.c: Include som/aout.h, not syms.h.
12767 (som_symtab_read): Use som_external_symbol_dictionary_record.
12768 Unpack records manually.
12769 (_initialize_somread): Declare.
12770
12771 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12772
12773 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12774 Cast return_address to 64bits.
12775
12776 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12777
12778 * printcmd.c: Remove define of function output_command.
12779 * tracepoint.c: Remove extern of function output_command.
12780 * valprint.h: (output_command): New extern.
12781
12782 2013-01-07 Tom Tromey <tromey@redhat.com>
12783
12784 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12785 Remove.
12786 (objc_language_defn): Use c_printchar, c_printstr,
12787 c_emit_char.
12788
12789 2013-01-07 Tom Tromey <tromey@redhat.com>
12790
12791 PR cli/7719:
12792 * NEWS: Update.
12793 * ada-valprint.c (printstr, print_field_values): Remove
12794 "inspect_it" code.
12795 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12796 code.
12797 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12798 code.
12799 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12800 * main.c (captured_main): Remove "epoch" argument.
12801 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12802 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12803 * p-valprint.c (pascal_object_print_value_fields): Remove
12804 "inspect_it" code.
12805 * printcmd.c (print_command_1): Remove 'inspect' argument.
12806 (print_command, call_command): Update.
12807 (inspect_command): Remove.
12808 (_initialize_printcmd): Make "inspect" an alias for "print".
12809 * top.c (epoch_interface): Remove.
12810 * top.h (epoch_interface): Remove.
12811 * valprint.c (user_print_options): Update.
12812 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12813 * valprint.h (struct value_print_options) <inspect_it>: Remove
12814 field.
12815
12816 2013-01-04 Tom Tromey <tromey@redhat.com>
12817
12818 * valprint.h (read_string): Add 'extern'.
12819
12820 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12821
12822 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12823 used to decide whether to define darwin_read_dyld_info or not.
12824
12825 2013-01-03 Pierre Muller <muller@sourceware.org>
12826
12827 * main.c (relocate_gdb_directory): Avoid calling stat function
12828 if DIR is empty.
12829
12830 2013-01-03 Yao Qi <yao@codesourcery.com>
12831
12832 * psymtab.c (fixup_psymbol_section): Update declaration.
12833 (fixup_psymbol_section): Remove code returning value.
12834
12835 2013-01-03 Yao Qi <yao@codesourcery.com>
12836
12837 * symtab.h: Remove some out of date comments.
12838 (enum exception_event_kind): Move it ...
12839 * breakpoint.c: ... here.
12840
12841 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12842
12843 PR gdb/14405
12844 * darwin-nat.c (darwin_read_dyld_info): Only build if
12845 TASK_DYLD_INFO_COUNT is defined.
12846 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12847 TASK_DYLD_INFO_COUNT is defined.
12848
12849 2013-01-02 Tom Tromey <tromey@redhat.com>
12850
12851 * symfile.h (struct ecoff_debug_hack): Remove.
12852 * objfiles.c: Don't include mdebugread.h.
12853
12854 2013-01-02 Tom Tromey <tromey@redhat.com>
12855
12856 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12857 * configure.ac: Check for Mach-O support in BFD. Update
12858 CONFIG_OBS.
12859 * configure: Rebuild.
12860
12861 2013-01-02 Tom Tromey <tromey@redhat.com>
12862
12863 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12864 * configure.ac: Use GDB_AC_CHECK_BFD.
12865 * configure: Rebuild.
12866
12867 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12868
12869 * MAINTAINERS: Update my email.
12870
12871 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12872
12873 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12874
12875 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12876
12877 * rs6000-nat.c (bss_data_overlap): New function.
12878 (vmap_symtab): Use it to adjust the .bss section's offset.
12879
12880 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12881
12882 Update year range in copyright notice of all files.
12883
12884 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12885
12886 * top.c (print_gdb_version): Update copyright year.
12887
12888 For older changes see ChangeLog-2012.
12889 \f
12890 Local Variables:
12891 mode: change-log
12892 left-margin: 8
12893 fill-column: 74
12894 version-control: never
12895 coding: utf-8
12896 End:
This page took 0.275092 seconds and 5 git commands to generate.