Documentation for MPX.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
2
3 * NEWS: Add section for Intel(R) Architecture Instructions
4 Extesions mentioning MPX.
5
6 2013-12-03 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
9
10 2013-12-03 Joel Brobecker <brobecker@adacore.com>
11
12 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
13 when parse_exp_1 threw an error. Add comment.
14
15 2013-12-03 Joel Brobecker <brobecker@adacore.com>
16
17 * NEWS: Mention "-list-features" in the entry documenting
18 the support for the "--language" option.
19
20 2013-12-03 Tom Tromey <tromey@redhat.com>
21 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Doug Evans <dje@google.com>
23 Samuel Bronson <naesten@gmail.com>
24
25 Bring back gdb-add-index as a contrib script.
26 * contrib/gdb-add-index.sh: New file.
27 * NEWS: Note the addition.
28
29 2013-12-03 Samuel Bronson <naesten@gmail.com>
30
31 * MAINTAINERS (Write After Approval): Add myself to the list.
32
33 2013-12-03 Joel Brobecker <brobecker@adacore.com>
34
35 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
36
37 2013-12-03 Joel Brobecker <brobecker@adacore.com>
38
39 * mi/mi-main.c: Remove trailing spaces throughout.
40
41 2013-12-03 Pedro Alves <palves@redhat.com>
42 Joel Brobecker <brobecker@adacore.com>
43
44 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
45 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
46 of a regular error when the GDB/MI command does not exist.
47 * mi/mi-main.c (mi_cmd_list_features): Add
48 "undefined-command-error-code".
49 (mi_print_exception): Print an "undefined-command"
50 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
51 * NEWS: Add entry documenting the new "code" variable in
52 "^error" result records.
53
54 2013-12-03 Joel Brobecker <brobecker@adacore.com>
55
56 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
57 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
58 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
59 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
60 field to output of "-list-features".
61
62 * NEWS: Add entry for new -info-gdb-mi-command.
63
64 2013-12-02 Doug Evans <dje@google.com>
65 Jan Kratochvil <jan.kratochvil@redhat.com>
66
67 * objfiles.c (allocate_objfile): Save original_name as an absolute
68 path.
69 * objfiles.h (struct objfile): Expand comment on original_name.
70 * source.c (openp): Call gdb_abspath.
71 * utils.c (gdb_abspath): New function.
72 * utils.h (gdb_abspath): Declare.
73
74 2013-12-02 Pedro Alves <palves@redhat.com>
75
76 * dcache.c (dcache_read_line): Use target_read_raw_memory.
77 * target.c (target_read_raw_memory): New function.
78 (target_read_stack, target_write_memory, target_write_raw_memory):
79 Update comment.
80 (target_read_code): Add comment.
81 * target.h (target_read_raw_memory): Declare.
82
83 2013-12-02 Pedro Alves <palves@redhat.com>
84
85 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
86 unconditionally.
87
88 2013-12-02 Pedro Alves <pedro@codesourcery.com>
89 Maciej W. Rozycki <macro@codesourcery.com>
90
91 * remote.c (putpkt_for_catch_errors): Remove function.
92 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
93 gracefully.
94
95 2013-12-02 Pedro Alves <palves@redhat.com>
96
97 PR remote/15974
98 * remote-notif.c (handle_notification): Return early if no
99 notification is found.
100
101 2013-12-02 Joel Brobecker <brobecker@adacore.com>
102
103 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
104 preprocessor check.
105
106 2013-12-02 Joel Brobecker <brobecker@adacore.com>
107
108 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
109
110 2013-12-02 Joel Brobecker <brobecker@adacore.com>
111
112 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
113 * ctf.c (ctf_start): Remove obsolete comment.
114
115 2013-12-02 Joel Brobecker <brobecker@adacore.com>
116
117 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
118
119 2013-11-30 Doug Evans <xdje42@gmail.com>
120
121 * auto-load.h (script_language): New members name, auto_load_enabled.
122 Add missing comments on struct members.
123 (auto_load_objfile_script): Delete.
124 * auto-load.c: #include "cli/cli-cmds.h".
125 (auto_load_gdb_scripts_enabled): New function.
126 (script_language_gdb): Update, add new members.
127 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
128 and call to maybe_add_script moved to caller.
129 (auto_load_objfile_script_1): Auto-load safe-checking and
130 call to maybe_add_script moved here.
131 (auto_load_objfile_script): Make static. Early exit if support for
132 scripting language hasn't been compiled in, or auto-loading has been
133 disabled.
134 (source_section_scripts): Argument "source_name" renamed to
135 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
136 with section_name. Skip loading script if support for scripting
137 language hasn't been compiled in, or auto-loading has been disabled.
138 Call language->source_script_for_objfile instead of calling
139 source_python_script_for_objfile directly.
140 (load_auto_scripts_for_objfile): Update.
141 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
142 (gdbpy_load_auto_script_for_objfile): Delete.
143 (auto_load_python_scripts_enabled): New function.
144 (script_language_python): Update, add new members.
145 (gdbpy_script_language_defn): New function.
146 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
147 (gdbpy_script_language_defn): Declare.
148
149 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
150 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
151 (source_section_scripts): Moved here from py-auto-load.c.
152 (auto_load_section_scripts): Ditto.
153 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
154 auto-load.c, renamed AUTO_SECTION_NAME.
155 (source_section_scripts, auto_load_section_scripts): Moved to
156 auto-load.c.
157
158 2013-11-30 Yao Qi <yao@codesourcery.com>
159
160 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
161
162 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
163
164 * gdbarch.sh: Remove include of "gdb_string.h", replace by
165 <string.h>.
166
167 2013-11-29 Doug Evans <xdje42@gmail.com>
168
169 * python/py-auto-load.c (source_section_scripts): Move comment to
170 more relevant location.
171
172 Whitespace cleanup.
173 * python/py-breakpoint.c: Remove trailing whitespace.
174 * python/py-cmd.c: Ditto.
175 * python/py-evts.c: Ditto.
176 * python/py-finishbreakpoint.c: Ditto.
177 * python/py-frame.c: Ditto.
178 * python/py-function.c: Ditto.
179 * python/py-inferior.c: Ditto.
180 * python/py-infthread.c: Ditto.
181 * python/py-param.c: Ditto.
182 * python/py-prettyprint.c: Ditto.
183 * python/py-symbol.c: Ditto.
184 * python/py-type.c: Ditto.
185 * python/py-utils.c: Ditto.
186 * python/py-value.c: Ditto.
187 * python/python-internal.h: Ditto.
188 * python/python.c: Ditto.
189
190 2013-11-29 Pedro Alves <palves@redhat.com>
191
192 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
193
194 2013-11-29 Pedro Alves <palves@redhat.com>
195
196 * breakpoint.c (build_target_condition_list): Release previous
197 conditions.
198 (build_target_command_list): Release previous commands.
199 (bp_location_dtor): Release target conditions and commands.
200 * remote.c (remote_add_target_side_condition): Don't release
201 conditions.
202 (remote_add_target_side_commands): Don't release commands.
203
204 2013-11-29 Yao Qi <yao@codesourcery.com>
205 Pedro Alves <palves@redhat.com>
206
207 * dcache.c (dcache_read_line): Use current_target.beneath
208 instead of &current_target.
209 * target.c (memory_xfer_partial_1): Factor code out to ...
210 (raw_memory_xfer_partial): ... it. New function.
211 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
212 is TARGET_OBJECT_RAW_MEMORY.
213
214 2013-11-28 Doug Evans <xdje42@gmail.com>
215
216 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
217 breakpoint_object. All uses updated.
218 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
219 breakpoint_object. All uses updated.
220 * python.c (*): All uses of breakpoint_object updated.
221 * python.h (*): All uses of breakpoint_object updated.
222 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
223 * python/py-finishbreakpoint.c (*): Ditto.
224
225 2013-11-28 Doug Evans <xdje42@gmail.com>
226
227 * configure.ac: Add comments delineating libpython and libmcheck.
228 * configure: Regenerate.
229
230 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
231 Pedro Alves <palves@redhat.com>
232
233 * valprint.c (value_check_printable): If the value is entirely
234 unavailable, print a single "<unavailable>" instead of printing
235 all subfields.
236
237 2013-11-28 Pedro Alves <palves@redhat.com>
238
239 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
240 Add "set debug frame" output.
241 (frame_stop_reason_symbol_string): New function.
242
243 2013-11-28 Pedro Alves <palves@redhat.com>
244
245 * frame-unwind.c (default_frame_unwind_stop_reason): Return
246 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
247 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
248
249 2013-11-28 Pedro Alves <palves@redhat.com>
250
251 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
252 set the unwind stop reason to UNWIND_OUTERMOST, not
253 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
254
255 2013-11-28 Pedro Alves <palves@redhat.com>
256
257 * frame.c (frame_unwind_register): Say the register was "not
258 saved" instead of "optimized out".
259
260 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
261
262 PR 16152
263 * configure: Rebuild.
264 * configure.ac: Tighten cygwin detection check.
265
266 2013-11-27 Pedro Alves <palves@redhat.com>
267
268 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
269 register in the previous frame's arch.
270
271 2013-11-27 Pedro Alves <palves@redhat.com>
272
273 * frame-unwind.c (frame_unwind_got_optimized): Return
274 an lval_register value instead of a not_lval value.
275
276 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
277
278 * frame.c: Include "valprint.h".
279 (frame_unwind_register_value): Use value_optimized_out.
280 * value.c (value_fetch_lazy): Likewise.
281
282 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
283
284 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
285
286 2013-11-26 Tom Tromey <tromey@redhat.com>
287
288 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
289 2013-11-22.
290
291 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
292
293 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
294 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
295 (HAS_MPX): New macro.
296 (HAS_AVX): New macro.
297 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
298
299 2013-11-25 Keith Seitz <keiths@redhat.com>
300
301 PR c++/14819
302 * c-exp.y (classify_inner_name): If no matching symbol was
303 found, try looking up the token as a base class.
304 Likewise if a constructor was found.
305 * cp-namespace.c (find_type_baseclass_by_name): New function.
306 * cp-support.h (find_type_baseclass_by_name): Declare.
307 * valops.c (value_struct_elt_for_reference): If we get
308 a non-static field, try to get a value based on the
309 current instance, if any.
310
311 2013-11-24 Yao Qi <yao@codesourcery.com>
312
313 * disasm.c (dis_asm_read_memory): Call target_read_code
314 instead of target_read_memory.
315
316 2013-11-24 Yao Qi <yao@codesourcery.com>
317
318 * NEWS: Add note on new "set code-cache" option.
319 * target-dcache.c (code_cache_enabled_1): New variable.
320 (code_cache_enabled): New variable.
321 (show_code_cache, set_code_cache): New function.
322 (code_cache_enabled_p): New function.
323 (_initialize_target_dcache): Register command.
324 * target-dcache.h (code_cache_enabled_p): Declare.
325 * target.c (memory_xfer_partial_1):Handle
326 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
327 (target_read_code): New function.
328 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
329 New.
330 (target_read_code): Declare.
331
332 2013-11-24 Yao Qi <yao@codesourcery.com>
333
334 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
335 (stack_cache_enabled_1): ... this. New variable.
336 (stack_cache_enabled_p): Rename to ...
337 (stack_cache_enabled): ... this. New variable.
338 (set_stack_cache_enabled_p): Rename to ...
339 (set_stack_cache): ... this. Update caller.
340 (show_stack_cache_enabled_p): Rename to ...
341 (show_stack_cache): ... this. Update caller.
342 (stack_cache_enabled): Rename to ...
343 (stack_cache_enabled_p): ... this. Update caller.
344 (_initialize_target_dcache): Replace "data cache" with
345 "target memory cache".
346 * target-dcache.h (stack_cache_enabled): Remove declaration.
347 (stack_cache_enabled_p): Add declaration.
348
349 2013-11-23 Doug Evans <xdje42@gmail.com>
350
351 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
352 superfluous.
353
354 2013-11-23 Doug Evans <xdje42@gmail.com>
355
356 * python/py-frame.c (frapy_block): Fix error message text.
357
358 2013-11-23 Doug Evans <xdje42@gmail.com>
359
360 * cli/cli-script.c (multi_line_command_p): New function.
361 (recurse_read_control_structure, read_command_lines_1): Call it.
362 (execute_control_command): Consistently have a blank line between
363 each case.
364
365 2013-11-22 Sterling Augustine <saugustine@google.com>
366
367 PR gdb/16196:
368 * valprint.c (read_string): Set new variable fetchlen based on
369 fetchlimit and size. Use it in call to partial_memory_read.
370 Update comment.
371
372 2013-11-22 Tom Tromey <tromey@redhat.com>
373
374 PR backtrace/16155:
375 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
376 the return address column is unspecified.
377
378 2013-11-22 Tom Tromey <tromey@redhat.com>
379 Pedro Alves <palves@redhat.com>
380
381 PR backtrace/16155
382 * value.c (value_fetch_lazy): Internal error if
383 get_frame_register_value returns the same register.
384
385 2013-11-22 Pedro Alves <palves@redhat.com>
386 Tom Tromey <tromey@redhat.com>
387
388 * frame.c (frame_stash_add): Now returns whether a frame with the
389 same ID was already known.
390 (compute_frame_id): New function, factored out from get_frame_id.
391 (get_frame_id): No longer lazilly compute the frame id here.
392 (get_prev_frame_if_no_cycle): New function. Detects wider stack
393 cycles.
394 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
395 and checking for stack cycles here.
396
397 2013-11-22 Pedro Alves <palves@redhat.com>
398
399 PR 16155
400 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
401 this frame and the new previous frame, not between this frame and
402 the next frame.
403
404 2013-11-22 Pedro Alves <palves@redhat.com>
405
406 PR 16155
407 * dwarf2-frame.c (struct dwarf2_frame_cache)
408 <checked_tailcall_bottom, entry_cfa_sp_offset,
409 entry_cfa_sp_offset_p>: New fields.
410 (dwarf2_frame_cache): Adjust to use the new cache fields instead
411 of locals. Don't call dwarf2_tailcall_sniffer_first here.
412 (dwarf2_frame_prev_register): Call it here, but only once.
413
414 2013-11-21 Doug Evans <xdje42@gmail.com>
415
416 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
417 (type_equality_entry): Move here from python/py-type.c.
418 (type_equality_entry_d): Ditto.
419 (compare_maybe_null_strings, check_types_equal): Ditto.
420 (check_types_worklist, types_deeply_equal): Ditto.
421 * gdbtypes.h (types_deeply_equal): Declare.
422 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
423 (typy_richcompare): Update.
424
425 2013-11-20 Joel Brobecker <brobecker@adacore.com>
426
427 * python/py-value.c (is_intlike): Delete.
428 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
429 by use of is_integral_type.
430 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
431 by use of is_integral_type and check for TYPE_CODE_PTR.
432
433 2013-11-20 Tom Tromey <tromey@redhat.com>
434
435 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
436 strerror module.
437 * gnulib/aclocal.m4: Update.
438 * gnulib/config.in: Update.
439 * gnulib/configure: Update.
440 * gnulib/import/Makefile.am: Update.
441 * gnulib/import/Makefile.in: Update.
442 * gnulib/import/errno.in.h: Remove.
443 * gnulib/import/intprops.h: Remove.
444 * gnulib/import/m4/errno_h.m4: Remove.
445 * gnulib/import/m4/gnulib-cache.m4: Update.
446 * gnulib/import/m4/gnulib-comp.m4: Update.
447 * gnulib/import/m4/strerror.m4: Remove.
448 * gnulib/import/m4/sys_socket_h.m4: Remove.
449 * gnulib/import/strerror-override.c: Remove.
450 * gnulib/import/strerror-override.h: Remove.
451 * gnulib/import/strerror.c: Remove.
452 * gnulib/update-gnulib.sh: Update.
453
454 2013-11-20 Yao Qi <yao@codesourcery.com>
455
456 * target-dcache.c (target_dcache_get_or_init): Call
457 set_address_space_data if 'dcache' is NULL.
458
459 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
460
461 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
462
463 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
464
465 * python/lib/gdb/command/bound_register.py: New file.
466 * data-directory/Makefile.in: Copy bond_register.py to the right path
467 to be initialized at gdb startup.
468
469 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
470
471 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
472 Add MPX registers.
473 (amd64_linux_read_description): Add initialization for MPX and
474 AVX independently.
475 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
476 (amd64_linux_gregset_reg_offset): Add MPX registers.
477 (amd64_linux_core_read_description): Add initialization for MPX
478 registers.
479 (_initialize_amd64_linux_tdep): Initialize MPX targets.
480 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
481 register on the list.
482 (tdesc_amd64_mpx_linux) Add new target for MPX.
483 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
484 (amd64_mpx_names): MPX register names.
485 (amd64_init_abi): Add MPX register while initializing the ABI.
486 (_initialize_amd64_tdep): Initialize MPX targets.
487 * amd64-tdep.h (amd64_regnum): Add MPX registers.
488 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
489
490 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
491
492 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
493 registers on the range of registers to be read from
494 xsave buffer.
495 (i386_linux_read_description): Add case for MPX.
496 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
497 (i386_linux_gregset_reg_offset): Add MPX registers.
498 (i386_linux_core_read_description): Initialize also MPX.
499 (_initialize_i386_linux_tdep): Add mpx initialization.
500 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
501 mpx_register_names.
502 (i386_regnum): Add MPX registers.
503 (I386_MPX_NUM_REGS): New macro.
504 (i386_bnd_regnum_p): New function.
505 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
506 number of registers to be the number of BNDSTATUS.
507 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
508 * i386-tdep.c: Include features/i386/i386-mpx.c.
509 (i386_mpx_names): Add MPX register names array.
510 (i386_bnd_names): Add bnd pseudo register names array.
511 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
512 registers.
513 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
514 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
515 registers.
516 (i386_bnd_type): New function.
517 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
518 register types.
519 (i386_pseudo_register_read_into_value): Add bnd case.
520 (i386_pseudo_register_write): Add bnd pseudo registers.
521 (i386_register_reggroup_p): Add MPX register to the group all.
522 (i386_validate_tdesc_p): Add MPX to the target description
523 validation.
524 (i386_pseudo_register_name): Add bnd pseudo registers.
525 (i386_gdbarch_init): Add MPX for architecture initialization.
526 (_initia_initialize_i386_tdep): Add mpx initialization.
527 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
528 XSAVE buffer.
529 (XSAVE_MPX_ADDR): New macro.
530 (i387_supply_xsave): Add MPX case.
531 (i387_collect_xsave): Add MPX case.
532 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
533 (I387_BNDCFGU_REGNUM): New macro.
534 (I387_NUM_MPX_REGS): New macro.
535 (I387_NUM_BND_REGS): New macro.
536 (I387_NUM_MPX_CTRL_REGS): New macro.
537 (I387_MPXEND_REGNUM): New macro.
538 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
539 (I386_XSTATE_BNDCFG): Likewise.
540 (I386_XSTATE_MPX_MASK): Likewise.
541 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
542 (I386_XSTATE_BNDREGS_SIZE): New macro.
543 (I386_XSTATE_BNDCFG_SIZE): Likewise.
544 (I386_XSTATE_SIZE): Adapt for MPX.
545 (I386_XSTATE_MAX_SIZE): Likewise.
546
547 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
548
549 * features/i386/Makefile: Adapts for using MPX registers.
550 * features/i386/32bit-mpx.xml: New file.
551 * features/i386/64bit-mpx.xml: Likewise.
552 * features/i386/amd64-mpx-linux.c: Likewise.
553 * features/i386/amd64-mpx-linux.xml: Likewise.
554 * features/i386/amd64-mpx.c: Likewise.
555 * features/i386/amd64-mpx.xml: Likewise.
556 * features/i386/i386-mpx-linux.c: Likewise.
557 * features/i386/i386-mpx-linux.xml: Likewise.
558 * features/i386/i386-mpx.c: Likewise.
559 * features/i386/i386-mpx.xml: Likewise.
560 * regformats/i386/amd64-mpx-linux.dat: New file.
561 * regformats/i386/amd64-mpx.dat: Likewise.
562 * regformats/i386/i386-mpx-linux.dat: Likewise.
563 * regformats/i386/i386-mpx.dat: Likewise.
564
565 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
566
567 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
568 Modified logic of creating a bitfield to be in sync with
569 tdesc_gdb_type.
570
571 2013-11-20 Will Newton <will.newton@linaro.org>
572
573 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
574 error message.
575
576 2013-11-20 Yao Qi <yao@codesourcery.com>
577
578 * progspace.h (struct address_space_data): Declare.
579 * target-dcache.c: Include "progspace.h".
580 (target_dache): Remove.
581 (target_dcache_aspace_key): New.
582 (target_dcache_cleanup): New function.
583 (target_dcache_init_p): Get data through
584 target_dcache_aspace_key.
585 (target_dcache_invalidate): Likewise.
586 (target_dcache_get): Likewise.
587 (target_dcache_get_or_init): Likewise.
588 (_initialize_target_dcache): Initialize
589 target_dcache_aspace_key.
590
591 2013-11-20 Yao Qi <yao@codesourcery.com>
592
593 * progspace.c (struct address_space): Update comments.
594 <REGISTRY_FIELDS>: New fields.
595 DEFINE_REGISTRY for address_space.
596 (new_address_space): Call address_space_alloc_data.
597 (free_address_space): Call address_space_free_data.
598 * progspace.h: Use DECLARE_REGISTRY.
599
600 2013-11-20 Yao Qi <yao@codesourcery.com>
601
602 * Makefile.in (SFILES):Add target-dcache.c.
603 (HFILES_NO_SRCDIR): Add target-dcache.h.
604 (COMMON_OBS): Add target-dcache.o.
605 * dcache.c: Remove inclusion to "target.h". Include
606 "target-dcache.h".
607 * memattr.c: Include "target-dcache.h".
608 * top.c: Likewise.
609 * tracepoint.c: Likewise.
610 * target.c: (stack_cache_enabled_p_1): Move to
611 target-dcache.c.
612 (stack_cache_enabled_p): Likewise.
613 (set_stack_cache_enabled_p): Likewise.
614 (show_stack_cache_enabled_p): Likewise.
615 (target_dcache, target_dcache_init_p): Likewise.
616 (target_dcache_invalidate): Likewise.
617 (target_dcache_get, target_dcache_get_or_init): Likewise.
618 (memory_xfer_partial_1): Call function stack_cache_enabled.
619 (initialize_target): Move code to target-dcache.c.
620 * target.h (target_dcache_invalidate): Move to
621 target-dcache.h.
622 (target_dcache_get): Likewise.
623 * target-dcache.c: New.
624 * target-dcache.h: New.
625
626 2013-11-20 Yao Qi <yao@codesourcery.com>
627
628 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
629 it is initialized.
630
631 2013-11-20 Yao Qi <yao@codesourcery.com>
632
633 * dcache.c (last_cache): Remove.
634 (dcache_free, dcache_init): Update.
635 (dcache_update):
636 (dcache_print_line): Add parameter 'dcache'. Replace
637 'target_dcache' with 'dcache'.
638 (dcache_info): Move code to dcache_info_1. Call
639 'dcache_info_1'.
640 (dcache_info_1): New function.
641 (set_dcache_size): Call target_dcache_invalidate.
642 (set_dcache_line_size): Call target_dcache_invalidate.
643 * target.c (target_dcache_init_p): New function.
644 (target_dcache_invalidate): Check target_dcache_init_p first.
645 (target_dcache_get, target_dcache_get_or_init): New function.
646 (memory_xfer_partial_1): Adjust.
647 (initialize_target): Don't initialize 'target_dcache'.
648 * target.h (struct dcache_struct): Declare.
649 (target_dcache_get): Declare.
650
651 2013-11-19 Yao Qi <yao@codesourcery.com>
652
653 * varobj.c (varobj_get_type): Fix typo.
654
655 2013-11-19 Joel Brobecker <brobecker@adacore.com>
656
657 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
658
659 2013-11-19 Joel Brobecker <brobecker@adacore.com>
660
661 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
662 "stat.h".
663
664 2013-11-18 Tom Tromey <tromey@redhat.com>
665
666 * common/gdb_stat.h: Remove.
667 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
668 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
669 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
670 * corefile.c: Use sys/stat.h, not gdb_stat.h.
671 * ctf.c: Use sys/stat.h, not gdb_stat.h.
672 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
673 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
674 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
675 * exec.c: Use sys/stat.h, not gdb_stat.h.
676 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
677 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
678 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
679 * jit.c: Use sys/stat.h, not gdb_stat.h.
680 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
681 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
682 * main.c: Use sys/stat.h, not gdb_stat.h.
683 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
684 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
685 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
686 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
687 * procfs.c: Use sys/stat.h, not gdb_stat.h.
688 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
689 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
690 * remote.c: Use sys/stat.h, not gdb_stat.h.
691 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
692 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
693 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
694 * source.c: Use sys/stat.h, not gdb_stat.h.
695 * symfile.c: Use sys/stat.h, not gdb_stat.h.
696 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
697 * symtab.c: Use sys/stat.h, not gdb_stat.h.
698 * top.c: Use sys/stat.h, not gdb_stat.h.
699 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
700
701 2013-11-18 Tom Tromey <tromey@redhat.com>
702
703 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
704 sys_stat.
705 * gnulib/aclocal.m4: Update.
706 * gnulib/config.in: Update.
707 * gnulib/configure: Update.
708 * gnulib/import/Makefile.am: Update.
709 * gnulib/import/Makefile.in: Update.
710 * gnulib/import/m4/gnulib-cache.m4: Update.
711 * gnulib/import/m4/gnulib-comp.m4: Update.
712 * gnulib/import/m4/sys_stat_h.m4: New.
713 * gnulib/import/m4/time_h.m4: New.
714 * gnulib/import/sys_stat.in.h: New.
715 * gnulib/import/time.in.h: New.
716
717 2013-11-18 Tom Tromey <tromey@redhat.com>
718
719 * configure: Rebuild.
720 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
721
722 2013-11-18 Tom Tromey <tromey@redhat.com>
723
724 * configure: Rebuild.
725 * configure.ac: Don't check for unistd.h.
726
727 2013-11-18 Tom Tromey <tromey@redhat.com>
728
729 * configure: Rebuild.
730 * configure.ac: Don't check for stdlib.h
731 * defs.h: Include stdlib.h unconditionally.
732
733 2013-11-18 Tom Tromey <tromey@redhat.com>
734
735 * config.in: Rebuild.
736 * configure: Rebuild.
737 * configure.ac: Don't check for stddef.h.
738 * defs.h: Unconditionally include stddef.h. Remove duplicate
739 inclusion.
740
741 2013-11-18 Tom Tromey <tromey@redhat.com>
742
743 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
744 * common/gdb_dirent.h: Remove.
745 * common/filestuff.c: Use dirent.h.
746 * common/linux-osdata.c: Use dirent.h.
747 (NAMELEN): Define.
748 * config.in: Rebuild.
749 * configure: Rebuild.
750 * configure.ac: Don't use AC_HEADER_DIRENT.
751 * linux-fork.c: Use dirent.h
752 * linux-nat.c: Use dirent.h.
753 * nto-procfs.c: Use dirent.h.
754 * procfs.c: Use dirent.h.
755
756 2013-11-18 Tom Tromey <tromey@redhat.com>
757
758 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
759 * gnulib/aclocal.m4: Update.
760 * gnulib/config.in: Update.
761 * gnulib/configure: Update.
762 * gnulib/import/Makefile.am: Update.
763 * gnulib/import/Makefile.in: Update.
764 * gnulib/import/dirent.in.h: New.
765 * gnulib/import/m4/dirent_h.m4: New.
766 * gnulib/import/m4/gnulib-cache.m4: Update.
767 * gnulib/import/m4/gnulib-comp.m4: Update.
768
769 2013-11-18 Tom Tromey <tromey@redhat.com>
770
771 * configure: Rebuild.
772 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
773 strings.h.
774
775 2013-11-18 Tom Tromey <tromey@redhat.com>
776
777 * common/gdb_string.h: Remove.
778 * aarch64-tdep.c: Use string.h, not gdb_string.h.
779 * ada-exp.y: Use string.h, not gdb_string.h.
780 * ada-lang.c: Use string.h, not gdb_string.h.
781 * ada-lex.l: Use string.h, not gdb_string.h.
782 * ada-typeprint.c: Use string.h, not gdb_string.h.
783 * ada-valprint.c: Use string.h, not gdb_string.h.
784 * aix-thread.c: Use string.h, not gdb_string.h.
785 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
786 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
787 * alpha-nat.c: Use string.h, not gdb_string.h.
788 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
789 * alpha-tdep.c: Use string.h, not gdb_string.h.
790 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
791 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
792 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
793 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
794 * amd64-nat.c: Use string.h, not gdb_string.h.
795 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
796 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
797 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
798 * arch-utils.c: Use string.h, not gdb_string.h.
799 * arm-linux-nat.c: Use string.h, not gdb_string.h.
800 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
801 * arm-tdep.c: Use string.h, not gdb_string.h.
802 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
803 * armbsd-tdep.c: Use string.h, not gdb_string.h.
804 * armnbsd-nat.c: Use string.h, not gdb_string.h.
805 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
806 * armobsd-tdep.c: Use string.h, not gdb_string.h.
807 * avr-tdep.c: Use string.h, not gdb_string.h.
808 * ax-gdb.c: Use string.h, not gdb_string.h.
809 * ax-general.c: Use string.h, not gdb_string.h.
810 * bcache.c: Use string.h, not gdb_string.h.
811 * bfin-tdep.c: Use string.h, not gdb_string.h.
812 * breakpoint.c: Use string.h, not gdb_string.h.
813 * build-id.c: Use string.h, not gdb_string.h.
814 * buildsym.c: Use string.h, not gdb_string.h.
815 * c-exp.y: Use string.h, not gdb_string.h.
816 * c-lang.c: Use string.h, not gdb_string.h.
817 * c-typeprint.c: Use string.h, not gdb_string.h.
818 * c-valprint.c: Use string.h, not gdb_string.h.
819 * charset.c: Use string.h, not gdb_string.h.
820 * cli-out.c: Use string.h, not gdb_string.h.
821 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
822 * cli/cli-decode.c: Use string.h, not gdb_string.h.
823 * cli/cli-dump.c: Use string.h, not gdb_string.h.
824 * cli/cli-interp.c: Use string.h, not gdb_string.h.
825 * cli/cli-logging.c: Use string.h, not gdb_string.h.
826 * cli/cli-script.c: Use string.h, not gdb_string.h.
827 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
828 * cli/cli-utils.c: Use string.h, not gdb_string.h.
829 * coffread.c: Use string.h, not gdb_string.h.
830 * common/common-utils.c: Use string.h, not gdb_string.h.
831 * common/filestuff.c: Use string.h, not gdb_string.h.
832 * common/linux-procfs.c: Use string.h, not gdb_string.h.
833 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
834 * common/signals.c: Use string.h, not gdb_string.h.
835 * common/vec.h: Use string.h, not gdb_string.h.
836 * core-regset.c: Use string.h, not gdb_string.h.
837 * corefile.c: Use string.h, not gdb_string.h.
838 * corelow.c: Use string.h, not gdb_string.h.
839 * cp-abi.c: Use string.h, not gdb_string.h.
840 * cp-support.c: Use string.h, not gdb_string.h.
841 * cp-valprint.c: Use string.h, not gdb_string.h.
842 * cris-tdep.c: Use string.h, not gdb_string.h.
843 * d-lang.c: Use string.h, not gdb_string.h.
844 * dbxread.c: Use string.h, not gdb_string.h.
845 * dcache.c: Use string.h, not gdb_string.h.
846 * demangle.c: Use string.h, not gdb_string.h.
847 * dicos-tdep.c: Use string.h, not gdb_string.h.
848 * disasm.c: Use string.h, not gdb_string.h.
849 * doublest.c: Use string.h, not gdb_string.h.
850 * dsrec.c: Use string.h, not gdb_string.h.
851 * dummy-frame.c: Use string.h, not gdb_string.h.
852 * dwarf2-frame.c: Use string.h, not gdb_string.h.
853 * dwarf2loc.c: Use string.h, not gdb_string.h.
854 * dwarf2read.c: Use string.h, not gdb_string.h.
855 * elfread.c: Use string.h, not gdb_string.h.
856 * environ.c: Use string.h, not gdb_string.h.
857 * eval.c: Use string.h, not gdb_string.h.
858 * event-loop.c: Use string.h, not gdb_string.h.
859 * exceptions.c: Use string.h, not gdb_string.h.
860 * exec.c: Use string.h, not gdb_string.h.
861 * expprint.c: Use string.h, not gdb_string.h.
862 * f-exp.y: Use string.h, not gdb_string.h.
863 * f-lang.c: Use string.h, not gdb_string.h.
864 * f-typeprint.c: Use string.h, not gdb_string.h.
865 * f-valprint.c: Use string.h, not gdb_string.h.
866 * fbsd-nat.c: Use string.h, not gdb_string.h.
867 * findcmd.c: Use string.h, not gdb_string.h.
868 * findvar.c: Use string.h, not gdb_string.h.
869 * fork-child.c: Use string.h, not gdb_string.h.
870 * frame.c: Use string.h, not gdb_string.h.
871 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
872 * frv-tdep.c: Use string.h, not gdb_string.h.
873 * gdb.c: Use string.h, not gdb_string.h.
874 * gdb_bfd.c: Use string.h, not gdb_string.h.
875 * gdbarch.c: Use string.h, not gdb_string.h.
876 * gdbtypes.c: Use string.h, not gdb_string.h.
877 * gnu-nat.c: Use string.h, not gdb_string.h.
878 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
879 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
880 * go-exp.y: Use string.h, not gdb_string.h.
881 * go-lang.c: Use string.h, not gdb_string.h.
882 * go32-nat.c: Use string.h, not gdb_string.h.
883 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
884 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
885 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
886 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
887 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
888 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
889 * i386-linux-nat.c: Use string.h, not gdb_string.h.
890 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
891 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
892 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
893 * i386-tdep.c: Use string.h, not gdb_string.h.
894 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
895 * i386gnu-nat.c: Use string.h, not gdb_string.h.
896 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
897 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
898 * i387-tdep.c: Use string.h, not gdb_string.h.
899 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
900 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
901 * inf-child.c: Use string.h, not gdb_string.h.
902 * inf-ptrace.c: Use string.h, not gdb_string.h.
903 * inf-ttrace.c: Use string.h, not gdb_string.h.
904 * infcall.c: Use string.h, not gdb_string.h.
905 * infcmd.c: Use string.h, not gdb_string.h.
906 * inflow.c: Use string.h, not gdb_string.h.
907 * infrun.c: Use string.h, not gdb_string.h.
908 * interps.c: Use string.h, not gdb_string.h.
909 * iq2000-tdep.c: Use string.h, not gdb_string.h.
910 * irix5-nat.c: Use string.h, not gdb_string.h.
911 * jv-exp.y: Use string.h, not gdb_string.h.
912 * jv-lang.c: Use string.h, not gdb_string.h.
913 * jv-typeprint.c: Use string.h, not gdb_string.h.
914 * jv-valprint.c: Use string.h, not gdb_string.h.
915 * language.c: Use string.h, not gdb_string.h.
916 * linux-fork.c: Use string.h, not gdb_string.h.
917 * linux-nat.c: Use string.h, not gdb_string.h.
918 * lm32-tdep.c: Use string.h, not gdb_string.h.
919 * m2-exp.y: Use string.h, not gdb_string.h.
920 * m2-typeprint.c: Use string.h, not gdb_string.h.
921 * m32c-tdep.c: Use string.h, not gdb_string.h.
922 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
923 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
924 * m32r-rom.c: Use string.h, not gdb_string.h.
925 * m32r-tdep.c: Use string.h, not gdb_string.h.
926 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
927 * m68k-tdep.c: Use string.h, not gdb_string.h.
928 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
929 * m68klinux-nat.c: Use string.h, not gdb_string.h.
930 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
931 * m88k-tdep.c: Use string.h, not gdb_string.h.
932 * macrocmd.c: Use string.h, not gdb_string.h.
933 * main.c: Use string.h, not gdb_string.h.
934 * mdebugread.c: Use string.h, not gdb_string.h.
935 * mem-break.c: Use string.h, not gdb_string.h.
936 * memattr.c: Use string.h, not gdb_string.h.
937 * memory-map.c: Use string.h, not gdb_string.h.
938 * mep-tdep.c: Use string.h, not gdb_string.h.
939 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
940 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
941 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
942 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
943 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
944 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
945 * mi/mi-console.c: Use string.h, not gdb_string.h.
946 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
947 * mi/mi-interp.c: Use string.h, not gdb_string.h.
948 * mi/mi-main.c: Use string.h, not gdb_string.h.
949 * mi/mi-parse.c: Use string.h, not gdb_string.h.
950 * microblaze-rom.c: Use string.h, not gdb_string.h.
951 * microblaze-tdep.c: Use string.h, not gdb_string.h.
952 * mingw-hdep.c: Use string.h, not gdb_string.h.
953 * minidebug.c: Use string.h, not gdb_string.h.
954 * minsyms.c: Use string.h, not gdb_string.h.
955 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
956 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
957 * mips-tdep.c: Use string.h, not gdb_string.h.
958 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
959 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
960 * mipsread.c: Use string.h, not gdb_string.h.
961 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
962 * mn10300-tdep.c: Use string.h, not gdb_string.h.
963 * monitor.c: Use string.h, not gdb_string.h.
964 * moxie-tdep.c: Use string.h, not gdb_string.h.
965 * mt-tdep.c: Use string.h, not gdb_string.h.
966 * nbsd-tdep.c: Use string.h, not gdb_string.h.
967 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
968 * nto-procfs.c: Use string.h, not gdb_string.h.
969 * nto-tdep.c: Use string.h, not gdb_string.h.
970 * objc-lang.c: Use string.h, not gdb_string.h.
971 * objfiles.c: Use string.h, not gdb_string.h.
972 * opencl-lang.c: Use string.h, not gdb_string.h.
973 * osabi.c: Use string.h, not gdb_string.h.
974 * osdata.c: Use string.h, not gdb_string.h.
975 * p-exp.y: Use string.h, not gdb_string.h.
976 * p-lang.c: Use string.h, not gdb_string.h.
977 * p-typeprint.c: Use string.h, not gdb_string.h.
978 * parse.c: Use string.h, not gdb_string.h.
979 * posix-hdep.c: Use string.h, not gdb_string.h.
980 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
981 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
982 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
983 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
984 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
985 * printcmd.c: Use string.h, not gdb_string.h.
986 * procfs.c: Use string.h, not gdb_string.h.
987 * prologue-value.c: Use string.h, not gdb_string.h.
988 * python/py-auto-load.c: Use string.h, not gdb_string.h.
989 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
990 * ravenscar-thread.c: Use string.h, not gdb_string.h.
991 * regcache.c: Use string.h, not gdb_string.h.
992 * registry.c: Use string.h, not gdb_string.h.
993 * remote-fileio.c: Use string.h, not gdb_string.h.
994 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
995 * remote-mips.c: Use string.h, not gdb_string.h.
996 * remote-sim.c: Use string.h, not gdb_string.h.
997 * remote.c: Use string.h, not gdb_string.h.
998 * reverse.c: Use string.h, not gdb_string.h.
999 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1000 * ser-base.c: Use string.h, not gdb_string.h.
1001 * ser-go32.c: Use string.h, not gdb_string.h.
1002 * ser-mingw.c: Use string.h, not gdb_string.h.
1003 * ser-pipe.c: Use string.h, not gdb_string.h.
1004 * ser-tcp.c: Use string.h, not gdb_string.h.
1005 * ser-unix.c: Use string.h, not gdb_string.h.
1006 * serial.c: Use string.h, not gdb_string.h.
1007 * sh-tdep.c: Use string.h, not gdb_string.h.
1008 * sh64-tdep.c: Use string.h, not gdb_string.h.
1009 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1010 * skip.c: Use string.h, not gdb_string.h.
1011 * sol-thread.c: Use string.h, not gdb_string.h.
1012 * solib-dsbt.c: Use string.h, not gdb_string.h.
1013 * solib-frv.c: Use string.h, not gdb_string.h.
1014 * solib-osf.c: Use string.h, not gdb_string.h.
1015 * solib-spu.c: Use string.h, not gdb_string.h.
1016 * solib-target.c: Use string.h, not gdb_string.h.
1017 * solib.c: Use string.h, not gdb_string.h.
1018 * somread.c: Use string.h, not gdb_string.h.
1019 * source.c: Use string.h, not gdb_string.h.
1020 * sparc-nat.c: Use string.h, not gdb_string.h.
1021 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1022 * sparc-tdep.c: Use string.h, not gdb_string.h.
1023 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1024 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1025 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1026 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1027 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1028 * spu-multiarch.c: Use string.h, not gdb_string.h.
1029 * spu-tdep.c: Use string.h, not gdb_string.h.
1030 * stabsread.c: Use string.h, not gdb_string.h.
1031 * stack.c: Use string.h, not gdb_string.h.
1032 * std-regs.c: Use string.h, not gdb_string.h.
1033 * symfile.c: Use string.h, not gdb_string.h.
1034 * symmisc.c: Use string.h, not gdb_string.h.
1035 * symtab.c: Use string.h, not gdb_string.h.
1036 * target.c: Use string.h, not gdb_string.h.
1037 * thread.c: Use string.h, not gdb_string.h.
1038 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1039 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1040 * top.c: Use string.h, not gdb_string.h.
1041 * tracepoint.c: Use string.h, not gdb_string.h.
1042 * tui/tui-command.c: Use string.h, not gdb_string.h.
1043 * tui/tui-data.c: Use string.h, not gdb_string.h.
1044 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1045 * tui/tui-file.c: Use string.h, not gdb_string.h.
1046 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1047 * tui/tui-out.c: Use string.h, not gdb_string.h.
1048 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1049 * tui/tui-source.c: Use string.h, not gdb_string.h.
1050 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1051 * tui/tui-win.c: Use string.h, not gdb_string.h.
1052 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1053 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1054 * typeprint.c: Use string.h, not gdb_string.h.
1055 * ui-file.c: Use string.h, not gdb_string.h.
1056 * ui-out.c: Use string.h, not gdb_string.h.
1057 * user-regs.c: Use string.h, not gdb_string.h.
1058 * utils.c: Use string.h, not gdb_string.h.
1059 * v850-tdep.c: Use string.h, not gdb_string.h.
1060 * valarith.c: Use string.h, not gdb_string.h.
1061 * valops.c: Use string.h, not gdb_string.h.
1062 * valprint.c: Use string.h, not gdb_string.h.
1063 * value.c: Use string.h, not gdb_string.h.
1064 * varobj.c: Use string.h, not gdb_string.h.
1065 * vax-tdep.c: Use string.h, not gdb_string.h.
1066 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1067 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1068 * windows-nat.c: Use string.h, not gdb_string.h.
1069 * xcoffread.c: Use string.h, not gdb_string.h.
1070 * xml-support.c: Use string.h, not gdb_string.h.
1071 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1072 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1073
1074 2013-11-18 Tom Tromey <tromey@redhat.com>
1075
1076 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1077 and strstr.
1078 * gnulib/aclocal.m4: Update.
1079 * gnulib/config.in: Update.
1080 * gnulib/configure: Update.
1081 * gnulib/import/Makefile.am: Update.
1082 * gnulib/import/Makefile.in: Update.
1083 * gnulib/import/errno.in.h: New.
1084 * gnulib/import/intprops.h: New.
1085 * gnulib/import/m4/errno_h.m4: New.
1086 * gnulib/import/m4/gnulib-cache.m4: Update.
1087 * gnulib/import/m4/gnulib-comp.m4: Update.
1088 * gnulib/import/m4/strerror.m4: New.
1089 * gnulib/import/m4/strstr.m4: New.
1090 * gnulib/import/m4/sys_socket_h.m4: New.
1091 * gnulib/import/strerror-override.c: New.
1092 * gnulib/import/strerror-override.h: New.
1093 * gnulib/import/strerror.c: New.
1094 * gnulib/import/strstr.c: New.
1095
1096 2013-11-18 Tom Tromey <tromey@redhat.com>
1097
1098 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1099 multiple lines.
1100
1101 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1102
1103 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1104 * sparc-tdep.h: And its prototype.
1105
1106 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1107 function.
1108 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1109
1110 2013-11-18 Pedro Alves <palves@redhat.com>
1111
1112 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1113 use unpack_pointer.
1114
1115 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1116
1117 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1118 to -list-features output.
1119
1120 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1121
1122 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1123 <read_addr_from_reg>: Renames "read_reg".
1124 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1125 Adjust comment.
1126 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1127 Use read_addr_from_reg in place of read_reg.
1128 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1129 in place of read_reg.
1130 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1131 dwarf_expr_read_reg.
1132 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1133 with dwarf_expr_read_addr_from_reg.
1134 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1135 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1136 needs_frame_read_addr_from_reg.
1137
1138 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1139
1140 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1141
1142 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143
1144 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1145 NULL.
1146
1147 2013-11-15 Tom Tromey <tromey@redhat.com>
1148
1149 PR c++/16117:
1150 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1151 (classify_name): Likewise. Prefer a field of "this" over a
1152 filename.
1153 (classify_inner_name, yylex): Update.
1154
1155 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1156
1157 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1158 Extend the documentation a bit.
1159 <get_reg_value>: New field.
1160 * dwarf2loc.c (dwarf_expr_get_reg_value)
1161 (needs_frame_get_reg_value): New functions.
1162 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1163 callback.
1164 * dwarf2-frame.c (get_reg_value): New function.
1165 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1166 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1167 Use new callback to compute result_val.
1168
1169 2013-11-15 Alan Modra <amodra@gmail.com>
1170
1171 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1172 (ppc64_desc_entry_point): ..this. Update comments here and at
1173 call points.
1174 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1175 ppc64_standard_linkage3): Update comments.
1176 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1177 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1178 patterns.
1179 (ppc64_standard_linkage4_target): New function.
1180 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1181 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1182 nop match. Fix comment wrap.
1183
1184 2013-11-14 Pedro Alves <palves@redhat.com>
1185
1186 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1187 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1188
1189 2013-11-14 Pedro Alves <palves@redhat.com>
1190
1191 * infrun.c (struct execution_control_state)
1192 <stepped_after_stopped_by_watchpoint>: New field.
1193 (get_inferior_stop_soon): New function.
1194 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1195 moved to struct execution_control_state -- adjust. Use
1196 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1197 new function.
1198 (handle_signal_stop): New function, factored out from
1199 handle_inferior_event.
1200
1201 2013-11-14 Pedro Alves <palves@redhat.com>
1202
1203 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1204 return a boolean.
1205 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1206 boolean.
1207 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1208 Adjust to return a boolean.
1209 * breakpoint.h (enum bpstat_signal_value): Delete.
1210 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1211 (bpstat_explains_signal): Likewise.
1212 * infrun.c (handle_inferior_event) <random signal checks>:
1213 bpstat_explains_signal now returns a boolean - adjust. No longer
1214 consider hiding signals.
1215
1216 2013-11-14 Pedro Alves <palves@redhat.com>
1217
1218 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1219 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1220 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1221 BPSTAT_SIGNAL_HIDE.
1222 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1223 instead of BPSTAT_SIGNAL_HIDE.
1224 * infrun.c (handle_inferior_event): Rework random signal checks.
1225
1226 2013-11-14 Pedro Alves <palves@redhat.com>
1227
1228 * infrun.c (struct execution_control_state): Remove
1229 'random_signal' field.
1230 (handle_syscall_event): Use bpstat_causes_stop instead of
1231 bpstat_explains_signal. Don't set ecs->random_signal.
1232 (handle_inferior_event): New 'random_signal' local.
1233 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1234 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1235 bpstat_explains_signal. Don't set ecs->random_signal.
1236 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1237 ecs->random_signal.
1238
1239 2013-11-14 Pedro Alves <palves@redhat.com>
1240
1241 * infrun.c (handle_inferior_event): Move comment from the
1242 function's body to the function's description, adjusted.
1243
1244 2013-11-14 Pedro Alves <palves@redhat.com>
1245
1246 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1247 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1248 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1249 case.
1250
1251 2013-11-14 Tom Tromey <tromey@redhat.com>
1252
1253 * python/py-linetable.c (ltpy_has_line)
1254 (ltpy_get_all_source_lines): Fix loop termination condition.
1255
1256 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1257
1258 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1259 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1260 PARSE->LANGUAGE during command execution, if set.
1261 * mi/mi-parse.c: Add "language.h" #include.
1262 (mi_parse): Add parsing of "--language" command option.
1263
1264 * NEWS: Add entry mentioning the new "--language" command option.
1265
1266 2013-11-14 Pedro Alves <palves@redhat.com>
1267 Joel Brobecker <brobecker@adacore.com>
1268
1269 * cli/cli-utils.h (extract_arg_const): Add declaration.
1270 * cli/cli-utils.c (extract_arg_const): New function.
1271 (extract_arg): Reimplement using extract_arg_const.
1272
1273 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1274
1275 * language.h: Add "symtab.h" #include.
1276
1277 2013-11-13 Doug Evans <xdje42@gmail.com>
1278
1279 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1280 specific breakpoints, don't evaluate breakpoint condition if
1281 different thread.
1282
1283 2013-11-13 Keith Seitz <keiths@redhat.com>
1284
1285 PR c++/7935
1286 PR c++/10541
1287 * cp-support.c (insepct_type): Add support for substituting
1288 namespace aliases, too.
1289 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1290 for DW_TAG_imported_declaration.
1291 (add_partial_symbol): Likewise.
1292 (process_die): Handle namespace aliases with
1293 read_namespace_alias.
1294 (die_needs_namespace): Add DW_TAG_imported_declaration.
1295 (read_namespace_alias): New function.
1296 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1297 (new_symbol_full): Handle DW_TAG_imported_declaration.
1298
1299 2013-11-13 Keith Seitz <keiths@redhat.com>
1300
1301 * p-exp.y (uptok): Make first parameter const.
1302 (yylex): Make `tokstart' and `tokptr' const.
1303 Don't copy the lexer input to a temporary buffer.
1304 Make `p' const.
1305 Remove const workaround for parse_escape.
1306 Create a temporary buffer for a convenience variable instead
1307 of doing in-place modification of the input.
1308 If a match is found with a different case from the input,
1309 do not change the input at all.
1310 Use `tmp' to construct the resultant stoken instead of
1311 `tokstart'.
1312
1313 2013-11-13 Doug Evans <xdje42@gmail.com>
1314
1315 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1316
1317 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1318
1319 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1320 entry with "ada-exceptions".
1321
1322 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1323
1324 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1325 after re-initialization of OBJFILE's obstack.
1326
1327 2013-11-12 Doug Evans <xdje42@gmail.com>
1328
1329 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1330 bs->stop != 0 on entry. Update function comment. Simplify early
1331 exit for frame mismatch. Reindent rest of function.
1332
1333 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1334
1335 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1336 NULL.
1337
1338 2013-11-12 Doug Evans <dje@google.com>
1339
1340 Work around gold/15646.
1341 * dwarf2read.c (read_index_from_section): Update comment.
1342 (struct dw2_symtab_iterator): New member global_seen.
1343 (dw2_symtab_iter_init): Initialize it.
1344 (dw2_symtab_iter_next): Skip duplicate global symbols.
1345 (dw2_expand_symtabs_matching): Ditto.
1346
1347 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1348
1349 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1350 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1351 command.
1352 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1353 (mi_cmd_info_ada_exceptions): New function.
1354 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1355
1356 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1357
1358 * ada-lang.h: #include "vec.h".
1359 (struct ada_exc_info): New.
1360 (ada_exc_info): New typedef.
1361 (DEF_VEC_O(ada_exc_info)): New vector.
1362 (ada_exceptions_list): Add declaration.
1363 * ada-lang.c (ada_is_exception_sym)
1364 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1365 (sort_remove_dups_ada_exceptions_list)
1366 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1367 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1368 (ada_exceptions_list_1, ada_exceptions_list)
1369 (info_exceptions_command): New function.
1370 (_initialize_ada_language): Add "info exception" command.
1371
1372 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1373
1374 PR python/15629
1375 * NEWS: Add linetable feature.
1376 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1377 * python/py-linetable.c: New file.
1378 * python/py-symtab.c (stpy_get_linetable): New function.
1379 * python/python-internal.h (symtab_to_linetable_object): Declare.
1380 (gdbpy_initialize_linetable): Ditto.
1381 * python/python.c (_initialize_python): Call
1382 gdbpy_initialize_linetable.
1383
1384 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1385
1386 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1387 the documentation of fields "except_string" and "condition".
1388 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1389 CONDITION on the heap before passing it to
1390 create_ada_exception_catchpoint.
1391 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1392 CONDITION.
1393
1394 2013-11-11 Tom Tromey <tromey@redhat.com>
1395
1396 * config.in, configure: Rebuild.
1397 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1398
1399 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1400
1401 * remote-sim.c (gdbsim_detach): Break declaration into
1402 shorter lines. No code change.
1403
1404 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1405
1406 * remote-sim.c (gdbsim_detach): Fix prototype.
1407
1408 2013-11-08 Doug Evans <dje@google.com>
1409
1410 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1411 (create_debug_types_hash_table): Only print debugging messages for
1412 each TU if dwarf2-read >= 2.
1413 (process_queue): Ditto.
1414 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1415 Update doc string.
1416
1417 2013-11-08 Tom Tromey <tromey@redhat.com>
1418
1419 * configure: Rebuild.
1420 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1421
1422 2013-11-08 Tom Tromey <tromey@redhat.com>
1423
1424 * configure, config.in: Rebuild.
1425 * configure.ac: Remove unused configury.
1426
1427 2013-11-08 Tom Tromey <tromey@redhat.com>
1428
1429 * m32c-tdep.c: Use gdb_string.h.
1430
1431 2013-11-08 Tom Tromey <tromey@redhat.com>
1432
1433 * configure, config.in: Rebuild.
1434 * configure.ac: Remove all link.h-related checks.
1435
1436 2013-11-08 Tom Tromey <tromey@redhat.com>
1437
1438 * acinclude.m4: Include common.m4.
1439 * common/common.m4: New file.
1440 * configure, config.in: Rebuild.
1441 * configure.ac: Use GDB_AC_COMMON.
1442
1443 2013-11-08 Doug Evans <dje@google.com>
1444
1445 * NEWS: Mention that "set debug symtab-create" now accepts a
1446 verbosity level.
1447 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1448 to set the symtab's primary flag.
1449 * jit.c (finalize_symtab): Ditto.
1450 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1451 * symfile.c (allocate_symtab): Only print debugging messages for
1452 symtab_create_debug levels 2 and higher.
1453 * symtab.c (symtab_create_debug): Change type to unsigned int.
1454 (set_symtab_primary): New function.
1455 (_initialize_symtab): Change "set debug symtab-create" to a
1456 zuinteger option.
1457 * symtab.h (set_symtab_primary): Declare.
1458 (symtab_create_debug): Update decl.
1459
1460 2013-11-08 Tom Tromey <tromey@redhat.com>
1461
1462 * aix-thread.c (aix_thread_detach): Update.
1463 * corelow.c (core_detach): Update.
1464 * darwin-nat.c (darwin_detach): Update.
1465 * dec-thread.c (dec_thread_detach): Update.
1466 * gnu-nat.c (gnu_detach): Update.
1467 * go32-nat.c (go32_detach): Update.
1468 * inf-ptrace.c (inf_ptrace_detach): Update.
1469 * inf-ttrace.c (inf_ttrace_detach): Update.
1470 * linux-fork.c (linux_fork_detach): Update.
1471 * linux-fork.h (linux_fork_detach): Update.
1472 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1473 local for const-correctness.
1474 * linux-thread-db.c (thread_db_detach): Update.
1475 * monitor.c (monitor_detach): Update.
1476 * nto-procfs.c (procfs_detach): Update.
1477 * procfs.c (procfs_detach): Update.
1478 * record.c (record_detach): Update.
1479 * record.h (record_detach): Update.
1480 * remote-m32r-sdi.c (m32r_detach): Update.
1481 * remote-mips.c (mips_detach): Update.
1482 * remote-sim.c (gdbsim_detach): Update.
1483 * remote.c (remote_detach_1, remote_detach)
1484 (extended_remote_detach): Update.
1485 * sol-thread.c (sol_thread_detach): Update.
1486 * target.c (target_detach): Make "args" const.
1487 (init_dummy_target): Update.
1488 * target.h (struct target_ops) <to_detach>: Make argument const.
1489 (target_detach): Likewise.
1490 * windows-nat.c (windows_detach): Update.
1491
1492 2013-11-07 Doug Evans <dje@google.com>
1493
1494 PR 11786
1495 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1496 and align fields for PT_GNU_RELRO segments.
1497
1498 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1499
1500 PR python/15747
1501 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1502
1503 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1504
1505 * NEWS: Document Python temporary breakpoint support.
1506 * python/py-breakpoint.c (bppy_get_temporary): New function.
1507 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1508 to temporary if True.
1509
1510 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1511
1512 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1513 removed to allow analyzing unconditional branch instructions
1514 with PC-relative offsets of zero.
1515
1516 2013-11-07 Yao Qi <yao@codesourcery.com>
1517
1518 * mi/mi-cmd-var.c: Include "language.h".
1519 (mi_cmd_var_info_expression): Get language name from
1520 language_defn.
1521 * varobj.c (varobj_language_string): Remove.
1522 (variable_language): Remove declaration.
1523 (languages): Remove.
1524 (varobj_get_language): Change the type of return value.
1525 (variable_language): Remove.
1526 * varobj.h (enum varobj_languages): Remove.
1527 (varobj_language_string): Remove declaration.
1528 (varobj_get_language): Update declaration.
1529
1530 2013-11-07 Yao Qi <yao@codesourcery.com>
1531
1532 * language.h (struct language_defn) <la_natural_name>: New
1533 field.
1534 * ada-lang.c (ada_language_defn): Initialize field
1535 'la_natural_name'.
1536 * c-lang.c (c_language_defn): Likewise.
1537 (cplus_language_defn, asm_language_defn): Likewise.
1538 * d-lang.c (d_language_defn): Likewise.
1539 * f-lang.c (f_language_defn): Likewise.
1540 * go-lang.c (go_language_defn): Likewise.
1541 * jv-lang.c (java_language_defn): Likewise.
1542 * language.c (unknown_language_defn ): Likewise.
1543 (auto_language_defn): Likewise.
1544 * m2-lang.c (m2_language_defn): Likewise.
1545 * objc-lang.c (objc_language_defn): Likewise.
1546 * opencl-lang.c (opencl_language_defn): Likewise.
1547 * p-lang.c (pascal_language_defn): Likewise.
1548
1549 2013-11-07 Yao Qi <yao@codesourcery.com>
1550
1551 * language.c (language_str): Return const char *.
1552 (add_language): Add const to 'language_names'
1553 * language.h (struct language_defn) <la_name>: Add const.
1554 (language_str: Update declaration.
1555
1556 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1557
1558 * s390-linux-nat.c (s390_read_description): Consider the TE field
1559 in the HWCAP for determining 'have_regset_tdb'.
1560
1561 2013-11-06 Will Newton <will.newton@linaro.org>
1562
1563 PR gdb/12866
1564 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1565 values. (read_partial_die): Likewise.
1566
1567 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1568
1569 PR cli/16122
1570 * top.c (command_line_input): Unify interactivity tests to use
1571 input_from_terminal_p.
1572 * event-top.c (command_line_handler): Likewise.
1573
1574 2013-11-06 Yao Qi <yao@codesourcery.com>
1575
1576 * Makefile.in (check-perf): New target.
1577
1578 2013-11-05 Will Newton <will.newton@linaro.org>
1579
1580 PR gdb/7670
1581 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1582 (arm_print_float_info): Likewise.
1583
1584 2013-11-04 Anton Blanchard <anton@samba.org>
1585
1586 * target.c (memory_xfer_partial): Cap write to 4KB.
1587
1588 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1589
1590 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1591 probe scan even when the arch provides no get_longjmp_target.
1592
1593 2013-10-31 Pedro Alves <palves@redhat.com>
1594
1595 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1596 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1597 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1598 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1599 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1600 <bpstat handling>: If the bpstat chain wants the signal to be
1601 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1602 GDB_SIGNAL_TRAP.
1603
1604 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1605
1606 * breakpoint.c (update_watchpoint): Update error message and add
1607 an additional error message.
1608
1609 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1610
1611 * s390-tdep.h: Rename to...
1612 * s390-linux-tdep.h: ...here.
1613 * s390-tdep.c: Rename to...
1614 * s390-linux-tdep.c: ...here. Adjust #include.
1615 * s390-nat.c: Rename to...
1616 * s390-linux-nat.c: ...here. Adjust #include.
1617 * config/s390/s390.mh: Rename to...
1618 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1619 s390-linux-nat.o.
1620 * configure.host: Reflect host rename "s390" -> "linux".
1621 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1622 * Makefile.in (ALL_TARGET_OBS): Likewise.
1623 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1624 s390-linux-tdep.h.
1625 (ALLDEPFILES): Reflect rename of .c files.
1626
1627 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1628
1629 * s390-nat.c: Whitespace cleanup.
1630 * s390-tdep.c: Likewise.
1631 * s390-tdep.h: Remove empty line at end of file.
1632
1633 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1634
1635 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1636 siginfo_size.
1637
1638 2013-10-29 Tom Tromey <tromey@redhat.com>
1639
1640 * utils.c (reg): Move undefinition...
1641 * gdb_curses.h: ... here. Update comment to mention AIX.
1642
1643 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1644
1645 * exec.h (add_target_sections_of_objfile): New declaration.
1646 * exec.c (add_target_sections_of_objfile): New function.
1647 * symfile.c (add_symbol_file_command): Update current target sections.
1648 (remove_symbol_file_command): New command.
1649 (symfile_free_objfile): New function.
1650 (_initialize_symfile): Register observer for free_objfile events.
1651 * NEWS: Add description of the remove-symbol-file command.
1652 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1653 * objfiles.c (free_objfile): Notify free_objfile.
1654 (is_addr_in_objfile): New function.
1655 * objfiles.h (is_addr_in_objfile): New declaration.
1656 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1657 events instead of solib_unloaded events.
1658 (_initialize_printcmd): Register observer for free_objfile instead
1659 of solib_unloaded notifications.
1660 * solib.c (remove_user_added_objfile): New function.
1661 (_initialize_symfile): Add remove-symbol-file.
1662
1663 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1664
1665 * infcmd.c (default_print_one_register_info): Use val_print to
1666 print all values even optimized out or unavailable ones. Don't
1667 try to print a raw form of optimized out or unavailable values.
1668
1669 2013-10-29 Yao Qi <yao@codesourcery.com>
1670
1671 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1672 parameter 'arg' instead of from program_space_data.
1673 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1674 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1675 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1676 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1677 * inflow.c (inflow_inferior_data_cleanup): Get data from
1678 parameter 'arg' instead of inferior_data.
1679 * registry.h: Add comments.
1680
1681 2013-10-28 Pedro Alves <palves@redhat.com>
1682
1683 * breakpoint.c (watchpoints_triggered)
1684 <!target_stopped_data_address>: Hardcode return 1.
1685
1686 2013-10-28 Pedro Alves <palves@redhat.com>
1687
1688 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1689 level and reindent.
1690
1691 2013-10-28 Pedro Alves <palves@redhat.com>
1692
1693 * infrun.c (process_event_stop_test): New function, factored out
1694 from handle_inferior_event.
1695 (handle_inferior_event): 'process_event_stop_test' is now a
1696 function instead of a goto label -- adjust.
1697
1698 2013-10-28 Pedro Alves <palves@redhat.com>
1699
1700 * infrun.c (handle_inferior_event): Move process_event_stop_test
1701 goto label to the else branch of the ecs->random_signal check,
1702 along with FRAME and GDBARCH re-fetching.
1703
1704 2013-10-28 Pedro Alves <palves@redhat.com>
1705
1706 * infrun.c (switch_back_to_stepped_thread): New function, factored
1707 out from handle_inferior_event.
1708 (handle_inferior_event): Adjust to call
1709 switch_back_to_stepped_thread. Call it also at the tail of the
1710 random signal handling, and return, instead of also handling
1711 random signals just before the stepping tests.
1712
1713 2013-10-28 Pedro Alves <palves@redhat.com>
1714
1715 * infrun.c (clear_stop_func): Delete.
1716 (handle_inferior_event): Don't call clear_stop_func and don't
1717 clear 'ecs->random_signal'.
1718
1719 2013-10-27 Yao Qi <yao@codesourcery.com>
1720
1721 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1722 (varobj_create, varobj_get_path_expr): Update.
1723 (varobj_value_has_mutated, varobj_update): Likewise.
1724 (create_child_with_value, new_root_variable): Likewise.
1725 (number_of_children, name_of_variable): Likewise.
1726 (value_of_child, my_value_of_variable): Likewise.
1727 (varobj_value_is_changeable_p): Likewise.
1728
1729 2013-10-25 Yao Qi <yao@codesourcery.com>
1730
1731 * language.h (struct lang_varobj_ops): Declare.
1732 (struct language_defn) <la_varobj_ops>: New field.
1733 * ada-lang.c: Include "varobj.h"
1734 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1735 ada_varobj_ops.
1736 * c-lang.c: Include "varobj.h"
1737 (c_language_defn): Initialize field 'la_varobj_ops' with
1738 c_varobj_ops.
1739 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1740 cplus_varobj_ops.
1741 (asm_language_defn): Initialize field 'la_varobj_ops' with
1742 default_varobj_ops.
1743 (minimal_language_defn): Likewise.
1744 * d-lang.c (d_language_defn): Likewise.
1745 * f-lang.c (f_language_defn): Likewise.
1746 * go-lang.c (go_language_defn): Likewise.
1747 * m2-lang.c (m2_language_defn): Likewise.
1748 * objc-lang.c (objc_language_defn): Likewise.
1749 * opencl-lang.c (opencl_language_defn): Likewise.
1750 * p-lang.c (pascal_language_defn): Likewise.
1751 * language.c (unknown_language_defn): Likewise.
1752 (auto_language_defn): Likewise.
1753 (local_language_defn): Likewise.
1754 * jv-lang.c (java_language_defn): Initialize field
1755 'la_varobj_ops' with java_varobj_ops.
1756 * varobj.c (varobj_create): Update.
1757 * varobj.h (default_varobj_ops): Define macro.
1758
1759 2013-10-25 Pedro Alves <palves@redhat.com>
1760
1761 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1762 static field value.
1763 (cp_print_static_field): If the value is entirely optimized out,
1764 print <optimized out> here.
1765 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1766 static field value.
1767 * p-valprint.c (pascal_object_print_static_field): If the value is
1768 entirely optimized out, print <optimized out> here.
1769 * valops.c (do_search_struct_field)
1770 (value_struct_elt_for_reference): No longer handle a NULL static
1771 field value.
1772 * value.c (value_static_field): Return an optimized out value
1773 instead of NULL.
1774
1775 2013-10-25 Yao Qi <yao@codesourcery.com>
1776
1777 * remote.c (remote_traceframe_info): Return early if
1778 traceframe is not selected.
1779
1780 2013-10-25 Yao Qi <yao@codesourcery.com>
1781
1782 * tracepoint.c (traceframe_fun): Remove.
1783 (traceframe_sal): Remove.
1784 (set_traceframe_context): Add local variables.
1785
1786 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1787
1788 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1789 and parameter name.
1790
1791 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1792
1793 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1794 failure from register information collection.
1795
1796 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1797
1798 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1799 member.
1800 (linux_corefile_thread_callback): Update accordingly.
1801 (linux_make_corefile_notes): Likewise.
1802
1803 2013-10-24 Pedro Alves <palves@redhat.com>
1804
1805 * NEWS (New options): Mention set/show startup-with-shell.
1806 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1807 instead of 3.
1808 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1809 startup-with-shell'.
1810 (show_startup_with_shell): New function.
1811 (_initialize_fork_child): Register the set/show startup-with-shell
1812 commands.
1813 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1814 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1815 * procfs.c (procfs_init_inferior): Remove comment.
1816 * infcmd.c (startup_with_shell): New global.
1817 * inferior.h (startup_with_shell): Declare global.
1818 (STARTUP_WITH_SHELL): Delete.
1819 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1820
1821 2013-10-23 Pedro Alves <palves@redhat.com>
1822
1823 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1824 * common/signals.c: Include "gdb_assert.h".
1825 (signals): New field 'symbol'.
1826 (SET): Use the 'symbol' parameter.
1827 (gdb_signal_to_symbol_string): New function.
1828 * infrun.c (handle_inferior_event) <random signal>: In debug
1829 output, print the random signal enum as string in addition to its
1830 number.
1831 * target/waitstatus.c (target_waitstatus_to_string): Print the
1832 signal's enum value as string instead of the (POSIX) signal name.
1833
1834 2013-10-23 Gary Benson <gbenson@redhat.com>
1835
1836 PR 16013
1837 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1838 from 32 to 18. Adjusted fscanf format string accordingly.
1839 (Avoids leaving cmd unterminated.)
1840 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1841 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1842 that local_address and remote_address will not overflow.
1843 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1844 leaving dependencies unterminated. Parse size as "%u" to match
1845 definition.
1846
1847 2013-10-22 Pedro Alves <palves@redhat.com>
1848
1849 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1850 set ecs->random signal.
1851
1852 2013-10-22 Pedro Alves <palves@redhat.com>
1853
1854 * infrun.c (keep_going): Update comments.
1855
1856 2013-10-22 Pedro Alves <palves@redhat.com>
1857
1858 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1859 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1860
1861 2013-10-22 Pedro Alves <palves@redhat.com>
1862
1863 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1864 GDB_EXC_BAD_ACCESS.
1865 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1866 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1867 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1868 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1869 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1870 (GDB_SIGNAL_LAST): Change description string.
1871 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1872 Adjust to signal renaming.
1873 * darwin-nat.c (darwin_decode_message): Likewise.
1874
1875 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1876
1877 * MAINTAINERS (Write After Approval): Add myself to the list.
1878
1879 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1880
1881 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1882 forced off, downgrade them to software watchpoints if possible,
1883 and error out if not possible.
1884 (watch_command_1): Move watchpoint type selection closer to
1885 watchpoint creation, and extend the comments.
1886
1887 2013-10-18 Pedro Alves <palves@redhat.com>
1888
1889 PR gdb/16062
1890 * infrun.c (handle_inferior_event): Keep going if we got a random
1891 signal we should not stop for, instead of falling through to the
1892 step tests.
1893
1894 2013-10-18 Yao Qi <yao@codesourcery.com>
1895
1896 * c-varobj.c (cplus_number_of_children): Fix indentation.
1897
1898 2013-10-17 Tom Tromey <tromey@redhat.com>
1899
1900 PR gdb/15995:
1901 * printcmd.c (printcmd): Call gdb_flush.
1902
1903 2013-10-17 Tom Tromey <tromey@redhat.com>
1904
1905 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
1906 (elf_locate_sections): Update.
1907
1908 2013-10-17 Yao Qi <yao@codesourcery.com>
1909
1910 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1911 * ada-varobj.c: Remove the include of ada-varobj.h.
1912 (ada_varobj_get_number_of_children): Declare.
1913 (ada_varobj_get_name_of_child): Make it static.
1914 (ada_varobj_get_path_expr_of_child): Likewise.
1915 (ada_varobj_get_value_of_child): Likewise.
1916 (ada_varobj_get_type_of_child): Likewise.
1917 (ada_varobj_get_value_of_array_variable): Likewise.
1918 * ada-varobj.h: Remove.
1919
1920 2013-10-17 Yao Qi <yao@codesourcery.com>
1921
1922 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
1923 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
1924 * ada-varobj.c: Include "varobj.h".
1925 (ada_number_of_children): New. Moved from varobj.c.
1926 (ada_name_of_variable, ada_name_of_child): Likewise.
1927 (ada_path_expr_of_child, ada_value_of_child): Likewise.
1928 (ada_type_of_child, ada_value_of_variable): Likewise.
1929 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
1930 (ada_varobj_ops): New.
1931 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
1932 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
1933 * gdbtypes.h (get_target_type): Declare.
1934 * varobj.c: Remove the inclusion of "ada-varobj.h" and
1935 "ada-lang.h".
1936 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
1937 (ANONYMOUS_UNION_NAME): Likewise.
1938 (get_type, get_value_type, get_target_type): Remove declarations.
1939 (value_get_print_value, varobj_value_get_print_value): Likewise.
1940 (c_number_of_children, c_name_of_variable): Likewise.
1941 (c_name_of_child, c_path_expr_of_child): Likewise.
1942 (c_value_of_child, c_type_of_child): Likewise.
1943 (c_value_of_variable, cplus_number_of_children): Likewise.
1944 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1945 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1946 (cplus_value_of_child, cplus_type_of_child): Likewise.
1947 (cplus_value_of_variable, java_number_of_children): Likewise.
1948 (java_name_of_variable, java_name_of_child): Likewise.
1949 (java_path_expr_of_child, java_value_of_child): Likewise.
1950 (java_type_of_child, java_value_of_variable): Likewise.
1951 (ada_number_of_children, ada_name_of_variable): Likewise.
1952 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1953 (ada_value_of_child, ada_type_of_child): Likewise.
1954 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1955 (ada_value_has_mutated): Likewise.
1956 (struct language_specific): Move it to varobj.h.
1957 (CPLUS_FAKE_CHILD): Move it to varobj.h.
1958 (restrict_range): Rename it varobj_restrict_range. Make it extern.
1959 Callers update.
1960 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
1961 Make it extern.
1962 (is_anonymous_child): Move it to c-varobj.c and rename to
1963 varobj_is_anonymous_child. Caller update.
1964 (get_type): Move it to c-varobj.c.
1965 (get_value_type): Rename it varobj_get_value_type. Make it
1966 extern.
1967 (get_target_type): Move it gdbtypes.c.
1968 (varobj_formatted_print_options): New function.
1969 (value_get_print_value): Rename it to
1970 varobj_value_get_print_value and make it extern.
1971 (varobj_value_is_changeable_p): Make it extern.
1972 (adjust_value_for_child_access): Move it to c-varobj.c.
1973 (default_value_is_changeable_p): Rename it to
1974 varobj_default_value_is_changeable_p. Make it extern.
1975 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
1976 (c_name_of_child, c_path_expr_of_child): Likewise.
1977 (c_value_of_child, c_type_of_child): Likewise.
1978 (c_value_of_variable, cplus_number_of_children): Likewise.
1979 (cplus_class_num_children, cplus_name_of_variable): Likewise.
1980 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
1981 (cplus_value_of_child, cplus_type_of_child): Likewise.
1982 (cplus_value_of_variable): Likewise.
1983 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
1984 (java_name_of_child, java_path_expr_of_child): Likewise.
1985 (java_value_of_child, java_type_of_child): Likewise.
1986 (java_value_of_variable): Likewise.
1987 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
1988 (ada_name_of_child, ada_path_expr_of_child): Likewise.
1989 (ada_value_of_child, ada_type_of_child): Likewise.
1990 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
1991 (ada_value_has_mutated): Likewise.
1992 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
1993 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
1994 (c_varobj_ops, cplus_varobj_ops): Declare.
1995 (java_varobj_ops, ada_varobj_ops): Declare.
1996 (varobj_default_value_is_changeable_p): Declare.
1997 (varobj_value_is_changeable_p): Declare.
1998 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
1999 (varobj_get_path_expr_parent): Declare.
2000 (varobj_value_get_print_value): Declare.
2001 (varobj_formatted_print_options): Declare.
2002 (varobj_restrict_range): Declare.
2003
2004 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2005
2006 * target/waitstatus.h (target_waitkind): Remove spurious
2007 character from the comments.
2008
2009 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2010
2011 * gdbarch.sh (get_longjmp_target): Add method documentation.
2012 * gdbarch.h: Regenerate.
2013
2014 2013-10-16 Tom Tromey <tromey@redhat.com>
2015
2016 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2017 label.
2018
2019 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2020
2021 * gcore.in: Call GDB using the full path to the gcore script.
2022 Error out if the GDB binary is not found.
2023
2024 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2025
2026 PR gdb/16014
2027 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2028 sizeof.
2029
2030 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2031
2032 PR gdb/16042
2033 * target.c (target_disable_btrace): Fix invalid return value for
2034 void function.
2035 (target_teardown_btrace): Likewise.
2036
2037 2013-10-14 Yao Qi <yao@codesourcery.com>
2038
2039 * varobj.c (struct varobj): Move most of the fields to
2040 varobj.h.
2041 (struct varobj_dynamic): New struct.
2042 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2043 (varobj_has_more): Likewise.
2044 (dynamic_varobj_has_child_method): Likewise.
2045 (update_dynamic_varobj_children): Likewise.
2046 (varobj_get_num_children): Likewise.
2047 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2048 (install_new_value_visualizer): Likewise.
2049 (install_new_value_visualizer, install_new_value): Likewise.
2050 (varobj_update, new_variable, free_variable): Likewise.
2051 (my_value_of_variable, value_get_print_value): Likewise.
2052 (install_visualizer): Change the type of parameter 'var' to
2053 'struct varobjd_dynamic *'. Callers update.
2054 * varobj.h (struct varobj): Moved from varobj.c.
2055 (struct varobj) <dynamic>: New field.
2056
2057 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2058
2059 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2060 as the preferred name of r30.
2061 * nios2-linux-tdep.c (reg_offsets): Likewise.
2062 * features/nios2-cpu.xml: Likewise.
2063 * features/nios2-linux.c: Regenerated.
2064 * features/nios2.c: Regenerated.
2065 * regformats/nios2-linux.dat: Regenerated.
2066
2067 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 Canonicalize directories for EXEC_FILENAME.
2070 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2071 exec_filename.
2072 * utils.c (gdb_realpath_keepfile): New function.
2073 * utils.h (gdb_realpath_keepfile): New declaration.
2074
2075 2013-10-11 Doug Evans <dje@google.com>
2076
2077 * Makefile.in (GDBFLAGS): New variable.
2078 (run): New rule.
2079
2080 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2081
2082 * NEWS: Add entry documenting the new "-catch-assert" and
2083 "-catch-exception" GDB/MI commands.
2084
2085 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2086
2087 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2088 "enabled".
2089 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2090 "enabled". Set B->ENABLE_STATE accordingly.
2091 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2092 ada-lang.c.
2093 (create_ada_exception_catchpoint): Add declaration.
2094 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2095 (create_ada_exception_catchpoint): Make non-static. Add new
2096 parameter "disabled". Use it in call to
2097 init_ada_exception_breakpoint.
2098 (catch_ada_exception_command): Add parameter "enabled" in call
2099 to create_ada_exception_catchpoint.
2100 (catch_assert_command): Likewise.
2101
2102 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2103 Add declarations.
2104 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2105 "catch-exception" commands.
2106 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2107 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2108
2109 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2110
2111 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2112 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2113 of all its enumerates with "ada_". Update the rest of this
2114 file throughout.
2115
2116 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2117
2118 * ada-lang.c (ada_decode_exception_location): Delete.
2119 (create_ada_exception_catchpoint): Remove arguments "sal",
2120 "addr_string" and "ops". Add argument "ex_kind" instead.
2121 Adjust implementation accordingly, calling ada_exception_sal
2122 to get the entities it no longer gets passed as arguments.
2123 Document the function's arguments.
2124 (catch_ada_exception_command): Use catch_ada_exception_command_split
2125 instead of ada_decode_exception_location, and update call to
2126 create_ada_exception_catchpoint.
2127 (catch_ada_assert_command_split): Renames
2128 ada_decode_assert_location. Remove parameters "addr_string" and
2129 "ops", and now returns void. Adjust implementation accordingly.
2130 Update the function documentation.
2131 (catch_assert_command): Use catch_ada_assert_command_split
2132 instead of ada_decode_assert_location. Update call to
2133 create_ada_exception_catchpoint.
2134
2135 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2136
2137 * utils.h (perror_warning_with_name): Add declaration.
2138 * utils.c (perror_warning_with_name): New function.
2139 * cli/cli-cmds.c (source_script_with_search): Add call to
2140 perror_warning_with_name if from_tty is nul.
2141
2142 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2143
2144 * utils.c (perror_string): New function, extracted out of
2145 throw_perror_with_name.
2146 (throw_perror_with_name): Rework to use perror_string.
2147
2148 2013-10-11 Yao Qi <yao@codesourcery.com>
2149
2150 * remote.c (discard_pending_stop_replies_in_queue): Update
2151 declaration.
2152 (struct stop_reply) <rs>: New field.
2153 (remove_stop_reply_of_remote_state): New function.
2154 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2155 Callers update. Pass remove_stop_reply_of_remote_state to
2156 QUEUE_iterate.
2157 (remote_parse_stop_reply): Initialize field 'rs'.
2158
2159 2013-10-10 Will Newton <will.newton@linaro.org>
2160
2161 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2162 linux_init_abi.
2163
2164 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2165
2166 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2167 serial_baud_show_cmd.
2168 (_initialize_cli_cmds): Delete the code creating the
2169 "set/show remotebaud" commands.
2170 * serial.c (baud_rate): Move here from top.c.
2171 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2172 (_initialize_serial): Create "set/show serial baud" commands.
2173 Add "set/show remotebaud" command aliases.
2174 * top.c (baud_rate): Moved to serial.c.
2175 * NEWS: Document the new "set/show serial baud" commands,
2176 replacing "set/show remotebaud".
2177
2178 2013-10-09 Pedro Alves <palves@redhat.com>
2179
2180 * breakpoint.c (insert_bp_location): Use memory_error_message to
2181 build the memory error string.
2182 * c-lang.c: Include "gdbcore.h".
2183 (c_get_string): Use memory_error to throw error.
2184 (target_xfer_memory_error): Delete.
2185 (memory_error_message): New, factored out from
2186 target_xfer_memory_error.
2187 (memory_error): Change parameter type to target_xfer_error.
2188 Rewrite.
2189 (read_memory): Use memory_error instead of
2190 target_xfer_memory_error.
2191 * gdbcore.h: Include "target.h".
2192 (memory_error): Change parameter type to target_xfer_error.
2193 (memory_error_message): Declare function.
2194 * target.c (target_read_memory, target_read_stack)
2195 (target_write_memory, target_write_raw_memory): Return
2196 TARGET_XFER_E_IO on error. Adjust comments.
2197 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2198 instead of EIO.
2199 * target.h (target_read, target_insert_breakpoint)
2200 (target_remove_breakpoint): Adjust comments.
2201 * valprint.c (partial_memory_read): Rename parameter, and adjust
2202 comment.
2203 (val_print_string): Use memory_error_message to build the memory
2204 error string.
2205
2206 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2209 result variable. Rename variable fopen_e_ever_failed to
2210 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2211
2212 2013-10-09 Pedro Alves <palves@redhat.com>
2213
2214 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2215 (monitor_write_memory_longlongs, monitor_write_memory_block):
2216 Constify 'myaddr' parameter.
2217 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2218 helper.
2219 (monitor_xfer_partial): New function.
2220 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2221 hook. Install a to_xfer_partial hook.
2222
2223 2013-10-09 Tom Tromey <tromey@redhat.com>
2224
2225 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2226 bfd_get_alt_debug_link_info.
2227
2228 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 New flag OBJF_NOT_FILENAME.
2231 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2232 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2233 allocate_objfile.
2234 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2235 symbol_file_add_from_bfd.
2236 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2237 allocate_objfile.
2238 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2239 NULL.
2240 * objfiles.h (OBJF_NOT_FILENAME): New.
2241
2242 2013-10-08 Tom Tromey <tromey@redhat.com>
2243
2244 * Makefile.in (SFILES): Add build-id.c.
2245 (HFILES_NO_SRCDIR): Add build-id.h.
2246 * build-id.c: New file, largely from elfread.c. Modified
2247 most functions.
2248 * build-id.h: New file.
2249 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2250 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2251 Search for dwz file using build-id.
2252 * elfread.c (build_id_bfd_get, build_id_verify)
2253 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2254
2255 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2256
2257 * ada-lang.c (compare_names_with_case): Renamed from
2258 compare_names, adding a new parameter "casing" and its handling.
2259 New function documentation.
2260 (compare_names): New function, implemented using
2261 compare_names_with_case.
2262
2263 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2264
2265 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2266
2267 2013-10-07 Tom Tromey <tromey@redhat.com>
2268
2269 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2270 demangled_names_hash.
2271 (free_objfile): Don't delete the demangled_names_hash.
2272 * objfiles.h (struct objfile_per_bfd_storage)
2273 <demangled_names_hash>: New field.
2274 (struct objfile) <demangled_names_hash>: Move to
2275 objfile_per_bfd_storage.
2276 * symfile.c (reread_symbols): Don't delete the
2277 demangled_names_hash.
2278 * symtab.c (create_demangled_names_hash): Update.
2279 (symbol_set_names): Update.
2280
2281 2013-10-07 Tom Tromey <tromey@redhat.com>
2282
2283 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2284 needs_relocations>: New fields.
2285 (gdb_bfd_requires_relocations): New function.
2286 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2287 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2288 the BFD needs relocations applied.
2289
2290 2013-10-07 Pedro Alves <palves@redhat.com>
2291
2292 PR breakpoints/11568
2293 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2294 the thread list" instead of "gone".
2295
2296 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2297
2298 * NEWS: Mention new convenience variable $_exitsignal.
2299 * corelow.c (core_open): Reset exit convenience variables. Set
2300 $_exitsignal to the uncaught signal which generated the corefile.
2301 * infrun.c (handle_inferior_event): Reset exit convenience
2302 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2303 (clear_exit_convenience_vars): New function.
2304 * inferior.h (clear_exit_convenience_vars): New prototype.
2305
2306 2013-10-06 Yao Qi <yao@codesourcery.com>
2307
2308 * varobj.h: Add comments to enum varobj_languages.
2309
2310 2013-10-04 Doug Evans <dje@google.com>
2311
2312 Add support for DWP file format version 2.
2313 * NEWS: Mention support for DWP file format version 2.
2314 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2315 union of asection, containing_section. New fields virtual_offset
2316 and is_virtual. Change type of readin filed from int to char.
2317 (dwo_sections, dwo_file): Tweak comments.
2318 (dwp_v2_section_ids): New enum.
2319 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2320 str_offsets, types.
2321 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2322 All uses updated.
2323 (virtual_v2_dwo_sections): New struct.
2324 (dwp_hash_table): New fields version, nr_columns. Change type of
2325 section_pool field to a union.
2326 (dwp_file): New field version.
2327 (dwarf2_has_info): Check for virtual sections.
2328 (get_containing_section): New function.
2329 (get_section_bfd_owner, get_section_bfd_section): Call it.
2330 (dwarf2_locate_sections): Update.
2331 (dwarf2_section_empty_p): Update.
2332 (dwarf2_read_section): Handle virtual sections.
2333 (locate_dwz_sections): Update.
2334 (create_dwp_hash_table): Document and handle V2 format.
2335 (locate_v1_virtual_dwo_sections): Renamed from
2336 locate_virtual_dwo_sections and update. All callers updated.
2337 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2338 Delete arg htab. Rename arg section_index to unit_index.
2339 All callers updated.
2340 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2341 All uses updated.
2342 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2343 (lookup_dwo_unit_in_dwp): Add V2 support.
2344 (dwarf2_locate_dwo_sections): Update.
2345 (dwarf2_locate_common_dwp_sections): Renamed from
2346 dwarf2_locate_dwp_sections and update. All callers updated.
2347 (dwarf2_locate_v2_dwp_sections): New function.
2348 (open_and_init_dwp_file): Add V2 support.
2349 (read_str_index): New locals str_section, str_offsets_section.
2350
2351 2013-10-04 Pedro Alves <palves@redhat.com>
2352
2353 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2354 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2355 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2356 describing comments with references to ptid.h.
2357 * common/ptid.h: Remove intro description of constructors,
2358 accessors and predicates.
2359 (struct ptid): Reformat.
2360 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2361 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2362 describing comments.
2363
2364 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2365
2366 * aix-thread.c (sync_threadlists): Add missing ')' in call
2367 to ptid_build.
2368
2369 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2370
2371 * procfs.c (procfs_init_inferior): Fix typo causing the build
2372 to fail.
2373
2374 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2375
2376 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2377
2378 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2379
2380 * mi/mi-main.c (run_one_inferior): Add function description.
2381 Make ARG a pointer to an integer whose value determines whether
2382 we should "run" or "start" the program.
2383 (mi_cmd_exec_run): Add handling of the "--start" option.
2384 Reject all other command-line options.
2385 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2386
2387 2013-10-04 Yao Qi <yao@codesourcery.com>
2388
2389 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2390 (struct notif_client) <pending_event>: Moved
2391 to struct remote_notif_state.
2392 <id>: New field.
2393 (struct remote_notif_state) <pending_event>: New field.
2394 (notif_event_xfree): Declare.
2395 * remote-notif.c (handle_notification): Adjust.
2396 (notif_event_xfree): New function.
2397 (do_notif_event_xfree): Call notif_event_xfree.
2398 (remote_notif_state_xfree): Call notif_event_xfree to free
2399 each element in field pending_event.
2400 * remote.c (discard_pending_stop_replies): Remove declaration.
2401 (discard_pending_stop_replies_in_queue): Declare.
2402 (remote_close): Call discard_pending_stop_replies_in_queue
2403 instead of discard_pending_stop_replies.
2404 (remote_start_remote): Adjust.
2405 (stop_reply_xfree): Call notif_event_xfree.
2406 (notif_client_stop): Adjust initialization.
2407 (remote_notif_remove_all): Rename it to ...
2408 (remove_stop_reply_for_inferior): ... this. Update comments.
2409 Don't check INF is NULL.
2410 (discard_pending_stop_replies): Return early if notif_state is
2411 NULL. Adjust. Don't check INF is NULL.
2412 (remote_notif_get_pending_events): Adjust.
2413 (discard_pending_stop_replies_in_queue): New function.
2414 (remote_wait_ns): Likewise.
2415
2416 2013-10-04 Yao Qi <yao@codesourcery.com>
2417
2418 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2419 (notif_queue): Remove.
2420 (remote_notif_process): Add one parameter 'notif_queue'.
2421 Update comments. Callers update.
2422 (remote_async_get_pending_events_token): Remove.
2423 (remote_notif_register_async_event_handler): Remove.
2424 (remote_notif_unregister_async_event_handler): Remove.
2425 (handle_notification): Add parameter 'notif_queue'. Update
2426 comments. Callers update.
2427 (notif_xfree): Remove.
2428 (remote_notif_state_allocate): New function.
2429 (remote_notif_state_xfree): New function.
2430 (_initialize_notif): Remove code to allocate queue.
2431 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2432 (struct remote_notif_state): New.
2433 (handle_notification): Update declaration.
2434 (remote_notif_process): Likewise.
2435 (remote_notif_register_async_event_handler): Remove.
2436 (remote_notif_unregister_async_event_handler): Remove.
2437 (remote_notif_state_allocate): Declare.
2438 (remote_notif_state_xfree): Declare.
2439 * remote.c (struct remote_state) <notif_state>: New field.
2440 (remote_close): Don't call
2441 remote_notif_unregister_async_event_handler. Call
2442 remote_notif_state_xfree.
2443 (remote_open_1): Don't call
2444 remote_notif_register_async_event_handler. Call
2445 remote_notif_state_allocate.
2446
2447 2013-10-04 Yao Qi <yao@codesourcery.com>
2448
2449 * varobj.c (create_child_with_value): Remove 'const' from the
2450 type of parameter 'name'.
2451 (varobj_add_child): Likewise.
2452 (install_dynamic_child): Remove 'const' from the type of
2453 parameter 'name'.
2454 (varobj_add_child): Likewise.
2455 (create_child_with_value): Likewise. Update comments. Don't
2456 duplicate 'name'.
2457 (update_dynamic_varobj_children): Duplicate 'name'
2458 and pass it to install_dynamic_child.
2459
2460 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2461
2462 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2463 conversion logic to occur after PyLong_Check. Comment on order
2464 change significance.
2465 * python/py-arch.c (archpy_disassemble): Comment on order of
2466 conversion for integers and longs.
2467
2468 2013-10-03 Pedro Alves <palves@redhat.com>
2469
2470 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2471 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2472 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2473 PTRACE_O_TRACEFORK is not supported.
2474 (linux_test_for_tracesysgood): New function.
2475 (linux_test_for_tracefork): New function, factored out from
2476 linux_check_ptrace_features, and also don't kill child_pid here.
2477
2478 2013-10-03 Tristan Gingold <gingold@adacore.com>
2479
2480 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2481 Remove verbose error reporting. Use detected state to
2482 thread_set_state call.
2483 (i386_darwin_dr_get): Fix return type. Remove verbose error
2484 report.
2485 Remove trailing spaces.
2486
2487 2013-10-02 Pedro Alves <palves@redhat.com>
2488
2489 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2490 val_print_optimized_out.
2491 * jv-valprint.c (java_print_value_fields): Likewise.
2492 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2493 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2494 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2495 new optimized out value.
2496 * findvar.c (address_from_register): Likewise.
2497 * frame.c (put_frame_register): Tweak error string to say the
2498 register was not saved, rather than optimized out.
2499 * infcmd.c (default_print_one_register_info): Adjust call to
2500 val_print_optimized_out. Use value_of_register instead of
2501 get_frame_register_value.
2502 * mi/mi-main.c (output_register): Use value_of_register instead of
2503 get_frame_register_value.
2504 * valprint.c (valprint_check_validity): Likewise.
2505 (val_print_optimized_out): New value parameter. If the value is
2506 lval_register, print <not saved> instead.
2507 (value_check_printable, val_print_scalar_formatted): Adjust calls
2508 to val_print_optimized_out.
2509 * valprint.h (val_print_optimized_out): New value parameter.
2510 * value.c (struct value) <optimized_out>: Extend comment.
2511 (error_value_optimized_out): New function.
2512 (require_not_optimized_out): Use it. Use a different string for
2513 lval_register values.
2514 * value.h (error_value_optimized_out): New declaration.
2515 * NEWS: Mention <not saved>.
2516
2517 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2518
2519 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2520 strcmp to compare two symtab filenames.
2521
2522 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2523
2524 * symtab.c (search_symbols_equal): Delete.
2525 (sort_search_symbols_remove_dups): Replace call to
2526 search_symbols_equal by call to compare_search_syms,
2527 adjusting as necessary.
2528
2529 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2530
2531 PR python/15579
2532 * python/python.c: Document gdb.execute command in Python help.
2533
2534 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2535
2536 * python/py-frame.c (frame_info_to_frame_object): Use
2537 gdbpy_convert_exception. Clean up Python object on failure.
2538
2539 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2540
2541 * python/lib/gdb/command/frame_filters.py
2542 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2543 (ShowFrameFilterPriority.invoke): Ditto.
2544
2545 2013-10-01 Keith Seitz <keiths@redhat.com>
2546
2547 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2548 (parse_linespec): Make 'argptr' const.
2549 Remove temporary cast of 'argptr' to const char **.
2550 (decode_line_full): Pass const pointer to parse_linespec.
2551 (decode_line_1): Likewise.
2552 (decode_objc): Make local variable 'new_argptr' const.
2553 (find_function_symbols): Remove temporary cast to char *
2554 to find_imps.
2555 * objc-lang.c (find_imps): Make argument 'method' const.
2556 Return const.
2557 * objc-lang.h (find_imps): Likewise.
2558
2559 2013-10-01 Keith Seitz <keiths@redhat.com>
2560
2561 * completer.c (skip_quoted_chars): Make all arguments const.
2562 Return const.
2563 (skip_quoted): Likewise.
2564 * completer.h (skip_quoted_chars): Likewise.
2565 (skip_quoted): Likewise.
2566 * defs.h (skip_quoted): Remove duplicate declaration.
2567 * jv-exp.y: Include completer.h.
2568 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2569 * p-exp.y: Include completer.h.
2570
2571 2013-10-01 Keith Seitz <keiths@redhat.com>
2572
2573 * c-exp.y (parse_number): Make first argument const.
2574 Make a copy of the input to manipulate.
2575 (c_parse_escape): Make first argument const.
2576 Make local variable 'tokptr' const.
2577 (parse_string_or_char): Make first two arguments const.
2578 (macro_original_text): Make const.
2579 (lex_one_token): Make local variable 'tokstart' const.
2580 Likewise for local variables named 'p'.
2581 Cast away const for struct stoken (temporary).
2582 * c-lang.h (c_parse_escpae): Make first argument const.
2583 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2584 const.
2585 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2586 var_string case.
2587 * f-exp.y (parse_number): Make first argument const.
2588 (match_string_literal): Make local variable 'tokstart'
2589 const.
2590 (yylex): Make local variable 'p' const.
2591 Cast away const for struct stoken (temporary).
2592 * go-exp.y (parse_number): Make first argument const.
2593 (parse_string_or_char): Likewise.
2594 Make local variable 'tokstart' const.
2595 (lex_one_token): Likewise for numerous locals called 'p'.
2596 Cast away const for struct stoken (temporary).
2597 * jv-exp.y (parse_number): Make first argument const.
2598 Make local variables 'tokstart' and 'tokptr' const.
2599 Cast away const for call to skip_quoted (temporary).
2600 (yylex): Make local variable 'p' const.
2601 Cast away const for struct stoken (temporary).
2602 * m2-exp.y (parse_number): Make local variable 'p' const.
2603 (yylex): Likewise for 'tokstart'.
2604 Cast away const for struct stoken (temporary).
2605 Make local variable 'p' const.
2606 * macroexp.c (get_character_constant): Pass a const string
2607 to c_parse_escape.
2608 (get_string_literal): Likewise.
2609 (macro_expand_next): Make first argument const.
2610 Cast away const for init_shared_buffer.
2611 * macroexp.h (macro_expand_next): Make first argument const.
2612 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2613 Pass a const string to c_parse_escape.
2614 Make local variables 'p' and 'namestart' const.
2615 * parse.c (lexptr): Make const.
2616 (prev_lexptr): Likewise.
2617 (find_template_name_end): Return const.
2618 Make argument const, too.
2619 (parse_exp_in_context): Make first argument const.
2620 Remove the entire const_hack.
2621 (parse_exp_in_context_1): Make first argument const.
2622 * parser-defs.h (find_template_name_end): Return const.
2623 Make argument const, too.
2624 (lexptr): Make const.
2625 (prev_lexptr): Likewise.
2626 * utils.c (parse_escape): Make second argument const.
2627 * utils.h (parse_escape): Likewise.
2628
2629 2013-10-01 Keith Seitz <keiths@redhat.com>
2630
2631 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2632 is now const.
2633 (block_lookup): Make 'raw_name' and 'name' const.
2634 * ada-lex.l (processString): Update for struct stoken.ptr.
2635 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2636 (operator_stoken): Likewise.
2637 (lex_one_token): Remove temporary cast to char * for
2638 'yylval.sval.ptr'.
2639 * f-exp.y (yylex): Likewise.
2640 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2641 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2642 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2643 'yylval.sval.ptr'.
2644 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2645 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2646 * linespec.c (struct ls_parser): Make 'stream' const.
2647 (find_parameter_list_end): Make argument 'input' and local
2648 variable 'p' const.
2649 (linespec_lexer_lex_string): Make local variables 'start' and
2650 'p' const.
2651 Use skip_spaces_const instead of skip_spaces.
2652 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2653 const.
2654 (parse_linespec): Temporarily cast 'argptr' to const for
2655 'parser->lexer.stream'.
2656 * m2-exp.y (yylex): Remove temporary cast to char * for
2657 'yylval.sval.ptr'.
2658 * objc-lang.c (add_msglist): Make local variable 'p' const.
2659 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2660 (exp : STRING): Make 'sp' const.
2661 (parse_number): Make argument 'p' const.
2662 * parser-defs.h (struct stoken): Make 'ptr' const.
2663
2664 2013-10-01 Doug Evans <dje@google.com>
2665
2666 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2667
2668 2013-10-01 Yao Qi <yao@codesourcery.com>
2669
2670 * varobj.c (c_value_of_root): Remove declaration.
2671 (cplus_value_of_root, java_value_of_root): Likewise.
2672 (ada_value_of_root): Likewise.
2673 (struct language_specific) <value_of_root>: Remove.
2674 (languages): Update initialization.
2675 (check_scope): Move earlier.
2676 (c_value_of_root): Move earlier and rename to ...
2677 (value_of_root_1): ... this.
2678 (value_of_root): Caller update.
2679 (cplus_value_of_root, java_value_of_root): Remove.
2680 (ada_value_of_root): Remove.
2681
2682 2013-10-01 Yao Qi <yao@codesourcery.com>
2683
2684 * varobj.c (varobj_format_string): Remove "unknown".
2685 (languages): Remove the first element.
2686 * varobj.h (enum varobj_languages): Remove vlang_c.
2687
2688 2013-10-01 Yao Qi <yao@codesourcery.com>
2689
2690 * varobj.c (struct language_specific) <language>: Remove.
2691 (languages): Update the initialization.
2692
2693 2013-10-01 Yao Qi <yao@codesourcery.com>
2694
2695 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2696 "solib-target.h". Include "windows-tdep.h".
2697 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2698 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2699 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2700 windows-tdep.o to gdb_target_obs.
2701
2702 2013-10-01 Yao Qi <yao@codesourcery.com>
2703
2704 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2705 "solib-target.h".
2706 (amd64_windows_init_abi): Don't call set_solib_ops and
2707 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2708 windows_init_abi instead.
2709 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2710 "solib-target.h".
2711 (i386_cygwin_init_abi): Don't call set_solib_ops,
2712 set_gdbarch_has_dos_based_file_system and
2713 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2714 windows_init_abi instead.
2715 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2716 (windows_init_abi): New function.
2717 (windows_iterate_over_objfiles_in_search_order): Make it
2718 static.
2719 * windows-tdep.h (windows_init_abi): Declare.
2720 (windows_iterate_over_objfiles_in_search_order): Remove
2721 declaration.
2722
2723 2013-10-01 Jerome Guitton <guitton@adacore.com>
2724
2725 Checked in by Joel Brobecker <brobecker@adacore.com>
2726 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2727 incomplete dictionnary instead of None in case of missing
2728 environment variables.
2729 (elinos_init): in case of an incomplete environment, best
2730 effort to load system libraries instead of abort.
2731
2732 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2733
2734 * ada-lang.c (ada_has_this_exception_support): Ignore
2735 mst_solib_trampoline minimal symbols.
2736
2737 2013-09-30 Tristan Gingold <gingold@adacore.com>
2738
2739 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2740 hardware watchpoint.
2741 (i386_darwin_dr_set): Support 32 and 64 bit states.
2742 (i386_darwin_dr_get): Likewise.
2743 (i386_darwin_dr_set_control): Make static.
2744 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2745 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2746
2747 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2748
2749 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2750 Replace TIDGET with ptid_get_lwp.
2751 Replace GET_LWP with ptid_get_lwp.
2752 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2753 Replace BUILD_THREAD with ptid_build.
2754 Replace BUILD_LWP with ptid_build.
2755 Replace PIDGET with ptid_get_pid.
2756 Replace TIDGET with ptid_get_lwp.
2757 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2758 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2759 Replace TIDGET with ptid_get_lwp.
2760 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2761 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2762 Replace TIDGET with ptid_get_lwp.
2763 Replace GET_LWP with ptid_get_lwp.
2764 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2765 * auxv.c: Likewise.
2766 * breakpoint.c: Likewise.
2767 * common/ptid.c (ptid_is_pid): Condense check for
2768 null_ptid and minus_one_ptid.
2769 (ptid_lwp_p): New function.
2770 (ptid_tid_p): New function.
2771 * common/ptid.h: Update comments for accessors.
2772 (ptid_lwp_p): New prototype.
2773 (ptid_tid_p): New prototype.
2774 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2775 * gcore.c: Replace PIDGET with ptid_get_pid.
2776 * gdbthread.h: Likewise.
2777 * gnu-nat.c: Likewise.
2778 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2779 Replace TIDGET with ptid_get_lwp.
2780 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2781 * hppanbsd-nat.c: Likewise.
2782 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2783 Replace TIDGET with ptid_get_lwp.
2784 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2785 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2786 * infcmd.c: Likewise.
2787 * inferior.h: Likewise.
2788 * inflow.c: Likewise.
2789 * infrun.c: Likewise.
2790 * linux-fork.c: Likewise.
2791 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2792 Replace GET_PID with ptid_get_pid.
2793 Replace is_lwp with ptid_lwp_p.
2794 Replace GET_LWP with ptid_get_lwp.
2795 Replace BUILD_LWP with ptid_build.
2796
2797 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2798
2799 * common/linux-btrace.c: Move sys/syscall.h out of the
2800 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2801 Also check for SYS_perf_event_open before attempting to buid.
2802
2803 2013-09-27 Doug Evans <dje@google.com>
2804
2805 * dwarf2read.c (dwarf2_section_info): Add comment.
2806 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2807 All uses updated.
2808 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2809 (dwarf2_read_section): Delete unused local "header". Add section
2810 name to error message.
2811 (create_dwo_in_dwp): Tweak comment.
2812 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2813
2814 * dwarf2read.c (die_reader_specs): Tweak comment.
2815 (get_section_bfd_owner, get_section_bfd_section): New functions.
2816 (get_section_name, get_section_file_name): New functions.
2817 (get_section_id, get_section_flags): New functions.
2818 (*): Use new functions to access section fields.
2819
2820 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2821 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2822 arg "htab". All callers updated.
2823 (create_debug_types_hash_table): Remove redundant copy of
2824 abbrev_section.
2825 (create_dwo_in_dwp): Tweak comments.
2826 (read_str_index): Tweak comment. Record dwarf form name in static
2827 local.
2828
2829 2013-09-27 Pedro Alves <palves@redhat.com>
2830
2831 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2832 (remote_filename_p): Add comment.
2833 * remote.c (remote_filename_p): Adjust to use
2834 REMOTE_SYSROOT_PREFIX.
2835 * solib.c (solib_find): When deciding whether we need to add a
2836 directory separator, check whether the sysroot is "remote:"
2837 instead of checking whether the patch has a drive spec. Add
2838 comments.
2839
2840 2013-09-27 Pedro Alves <palves@redhat.com>
2841
2842 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2843 Delete fields.
2844 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2845 directly.
2846
2847 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2848
2849 Fix set debug frame output.
2850 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2851 SENTINEL_FRAME entry lower to match enum frame_type order.
2852
2853 2013-09-26 Pierre Muller <muller@sourceware.org>
2854
2855 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2856 AMD64_R15_REGNUM when a register index is expected.
2857 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2858 Substitute in array.
2859 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2860 (amd64_push_arguments): Substitute in integer_regnum array.
2861
2862 2013-09-25 Doug Evans <dje@google.com>
2863
2864 * objfiles.c (allocate_objfile): Move comment to better place.
2865
2866 New option "set debug symfile on".
2867 * NEWS: Mention "set debug symfile".
2868 * Makefile.in (SFILES): Add symfile-debug.c.
2869 (COMMON_OBS): Add symfile-debug.o.
2870 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2871 objfile's symbol functions.
2872 * objfiles.h (objfile_set_sym_fns): Declare.
2873 * symfile-debug.c: New file.
2874 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2875 objfile's symbol functions.
2876 (reread_symbols): Ditto.
2877
2878 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2879 All uses updated.
2880 (add_symtab_fns): Update prototype.
2881 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2882 (registered_sym_fns): ... this.
2883 (symtab_fns): Update.
2884 (add_symtab_fns): New arg "flavour". All callers updated.
2885 (find_sym_fns): Rewrite to use new sym_fns registry.
2886
2887 * symfile.h (struct sym_fns): Add "objfile" argument to
2888 sym_read_linetable. All uses updated.
2889
2890 * symtab.c (domain_name, search_domain_name): New functions.
2891 * symtab.h (domain_name, search_domain_name): Declare.
2892
2893 * symfile.h (struct quick_symbol_functions): Reorg arg list of
2894 map_matching_symbols so objfile is first. All uses updated.
2895 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
2896 * psymtab.c (map_matching_symbols_psymtab): Update signature.
2897
2898 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2899
2900 PR shlibs/8882
2901 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
2902 link map entries.
2903
2904 2013-09-24 Doug Evans <dje@google.com>
2905
2906 * objfiles.c (free_objfile): Move comment.
2907
2908 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2909
2910 * ada-exp.y (string_to_operator): Delete.
2911 (dummy_string_to_ada_operator): Delete.
2912
2913 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2914
2915 Revert:
2916 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2917 amd64-tdep.c.
2918 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2919 call_dummy_integer_regs, and classify.
2920 * amd64-tdep.h (amd64_classify): Add declaration.
2921 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2922 (amd64_reg_class): Delete, moved to i386-tdep.h.
2923 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2924 Replace call to amd64_classify by call to tdep->classify.
2925 (amd64_push_arguments): Get the list of registers to use for
2926 passing integer parameters from the gdbarch tdep structure,
2927 rather than using a hardcoded one. Replace calls to amd64_classify
2928 by calls to tdep->classify.
2929 (amd64_push_dummy_call): Get the register number used for
2930 the "hidden" argument from tdep->call_dummy_integer_regs.
2931 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2932 and tdep->call_dummy_integer_regs. Set tdep->classify.
2933
2934 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2935
2936 Revert:
2937 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2938 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2939 where tdep->memory_args_by_pointer is non-zero.
2940
2941 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2942
2943 Revert:
2944 * i386-tdep.h (struct gdbarch_tdep): Add new field
2945 integer_param_regs_saved_in_caller_frame.
2946 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2947 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2948
2949 2013-09-24 Joel Brobecker <brobecker@adacore.com>
2950
2951 * amd64-windows-tdep.c: #include "value.h"
2952 (amd64_windows_classify): Delete.
2953 (amd64_windows_passed_by_integer_register)
2954 (amd64_windows_passed_by_xmm_register)
2955 (amd64_windows_passed_by_pointer)
2956 (amd64_windows_adjust_args_passed_by_pointer)
2957 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
2958 (amd64_windows_push_dummy_call): New functions.
2959 (amd64_windows_init_abi): Remove setting of
2960 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
2961 tdep->classify, tdep->memory_args_by_pointer and
2962 tdep->integer_param_regs_saved_in_caller_frame.
2963 Add call to set_gdbarch_push_dummy_call.
2964
2965 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2966
2967 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
2968 objfile->original_name.
2969
2970 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2971
2972 Pass down original filename for objfile.
2973 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
2974 * elfread.c (elf_symfile_read): Likewise.
2975 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
2976 longer set ORIGINAL_NAME.
2977 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
2978 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
2979 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
2980 symbol_file_add_from_bfd call.
2981 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
2982 (macho_check_dsym): Add parameter filenamep. Change function comment.
2983 Set *filenamep.
2984 (macho_symfile_read): New variable dsym_filename. Update
2985 macho_check_dsym call. Use it for symbol_file_add_separate.
2986 * objfiles.c (allocate_objfile): Add parameter name. New comment for
2987 it. Use it for objfile->original_name.
2988 (objfile_name): Return OBFD's filename, if available.
2989 * objfiles.h (allocate_objfile): Add new parameter name.
2990 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
2991 * symfile-mem.c (symbol_file_add_from_memory): Update
2992 symbol_file_add_from_bfd call.
2993 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
2994 comment for it.
2995 (symbol_file_add_with_addrs): New parameter name, add function comment
2996 for it. Remove variable name. Update allocate_objfile call.
2997 (symbol_file_add_separate): New parameter name, add function comment
2998 for it. Update symbol_file_add_with_addrs call.
2999 (symbol_file_add_from_bfd): New parameter name. Update
3000 symbol_file_add_with_addrs call.
3001 (symbol_file_add): Update symbol_file_add_from_bfd call.
3002 (reread_symbols): New variable original_name. Save
3003 objfile->original_name by it.
3004 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3005 second parameter.
3006
3007 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3008
3009 Code cleanup: Add objfile_name accessor function.
3010 * ada-lang.c (is_known_support_routine): Use objfile_name.
3011 * auto-load.c (source_gdb_script_for_objfile)
3012 (auto_load_objfile_script): Likewise.
3013 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3014 * dbxread.c (dbx_symfile_read): Likewise.
3015 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3016 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3017 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3018 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3019 (lookup_dwp_signatured_type, lookup_dwo_unit)
3020 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3021 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3022 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3023 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3024 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3025 (read_subrange_type, load_partial_dies, read_partial_die)
3026 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3027 (die_containing_type, build_error_marker_type, lookup_die_type)
3028 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3029 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3030 (get_DW_AT_signature_type, write_psymtabs_to_index)
3031 (save_gdb_index_command): Likewise.
3032 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3033 Likewise.
3034 * expprint.c (dump_subexp_body_standard): Likewise.
3035 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3036 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3037 original_name.
3038 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3039 obj_name, use objfile_name for it, use the variable.
3040 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3041 Use objfile_name.
3042 * machoread.c (macho_symtab_read, macho_check_dsym)
3043 (macho_symfile_relocate): Likewise.
3044 * maint.c (maintenance_translate_address): Likewise.
3045 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3046 * minsyms.c (install_minimal_symbols): Likewise.
3047 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3048 original_name.
3049 (filter_overlapping_sections): Use objfile_name.
3050 (objfile_name): New function.
3051 * objfiles.h (struct objfile): Rename field name to original_name.
3052 (objfile_name): New prototype.
3053 * printcmd.c (sym_info, address_info): Use objfile_name.
3054 * probe.c (parse_probes, collect_probes, compare_probes)
3055 (info_probes_for_ops): Likewise.
3056 * progspace.c (clone_program_space): Likewise.
3057 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3058 (maintenance_info_psymtabs): Likewise.
3059 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3060 (source_section_scripts): Likewise.
3061 * python/py-objfile.c (objfpy_get_filename): Likewise.
3062 * python/py-progspace.c (pspy_get_filename): Likewise.
3063 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3064 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3065 * solib.c (solib_read_symbols): Likewise.
3066 * stabsread.c (scan_file_globals): Likewise.
3067 * stap-probe.c (handle_stap_probe): Likewise.
3068 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3069 (find_separate_debug_file_by_debuglink): Likewise.
3070 (reread_symbols): Likewise. Use the objfile field name renamed to
3071 original_name.
3072 (allocate_symtab): Use objfile_name.
3073 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3074 (dump_objfile, dump_msymbols, dump_symtab_1)
3075 (maintenance_print_msymbols, maintenance_print_objfiles)
3076 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3077 * target.c (target_translate_tls_address, target_info): Likewise.
3078 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3079 objfile_name.
3080
3081 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3082
3083 Code cleanup.
3084 * probe.c (parse_probes): Rename variable objfile_name to
3085 objfile_namestr.
3086
3087 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 Remove solib-sunos.c.
3090 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3091 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3092 * objfiles.c (rt_common_objfile): Remove.
3093 (free_objfile): Remove rt_common_objfile comparison.
3094 * objfiles.h (rt_common_objfile): Remove.
3095 * solib-sunos.c: Remove.
3096 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3097
3098 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3099
3100 Remove a.out NetBSD and OpenBSD hosts.
3101 * NEWS (Removed native configurations): New.
3102 * config/arm/nbsdaout.mh: Remove.
3103 * config/i386/nbsdaout.mh: Remove.
3104 * config/i386/obsdaout.mh: Remove.
3105 * config/m68k/nbsdaout.mh: Remove.
3106 * config/sparc/nbsdaout.mh: Remove.
3107 * config/vax/nbsdaout.mh: Remove.
3108 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3109 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3110 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3111 error.
3112 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3113 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3114 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3115
3116 2013-09-23 Tom Tromey <tromey@redhat.com>
3117
3118 * linespec.c (struct minsym_and_objfile): Remove.
3119 (minsym_and_objfile_d): Remove.
3120 (struct linespec, struct collect_info, linespec_parse_basic)
3121 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3122 (compare_msymbols, find_method, find_function_symbols)
3123 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3124 (add_minsym, search_minsyms_for_name): Update.
3125
3126 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3127
3128 * regcache.c: Add include of valprint.h.
3129 (dump_endian_bytes): Delete.
3130 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3131
3132 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3133
3134 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3135
3136 2013-09-19 Pedro Alves <palves@redhat.com>
3137
3138 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3139 breakpoints.
3140
3141 2013-09-19 Pedro Alves <palves@redhat.com>
3142 Thomas Schwinge <thomas@codesourcery.com>
3143 Yue Lu <hacklu.newborn@gmail.com>
3144
3145 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3146 Take a gdb_byte pointer instead of a char pointer.
3147
3148 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3149 gnu_xfer_partial helper.
3150 (gnu_xfer_partial): New function.
3151 (gnu_target): Don't install a deprecated_xfer_memory hook.
3152 Install a to_xfer_partial hook.
3153
3154 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 Constification.
3157 * main.c (captured_main): Replace catch_command_errors by
3158 catch_command_errors_const. Twice.
3159 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3160 (symbol_file_add): Make name parameter const.
3161 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3162 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3163 variable name. Change their usage accordingly.
3164 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3165 const.
3166 (symbol_file_add_main): Make args parameter const.
3167
3168 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3169 Ulrich Weigand <uweigand@de.ibm.com>
3170
3171 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3172 of c_value member.
3173 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3174
3175 2013-09-18 Pedro Alves <palves@redhat.com>
3176 Yue Lu <hacklu.newborn@gmail.com>
3177
3178 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3179 (gnu_create_inferior)
3180 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3181 (set_sig_thread_cmd): Use the lwpid field of ptids to
3182 store/extract thread ids instead of the tid field.
3183 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3184
3185 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3186
3187 * infcmd.c (default_print_one_register_info): Add detection of
3188 optimized out values.
3189 (default_print_registers_info): Switch to using
3190 get_frame_register_value.
3191
3192 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3193
3194 * infrun.c (handle_inferior_event): Check if we know the
3195 function start address before setting a resume breakpoint.
3196
3197 2013-09-18 Pedro Alves <palves@redhat.com>
3198
3199 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3200 minus_one_ptid instead of looking at the ptid's tid field and
3201 comparing that to -1.
3202
3203 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3204
3205 * main.h (get_gdb_program_name): Remove extra whitespace.
3206
3207 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3208
3209 * main.h (get_gdb_program_name): Add declaration.
3210 * main.c (get_gdb_program_name): Add definition.
3211
3212 2013-09-17 Doug Evans <dje@google.com>
3213
3214 * dwarf2read.c: Move definitions of complaint functions to after
3215 forward declarations of local functions.
3216
3217 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3218 Pedro Alves <palves@redhat.com>
3219
3220 PR gdb/11568
3221 * breakpoint.c (remove_threaded_breakpoints): New function.
3222 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3223 as thread_exit observer.
3224
3225 2013-09-17 Pedro Alves <palves@redhat.com>
3226
3227 PR gdb/15911
3228 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3229 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3230 * corelow.c (core_open):
3231 * frame.h (print_stack_frame, print_frame_info): New
3232 'set_current_sal' parameter.
3233 * infcmd.c (finish_command, kill_command): Adjust call to
3234 print_stack_frame.
3235 * inferior.c (inferior_command): Likewise.
3236 * infrun.c (normal_stop): Likewise.
3237 * linux-fork.c (linux_fork_context): Likewise.
3238 * record-full.c (record_full_goto_entry, record_full_restore):
3239 Likewise.
3240 * remote-mips.c (common_open): Likewise.
3241 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3242 Use it.
3243 (print_frame_info): New 'set_current_sal' parameter. Set the last
3244 displayed sal depending on the new paremeter instead of looking at
3245 print_what.
3246 (backtrace_command_1, select_and_print_frame, frame_command)
3247 (current_frame_command, up_command, down_command): Adjust call to
3248 print_stack_frame.
3249 * thread.c (print_thread_info, restore_selected_frame)
3250 (do_captured_thread_select): Adjust call to print_stack_frame.
3251 * tracepoint.c (tfind_1): Likewise.
3252 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3253 (mi_cmd_stack_info_frame): Likewise.
3254 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3255 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3256
3257 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3258
3259 * value.c (isvoid_internal_fn): Replace "parameter" with
3260 "argument".
3261
3262 2013-09-16 Stan Shebs <stan@codesourcery.com>
3263
3264 * README: Update references to writing code for GDB.
3265 * configure.ac (build_warnings): Remove obsolete comment.
3266 * configure: Regenerate.
3267 * gdbarch.sh: Remove references to gdbint.texinfo.
3268 * gdbarch.h: Regenerate.
3269 * gdbtypes.c (objfile_type): Remove comments referencing internals
3270 manual and D10V.
3271
3272 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3273
3274 * NEWS: Mention new convenience function $_isvoid.
3275 * value.c (isvoid_internal_fn): New function.
3276 (_initialize_values): Add new convenience function $_isvoid.
3277
3278 2013-09-16 Pierre Muller <muller@sourceware.org>
3279
3280 * arm-linux-tdep.c: Add "elf/common.h" header.
3281 Remove AT_HWCAP macro definintion as it is provided in
3282 added include file.
3283 * s390-tdep.c: Remove system header <elf.h>
3284 Add "elf/common.h" header for AT_HWCAP definition.
3285 (s390_core_read_description): Use correct CORE_ADDR
3286 for hwcap local variable used as third parameter
3287 of function target_auxv_search.
3288
3289 2013-09-14 Pierre Muller <muller@sourceware.org>
3290 Tom Tromey <tromey@redhat.com>
3291 Pedro Alves <palves@redhat.com>
3292
3293 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3294 mode if operating system doesn't know O_CLOEXEC.
3295
3296 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3297
3298 Code cleanup.
3299 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3300 inner block.
3301
3302 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3303
3304 * NEWS: Mention TDB support.
3305 * features/s390-tdb.xml: New file.
3306 * features/s390-te-linux64.xml: New file.
3307 * features/s390x-te-linux64.xml: New file.
3308 * features/Makefile (WHICH): Add new tdescs above.
3309 (s390-te-linux64-expedite): Set.
3310 (s390x-te-linux64-expedite): Set.
3311 * features/s390-te-linux64.c: New file (generated).
3312 * features/s390x-te-linux64.c: New file (generated).
3313 * regformats/s390-te-linux64.dat: New file (generated).
3314 * regformats/s390x-te-linux64.dat: New file (generated).
3315 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3316 (HWCAP_S390_TE): Likewise.
3317 (S390_TDB_DWORD0_REGNUM): Likewise.
3318 (S390_TDB_DWORD0_REGNUM): Likewise.
3319 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3320 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3321 (S390_TDB_ATIA_REGNUM): Likewise.
3322 (S390_TDB_R0_REGNUM): Likewise.
3323 (S390_TDB_R1_REGNUM): Likewise.
3324 (S390_TDB_R2_REGNUM): Likewise.
3325 (S390_TDB_R3_REGNUM): Likewise.
3326 (S390_TDB_R4_REGNUM): Likewise.
3327 (S390_TDB_R5_REGNUM): Likewise.
3328 (S390_TDB_R6_REGNUM): Likewise.
3329 (S390_TDB_R7_REGNUM): Likewise.
3330 (S390_TDB_R8_REGNUM): Likewise.
3331 (S390_TDB_R9_REGNUM): Likewise.
3332 (S390_TDB_R10_REGNUM): Likewise.
3333 (S390_TDB_R11_REGNUM): Likewise.
3334 (S390_TDB_R12_REGNUM): Likewise.
3335 (S390_TDB_R13_REGNUM): Likewise.
3336 (S390_TDB_R14_REGNUM): Likewise.
3337 (S390_TDB_R15_REGNUM): Likewise.
3338 (S390_NUM_REGS): Increase.
3339 (S390_IS_TDBREGSET_REGNUM): New macro.
3340 (s390_regmap_tdb): Declare.
3341 (s390_sizeof_tdbregset): Define.
3342 (tdesc_s390_te_linux64): Declare.
3343 (tdesc_s390x_te_linux64): Likewise.
3344 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3345 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3346 (s390_regmap_tdb): New regmap.
3347 (s390_supply_tdb_regset): New function.
3348 (s390_tdb_regset): New regset.
3349 (s390_linux64v2_regset_sections): Add TDB regset to list.
3350 (s390x_linux64v2_regset_sections): Likewise.
3351 (s390_regset_from_core_section): Recognize TDB core note section.
3352 (s390_core_read_description): If HWCAP indicates TE support,
3353 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3354 (s390_gdbarch_init): Handle TDB regset.
3355 (_initialize_s390_tdep): Initialize new tdescs.
3356 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3357 (have_regset_tdb): New variable.
3358 (s390_native_supply): Support register invalidation.
3359 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3360 (check_regset): Treat ENODATA as "regset exists".
3361 (s390_linux_fetch_inferior_registers): Add TDB.
3362 (s390_read_description): Check for TDB existence and select
3363 appropriate tdesc.
3364 * gdbserver/Makefile.in (clean): Add removal of new makefile
3365 targets.
3366 (s390-te-linux64.c): New makefile target.
3367 (s390x-te-linux64.c): Likewise.
3368 * gdbserver/configure.srv (srv_regobj): Append new objects
3369 s390-te-linux64.o and s390x-te-linux64.o.
3370 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3371 s390x-te-linux64.xml, and s390-tdb.xml.
3372 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3373 declaration.
3374 (tdesc_s390_te_linux64): Likewise.
3375 (init_registers_s390x_te_linux64): Likewise.
3376 (tdesc_s390x_te_linux64): Likewise.
3377 (s390_check_regset): Treat ENODATA as "regset exists".
3378 (s390_arch_setup): Add TDB regset support.
3379 (initialize_low_arch): Initialize registers for new tdescs.
3380
3381 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3382
3383 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3384 (S390_IS_FPREGSET_REGNUM): New macro.
3385 * s390-tdep.c (s390_dwarf_regmap): Make const.
3386 (regnum_is_gpr_full): New function for replacing repeated code.
3387 (s390_pseudo_register_name): Use it.
3388 (s390_pseudo_register_type): Likewise.
3389 (s390_pseudo_register_read): Likewise.
3390 (s390_pseudo_register_write): Likewise.
3391 (s390_unwind_pseudo_register): Likewise.
3392 (s390_regmap_gregset): New format for regmap.
3393 (s390x_regmap_gregset): Likewise.
3394 (s390_regmap_fpregset): Likewise.
3395 (s390_regmap_upper): Likewise.
3396 (s390_regmap_last_break): Likewise.
3397 (s390_regmap_system_call): Likewise.
3398 (s390_supply_regset): Adjust to new regmap format.
3399 (s390_collect_regset): Likewise.
3400 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3401 (s390_native_collect): Likewise.
3402 (supply_gregset): Likewise.
3403 (fill_gregset): Likewise.
3404 (supply_fpregset): Likewise.
3405 (fill_fpregset): Likewise.
3406 (fetch_regset): Likewise.
3407 (store_regset): Likewise.
3408 (s390_linux_fetch_inferior_registers): Likewise.
3409 (s390_linux_fetch_inferior_registers): Likewise.
3410
3411 2013-09-12 Andrew Pinski <apinski@cavium.com>
3412
3413 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3414
3415 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3416
3417 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3418
3419 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3420
3421 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3422
3423 2013-09-06 Pedro Alves <palves@redhat.com>
3424
3425 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3426 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3427 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3428 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3429 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3430 gdb_stdlog.
3431
3432 2013-09-06 Pedro Alves <palves@redhat.com>
3433
3434 * remote-sim.c (dump_mem): Constify buf parameter.
3435 gdbsim_xfer_inferior_memory): Rename to ...
3436 (gdbsim_xfer_memory): ... this. Adjust interface as
3437 target_xfer_partial helper.
3438 (gdbsim_xfer_partial): New function.
3439 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3440 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3441
3442 2013-09-06 Pedro Alves <palves@redhat.com>
3443
3444 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3445 host_address_to_string, and send debug output to gdb_stdlog.
3446
3447 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3448
3449 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3450 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3451 gdb_target_obs for cris target.
3452 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3453 (cris_gdbarch_init): Move calls to
3454 set_gdbarch_fetch_tls_load_module_address and
3455 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3456 Add call to gdbarch_init_osabi.
3457 * cris-linux-tdep.c: New file.
3458 * cris-tdep.h: New file.
3459
3460 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3461
3462 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3463 to deprecated_init_ui_hook.
3464
3465 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3466
3467 * cli/cli-interp.c (_initialize_cli_interp): Add a
3468 command_loop_proc to interp_procs.
3469 * event-top.c (cli_command_loop): Change signature to match
3470 interp_command_loop_ftype.
3471 * event-top.h (cli_command_loop): Same.
3472 * interps.c (interp_new): Require every interpreter to have a
3473 command_loop_proc.
3474 (current_interp_command_loop): Just call the command_loop_proc on
3475 the current interpreter.
3476 * tui/tui-interp.c (_initialize_tui_interp): Add a
3477 command_loop_proc to interp_procs.
3478
3479 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3480
3481 * cris-tdep.c (cris_gdbarch_init): Add call to
3482 get_gdbarch_fetch_tls_load_module_address.
3483
3484 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3485
3486 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3487 (cris_elf_gregset_t): Rename from elf_gregset_t.
3488 (crisv32_elf_gregset_t): Adjust.
3489 (cris_supply_gregset, fetch_core_registers): Adjust.
3490
3491 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3492
3493 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3494
3495 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3496
3497 * defs.h (deprecated_command_loop_hook): Remove, including
3498 references in comments.
3499 * interps.c (current_interp_command_loop): No longer use
3500 deprecated_command_loop_hook.
3501 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3502 setup.
3503 * top.c (deprecated_command_loop_hook): Remove.
3504
3505 2013-09-05 Pedro Alves <palves@redhat.com>
3506
3507 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3508 local is now int instead of ULONGEST. Print it with %d
3509 instead of paddress.
3510
3511 2013-09-05 Tristan Gingold <gingold@adacore.com>
3512
3513 * MAINTAINERS: Remove avr maintainership.
3514
3515 2013-09-05 Pedro Alves <palves@redhat.com>
3516
3517 * findvar.c (value_of_register): Rework in terms of
3518 value_of_register_lazy.
3519
3520 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3521
3522 * symfile.c (add_symbol_file_command): Remove trailing
3523 whitespaces and blank line after comment.
3524
3525 2013-09-05 Pedro Alves <palves@redhat.com>
3526
3527 * tui/tui-regs.c (tui_register_format): Don't look at the
3528 register's name here. Return string representing register
3529 value instead of storing it in the data element.
3530 (tui_get_register): Compare register string representations
3531 instead of register value states and contents.
3532
3533 2013-09-05 Pedro Alves <palves@redhat.com>
3534
3535 PR tui/15933
3536 * tui/tui-regs.c (tui_show_registers): Show registers of the
3537 selected frame, not the current frame.
3538
3539 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3540
3541 * MAINTAINERS (Write After Approval): Add myself to the list.
3542
3543 2013-09-04 Doug Evans <dje@google.com>
3544
3545 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3546 (queue_and_load_dwo_tu): New function.
3547 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3548 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3549 Make dependent_cu optional.
3550 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3551 and an older .gdb_index is in use, queue and load all its TUs too.
3552
3553 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3554
3555 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3556 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3557 variable search_flags.
3558 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3559 (OPF_RETURN_REALPATH): ... here.
3560 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3561 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3562 call. Twice.
3563 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3564 openp call.
3565 * solib.c (solib_find): Likewise. Four times.
3566 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3567 in the function comment and for the realpath_fptr variable.
3568 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3569 (find_and_open_source): Likewise. Twice.
3570 * symfile.c (symfile_bfd_open): Likewise, also twice.
3571
3572 2013-09-04 Doug Evans <dje@google.com>
3573
3574 * progspace.c (save_current_space_and_thread): Remove unnecessary
3575 call to save_current_inferior.
3576
3577 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3578
3579 * sh64-tdep.c (sh64_do_register): Return after printing message
3580 about unavailable register contents.
3581
3582 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3583 Pedro Alves <palves@redhat.com>
3584
3585 * symfile.c (add_symbol_file_command): Error out on unknown
3586 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3587 options and collapse into single conditional branch.
3588
3589 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3590
3591 * inf-child.c (inf_child_follow_fork): New parameter
3592 detach_fork.
3593 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3594 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3595 * inferior.h (detach_fork): Remove.
3596 * infrun.c (detach_fork): Adjust comment and make it
3597 static.
3598 (follow_fork): Pass detach_fork parameter to
3599 target_follow_fork.
3600 * linux-nat.c (linux_child_follow_fork): New parameter
3601 detach_fork.
3602 * target.c (target_follow_fork): New parameter detach_fork.
3603 Pass detach_fork as parameter and print its value.
3604 * target.h (struct target_ops) <to_follow_fork>: New int
3605 parameter.
3606 (target_follow_fork): New parameter detach_fork.
3607
3608 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3609
3610 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3611 Replace sec->bfd by sec->the_bfd_section->owner.
3612
3613 2013-09-03 Yao Qi <yao@codesourcery.com>
3614
3615 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3616 from linux_has_shared_address_space.
3617 (linux_has_shared_address_space): Call linux_is_uclinux.
3618 * linux-tdep.h (linux_is_uclinux): Declare.
3619 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3620 linux_is_uclinux.
3621
3622 2013-09-03 Yao Qi <yao@codesourcery.com>
3623
3624 * config/djgpp/fnchange.lst: Remove entry of
3625 i386-interix-nat.c and i386-interix-tdep.c.
3626 * configure.ac: Remove '*-*-interix*'.
3627 * configure: Re-generated.
3628 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3629 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3630 obsolete comments.
3631 * osabi.c (gdb_osabi_names): Remove "Interix".
3632
3633 2013-09-03 Yao Qi <yao@codesourcery.com>
3634
3635 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3636
3637 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3638
3639 * record.h (record_print_flag) <record_print_src_line,
3640 record_print_insn_range>: Rename into ...
3641 (record_print_flag) <record_print_src_line,
3642 record_print_insn_range>: ... this. Update all users.
3643
3644 2013-09-02 Pierre Muller <muller@sourceware.org>
3645
3646 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3647 error code.
3648
3649 2013-09-02 Pierre Muller <muller@sourceware.org>
3650
3651 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3652 by use of plongest function.
3653
3654 2013-09-02 Tristan Gingold <gingold@adacore.com>
3655
3656 * NEWS: Add entry mentioning support for native Windows x64
3657 SEH data.
3658
3659 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3660 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3661 (struct amd64_windows_frame_cache): New struct.
3662 (amd64_windows_w2gdb_regnum): New global.
3663 (pc_in_range, amd64_windows_frame_decode_epilogue)
3664 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3665 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3666 (amd64_windows_frame_this_id): New functions.
3667 (amd64_windows_frame_unwind): New static global.
3668 (amd64_windows_skip_prologue): New function.
3669 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3670 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3671 with amd64_windows_skip_prologue.
3672
3673 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3674
3675 GDB 7.6.1 released.
3676
3677 2013-08-30 Pedro Alves <palves@redhat.com>
3678
3679 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3680 SRC_AND_LOC.
3681
3682 2013-08-30 Pedro Alves <palves@redhat.com>
3683
3684 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3685 warning text.
3686
3687 2013-08-30 Pedro Alves <palves@redhat.com>
3688
3689 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3690 Adjust arguments to print_stack_frame.
3691
3692 2013-08-30 Pedro Alves <palves@redhat.com>
3693
3694 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3695
3696 2013-08-30 Pedro Alves <palves@redhat.com>
3697
3698 * frame.h (show_and_print_stack_frame): Delete declaration.
3699
3700 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3701
3702 PR python/15461
3703 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3704 (archpy_name): Check for valid architecture.
3705 (archpy_disassemble): Ditto.
3706
3707 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3708
3709 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3710 instead of "long long" in call to ptrace64.
3711
3712 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3713
3714 * mi/mi-interp.c (mi_command_loop): Change signature to match
3715 interp_command_loop_ftype.
3716 (mi1_command_loop): Remove.
3717 (mi2_command_loop): Remove.
3718 (mi3_command_loop): Remove.
3719 (mi_interpreter_resume): Remove setting of
3720 deprecated_command_loop_hook.
3721 (_initialize_mi_interp): Set mi_command_loop as the command loop
3722 callback.
3723
3724 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3725
3726 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3727 value_type.
3728
3729 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3730
3731 * value.c (allocate_value_contents): Make static.
3732 * value.h (allocate_value_contents): Remove prototype.
3733
3734 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3735
3736 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3737 of assembling value via allocate_value_lazy and attribute setter.
3738 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3739 assembling value via allocate_value_lazy and attribute setter.
3740 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3741 assembling value via allocate_value_lazy and attribute setter.
3742
3743 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3744
3745 * value.c (value_from_contents_and_address): Replace allocate_value and
3746 memcpy with value_from_contents.
3747
3748 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3749
3750 * python/py-framefilter.c (py_print_frame): Remove usage of
3751 PyString_AsString. Use python_string_to_host_string instead.
3752 Refactor function to work with a string as a new allocation
3753 instead of a pointer.
3754 (py_print_frame): Ditto.
3755 * python/lib/gdb/frames.py (return_list): Cain iterators together
3756 instead of adding them as a list.
3757 (_sort_list): Call return_list, and remove duplicate code.
3758 (execute_frame_filters): Convert iterator to a list with list().
3759 * python/lib/gdb/command/frame_filters.py
3760 (SetFrameFilterPriority._set_filter_priority): Convert priority
3761 attribute to an integer.
3762 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3763 wrapper function __next__.
3764 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3765 define as "str".
3766
3767 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3768
3769 PR python/15752
3770 * python/py-framefilter.c (apply_frame_filter): Check
3771 gdb_python_initialized. Exit if the Python frame-filter code
3772 cannot be initialized.
3773
3774 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3775
3776 PR cli/15842
3777 * top.c (print_gdb_version): Remove erroneous newline after help
3778 text.
3779
3780 2013-08-29 Yao Qi <yao@codesourcery.com>
3781
3782 * varobj.c (install_dynamic_child): Remove trailing space.
3783 Add one blank line after variable declaration.
3784
3785 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 PR gdb/15415
3788 * corefile.c (get_exec_file): Use exec_filename.
3789 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3790 * exec.c (exec_close): Free EXEC_FILENAME.
3791 (exec_file_attach): New variable canonical_pathname. Use
3792 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3793 EXEC_FILENAME.
3794 * exec.h (exec_filename): New.
3795 * inferior.c (print_inferior, inferior_command): Use
3796 PSPACE_EXEC_FILENAME.
3797 * mi/mi-main.c (print_one_inferior): Likewise.
3798 * progspace.c (clone_program_space, print_program_space): Likewise.
3799 * progspace.h (struct program_space): New field pspace_exec_filename.
3800 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3801 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3802
3803 2013-08-28 Will Newton <will.newton@linaro.org>
3804
3805 * common/linux-ptrace.c: Include stdint.h unconditionally.
3806
3807 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3808
3809 Code cleanup.
3810 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3811
3812 2013-08-28 Yao Qi <yao@codesourcery.com>
3813 Pedro Alves <palves@redhat.com>
3814
3815 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3816 instead of stdio_fileopen.
3817 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3818 .Call stderr_fileopen instead of stdio_fileopen.
3819 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3820 [__MINGW32__] (stderr_file_fputs): New function.
3821 (stderr_fileopen): New function.
3822 * ui-file.h (stderr_fileopen): Declare.
3823
3824 2013-08-27 Doug Evans <dje@google.com>
3825
3826 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3827 (struct dwarf2_per_cu_data): Ditto.
3828 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3829 (process_imported_unit_die): Ditto.
3830 (follow_die_sig_1): Simplify assert.
3831
3832 2013-08-27 Pedro Alves <palves@redhat.com>
3833
3834 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3835 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3836 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3837 windows_xfer_memory directly.
3838 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3839
3840 2013-08-27 Pedro Alves <palves@redhat.com>
3841
3842 * darwin-nat.c (darwin_xfer_memory): Delete.
3843 (_initialize_darwin_inferior): Don't install a
3844 deprecated_xfer_memory method.
3845
3846 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3847 Yao Qi <yao@codesourcery.com>
3848
3849 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3850 (parse_no_frames_option): Remove.
3851 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3852 (mi_cmd_stack_list_args): Adjust.
3853 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3854 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3855 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3856 Caller update.
3857 (list_args_or_locals): New parameter 'skip_unavailable'.
3858 Handle it.
3859 * valprint.c (scalar_type_p): Rename to ...
3860 (val_print_scalar_type_p): ... this. Make extern.
3861 (val_print, value_check_printable): Adjust.
3862 * valprint.h (val_print_scalar_type_p): Declare.
3863 * value.c (value_entirely_unavailable): New function.
3864 * value.h (value_entirely_unavailable): Declare.
3865
3866 * NEWS: Mention the new option "--skip-unavailable" to MI
3867 commands '-stack-list-locals', '-stack-list-arguments' and
3868 '-stack-list-variables'.
3869
3870 2013-08-27 Yao Qi <yao@codesourcery.com>
3871
3872 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3873 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3874 options.
3875 * mi/mi-getopt.c (mi_getopt): Remove.
3876 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3877 'error_on_unknown'.
3878 (mi_getopt): Call mi_getopt_1.
3879 (mi_getopt_silent): New.
3880 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3881
3882 2013-08-26 Doug Evans <dje@google.com>
3883
3884 PR symtab/15885
3885 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3886 .gdb_index is in use.
3887 * symfile.c (reread_symbols): Reset objfile->sf.
3888
3889 * NEWS: Document "mt print objfiles" now takes optional regexp.
3890 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3891 regexp of objfiles to print.
3892 (_initialize_symmisc): Update doc string for "mt print objfiles".
3893
3894 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
3895 missing debug info checks.
3896
3897 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
3898 Ulrich Weigand <uweigand@de.ibm.com>
3899
3900 * xcoffread.c (arrange_linetable): Add fix to correctly handle
3901 line tables generated by XLC compiled binaries.
3902
3903 2013-08-23 Doug Evans <dje@google.com>
3904
3905 * symmisc.c (dump_symtab): Delete prototype.
3906 (dump_msymbols, dump_objfile): Ditto.
3907 (maintenance_info_symtabs): Mark as dont_repeat.
3908 (_initialize_symmisc): Improve doc string for "mt info symtabs".
3909
3910 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
3911 debugging printf to better location.
3912
3913 2013-08-23 Pedro Alves <palves@redhat.com>
3914
3915 * target.c (target_read_live_memory): Change type of 'ret' local
3916 to LONGEST.
3917
3918 2013-08-23 Pedro Alves <palves@redhat.com>
3919
3920 * remote.c (remote_write_bytes_aux, remote_write_bytes)
3921 (remote_read_bytes): Change return type to LONGEST, and adjust to
3922 return a target_xfer_error on error.
3923 (remote_xfer_memory): Delete.
3924 (remote_flash_write): Change type of 'ret' local to LONGEST.
3925 (remote_xfer_partial, remote_xfer_partial): Adjust.
3926 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
3927
3928 2013-08-23 Pierre Muller <muller@sourceware.org>
3929
3930 ARI fix: Push # directives to start of line.
3931 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
3932
3933 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
3934
3935 PR gdb/15501
3936 * breakpoint.c (enable_command, disable_command): Iterate over
3937 all specified breakpoint locations.
3938
3939 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3940
3941 * common/linux-ptrace.c (linux_fork_to_function): Push #
3942 directives to the start of the line.
3943 (linux_check_ptrace_features): Fix warning message to use
3944 the "_" markup.
3945
3946 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
3947
3948 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
3949 nat/linux-waitpid.h.
3950 (linux-waitpid.o): New object file rule.
3951 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
3952 (current_ptrace_options): Moved from linux-nat.c.
3953 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
3954 parameters.
3955 (linux_fork_to_function): New function.
3956 (linux_grandchild_function): Likewise.
3957 (linux_child_function): Likewise.
3958 (linux_check_ptrace_features): New function, heavily
3959 based on linux-nat.c:linux_test_for_tracefork.
3960 (linux_enable_event_reporting): New function.
3961 (ptrace_supports_feature): Likewise.
3962 (linux_supports_tracefork): Likewise.
3963 (linux_supports_traceclone): Likewise.
3964 (linux_supports_tracevforkdone): Likewise.
3965 (linux_supports_tracesysgood): Likewise.
3966 * common/linux-ptrace.h (HAS_NOMMU): Moved from
3967 gdbserver/linux-low.c.
3968 (linux_enable_event_reporting): New declaration.
3969 (linux_supports_tracefork): Likewise.
3970 (linux_supports_traceclone): Likewise.
3971 (linux_supports_tracevforkdone): Likewise.
3972 (linux_supports_tracesysgood): Likewise.
3973 * config.in (PTRACE_TYPE_ARG4): Regenerate.
3974 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
3975 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3976 * config/arm/linux.mh (NATDEPFILES): Likewise.
3977 * config/i386/linux.mh (NATDEPFILES): Likewise.
3978 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3979 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3980 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3981 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3982 * config/mips/linux.mh (NATDEPFILES): Likewise.
3983 * config/pa/linux.mh (NATDEPFILES): Likewise..
3984 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
3985 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3986 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3987 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3988 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3989 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3990 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3991 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
3992 ptrace's 4th argument's types.
3993 Check the type of PTRACE_TYPE_ARG4.
3994 * configure: Regenerate.
3995 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
3996 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
3997 (linux_supports_tracefork_flag): Remove.
3998 (linux_supports_tracesysgood_flag): Likewise.
3999 (linux_supports_tracevforkdone_flag): Likewise.
4000 (current_ptrace_options): Moved to
4001 common/linux-ptrace.c.
4002 (linux_tracefork_child): Remove.
4003 (my_waitpid): Remove.
4004 (linux_test_for_tracefork): Renamed to
4005 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4006 (linux_test_for_tracesysgood): Remove.
4007 (linux_supports_tracesysgood): Remove.
4008 (linux_supports_tracefork): Remove.
4009 (linux_supports_tracevforkdone): Remove.
4010 (linux_enable_tracesysgood): Remove.
4011 (linux_enable_event_reporting): Remove.
4012 (linux_init_ptrace): New function.
4013 (linux_child_post_attach): Call linux_init_ptrace.
4014 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4015 (linux_child_follow_fork): Call linux_supports_tracefork
4016 and linux_supports_tracevforkdone.
4017 (linux_child_insert_fork_catchpoint): Call
4018 linux_supports_tracefork.
4019 (linux_child_insert_vfork_catchpoint): Likewise.
4020 (linux_child_set_syscall_catchpoint): Call
4021 linux_supports_tracesysgood.
4022 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4023 * nat/linux-nat.h: New file.
4024 * nat/linux-waitpid.c: New file.
4025 * nat/linux-waitpid.h: New file.
4026
4027 2013-08-22 Samuel Bronson <naesten@gmail.com>
4028
4029 ARM Linux support for `catch syscall'.
4030 * syscalls/arm-linux.py: New file.
4031 * syscalls/arm-linux.xml: Likewise.
4032 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4033 (arm_linux_init_abi): Register the new function and syscall xml file.
4034 * data-directory/Makefile.in: Install the new syscall xml file.
4035 * NEWS: Brag about this.
4036
4037 2013-08-22 Pedro Alves <palves@redhat.com>
4038
4039 PR gdb/15871
4040 * corefile.c (target_xfer_memory_error): New function.
4041 (memory_error): Defer EIO to target_memory_error.
4042 (read_memory): Use target_xfer_partial, and handle finer-grained
4043 target xfer errors.
4044 * target.c (target_xfer_error_to_string): New function.
4045 (memory_xfer_partial_1): If memory is known to be
4046 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4047 (target_xfer_partial): Make extern.
4048 * target.h (enum target_xfer_error): New enum.
4049 (target_xfer_error_to_string): Declare function.
4050 (target_xfer_partial): Declare function.
4051 (struct target_ops) <xfer_partial>: Adjust describing comment.
4052
4053 2013-08-22 Alan Modra <amodra@gmail.com>
4054
4055 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4056 * configure.tgt: Likewise as targets.
4057
4058 2013-08-20 Doug Evans <dje@google.com>
4059
4060 * buildsym.c (subfile_stack): Move here from buildsym.h.
4061 (pending_macros): Ditto.
4062 (get_macro_table): New function.
4063 (buildsym_init): Initialize subfile_stack.
4064 * coffread.c (type_vector,type_vector_length): Moved here from
4065 buildsym.h.
4066 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4067 (coff_symtab_read): Use it.
4068 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4069 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4070 with call to get_macro_table.
4071 * stabsread.c (type_vector,type_vector_length): Moved here from
4072 buildsym.h.
4073 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4074 * buildsym.h (get_macro_table): Declare.
4075
4076 2013-08-20 Tom Tromey <tromey@redhat.com>
4077
4078 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4079 Update.
4080 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4081
4082 2013-08-20 Doug Evans <dje@google.com>
4083
4084 * blockframe.c: Remove #include "psymtab.h".
4085 * cp-support.c: Ditto.
4086 * source.c: Ditto.
4087 * stack.c: Ditto.
4088
4089 2013-08-20 Tom Tromey <tromey@redhat.com>
4090
4091 PR python/15816:
4092 * exceptions.h (return_mask): Now an enum.
4093 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4094 enum constants.
4095
4096 2013-08-20 Tom Tromey <tromey@redhat.com>
4097
4098 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4099 get_objfile_arch.
4100 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4101 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4102 * jit.c (jit_object_close_impl): Update.
4103 * jv-lang.c (get_dynamics_objfile): Update.
4104 * linespec.c (add_minsym): Use get_dynamics_objfile.
4105 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4106 (allocate_objfile): Don't initialize 'gdbarch' field.
4107 (get_objfile_arch): Update.
4108 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4109 moved from...
4110 (struct objfile) <gdbarch>: ... here. Remove.
4111 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4112 get_objfile_arch.
4113 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4114
4115 2013-08-20 Alan Modra <amodra@gmail.com>
4116
4117 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4118 for IBM long double nan and inf.
4119 (floatformat_is_negative, floatformat_classify,
4120 floatformat_mantissa): Similarly.
4121 (floatformat_ieee_single, floatformat_ieee_double,
4122 floatformat_ieee_quad, floatformat_arm_ext,
4123 floatformat_ia64_spill): Delete unused vars.
4124 (_initialize_doublest): Delete unused function.
4125 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4126 little-endian variants of floatformat_ibm_long_double.
4127
4128 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4129
4130 * Makefile.in (SFILES): Remove common/target-common.c and
4131 add target/waitstatus.c.
4132 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4133 target/resume.h, target/wait.h and target/waitstatus.h.
4134 (COMMON_OBS): Remove target-common.o and add
4135 waitstatus.o.
4136 (target-common.o): Remove.
4137 (waitstatus.o): New target object file.
4138 * common/target-common.c: Move contents to
4139 target/waitstatus.c and remove.
4140 * common/target-common.h: Move contents to other files and
4141 remove.
4142 (enum resume_kind: Move to target/resume.h.
4143 (TARGET_WNOHANG): Move to target/wait.h.
4144 (enum target_waitkind): Move to target/waitstatus.h.
4145 (struct target_waitstatus): Likewise.
4146 * target.h: Do not include target-common.h and
4147 include target/resume.h, target/wait.h and
4148 target/waitstatus.h.
4149 * target/resume.h: New file.
4150 * target/wait.h: New file.
4151 * target/waitstatus.h: New file.
4152 * target/waitstatus.c: New file.
4153
4154 2013-08-19 Pedro Alves <palves@redhat.com>
4155
4156 * linux-nat.c (linux_test_for_tracefork)
4157 (linux_test_for_tracesysgood, linux_child_follow_fork)
4158 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4159 (linux_nat_wait_1): Extend comment.
4160 (linux_async_pipe): Add comment.
4161
4162 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4163
4164 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4165 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4166 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4167 Update to account for fact that PC is now a pseudo-register.
4168 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4169 cases for RL78_PC_REGNUM.
4170
4171 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4172
4173 PR cli/15841
4174 * top.c (quit_force): Skip writing history file
4175 if input is not from terminal.
4176
4177 2013-08-14 Tom Tromey <tromey@redhat.com>
4178
4179 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4180 resultthreadlist>: New fields.
4181 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4182 (remote_get_threadlist, remote_threadlist_iterator): Use
4183 new fields. Remove static variables.
4184
4185 2013-08-14 Tom Tromey <tromey@redhat.com>
4186
4187 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4188 remote_watch_data_address>: New fields.
4189 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4190 (process_stop_reply, remote_wait_as)
4191 (remote_check_watch_resources, remote_stopped_data_address): Update.
4192
4193 2013-08-14 Tom Tromey <tromey@redhat.com>
4194
4195 * remote.c (struct remote_state) <async_client_callback,
4196 async_client_context>: New fields.
4197 (async_client_callback, async_client_context): Remove.
4198 (remote_async_serial_handler, remote_async): Update.
4199
4200 2013-08-14 Tom Tromey <tromey@redhat.com>
4201
4202 * remote.c (sizeof_pkt): Remove.
4203 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4204
4205 2013-08-14 Tom Tromey <tromey@redhat.com>
4206
4207 * remote.c (struct remote_state) <use_threadinfo_query,
4208 use_threadextra_query>: New fields.
4209 (remote_threads_info, remote_threads_extra_info)
4210 (remote_open_1): Update.
4211
4212 2013-08-14 Tom Tromey <tromey@redhat.com>
4213
4214 * remote.c (struct remote_state) <finished_object,
4215 finished_annex, finished_offset>: New fields.
4216 (remote_read_qxfer): Use remote_state fields; remove static
4217 variables.
4218
4219 2013-08-14 Tom Tromey <tromey@redhat.com>
4220
4221 * remote.c (struct remote_state) <last_sent_step>:
4222 New field.
4223 (last_sent_step): Remove.
4224 (remote_resume, remote_wait_as): Update.
4225
4226 2013-08-14 Tom Tromey <tromey@redhat.com>
4227
4228 * remote.c (struct remote_state) <last_sent_signal>:
4229 New field.
4230 (last_sent_signal): Remove.
4231 (new_remote_state, remote_resume, remote_wait_as): Update.
4232
4233 2013-08-14 Tom Tromey <tromey@redhat.com>
4234
4235 * remote.c (struct remote_state) <last_program_signals_packet>:
4236 New field.
4237 (last_program_signals_packet): Remove.
4238 (remote_program_signals, remote_open_1): Update.
4239
4240 2013-08-14 Tom Tromey <tromey@redhat.com>
4241
4242 * remote.c (struct remote_state) <last_pass_packet>:
4243 New field.
4244 (last_pass_packet): Remove.
4245 (remote_pass_signals, remote_open_1): Update.
4246
4247 2013-08-14 Tom Tromey <tromey@redhat.com>
4248
4249 * remote.c (struct remote_state) <remote_traceframe_number>:
4250 New field.
4251 (remote_traceframe_number): Remove.
4252 (new_remote_state, remote_open_1, set_remote_traceframe)
4253 (remote_trace_find): Update.
4254
4255 2013-08-14 Tom Tromey <tromey@redhat.com>
4256
4257 * remote.c (struct remote_state) <general_thread, continue_thread>:
4258 New fields.
4259 (general_thread, continue_thread): Remove.
4260 (record_currthread, set_thread, set_general_process)
4261 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4262 (extended_remote_mourn_1): Update.
4263
4264 2013-08-14 Tom Tromey <tromey@redhat.com>
4265
4266 * remote.c (struct remote_state) <remote_desc>: New field.
4267 (remote_desc): Remove.
4268 (remote_threads_info, remote_threads_extra_info, remote_close)
4269 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4270 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4271 (remote_hostio_send_command, remote_file_put, remote_file_get)
4272 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4273 (remote_async, remote_new_objfile, set_range_stepping): Update.
4274
4275 2013-08-14 Tom Tromey <tromey@redhat.com>
4276
4277 * remote.c (remote_state): Now a pointer.
4278 (get_remote_state_raw): Update.
4279 (new_remote_state): New function.
4280 (_initialize_remote): Use new_remote_state.
4281
4282 2013-08-14 Tom Tromey <tromey@redhat.com>
4283
4284 * remote.c (remote_protocol_features): Now const.
4285
4286 2013-08-14 Tom Tromey <tromey@redhat.com>
4287
4288 * remote.c (crc32_table, crc32): Remove.
4289 (remote_verify_memory): Use xcrc32.
4290
4291 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4292
4293 * value.h (create_internalvar_type_lazy): Adjust prototype
4294 declaration.
4295
4296 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4297
4298 * common/format.c (parse_format_string): Don't allow '#' flag for
4299 pointer arguments in format string.
4300
4301 2013-08-13 Pierre Muller <muller@sourceware.org>
4302
4303 * utils.c (init_page_info): Only call tgetnum function
4304 if rl_get_screen_size did not return useful values.
4305
4306 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4307
4308 PR breakpoints/15117
4309 * linespec.c (linespec_parse_basic): Check for convenience
4310 variable or history value while parsing.
4311
4312 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4313
4314 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4315 AVR.
4316 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4317 different signals between the generic Linux kernel implementation
4318 and AVR's.
4319 (avr_linux_gdb_signal_from_target): Delete.
4320 (avr_linux_gdb_signal_to_target): Delete.
4321 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4322
4323 2013-08-09 Doug Evans <dje@google.com>
4324
4325 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4326 entries.
4327
4328 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4329
4330 * linux-tdep.c: Define enum with generic signal numbers.
4331 (linux_gdb_signal_from_target): New function.
4332 (linux_gdb_signal_to_target): Likewise.
4333 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4334 methods to the functions above.
4335 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4336 (linux_gdb_signal_to_target): Likewise.
4337 * alpha-linux-tdep.c: Define new enum with signals different
4338 from generic Linux kernel.
4339 (alpha_linux_gdb_signal_from_target): New function.
4340 (alpha_linux_gdb_signal_to_target): Likewise.
4341 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4342 with the functions mentioned above.
4343 * avr-tdep.c: Define enum with differences between Linux kernel
4344 and AVR signals.
4345 (avr_linux_gdb_signal_from_target): New function.
4346 (avr_linux_gdb_signal_to_target): Likewise.
4347 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4348 the functions mentioned above.
4349 * sparc-linux-tdep.c: Define enum with differences between SPARC
4350 and generic Linux kernel signal numbers.
4351 (sparc32_linux_gdb_signal_from_target): New function.
4352 (sparc32_linux_gdb_signal_to_target): Likewise.
4353 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4354 to the functions defined above.
4355 * xtensa-linux-tdep.c: Define enum with differences between
4356 Xtensa and Linux kernel generic signals.
4357 (xtensa_linux_gdb_signal_from_target): New function.
4358 (xtensa_linux_gdb_signal_to_target): Likewise.
4359 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4360 to the functions defined above.
4361 * mips-linux-tdep.c: Define enum with differences between
4362 signals in MIPS and Linux kernel generic ones.
4363 (mips_gdb_signal_to_target): New function.
4364 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4365 only different signals from the Linux kernel generic.
4366 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4367 the functions defined above.
4368 * mips-linux-tdep.h (enum mips_signals): Remove.
4369
4370 2013-08-09 Pedro Alves <palves@redhat.com>
4371
4372 * avr-tdep.c (XMALLOC): Delete macro.
4373 * cli/cli-dump.c (XMALLOC): Delete macro.
4374
4375 2013-08-09 Pedro Alves <palves@redhat.com>
4376
4377 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4378 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4379 (fopen_with_cleanup, add_dump_command): Make static.
4380 * cli/cli-dump.h: Delete file.
4381 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4382 cli/cli-dump.h.
4383
4384 2013-08-09 Pedro Alves <palves@redhat.com>
4385
4386 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4387 error message.
4388
4389 2013-08-09 Pedro Alves <palves@redhat.com>
4390
4391 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4392 error message.
4393
4394 2013-08-09 Pedro Alves <palves@redhat.com>
4395
4396 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4397 (gcore_command): Use tilde_expand here, and when showing the
4398 filename to the user, show the expanded version.
4399
4400 2013-08-09 Yao Qi <yao@codesourcery.com>
4401
4402 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4403 'entryval' is set.
4404
4405 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4406
4407 * gcore.c (create_gcore_bfd): Use tilde_expand.
4408
4409 2013-08-08 Yao Qi <yao@codesourcery.com>
4410
4411 * frame.h (read_frame_local): Declare.
4412 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4413 read_frame_local.
4414 * stack.c (read_frame_local): New.
4415
4416 2013-08-08 Yao Qi <yao@codesourcery.com>
4417
4418 * mi/mi-cmd-stack.c: Update comments to function
4419 list_args_or_locals.
4420
4421 2013-08-07 Tom Tromey <tromey@redhat.com>
4422
4423 PR symtab/15028:
4424 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4425 (process_psymtab_comp_unit_reader): Use it.
4426 (process_psymtab_comp_unit): Update. Add "pretend_language"
4427 argument.
4428 (dwarf2_build_psymtabs_hard): Update.
4429 (scan_partial_symbols): Pass CU's language to
4430 process_psymtab_comp_unit.
4431
4432 2013-08-07 Tom Tromey <tromey@redhat.com>
4433
4434 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4435 (dwarf2_gdb_index_functions): Update.
4436 * psymtab.c (find_symbol_file_from_partial): Remove.
4437 (psym_functions): Update.
4438 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4439 Remove.
4440
4441 2013-08-07 Tom Tromey <tromey@redhat.com>
4442
4443 * symfile.c (set_initial_language): Look up "main" symbol
4444 and use its language.
4445 * symtab.c (find_main_filename): Remove.
4446 * symtab.h (find_main_filename): Remove.
4447
4448 2013-08-07 Tom Tromey <tromey@redhat.com>
4449
4450 * dwarf2read.c (recursively_compute_inclusions): Add
4451 "immediate_parent" argument. Set symtab's "user" field
4452 if not set.
4453 (compute_symtab_includes): Update.
4454
4455 2013-08-07 Tom Tromey <tromey@redhat.com>
4456
4457 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4458 when adding label symbols.
4459
4460 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4461 Ulrich Weigand <uweigand@de.ibm.com>
4462
4463 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4464 * configure.host (powerpc64-*-aix*): Likewise.
4465
4466 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4467 Ulrich Weigand <uweigand@de.ibm.com>
4468
4469 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4470 is defined.
4471 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4472 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4473 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4474 * configure.ac: Check for ptrace64.
4475 * configure, config.in: Regenerate.
4476
4477 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4478 Ulrich Weigand <uweigand@de.ibm.com>
4479
4480 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4481 Call ptrace64 instead of ptrace if defined.
4482 Add macro addr_ptr to take care of ptrace address argument.
4483 (pdc_read_regs): Likewise.
4484 (pdc_write_regs): Likewise.
4485 (aix_thread_resume): Likewise.
4486 (fetch_regs_kernel_thread): Likewise.
4487 (store_regs_kernel_thread): Likewise.
4488
4489 2013-08-07 Anton Blanchard <anton@samba.org>
4490
4491 * MAINTAINERS: Add myself to Write After Approval.
4492
4493 2013-08-05 Tom Tromey <tromey@redhat.com>
4494
4495 * aix-thread.c (_initialize_aix_thread): Use
4496 complete_target_initialization.
4497 * bsd-uthread.c (_initialize_bsd_uthread): Use
4498 complete_target_initialization.
4499 * dec-thread.c (_initialize_dec_thread): Use
4500 complete_target_initialization.
4501 * ravenscar-thread.c (_initialize_ravenscar): Use
4502 complete_target_initialization.
4503 * sol-thread.c (_initialize_sol_thread): Use
4504 complete_target_initialization.
4505 * spu-multiarch.c (_initialize_spu_multiarch): Use
4506 complete_target_initialization.
4507
4508 2013-08-05 Tom Tromey <tromey@redhat.com>
4509
4510 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4511 * ada-lang.c (ada_lookup_simple_minsym): Return
4512 bound_minimal_symbol.
4513 * ada-lang.h (ada_lookup_simple_minsym): Update.
4514 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4515 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4516 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4517 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4518 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4519 * minsyms.c (msymbol_objfile): Remove.
4520 (lookup_minimal_symbol_internal): New function, from
4521 lookup_minimal_symbol.
4522 (lookup_minimal_symbol): Rewrite using
4523 lookup_minimal_symbol_internal.
4524 (lookup_bound_minimal_symbol): New function.
4525 * minsyms.h (msymbol_objfile): Remove.
4526 (lookup_bound_minimal_symbol): Declare.
4527 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4528 * parse.c (write_exp_msymbol): Change parameter to a
4529 bound_minimal_symbol.
4530 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4531 * parser-defs.h (write_exp_msymbol): Update.
4532 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4533 * symfile.c (simple_read_overlay_table): Use
4534 lookup_bound_minimal_symbol.
4535 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4536 (search_symbols): Likewise.
4537 (print_msymbol_info): Take a bound_minimal_symbol argument.
4538 (symtab_symbol_info, rbreak_command): Update.
4539 * symtab.h (struct symbol_search) <msymbol>: Change type
4540 to bound_minimal_symbol.
4541 * valops.c (find_function_in_inferior): Use
4542 lookup_bound_minimal_symbol.
4543 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4544
4545 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 Code cleanup.
4548 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4549 to ...
4550 (async_cleanup_sigint_signal_handler): ... this.
4551 (initialize_sigint_signal_handler): Remove declaration.
4552 (handle_remote_sigint): Rename the declaration to ...
4553 (async_handle_remote_sigint): ... this.
4554 (handle_remote_sigint_twice): Rename the declaration to ...
4555 (async_handle_remote_sigint_twice): ... this.
4556 (async_remote_interrupt, async_remote_interrupt_twice)
4557 (remote_interrupt): Remove the declarations.
4558 (remote_interrupt_twice): Rename the declaration ...
4559 (sync_remote_interrupt_twice): ... this.
4560 (sigint_remote_twice_token): Rename the variable to ...
4561 (async_sigint_remote_twice_token): ... this.
4562 (sigint_remote_token): Rename the variable to ...
4563 (async_sigint_remote_token): ... this.
4564 (initialize_sigint_signal_handler): Rename the function to ...
4565 (async_initialize_sigint_signal_handler): ... this. Update the name
4566 inside.
4567 (handle_remote_sigint): Rename the function to ...
4568 (async_handle_remote_sigint): ... this. Update the names inside.
4569 (handle_remote_sigint_twice): Rename the function to ...
4570 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4571 (cleanup_sigint_signal_handler): Rename the function to ...
4572 (async_cleanup_sigint_signal_handler): ... this.
4573 (remote_interrupt): Rename the function to ...
4574 (sync_remote_interrupt): this. Update the names inside.
4575 (remote_interrupt_twice): Rename the function to ...
4576 (sync_remote_interrupt_twice): this. Update the names inside.
4577 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4578 (_initialize_remote): Update the names inside.
4579
4580 2013-08-02 Tom Tromey <tromey@redhat.com>
4581
4582 PR symtab/15719:
4583 * breakpoint.c (update_watchpoint, watchpoint_check)
4584 (watch_command_1): Update.
4585 * eval.c (fetch_subexp_value): Add "preserve_errors"
4586 parameter.
4587 * ppc-linux-nat.c (check_condition): Update.
4588 * value.h (fetch_subexp_value): Update.
4589
4590 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4591
4592 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4593 add_file_handler.
4594
4595 2013-08-01 Doug Evans <dje@google.com>
4596
4597 PR symtab/15691
4598 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4599 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4600 Add assert of sig_entry->dwo_unit == NULL.
4601 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4602 had already been read.
4603 (read_signatured_type): Set per_cu.tu_read.
4604
4605 PR symtab/15695
4606 * valops.c (value_struct_elt): Add missing call to check_typedef.
4607 (value_find_oload_method_list): Ditto.
4608
4609 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4610 effectively, struct symbol_search **.
4611 (make_cleanup_free_search_symbols): Change arg to struct
4612 symbol_search **. All callers updated.
4613 (compare_search_syms): Compare symtab file name and block as well.
4614 (search_symbols_equal): New function.
4615 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4616 New args new_head, new_tail. Result is now void. Remove dups after
4617 sorting the symbols.
4618 (search_symbols): Sort all found symbols once, after all have been
4619 found, and remove duplicates. Simplify cleanup tracking of result.
4620 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4621
4622 Further workarounds for binutils/15021.
4623 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4624 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4625 Watch for duplicate symtabs coming from type units.
4626 (compute_symtab_includes): Update call to
4627 recursively_compute_inclusions. Build vector of included symtabs
4628 instead of per_cus.
4629 * symtab.h (symtab_ptr): New typedef.
4630 (DEF_VEC_P (symtab_ptr)): New VEC type.
4631 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4632 instead.
4633
4634 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4635
4636 * cli/cli-script.c (script_from_file): Remove use of
4637 error_pre_print.
4638 * main.c (captured_main): Remove use of error_pre_print and
4639 quit_pre_print.
4640 * utils.c (error_pre_print, quit_pre_print): Remove.
4641 * utils.h (error_pre_print, quit_pre_print): Likewise.
4642
4643 2013-08-01 Yao Qi <yao@codesourcery.com>
4644
4645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4646 with mi_getopt.
4647 (mi_cmd_stack_list_variables): Likewise.
4648
4649 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4650
4651 * exceptions.c (deprecated_throw_reason): Remove.
4652 * exceptions.h (deprecated_throw_reason): Remove.
4653
4654 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4655
4656 * remote-mips.c (mips_error): Replace use of
4657 deprecated_throw_reason with throw_verror. Use the error message
4658 passed to mips_error as the error message for throw_verror.
4659
4660 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4661
4662 * monitor.c (monitor_interrupt_query): Replace use of
4663 deprecated_throw_reason with quit.
4664 * nto-procfs.c (interrupt_query): Likewise.
4665 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4666 * remote-mips.c (mips_kill): Likewise.
4667 * remote.c (interrupt_query): Likewise.
4668
4669 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4670
4671 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4672 with call to fatal.
4673
4674 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4675 Yao Qi <yao@codesourcery.com>
4676
4677 * tracepoint.c (trace_dump_command): Select the current frame.
4678
4679 2013-07-30 Doug Evans <dje@google.com>
4680
4681 * dwarf2read.c (process_queue): Add type signature to debug output.
4682
4683 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4684
4685 * value.c (value_fetch_lazy): Mark optimized out values as such
4686 rather than raising an error.
4687
4688 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4689
4690 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4691 before checking which bits of the parent, not the child, value are
4692 valid.
4693
4694 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4695
4696 PR gdb/15715
4697 * top.c: Include "filenames.h".
4698 (set_history_filename): New function.
4699 (init_main): Install it as set hook of the "set history filename"
4700 command.
4701
4702 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4703
4704 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4705 attribute parameter.
4706 (dwarf2_const_value_data): Constify struct attribute parameter.
4707 (dwarf2_const_value): Constify struct attribute parameter.
4708 (dwarf2_const_value_attr): Constify struct attribute parameter.
4709 (lookup_die_type): Constify struct attribute parameter.
4710 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4711 (follow_die_ref_or_sig): Constify struct attribute parameter.
4712 (follow_die_ref): Constify struct attribute parameter.
4713 (follow_die_sig): Constify struct attribute parameter.
4714 (get_DW_AT_signature_type): Constify struct attribute parameter.
4715 (get_type_unit_group): Constify struct attribute parameter.
4716 (fill_in_loclist_baton): Constify struct attribute parameter.
4717 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4718 (type_unit_group): Constify struct attribute parameter.
4719
4720 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4721
4722 * dwarf2read.c (attr_form_is_block): Make argument const.
4723 (attr_form_is_section_offset): Make argument const.
4724 (attr_form_is_constant): Make argument const.
4725 (attr_form_is_ref): Make argument const.
4726
4727 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4728
4729 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4730 All uses updated.
4731 (attr_form_is_ref): Moved below attr_form_is_constant.
4732
4733 2013-07-29 Doug Evans <dje@google.com>
4734
4735 * main.c (captured_command_loop): Tweak comment.
4736
4737 * target.c (target_async_permitted_1): Fix comment.
4738
4739 * symtab.c (iterate_over_some_symtabs): Add comment.
4740
4741 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4742
4743 2013-07-27 Yao Qi <yao@codesourcery.com>
4744
4745 * NEWS: Mention that GDBserver now supports hardware
4746 watchpoints on the MIPS GNU/Linux target.
4747
4748 2013-07-27 Yao Qi <yao@codesourcery.com>
4749
4750 * Makefile.in (HFILES_NO_SRCDIR): Add
4751 common/mips-linux-watch.h.
4752 (mips-linux-watch.o): New rule.
4753 * common/mips-linux-watch.c: New.
4754 * common/mips-linux-watch.h: New.
4755 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4756 * mips-linux-nat.c: Include mips-linux-watch.h.
4757 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4758 to common/mips-linux-watch.h.
4759 (MAX_DEBUG_REGISTER): Likewise.
4760 (enum pt_watch_style): Likewise.
4761 (struct mips32_watch_regs): Likewise.
4762 (struct mips64_watch_regs): Likewise.
4763 (struct pt_watch_regs): Likewise.
4764 (struct mips_watchpoint): Likewise.
4765 (mips_linux_watch_get_irw_mask): Move to
4766 common/mips-linux-watch.c.
4767 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4768 (mips_linux_watch_get_watchlo): Likewise.
4769 (mips_linux_watch_set_watchlo): Likewise.
4770 (mips_linux_watch_get_watchhi): Likewise.
4771 (mips_linux_watch_set_watchhi): Likewise.
4772 (mips_linux_read_watch_registers): Likewise.
4773 (mips_linux_watch_type_to_irw): Likewise.
4774 (mips_linux_stopped_data_address, fill_mask): Likewise.
4775 (mips_linux_watch_try_one_watch): Likewise.
4776 (mips_linux_watch_populate_regs): Likewise.
4777
4778 2013-07-27 Yao Qi <yao@codesourcery.com>
4779
4780 * mips-linux-nat.c (get_irw_mask): Rename to ...
4781 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4782 'set' to 'n'. Update function comment. All callers changed.
4783 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4784 function comment. All callers changed.
4785 (get_num_valid): Rename to ...
4786 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4787 'set' to 'n'. Update function comment. All callers changed.
4788 (get_watchlo): Rename to ...
4789 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4790 'set' to 'n'. Update function comment. All callers changed.
4791 (set_watchlo): Rename to ...
4792 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4793 'set' to 'n'. Update function comment. All callers changed.
4794 (get_watchhi): Rename to ...
4795 (mips_linux_watch_get_watchhi): ... this. Update function
4796 comment. All callers changed.
4797 (set_watchhi): Rename to ...
4798 (mips_linux_watch_set_watchhi): ... this. Update function
4799 comment. All callers changed.
4800 (mips_linux_read_watch_registers): Update function comment.
4801 Add new parameters 'lwpid', 'watch_readback', and
4802 'watch_readback_valid'. Update.
4803 (type_to_irw): Rename to ...
4804 (mips_linux_watch_type_to_irw): ... this. Update function
4805 comment. All callers changed.
4806 (fill_mask): Update function comment.
4807 (try_one_watch): Rename to ...
4808 (mips_linux_watch_try_one_watch): ... this. Change the type
4809 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4810 (populate_regs_from_watches): Rename to ...
4811 (mips_linux_watch_populate_regs): ... this. Add parameter
4812 'current_watches'. All callers changed.
4813
4814 2013-07-27 Yao Qi <yao@codesourcery.com>
4815
4816 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4817 the code.
4818 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4819 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4820 (struct pt_watch_regs): Likewise.
4821 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4822 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4823 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4824 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4825 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4826
4827 2013-07-27 Yao Qi <yao@codesourcery.com>
4828
4829 * breakpoint.h: Include break-common.h.
4830 (enum target_hw_bp_type): Move to ...
4831 * common/break-common.h: ... here. New.
4832
4833 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4834
4835 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4836 process group regardless of having tty on stdin.
4837
4838 2013-07-25 Doug Evans <dje@google.com>
4839
4840 * linux-fork.h (detach_fork): Delete.
4841
4842 2013-07-25 Tom Tromey <tromey@redhat.com>
4843
4844 PR remote/15256, PR remote/15266:
4845 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4846 * monitor.c (monitor_detach): Use unpush_target.
4847 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4848 * remote-mips.c (mips_detach): Use unpush_target. Don't
4849 call mips_close.
4850 * remote-sim.c (gdbsim_detach): Use unpush_target.
4851 * target.c (pop_target): Remove.
4852 (pop_all_targets_above): Don't call target_close.
4853 (target_close): Assert that the target is unpushed.
4854 * target.h (pop_target): Don't declare.
4855 * tracepoint.c (tfile_open): Use unpush_target.
4856
4857 2013-07-25 Tom Tromey <tromey@redhat.com>
4858
4859 * linux-thread-db.c (init_thread_db_ops): Call
4860 complete_target_initialization.
4861 (_initialize_thread_db): Don't call add_target.
4862 * target.c (complete_target_initialization): New function.
4863 (add_target_with_completer): Call it.
4864 * target.h (complete_target_initialization): Declare.
4865
4866 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4867
4868 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4869 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4870 (HPPANBSD_SIZEOF_GREGS): New define.
4871 (hppaobsd_supply_gregset): Handle additional registers.
4872 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4873 we provide more registers now.
4874 (hppabsd_supply_gregset): Supply additional registers.
4875 (hppabsd_collect_gregset): Collect additional registers.
4876
4877 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4878
4879 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4880 (hppabsd_dwarf2_frame_init_reg): New function.
4881 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4882
4883 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4884
4885 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4886 'z' format code. Remove error for optimized out values, standard
4887 code will handle these fine.
4888
4889 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4890
4891 * NEWS: Mention new 'z' formatter.
4892 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
4893 (_initialize_printcmd): Mention 'z' formatter in help text of the
4894 'x' command.
4895
4896 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
4897
4898 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
4899 formatting.
4900
4901 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
4902
4903 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
4904 interface can evaluate arguments. Fallback to the old mode if it
4905 cannot.
4906 (create_exception_master_breakpoint): Likewise.
4907 * elfread.c (elf_can_evaluate_probe_arguments): New function.
4908 (struct sym_probe_fns elf_probe_fns): Export function above to the
4909 probe interface.
4910 * probe.c (can_evaluate_probe_arguments): New function.
4911 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
4912 function pointer.
4913 (can_evaluate_probe_arguments): New function prototype.
4914 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
4915 probe interface can evaluate arguments. Fallback to the old mode
4916 if it cannot.
4917 * stap-probe.c (stap_get_probe_argument_count): Check if probe
4918 interface can evaluate arguments. Warning the user if it cannot.
4919 (stap_can_evaluate_probe_arguments): New function.
4920 (struct probe_ops stap_probe_ops): Export function above to the
4921 probe interface.
4922 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
4923 New function pointer.
4924
4925 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
4926
4927 * Makefile.in (SFILES): Add common/target-common.c.
4928 Add common/target-common.h to headers.
4929 (COMMON_OBS): Add target-common.o.
4930 (target-common.o): New target.
4931 * linux-nat.h (resume_kind): Move to common/target-common.h.
4932 * target.c (target_waitstatus_to_string): Move to
4933 common/target-common.c.
4934 * target.h: Include target-common.h.
4935 (target_waitkind): Move to common/target-common.h.
4936 (target_waitstatus): Likewise.
4937 (TARGET_WNOHANG): Likewise.
4938 * common/target-common.c: New file.
4939 * common/target-common.h: New file.
4940
4941 2013-07-24 Doug Evans <dje@google.com>
4942
4943 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
4944 a warning.
4945
4946 2013-07-23 Yao Qi <yao@codesourcery.com>
4947
4948 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
4949 parameter 'gdbarch'.
4950 (i386_stack_tramp_frame_sniffer): Caller update.
4951 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
4952 parameter 'gdbarch' and 'target'.
4953 (i386_linux_core_read_description): Caller update.
4954 * amd64-linux-tdep.c (amd64_linux_core_read_description):
4955 Likewise.
4956 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
4957 declaration.
4958
4959 2013-07-23 Tom Tromey <tromey@redhat.com>
4960
4961 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
4962 2013-07-22.
4963
4964 2013-07-22 Doug Evans <dje@google.com>
4965
4966 * exec.h (remove_target_sections): Delete arg abfd.
4967 * exec.c (exec_close): Update call to remove_target_sections.
4968 (remove_target_sections): Delete arg abfd.
4969 * solib.c (update_solib_list): Ditto.
4970 (reload_shared_libraries_1): Ditto.
4971 (clear_solib): Ditto, and unconditionally call remove_target_sections.
4972 * target.h (struct target_section): Rename key to owner.
4973 All uses updated.
4974
4975 2013-07-22 Tom Tromey <tromey@redhat.com>
4976
4977 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
4978
4979 2013-07-22 Tom Tromey <tromey@redhat.com>
4980
4981 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
4982 Simplify cleanup handling.
4983
4984 2013-07-22 Tom Tromey <tromey@redhat.com>
4985
4986 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
4987 on all return paths.
4988
4989 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4990
4991 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
4992 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
4993 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
4994
4995 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
4996
4997 * top.c (print_gdb_version): Add help, apropos description and
4998 url to online documentation.
4999
5000 2013-07-19 Hui Zhu <hui@codesourcery.com>
5001
5002 PR gdb/15692
5003 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5004
5005 2013-07-19 Yao Qi <yao@codesourcery.com>
5006
5007 * target.c (update_current_target): Change the default action
5008 of 'to_traceframe_info' from tcomplain to return_zero.
5009 * target.h (struct target_ops) <to_traceframe_info>: Add more
5010 comments.
5011 * valops.c (read_value_memory): Call
5012 traceframe_available_memory unconditionally.
5013
5014 2013-07-18 Yao Qi <yao@codesourcery.com>
5015
5016 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5017 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5018 symbol without prefix. If found, set its type to
5019 'mst_solib_trampoline'.
5020
5021 2013-07-17 Doug Evans <dje@google.com>
5022
5023 * NEWS: Mention "set print raw frame-arguments".
5024 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5025 * stack.c (print_raw_frame_arguments): New static global.
5026 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5027 (_initialize_stack): New command "set/show print raw frame-arguments".
5028 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5029 (set_print_raw, show_print_raw): New functions.
5030 (_initialize_valprint): New prefix command "set/show print raw".
5031 * valprint.h (value_print_options): Improve comments.
5032
5033 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5034 of all *list variables.
5035
5036 * gdbcmd.h (togglelist): Delete.
5037 * cli/cli-cmds.c (togglelist): Delete.
5038 (init_cmd_lists): Update.
5039 * cli/cli-cmds.h (togglelist): Delete.
5040
5041 2013-07-17 Tom Tromey <tromey@redhat.com>
5042
5043 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5044 dwarf2_per_objfile.
5045
5046 2013-07-16 Doug Evans <dje@google.com>
5047
5048 * nto-tdep.c (nto_relocate_section_addresses): Update,
5049 target_section.bfd deleted.
5050 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5051 * s390-tdep.c (s390_load): Ditto.
5052 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5053
5054 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5055
5056 * common/format.c (parse_format_string): Add checks for NULL
5057 character before calling strchr.
5058
5059 2013-07-16 Doug Evans <dje@google.com>
5060
5061 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5062 temp_pathname argument.
5063 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5064 when opening the file fails.
5065
5066 * target.h (struct target_section): Delete member bfd.
5067 All users updated to use the_bfd_section->owner instead.
5068 * exec.c (add_to_section_table): Assert bfd is expected value.
5069 Remove initialization of target_section.bfd.
5070 (remove_target_sections): Update.
5071 (section_table_available_memory): Update.
5072 (section_table_xfer_memory_partial): Update.
5073 (print_section_info): Update.
5074 (exec_set_section_address): Update.
5075 * record-full.c (record_full_core_xfer_partial): Update.
5076 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5077 * solib-target.c (solib_target_relocate_section_addresses): Update.
5078 * symfile.c (build_section_addr_info_from_section_table): Update.
5079 * target.c (memory_xfer_live_readonly_partial): Update.
5080 (memory_xfer_partial_1): Update.
5081
5082 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5083
5084 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5085 now available for embedded (BookE) and server (BookS) processors,
5086 correct mentions of 'booke' and adjust comments accordingly in order to
5087 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5088 (have_ptrace_booke_interface): Rename function and variable
5089 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5090 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5091 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5092 'hwdebug_point_cmp'. Update all uses.
5093 (booke_find_thread_points_by_tid): Rename function
5094 'booke_find_thread_points_by_tid' to
5095 'hwdebug_find_thread_points_by_tid'. Update all uses.
5096 (booke_insert_point): Rename function 'booke_insert_point' to
5097 'hwdebug_insert_point'. Update all uses.
5098 (booke_remove_point): Rename function 'booke_remove_point' to
5099 'hwdebug_remove_point'. Update all uses.
5100
5101 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5102
5103 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5104 numbers with enum values.
5105
5106 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5107
5108 PR threads/13217
5109 * thread.c (thread_apply_all_command): Check for valid threads
5110 and thread count.
5111 (thread_array_cleanup): New struct.
5112 (set_thread_refcount): New function.
5113
5114 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5115
5116 * infcmd.c (default_print_one_register_info): Reuse function
5117 print_hex_chars.
5118
5119 2013-07-10 Tom Tromey <tromey@redhat.com>
5120
5121 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5122 (ada-exp.o): New target.
5123
5124 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5125
5126 * mt-tdep.c (mt_registers_info): Call
5127 get_no_prettyformat_print_options instead of
5128 get_raw_print_options (regression by last patch from Doug
5129 Evans).
5130
5131 2013-07-09 Pedro Alves <palves@redhat.com>
5132
5133 Checked in by Joel Brobecker <brobecker@adacore.com>.
5134 * ada-lang.c (coerce_unspec_val_to_type): Use
5135 value_optimized_out_const.
5136 * value.c (value_optimized_out_const): New function.
5137 * value.h (value_optimized_out_const): New declaration.
5138
5139 2013-07-09 Doug Evans <dje@google.com>
5140
5141 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5142 Enum values rename as well. All uses updated.
5143 * valprint.h (value_print_options): Rename member pretty to
5144 pretty format. Rename member prettyprint_arrays to
5145 prettyformat_arrays. Rename member prettyprint_structs to
5146 prettyformat_structs. All uses updated.
5147 (get_no_prettyformat_print_options): Renamed from
5148 get_raw_print_options.
5149 * valprint.c (get_no_prettyformat_print_options): Renamed from
5150 get_raw_print_options. All callers updated.
5151 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5152 All callers updated.
5153 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5154 All callers updated.
5155 (_initialize_valprint): Improve help text for "set print pretty" and
5156 "set print arrays".
5157
5158 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5159
5160 * value.c (value_bits_valid): Revert previous change, and change
5161 by Pedro on 2013-07-04, due to regressions in
5162 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5163
5164 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5165 Pedro Alves <palves@redhat.com>
5166
5167 * value.c (value_bits_valid): If the value is not lval_computed
5168 or has no check validity handler then the answer is the
5169 optimized_out flag, otherwise defer to the handler.
5170
5171 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5172
5173 * top.c (print_gdb_configuration): Explain in output of
5174 --configuration what does "relocatable" mean.
5175
5176 * main.c (print_gdb_help): Regroup options in the --help text.
5177 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5178 the relevant discussions.
5179
5180 2013-07-06 Yao Qi <yao@codesourcery.com>
5181
5182 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5183 Remove parameter 'lsal'.
5184 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5185 to inner block. Caller update.
5186 (base_breakpoint_create_breakpoints_sal): Update.
5187 (bkpt_create_breakpoints_sal): Likewise.
5188 (tracepoint_create_breakpoints_sal): Likewise.
5189 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5190 element 0 of vector 'canonical->sals'.
5191
5192 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5193
5194 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5195 register number instead of the pseudo register one.
5196 (rs6000_dwarf2_reg_to_regnum): Likewise.
5197
5198 2013-07-04 Pedro Alves <palves@redhat.com>
5199
5200 * findvar.c (value_of_register): Use allocate_optimized_out_value
5201 if the register has been optimized out, instead of
5202 set_value_optimized_out.
5203 * frame-unwind.c (frame_unwind_got_optimized): Use
5204 allocate_optimized_out_value.
5205
5206 2013-07-04 Pedro Alves <palves@redhat.com>
5207
5208 * value.c (value_bits_valid): If the value is not lval_computed,
5209 or doesn't have a check_validity hook, assume the value is entirely
5210 valid.
5211
5212 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5213
5214 * stack.c (read_frame_arg): No longer fetch lazy values.
5215 * value.c (value_optimized_out): If the value is not already
5216 marked optimized out, and is lazy then fetch it.
5217 (value_primitive_field): Move optimized out check to later in the
5218 function, after we have loaded any lazy values.
5219 (value_fetch_lazy): Use optimized out flag directly rather than
5220 calling optimized_out method.
5221
5222 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5223
5224 * valops.c: Don't include "user-regs.h".
5225 (value_fetch_lazy): Moved to value.c.
5226 * value.c: Include "user-regs.h".
5227 (value_fetch_lazy): Moved from valops.c.
5228
5229 2013-07-04 Yao Qi <yao@codesourcery.com>
5230
5231 Revert:
5232 2013-06-27 Yao Qi <yao@codesourcery.com>
5233
5234 * common/create-version.sh: Update comments. Handle the case
5235 that TARGET_ALIAS is empty.
5236
5237 2013-07-03 Pedro Alves <palves@redhat.com>
5238
5239 * Makefile.in (config.status): Depend on development.sh.
5240 (aclocal_m4_deps): Add libmcheck.m4.
5241 * acinclude.m4: Include libmcheck.m4.
5242 * configure.ac: Source development.sh instead of setting
5243 'development' here. --enable-libmcheck/--disable-libmcheck code
5244 factored out to GDB_AC_LIBMCHECK. Run it.
5245 * development.sh: New file.
5246 * libmcheck.m4: New file.
5247 * configure: Regenerate.
5248
5249 2013-07-02 Tom Tromey <tromey@redhat.com>
5250
5251 * contrib/ari/update-web-ari.sh: Update for version.in change.
5252
5253 2013-07-02 Tom Tromey <tromey@redhat.com>
5254
5255 * common/ptid.h: Comment fixes.
5256
5257 2013-07-01 Tom Tromey <tromey@redhat.com>
5258
5259 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5260 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5261 (dwarf2_read_index, create_all_comp_units): Update.
5262
5263 2013-07-01 Tom Tromey <tromey@redhat.com>
5264
5265 * configure.ac (build_warnings): Add -Wold-style-definition.
5266 * configure: Rebuild.
5267 * machoread.c (_initialize_machoread): Use "(void)".
5268 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5269 use "(void)".
5270
5271 2013-07-01 Tom Tromey <tromey@redhat.com>
5272
5273 * configure.ac (build_warnings): Add -Wold-style-declaration.
5274 * configure: Rebuild.
5275 * dsrec.c (make_srec): Use "static const", not "const static".
5276 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5277 not "const static".
5278 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5279 Use "static const", not "const static".
5280 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5281 not "const static".
5282 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5283 not "const static".
5284 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5285 not "const static".
5286 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5287 not "const static".
5288 (v850_dbtrap_breakpoint_from_pc): Likewise.
5289 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5290 not "const static".
5291
5292 2013-07-01 Tom Tromey <tromey@redhat.com>
5293
5294 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5295 * configure: Rebuild.
5296
5297 2013-07-01 Pedro Alves <palves@redhat.com>
5298
5299 * defs.h: Include "pathmax.h".
5300 * utils.c: Don't include sys/param.h.
5301 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5302 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5303 instead of MAXPATHLEN.
5304 * solib-sunos.c: Don't include sys/param.h.
5305 * xcoffread.c: Don't include sys/param.h.
5306 * bsd-kvm.c: Don't include sys/param.h.
5307 * darwin-nat.c: Don't include sys/param.h.
5308 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5309 * darwin-nat-info.c: Don't include sys/param.h.
5310 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5311 MAXPATHLEN.
5312 * i386obsd-nat.c: Don't include sys/param.h.
5313 * inf-child.c: Don't include sys/param.h.
5314 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5315 * linux-fork.c: Don't include sys/param.h.
5316 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5317 * linux-nat.c: Don't include sys/param.h.
5318 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5319 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5320 * m68klinux-nat.c: Don't include sys/param.h.
5321 * nbsd-nat.c: Don't include sys/param.h.
5322 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5323 * ppc-linux-nat.c: Don't include sys/param.h.
5324 * rs6000-nat.c: Don't include sys/param.h.
5325 * spu-linux-nat.c. Don't include sys/param.h.
5326 * windows-nat.c: Don't include sys/param.h.
5327 * xtensa-linux-nat.c: Don't include sys/param.h.
5328 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5329
5330 2013-07-01 Pedro Alves <palves@redhat.com>
5331
5332 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5333 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5334 * gnulib/aclocal.m4: Regenerate.
5335 * gnulib/config.in: Regenerate.
5336 * gnulib/configure: Regenerate.
5337 * gnulib/import/pathmax.h: New file.
5338 * gnulib/import/Makefile.am: Regenerate.
5339 * gnulib/import/Makefile.in: Regenerate.
5340 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5341 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5342 * gnulib/import/m4/pathmax.m4: New file.
5343
5344 2013-07-01 Pedro Alves <palves@redhat.com>
5345
5346 * configure.ac (GDBINIT): Define, depending on host.
5347 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5348 * top.c (PATH_MAX): Delete fallback definition.
5349 (GDBINIT_FILENAME): Delete.
5350 (gdbinit): Reimplement as const char array set to the GDBINIT
5351 string constant.
5352 * top.h (gdbinit): Make const.
5353 * configure, config.in: Regenerate.
5354
5355 2013-07-01 Pedro Alves <palves@redhat.com>
5356
5357 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5358 * cli/cli-cmds.h (source_script): Likewise.
5359 * exceptions.c (catch_command_errors_const): New function.
5360 * exceptions.h (catch_command_errors_const): Declare.
5361 * main.c (get_init_files): Make parameters const, and adjust.
5362 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5363 'local_gdbinit' locals const. Adjust to use
5364 catch_command_errors_const.
5365 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5366 'local_gdbinit' locals const.
5367
5368 2013-07-01 Pedro Alves <palves@redhat.com>
5369
5370 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5371 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5372 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5373 <unistd.h>.
5374
5375 2013-07-01 Pedro Alves <palves@redhat.com>
5376
5377 Import the "unistd" gnulib module.
5378 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5379 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5380 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5381 import/m4/unistd_h.m4.
5382 * gnulib/aclocal.m4: Renenerate.
5383 * gnulib/config.in: Renenerate.
5384 * gnulib/configure: Renenerate.
5385 * gnulib/import/Makefile.am: Renenerate.
5386 * gnulib/import/Makefile.in: Renenerate.
5387 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5388 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5389 * gnulib/import/m4/off_t.m4: New file.
5390 * gnulib/import/m4/ssize_t.m4: New file.
5391 * gnulib/import/m4/sys_types_h.m4: New file.
5392 * gnulib/import/m4/unistd_h.m4: New file.
5393 * gnulib/import/sys_types.in.h: New file.
5394 * gnulib/import/unistd.c: New file.
5395 * gnulib/import/unistd.in.h: New file.
5396
5397 2013-07-01 Pedro Alves <palves@redhat.com>
5398
5399 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5400 defined instead of checking HAVE_UNISTD_H.
5401
5402 2013-07-01 Pedro Alves <palves@redhat.com>
5403
5404 Reimport gnulib from scratch.
5405 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5406 import/m4/onceonly.m4.
5407 * gnulib/aclocal.m4: Renegerate.
5408 * gnulib/config.in: Renegerate.
5409 * gnulib/configure: Renegerate.
5410 * gnulib/import/Makefile.in: Renegerate.
5411 * gnulib/import/extra/update-copyright: Renegerate.
5412 * gnulib/import/m4/onceonly.m4: Delete.
5413
5414 2013-07-01 Pedro Alves <palves@redhat.com>
5415
5416 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5417
5418 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5419
5420 Code cleanup.
5421 * remote.c (async_remote_interrupt_twice): Make it static.
5422 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5423
5424 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5425
5426 * ia64-linux-tdep.c: Include <ctype.h>.
5427 (ia64_linux_stap_is_single_operand): New function.
5428 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5429
5430 2013-06-28 Tom Tromey <tromey@redhat.com>
5431
5432 * Makefile.in (version.c): Use version.in, not
5433 common/version.in.
5434 * common/create-version.sh: Likewise.
5435 * common/version.in: Move...
5436 * version.in: ...here.
5437
5438 2013-06-28 Pedro Alves <palves@redhat.com>
5439
5440 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5441 here.
5442 * utils.h (pagination_enabled): Declare.
5443
5444 2013-06-28 Pedro Alves <palves@redhat.com>
5445
5446 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5447 Move higher up in file.
5448
5449 2013-06-28 Tom Tromey <tromey@redhat.com>
5450
5451 * tracepoint.c (deprecated_readline_begin_hook)
5452 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5453 declare.
5454
5455 2013-06-28 Pedro Alves <palves@redhat.com>
5456
5457 PR tui/14880
5458 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5459 checking if they're available.
5460 * value.c (value_available_contents_eq): Change comment.
5461 * value.h (value_available_contents_eq): Expand comment.
5462
5463 2013-06-27 Tom Tromey <tromey@redhat.com>
5464
5465 * target.c (find_run_target): Remove.
5466 * target.h (find_run_target): Remove.
5467
5468 2013-06-27 Tom Tromey <tromey@redhat.com>
5469
5470 * corelow.c (core_gdbarch): Now static.
5471
5472 2013-06-27 Tom Tromey <tromey@redhat.com>
5473
5474 * target.c (target_struct_index): Remove.
5475
5476 2013-06-27 Pedro Alves <palves@redhat.com>
5477
5478 * infrun.c: Remove comment describing the 'stepping over runtime
5479 loader dynamic symbol resolution code' mechanism; moved to
5480 gdbint.texinfo.
5481
5482 2013-06-27 Pedro Alves <palves@redhat.com>
5483
5484 * exceptions.c (catch_command_errors): Remove spurious space.
5485 * exceptions.h (catch_command_errors): Second parameter is "arg",
5486 not "command".
5487
5488 2013-06-27 Yao Qi <yao@codesourcery.com>
5489
5490 * common/create-version.sh: Update comments. Handle the case
5491 that TARGET_ALIAS is empty.
5492
5493 2013-06-26 Pedro Alves <palves@redhat.com>
5494
5495 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5496 comment.
5497
5498 2013-06-26 Pedro Alves <palves@redhat.com>
5499
5500 * infrun.c: Update comments on stepping over runtime loader
5501 dynamic symbol resolution code.
5502
5503 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5504
5505 * ax-gdb.h (union exp_element): Forward declare.
5506 * parser-defs.h: Include expression.h.
5507
5508 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5509
5510 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5511
5512 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5513
5514 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5515
5516 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5517
5518 Fix trace-status to output proper start-time and stop-time.
5519 * tracepoint.c (trace_status_command): Fix type of printf arg to
5520 prevent improper type conversion.
5521 (trace_status_mi): Likewise.
5522
5523 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5524
5525 * mips-tdep.c (mips_next_pc): Fix a typo.
5526
5527 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5528
5529 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5530
5531 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5532 Yao Qi <yao@codesourcery.com>
5533
5534 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5535 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5536 * mi/mi-main.c (print_variable_or_computed): New function.
5537 (mi_cmd_trace_frame_collected): New function.
5538 * tracepoint.c (find_trace_state_variable_by_number): New.
5539 (struct traceframe_info): Move to tracepoint.h
5540 (struct collection_list): Likewise.
5541 (do_collect_symbol): Include locals and arguments in the
5542 collected variables list.
5543 (clear_collection_list): Clear wholly collected variables list
5544 and computed variables list.
5545 (append_exp): New function.
5546 (encode_actions_1): Include variables in the wholly
5547 collected variables list. Include memory ranges and
5548 full-fledged expressions in the computed expressions list.
5549 (encode_actions): Move some code to ...
5550 Return the cleanup chain.
5551 (encode_actions_rsp): ... here. New function.
5552 (get_traceframe_location, get_traceframe_info): Remove static.
5553 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5554 (struct collection_list): Moved from tracepoint.c. Add two
5555 new fields 'wholly_collected' and 'computed'.
5556 (find_trace_state_variable_by_number): Declare.
5557 (encode_actions): Adjust declaration.
5558 (encode_actions_rsp): Declare.
5559 (get_traceframe_info, get_traceframe_location): Declare.
5560
5561 * NEWS: Mention new MI command -trace-frame-collected.
5562
5563 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5564 Yao Qi <yao@codesourcery.com>
5565
5566 * ctf.c (ctf_traceframe_info): Push trace state variables
5567 present in the trace data into the traceframe info object.
5568 * breakpoint.c (DEF_VEC_I): Remove.
5569 * common/filestuff.c (DEF_VEC_I): Likewise.
5570 * dwarf2loc.c (DEF_VEC_I): Likewise.
5571 * mi/mi-main.c (DEF_VEC_I): Likewise.
5572 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5573 * features/traceframe-info.dtd: Add tvar element and its
5574 attributes.
5575 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5576 (build_traceframe_info): Push trace state variables present in
5577 the trace data into the traceframe info object.
5578 (traceframe_info_start_tvar): New function.
5579 (tvar_attributes): New.
5580 (traceframe_info_children): Add "tvar" element.
5581 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5582
5583 * NEWS: Mention the change in GDB and GDBserver.
5584
5585 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5586 Yao Qi <yao@codesourcery.com>
5587
5588 * tracepoint.c (trace_dump_command): Move code to ...
5589 (get_traceframe_location): ... here. New.
5590
5591 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5592 Yao Qi <yao@codesourcery.com>
5593
5594 * tracepoint.c (trace_dump_command): GDB emits an error
5595 instead of a warning when a traceframe is not selected.
5596
5597 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5598 Yao Qi <yao@codesourcery.com>
5599
5600 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5601 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5602 in collection_list.
5603 (do_clear_collection_list, init_collection_list): New.
5604 (encode_actions): Add local variables 'tracepoint_list' and
5605 'stepping_list'. Call init_collection_list and make cleanup
5606 which calls do_clear_collection_list. Don't call
5607 clear_collection_list.
5608 (_initialize_tracepoint): Delete references to
5609 'tracepoint_list' and 'stepping_list'.
5610
5611 2013-06-25 Tom Tromey <tromey@redhat.com>
5612
5613 * common/create-version.sh (date): Use "$", not "$$" in sed
5614 expression.
5615
5616 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5617
5618 * NEWS (New targets): Add entry for TI MSP430.
5619
5620 2013-06-25 Yao Qi <yao@codesourcery.com>
5621
5622 * remote.c (remote_start_remote): Move code to upload tsv
5623 earlier.
5624
5625 2013-06-25 Yao Qi <yao@codesourcery.com>
5626 Hui Zhu <hui@codesourcery.com>
5627 Pedro Alves <palves@redhat.com>
5628
5629 PR breakpoints/15075
5630 PR breakpoints/15434
5631 * breakpoint.c (bpstat_stop_status): Call
5632 b->ops->after_condition_true.
5633 (update_dprintf_command_list): Don't append "continue" command
5634 to the command list of dprintf breakpoint.
5635 (base_breakpoint_after_condition_true): New function.
5636 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5637 (dprintf_after_condition_true): New function.
5638 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5639 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5640
5641 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5642
5643 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5644 (ALLDEPFILES): Add msp430-tdep.c.
5645 * configure.tgt (msp430*-*-elf): New target.
5646 * msp430-tdep.c: New file.
5647
5648 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5649
5650 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5651 microMIPS synthetic symbols.
5652
5653 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5654
5655 * objfiles.h (pc_in_section): New prototype.
5656 (in_plt_section): Remove name argument, replace prototype with
5657 static inline function.
5658 * mips-tdep.h: Include "objfiles.h".
5659 (in_mips_stubs_section): New function.
5660 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5661 in_solib_call_trampoline member.
5662 (hppa_in_solib_call_trampoline): Remove name argument.
5663 * objfiles.c (pc_in_section): New function.
5664 (in_plt_section): Remove function.
5665 * mips-linux-tdep.c: Include "objfiles.h".
5666 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5667 name argument. Return 1 rather than the low 16-bit halfword of
5668 any instruction examined.
5669 (mips_linux_in_dynsym_resolve_code): Update
5670 mips_linux_in_dynsym_stub call accordingly.
5671 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5672 rather than an equivalent hand-coded sequence.
5673 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5674 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5675 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5676 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5677 in_opd_section.
5678 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5679 on call to tdep->in_solib_call_trampoline.
5680 (hppa_in_solib_call_trampoline): Remove name argument, update
5681 according to in_plt_section change.
5682 (hppa_skip_trampoline_code): Update according to in_plt_section
5683 change.
5684 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5685 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5686 Likewise.
5687 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5688 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5689 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5690 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5691 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5692 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5693 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5694 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5695 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5696 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5697 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5698 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5699 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5700
5701 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5702
5703 * common/create-version.sh: Fix expansion of $host_alias
5704 and $target_alias in generation of HOST_NAME and TARGET_NAME
5705 (resp.).
5706
5707 2013-06-24 Tom Tromey <tromey@redhat.com>
5708
5709 * common/create-version.sh: New file.
5710 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5711 create-version.sh.
5712 (HFILES_NO_SRCDIR): Use common/version.h.
5713 * version.in: Move to ...
5714 * common/version.in: ... here. Replace date with "DATE".
5715 * version.h: Move to ...
5716 * common/version.h: ... here.
5717
5718 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5719
5720 * gdb/gnulib/Makefile.in: Update date in copyright header.
5721 * gdb/gnulib/configure.ac: Ditto.
5722 * gdb/gnulib/update-gnulib.sh: Ditto.
5723
5724 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5725
5726 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5727 "gdb/gnulib/import".
5728
5729 2013-06-21 Will Newton <will.newton@linaro.org>
5730
5731 * doublest.c (ldfrexp): Remove function.
5732 (convert_doublest_to_floatformat): Call frexpl instead of
5733 ldfrexp.
5734
5735 2013-06-21 Will Newton <will.newton@linaro.org>
5736
5737 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5738 * gnulib/aclocal.m4: Regenerate.
5739 * gnulib/config.in: Regenerate.
5740 * gnulib/configure: Regenerate.
5741 * gnulib/import/Makefile.am: Update.
5742 * gnulib/import/Makefile.in: Update.
5743 * gnulib/import/m4/gnulib-cache.m4: Update.
5744 * gnulib/import/m4/gnulib-comp.m4: Update.
5745 * gnulib/import/float+.h: Import.
5746 * gnulib/import/float.c: Import.
5747 * gnulib/import/float.in.h: Import.
5748 * gnulib/import/fpucw.h: Import.
5749 * gnulib/import/frexp.c: Import.
5750 * gnulib/import/frexpl.c: Import.
5751 * gnulib/import/isnan.c: Import.
5752 * gnulib/import/isnand-nolibm.h: Import.
5753 * gnulib/import/isnand.c: Import.
5754 * gnulib/import/isnanl-nolibm.h: Import.
5755 * gnulib/import/isnanl.c: Import.
5756 * gnulib/import/itold.c: Import.
5757 * gnulib/import/m4/exponentd.m4: Import.
5758 * gnulib/import/m4/exponentl.m4: Import.
5759 * gnulib/import/m4/float_h.m4: Import.
5760 * gnulib/import/m4/fpieee.m4: Import.
5761 * gnulib/import/m4/frexp.m4: Import.
5762 * gnulib/import/m4/frexpl.m4: Import.
5763 * gnulib/import/m4/isnand.m4: Import.
5764 * gnulib/import/m4/isnanl.m4: Import.
5765 * gnulib/import/m4/math_h.m4: Import.
5766 * gnulib/import/math.c: Import.
5767 * gnulib/import/math.in.h: Import.
5768
5769 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5770
5771 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5772 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5773 signature_INTEL_edx comparisons.
5774
5775 2013-06-20 Doug Evans <dje@google.com>
5776
5777 symtab/15652
5778 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5779 All callers updated.
5780 (open_dwp_file): If we can't find the dwp file, search the basename
5781 in debug-file-directory.
5782
5783 * dwarf2read.c (struct dwp_file): Fix comment.
5784 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5785
5786 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5787 better.
5788
5789 2013-06-20 Yao Qi <yao@codesourcery.com>
5790
5791 * breakpoint.c (create_breakpoint): Fix code indentation.
5792
5793 2013-06-20 Yao Qi <yao@codesourcery.com>
5794
5795 * breakpoint.c (create_breakpoints_sal_default): Remove
5796 parameter 'lsal'. Update declaration.
5797 (bkpt_create_breakpoints_sal): Caller update.
5798 (tracepoint_create_breakpoints_sal): Likewise.
5799
5800 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5801 Yao Qi <yao@codesourcery.com>
5802
5803 * NEWS: Mention the new option '--skip-unavailable' of command
5804 -data-list-register-values.
5805 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5806 --skip-unavailable option. Adjust to use output_register.
5807 (output_register): Add new 'skip_unavailable' parameter.
5808 Handle it.
5809
5810 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5811
5812 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5813 common/i386-gcc-cpuid.h.
5814 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5815 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5816 Copy the latest version from upstream gcc.
5817 * common/linux-btrace.c: Include i386-cpuid.h.
5818 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5819 call to i386_cpuid.
5820 (cpu_supports_btrace): Likewise.
5821 * go32-nat.c: Include i386-cpuid.h.
5822 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5823
5824 2013-06-19 Doug Evans <dje@google.com>
5825
5826 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5827 (get_section_index): Ditto.
5828
5829 2013-06-19 Tom Tromey <tromey@redhat.com>
5830
5831 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5832 "dprintf" help.
5833
5834 2013-06-18 Doug Evans <dje@google.com>
5835
5836 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5837 before using it.
5838 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5839 Move test of cu_index closer to use. Print complaint if cu_index
5840 is bad.
5841
5842 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5843
5844 * machoread.c (oso_vector): Delete this global.
5845 (macho_register_oso): Add new parameter "oso_vector_ptr".
5846 Use it instead of the "oso_vector" global.
5847 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5848 (macho_symfile_read): Use a local oso_vector, to be free'ed
5849 at the end of this function, in place of the old "oso_vector"
5850 global. Update various function calls accordingly. Use one
5851 single cleanup chain for the entire function.
5852
5853 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5854
5855 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5856 DWARF2_PER_OBJFILE by uses of DATA instead.
5857
5858 2013-06-18 Tom Tromey <tromey@redhat.com>
5859
5860 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5861 argument.
5862 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5863 Special case signals other than GDB_SIGNAL_TRAP.
5864 (explains_signal_watchpoint): New function.
5865 (base_breakpoint_explains_signal): Add 'sig' argument.
5866 (initialize_breakpoint_ops): Set 'explains_signal' method for
5867 watchpoints.
5868 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5869 signal argument.
5870 (bpstat_explains_signal): Likewise.
5871 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5872
5873 2013-06-18 Tom Tromey <tromey@redhat.com>
5874
5875 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5876
5877 2013-06-18 Tom Tromey <tromey@redhat.com>
5878
5879 * python/python.c (finish_python_initialization): Decref
5880 'pythondir' on failure path as well.
5881
5882 2013-06-18 Tom Tromey <tromey@redhat.com>
5883
5884 PR symtab/15391:
5885 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5886 after taking bits_to_skip into account. Sign extend byte_offset.
5887 * utils.h (gdb_sign_extend): Declare.
5888 * utils.c (gdb_sign_extend): New function.
5889
5890 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5891
5892 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
5893
5894 2013-06-17 Pierre Muller <muller@sourceware.org>
5895
5896 * corelow.c (core_open): Print GDB signal name instead of target
5897 signal number.
5898
5899 2013-06-17 Mike Frysinger <vapier@gentoo.org>
5900
5901 * .gitignore: Add /gcore.
5902
5903 2013-06-13 Doug Evans <dje@google.com>
5904
5905 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
5906 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
5907
5908 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
5909
5910 * stack.c (backtrace_command_1): Fix indentation.
5911
5912 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5913
5914 * window-nat.c (thread_rec): Add missing empty line after
5915 local variable declaration.
5916
5917 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5918
5919 * windows-nat.c (thread_rec): Revert format used to print
5920 error code returned by SuspendThread from %d back to %u.
5921
5922 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5923
5924 * windows-nat.c (windows_continue): Add "0x" prefix for thread
5925 ID in debug trace.
5926 (get_windows_debug_event): Likewise, for all debug traces.
5927
5928 2013-06-11 Joel Brobecker <brobecker@adacore.com>
5929
5930 * window-nat.c (thread_rec): Add thread ID in SuspendThread
5931 warning message.
5932
5933 2013-06-08 Pedro Alves <pedro@codesourcery.com>
5934 Yao Qi <yao@codesourcery.com>
5935
5936 * mi/mi-main.c (get_register): Remove declaration.
5937 (output_register): Declare.
5938 (mi_cmd_data_list_register_values): Remove local variable
5939 'tuple_cleanup'. Move some code into output_register.
5940 (get_register): Renamed to ...
5941 (output_register): ... this. Output the register's
5942 "number" ui_out tuple here.
5943
5944 2013-06-07 Pedro Alves <palves@redhat.com>
5945
5946 * darwin-nat.c: Fix formating in copyright header.
5947 * darwin-nat.h: Likewise.
5948 * gnu-nat.c: Likewise.
5949 * machoread.c: Likewise.
5950
5951 2013-06-07 Pedro Alves <palves@redhat.com>
5952
5953 PR server/14823
5954 * regformats/regdat.sh: Output #include tdesc.h. Make globals
5955 static. Output a global target description pointer.
5956 (init_registers_${name}): Adjust to initialize a
5957 target description structure.
5958
5959 2013-06-07 Will Newton <will.newton@linaro.org>
5960
5961 * printcmd.c (build_address_symbolic): Call
5962 gdbarch_addr_bits_remove for text minimal symbols.
5963
5964 2013-06-07 Will Newton <will.newton@linaro.org>
5965
5966 * MAINTAINERS: Add myself to Write After Approval.
5967
5968 2013-06-07 Yao Qi <yao@codesourcery.com>
5969
5970 * tracepoint.c (start_tracing): Move code to ...
5971 (trace_reset_local_state): ... here. New.
5972 (disconnect_tracing): Don't call set_current_traceframe,
5973 set_tracepoint_num, and set_traceframe_context. Call
5974 trace_reset_local_state instead.
5975 (tfile_close): Call trace_reset_local_state.
5976 * ctf.c (ctf_close): Likewise.
5977 * remote.c (remote_close): Likewise.
5978 * tracepoint.h (trace_reset_local_state): Declare.
5979
5980 2013-06-06 Doug Evans <dje@google.com>
5981
5982 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
5983 and fix header docs.
5984
5985 2013-06-05 Doug Evans <dje@google.com>
5986 Keith Seitz <keiths@redhat.com>
5987
5988 PR 15519
5989 * cp-namespace.c (find_symbol_in_baseclass): Call
5990 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
5991 Check result of call to lookup_symbol_static.
5992 Call lookup_static_symbol_aux unconditionally.
5993 Call check_typedef on base types before accessing them.
5994 (cp_lookup_nested_symbol): Fix comment.
5995
5996 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
5997
5998 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
5999 minimal symbols pointing to function descriptors.
6000
6001 2013-06-05 Tom Tromey <tromey@redhat.com>
6002
6003 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6004
6005 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6006 Pedro Alves <palves@redhat.com>
6007
6008 * remote.c (remote_wait_as): Restore signal handler before returning
6009 when GDB gets a notification.
6010
6011 2013-06-04 Gary Benson <gbenson@redhat.com>
6012
6013 PR 2328
6014 * breakpoint.h (handle_solib_event): Moved function declaration
6015 to solib.h.
6016 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6017 (bpstat_stop_status): Pass new argument to handle_solib_event.
6018 * solib.h (update_solib_breakpoints): New function declaration.
6019 (handle_solib_event): Moved function declaration from
6020 breakpoint.h.
6021 * solib.c (update_solib_breakpoints): New function.
6022 (handle_solib_event): Moved function from breakpoint.c.
6023 Updated to call solib_ops->handle_event if not NULL.
6024 * solist.h (target_so_ops): New fields "update_breakpoints" and
6025 "handle_event".
6026 * infrun.c (set_stop_on_solib_events): New function.
6027 (_initialize_infrun): Use the above for "set
6028 stop-on-solib-events".
6029 (handle_inferior_event): Pass new argument to handle_solib_event.
6030 * solib-svr4.c (probe.h): New include.
6031 (svr4_free_library_list): New forward declaration.
6032 (probe_action): New enum.
6033 (probe_info): New struct.
6034 (probe_info): New static variable.
6035 (NUM_PROBES): New definition.
6036 (svr4_info): New fields "using_xfer", "probes_table" and
6037 "solib_list".
6038 (free_probes_table): New function.
6039 (free_solib_list): New function.
6040 (svr4_pspace_data_cleanup): Free probes table and solib list.
6041 (svr4_copy_library_list): New function.
6042 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6043 (svr4_read_so_list): New parameter "prev_lm".
6044 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6045 (svr4_current_sos): New function.
6046 (probe_and_action): New struct.
6047 (hash_probe_and_action): New function.
6048 (equal_probe_and_action): Likewise.
6049 (register_solib_event_probe): Likewise.
6050 (solib_event_probe_at): Likewise.
6051 (solib_event_probe_action): Likewise.
6052 (solist_update_full): Likewise.
6053 (solist_update_incremental): Likewise.
6054 (disable_probes_interface_cleanup): Likewise.
6055 (svr4_handle_solib_event): Likewise.
6056 (svr4_update_solib_event_breakpoint): Likewise.
6057 (svr4_update_solib_event_breakpoints): Likewise.
6058 (svr4_create_solib_event_breakpoints): Likewise.
6059 (enable_break): Free probes table before creating breakpoints.
6060 Use svr4_create_solib_event_breakpoints to create breakpoints.
6061 (svr4_solib_create_inferior_hook): Free the solib list.
6062 (_initialize_svr4_solib): Initialise
6063 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6064
6065 2013-06-04 Gary Benson <gbenson@redhat.com>
6066
6067 * target.h (target_ops): New field
6068 "to_augmented_libraries_svr4_read".
6069 (target_augmented_libraries_svr4_read): New macro.
6070 * target.c (update_current_target): Handle
6071 to_augmented_libraries_svr4_read.
6072 * remote.c (remote_state): New field
6073 "augmented_libraries_svr4_read".
6074 (remote_augmented_libraries_svr4_read_feature): New function.
6075 (remote_protocol_features): Add entry for
6076 "augmented-libraries-svr4-read".
6077 (remote_augmented_libraries_svr4_read): New function.
6078 (init_remote_ops): Initialize
6079 remote_ops.to_augmented_libraries_svr4_read.
6080
6081 2013-06-04 Gary Benson <gbenson@redhat.com>
6082
6083 * NEWS: Update.
6084
6085 2013-06-04 Gary Benson <gbenson@redhat.com>
6086
6087 * objfiles.h (inhibit_section_map_updates): New function
6088 declaration.
6089 (resume_section_map_updates): Likewise.
6090 (resume_section_map_updates_cleanup): Likewise.
6091 * objfiles.c (objfile_pspace_info): Removed field
6092 "objfiles_changed_p". New fields "new_objfiles_available",
6093 "section_map_dirty" and "inhibit_updates".
6094 (allocate_objfile): Set new_objfiles_available.
6095 (free_objfile): Set section_map_dirty.
6096 (objfile_relocate1): Likewise.
6097 (in_plt_section): Likewise.
6098 (find_pc_section): Update the conditions under which the
6099 section map will be updated.
6100 (inhibit_section_map_updates): New function.
6101 (resume_section_map_updates): Likewise.
6102 (resume_section_map_updates_cleanup): Likewise.
6103
6104 2013-06-04 Gary Benson <gbenson@redhat.com>
6105
6106 * probe.h (get_probe_argument_count): New declaration.
6107 (evaluate_probe_argument): Likewise.
6108 * probe.c (get_probe_argument_count): New function.
6109 (evaluate_probe_argument): Likewise.
6110 (probe_safe_evaluate_at_pc): Use the above new functions.
6111
6112 2013-06-04 Alan Modra <amodra@gmail.com>
6113
6114 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6115 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6116 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6117 target mem reads on optional insns.
6118 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6119 ppc_insns_match_pattern calls.
6120 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6121 Add match for power7 thread safety insns, and new order of
6122 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6123 invocation in comment, and update rest of comment.
6124 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6125 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6126 (ppc64_standard_linkage2_target): Update insn offsets.
6127 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6128 stubs first. Update calls.
6129
6130 2013-06-04 Yao Qi <yao@codesourcery.com>
6131
6132 * solib.c (solib_find): Don't need dir separator if path has
6133 drive spec.
6134
6135 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6136
6137 Revert (indirectly causes a SIGSEGV):
6138 * machoread.c (macho_symfile_read): Assign first cleanup to
6139 'back_to'.
6140
6141 2013-06-03 Yao Qi <yao@codesourcery.com>
6142
6143 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6144 mi-parse.c. Make them static.
6145 (mi_all_values): Likewise.
6146 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6147 mi_parse_print_values. Make it external.
6148 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6149 Remove the declarations.
6150 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6151 * mi/mi-parse.h (mi_parse_print_values): Declare.
6152 * mi/mi-cmd-stack.c: Include mi-parse.h.
6153 (parse_print_values): Remove
6154 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6155 of parse_print_values.
6156 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6157
6158 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6159 Yao Qi <yao@codesourcery.com>
6160
6161 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6162 (encode_actions): Move code to ...
6163 (all_tracepoint_actions_and_cleanup): ... here. New.
6164 (trace_dump_command): Likewise.
6165
6166 2013-05-30 Tom Tromey <tromey@redhat.com>
6167
6168 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6169
6170 2013-05-30 Tom Tromey <tromey@redhat.com>
6171
6172 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6173 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6174 'old_chain' argument. Add 'parser_result' argument.
6175 (gdb_xml_create_parser_and_cleanup): Remove old version.
6176 (gdb_xml_parse_quick): Update.
6177 (xml_process_xincludes): Update.
6178 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6179 declare.
6180
6181 2013-05-30 Tom Tromey <tromey@redhat.com>
6182
6183 * probe.c (collect_probes): Check arguments for NULL before
6184 calling compile_rx_or_error.
6185 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6186 Remove NULL return.
6187
6188 2013-05-30 Tom Tromey <tromey@redhat.com>
6189
6190 * infrun.c (adjust_pc_after_break): Introduce an outer null
6191 cleanup.
6192
6193 2013-05-30 Tom Tromey <tromey@redhat.com>
6194
6195 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6196
6197 2013-05-30 Tom Tromey <tromey@redhat.com>
6198
6199 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6200 for 'old_chain'. Do not check 'head' before processing
6201 cleanups.
6202
6203 2013-05-30 Tom Tromey <tromey@redhat.com>
6204
6205 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6206 "cleanup_tuple".
6207
6208 2013-05-30 Tom Tromey <tromey@redhat.com>
6209
6210 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6211 inner scope. Unconditionally call do_cleanups.
6212
6213 2013-05-30 Tom Tromey <tromey@redhat.com>
6214
6215 * source.c (find_and_open_source): Call do_cleanups.
6216
6217 2013-05-30 Tom Tromey <tromey@redhat.com>
6218
6219 * linux-thread-db.c (thread_db_load_search): Unconditionally
6220 call do_cleanups.
6221
6222 2013-05-30 Tom Tromey <tromey@redhat.com>
6223
6224 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6225 for 'cleanup'; instead use a later one.
6226
6227 2013-05-30 Tom Tromey <tromey@redhat.com>
6228
6229 * python/py-breakpoint.c (bppy_get_commands): Use
6230 explicit, unconditional return.
6231 * python/py-frame.c (frapy_read_var): Likewise.
6232 * python/python.c (gdbpy_decode_line): Likewise.
6233
6234 2013-05-30 Tom Tromey <tromey@redhat.com>
6235
6236 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6237 do_cleanups on all return paths.
6238
6239 2013-05-30 Tom Tromey <tromey@redhat.com>
6240
6241 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6242
6243 2013-05-30 Tom Tromey <tromey@redhat.com>
6244
6245 * stabsread.c (read_struct_type): Call do_cleanups along
6246 all return paths.
6247
6248 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6249
6250 * mips-linux-tdep.c: Adjust formatting throughout.
6251
6252 2013-05-30 Tom Tromey <tromey@redhat.com>
6253
6254 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6255 along all return paths.
6256
6257 2013-05-30 Tom Tromey <tromey@redhat.com>
6258
6259 * symfile.c (find_separate_debug_file): Call do_cleanups
6260 along all return paths.
6261
6262 2013-05-30 Tom Tromey <tromey@redhat.com>
6263
6264 * symtab.c (search_symbols): Introduce a null cleanup for
6265 'retval_chain'.
6266
6267 2013-05-30 Tom Tromey <tromey@redhat.com>
6268
6269 * python/py-value.c (valpy_binop): Call do_cleanups before
6270 exiting loop.
6271
6272 2013-05-30 Tom Tromey <tromey@redhat.com>
6273
6274 * python/py-prettyprint.c (print_children): Remove extra
6275 do_cleanups call.
6276
6277 2013-05-30 Tom Tromey <tromey@redhat.com>
6278
6279 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6280 all return paths.
6281
6282 2013-05-30 Tom Tromey <tromey@redhat.com>
6283
6284 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6285 along all return paths.
6286
6287 2013-05-30 Tom Tromey <tromey@redhat.com>
6288
6289 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6290 call do_cleanups.
6291
6292 2013-05-30 Tom Tromey <tromey@redhat.com>
6293
6294 * varobj.c (c_value_of_root): Call do_cleanups along all
6295 return paths.
6296
6297 2013-05-30 Tom Tromey <tromey@redhat.com>
6298
6299 * tracepoint.c (trace_dump_command): Unconditionally call
6300 do_cleanups.
6301
6302 2013-05-30 Tom Tromey <tromey@redhat.com>
6303
6304 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6305 do_cleanups earlier.
6306
6307 2013-05-30 Tom Tromey <tromey@redhat.com>
6308
6309 * machoread.c (macho_symfile_read): Assign first cleanup to
6310 'back_to'.
6311
6312 2013-05-30 Tom Tromey <tromey@redhat.com>
6313
6314 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6315
6316 2013-05-30 Tom Tromey <tromey@redhat.com>
6317
6318 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6319
6320 2013-05-30 Tom Tromey <tromey@redhat.com>
6321
6322 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6323 call discard_cleanups.
6324 (inf_ptrace_attach): Likewise.
6325
6326 2013-05-30 Tom Tromey <tromey@redhat.com>
6327
6328 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6329 return paths.
6330 (mips_initialize): Likewise.
6331 (common_open): Call do_cleanups.
6332
6333 2013-05-30 Tom Tromey <tromey@redhat.com>
6334
6335 * utils.c (internal_vproblem): Call do_cleanups.
6336
6337 2013-05-30 Tom Tromey <tromey@redhat.com>
6338
6339 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6340
6341 2013-05-30 Tom Tromey <tromey@redhat.com>
6342
6343 * cli/cli-script.c (setup_user_args): Don't return after error.
6344
6345 2013-05-30 Tom Tromey <tromey@redhat.com>
6346
6347 * somread.c (som_symtab_read): Call do_cleanups.
6348
6349 2013-05-30 Tom Tromey <tromey@redhat.com>
6350
6351 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6352
6353 2013-05-30 Tom Tromey <tromey@redhat.com>
6354
6355 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6356 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6357 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6358 * source.c (show_substitute_path_command): Call do_cleanups.
6359 (unset_substitute_path_command, set_substitute_path_command):
6360 Likewise.
6361 * symfile.c (load_command): Call do_cleanups.
6362
6363 2013-05-30 Tom Tromey <tromey@redhat.com>
6364
6365 * contrib/cleanup_check.py: New file.
6366 * contrib/gcc-with-excheck: Add option parsing.
6367
6368 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6369
6370 * windows-nat.c (windows_delete_thread): Add missing space
6371 in cast expression.
6372
6373 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6374
6375 * inferior.c (top level): Include tilde.h.
6376 (add_inferior_command): Call tilde_expand on the value of 'exec'
6377 argument.
6378
6379 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6380 Yao Qi <yao@codesourcery.com>
6381
6382 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6383 Caller update.
6384 (encode_actions): Likewise.
6385 * remote.c (remote_download_tracepoint): Caller update.
6386 * tracepoint.h (encode_actions): Update declaration.
6387
6388 2013-05-30 Pedro Alves <palves@redhat.com>
6389
6390 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6391 pointer.
6392
6393 2013-05-30 Yao Qi <yao@codesourcery.com>
6394
6395 * remote.c (remote_check_symbols): Remove unused parameter
6396 'objfile'.
6397 Declaration update.
6398 (remote_start_remote, remote_new_objfile): Caller update.
6399
6400 2013-05-30 Yao Qi <yao@codesourcery.com>
6401
6402 * mi/mi-cmds.c (mi_cmds): Define MI command
6403 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6404 DEF_MI_CMD_CLI.
6405
6406 2013-05-29 Pedro Alves <palves@redhat.com>
6407
6408 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6409 (remote_insert_watchpoint, remote_remove_watchpoint)
6410 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6411 (remote_verify_memory, compare_sections_command)
6412 (remote_search_memory): Set the general process/thread on the
6413 remote side.
6414
6415 2013-05-29 Pedro Alves <palves@redhat.com>
6416
6417 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6418 (_initialize_aarch64_tdep): Don't call
6419 initialize_tdesc_aarch64_without_fpu.
6420 * features/Makefile (WHICH): Remove reference to
6421 aarch64-without-fpu.
6422 * features/aarch64-without-fpu.c: Delete file.
6423 * regformats/aarch64-without-fpu.dat: Delete file.
6424
6425 2013-05-28 Yao Qi <yao@codesourcery.com>
6426
6427 * tracepoint.c (stringify_collection_list): Remove parameter
6428 'string'.
6429 (encode_actions): Caller update. Remove local variables.
6430
6431 2013-05-24 Yao Qi <yao@codesourcery.com>
6432
6433 * tracepoint.c (TFILE_PID): Remove.
6434 (tfile_open): Don't add thread and inferior.
6435 (tfile_close): Don't set 'inferior_ptid'. Don't call
6436 exit_inferior_silent.
6437 (tfile_thread_alive): Remove.
6438 (init_tfile_ops): Don't set field 'to_thread_alive' of
6439 tfile_ops.
6440
6441 2013-05-23 Doug Evans <dje@google.com>
6442
6443 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6444
6445 2013-05-23 Pedro Alves <palves@redhat.com>
6446
6447 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6448 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6449 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6450 Only define if HAVE_SOCKETS is defined.
6451 * configure.ac: Check for sys/socket.h.
6452 * config.in, configure: Regenerate.
6453
6454 2013-05-23 Pedro Alves <palves@redhat.com>
6455
6456 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6457 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6458 printing uint32_t variables.
6459
6460 2013-05-23 Pedro Alves <palves@redhat.com>
6461
6462 * NEWS: Mention GDBserver range stepping support.
6463
6464 2013-05-23 Yao Qi <yao@codesourcery.com>
6465 Pedro Alves <palves@redhat.com>
6466
6467 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6468 field.
6469 * infcmd.c (step_once, until_next_command): Enable range stepping.
6470 * infrun.c (displaced_step_prepare): Disable range stepping.
6471 (resume): Disable range stepping if stepping over a breakpoint or
6472 we have software watchpoints. If range stepping is enabled,
6473 assert the thread is in the stepping range.
6474 (clear_proceed_status_thread): Clear may_range_step.
6475 (handle_inferior_event): Disable range stepping as soon as we know
6476 the thread that hit the event. Re-enable it whenever we're going
6477 to step with a step range.
6478 * remote.c (struct vCont_action_support) <r>: New field.
6479 (use_range_stepping): New global.
6480 (remote_vcont_probe): Handle 'r' action.
6481 (append_resumption): Append an 'r' action if the thread may range
6482 step.
6483 (show_range_stepping): New function.
6484 (set_range_stepping): New function.
6485 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6486 'set range-stepping' and 'show range-stepping' commands.
6487 * NEWS: Mention range stepping, the new vCont;r action, and the
6488 new "set/show range-stepping" commands.
6489
6490 2013-05-23 Yao Qi <yao@codesourcery.com>
6491 Pedro Alves <palves@redhat.com>
6492
6493 * remote.c (struct vCont_action_support): New struct.
6494 (struct remote_state) <support_vCont_t>: Remove field.
6495 <vCont_actions_support>: New field.
6496 (remote_vcont_probe, remote_stop_ns): Update.
6497
6498 2013-05-23 Yao Qi <yao@codesourcery.com>
6499 Pedro Alves <palves@redhat.com>
6500
6501 * gdbthread.h (pc_in_thread_step_range): New declaration.
6502 * thread.c (pc_in_thread_step_range): New function.
6503 * infrun.c (handle_inferior_event): Use it.
6504
6505 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6506
6507 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6508 of sprintf.
6509
6510 2013-05-22 Keith Seitz <keiths@redhat.com>
6511
6512 * ada-lang.c (is_known_support_routine): Add explicit free of
6513 'func_name' from find_frame_funname.
6514 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6515 for func_name from find_frame_funname.
6516 * python/py-frame.c (frapy_name): Add explicit free of
6517 'name' from find_frame_funname.
6518 * stack.c (find_frame_funname): Add comment explaining that
6519 funcp must be freed by the caller.
6520 Return copy of symbol names instead of pointers.
6521 (print_frame): Add a cleanup for 'funname' from
6522 find_frame_funname.
6523 * stack.h (find_frame_funname): Remove "const" from
6524 'funname' parameter.
6525
6526 2013-05-22 Tom Tromey <tromey@redhat.com>
6527
6528 PR c++/15401:
6529 * c-valprint.c (c_value_print): Use value_addr for
6530 references. Convert back to reference type with value_ref.
6531
6532 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6533
6534 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6535 unloaded DLL, it will be done by handle_solib_event. See
6536 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6537 details.
6538
6539 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6540
6541 * ui-out.c: Create typedef ui_out_level_p and define vector
6542 operations for that type.
6543 (struct ui_out): Use a vector instead of an array.
6544 (current_level): Return level from a vector.
6545 (push_level): Create a level in a vector.
6546 (pop_level): Delete a level in a vector.
6547 (ui_out_new): Create initial level zero level, and store in a
6548 vector.
6549 (ui_out_destroy): Add vector cleanup.
6550
6551 2013-05-22 Pedro Alves <palves@redhat.com>
6552
6553 * python/python-internal.h (gdb_Py_DECREF): Tag with
6554 "ARI: editCase function".
6555
6556 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6557
6558 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6559
6560 2013-05-21 Pedro Alves <palves@redhat.com>
6561
6562 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6563 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6564 * python/py-utils.c (py_decref): Don't check for NULL before
6565 calling Py_DECREF.
6566
6567 2013-05-21 Pedro Alves <palves@redhat.com>
6568
6569 * python/py-utils.c (py_decref): Remove extra braces.
6570 (gdb_pymodule_addobject): Remove extra braces.
6571 * python-internal.h (gdb_Py_DECREF): New static inline function.
6572 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6573
6574 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6575
6576 * breakpoints.c (detach_breakpoints): Do not
6577 detach breakpoints locations with loc_type bp_loc_other.
6578
6579 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6580
6581 Workaround Python 2.6.
6582 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6583 a block.
6584
6585 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6586
6587 Code cleanup: constification.
6588 * solib.c (solib_ops): Make return type and ops variable type const.
6589 (set_solib_ops): Make the new_ops parameter and ops variable const.
6590 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6591 (solib_add, solib_keep_data_in_core, clear_solib)
6592 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6593 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6594 const.
6595 * solib.h (set_solib_ops): Make the new_ops parameter const.
6596
6597 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6598
6599 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6600 variable.
6601 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6602 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6603 (SYSTEM_GDBINIT_FILES): New variables.
6604 (all): Add stamp-system-gdbinit.
6605 (stamp-system-gdbinit): New rule.
6606 (clean-system-gdbinit, install-system-gdbinit)
6607 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6608 (install-only): Add dependency on install-system-gdbinit.
6609 (uninstall): Add dependency on uninstall-system-gdbinit.
6610 (clean): Add dependency on clean-system-gdbinit.
6611 * system-gdbinit/elinos.py: New file.
6612 * system-gdbinit/wrs-linux.py: New file.
6613
6614 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6615
6616 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6617
6618 2013-05-21 Hui Zhu <hui@codesourcery.com>
6619
6620 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6621 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6622 * mi/mi-cmd-break.c (ctype.h): New include.
6623 (gdb_obstack.h): New include.
6624 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6625 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6626 (mi_cmd_dprintf_insert): New.
6627 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6628 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6629
6630 2013-05-20 Tom Tromey <tromey@redhat.com>
6631
6632 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6633
6634 2013-05-20 Tom Tromey <tromey@redhat.com>
6635
6636 * python/py-value.c (valpy_get_dynamic_type): Simplify
6637 dynamic_type assignment. Use Py_XINCREF.
6638
6639 2013-05-20 Tom Tromey <tromey@redhat.com>
6640
6641 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6642
6643 2013-05-20 Tom Tromey <tromey@redhat.com>
6644
6645 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6646 (gdbpy_selected_frame): Move object-construction code
6647 out of TRY_CATCH.
6648
6649 2013-05-20 Tom Tromey <tromey@redhat.com>
6650
6651 * python/py-arch.c (gdbpy_initialize_arch): Use
6652 gdb_pymodule_addobject.
6653 * python/py-block.c (gdbpy_initialize_blocks): Use
6654 gdb_pymodule_addobject.
6655 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6656 gdb_pymodule_addobject.
6657 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6658 gdb_pymodule_addobject.
6659 * python/py-event.c (gdbpy_initialize_event_generic): Use
6660 gdb_pymodule_addobject.
6661 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6662 gdb_pymodule_addobject.
6663 * python/py-evts.c (add_new_registry): Use
6664 gdb_pymodule_addobject.
6665 (gdbpy_initialize_py_events): Likewise.
6666 * python/py-finishbreakpoint.c
6667 (gdbpy_initialize_finishbreakpoints): Use
6668 gdb_pymodule_addobject.
6669 * python/py-frame.c (gdbpy_initialize_frames): Use
6670 gdb_pymodule_addobject.
6671 * python/py-function.c (gdbpy_initialize_functions): Use
6672 gdb_pymodule_addobject.
6673 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6674 gdb_pymodule_addobject.
6675 * python/py-infthread.c (gdbpy_initialize_thread): Use
6676 gdb_pymodule_addobject.
6677 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6678 gdb_pymodule_addobject.
6679 * python/py-param.c (gdbpy_initialize_parameters): Use
6680 gdb_pymodule_addobject.
6681 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6682 gdb_pymodule_addobject.
6683 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6684 gdb_pymodule_addobject.
6685 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6686 gdb_pymodule_addobject.
6687 * python/py-type.c (gdbpy_initialize_types): Use
6688 gdb_pymodule_addobject.
6689 * python/py-utils.c (gdb_pymodule_addobject): New function.
6690 * python/py-value.c (gdbpy_initialize_values): Use
6691 gdb_pymodule_addobject.
6692 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6693 * python/python.c (_initialize_python): Use
6694 gdb_pymodule_addobject.
6695
6696 2013-05-20 Tom Tromey <tromey@redhat.com>
6697
6698 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6699 * python/py-param.c (get_set_value, get_show_value): Use
6700 explicit decrefs.
6701 * python/python.c (start_type_printers, apply_type_printers):
6702 Use explicit decrefs.
6703
6704 2013-05-20 Tom Tromey <tromey@redhat.com>
6705
6706 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6707 incref the module.
6708
6709 2013-05-20 Tom Tromey <tromey@redhat.com>
6710
6711 * python/python.c (gdbpy_run_events): Decref the result
6712 of PyObject_CallObject.
6713
6714 2013-05-20 Tom Tromey <tromey@redhat.com>
6715
6716 * python/py-symtab.c (set_sal): Use
6717 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6718 (symtab_and_line_to_sal_object): Update.
6719
6720 2013-05-20 Tom Tromey <tromey@redhat.com>
6721
6722 * python/py-param.c (compute_enum_values): Decref 'item'.
6723
6724 2013-05-20 Tom Tromey <tromey@redhat.com>
6725
6726 * mi/mi-main.c: Include python-internal.h.
6727 (mi_cmd_list_features): Check gdb_python_initialized.
6728 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6729 (python_inferior_exit, python_new_objfile, add_thread_object)
6730 (delete_thread_object, py_free_inferior): Check
6731 gdb_python_initialized.
6732 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6733 gdb_python_initialized.
6734 * python/py-type.c (save_objfile_types): Check
6735 gdb_python_initialized.
6736 * python/python-internal.h (gdb_python_initialized): Declare.
6737 * python/python.c (ensure_python_env): Throw exception if
6738 Python not initialized.
6739 (before_prompt_hook, source_python_script_for_objfile)
6740 (start_type_printers, apply_type_printers,
6741 free_type_printers): Check gdb_python_initialized.
6742 * varobj.c (varobj_get_display_hint)
6743 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6744 (install_new_value_visualizer, varobj_set_visualizer)
6745 (value_get_print_value): Check gdb_python_initialized.
6746
6747 2013-05-20 Tom Tromey <tromey@redhat.com>
6748
6749 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6750 Check errors.
6751 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6752 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6753 Check errors.
6754 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6755 Check errors.
6756 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6757 Check errors.
6758 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6759 Check errors.
6760 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6761 init function to return 'int'.
6762 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6763 Return 'int'. Check errors.
6764 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6765 Check errors.
6766 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6767 Return 'int'. Check errors.
6768 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6769 Check errors.
6770 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6771 Check errors.
6772 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6773 Check errors.
6774 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6775 Check errors.
6776 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6777 Check errors.
6778 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6779 Check errors.
6780 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6781 Check errors.
6782 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6783 Check errors.
6784 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6785 Check errors.
6786 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6787 Check errors.
6788 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6789 Check errors.
6790 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6791 Check errors.
6792 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6793 Check errors.
6794 * python/python-internal.h (gdbpy_initialize_auto_load,
6795 gdbpy_initialize_values, gdbpy_initialize_frames,
6796 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6797 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6798 gdbpy_initialize_blocks, gdbpy_initialize_types,
6799 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6800 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6801 gdbpy_initialize_finishbreakpoints,
6802 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6803 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6804 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6805 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6806 gdbpy_initialize_signal_event,
6807 gdbpy_initialize_breakpoint_event,
6808 gdbpy_initialize_continue_event,
6809 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6810 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6811 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6812 * python/python.c (gdb_python_initialized): New global.
6813 (gdbpy_initialize_events): Return 'int'. Check errors.
6814 (_initialize_python): Check errors. Set
6815 gdb_python_initialized.
6816
6817 2013-05-20 Tom Tromey <tromey@redhat.com>
6818
6819 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6820 Decref the reslut of PyObject_CallMethod.
6821
6822 2013-05-20 Tom Tromey <tromey@redhat.com>
6823
6824 * python/py-event.c (gdbpy_initialize_event_generic): Return
6825 early if PyType_Ready fails.
6826
6827 2013-05-20 Tom Tromey <tromey@redhat.com>
6828
6829 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6830 as 'default' in the switch.
6831
6832 2013-05-20 Tom Tromey <tromey@redhat.com>
6833
6834 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6835 get_addr_from_python calls out of TRY_CATCH.
6836 (infpy_write_memory, infpy_search_memory): Likewise.
6837 * python/py-utils.c (get_addr_from_python): Return negative
6838 value on error. Use TRY_CATCH.
6839 * python/python-internal.h (get_addr_from_python): Use
6840 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6841
6842 2013-05-20 Tom Tromey <tromey@redhat.com>
6843
6844 * python/py-event.c (evpy_emit_event): Decref the
6845 result of PyObject_CallFunctionObjArgs.
6846
6847 2013-05-20 Tom Tromey <tromey@redhat.com>
6848
6849 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6850 Correctly decref.
6851
6852 2013-05-20 Tom Tromey <tromey@redhat.com>
6853
6854 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6855
6856 2013-05-20 Tom Tromey <tromey@redhat.com>
6857
6858 * python/py-event.h (gdbpy_initialize_event_generic): Use
6859 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6860 * python/py-evts.c (add_new_registry): Use
6861 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6862 * python/python-internal.h
6863 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6864
6865 2013-05-20 Tom Tromey <tromey@redhat.com>
6866
6867 * python/py-arch.c (archpy_disassemble): Update.
6868 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6869 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6870 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6871 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6872 macro.
6873 (GDB_PY_HANDLE_EXCEPTION): Update.
6874 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6875
6876 2013-05-20 Tom Tromey <tromey@redhat.com>
6877
6878 * python/python-internal.h (events_object_type): Remove.
6879
6880 2013-05-20 Tom Tromey <tromey@redhat.com>
6881
6882 * python/py-event.h (evpy_emit_event): Use
6883 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6884 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6885 New macro.
6886
6887 2013-05-20 Tom Tromey <tromey@redhat.com>
6888
6889 * py-evtregistry.c (create_event_object): Decref
6890 eventregistry_object if PyList_New fails.
6891
6892 2013-05-20 Tom Tromey <tromey@redhat.com>
6893
6894 * py-cmd.c (gdbpy_string_to_argv): Check result of
6895 PyList_New.
6896
6897 2013-05-20 Tom Tromey <tromey@redhat.com>
6898
6899 * python/python.c (before_prompt_hook): Add cleanup to
6900 decref 'hook'.
6901
6902 2013-05-20 Tom Tromey <tromey@redhat.com>
6903
6904 * python/py-function.c (fnpy_init): Decref result of
6905 PyObject_GetAttrString.
6906
6907 2013-05-20 Tom Tromey <tromey@redhat.com>
6908
6909 * python/py-threadevent.c (get_event_thread): Use
6910 CPYCHECKER_RETURNS_BORROWED_REF.
6911 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
6912 New define.
6913 (pspace_to_pspace_object, objfile_to_objfile_object)
6914 (find_thread_object): Use it.
6915
6916 2013-05-20 Tom Tromey <tromey@redhat.com>
6917
6918 * python/py-arch.c (arch_object_type): Use
6919 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6920 * python/py-block.c (block_syms_iterator_object_type):
6921 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6922 * python/py-bpevent.c (breakpoint_event_object_type):
6923 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6924 * python/py-cmd.c (cmdpy_object_type): Use
6925 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6926 * python/py-continueevent.c (continue_event_object_type):
6927 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6928 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
6929 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6930 * python/py-events.h (thread_event_object_type):
6931 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6932 * python/py-evtregistry.c (eventregistry_object_type): Use
6933 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6934 * python/py-exitedevent.c (exited_event_object_type):
6935 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6936 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
6937 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6938 * python/py-function.c (fnpy_object_type): Use
6939 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6940 * python/py-inferior.c (inferior_object_type, membuf_object_type):
6941 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6942 * python/py-infthread.c (thread_object_type): Use
6943 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6944 * python/py-lazy-string.c (lazy_string_object_type):
6945 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6946 * python/py-newobjfileevent.c (new_objfile_event_object_type):
6947 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6948 * python/py-objfile.c (objfile_object_type): Use
6949 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6950 * python/py-param.c (parmpy_object_type):
6951 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6952 * python/py-progspace.c (pspace_object_type):
6953 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6954 * python/py-signalevent.c (signal_event_object_type):
6955 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6956 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
6957 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6958 * python/py-type.c (type_object_type, field_object_type)
6959 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6960 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
6961 define.
6962 (value_object_type, block_object_type, symbol_object_type)
6963 (event_object_type, stop_event_object_type, breakpoint_object_type)
6964 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
6965
6966 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
6967
6968 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
6969 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
6970
6971 2013-05-20 Doug Evans <dje@google.com>
6972
6973 When reading CU, stay in DWO. Be more tolerent of bad debug info.
6974 For Fission.
6975 * dwarf2read.c (struct dwarf2_per_cu_data): New member
6976 reading_dwo_directly.
6977 (struct signatured_type): New member dwo_unit.
6978 (struct die_reader_specs): New member comp_dir.
6979 (create_signatured_type_table_from_index): Use malloc for
6980 all_type_units instead of objfile's obstack.
6981 (create_all_type_units): Ditto.
6982 (fill_in_sig_entry_from_dwo_entry): New function.
6983 (add_type_unit): New function.
6984 (lookup_dwo_signatured_type): New function.
6985 (lookup_dwp_signatured_type): New function.
6986 (lookup_signatured_type): New arg cu. All callers updated.
6987 (init_cu_die_reader): Initialize comp_dir.
6988 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
6989 Change assert of matching type signatures to call error on mismatch.
6990 (lookup_dwo_unit): Add assert.
6991 (init_tu_and_read_dwo_dies): New function.
6992 (init_cutu_and_read_dies): Call it.
6993 (build_type_unit_groups): Handle case of no type unit groups created.
6994 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
6995 (lookup_dwo_cutu): Tweak complaint.
6996 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
6997 (dwarf2_per_objfile_free): Free all_type_units.
6998
6999 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7000
7001 * windows-nat.c (handle_unload_dll): Add missing empty line.
7002
7003 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7004
7005 * dwarf2read.c (prototyped_function_p): New function.
7006 (read_subroutine_type): Use it.
7007
7008 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7009
7010 * rs6000-aix-tdep.c: De-indent some example code provided
7011 as a comment.
7012
7013 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7014
7015 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7016 region is ok for a hardware watchpoint using the new ptrace interface
7017 on Power servers.
7018
7019 2013-05-17 Doug Evans <dje@google.com>
7020
7021 * NEWS: Mention new maintenance commands check-symtabs, and
7022 expand-symtabs, and renamed check-psymtabs.
7023 * psymtab.c (maintenance_check_psymtabs): Renamed from
7024 maintenance_check_symtabs. Only process already-expanded symbol
7025 tables.
7026 (_initialize_psymtab): Update.
7027 * symmisc.c (maintenance_check_symtabs): New function.
7028 (maintenance_expand_name_matcher): New function
7029 (maintenance_expand_file_matcher): New function
7030 (maintenance_expand_symtabs): New function.
7031 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7032 commands.
7033
7034 2013-05-17 Tom Tromey <tromey@redhat.com>
7035
7036 * python/py-inferior.c (infpy_read_memory): Don't call
7037 PyErr_SetString if PyObject_New fails.
7038 * python/py-frame.c (frame_info_to_frame_object): Don't call
7039 PyErr_SetString if PyObject_New fails.
7040
7041 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7042
7043 * acinclude.m4: Add check for dlopen in libdl.
7044 * configure.ac: Ditto.
7045 * configure: Regenerate.
7046
7047 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7048
7049 * frame.c (frame_stash): Convert to htab.
7050 (frame_addr_hash): New function.
7051 (frame_addr_hash_eq): New function.
7052 (frame_stash_create): Convert function to create
7053 a hash table.
7054 (frame_stash_add): Convert function to add an entry to a hash
7055 table.
7056 (frame_stash_find): Convert function to search the hash table.
7057 (frame_stash_invalidate): Convert function to empty the hash
7058 table.
7059 (get_frame_id): Only add to stash if a frame_id is created.
7060 (_initialize_frame): Call frame_stash_create.
7061
7062 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7063
7064 * configure.ac: Ensure MIG is available when building for GNU Hurd
7065 hosts.
7066 * configure: Regenerate.
7067
7068 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7069
7070 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7071
7072 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7073
7074 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7075 all cleanups are done before returning from this function.
7076
7077 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7078
7079 * utils.h: #include "exceptions.h".
7080 (enum errors): Remove partial declaration.
7081
7082 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7083
7084 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7085 * gdbarch.h, gdbarch.c: Regenerate.
7086 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7087 handling.
7088
7089 * rs6000-aix-tdep.h: New file.
7090 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7091 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7092 "xml-utils.h".
7093 (struct field_info, struct ld_info_desc): New types.
7094 (ld_info32_desc, ld_info64_desc): New static constants.
7095 (struct ld_info): New type.
7096 (rs6000_aix_extract_ld_info): New function.
7097 (rs6000_aix_shared_library_to_xml): Likewise.
7098 (rs6000_aix_ld_info_to_xml): Likewise.
7099 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7100 (rs6000_aix_init_osabi): Add call to
7101 set_gdbarch_core_xfer_shared_libraries_aix.
7102 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7103 Remove "xml-utils.h" include.
7104 (LdInfo): Delete typedef.
7105 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7106 Delete macros.
7107 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7108 Adjust code accordingly.
7109 (rs6000_core_ldinfo): Delete, folded into
7110 rs6000_aix_core_xfer_shared_libraries_aix.
7111 (rs6000_xfer_shared_library): Delete.
7112 (rs6000_xfer_shared_libraries): Reimplement.
7113
7114 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7115
7116 * record.c (record_goto_cmdlist): New.
7117 (cmd_record_goto): Split into this ...
7118 (cmd_record_goto_begin): ... this
7119 (cmd_record_goto_end): ... and this.
7120 (_initialize_record): Change "record goto" to prefix command.
7121 Add commands for "record goto begin" and "record goto end".
7122 Add an alias for "record goto start" to "record goto begin".
7123
7124 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7125
7126 * linespec.c (convert_linespec_to_sals): New comment for
7127 SOURCE_FILENAME assignment.
7128
7129 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7132 internal_warning.
7133
7134 2013-05-14 Tom Tromey <tromey@redhat.com>
7135
7136 * eval.c (parse_and_eval_long): Make 'exp' const.
7137 * value.h (parse_and_eval_long): Update.
7138
7139 2013-05-14 Tom Tromey <tromey@redhat.com>
7140
7141 * ui-file.c (gdb_fopen): Make arguments const.
7142 * ui-file.h (gdb_fopen): Make arguments const.
7143
7144 2013-05-14 Tom Tromey <tromey@redhat.com>
7145
7146 * remote.c (remote_set_trace_notes): Make arguments const.
7147 * target.c (update_current_target): Update cast.
7148 * target.h (to_set_trace_notes): Make arguments const.
7149
7150 2013-05-14 Tom Tromey <tromey@redhat.com>
7151
7152 * go32-nat.c (go32_terminal_info): Make 'args' const.
7153 * inferior.h (child_terminal_info): Update.
7154 * inflow.c (child_terminal_info): Make 'args' const.
7155 * target.c (default_terminal_info): Make 'args' const.
7156 (debug_to_terminal_save_ours): Likewise.
7157 * target.h (struct target_ops) <to_terminal_info>: Make argument
7158 const.
7159
7160 2013-05-13 Tom Tromey <tromey@redhat.com>
7161
7162 * gcore.c (create_gcore_bfd): Make 'filename' const.
7163 * gcore.h (create_gcore_bfd): Make 'filename' const.
7164 * record-full.c (record_full_save): Make 'recfilename' const.
7165 * target.c (target_save_record): Make 'filename' const.
7166 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7167 const.
7168 (target_save_record): Likewise.
7169
7170 2013-05-13 Tom Tromey <tromey@redhat.com>
7171
7172 PR gdb/15338:
7173 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7174 ranges section has been read.
7175
7176 2013-05-13 Tom Tromey <tromey@redhat.com>
7177
7178 PR exp/15364:
7179 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7180 STRUCTOP_PTR>: Return a not_lval value for
7181 EVAL_AVOID_SIDE_EFFECTS.
7182 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7183 for EVAL_AVOID_SIDE_EFFECTS.
7184
7185 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7186
7187 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7188 floating point registers to register type before storing
7189 value.
7190 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7191 Likewise.
7192
7193 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7194 Tom Tromey <tromey@redhat.com>
7195
7196 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7197 New functions.
7198 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7199 Declare.
7200 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7201 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7202 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7203 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7204
7205 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7206 Tom Tromey <tromey@redhat.com>
7207
7208 PR build/15414:
7209 * configure: Rebuild.
7210 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7211 with -Wno-format.
7212
7213 2013-05-10 Pedro Alves <palves@redhat.com>
7214
7215 * remote.c (_initialize_remote): Fix spelling of
7216 qXfer:traceframe-info:read packet in packet config command.
7217
7218 2013-05-10 David Taylor <dtaylor@emc.com>
7219
7220 PR remote/15455
7221
7222 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7223 "QTro" at start of packet.
7224
7225 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7226
7227 * solib-aix.c (solib_aix_relocate_section_addresses):
7228 For the .bss section action, apply the same offset as
7229 the .data section.
7230
7231 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7232
7233 * solib-aix.c (solib_aix_relocate_section_addresses):
7234 Remove FIXME comment.
7235
7236 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7237
7238 PR tdep/15420:
7239 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7240 New functions, directly copied from sparc-sol-thread.c.
7241 * sparc-sol-thread.c: Delete.
7242 * configure.ac: Remove code handling sparc-solaris-thread.c.
7243 * configure: Regenerate.
7244
7245 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7246
7247 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7248 filter logic.
7249 (backtrace_command): Add "no-filters" option parsing.
7250 (_initialize_stack): Alter help to reflect "no-filters" option.
7251 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7252 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7253 (py-frame.o): Add target
7254 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7255 filter files.
7256 * python/python.h: Add new frame filter constants, and flag enum.
7257 (apply_frame_filter): Add definition.
7258 * python/python.c (apply_frame_filter): New non-Python
7259 enabled function.
7260 * python/py-utils.c (py_xdecref): New function.
7261 (make_cleanup_py_xdecref): Ditto.
7262 * python/py-objfile.c: Declare frame_filters dictionary.
7263 (objfpy_dealloc): Add frame_filters dealloc.
7264 (objfpy_new): Initialize frame_filters attribute.
7265 (objfile_to_objfile_object): Ditto.
7266 (objfpy_get_frame_filters): New function.
7267 (objfpy_set_frame_filters): New function.
7268 * python/py-progspace.c: Declare frame_filters dictionary.
7269 (pspy_dealloc): Add frame_filters dealloc.
7270 (pspy_new): Initialize frame_filters attribute.
7271 (pspacee_to_pspace_object): Ditto.
7272 (pspy_get_frame_filters): New function.
7273 (pspy_set_frame_filters): New function.
7274 * python/py-framefilter.c: New file.
7275 * python/lib/gdb/command/frame_filters.py: New file.
7276 * python/lib/gdb/frames.py: New file.
7277 * python/lib/gdb/__init__.py: Initialize global frame_filters
7278 dictionary
7279 * python/lib/gdb/FrameDecorator.py: New file.
7280 * python/lib/gdb/FrameIterator.py: New file.
7281 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7282 * mi/mi-cmds.h: Declare.
7283 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7284 --no-frame-filter logic, and Python frame filter logic.
7285 (stack_enable_frame_filters): New function.
7286 (parse_no_frame_option): Ditto.
7287 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7288 filter logic.
7289 (mi_cmd_stack_list_locals): Ditto.
7290 (mi_cmd_stack_list_args): Ditto.
7291 (mi_cmd_stack_list_variables): Ditto.
7292 * NEWS: Add frame filter note.
7293
7294 2013-05-09 Doug Evans <dje@google.com>
7295
7296 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7297 All callers updated.
7298 (syms_from_objfile): Ditto. Make static.
7299 (symbol_file_add_with_addrs): Renamed from
7300 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7301 num_offsets. All callers updated.
7302 * symfile.h (syms_from_objfile): Delete.
7303
7304 * symfile.c (decrement_reading_symtab): Add assert.
7305 (increment_reading_symtab): Ditto.
7306
7307 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7308
7309 * source.c (forward_search_command): Replace call to getc
7310 by call to fgetc.
7311 (reverse_search_command): Likewise.
7312
7313 2013-05-08 Doug Evans <dje@google.com>
7314
7315 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7316 matching test.
7317
7318 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7319
7320 * sol-thread.c (info_cb): Factorize the code a little.
7321
7322 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7323
7324 * sol-thread.c (info_cb): Rework the output of the "maintenance
7325 info sol-threads" command a bit.
7326
7327 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7328
7329 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7330 Replace ti.ti_startfunc by ti.ti_pc.
7331
7332 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7333
7334 * solib-aix.c (solib_aix_free_library_list): New function
7335 for the case where HAVE_LIBEXPAT is not defined.
7336
7337 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7338
7339 PR breakpoints/15413:
7340 * breakpoint.c (condition_completer): Simplify the code to
7341 disconsider multiple locations of breakpoints when completing the
7342 "condition" command.
7343
7344 2013-05-07 Pierre Muller <muller@sourceware.org>
7345
7346 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7347 instead of <sys/wait.h>.
7348
7349 2013-05-07 Pierre Muller <muller@sourceware.org>
7350
7351 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7352 trailing new line from warning message.
7353
7354 2013-05-07 Pierre Muller <muller@sourceware.org>
7355
7356 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7357 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7358
7359 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7360
7361 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7362 error message (ARI fix).
7363
7364 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7365
7366 * features/library-list-aix.dtd: Replace library-list by
7367 library-list-aix.
7368 * rs6000-nat.c: Replace library-list by library-list-aix
7369 throughout.
7370 * solib-aix.c: Likewise.
7371
7372 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7373
7374 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7375 Renames TARGET_OBJECT_AIX_LIBRARIES.
7376 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7377 TARGET_OBJECT_LIBRARIES_AIX throughout.
7378 * solib-aix.c: Likwise.
7379
7380 2013-05-07 Yao Qi <yao@codesourcery.com>
7381
7382 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7383 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7384
7385 2013-05-07 Yao Qi <yao@codesourcery.com>
7386
7387 * solib-dsbt.c (enable_break): Declare.
7388 (dsbt_current_sos): Remove call to enable_break2.
7389 (enable_break2): Rename to enable_break. Set solib breakpoint
7390 on '_dl_debug_state'.
7391 (enable_break): Remove.
7392
7393 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7394
7395 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7396 debug state prior to replicating existing hardware watchpoints or
7397 breakpoints.
7398
7399 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7400
7401 * gcore.c (gcore_create_callback): Ignore sections with
7402 separate_debug_objfile_backlink != NULL.
7403
7404 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7405 Andrew Jenner <andrew@codesourcery.com>
7406 Chung-Lin Tang <cltang@codesourcery.com>
7407 Julian Brown <julian@codesourcery.com>
7408
7409 Based on the nios2-elf port from Altera Corporation.
7410
7411 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7412 nios2-linux-tdep.o.
7413 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7414 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7415 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7416 * nios2-tdep.h: New.
7417 * nios2-tdep.c: New.
7418 * nios2-linux-tdep.c: New.
7419 * features/Makefile (WHICH): Add nios2-linux.
7420 (nios2-linux-expedite): Set.
7421 * features/nios2-cpu.xml: New.
7422 * features/nios2.xml: New.
7423 * features/nios2-linux.xml: New.
7424 * features/nios2.c: New (autogenerated).
7425 * features/nios2-linux.c: New (autogenerated).
7426 * regformats/nios2-linux.dat: New (autogenerated).
7427 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7428 and commands.
7429
7430 2013-05-06 Doug Evans <dje@google.com>
7431
7432 * symfile.c: Whitespace cleanup.
7433
7434 * solist.h (struct target_so_ops): New member clear_so.
7435 * solib-svr4.c (svr4_clear_so): New function.
7436 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7437 * solib.c (clear_so): Renamed from free_so_symbols.
7438 All callers updated. Call target clear_so if it exists.
7439
7440 2013-05-06 Tom Tromey <tromey@redhat.com>
7441
7442 * ada-lang.c (ada_value_primitive_packed_val): Don't
7443 call value_incref.
7444 * value.c (set_value_parent): Incref the new parent and decref
7445 the old parent.
7446 (value_copy, value_primitive_field): Use set_value_parent.
7447
7448 2013-05-06 Tom Tromey <tromey@redhat.com>
7449
7450 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7451 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7452 if needed.
7453 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7454 * dwarf2read.c (write_constant_as_bytes)
7455 (dwarf2_fetch_constant_bytes): New functions.
7456
7457 2013-05-06 Tom Tromey <tromey@redhat.com>
7458
7459 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7460 parameters.
7461 (dwarf2_const_value_attr): Update.
7462
7463 2013-05-06 Tom Tromey <tromey@redhat.com>
7464
7465 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7466 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7467 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7468 Remove declaration.
7469
7470 2013-05-06 Tom Tromey <tromey@redhat.com>
7471
7472 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7473 objfile's obstack.
7474
7475 2013-05-06 Doug Evans <dje@google.com>
7476
7477 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7478 * stabsread.h (process_one_symbol): Update declaration.
7479 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7480 * elfread.c (elf_symfile_relocate_probe): Ditto.
7481 * psymtab.c (relocate_psymtabs): Ditto.
7482 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7483 (objfile_relocate): Ditto.
7484 * objfiles.h (objfile_relocate): Update declaration.
7485 * symfile.c (relative_addr_info_to_section_offsets): Constify
7486 addrs parameter.
7487 (default_symfile_offsets): Ditto.
7488 (syms_from_objfile_1): Constify offsets parameter.
7489 (syms_from_objfile): Ditto.
7490 (symbol_file_add_with_addrs_or_offsets): Ditto.
7491 (symfile_map_offsets_to_segments): Constify data parameter.
7492 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7493 delta parameters of member relocate.
7494 (struct sym_probe_fns): Constify new_offsets,
7495 delta parameters of member sym_relocate_probe.
7496 (struct sym_fns): Constify section_addr_info parameter of member
7497 sym_offsets.
7498 (relative_addr_info_to_section_offsets): Update declaration.
7499 (default_symfile_offsets): Ditto.
7500 (syms_from_objfile): Ditto.
7501 (symfile_map_offsets_to_segments): Ditto.
7502
7503 * symfile.c (syms_from_objfile_1): Use correct section count when
7504 objfile->sf == NULL.
7505
7506 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7507
7508 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7509
7510 2013-05-06 Doug Evans <dje@google.com>
7511
7512 * psympriv.h (struct partial_symtab): Augment comment for member
7513 section_offsets.
7514
7515 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7516
7517 Reimplement shared library support on ppc-aix...
7518 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7519 * features/library-list-aix.dtd: New file.
7520 * solib-aix.h, solib-aix.c: New file.
7521 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7522 (rs6000_find_toc_address_hook): Delete.
7523 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7524 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7525 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7526 "xml-utils.h".
7527 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7528 (vmap_symtab, fixup_breakpoints): Delete.
7529 (rs6000_xfer_shared_libraries): New function.
7530 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7531 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7532 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7533 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7534 (rs6000_xfer_shared_library): New function.
7535 (find_toc_address): Delete.
7536 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7537 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7538 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7539 before creating minimal symbol. Adjust function description
7540 accordingly.
7541 (scan_xcoff_symtab): Replace call to
7542 prim_record_minimal_symbol_and_info by call to
7543 record_minimal_symbol.
7544 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7545 around default_symfile_offsets.
7546 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7547 powerpc-aix targets.
7548 * config/rs6000/nm-rs6000.h: Delete.
7549 * config/powerpc/aix.mh (NAT_FILE): Delete.
7550 (NATDEPFILES): Remove xcoffsolib.o.
7551 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7552 (ALL_TARGET_OBS): Add solib-aix.o.
7553 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7554 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7555 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7556 * xcoffsolib.h, xcoffsolib.c: Delete.
7557
7558 * solib.c (reload_shared_libraries): Remove reference to
7559 SOLIB_CREATE_INFERIOR_HOOK.
7560 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7561 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7562 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7563 comment.
7564 * corelow.c (deprecated_core_resize_section_table): Delete.
7565 * exec.c: Remove include of xcoffsolib.h".
7566 (map_vmap, vmap): Delete.
7567 (exec_close_1): Remove references to vmap.
7568 (exec_file_attach): Remove vmap handling code, and reference
7569 to DEPRECATED_IBM6000_TARGET.
7570 (bfdsec_to_vmap): Delete.
7571 (exec_files_info): Remove block of code handling VMAP.
7572 * infcmd.c (post_create_inferior): Remove reference to
7573 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7574 * infrun.c (follow_exec): Remove reference to
7575 SOLIB_CREATE_INFERIOR_HOOK.
7576 * stack.c (print_frame): Remove reference to PC_SOLIB.
7577 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7578 (dsbt_relocate_main_executable): Likewise.
7579 * solib-frv.c (frv_current_sos): Likewise.
7580
7581 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7582
7583 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7584 to target_write_memory and target_read_memory.
7585
7586 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7587
7588 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7589 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7590
7591 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7592
7593 * darwin-nat.c: Replace all "%x" instances in format strings
7594 into "0x%x" throughout.
7595
7596 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7597
7598 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7599 gdb_assert by call to MACH_CHECK_ERROR.
7600 (darwin_attach_pid): Raise an error rather than a failed
7601 assertion when various system calls failed. Report a warning
7602 instead of raising a failed assertion when PREV_NOT is not NULL
7603 after call to mach_port_request_notification.
7604 (darwin_ptrace_me): Raise an error rather than a failed
7605 assertion when read returns nonzero.
7606
7607 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7608
7609 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7610
7611 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7612
7613 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7614
7615 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7616
7617 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7618 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7619 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7620 a stale cleanup. Fix double free of NAME.
7621
7622 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7623
7624 * windows-nat.c (windows_delete_thread): Accept an additional
7625 argument, the thread's exit code, and announce thread death when
7626 print_thread_events is non-zero and we are deleting a thread that
7627 is not the main thread.
7628 (get_windows_debug_event): Pass thread exit code to
7629 windows_delete_thread.
7630
7631 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7632
7633 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7634 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7635 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7636 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7637 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7638 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7639 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7640 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7641 (gdbarch_tdep): New struct.
7642 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7643 E_NUM_REGS.
7644 (v850e3v5_register_name): New function.
7645 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7646 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7647 code handling the struct return conventions for the RH850 ABI.
7648 Update all callers.
7649 (v850_eight_byte_align_p): New function.
7650 (v850_push_call_dummy): Push structs by value, not by reference
7651 for the RH850 ABI. Add support for eight byte alignment.
7652 (v850_dbtrap_breakpoint_from_pc): New function.
7653 (v850_gdbarch_init): Add ABI detection code. Register
7654 v850e3v5_register_name for the v850e3v5 architecture. Set the
7655 number of registers for v850e3v5. Register
7656 v850_dbtrap_breakpoint_from_pc as appropriate.
7657 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7658
7659 2013-05-03 Doug Evans <dje@google.com>
7660
7661 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7662 of bfd_count_sections.
7663 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7664 * symfile.c (default_symfile_offsets): Ditto.
7665 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7666 one entry, not bfd_count_sections entries.
7667
7668 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7669
7670 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7671 `save' and `restore' register groups. Don't include SPL
7672 or SPH in these groups.
7673 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7674 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7675 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7676 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7677 dwarf2_append_unwinders().
7678
7679 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7680
7681 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7682 ignore SIGINT and SIGTRAP in case these internal signals are
7683 caught explicitely.
7684
7685 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7686
7687 * darwin-nat.c (darwin_read_write_inferior): Change types
7688 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7689 of copy_count to "mach_msg_type_number_t".
7690 (darwin_read_dyld_info): Change type of parameter
7691 rdaddr to "gdb_byte *".
7692
7693 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7694
7695 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7696 of &info->load_map from "char *" to "gdb_byte *".
7697
7698 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7699
7700 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7701 from "char *" to "gdb_byte *".
7702 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7703
7704 2013-04-30 Doug Evans <dje@google.com>
7705
7706 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7707 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7708 DWO stub. If DWO isn't found, just use stub.
7709 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7710
7711 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7712 calling init_cutu_and_read_dies.
7713
7714 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7715
7716 * target-descriptions.c (maint_print_c_tdesc_cmd):
7717 Add case to parse structures as register types and
7718 bitfields.
7719
7720 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7721
7722 * MAINTAINERS (Write After Approval): Add myself to the list.
7723
7724 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7725
7726 * sol-thread.c (rw_common): Change type of parameter "buf"
7727 to "gdb_byte *".
7728 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7729 rw_common to "gdb_byte *" instead of "char *".
7730
7731 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7732
7733 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7734 of local variable msym to const struct bound_minimal_symbol.
7735 Adjust use accordingly.
7736 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7737
7738 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7739
7740 * i386gnu-nat.c (CREG_OFFSET): New macro.
7741 (creg_offset): New array.
7742 (CREG_ADDR): Use creg_offset instead of reg_offset.
7743
7744 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7745
7746 * mep-tdep.c (mep_write_pc): Delete.
7747 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7748 Add call to set_gdbarch_pc_regnum.
7749
7750 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7751
7752 * common/filestuff.c: Replace #include <dirent.h> by
7753 #include "gdb_dirent.h".
7754
7755 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7756
7757 * common/filestuff.c: Replace #include <sys/stat.h> by
7758 #include "gdb_stat.h".
7759
7760 2013-04-29 Pierre Muller <muller@sourceware.org>
7761
7762 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7763 editCase function rule.
7764 (get_DW_AT_signature_type): Likewise.
7765
7766 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7767
7768 * m32r-tdep.c (m32r_write_pc): Delete.
7769 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7770 Add call to set_gdbarch_pc_regnum.
7771
7772 2013-04-29 Pierre Muller <muller@sourceware.org>
7773
7774 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7775
7776 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7777
7778 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7779
7780 2013-04-28 Yao Qi <yao@codesourcery.com>
7781
7782 * solib-dsbt.c (fetch_loadmap): Re-indent.
7783 (displacement_from_map, enable_break2): Likewise.
7784 (dsbt_relocate_section_addresses): Likewise.
7785
7786 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7787
7788 GDB 7.6 released.
7789
7790 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7791
7792 PR corefiles/14983:
7793 * dwarf2read.c (process_full_comp_unit): Always create a static
7794 block.
7795
7796 2013-04-25 Hui Zhu <hui@codesourcery.com>
7797
7798 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7799 to loc->cmd_bytecode.
7800
7801 2013-04-24 Doug Evans <dje@google.com>
7802
7803 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7804
7805 2013-04-22 Keith Seitz <keiths@redhat.com>
7806
7807 * tracepoint.c (trace_save): Call the writer's start method.
7808
7809 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7810
7811 PR gdb/10462
7812 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7813 before argument.
7814
7815 2013-04-23 Tom Tromey <tromey@redhat.com>
7816
7817 * common/filestuff.c: Check USE_WIN32API before including
7818 sys/socket.h.
7819 (HAVE_F_GETFD): New define.
7820 (mark_cloexec): Check HAVE_F_GETFD.
7821 (gdb_open_cloexec): Change 'mode' to unsigned long.
7822 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7823 (gdb_pipe_cloexec): Check HAVE_PIPE.
7824 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7825 long.
7826
7827 2013-04-23 Hui Zhu <hui@codesourcery.com>
7828
7829 PR gdb/15293
7830 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7831
7832 2013-04-23 Hui Zhu <hui@codesourcery.com>
7833
7834 PR gdb/15165
7835 * breakpoint.c (dprintf_print_recreate): New.
7836 (save_breakpoints): Let it not save dprintf commands.
7837 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7838
7839 2013-04-22 Tom Tromey <tromey@redhat.com>
7840
7841 PR gdb/7912:
7842 * Makefile.in (SFILES): Add filestuff.c
7843 (COMMON_OBS): Add filestuff.o.
7844 (filestuff.o): New target.
7845 * auto-load.c (auto_load_objfile_script_1): Use
7846 gdb_fopen_cloexec.
7847 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7848 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7849 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7850 * common/agent.c (gdb_connect_sync_socket): Use
7851 gdb_socket_cloexec.
7852 * common/filestuff.c: New file.
7853 * common/filestuff.h: New file.
7854 * common/linux-osdata.c (linux_common_core_of_thread)
7855 (command_from_pid, commandline_from_pid, print_source_lines)
7856 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7857 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7858 gdb_fopen_cloexec.
7859 * common/linux-procfs.c (linux_proc_get_int)
7860 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7861 * config.in, configure: Rebuild.
7862 * configure.ac: Don't check for sys/socket.h. Check for
7863 fdwalk, pipe2.
7864 * corelow.c (core_open): Use gdb_open_cloexec.
7865 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7866 * fork-child.c (fork_inferior): Call close_most_fds.
7867 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7868 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7869 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7870 Use gdb_fopen_cloexec.
7871 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7872 gdb_open_cloexec.
7873 (linux_async_pipe): Use gdb_pipe_cloexec.
7874 * remote-fileio.c (remote_fileio_func_open): Use
7875 gdb_open_cloexec.
7876 * remote.c (remote_file_put, remote_file_get): Use
7877 gdb_fopen_cloexec.
7878 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7879 close_most_fds.
7880 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7881 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7882 * solib.c (solib_find): Use gdb_open_cloexec.
7883 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7884 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7885 (tfile_open): Use gdb_open_cloexec.
7886 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7887 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7888 * xml-support.c (xml_fetch_content_from_file): Use
7889 gdb_fopen_cloexec.
7890 * main.c (captured_main): Call notice_open_fds.
7891
7892 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
7893
7894 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
7895 'char *' to 'gdb_byte *'.
7896 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
7897 'gdb_byte'.
7898
7899 2013-04-22 Yao Qi <yao@codesourcery.com>
7900
7901 * infrun.c: Fix typo in comment.
7902
7903 2013-04-22 Andrew Haley <aph@redhat.com>
7904
7905 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
7906 instead of "long".
7907
7908 2013-04-20 Yao Qi <yao@codesourcery.com>
7909
7910 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
7911 'char *' to 'gdb_byte *'. Cast the return value of
7912 'bt_ctf_get_char_array' to 'gdb_byte *'.
7913
7914 2013-04-19 Pedro Alves <palves@redhat.com>
7915
7916 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
7917 -Wpointer-sign.
7918 * configure: Regenerate.
7919
7920 2013-04-19 Pedro Alves <palves@redhat.com>
7921
7922 * ser-tcp.c (net_read_prim): Cast second argument to recv to
7923 'void *'.
7924
7925 2013-04-19 Pedro Alves <palves@redhat.com>
7926
7927 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
7928 Change type of 'myaddr' parameter to gdb_byte pointer.
7929 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
7930 to 'long long' pointer instead of to 'unsigned long long'.
7931 (monitor_write_memory_block, monitor_read_memory_single)
7932 (monitor_read_memory): Change type of 'myaddr' parameter to
7933 gdb_byte pointer.
7934
7935 2013-04-19 Pedro Alves <palves@redhat.com>
7936
7937 * record.c (validate_history_size): Make parameter 'setting'
7938 unsigned.
7939
7940 2013-04-19 Pedro Alves <palves@redhat.com>
7941
7942 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
7943 to 'gdb_byte *'.
7944
7945 2013-04-19 Pedro Alves <palves@redhat.com>
7946
7947 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
7948 local to int.
7949
7950 2013-04-19 Pedro Alves <palves@redhat.com>
7951
7952 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
7953 * ada-tasks.c (read_fat_string_value): Likewise.
7954
7955 2013-04-19 Pedro Alves <palves@redhat.com>
7956
7957 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
7958 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
7959 'offset', and adjust.
7960
7961 2013-04-19 Pedro Alves <palves@redhat.com>
7962
7963 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
7964 (read_index_from_section): Add cast to 'char *'.
7965
7966 2013-04-19 Pedro Alves <palves@redhat.com>
7967
7968 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
7969
7970 2013-04-19 Pedro Alves <palves@redhat.com>
7971
7972 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
7973
7974 2013-04-19 Pedro Alves <palves@redhat.com>
7975
7976 * record-full.c (record_full_get_bookmark): Change local 'ret'
7977 type to char * and add cast to gdb_byte *.
7978 (record_full_goto_bookmark): Handle 'bookmark' argument as a
7979 string.
7980 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
7981
7982 2013-04-19 Pedro Alves <palves@redhat.com>
7983
7984 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
7985 * python/py-prettyprint.c (print_string_repr): Change type of
7986 'output' local to char *. Add cast to gdb_byte * in
7987 LA_PRINT_STRING call.
7988 (print_children): Change type of 'output' local to char *.
7989 * python/py-value.c (valpy_string): Add cast to const char * in
7990 PyUnicode_Decode call.
7991
7992 2013-04-19 Pedro Alves <palves@redhat.com>
7993
7994 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
7995 and change its type to 'const char *'. Adjust.
7996 (mips_send_packet): Add cast to 'char *', and remove cast to
7997 'unsigned char *'.
7998 (mips_receive_packet): Remove cast to 'unsigned char *'.
7999 (mips_load_srec): Use bfd_byte.
8000 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8001 (pmon_checkset): Make 'value' parameter unsigned.
8002
8003 2013-04-19 Pedro Alves <palves@redhat.com>
8004
8005 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8006
8007 2013-04-19 Pedro Alves <palves@redhat.com>
8008
8009 * remote.c (remote_write_bytes_aux, compare_sections_command)
8010 (remote_read_qxfer)
8011 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8012 (remote_hostio_readlink, remote_bfd_iovec_pread)
8013 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8014 binary buffer, and char when buffer is used as string.
8015 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8016 (trace_save, tfile_open, traceframe_walk_blocks)
8017 (tfile_fetch_registers): Likewise.
8018
8019 2013-04-19 Pedro Alves <palves@redhat.com>
8020
8021 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8022 buffer and size_t size. Adjust.
8023 * ser-base.h (ser_base_write): Adjust.
8024 * ser-go32.c (cnts): Change type to size_t.
8025 (dos_write): Change prototype -- take 'void *'
8026 buffer and size_t size. Adjust.
8027 (dos_info): Print elements of 'cnts' as unsigned long.
8028 * serial.c (serial_write): Likewise.
8029 * serial.h (serial_write): Adjust.
8030 (struct serial_ops) <write>: Change prototype -- take 'void *'
8031 buffer and size_t size. Adjust.
8032
8033 2013-04-19 Pedro Alves <palves@redhat.com>
8034
8035 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8036 gdb_byte *.
8037 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8038
8039 2013-04-19 Pedro Alves <palves@redhat.com>
8040
8041 * alpha-tdep.c (alpha_extract_return_value): Use
8042 regcache_cooked_read_unsigned to read 'v0'.
8043
8044 2013-04-19 Pedro Alves <palves@redhat.com>
8045
8046 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8047 parameters 'at', 'as' and 'offset' to uint32_t.
8048
8049 2013-04-19 Pedro Alves <palves@redhat.com>
8050
8051 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8052 'is64' to signed 'int'.
8053
8054 2013-04-19 Pedro Alves <palves@redhat.com>
8055
8056 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8057 parameter to int *.
8058
8059 2013-04-19 Pedro Alves <palves@redhat.com>
8060
8061 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8062 'insnbuf' buffer type to unsigned int[].
8063
8064 2013-04-19 Pedro Alves <palves@redhat.com>
8065
8066 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8067
8068 2013-04-19 Pedro Alves <palves@redhat.com>
8069
8070 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8071 unsigned long *.
8072
8073 2013-04-19 Pedro Alves <palves@redhat.com>
8074
8075 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8076 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8077 UINT_MAX.
8078 * mips-tdep.c (heuristic_fence_post): Change type to int.
8079 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8080
8081 2013-04-19 Pedro Alves <palves@redhat.com>
8082
8083 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8084 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8085 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8086
8087 2013-04-19 Pedro Alves <palves@redhat.com>
8088
8089 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8090 it to get a string view of the byte buffer.
8091 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8092 type to gdb_byte *. Adjust.
8093 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8094 Change local to char *.
8095 * solib-darwin.c (find_program_interpreter): Change return type to
8096 char *. Adjust.
8097 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8098 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8099 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8100 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8101 * solib-svr4.c (find_program_interpreter): Change return type to
8102 char *. Adjust.
8103 (enable_break): Change local 'interp_name' to char *.
8104 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8105 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8106 (spu_pseudo_register_write_spu): Use char for string buffer.
8107 Adjust.
8108 (info_spu_event_command, info_spu_signal_command): Add casts to
8109 'char *'.
8110
8111 2013-04-19 Pedro Alves <palves@redhat.com>
8112
8113 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8114 gdb_byte[].
8115 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8116 * ada-lang.c (ada_value_assign): Use gdb_byte.
8117 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8118 (alphanbsd_sigtramp_offset): Use gdb_byte.
8119 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8120 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8121 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8122 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8123 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8124 * arm-tdep.c (arm_stub_unwind_sniffer)
8125 (arm_displaced_init_closure): Use gdb_byte.
8126 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8127 (arm_default_thumb_le_breakpoint)
8128 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8129 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8130 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8131 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8132 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8133 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8134 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8135 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8136 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8137 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8138 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8139 (cris_store_return_value, cris_extract_return_value): Use
8140 gdb_byte.
8141 (constraint): Change type of parameter to char * from signed
8142 char*. Use gdb_byte.
8143 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8144 of local buffer to gdb_byte *.
8145 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8146 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8147 (add_address_entry): Change type of local buffer to gdb_byte[].
8148 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8149 (frv_push_dummy_call): Use gdb_byte.
8150 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8151 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8152 (hppa_hpux_supply_save_state): Use gdb_byte.
8153 * hppa-tdep.c (hppa32_push_dummy_call)
8154 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8155 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8156 (slotN_contents, replace_slotN_contents): Change type of parameter
8157 to gdb_byte *.
8158 (fetch_instruction, ia64_pseudo_register_write)
8159 (ia64_register_to_value, ia64_value_to_register)
8160 (ia64_extract_return_value, ia64_store_return_value)
8161 (ia64_push_dummy_call): Use gdb_byte.
8162 * m32c-tdep.c (m32c_return_value): Remove cast.
8163 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8164 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8165 gdb_byte.
8166 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8167 * mn10300-tdep.c (mn10300_store_return_value)
8168 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8169 gdb_byte.
8170 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8171 (moxie_process_record): Remove casts.
8172 * ppc-ravenscar-thread.c (supply_register_at_address)
8173 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8174 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8175 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8176 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8177 * remote.c (compare_sections_command): Use gdb_byte.
8178 * score-tdep.c (score7_free_memblock): Change type of parameter to
8179 gdb_byte *.
8180 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8181 gdb_byte *. Use gdb_byte.
8182 (sh_push_dummy_call_fpu): Use gdb_byte.
8183 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8184 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8185 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8186 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8187 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8188 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8189 (sh64_store_return_value, sh64_register_convert_to_virtual):
8190 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8191 (sh64_pseudo_register_write): Use gdb_byte.
8192 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8193 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8194 buffer.
8195 (irix_current_sos): Use gdb_byte.
8196 * solib-som.c (som_current_sos): Use gdb_byte.
8197 * sparc-ravenscar-thread.c (supply_register_at_address)
8198 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8199 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8200 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8201 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8202 'gdb_byte *'.
8203 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8204 'gdb_byte *'.
8205 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8206 * xstormy16-tdep.c (xstormy16_extract_return_value)
8207 (xstormy16_store_return_value): Change parameter type to
8208 'gdb_byte *'. Adjust.
8209 (xstormy16_push_dummy_call): Use gdb_byte.
8210 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8211 (call0_analyze_prologue, execute_code): Use gdb_byte.
8212
8213 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8214 Pedro Alves <palves@redhat.com>
8215
8216 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8217 value contents.
8218
8219 2013-04-17 Doug Evans <dje@google.com>
8220
8221 * dwarf2read.c (struct signatured_type): New member type.
8222 (struct attribute): Replace member signatured_type with signature.
8223 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8224 (read_call_site_scope): Call follow_die_ref instead of
8225 follow_die_ref_or_sig.
8226 (read_structure_type): Rewrite handling of signatured types.
8227 (read_enumeration_type): Ditto.
8228 (read_attribute_value): Update.
8229 (build_error_marker_type): New function.
8230 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8231 Don't call error for bad types, just build an error marker type.
8232 (dump_die_shallow): Update.
8233 (follow_die_sig_1): Renamed from follow_die_sig.
8234 Don't call error for bad types, instead return NULL.
8235 (follow_die_sig): New function.
8236 (get_signatured_type, get_DW_AT_signature_type): New functions.
8237
8238 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8239
8240 * aarch64-tdep.c (aarch64_write_pc): Removed.
8241 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8242 function.
8243
8244 2013-04-17 Yao Qi <yao@codesourcery.com>
8245
8246 * top.c (print_gdb_configuration): Print configure-time
8247 parameter on using libbabeltrace or not.
8248
8249 2013-04-16 Pedro Alves <palves@redhat.com>
8250
8251 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8252
8253 2013-04-16 Pedro Alves <palves@redhat.com>
8254
8255 * common/glibc_thread_db.h: Update from upstream glibc
8256 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8257
8258 2013-04-16 Pedro Alves <palves@redhat.com>
8259
8260 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8261 * common/glibc_thread_db.h: ... this new file ...
8262 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8263
8264 2013-04-16 Will Newton <will.newton@gmail.com>
8265 Pedro Alves <palves@redhat.com>
8266
8267 PR build/11881
8268
8269 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8270 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8271 HAVE_THREAD_DB_H.
8272
8273 2013-04-16 Pedro Alves <palves@redhat.com>
8274 Eli Zaretskii <eliz@gnu.org>
8275
8276 * NEWS: Mention "set foo unlimited".
8277
8278 2013-04-15 Doug Evans <dje@google.com>
8279
8280 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8281 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8282 (create_dwo_cu_reader): Renamed from
8283 create_dwo_debug_info_hash_table_reader.
8284 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8285 Remove support for multiple CUs in a DWO file.
8286 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8287
8288 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8289 instead of phex.
8290 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8291 (create_dwo_in_dwp): Ditto.
8292
8293 2013-04-15 Tom Tromey <tromey@redhat.com>
8294
8295 * NEWS: Move recent entries into "since 7.6" section.
8296
8297 2013-04-15 Tom Tromey <tromey@redhat.com>
8298
8299 PR c++/13588:
8300 * NEWS: Update.
8301 * break-catch-throw.c (struct exception_catchpoint)
8302 <exception_rx, pattern>: New fields.
8303 (fetch_probe_arguments, dtor_exception_catchpoint)
8304 (check_status_exception_catchpoint)
8305 (print_one_detail_exception_catchpoint): New functions.
8306 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8307 Compile regular expression if needed.
8308 (extract_exception_regexp): New function.
8309 (catch_exception_command_1): Use extract_exception_regexp.
8310 (compute_exception): Use fetch_probe_arguments.
8311 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8312 and check_status fields.
8313 * cp-abi.c (cplus_typename_from_type_info): New function.
8314 * cp-abi.h (cplus_typename_from_type_info): Declare.
8315 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8316 * gdb_regex.h (compile_rx_or_error): Declare.
8317 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8318 comment.
8319 (init_gnuv3_ops): Set get_type_from_type_info field.
8320 * probe.c (compile_rx_or_error): Move...
8321 * utils.c (compile_rx_or_error): ... here.
8322
8323 2013-04-15 Tom Tromey <tromey@redhat.com>
8324
8325 PR c++/15176:
8326 * NEWS: Update.
8327 * break-catch-throw.c (compute_exception): New function.
8328 (exception_funcs): New global.
8329 (_initialize_break_catch_throw): Create $_exception.
8330 * cp-abi.c (cplus_type_from_type_info): New function.
8331 * cp-abi.h (cplus_type_from_type_info): Declare.
8332 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8333 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8334 (gnuv3_get_type_from_type_info): New functions.
8335 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8336
8337 2013-04-15 Tom Tromey <tromey@redhat.com>
8338
8339 * break-catch-throw.c (struct exception_names): New.
8340 (exception_functions): Change type.
8341 (re_set_exception_catchpoint): Look for SDT probes.
8342
8343 2013-04-15 Tom Tromey <tromey@redhat.com>
8344
8345 PR c++/10119:
8346 * break-catch-throw.c (exception_functions): New global.
8347 (gnu_v3_exception_catchpoint_ops): Move earlier.
8348 (struct exception_catchpoint): New.
8349 (classify_exception_breakpoint): Rewrite.
8350 (re_set_exception_catchpoint): New function.
8351 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8352 Allocate a struct exception_catchpoint.
8353 (catch_exception_command_1): Update.
8354 (initialize_throw_catchpoint_ops): Set 're_set' method.
8355
8356 2013-04-15 Tom Tromey <tromey@redhat.com>
8357
8358 * Makefile.in (SFILES): Add break-catch-throw.c
8359 (COMMON_OBS): Add break-catch-throw.o.
8360 * break-catch-throw.c: New file.
8361 * breakpoint.c: Move exception-catching code to new file.
8362 (ep_parse_optional_if_clause): No longer static.
8363 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8364
8365 2013-04-15 Tom Tromey <tromey@redhat.com>
8366
8367 PR c++/9065:
8368 * NEWS: Update.
8369 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8370 * c-exp.y (TYPEID): New token.
8371 (exp): Add new TYPEID productions.
8372 (ident_tokens): Add "typeid".
8373 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8374 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8375 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8376 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8377 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8378 case.
8379 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8380 (build_std_type_info_type, gnuv3_get_typeid_type)
8381 (gnuv3_get_typeid): New functions.
8382 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8383 new fields on ABI object.
8384 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8385 * std-operator.def (OP_TYPEID): New.
8386
8387 2013-04-15 Tom Tromey <tromey@redhat.com>
8388
8389 * elfread.c (elf_symtab_read): Install versioned symbol under
8390 unversioned name as well.
8391
8392 2013-04-15 Tom Tromey <tromey@redhat.com>
8393
8394 PR c++/11990:
8395 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8396 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8397 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8398 (gdb_demangle): New function.
8399 * cp-support.h (gdb_demangle): Declare.
8400 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8401 (dwarf2_name): Use gdb_demangle.
8402 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8403 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8404 suffixes from name.
8405 (gnuv3_print_method_ptr): Use gdb_demangle.
8406 * jv-lang.c (java_demangle): Use gdb_demangle.
8407 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8408 * language.c (unk_lang_demangle): Use gdb_demangle.
8409 * symtab.c (symbol_find_demangled_name)
8410 (demangle_for_lookup): Use gdb_demangle.
8411
8412 2013-04-15 Tom Tromey <tromey@redhat.com>
8413
8414 PR c++/12824:
8415 * NEWS: Update.
8416 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8417 New constant.
8418 (classify_exception_breakpoint): New function.
8419 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8420 (print_mention_exception_catchpoint)
8421 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8422 (catch_exception_command_1): Handle "rethrow" catchpoint.
8423 (catch_rethrow_command): New function.
8424 (_initialize_breakpoint): Add "catch rethrow" command.
8425
8426 2013-04-15 Pierre Muller <muller@sourceware.org>
8427
8428 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8429 set_gdbarch_write_pc as deprecated anymore.
8430
8431 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8432
8433 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8434 declarations.
8435
8436 2013-04-13 Yao Qi <yao@codesourcery.com>
8437
8438 * ctf.c (_initialize_ctf): Include "completer.h".
8439 Call add_target_with_completer instead of add_target.
8440
8441 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8442
8443 Fix GDB regression related to PR binutils/14813.
8444 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8445 * minidebug.c (lzma_close): Add return value comment.
8446 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8447 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8448 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8449
8450 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8451
8452 * config.in: Regenerate.
8453
8454 2013-04-12 Tom Tromey <tromey@redhat.com>
8455
8456 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8457 const.
8458 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8459 (struct die_reader_specs) <buffer>: Likewise.
8460 (die_reader_func_ftype): Make 'info_ptr' const.
8461 (struct line_header) <include_dirs, statement_program_start,
8462 statement_program_end>: Now const.
8463 (struct file_entry) <name>: Likewise.
8464 (struct partial_die_info) <sibling>: Likewise.
8465 (struct dwarf_block) <data>: Likewise.
8466 (dwarf2_read_section): Remove cast.
8467 (dwarf2_get_section_info): Make 'bufp' const.
8468 (read_index_from_section): Constify.
8469 (dw2_get_file_names_reader): Make 'info_ptr' const.
8470 (dw2_get_primary_filename_reader): Likewise.
8471 (read_comp_unit_head): Make 'info_ptr' and return type const.
8472 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8473 Likewise.
8474 (read_abbrev_offset): Constify.
8475 (dwarf2_create_include_psymtab): Make 'name' const.
8476 (create_debug_types_hash_table): Update.
8477 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8478 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8479 Constify.
8480 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8481 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8482 (read_comp_units_from_section): Constify.
8483 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8484 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8485 const.
8486 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8487 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8488 (create_dwp_hash_table, dwarf2_ranges_read)
8489 (dwarf2_record_block_ranges): Constify.
8490 (read_die_and_children, read_die_and_siblings_1)
8491 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8492 const.
8493 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8494 (abbrev_table_read_table): Constify.
8495 (load_partial_dies): Make 'info_ptr' const.
8496 (read_partial_die, read_attribute_value, read_attribute): Make
8497 'info_ptr' and return type const.
8498 (read_address, read_initial_length)
8499 (read_checked_initial_length_and_offset, read_offset)
8500 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8501 const.
8502 (read_direct_string): Make 'buf' and return type const.
8503 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8504 (read_indirect_string): Make return type const.
8505 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8506 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8507 'info_ptr' const.
8508 (read_str_index): Make return type const.
8509 (add_include_dir): Make 'include_dir' const.
8510 (add_file_name): Make 'name' const.
8511 (dwarf_decode_line_header): Constify.
8512 (psymtab_include_file_name): Make return type const.
8513 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8514 (dwarf2_start_subfile): Make 'filename' const.
8515 (dwarf2_const_value_attr): Make 'bytes' const.
8516 (read_signatured_type_reader): Make 'info_ptr' const.
8517 (decode_locdesc): Constify.
8518 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8519 const.
8520 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8521 'mac_end', and return type const.
8522 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8523 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8524 type const.
8525 (per_cu_header_read_in): Constify.
8526 * symfile.h (dwarf2_get_section_info): Update.
8527
8528 2013-04-12 Tom Tromey <tromey@redhat.com>
8529
8530 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8531
8532 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8533
8534 * NEWS: Mention "show configuration", --configuration.
8535 * top.c (print_gdb_configuration): New function, displays the
8536 details about GDB configure-time parameters.
8537 (print_gdb_version): Mention "show configuration".
8538 * cli/cli-cmds.c (show_configuration): New function.
8539 (_initialize_cli_cmds): Add the "show configuration" command.
8540 * main.c (captured_main) <print_configuration>: New static var.
8541 <long_options>: Use it.
8542 If --configuration was given, call print_gdb_configuration.
8543
8544 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8545 Pedro Alves <palves@redhat.com>
8546
8547 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8548 (generated_files): Add gcore.
8549 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8550 HAVE_NATIVE_GCORE_HOST.
8551 (gcore): New.
8552 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8553 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8554 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8555 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8556 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8557 Add HAVE_NATIVE_GCORE_HOST.
8558 * configure: Regenerate.
8559 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8560 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8561 AC_CONFIG_FILES for gcore.
8562 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8563 gdb_have_gcore.
8564 * gdb_gcore.sh: Rename to ...
8565 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8566 and GCORE_TRANSFORM_NAME substitutions.
8567
8568 Fix parsing tabs in ${gdb_target_obs}.
8569 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8570
8571 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8572
8573 * remote.c (unpush_and_perror): Add output message final dot.
8574
8575 2013-04-11 Yao Qi <yao@codesourcery.com>
8576
8577 * tracepoint.c (tfile_interp_line): Fit parameters line and
8578 utpp in one line.
8579
8580 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8581
8582 * solib.c (solib_map_sections): Remove code overwriting
8583 SO->SO_NAME with the bfd's filename.
8584
8585 2013-04-10 Pedro Alves <palves@redhat.com>
8586
8587 * cli/cli-decode.c (integer_unlimited_completer): New function.
8588 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8589 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8590 completer.
8591 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8592 (is_unlimited_literal): New function.
8593 (do_set_command): Handle literal "unlimited" arguments.
8594 * frame.c (_initialize_frame) <set backtrace limit>: Document
8595 "unlimited".
8596 * printcmd.c (_initialize_printcmd) <set print
8597 max-symbolic-offset>: Add help text.
8598 * record-full.c (_initialize_record_full) <set record full
8599 insn-number-max>: Likewise.
8600 * record.c (_initialize_record) <set record
8601 instruction-history-size, set record function-call-history-size>:
8602 Add help text.
8603 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8604 help text.
8605 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8606 Likewise.
8607 * source.c (_initialize_source) <set listsize>: Add help text.
8608 * utils.c (initialize_utils) <set height, set width>: Likewise.
8609 <set pagination>: Mention "set height unlimited".
8610 * valprint.c (_initialize_valprint) <set print elements, set print
8611 repeats>: Document "unlimited".
8612
8613 2013-04-10 Pedro Alves <palves@redhat.com>
8614
8615 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8616 instead of disconnect_tracing.
8617 * infcmd.c (detach_command, disconnect_command): Call
8618 query_if_trace_running. Adjust.
8619 * top.c: Include "tracepoint.h".
8620 (quit_target): Delete. Contents moved ...
8621 (quit_force): ... here. Wrap each stage of teardown in
8622 TRY_CATCH. Call disconnect_tracing before detaching.
8623
8624 2013-04-10 Hui Zhu <hui@codesourcery.com>
8625 Yao Qi <yao@codesourcery.com>
8626
8627 * configure.ac: Check libbabeltrace is installed.
8628 * config.in: Regenerate.
8629 * configure: Regenerate.
8630 * Makefile.in (LIBBABELTRACE): New.
8631 (CLIBS): Add LIBBABELTRACE.
8632 * ctf.c: Include "exec.h".
8633 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8634 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8635 (ctf_save_metadata_header): Define new type aliases in
8636 metadata.
8637 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8638 in metadata. Start a new faked packet for trace status.
8639 (ctf_write_status): Write trace status to CTF.
8640 (ctf_write_uploaded_tsv): Write TSV to CTF.
8641 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8642 (ctf_write_definition_end): End the faked packet.
8643
8644 (ctx, ctf_iter, trace_dirname): New.
8645 (start_pos): New variable.
8646 (ctf_destroy, ctf_open_dir, ctf_open): New.
8647 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8648 macros.
8649 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8650 (ctf_fetch_registers, ctf_xfer_partial): New.
8651 (ctf_get_trace_state_variable_value): New.
8652 (ctf_get_tpnum_from_frame_event): New.
8653 (ctf_get_traceframe_address): New.
8654 (ctf_trace_find, ctf_has_stack): New.
8655 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8656 (ctf_get_trace_status, ctf_read_status): New.
8657 (_initialize_ctf): New.
8658 * tracepoint.c (get_tracepoint_number): New
8659 (get_uploaded_tsv): Remove 'static'.
8660 (struct traceframe_info, trace_regblock_size): Move it to ...
8661 * tracepoint.h: ... here.
8662 (get_tracepoint_number): Declare it.
8663 (get_uploaded_tsv): Declare it.
8664
8665 * NEWS: Mention new configure option.
8666
8667 2013-04-10 Pedro Alves <palves@redhat.com>
8668 Hui Zhu <hui@codesourcery.com>
8669
8670 * breakpoint.c (dprintf_re_set): New.
8671 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8672 to dprintf_re_set.
8673
8674 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8675
8676 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8677 Remove solib-svr4.o from the list.
8678
8679 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8680
8681 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8682 Use gdb_assert_not_reached instead of invalid boolean expression.
8683
8684 2013-04-09 Pedro Alves <palves@redhat.com>
8685
8686 * remote.c (unpush_and_perror): New function.
8687 (readchar, remote_serial_write): Use it.
8688
8689 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8690
8691 * NEWS: Mention new btrace RSP packets.
8692
8693 2013-04-08 Tom Tromey <tromey@redhat.com>
8694
8695 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8696 long.
8697
8698 2013-04-08 Tom Tromey <tromey@redhat.com>
8699
8700 * maint.c (print_bfd_section_info): Print the section index.
8701 * symmisc.c (dump_msymbols): Print the section index.
8702
8703 2013-04-08 Tom Tromey <tromey@redhat.com>
8704
8705 PR symtab/8424:
8706 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8707 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8708 * breakpoint.c (resolve_sal_pc): Update.
8709 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8710 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8711 (minsym_lookup_iterator_cb): Use it.
8712 (default_read_var_value): Update.
8713 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8714 Update.
8715 * infcmd.c (jump_command): Update.
8716 * linespec.c (minsym_found): Update.
8717 * maint.c (maintenance_translate_address): Update.
8718 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8719 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8720 * parse.c (write_exp_msymbol): Update.
8721 * printcmd.c (address_info): Update.
8722 * psymtab.c (find_pc_sect_psymbol): Update.
8723 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8724 SYMBOL_OBJ_SECTION.
8725 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8726 Don't initialize SYMBOL_OBJ_SECTION.
8727 * spu-tdep.c (spu_catch_start): Update.
8728 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8729 * symmisc.c (dump_msymbols, print_symbol): Update.
8730 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8731 how fallback section is computed.
8732 (fixup_symbol_section): Update.
8733 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8734 Update.
8735 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8736 Initialize SYMBOL_SECTION.
8737 * symtab.h (struct general_symbol_info) <section>: Update comment.
8738 <obj_section>: Remove.
8739 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8740 (SYMBOL_OBJFILE): New macro.
8741
8742 2013-04-08 Tom Tromey <tromey@redhat.com>
8743
8744 * coffread.c (record_minimal_symbol): Update.
8745 * dbxread.c (record_minimal_symbol): Update.
8746 * elfread.c (record_minimal_symbol): Update.
8747 * machoread.c (macho_symtab_add_minsym): Update.
8748 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8749 Update.
8750 * minsyms.c (prim_record_minimal_symbol): Update.
8751 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8752 argument.
8753 (prim_record_minimal_symbol_and_info): Likewise.
8754 * minsyms.h (prim_record_minimal_symbol_full)
8755 (prim_record_minimal_symbol_and_info): Update.
8756 * symtab.c (allocate_symbol, initialize_symbol)
8757 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8758 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8759 Update.
8760
8761 2013-04-08 Tom Tromey <tromey@redhat.com>
8762
8763 PR symtab/8423:
8764 * solib-som.c (som_solib_section_offsets): Use BFD section
8765 indices. Set offsets for all sections.
8766 * somread.c (som_symtab_read): Compute BFD section for
8767 symbol. Use prim_record_minimal_symbol_and_info.
8768 (som_symfile_read): Fix comment.
8769 (struct find_section_offset_arg): New.
8770 (find_section_offset, set_section_index): New functions.
8771 (som_symfile_offsets): Use set_section_index to compute
8772 section indices.
8773
8774 2013-04-08 Tom Tromey <tromey@redhat.com>
8775
8776 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8777 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8778 gdb_bfd_section_index.
8779 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8780 New functions.
8781 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8782 Declare.
8783 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8784 Update.
8785 * objfiles.c (add_to_objfile_sections_full): New function.
8786 (add_to_objfile_sections): Use it.
8787 (build_section_table): Rewrite.
8788 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8789 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8790 (struct objfile) <sections>: Update comment.
8791 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8792 is NULL.
8793 (ALL_OBJSECTIONS): Use it.
8794 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8795 * solib-frv.c (frv_relocate_main_executable): Update.
8796 * solib-target.c (solib_target_relocate_section_addresses):
8797 Use gdb_bfd_section_index.
8798 * symfile.c (build_section_addr_info_from_section_table):
8799 Use gdb_bfd_section_index.
8800 (build_section_addr_info_from_bfd, place_section): Likewise.
8801 * symtab.c (fixup_section): Update.
8802 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8803
8804 2013-04-08 Tom Tromey <tromey@redhat.com>
8805
8806 * minsyms.h (struct bound_minimal_symbol): New.
8807 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8808 Remove objfile argument.
8809 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8810 Return bound_minimal_symbol.
8811 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8812 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8813 Return bound_minimal_symbol.
8814 (in_gnu_ifunc_stub): Update.
8815 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8816 Remove 'objfile_p' argument.
8817 (lookup_solib_trampoline_symbol_by_pc): Update.
8818 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8819 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8820 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8821 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8822 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8823 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8824 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8825 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8826 stack.c, symtab.c, tui/tui-disasm.c: Update.
8827
8828 2013-04-08 Tom Tromey <tromey@redhat.com>
8829
8830 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8831 Use symbol's obstack, not an objfile.
8832 * coffread.c (process_coff_symbol): Update.
8833 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8834 * jv-lang.c (add_class_symbol): Update.
8835 * mdebugread.c (new_symbol): Update.
8836 * minsyms.c (prim_record_minimal_symbol_full)
8837 (terminate_minimal_symbol_table): Update.
8838 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8839 * stabsread.c (define_symbol, read_enum_type): Update.
8840 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8841 Handle Ada specially.
8842 (symbol_set_language): Add 'obstack' argument.
8843 (symbol_set_names): Update.
8844 (symbol_natural_name, symbol_demangled_name): Always use
8845 ada_decode_symbol.
8846 * symtab.h (struct general_symbol_info)
8847 <language_specific::obstack>: New field.
8848 <ada_mangled>: New field.
8849 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8850 (symbol_set_language): Update.
8851
8852 2013-04-08 Tom Tromey <tromey@redhat.com>
8853
8854 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8855 Take an obstack, not an objfile.
8856 (symbol_set_names): Update.
8857 * symtab.h (symbol_set_demangled_name): Update.
8858
8859 2013-04-08 Tom Tromey <tromey@redhat.com>
8860
8861 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8862 allocate_symbol.
8863 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8864 (read_func_scope): Call allocate_template_symbol.
8865 (new_symbol_full): Call allocate_symbol.
8866 * jit.c (finalize_symtab): Call allocate_symbol.
8867 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8868 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8869 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8870 (common_block_end): Call allocate_symbol.
8871 * symtab.c (allocate_symbol, initialize_symbol)
8872 (allocate_template_symbol): New functions.
8873 * symtab.c (allocate_symbol, initialize_symbol)
8874 (allocate_template_symbol): Declare.
8875 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8876
8877 2013-04-08 Pedro Alves <palves@redhat.com>
8878 Keith Seitz <keiths@redhat.com>
8879
8880 * breakpoint.c (create_breakpoint): Rename
8881 "parse_condition_and_thread" parameter to "parse_arg". Update
8882 describing comment. If !PARSE_ARG, then error out if ARG is not
8883 the empty string after extracting the location.
8884 * breakpoint.h (create_breakpoint): Rename
8885 "parse_condition_and_thread" parameter to "parse_arg".
8886
8887 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8888
8889 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8890
8891 2013-04-07 Yao Qi <yao@codesourcery.com>
8892
8893 * remote.c (remote_trace_find): Change type of parameters 'addr1'
8894 and 'addr2' to CORE_ADDR.
8895 * target.c (update_current_target): Update.
8896 * target.h (struct target_ops) <to_trace_find>: Change parameter
8897 type to CORE_ADDR.
8898 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
8899 'addr2' to CORE_ADDR.
8900 (tfile_trace_find): Likewise.
8901 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
8902 Change local variable 'addr' to type CORE_ADDR.
8903 * tracepoint.h (tfind_1): Update declaration.
8904
8905 2013-04-06 Eli Zaretskii <eliz@gnu.org>
8906
8907 * windows-nat.c (windows_get_absolute_argv0): Move from here...
8908 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
8909 Include main.h.
8910
8911 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
8912 here...
8913 * main.h (windows_get_absolute_argv0): ...to here.
8914
8915 2013-04-05 Doug Evans <dje@google.com>
8916
8917 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
8918 (read_cutu_die_from_dwo): Add comments.
8919 (read_structure_type): Update comment.
8920 (read_enumeration_type, read_namespace_type): Update comment.
8921 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
8922
8923 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8924
8925 Convert man pages to texinfo, new gdbinit.5 texinfo page.
8926 * Makefile.in (gdb.z): Remove.
8927 (install-only): Remove $(man1dir) and gdb.1 installation.
8928 * gdb.1: Remove.
8929
8930 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8931
8932 Fix compatibility with Linux kernel 3.8.3.
8933 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
8934 to more inner block. Remove parsing of NUMBER from outer block.
8935 Parse NUMBER only if KEYWORD has been identified.
8936
8937 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8938
8939 Fix variable name shadowing.
8940 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
8941 filename to mapsfilename and update its uses.
8942
8943 2013-04-05 Eli Zaretskii <eliz@gnu.org>
8944
8945 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
8946 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
8947 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
8948 details of the problem.
8949
8950 2013-04-04 Pedro Alves <palves@redhat.com>
8951 Hui Zhu <hui@codesourcery.com>
8952
8953 * breakpoint.c (validate_commands_for_breakpoint): If validating a
8954 tracepoint, reset its STEP_COUNT and call validate_actionline.
8955
8956 2013-04-03 Doug Evans <dje@google.com>
8957
8958 * dwarf2read.c (read_die_and_siblings_1): Renamed from
8959 read_die_and_siblings.
8960 (read_die_and_siblings): New function.
8961 (read_cutu_die_from_dwo): Dump die if requested.
8962 (read_die_and_children): Call read_full_die_1 and
8963 read_die_and_siblings_1.
8964 (read_full_die): Dump die if requested.
8965
8966 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
8967
8968 * dwarf2read.c (struct dwo_file): New member comp_dir.
8969 Rename member name to dwo_name. All uses updated.
8970 (hash_dwo_file): Include comp_dir in computation.
8971 (eq_dwo_file): Ditto.
8972 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
8973 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
8974
8975 * psymtab.c (read_psymtabs_with_fullname): Don't call
8976 psymtab_to_fullname if the basenames are different.
8977
8978 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8979
8980 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
8981 New entry about "fullname" presence.
8982
8983 2013-04-03 Pedro Alves <palves@redhat.com>
8984
8985 * NEWS: Mention x86_64/Cygwin as new native configuration.
8986
8987 2013-04-02 Doug Evans <dje@google.com>
8988
8989 * dwarf2read.c (read_structure_type): Fix typo in comment.
8990
8991 2013-04-02 Pedro Alves <palves@redhat.com>
8992
8993 * NEWS: Mention "set/show debug aarch64", "set/show debug
8994 coff-pe-read" and "set/show debug mach-o".
8995
8996 2013-04-02 Pedro Alves <palves@redhat.com>
8997
8998 * NEWS: Mention "set/show remote trace-buffer-size-packet".
8999
9000 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9001
9002 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9003 gdb_string.h is now in common/.
9004
9005 2013-04-02 Pedro Alves <palves@redhat.com>
9006
9007 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9008 under "New options".
9009
9010 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9011
9012 Revert this patch:
9013 PR gdb/15275
9014 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9015
9016 2013-04-02 Pedro Alves <palves@redhat.com>
9017
9018 PR gdb/15275
9019
9020 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9021 (remote_serial_write): New function.
9022 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9023
9024 2013-04-01 Jiong Wang <jiwang@tilera.com>
9025
9026 * NEWS: Mention TILE-Gx in "New native configurations" and
9027 "New targets" sections.
9028
9029 2013-04-01 Doug Evans <dje@google.com>
9030
9031 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9032 (process_enumeration_scope): Simplify.
9033
9034 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9035 type_unit_group ...
9036 (struct signatured_type): ... to here.
9037 (sig_type_ptr): New typedef.
9038 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9039 out of union 't'. All uses updated.
9040 (dw2_get_file_names_reader): Assert not called for a type unit.
9041 (dw2_get_file_names): Assert not called for a type unit or type
9042 unit group.
9043 (build_type_psymtabs_reader): Assert called for a type unit.
9044 (build_type_psymtab_dependencies): Assert called for a type unit group.
9045
9046 * dwarf2read.c (free_dwo_file): Add comment.
9047 (dwarf2_per_objfile_free): Unref dwp bfd.
9048
9049 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9050
9051 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9052 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9053 (read_pe_exported_syms): Remove unused 'exportix'.
9054 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9055 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9056 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9057
9058 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9059
9060 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9061 (print_it_watchpoint): Remove unused 'bl'.
9062 (say_where): Remove unused 'uiout'.
9063 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9064 (bkpt_breakpoint_hit): Remove unused 'b'.
9065 (internal_bkpt_print_it): Remove unused 'uiout'.
9066 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9067
9068 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9069
9070 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9071 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9072
9073 2013-03-29 Doug Evans <dje@google.com>
9074
9075 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9076 Delete arg is_dwp. All callers updated.
9077 (open_dwp_file): New function.
9078 (open_and_init_dwp_file): Call it.
9079 (get_dwp_file): New function.
9080 (lookup_dwo_cutu): Call it.
9081
9082 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9083 unnecessary, cleanup.
9084
9085 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9086
9087 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9088 (lookup_dwo_unit): New function.
9089 (init_cutu_and_read_dies): Move DWO handling to new functions.
9090
9091 * dwarf2read.c (struct signatured_type): Tweak comment.
9092 (struct dwo_unit): Tweak comment.
9093 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9094 (create_dwo_debug_info_hash_table): Tweak comment.
9095 (dwarf2_per_cu_offset_and_type): Tweak comment.
9096
9097 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9098 missing .debug_types section.
9099
9100 2013-03-29 Yao Qi <yao@codesourcery.com>
9101
9102 * corelow.c: Include "completer.h".
9103 (_initialize_corelow): Call add_target_with_completer with
9104 argument 'filename_completer'.
9105 * tracepoint.c: Likewise.
9106 * exec.c (_initialize_exec): Likewise.
9107 * target.c (add_target): Rename to ...
9108 (add_target_with_completer): ... this. Call set_cmd_completer
9109 if parameter completer is not NULL.
9110 (add_target): New.
9111 * target.h: Include "command.h".
9112 (add_target_with_completer): Declare it.
9113
9114 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9115
9116 * coffread.c (is_import_fixup_symbol): New function.
9117 (record_minimal_symbol): Use is_import_fixup_symbol to
9118 detect import fixup symbols, and discard them.
9119
9120 2013-03-28 Doug Evans <dje@google.com>
9121
9122 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9123 types hash table until we know we need it.
9124
9125 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9126 index numbers.
9127
9128 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9129 All callers updated.
9130 (dw2_print_stats): Print #read CUs too.
9131 (dump_die_shallow): Print signatured types better.
9132
9133 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9134 info_or_types_section to section. All uses updated.
9135 (struct dwo_unit): Ditto.
9136
9137 2013-03-28 Pedro Alves <palves@redhat.com>
9138
9139 * NEWS (New options): New section.
9140 (New options): Mention set/show remote trace-status-packet.
9141 * remote.c (PACKET_qTStatus): New enumeration value.
9142 (remote_get_trace_status): Skip sending qTStatus if the packet is
9143 disabled. Use packet_ok.
9144 (_initialize_remote): Register a configuration command for
9145 qTStatus packet.
9146
9147 2013-03-28 Doug Evans <dje@google.com>
9148
9149 * symfile.c (find_separate_debug_file): Add comment.
9150 (terminate_after_last_dir_separator): Tweak comment.
9151
9152 * dwarf2read.c (create_partial_symtab): Add forward decl.
9153 (create_partial_symtab): Move to be closer to other psymtab functions.
9154 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9155
9156 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9157 (compute_symtab_includes): Remove unnecessary forward declaration.
9158 (die_needs_namespace): Add comment marking group of functions for
9159 dwarf2 name computation.
9160
9161 * typeprint.c (_initialize_typeprint): Improve type help text.
9162
9163 * python/python.c (finish_python_initialization): Provide suggestion
9164 for how to tell gdb to find its python files.
9165
9166 2013-03-28 Pedro Alves <palves@redhat.com>
9167
9168 PR gdb/15294
9169
9170 * source.c (_initialize_source): Change back "set listsize" to an
9171 integer command.
9172
9173 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9174
9175 PR gdb/15275
9176 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9177
9178 2013-03-27 Pedro Alves <palves@redhat.com>
9179
9180 * top.c (history_size): Rename to ...
9181 (history_size_setshow_var): ... this. Add comment.
9182 (show_commands): Use readline's 'history_length' instead of
9183 computing the history length by calling history_get in a loop.
9184 (set_history_size_command): Error out for sizes over INT_MAX.
9185 Restore previous history size on invalid size.
9186 (init_history): If HISTSIZE is negative, leave the history size as
9187 zero. Add comments.
9188 (init_main): Adjust.
9189
9190 2013-03-27 Pedro Alves <palves@redhat.com>
9191
9192 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9193 coff_pe_read" command to "set debug coff-pe-read".
9194
9195 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9196
9197 * record.c (command_size_to_target_size): Fix size comparison.
9198 Change parameter type from pointer to integer to integer.
9199 Update all users.
9200
9201 2013-03-27 Pierre Muller <muller@sourceware.org>
9202
9203 * windows-nat.c (handle_output_debug_string): Avoid typecast
9204 from integer of different size warning.
9205
9206 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9207
9208 * windows-nat.c (handle_output_debug_string): Add empty line
9209 after local block variable definition.
9210
9211 2013-03-26 Pedro Alves <palves@redhat.com>
9212
9213 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9214 (net_open): Make 'polls' local unsigned.
9215
9216 2013-03-26 Pedro Alves <palves@redhat.com>
9217
9218 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9219 a zuinteger command instead of uinteger.
9220
9221 2013-03-26 Pedro Alves <palves@redhat.com>
9222
9223 * record-full.c (record_full_insn_num): Make it unsigned.
9224 (record_full_check_insn_num, record_full_message)
9225 (record_full_registers_change, record_full_xfer_partial): Remove
9226 record_full_insn_max_num check (it's always != 0).
9227 (record_full_info, record_full_restore): Use %u as format string.
9228 (): Use %u as format string.
9229 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9230 check (it's always != 0).
9231
9232 2013-03-26 Pedro Alves <palves@redhat.com>
9233
9234 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9235 and "set dcache size" commands zuinteger instead of uinteger.
9236
9237 2013-03-26 Pedro Alves <palves@redhat.com>
9238
9239 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9240 command zuinteger instead of uinteger.
9241
9242 2013-03-26 Pedro Alves <palves@redhat.com>
9243
9244 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9245 zuinteger instead of uinteger.
9246
9247 2013-03-26 Pedro Alves <palves@redhat.com>
9248
9249 * record.c (record_insn_history_size_setshow_var)
9250 (record_call_history_size_setshow_var): New globals.
9251 (command_size_to_target_size): New function.
9252 (cmd_record_insn_history, cmd_record_call_history): Use
9253 command_size_to_target_size instead of cast.
9254 (validate_history_size, set_record_insn_history_size)
9255 (set_record_call_history_size): New functions.
9256 (_initialize_record): Install set_record_insn_history_size and
9257 set_record_call_history_size as "set" hooks of "set record
9258 instruction-history-size" and "set record
9259 function-call-history-size".
9260
9261 2013-03-26 Pedro Alves <palves@redhat.com>
9262
9263 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9264 use with history_max_entries use. Remove FIXME note.
9265
9266 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9267
9268 * record-btrace.c (record_btrace_close): Call
9269 record_btrace_auto_disable.
9270
9271 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9272
9273 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9274
9275 2013-03-25 Doug Evans <dje@google.com>
9276
9277 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9278
9279 2013-03-25 Tom Tromey <tromey@redhat.com>
9280
9281 PR symtab/11462:
9282 * c-exp.y (exp): Add new productions for destructors after '.' and
9283 '->'.
9284 (write_destructor_name): New function.
9285
9286 2013-03-25 Tom Tromey <tromey@redhat.com>
9287
9288 PR c++/9197:
9289 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9290 value_struct_elt, not lookup_struct_elt_type.
9291 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9292 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9293 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9294
9295 2013-03-25 Yao Qi <yao@codesourcery.com>
9296
9297 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9298 instead of '_mkdir'.
9299
9300 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9301
9302 * windows-nat.c (windows_get_absolute_argv0): New function.
9303 * windows-nat.h: Add its prototype.
9304
9305 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9306 Use IS_DIR_SEPARATOR instead of looking for a character inside
9307 SLASH_STRING. Include filenames.h.
9308 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9309 relocate_gdb_directory works when passed gdb_program_name.
9310 Include windows-nat.h.
9311
9312 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9315 * remote.c (trace_error): Remove the special handling of '2'.
9316 (readchar) <SERIAL_EOF>
9317 (readchar) <SERIAL_ERROR>
9318 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9319 (remote_get_trace_status): Call throw_exception if EX is
9320 TARGET_CLOSE_ERROR.
9321 * utils.c (perror_with_name): Rename to ...
9322 (throw_perror_with_name): ... here. New parameter errcode, describe it
9323 in the function comment.
9324 (perror_with_name): New function wrapper.
9325 * utils.h (enum errors): New stub declaration.
9326 (throw_perror_with_name): New declaration.
9327
9328 2013-03-22 Pedro Alves <palves@redhat.com>
9329 Yao Qi <yao@codesourcery.com>
9330 Mark Kettenis <kettenis@gnu.org>
9331
9332 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9333 Don't let the user set the value to UINT_MAX directly.
9334 <var_integer>: Don't let the user set the value to INT_MAX
9335 directly.
9336
9337 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9338
9339 * remote.c (remote_unpush_target): New function.
9340 (remote_open_1): Remove two pop_target calls, update one comment, add
9341 comment to target_preopen call. Replace pop_target call by
9342 remote_unpush_target call.
9343 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9344 pop_target calls by remote_unpush_target calls.
9345
9346 2013-03-22 Pedro Alves <palves@redhat.com>
9347
9348 * linux-nat.c (linux_child_follow_fork): Don't call
9349 linux_enable_event_reporting.
9350 (linux_handle_extended_wait): Don't call
9351 linux_enable_event_reporting.
9352
9353 2013-03-22 Pedro Alves <palves@redhat.com>
9354
9355 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9356 use it to rewrite the trampoline buffers with type gdb_byte[], and
9357 undefine the macro. Remove char* cast.
9358
9359 2013-03-21 Doug Evans <dje@google.com>
9360
9361 New commands "mt set per-command {space,time,symtab} {on,off}".
9362 * NEWS: Add entry.
9363 * event-top.c: #include "maint.h".
9364 * main.c: #include "maint.h".
9365 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9366 timeval-utils.h, maint.h, cli/cli-setshow.h.
9367 (per_command_time, per_command_space): New static globals.
9368 (per_command_symtab): New static global.
9369 (per_command_setlist, per_command_showlist): New static globals.
9370 (struct cmd_stats): Move here from utils.c.
9371 (set_per_command_time): Renamed from set_display_time in utils.c
9372 and moved here. All callers updated.
9373 (set_per_command_space): Renamed from set_display_space in utils.c
9374 and moved here. All callers updated.
9375 (count_symtabs_and_blocks): New function.
9376 (report_command_stats): Moved here from utils.c. Add support for
9377 printing symtab stats. Only print data if enabled before command
9378 executed.
9379 (make_command_stats_cleanup): Ditto.
9380 (sert_per_command_cmd, show_per_command_cmd): New functions.
9381 (_initialize_maint_cmds): Add new commands
9382 mt set per-command {space,time,symtab} {on,off}.
9383 * maint.h: New file.
9384 * top.c: #include "maint.h".
9385 * utils.c (reset_prompt_for_continue_wait_time): New function.
9386 (get_prompt_for_continue_wait_time): New function.
9387 * utils.h (reset_prompt_for_continue_wait_time): Declare
9388 (get_prompt_for_continue_wait_time): Declare.
9389 (make_command_stats_cleanup): Moved to maint.h.
9390 (set_display_time, set_display_space): Moved to maint.h and renamed
9391 to set_per_command_time, set_per_command_space.
9392 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9393 parse_binary_operation and made non-static. Don't call error,
9394 just return an error marker. All callers updated.
9395 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9396
9397 2013-03-21 Tom Tromey <tromey@redhat.com>
9398
9399 * symfile.c (alloc_section_addr_info): Update header. Don't set
9400 'num_sections' field.
9401 (build_section_addr_info_from_section_table): Set 'num_sections'.
9402 (build_section_addr_info_from_bfd): Likewise.
9403 (build_section_addr_info_from_objfile): Remove dead loop
9404 condition.
9405 (free_section_addr_info): Unconditionally call xfree.
9406 (relative_addr_info_to_section_offsets, addrs_section_sort)
9407 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9408 condition.
9409 (syms_from_objfile_1): Remove dead 'if' condition. Check
9410 'num_sections'.
9411 (add_symbol_file_command): Set 'num_sections'.
9412 * symfile-mem.c (symbol_file_add_from_memory): Set
9413 'num_sections'.
9414 * somread.c (som_symfile_offsets): Remove dead loop condition.
9415 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9416 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9417
9418 2013-03-21 Tom Tromey <tromey@redhat.com>
9419
9420 * tracepoint.h (decode_agent_options): Add 'trace_string'
9421 argument.
9422 * tracepoint.c (decode_agent_options): Add 'trace_string'
9423 argument.
9424 (validate_actionline): Update.
9425 (collect_symbol): Add 'trace_string' argument.
9426 (struct add_local_symbols_data) <trace_string>: New field.
9427 (do_collect_symbol): Update.
9428 (add_local_symbols): Add 'trace_string' argument.
9429 (encode_actions_1): Update.
9430 (trace_dump_actions): Update.
9431 * dwarf2loc.c (access_memory): Update.
9432 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9433 * ax-general.c (new_agent_expr): Update.
9434 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9435 (gen_trace_for_return_address): Add argument.
9436 (trace_kludge, trace_string_kludge): Remove.
9437 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9438 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9439 (gen_trace_for_var): Add 'trace_string' argument.
9440 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9441 (gen_printf, agent_eval_command_one): Update.
9442
9443 2013-03-21 Tom Tromey <tromey@redhat.com>
9444
9445 PR exp/15109:
9446 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9447 Handle FILENAME token.
9448
9449 2013-03-21 Tom Tromey <tromey@redhat.com>
9450
9451 * c-exp.y (YYPRINT): Define.
9452 (c_print_token): New function.
9453
9454 2013-03-21 Tom Tromey <tromey@redhat.com>
9455
9456 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9457
9458 2013-03-21 Yao Qi <yao@codesourcery.com>
9459
9460 * ctf.c: Include "gdb_stat.h".
9461 [USE_WIN32API]: New macro 'mkdir'.
9462 (ctf_start): Use permission bits macros if they are defined.
9463
9464 2013-03-20 Keith Seitz <keiths@redhat.com>
9465
9466 * breakpoint.h (struct breakpoint): Add comment to
9467 extra_string indicating that this member is mallod'd.
9468 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9469
9470 2013-03-20 Pedro Alves <palves@redhat.com>
9471
9472 PR gdb/15289
9473
9474 * cli/cli-setshow.c (do_set_command)
9475 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9476 the result of parsing the command argument. Throw error if the
9477 value is greater than UINT_MAX. Print the invalid value with
9478 plongest.
9479 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9480 result of parsing the command argument. Throw error if the value
9481 is greater than INT_MAX, not greater or equal. Also throw error
9482 if the value is less than INT_MIN. Print the invalid value with
9483 plongest.
9484 <var_zuinteger_unlimited>: Throw error if the value is greater
9485 than INT_MAX, not greater or equal.
9486 (do_show_command) <var_integer, var_zinteger,
9487 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9488
9489 2013-03-20 Tom Tromey <tromey@redhat.com>
9490
9491 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9492 if possible.
9493 * dwarf2read.c (read_func_scope): Remove old FIXME.
9494 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9495 not LOC_COMPUTED.
9496 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9497 Unconditionally call via computed ops, if possible.
9498 * printcmd.c (address_info): Unconditionally call via computed ops,
9499 if possible.
9500 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9501 if possible.
9502 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9503 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9504 if possible.
9505
9506 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9507 Tom Tromey <tromey@redhat.com>
9508
9509 PR symtab/8421:
9510 * coffread.c (coff_register_index): New global.
9511 (process_coff_symbol, coff_read_enum_type): Set
9512 SYMBOL_ACLASS_INDEX.
9513 (_initialize_coffread): Initialize new global.
9514 * dwarf2loc.c (locexpr_find_frame_base_location)
9515 (dwarf2_block_frame_base_locexpr_funcs)
9516 (loclist_find_frame_base_location)
9517 (dwarf2_block_frame_base_loclist_funcs): New.
9518 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9519 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9520 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9521 (dwarf2_block_frame_base_loclist_funcs): New.
9522 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9523 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9524 globals.
9525 (read_func_scope): Update.
9526 (fixup_go_packaging, mark_common_block_symbol_computed)
9527 (var_decode_location, new_symbol_full, dwarf2_const_value):
9528 Set SYMBOL_ACLASS_INDEX.
9529 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9530 (_initialize_dwarf2_read): Initialize new globals.
9531 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9532 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9533 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9534 globals.
9535 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9536 (_initialize_mdebugread): Initialize new globals.
9537 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9538 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9539 (stab_register_index, stab_regparm_index): New globals.
9540 (define_symbol, read_enum_type, common_block_end): Set
9541 SYMBOL_ACLASS_INDEX.
9542 (_initialize_stabsread): Initialize new globals.
9543 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9544 globals.
9545 (MAX_SYMBOL_IMPLS): New define.
9546 (register_symbol_computed_impl, register_symbol_block_impl)
9547 (register_symbol_register_impl)
9548 (initialize_ordinary_address_classes): New functions.
9549 (_initialize_symtab): Call initialize_ordinary_address_classes.
9550 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9551 (struct symbol_impl): New.
9552 (SYMBOL_ACLASS_BITS): New define.
9553 (struct symbol) <aclass, ops>: Remove fields.
9554 <aclass_index>: New field.
9555 (symbol_impls): Declare.
9556 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9557 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9558 (register_symbol_computed_impl, register_symbol_block_impl)
9559 (register_symbol_register_impl): Declare.
9560 (struct symbol_computed_ops): Add location_has_loclist.
9561 (struct symbol_block_ops): New.
9562 (SYMBOL_BLOCK_OPS): New.
9563 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9564
9565 2013-03-20 Tom Tromey <tromey@redhat.com>
9566
9567 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9568 (print_partial_symbols, recursively_search_psymtabs): Use
9569 PSYMBOL_CLASS.
9570
9571 2013-03-20 Pierre Muller <muller@sourceware.org>
9572
9573 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9574 addtion, subtraction, multiplication and division binary operator.
9575
9576 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9577
9578 Code cleanup.
9579 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9580 * bsd-kvm.c (bsd_kvm_close): Likewise.
9581 * bsd-uthread.c (bsd_uthread_close): Likewise.
9582 * corelow.c (core_close): Likewise.
9583 (core_close_cleanup): Remove parameter quitting from a caller.
9584 * event-top.c (async_disconnect): Likewise.
9585 * exec.c (exec_close_1): Remove parameter quitting.
9586 * go32-nat.c (go32_close): Likewise.
9587 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9588 parameter quitting from a caller.
9589 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9590 variable.
9591 (mips_linux_close): Remove parameter quitting. Remove parameter
9592 quitting from a caller.
9593 * monitor.c (monitor_close): Remove parameter quitting.
9594 * monitor.h (monitor_close): Likewise.
9595 * record-btrace.c (record_btrace_close): Likewise.
9596 * record-full.c (record_full_close): Likewise.
9597 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9598 it also from fprintf_unfiltered.
9599 * remote-mips.c (mips_close): Remove parameter quitting.
9600 (mips_detach): Remove parameter quitting from a caller.
9601 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9602 (gdbsim_close): Remove duplicate function comment. Remove parameter
9603 quitting and remove it also from printf_filtered.
9604 * remote.c (remote_close): Remove parameter quitting.
9605 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9606 * target.c (update_current_target): Remove parameter int from to_close
9607 de_fault.
9608 (push_target, unpush_target, pop_target): Remove parameter quitting from
9609 a caller.
9610 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9611 Remove parameter quitting from a caller.
9612 (target_preopen): Remove parameter quitting from a caller.
9613 (target_close): Remove parameter quitting. Remove parameter quitting
9614 from a caller two times. Remove parameter quitting also from
9615 fprintf_unfiltered.
9616 * target.h (struct target_ops): Remove parameter quitting and as int
9617 from fields to_xclose and to_close.
9618 (extern struct target_ops current_target):
9619 (target_close, pop_all_targets): Remove parameter quitting. Update the
9620 comment.
9621 (pop_all_targets_above): Remove parameter quitting.
9622 * top.c (quit_target): Remove parameter quitting from a caller.
9623 * tracepoint.c (tfile_close): Remove parameter quitting.
9624 * windows-nat.c (windows_close): Remove parameter quitting.
9625
9626 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9627
9628 * windows-nat.c (handle_output_debug_string): Replace call
9629 to string_to_core_addr with call to strtoull.
9630
9631 2013-03-20 Yao Qi <yao@codesourcery.com>
9632
9633 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9634 and write it to CTF metadata.
9635
9636 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9637
9638 * windows-nat.c (handle_output_debug_string): Change type of n to
9639 SIZE_T to avoid crash on 64 bit systems.
9640
9641 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9642
9643 * python/python-internal.h (HAVE_SNPRINTF)
9644 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9645 about redefinition of snprintf by pyerrors.h.
9646
9647 2013-03-15 Steve Ellcey <sellcey@mips.com>
9648
9649 * remote-sim.c (sim_command_completer): Make char arguments const.
9650
9651 2013-03-15 Tom Tromey <tromey@redhat.com>
9652
9653 PR c++/15116:
9654 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9655
9656 2013-03-14 Tom Tromey <tromey@redhat.com>
9657
9658 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9659 New fields.
9660 (get_file_crc): Move from symfile.c.
9661 (gdb_bfd_crc): New function.
9662 * gdb_bfd.h (gdb_bfd_crc): Declare.
9663 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9664 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9665 (separate_debug_file_exists): Use gdb_bfd_crc.
9666
9667 2013-03-14 Tom Tromey <tromey@redhat.com>
9668
9669 * symfile.c (get_debug_link_info): Remove.
9670 (find_separate_debug_file_by_debuglink): Use
9671 bfd_get_debug_link_info.
9672
9673 2013-03-14 Tom Tromey <tromey@redhat.com>
9674
9675 * symtab.c (error_in_psymtab_expansion): New function.
9676 (lookup_symbol_aux_quick)
9677 (basic_lookup_transparent_type_quick): Remove "last resort"
9678 code. Use error_in_psymtab_expansion.
9679
9680 2013-03-14 Doug Evans <dje@google.com>
9681 Jan Kratochvil <jan.kratochvil@redhat.com>
9682
9683 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9684 any successful compare_filenames_for_search or FILENAME_CMP.
9685 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9686 * symtab.c (iterate_over_some_symtabs): Likewise.
9687
9688 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9689
9690 * source.c (print_source_lines_base): Make a local copy of
9691 symtab_to_fullname.
9692
9693 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9694 Jan Kratochvil <jan.kratochvil@redhat.com>
9695
9696 * source.c (print_source_lines_base): Suppress "file" for TUI.
9697
9698 2013-03-14 Keith Seitz <keiths@redhat.com>
9699 Alan Matsuoka <alanm@redhat.com>
9700
9701 PR c++/15203
9702 PR c++/15210
9703 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9704 TYPE_CODE_METHOD.
9705 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9706 symbols.
9707
9708 2013-03-14 Yao Qi <yao@codesourcery.com>
9709
9710 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9711 status to tfile if trace is stopped by command 'tstop'.
9712
9713 2013-03-14 Yao Qi <yao@codesourcery.com>
9714
9715 * tracepoint.c (tfile_write_status): Write trace notes and user
9716 name into tfile if they are not NULL.
9717
9718 2013-03-14 Hui Zhu <hui@codesourcery.com>
9719 Yao Qi <yao@codesourcery.com>
9720
9721 * Makefile.in (REMOTE_OBS): Add ctf.o.
9722 (SFILES): Add ctf.c.
9723 (HFILES_NO_SRCDIR): Add ctf.h.
9724 * ctf.c, ctf.h: New files.
9725 * tracepoint.c: Include 'ctf.h'.
9726 (collect_pseudocommand): Remove static.
9727 (trace_save_command): Parse option "-ctf".
9728 Produce different trace file writers per option.
9729 Adjust output message.
9730 (trace_save_tfile, trace_save_ctf): New.
9731 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9732 * mi/mi-main.c: Include 'ctf.h'.
9733 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9734 trace_save_tfile or trace_save_ctf.
9735 * NEWS: Mention these changes.
9736
9737 2013-03-14 Yao Qi <yao@codesourcery.com>
9738
9739 * tracepoint.c (trace_file_writer_xfree): New.
9740 (struct tfile_writer_data): New.
9741 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9742 (tfile_write_header, tfile_write_regblock_type): New.
9743 (tfile_write_status, tfile_write_uploaded_tsv): New.
9744 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9745 (tfile_write_raw_data, (tfile_end): New.
9746 (tfile_write_ops): New global variable.
9747 (TRACE_WRITE_R_BLOCK): New macro.
9748 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9749 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9750 (TRACE_WRITE_V_BLOCK): New macro.
9751 (trace_save): Add extra one parameter WRITER. Make it static.
9752 Use WRITER to writer trace.
9753 (tfile_trace_file_writer_new): New.
9754 (trace_save_command): Caller update.
9755 (trace_save_tfile): Write trace data in TFILE format.
9756 * tracepoint.h (struct trace_frame_write_ops): New.
9757 (struct trace_file_write_ops): New.
9758 (struct trace_file_writer): New.
9759 (trace_save): Remove its declaration.
9760 (trace_save_tfile): Declare it.
9761 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9762 instead of trace_save.
9763
9764 2013-03-13 Pedro Alves <palves@redhat.com>
9765
9766 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9767
9768 2013-03-13 Pedro Alves <palves@redhat.com>
9769
9770 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9771 commented out code.
9772 * demangle.c (current_demangling_style_string): Make it const.
9773 (set_demangling_command): Assert the demangling style is known.
9774 Remove all handling of unknown styles. Set
9775 'current_demangling_style_string' to an element of the
9776 demangling_style_names array.
9777 (set_demangling_style): Delete.
9778 (_initialize_demangler): Set current_demangling_style_string to the
9779 element of the demangling_style_names array that corresponds to
9780 the default demangling style. Remove FIXME note. Don't call
9781 set_demangling_style.
9782 * gdb-demangle.h (set_demangling_style): Remove declaration.
9783
9784 2013-03-13 Pedro Alves <palves@redhat.com>
9785
9786 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9787 fields const.
9788 (ada_make_symbol_completion_list): Make "text0" parameter const.
9789 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9790 * breakpoint.c (condition_completer): Make "text" and "word"
9791 parameters const. Adjust.
9792 (check_tracepoint_command): Adjust to validate_actionline
9793 prototype change.
9794 (catch_syscall_completer): Make "text" and "word" parameters
9795 const.
9796 * cli/cli-cmds.c (show_user): Make "comname" local const.
9797 (valid_command_p): Make "command" parameter const.
9798 (alias_command): Make "alias_prefix" and "command_prefix" locals
9799 const.
9800 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9801 (add_alias_cmd): Make "name" and "oldname" parameters const.
9802 Adjust. No longer make copy of OLDNAME.
9803 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9804 (add_setshow_cmd_full, add_setshow_enum_cmd)
9805 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9806 (add_setshow_filename_cmd, add_setshow_string_cmd)
9807 (add_setshow_string_noescape_cmd)
9808 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9809 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9810 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9811 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9812 Make "name" parameter const.
9813 (help_cmd): Rename "command" parameter to "arg". New const local
9814 "command".
9815 (find_cmd): Make "command" parameter const.
9816 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9817 deprecated_cmd_warning prototype change.
9818 (undef_cmd_error): Make "cmdtype" parameter const.
9819 (lookup_cmd): Make "line" parameter const.
9820 (deprecated_cmd_warning): Change type of "text" parameter to
9821 pointer to const char, from pointer to pointer to char. Adjust.
9822 (lookup_cmd_composition): Make "text" parameter const.
9823 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9824 parameters const.
9825 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9826 const.
9827 * cli/cli-script.c (validate_comname): Make "tem" local const.
9828 (define_command): New const local "tem_c". Use it in calls to
9829 lookup_cmd.
9830 (document_command): Make "tem" and "comfull" locals const.
9831 (show_user_1): Make "prefix" and "name" parameters const.
9832 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9833 const.
9834 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9835 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9836 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9837 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9838 (complete_on_enum, add_setshow_enum_cmd)
9839 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9840 (add_setshow_filename_cmd, add_setshow_string_cmd)
9841 (add_setshow_string_noescape_cmd)
9842 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9843 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9844 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9845 Change prototypes, constifying strings.
9846 * completer.c (noop_completer, filename_completer): Make "text"
9847 and "prefix" parameters const.
9848 (location_completer, expression_completer)
9849 (complete_line_internal): Make "text" and "prefix" parameters
9850 const and adjust.
9851 (command_completer, signal_completer): Make "text" and "prefix"
9852 parameters const.
9853 * completer.h (noop_completer, filename_completer)
9854 (expression_completer, location_completer, command_completer)
9855 (signal_completer): Change prototypes.
9856 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9857 parameters const.
9858 * cp-abi.c (cp_abi_completer): Likewise.
9859 * expression.h (parse_expression_for_completion): Change
9860 prototype.
9861 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9862 parameters const.
9863 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9864 * infrun.c (handle_completer): Make "text" and "word" parameters
9865 const.
9866 * interps.c (interpreter_completer): Make "text" and "word"
9867 parameters const.
9868 * language.h (struct language_defn)
9869 <la_make_symbol_completion_list>: Make "text" and "word"
9870 parameters const.
9871 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9872 (parse_exp_in_context): Rename to ...
9873 (parse_exp_in_context_1): ... this.
9874 (parse_exp_in_context): Reimplement, with const hack from
9875 parse_exp_1.
9876 (parse_expression_for_completion): Make "string" parameter const.
9877 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9878 to pointer to const char. Adjust.
9879 (print_command_1): Make "exp" parameter const.
9880 (output_command): Rename to ...
9881 (output_command_const): ... this. Make "exp" parameter const.
9882 (output_command): Reimplement.
9883 (x_command): Adjust.
9884 (display_command): Rename "exp" parameter to "arg". New "exp"
9885 local, const version of "arg".
9886 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9887 "cmd_name" local const.
9888 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9889 call.
9890 (cmdpy_completer): Make "text" and "word" parameters const.
9891 (gdbpy_parse_command_name): Make "prefix_text2" local const.
9892 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
9893 const.
9894 * remote.c (_initialize_remote): Make "cmd_name" local const.
9895 * symtab.c (language_search_unquoted_string): Make "text" and "p"
9896 parameters const. Adjust.
9897 (completion_list_add_fields): Make "sym_text", "text" and "word"
9898 parameters const.
9899 (struct add_name_data) <sym_text, text, word>: Make fields const.
9900 (default_make_symbol_completion_list_break_on): Make "text" and
9901 "word" parameters const. Adjust locals.
9902 (default_make_symbol_completion_list)
9903 (make_symbol_completion_list, make_symbol_completion_type)
9904 (make_symbol_completion_list_fn): Make "text" and "word"
9905 parameters const.
9906 (make_file_symbol_completion_list): Make "text", "word" and
9907 "srcfile" parameters const. Adjust locals.
9908 (add_filename_to_list): Make "text" and "word" parameters const.
9909 (struct add_partial_filename_data) <text, word>: Make fields
9910 const.
9911 (make_source_files_completion_list): Make "text" and "word"
9912 parameters const.
9913 * symtab.h (default_make_symbol_completion_list_break_on)
9914 (default_make_symbol_completion_list, make_symbol_completion_list)
9915 (make_symbol_completion_type enum type_code)
9916 (make_symbol_completion_list_fn make_file_symbol_completion_list)
9917 (make_source_files_completion_list): Change prototype.
9918 * top.c (execute_command): Adjust to pass pointer to pointer to
9919 const char to lookup_cmd, and to deprecated_cmd_warning prototype
9920 change.
9921 (set_verbose): Make "cmdname" local const.
9922 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
9923 and adjust.
9924 (validate_actionline): Make "line" parameter a pointer to const
9925 char, and adjust.
9926 (encode_actions_1): Make "action_exp" local const, and adjust.
9927 (encode_actions): Adjust.
9928 (replace_comma): Delete.
9929 (trace_dump_actions): Make "action_exp" and "next_comma" locals
9930 const, and adjust. Don't frob the action string while splitting
9931 it at commas. Instead, make a copy of each split substring in
9932 turn.
9933 (trace_dump_command): Adjust to validate_actionline prototype
9934 change.
9935 * tracepoint.h (decode_agent_options, decode_agent_options)
9936 (encode_actions, validate_actionline): Change prototypes.
9937 * valprint.h (output_command): Delete declaration.
9938 (output_command_const): Declare.
9939 * value.c (function_destroyer): Cast const away in xfree call.
9940
9941 2013-03-13 Pedro Alves <palves@redhat.com>
9942
9943 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
9944 rather than casting 'const char * const *' to 'const char **'.
9945 * ada-lex.l (processInt): Make "trailer" local const. Remove
9946 'const char **' cast.
9947 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
9948 locals, and use those as strtol output pointer, instead than doing
9949 invalid casts to from 'const char **' to 'char **'.
9950 (_initialize_demangle): Remove cast.
9951 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
9952 locals, and use those as strtol output pointer, instead than doing
9953 invalid casts to from 'const char **' to 'char **'.
9954 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
9955 casts.
9956 * stap-probe.c (stap_parse_register_operand)
9957 (stap_parse_single_operand): Likewise.
9958
9959 2013-03-13 Yao Qi <yao@codesourcery.com>
9960
9961 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
9962 the last matched 'V' blcok in trace frame.
9963
9964 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9965
9966 * NEWS: Create a new section for the next release branch.
9967 Rename the section of the current branch, now that it has
9968 been cut.
9969
9970 2013-03-12 Joel Brobecker <brobecker@adacore.com>
9971
9972 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
9973 * version.in: Bump version to 7.6.50.20130312-cvs.
9974
9975 2013-03-12 Keith Seitz <keiths@redhat.com>
9976
9977 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
9978 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
9979 Remove temporary copy of input string.
9980 (mi_execute_command_wrapper): Make "cmd" const.
9981 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
9982 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
9983 Use const strings.
9984 (mi_parse): Make "cmd" const.
9985 Use const strings.
9986 * mi/mi-parse.h (mi_parse): Make "cmd" const.
9987
9988 2013-03-12 Keith Seitz <keiths@redhat.com>
9989
9990 * ada-lang.c (ada_read_renaming_var_value): Pass const
9991 pointer to expression string to parse_exp_1.
9992 (create_excep_cond_exprs): Likewise.
9993 * ax-gdb.c (agent_eval_command_one): Likewise.
9994 (maint_agent_printf_command): Likewise.
9995 Constify much of the string handling/parsing.
9996 * breakpoint.c (set_breakpoint_condition): Pass const
9997 pointer to expression string to parse_exp_1.
9998 (update_watchpoint): Likewise.
9999 (parse_cmd_to_aexpr): Constify string handling.
10000 Pass const pointer to parse_exp_1.
10001 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10002 (find_condition_and_thread): Likewise.
10003 Make TOK const.
10004 (watch_command_1): Make "arg" const.
10005 Constify string handling.
10006 Copy the expression string instead of changing the input
10007 string.
10008 (update_breakpoint_location): Pass const pointer to
10009 parse_exp_1.
10010 * eval.c (parse_and_eval_address): Make "exp" const.
10011 (parse_to_comma_and_eval): Make "expp" const.
10012 (parse_and_eval): Make "exp" const.
10013 * expression.h (parse_expression): Make argument const.
10014 (parse_exp_1): Make first argument const.
10015 * findcmd.c (parse_find_args): Treat "args" as const.
10016 * linespec.c (parse_linespec): Pass const pointer to
10017 linespec_expression_to_pc.
10018 (linespec_expression_to_pc): Make "exp_ptr" const.
10019 * parse.c (parse_exp_1): Make "stringptr" const.
10020 Make a copy of the expression to pass to parse_exp_in_context until
10021 this whole interface can be constified.
10022 (parse_expression): Make "string" const.
10023 * printcmd.c (ui_printf): Treat "arg" as const.
10024 Handle const strings.
10025 * tracepoint.c (validate_actionline): Pass const pointer to
10026 all calls to parse_exp_1.
10027 (encode_actions_1): Likewise.
10028 * value.h (parse_to_comma_and_eval): Make argument const.
10029 (parse_and_eval_address): Likewise.
10030 (parse_and_eval): Likewise.
10031 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10032 (varobj_set_value): Likewise.
10033 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10034 constify string handling.
10035 Pass const pointers to parse_and_eval_address and
10036 parse_to_comman_and_eval.
10037 * cli/cli-utils.c (skip_to_space): Rename to ...
10038 (skip_to_space_const): ... this. Handle const strings.
10039 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10040 skip_to_space_const.
10041 (skip_to_space_const): Declare.
10042 * common/format.c (parse_format_string): Make "arg" const.
10043 Handle const strings.
10044 * common/format.h (parse_format_string): Make "arg" const.
10045 * gdbserver/ax.c (ax_printf): Make "format" const.
10046 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10047 of the expression string.
10048
10049 2013-03-12 Hui Zhu <hui@codesourcery.com>
10050
10051 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10052
10053 2013-03-12 Yao Qi <yao@codesourcery.com>
10054 Hui Zhu <hui@codesourcery.com>
10055
10056 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10057 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10058 DW_OP_deref_size.
10059
10060 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10061
10062 * ada-lex.l (rules): Only recognize 'thread' as a
10063 delimiter when followed by numerals, as for c-exp.y.
10064 Use new rewind_to_char function to rewind the input for
10065 expression-delimiting tokens.
10066 (rewind_to_char): New function.
10067
10068 2013-03-11 Pedro Alves <palves@redhat.com>
10069 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * configure: Regenerate.
10072 * configure.ac (check dynamic export flag): Link python test with
10073 $PYTHON_LIBS.
10074
10075 2013-03-11 Doug Evans <dje@google.com>
10076 Keith Seitz <keiths@redhat.com>
10077
10078 * linespec.c (find_linespec_symbols): Call find_function_symbols
10079 first, and then call lookup_prefix_sym/find_method.
10080
10081 2013-03-11 Pedro Alves <palves@redhat.com>
10082
10083 * charset.c (convert_between_encodings): Don't cast between
10084 different pointer to pointer types. Instead, make the 'inp' local
10085 be of the type iconv expects.
10086 (wchar_iterate): Don't cast between different pointer to pointer
10087 types. Instead, use new pointer local of the type iconv expects.
10088 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10089 Add new local of type char pointer, and use it to get a
10090 char/string view of the byte buffer, instead of casting between
10091 pointer to pointer types.
10092
10093 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10094
10095 * remote.c (remote_set_trace_buffer_size): Move != operator
10096 to the start of next line to fix an ARI warning.
10097
10098 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10099
10100 * NEWS: Add record changes.
10101
10102 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10103
10104 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10105 the instruction history disassembly.
10106 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10107 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10108
10109 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10110
10111 * Makefile.in (SFILES): Add record-btrace.c
10112 (COMMON_OBS): Add record-btrace.o
10113 * record-btrace.c: New.
10114 * objfiles.c: Include btrace.h.
10115 (free_objfile): call btrace_free_objfile.
10116
10117 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10118
10119 * target.c (target_call_history, target_call_history_from,
10120 target_call_history_range): New.
10121 * target.h (target_ops) <to_call_history, to_call_history_from,
10122 to_call_history_range>: New fields.
10123 (target_call_history, target_call_history_from,
10124 target_call_history_range): New declaration.
10125 * record.c (get_call_history_modifiers, cmd_record_call_history,
10126 record_call_history_size): New.
10127 (_initialize_record): Add the "record function-call-history" command.
10128 Add "set/show record function-call-history-size" commands.
10129 * record.h (record_print_flag): New.
10130
10131 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10132
10133 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10134 to_insn_history_range>: New fields.
10135 (target_insn_history): New.
10136 (target_insn_history_from): New.
10137 (target_insn_history_range): New.
10138 * target.c (target_insn_history): New.
10139 (target_insn_history_from): New.
10140 (target_insn_history_range): New.
10141 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10142 (record_insn_history_size): New.
10143 (get_insn_number): New.
10144 (get_context_size): New.
10145 (no_chunk): New.
10146 (get_insn_history_modifiers): New.
10147 (cmd_record_insn_history): New.
10148 (_initialize_record): Add "set/show record instruction-history-size"
10149 command. Add "record instruction-history" command.
10150
10151 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10152
10153 * record.h (record_disconnect): New.
10154 (record_detach): New.
10155 (record_mourn_inferior): New.
10156 (record_kill): New.
10157 * record-full.c (record_disconnect, record_detach,
10158 record_mourn_inferior, record_kill): Move to...
10159 * record.c: ...here.
10160 (DEBUG): New.
10161 (record_stop): New.
10162 (record_unpush): New.
10163 (cmd_record_stop): Call record_stop. Replace unpush_target
10164 call with record_unpush call.
10165 (record_disconnect, record_detach): Assert that the target
10166 is of record stratum. Call record_unpush, record_stop, and
10167 DEBUG.
10168 (record_mourn_inferior, record_kill): Assert that the target
10169 is of record stratum. Call record_unpush and DEBUG.
10170
10171 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10172
10173 * record-full.h, record-full.c (record_memory_query): Rename
10174 to ...
10175 (record_full_memory_query): ...this. Update all users.
10176 (record_arch_list_add_reg): Rename to ...
10177 (record_full_arch_list_add_reg): ...this. Update all users.
10178 (record_arch_list_add_mem): Rename to ...
10179 (record_full_arch_list_add_mem): ...this. Update all users.
10180 (record_arch_list_add_end): Rename to ...
10181 (record_full_arch_list_add_end): ...this. Update all users.
10182 (record_gdb_operation_disable_set): Rename to ...
10183 (record_full_gdb_operation_disable_set): ...this.
10184 Update all users.
10185
10186 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10187
10188 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10189 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10190 (RECORD_IS_REPLAY): Renamed to ...
10191 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10192 (RECORD_FILE_MAGIC): Renamed to ...
10193 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10194 (record_mem_entry): Renamed to ...
10195 (record_full_mem_entry): ... this. Updated all users.
10196 (record_reg_entry): Renamed to ...
10197 (record_full_reg_entry): ... this. Updated all users.
10198 (record_end_entry): Renamed to ...
10199 (record_full_end_entry): ... this. Updated all users.
10200 (record_type) <record_end, record_reg, record_mem>: Renamed
10201 to ...
10202 (record_full_type) <record_full_end, record_full_reg,
10203 record_full_mem>: ... this. Updated all users.
10204 (record_entry): Renamed to ...
10205 (record_full_entry): ... this. Updated all users.
10206 (record_core_buf_entry): Renamed to ...
10207 (record_full_core_buf_entry): ... this. Updated all users.
10208 (record_core_regbuf): Renamed to ...
10209 (record_full_core_regbuf): ... this. Updated all users.
10210 (record_core_start): Renamed to ...
10211 (record_full_core_start): ... this. Updated all users.
10212 (record_core_end): Renamed to ...
10213 (record_full_core_end): ... this. Updated all users.
10214 (record_core_buf_list): Renamed to ...
10215 (record_full_core_buf_list): ... this. Updated all users.
10216 (record_first): Renamed to ...
10217 (record_full_first): ... this. Updated all users.
10218 (record_list): Renamed to ...
10219 (record_full_list): ... this. Updated all users.
10220 (record_arch_list_head): Renamed to ...
10221 (record_full_arch_list_head): ... this. Updated all users.
10222 (record_arch_list_tail): Renamed to ...
10223 (record_full_arch_list_tail): ... this. Updated all users.
10224 (record_stop_at_limit): Renamed to ...
10225 (record_full_stop_at_limit): ... this. Updated all users.
10226 (record_insn_max_num): Renamed to ...
10227 (record_full_insn_max_num): ... this. Updated all users.
10228 (record_insn_num): Renamed to ...
10229 (record_full_insn_num): ... this. Updated all users.
10230 (record_insn_count): Renamed to ...
10231 (record_full_insn_count): ... this. Updated all users.
10232 (record_ops): Renamed to ...
10233 (record_full_ops): ... this. Updated all users.
10234 (record_core_ops): Renamed to ...
10235 (record_full_core_ops): ... this. Updated all users.
10236 (set_record_cmdlist): Renamed to ...
10237 (set_record_full_cmdlist): ... this. Updated all users.
10238 (show_record_cmdlist): Renamed to ...
10239 (show_record_full_cmdlist): ... this. Updated all users.
10240 (record_cmdlist): Renamed to ...
10241 (record_full_cmdlist): ... this. Updated all users.
10242 (record_beneath_to_resume_ops): Renamed to ...
10243 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10244 (record_beneath_to_resume): Renamed to ...
10245 (record_full_beneath_to_resume): ... this. Updated all users.
10246 (record_beneath_to_wait_ops): Renamed to ...
10247 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10248 (record_beneath_to_wait): Renamed to ...
10249 (record_full_beneath_to_wait): ... this. Updated all users.
10250 (record_beneath_to_store_registers_ops): Renamed to ...
10251 (record_full_beneath_to_store_registers_ops): ... this.
10252 Updated all users.
10253 (record_beneath_to_store_registers): Renamed to ...
10254 (record_full_beneath_to_store_registers): ... this.
10255 Updated all users.
10256 (record_beneath_to_xfer_partial_ops): Renamed to ...
10257 (record_full_beneath_to_xfer_partial_ops): ... this.
10258 Updated all users.
10259 (record_beneath_to_xfer_partial): Renamed to ...
10260 (record_full_beneath_to_xfer_partial): ... this.
10261 Updated all users.
10262 (record_beneath_to_insert_breakpoint): Renamed to ...
10263 (record_full_beneath_to_insert_breakpoint): ... this.
10264 Updated all users.
10265 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10266 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10267 Updated all users.
10268 (record_beneath_to_stopped_data_address): Renamed to ...
10269 (record_full_beneath_to_stopped_data_address): ... this.
10270 Updated all users.
10271 (record_beneath_to_async): Renamed to ...
10272 (record_full_beneath_to_async): ... this. Updated all users.
10273 (record_goto_insn): Renamed to ...
10274 (record_full_goto_insn): ... this. Updated all users.
10275 (record_save): Renamed to ...
10276 (record_full_save): ... this. Updated all users.
10277 (record_reg_alloc): Renamed to ...
10278 (record_full_reg_alloc): ... this. Updated all users.
10279 (record_reg_release): Renamed to ...
10280 (record_full_reg_release): ... this. Updated all users.
10281 (record_mem_alloc): Renamed to ...
10282 (record_full_mem_alloc): ... this. Updated all users.
10283 (record_mem_release): Renamed to ...
10284 (record_full_mem_release): ... this. Updated all users.
10285 (record_end_alloc): Renamed to ...
10286 (record_full_end_alloc): ... this. Updated all users.
10287 (record_end_release): Renamed to ...
10288 (record_full_end_release): ... this. Updated all users.
10289 (record_entry_release): Renamed to ...
10290 (record_full_entry_release): ... this. Updated all users.
10291 (record_list_release): Renamed to ...
10292 (record_full_list_release): ... this. Updated all users.
10293 (record_list_release_following): Renamed to ...
10294 (record_full_list_release_following): ... this.
10295 Updated all users.
10296 (record_list_release_first): Renamed to ...
10297 (record_full_list_release_first): ... this. Updated all users.
10298 (record_arch_list_add): Renamed to ...
10299 (record_full_arch_list_add): ... this. Updated all users.
10300 (record_get_loc): Renamed to ...
10301 (record_full_get_loc): ... this. Updated all users.
10302 (record_check_insn_num): Renamed to ...
10303 (record_full_check_insn_num): ... this. Updated all users.
10304 (record_arch_list_cleanups): Renamed to ...
10305 (record_full_arch_list_cleanups): ... this. Updated all users.
10306 (record_message): Renamed to ...
10307 (record_full_message): ... this. Updated all users.
10308 (record_message_wrapper): Renamed to ...
10309 (record_full_message_wrapper): ... this. Updated all users.
10310 (record_message_wrapper_safe): Renamed to ...
10311 (record_full_message_wrapper_safe): ... this. Updated all users.
10312 (record_gdb_operation_disable): Renamed to ...
10313 (record_full_gdb_operation_disable): ... this. Updated all users.
10314 (record_hw_watchpoint): Renamed to ...
10315 (record_full_hw_watchpoint): ... this. Updated all users.
10316 (record_exec_insn): Renamed to ...
10317 (record_full_exec_insn): ... this. Updated all users.
10318 (record_restore): Renamed to ...
10319 (record_full_restore): ... this. Updated all users.
10320 (record_async_inferior_event_token): Renamed to ...
10321 (record_full_async_inferior_event_token): ... this.
10322 Updated all users.
10323 (record_async_inferior_event_handler): Renamed to ...
10324 (record_full_async_inferior_event_handler): ... this.
10325 Updated all users.
10326 (record_core_open_1): Renamed to ...
10327 (record_full_core_open_1): ... this. Updated all users.
10328 (record_open_1): Renamed to ...
10329 (record_full_open_1): ... this. Updated all users.
10330 (record_open): Renamed to ...
10331 (record_full_open): ... this. Updated all users.
10332 (record_close): Renamed to ...
10333 (record_full_close): ... this. Updated all users.
10334 (record_resume_step): Renamed to ...
10335 (record_full_resume_step): ... this. Updated all users.
10336 (record_resumed): Renamed to ...
10337 (record_full_resumed): ... this. Updated all users.
10338 (record_execution_dir): Renamed to ...
10339 (record_full_execution_dir): ... this. Updated all users.
10340 (record_resume): Renamed to ...
10341 (record_full_resume): ... this. Updated all users.
10342 (record_get_sig): Renamed to ...
10343 (record_full_get_sig): ... this. Updated all users.
10344 (record_sig_handler): Renamed to ...
10345 (record_full_sig_handler): ... this. Updated all users.
10346 (record_wait_cleanups): Renamed to ...
10347 (record_full_wait_cleanups): ... this. Updated all users.
10348 (record_wait_1): Renamed to ...
10349 (record_full_wait_1): ... this. Updated all users.
10350 (record_wait): Renamed to ...
10351 (record_full_wait): ... this. Updated all users.
10352 (record_stopped_by_watchpoint): Renamed to ...
10353 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10354 (record_disconnect): Renamed to ...
10355 (record_full_disconnect): ... this. Updated all users.
10356 (record_detach): Renamed to ...
10357 (record_full_detach): ... this. Updated all users.
10358 (record_mourn_inferior): Renamed to ...
10359 (record_full_mourn_inferior): ... this. Updated all users.
10360 (record_kill): Renamed to ...
10361 (record_full_kill): ... this. Updated all users.
10362 (record_stopped_data_address): Renamed to ...
10363 (record_full_stopped_data_address): ... this. Updated all users.
10364 (record_registers_change): Renamed to ...
10365 (record_full_registers_change): ... this. Updated all users.
10366 (record_store_registers): Renamed to ...
10367 (record_full_store_registers): ... this. Updated all users.
10368 (record_xfer_partial): Renamed to ...
10369 (record_full_xfer_partial): ... this. Updated all users.
10370 (record_breakpoint): Renamed to ...
10371 (record_full_breakpoint): ... this. Updated all users.
10372 (record_breakpoint_p): Renamed to ...
10373 (record_full_breakpoint_p): ... this. Updated all users.
10374 (record_breakpoints): Renamed to ...
10375 (record_full_breakpoints): ... this. Updated all users.
10376 (record_sync_record_breakpoints): Renamed to ...
10377 (record_full_sync_record_breakpoints): ... this.
10378 Updated all users.
10379 (record_init_record_breakpoints): Renamed to ...
10380 (record_full_init_record_breakpoints): ... this.
10381 Updated all users.
10382 (record_insert_breakpoint): Renamed to ...
10383 (record_full_insert_breakpoint): ... this. Updated all users.
10384 (record_remove_breakpoint): Renamed to ...
10385 (record_full_remove_breakpoint): ... this. Updated all users.
10386 (record_can_execute_reverse): Renamed to ...
10387 (record_full_can_execute_reverse): ... this. Updated all users.
10388 (record_get_bookmark): Renamed to ...
10389 (record_full_get_bookmark): ... this. Updated all users.
10390 (record_goto_bookmark): Renamed to ...
10391 (record_full_goto_bookmark): ... this. Updated all users.
10392 (record_async): Renamed to ...
10393 (record_full_async): ... this. Updated all users.
10394 (record_can_async_p): Renamed to ...
10395 (record_full_can_async_p): ... this. Updated all users.
10396 (record_is_async_p): Renamed to ...
10397 (record_full_is_async_p): ... this. Updated all users.
10398 (record_execution_direction): Renamed to ...
10399 (record_full_execution_direction): ... this. Updated all users.
10400 (record_info): Renamed to ...
10401 (record_full_info): ... this. Updated all users.
10402 (record_delete): Renamed to ...
10403 (record_full_delete): ... this. Updated all users.
10404 (record_is_replaying): Renamed to ...
10405 (record_full_is_replaying): ... this. Updated all users.
10406 (record_goto_entry): Renamed to ...
10407 (record_full_goto_entry): ... this. Updated all users.
10408 (record_goto_begin): Renamed to ...
10409 (record_full_goto_begin): ... this. Updated all users.
10410 (record_goto_end): Renamed to ...
10411 (record_full_goto_end): ... this. Updated all users.
10412 (record_goto): Renamed to ...
10413 (record_full_goto): ... this. Updated all users.
10414 (init_record_ops): Renamed to ...
10415 (init_record_full_ops): ... this. Updated all users.
10416 (record_core_resume): Renamed to ...
10417 (record_full_core_resume): ... this. Updated all users.
10418 (record_core_kill): Renamed to ...
10419 (record_full_core_kill): ... this. Updated all users.
10420 (record_core_fetch_registers): Renamed to ...
10421 (record_full_core_fetch_registers): ... this. Updated all users.
10422 (record_core_prepare_to_store): Renamed to ...
10423 (record_full_core_prepare_to_store): ... this. Updated all users.
10424 (record_core_store_registers): Renamed to ...
10425 (record_full_core_store_registers): ... this. Updated all users.
10426 (record_core_xfer_partial): Renamed to ...
10427 (record_full_core_xfer_partial): ... this. Updated all users.
10428 (record_core_insert_breakpoint): Renamed to ...
10429 (record_full_core_insert_breakpoint): ... this. Updated all users.
10430 (record_core_remove_breakpoint): Renamed to ...
10431 (record_full_core_remove_breakpoint): ... this. Updated all users.
10432 (record_core_has_execution): Renamed to ...
10433 (record_full_core_has_execution): ... this. Updated all users.
10434 (init_record_core_ops): Renamed to ...
10435 (init_record_full_core_ops): ... this. Updated all users.
10436 (cmd_record_restore): Renamed to ...
10437 (cmd_record_full_restore): ... this. Updated all users.
10438 (record_save_cleanups): Renamed to ...
10439 (record_full_save_cleanups): ... this. Updated all users.
10440 (cmd_record_start): Renamed to ...
10441 (cmd_record_full_start): ... this. Updated all users.
10442 (set_record_insn_max_num): Renamed to ...
10443 (set_record_full_insn_max_num): ... this. Updated all users.
10444 (set_record_command): Renamed to ...
10445 (set_record_full_command): ... this. Updated all users.
10446 (show_record_command): Renamed to ...
10447 (show_record_full_command): ... this. Updated all users.
10448 (_initialize_record): Renamed to ...
10449 (_initialize_record_full): ... this. Updated all users.
10450
10451 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10452
10453 * record.h: Split into this and ...
10454 * record-full.h: ... this.
10455 * record.c: Split into this and ...
10456 * record-full.c: ... this.
10457 * target.h (target_ops): Add new fields to_info_record,
10458 to_save_record, to_delete_record, to_record_is_replaying,
10459 to_goto_record_begin, to_goto_record_end, to_goto_record.
10460 (target_info_record): New.
10461 (target_save_record): New.
10462 (target_supports_delete_record): New.
10463 (target_delete_record): New.
10464 (target_record_is_replaying): New.
10465 (target_goto_record_begin): New.
10466 (target_goto_record_end): New.
10467 (target_goto_record): New.
10468 * target.c (target_info_record): New.
10469 (target_save_record): New.
10470 (target_supports_delete_record): New.
10471 (target_delete_record): New.
10472 (target_record_is_replaying): New.
10473 (target_goto_record_begin): New.
10474 (target_goto_record_end): New.
10475 (target_goto_record): New.
10476 * record.h: Declare struct cmd_list_element.
10477 (record_cmdlist): New declaration.
10478 (set_record_cmdlist): New declaration.
10479 (show_record_cmdlist): New declaration.
10480 (info_record_cmdlist): New declaration.
10481 (cmd_record_goto): New declaration.
10482 * record.c: Remove unnecessary includes.
10483 Include inferior.h.
10484 (cmd_record_goto): Remove declaration.
10485 (record_cmdlist): Now extern. Initialize.
10486 (set_record_cmdlist): Now extern. Initialize.
10487 (show_record_cmdlist): Now extern. Initialize.
10488 (info_record_cmdlist): Now extern. Initialize.
10489 (find_record_target): New.
10490 (require_record_target): New.
10491 (cmd_record_start): Update.
10492 (cmd_record_delete): Remove target-specific code.
10493 Call target_delete_record.
10494 (cmd_record_stop): Unpush any record target.
10495 (set_record_insn_max_num): Move to record-full.c
10496 (set_record_command): Add comment.
10497 (show_record_command): Add comment.
10498 (info_record_command): Update comment.
10499 Remove target-specific code.
10500 Call the record target's to_info_record.
10501 (cmd_record_start): New.
10502 (cmd_record_goto): Now extern.
10503 Remove target-specific code.
10504 Call target_goto_begin, target_goto_end, or target_goto.
10505 (_initialize_record): Move record target ops initialization to
10506 record-full.c.
10507 Change "record" command help text.
10508 Move "record restore", "record set", and "record show" commands to
10509 record-full.c.
10510 * Makefile.in (SFILES): Add record-full.c.
10511 (HFILES_NO_SRCDIR): Add record-full.h.
10512 (COMMON_OBS): Add record-full.o.
10513 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10514 * arm-tdep.c: Include record-full.h.
10515 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10516 * i386-tdep.c: Include record-full.h.
10517 * infrun.c: Include record-full.h.
10518 * linux-record.c: Include record-full.h.
10519 * moxie-tdep.c: Include record-full.h.
10520 * record-full.c: Include record-full.h.
10521 Change module comment.
10522 (set_record_full_cmdlist): New.
10523 (show_record_full_cmdlist): New.
10524 (record_full_cmdlist): New.
10525 (record_goto_insn): New declaration.
10526 (record_save): New declaration.
10527 (record_check_insn_num): Change query string.
10528 (record_info): New.
10529 (record_delete): New.
10530 (record_is_replaying): New.
10531 (record_goto_entry): New.
10532 (record_goto_begin): New.
10533 (record_goto_end): New.
10534 (record_goto): New.
10535 (init_record_ops): Update.
10536 (init_record_core_ops): Update.
10537 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10538 (cmd_record_start): New.
10539 (set_record_insn_max_num): Moved from record.c
10540 (set_record_full_command): New.
10541 (show_record_full_command): New.
10542 (_initialize_record_full): New.
10543
10544 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10545
10546 * target.h (add_deprecated_target_alias): New.
10547 * target.c (add_deprecated_target_alias): New.
10548
10549 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10550
10551 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10552 and signal.h.
10553 (linux_supports_btrace): Add kernel and
10554 cpuid check.
10555 (kernel_supports_btrace): New function.
10556 (cpu_supports_btrace): New function.
10557 (intel_supports_btrace): New function.
10558
10559 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10560
10561 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10562 * remote.c: Include btrace.h.
10563 (struct btrace_target_info): New struct.
10564 (remote_supports_btrace): New function.
10565 (send_Qbtrace): New function.
10566 (remote_enable_btrace): New function.
10567 (remote_disable_btrace): New function.
10568 (remote_teardown_btrace): New function.
10569 (remote_read_btrace): New function.
10570 (init_remote_ops): Add btrace ops.
10571 (enum <unnamed>): Add btrace packets.
10572 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10573 (_initialize_remote): Add packet configuration for branch tracing.
10574
10575 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10576
10577 * features/btrace.dtd: New file.
10578 * Makefile.in (XMLFILES): Add btrace.dtd.
10579 * btrace.h (parse_xml_btrace): New declaration.
10580 * btrace.c: Include xml-support.h.
10581 (parse_xml_btrace): New function.
10582 (parse_xml_btrace_block): New function.
10583 (block_attributes): New struct.
10584 (btrace_attributes): New struct.
10585 (btrace_children): New struct.
10586 (btrace_elements): New struct.
10587
10588 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10589
10590 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10591 (amd64_linux_enable_btrace): New.
10592 (amd64_linux_disable_btrace): New.
10593 (amd64_linux_teardown_btrace): New.
10594 (_initialize_amd64_linux_nat): Initialize btrace ops.
10595 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10596 (i386_linux_enable_btrace): New.
10597 (i386_linux_disable_btrace): New.
10598 (i386_linux_teardown_btrace): New.
10599 (_initialize_i386_linux_nat): Initialize btrace ops.
10600 * config/i386/linux.mh: Add linux-btrace.o.
10601 * config/i386/linux64.mh: Add linux-btrace.o.
10602
10603 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10604
10605 * common/linux_btrace.h: New file.
10606 * common/linux_btrace.c: New file.
10607 * Makefile.in (SFILES): Add btrace.c.
10608 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10609 (COMMON_OBS): Add btrace.o.
10610 (linux-btrace.o): New rule.
10611
10612 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10613
10614 * target.h: Include btrace.h.
10615 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10616 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10617 * target.c (target_supports_btrace): New function.
10618 (target_enable_btrace): New function.
10619 (target_disable_btrace): New function.
10620 (target_teardown_btrace): New function.
10621 (target_read_btrace): New function.
10622 * btrace.h: New file.
10623 * btrace.c: New file.
10624 * Makefile.in: Add btrace.c.
10625 * gdbthread.h: Include btrace.h.
10626 (struct thread_info): Add btrace field.
10627 * thread.c: Include btrace.h.
10628 (clear_thread_inferior_resources): Call target_teardown_btrace.
10629 * common/btrace-common.h: New file.
10630
10631 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10632
10633 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10634 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10635 kill_status to outer block.
10636
10637 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 Fix entry-values if the callee called a noreturn function.
10640 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10641 get_frame_address_in_block. Add new comment.
10642
10643 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10644
10645 Fix entry-values in C++ across CUs.
10646 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10647 lookup_minimal_symbol. Add a comment.
10648 * dwarf2read.c
10649 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10650 DW_AT_linkage_name.
10651
10652 2013-03-08 Yao Qi <yao@codesourcery.com>
10653
10654 * tracepoint.c (_initialize_tracepoint): Indent the code.
10655
10656 2013-03-08 Pedro Alves <palves@redhat.com>
10657
10658 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10659 (parse_find_args, find_command): Change type of pattern buffer
10660 locals to 'gdb_byte *'.
10661
10662 2013-03-08 Stan Shebs <stan@codesourcery.com>
10663 Hafiz Abid Qadeer <abidh@codesourcery.com>
10664
10665 * NEWS: Mention set and show trace-buffer-size commands.
10666 Mention new packet.
10667 * target.h (struct target_ops): New method
10668 to_set_trace_buffer_size.
10669 (target_set_trace_buffer_size): New macro.
10670 * target.c (update_current_target): Set up new method.
10671 * tracepoint.c (trace_buffer_size): New global.
10672 (start_tracing): Send it to the target.
10673 (set_trace_buffer_size): New function.
10674 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10675 * remote.c (remote_set_trace_buffer_size): New function.
10676 (_initialize_remote): Use it.
10677 (QTBuffer:size) New remote command.
10678 (PACKET_QTBuffer_size): New enum.
10679 (remote_protocol_features): Add an entry for
10680 PACKET_QTBuffer_size.
10681
10682 2013-03-08 Tom Tromey <tromey@redhat.com>
10683
10684 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10685 variable.
10686
10687 2013-03-07 Pedro Alves <palves@redhat.com>
10688
10689 * target.c (target_read_stralloc, target_fileio_read_alloc):
10690 *Cast pointer to 'gdb_byte *' in target call.
10691
10692 2013-03-07 Pedro Alves <palves@redhat.com>
10693
10694 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10695 call.
10696
10697 2013-03-07 Keith Seitz <keiths@redhat.com>
10698
10699 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10700 (trace_pass_command): Likewise.
10701 * cli/cli-cmds.c: Include cli/cli-utils.h.
10702 (source_command): Use skip-spaces.
10703 (disassemble_command): Likewise.
10704 * findcmd.c: Include cli/cli-utils.h.
10705 (parse_find_args): Use skip_spaces.
10706 * go32-nat.c: Include cli/cli-utils.h.
10707 (go32_sldt): Use skip_spaces.
10708 (go32_sgdt): Likewise.
10709 (go32_sidt): Likewise.
10710 (go32_pde): Likewise.
10711 (go32_pte): Likewise.
10712 (go32_pte_for_address): Likewise.
10713 * infcmd.c: Include cli/cli-utils.h.
10714 (registers_info): Use skip_spaces.
10715 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10716 (linux_info_proc): Likewise.
10717 * linux-thread-db.c: Include cli/cli-utils.h.
10718 (info_auto_load_libthread_db): Use skip_spaces_const.
10719 * m32r-rom.c: Include cli/cli-utils.h.
10720 (m32r_upload_command): Use skip_spaces.
10721 * maint.c: Include cli/cli-utils.h.
10722 (maintenance_translate_address): Use skip_spaces.
10723 * mi/mi-parse.c: Include cli/cli-utils.h.
10724 (mi_parse_argv): Use skip_spaces.
10725 (mi_parse): Likewise.
10726 * minsyms.c: Include cli/cli-utils.h.
10727 (msymbol_hash_iw): Use skip_spaces_const.
10728 * objc-lang.c: Include cli/cli-utils.h.
10729 (parse_selector): Use skip_spaces.
10730 (parse_method): Likewise.
10731 * python/python.c: Include cli/cli-utils.h.
10732 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10733 (python_command)[HAVE_PYTHON]: Likewise.
10734 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10735 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10736 (m32r_load): Use skip_spaces.
10737 * serial.c: Include cli/cli-utils.h.
10738 (serial_open): Use skip_spaces_const.
10739 * stack.c: Include cli/cli-utils.h.
10740 (parse_frame_specification_1): Use skip_spaces_const.
10741 * symfile.c: Include cli/cli-utils.h.
10742 (set_ext_lang_command): Use skip_spaces.
10743 * symtab.c: Include cli/cli-utils.h.
10744 (rbreak_command): Use skip_spaces.
10745 * thread.c (thread_name_command): Use skip_spaces.
10746 * tracepoint.c (validate_actionline): Use skip_spaces.
10747 (encode_actions_1): Likewise.
10748 (trace_find_range_command): Likewise.
10749 (trace_find_outside_command): Likewise.
10750 (trace_dump_actions): Likewise.
10751
10752 2013-03-07 Pedro Alves <palves@redhat.com>
10753
10754 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10755 * expprint.c (print_subexp_standard): Likewise.
10756 * utils.c (host_char_to_target): Likewise.
10757 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10758 * varobj.c (value_get_print_value): Change type of local to char*.
10759 Cast it gdb_byte * in call to language printer.
10760
10761 2013-03-07 Pedro Alves <palves@redhat.com>
10762
10763 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10764 gdb_byte *'.
10765 (make_wchar_iterator): Remove cast to char*.
10766 (wchar_iterate): Change type of local.
10767
10768 2013-03-07 Pedro Alves <palves@redhat.com>
10769
10770 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10771 for 'regcache->register_status'.
10772
10773 2013-03-07 Pedro Alves <palves@redhat.com>
10774
10775 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10776 int.
10777
10778 2013-03-07 Pedro Alves <palves@redhat.com>
10779
10780 * stap-probe.c (handle_stap_probe): Add cast to char*.
10781
10782 2013-03-07 Pedro Alves <palves@redhat.com>
10783
10784 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10785 RECORD_MSGRCV>: Pass a signed variable to
10786 regcache_raw_read_signed, instead of an unsigned one.
10787
10788 2013-03-07 Pedro Alves <palves@redhat.com>
10789
10790 * remote-notif.c (notif_debug): Change type to int.
10791 * remote-notif.h (notif_debug): Likewise.
10792
10793 2013-03-07 Pedro Alves <palves@redhat.com>
10794
10795 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10796
10797 2013-03-07 Pedro Alves <palves@redhat.com>
10798
10799 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10800 * remote.h (hex2bin, bin2hex): ... here.
10801 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10802
10803 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10804
10805 * utils.c (initialize_utils): Improve doc strings of "set/show
10806 width", "set/show height", and "set/show pagination".
10807
10808 2013-03-06 Keith Seitz <keiths@redhat.com>
10809
10810 * ax-gdb.c (gen_printf): Make FORMAT const.
10811 * ax-gdb.h (gen_printf): Likewise.
10812 * ax-general.c (ax_string): Make STR const.
10813 * ax.h (ax_string): Likewise.
10814
10815 2013-03-06 Doug Evans <dje@google.com>
10816
10817 * elfread.c (elf_symfile_read): Move debugging printf to more
10818 logical location.
10819
10820 2013-03-06 Pedro Alves <palves@redhat.com>
10821
10822 * python/py-utils.c (target_string_to_unicode): Delete function.
10823 * python/python-internal.h (target_string_to_unicode): Delete
10824 declaration.
10825
10826 2013-03-06 Pierre Muller <muller@sourceware.org>
10827
10828 * linespec.c (get_current_search_block): ARI fix, use (void)
10829 for empty parameter list.
10830
10831 2013-03-05 Doug Evans <dje@google.com>
10832
10833 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10834 of old ada_lookup_symbol_list. In !full_search case, don't
10835 search superblocks.
10836 (ada_lookup_symbol_list): Delete arg full_search, all callers
10837 updated. Call ada_lookup_symbol_list_worker.
10838 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10839 * ada-lang.h (ada_lookup_symbol_list): Update.
10840 * language.h (language_defn): Update comment for
10841 la_iterate_over_symbols.
10842 * linespec.c (iterate_over_file_blocks): New function.
10843 (iterate_over_all_matching_symtabs): Call it.
10844 (lookup_prefix_sym): Ditto.
10845 (get_current_search_block): New function.
10846 (get_search_block): Delete.
10847 (find_label_symbols): Call get_current_search_block.
10848 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10849 * symtab.c (iterate_over_symbols): Don't search superblocks.
10850
10851 2013-03-05 Yao Qi <yao@codesourcery.com>
10852
10853 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10854 parameter VAR's type from "unsigned int" to "int".
10855 * command.h (var_zuinteger_unlimited): Update its comments.
10856 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10857
10858 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10859
10860 * NEWS: Mention new target x86_64-*-cygwin*.
10861
10862 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10863
10864 * configure.host: Add x86_64-*-cygwin* as host.
10865 * configure.tgt: Add x86_64-*-cygwin* as target.
10866 * config/i386/cygwin64.mh: New file.
10867
10868 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10869
10870 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10871
10872 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10873
10874 * linespec.c (struct linespec_canonical_name): New.
10875 (struct linespec_state): Change canonical_names type to it.
10876 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10877 xrealloc element size. Initialize the different CANONICAL fields.
10878 (canonical_to_fullform): New.
10879 (filter_results): Use it. Add variables canonical, fullform and
10880 cleanup.
10881 (struct decode_line_2_item, decode_line_2_compare_items): New.
10882 (decode_line_2): Remove variables iter and item_names, add variables
10883 items and items_count. Modify the code for these new variables.
10884
10885 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10886
10887 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10888 calling do_cleanup.
10889
10890 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10891
10892 * tracepoint.c (build_traceframe_info): Add code for byte order.
10893
10894 2013-03-02 Kevin Buettner <kevinb@redhat.com>
10895
10896 * v850-tdep.c: (v850e2_register_name): Revise system register
10897 names to match current V850E2M architecture specifications.
10898 Update register number enum comments too.
10899
10900 2013-03-01 Jiong Wang <jiwang@tilera.com>
10901 Pedro Alves <palves@redhat.com>
10902
10903 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
10904 to END_ADDR.
10905 (tilegx_skip_prologue): Limit prologue analysis to section end.
10906
10907 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10908
10909 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
10910 use it.
10911
10912 2013-03-01 Pedro Alves <palves@redhat.com>
10913
10914 Use gdb_byte for bytes from the program being debugged.
10915
10916 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
10917 Change type of local 'buf' to gdb_byte.
10918 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
10919 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
10920 * cris-tdep.c (cris_sigcontext_addr)
10921 (cris_sigtramp_frame_unwind_cache): Likewise.
10922 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
10923 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
10924 Likewise.
10925 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
10926 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
10927 (hppa32_hpux_search_dummy_call_sequence)
10928 (hppa_hpux_supply_save_state): Likewise.
10929 * hppa-linux-tdep.c (insns_match_pattern)
10930 (hppa_linux_find_global_pointer): Likewise.
10931 * hppa-tdep.c (hppa_in_function_epilogue_p)
10932 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
10933 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
10934 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
10935 (i386fbsd_collect_uthread): Likewise.
10936 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
10937 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
10938 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
10939 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
10940 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
10941 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
10942 (ia64_libunwind_frame_prev_register)
10943 (ia64_libunwind_sigtramp_frame_this_id)
10944 (ia64_find_global_pointer_from_dynamic_section)
10945 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
10946 (ia64_unwind_pc): Likewise.
10947 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
10948 * m68hc11-tdep.c (m68hc11_push_dummy_call)
10949 (m68hc11_extract_return_value): Likewise.
10950 * m68klinux-nat.c (fetch_register, store_register): Likewise.
10951 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
10952 (mep_get_insn, mep_push_dummy_call): Likewise.
10953 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
10954 (mips_linux_in_dynsym_stub): Likewise.
10955 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
10956 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
10957 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
10958 to gdb_byte.
10959 * remote-mips.c (mips_set_register): Likewise.
10960 * remote-sim.c (gdbsim_fetch_register): Likewise.
10961 * score-tdep.c (score7_fetch_inst): Change type of parameter
10962 'memblock' and local 'buf' to gdb_byte.
10963 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
10964 Change type of local 'buf' to gdb_byte. Adjust.
10965 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
10966 to gdb_byte**.
10967 (score7_analyze_prologue): Change type of 'memblock' and
10968 'memblock_ptr' locals to gdb_byte*.
10969 * sh64-tdep.c (sh64_extract_return_value)
10970 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
10971 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
10972 * solib-pa64.c (pa64_solib_create_inferior_hook)
10973 (pa64_open_symbol_file_object): Remove local 'buf'.
10974 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
10975 (som_open_symbol_file_object): Likewise.
10976 * solib-spu.c (spu_current_sos): Likewise.
10977 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
10978 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
10979 (spu_store_registers): Likewise.
10980 * target.c (debug_print_register): Likewise.
10981 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
10982 * xstormy16-tdep.c (xstormy16_store_return_value)
10983 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
10984 (xstormy16_find_jmp_table_entry): Likewise.
10985
10986 2013-03-01 Jiong Wang <jiwang@tilera.com>
10987
10988 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
10989 (tilegx_gdbarch_init): Install it.
10990
10991 2013-02-28 Tom Tromey <tromey@redhat.com>
10992
10993 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
10994 PyLong_Check.
10995
10996 2013-02-28 Doug Evans <dje@google.com>
10997
10998 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
10999 * python/python.c (gdbpy_find_pc_line): Ditto.
11000
11001 2013-02-28 Tom Tromey <tromey@redhat.com>
11002
11003 * contrib/excheck.py: New file.
11004 * contrib/exsummary.py: New file.
11005 * contrib/gcc-with-excheck: New file.
11006
11007 2013-02-28 Tom Tromey <tromey@redhat.com>
11008
11009 * python/python.c (gdbpy_print_stack): Call begin_line and
11010 fprintf_filtered inside TRY_CATCH.
11011
11012 2013-02-28 Tom Tromey <tromey@redhat.com>
11013
11014 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11015 inside TRY_CATCH.
11016
11017 2013-02-28 Tom Tromey <tromey@redhat.com>
11018
11019 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11020 frame_object_to_frame_info inside TRY_CATCH.
11021
11022 2013-02-28 Tom Tromey <tromey@redhat.com>
11023
11024 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11025 TRY_CATCH.
11026
11027 2013-02-28 Tom Tromey <tromey@redhat.com>
11028
11029 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11030
11031 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11032
11033 * windows-nat.c: Throughout, fix format strings and casts of
11034 printf-like functions to avoid type related warnings on all
11035 platforms.
11036 (handle_output_debug_string): Fetch context information address
11037 from debug string using string_to_core_addr.
11038
11039 2013-02-27 Jiong Wang <jiwang@tilera.com>
11040
11041 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11042 * regformats/reg-tilegx32.dat: New.
11043
11044 2013-02-27 Jiong Wang <jiwang@tilera.com>
11045
11046 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11047
11048 2013-02-27 Jiong Wang <jiwang@tilera.com>
11049
11050 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11051
11052 2013-02-27 Yao Qi <yao@codesourcery.com>
11053 Pedro Alves <palves@redhat.com>
11054
11055 * tracepoint.c (tfile_trace_find): For tfind
11056 pc/tp/range/outside, look for the next trace frame instead of
11057 always starting from frame 0.
11058
11059 2013-02-26 Anthony Green <green@moxielogic.com>
11060
11061 * configure.tgt: Add support for moxie-*-rtems* target.
11062
11063 2013-02-25 Pedro Alves <palves@redhat.com>
11064
11065 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11066 warning text.
11067
11068 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11069
11070 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11071 if $fp is used as the virtual frame pointer.
11072
11073 2013-02-23 Alan Modra <amodra@gmail.com>
11074
11075 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11076 symbol size.
11077 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11078 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11079 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11080 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11081
11082 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 Code cleanup.
11085 * elfread.c (build_id_bfd_get): Make the return type const.
11086 (build_id_verify): Make the check parameter const.
11087 (build_id_to_debug_filename): Make the build_id parameter and variable
11088 data const.
11089 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11090
11091 2013-02-21 Alan Modra <amodra@gmail.com>
11092
11093 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11094
11095 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11096
11097 Add a new method 'disassemble' to gdb.Architecture class.
11098 * python/py-arch.c (archpy_disassmble): Implementation of the
11099 new method gdb.Architecture.disassemble.
11100 (arch_object_methods): Add entry for the new method.
11101
11102 2013-02-20 Jiong Wang <jiwang@tilera.com>
11103
11104 * MAINTAINERS (Write After Approval): Add myself to the list.
11105
11106 2013-02-19 Pedro Alves <palves@redhat.com>
11107
11108 Garbage collect 'struct monitor_ops'::load_routine.
11109
11110 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11111 * monitor.c (monitor_load): No longer call
11112 current_monitor->load_routine.
11113 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11114 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11115 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11116
11117 2013-02-19 Pedro Alves <palves@redhat.com>
11118
11119 PR gdb/15161
11120
11121 Harmonize with generic_load.
11122
11123 * monitor.c: Include "readline/readline.h".
11124 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11125 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11126 long/strtol for the 'load_offset' local. Error out if no argument
11127 is given or if too many arguments are given. Tilde expand the
11128 passed in file name.
11129
11130 2013-02-19 Kai Tietz <ktietz@redhat.com>
11131
11132 PR gdb/15161
11133 * symfile.c (load_section_data): Change type of load_offset
11134 to CORE_ADDR.
11135 (generic_load): User strtoulst instead of strtoul for conversion
11136 of load_offset.
11137
11138 2013-02-19 Jiong Wang <jiwang@tilera.com>
11139
11140 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11141 for return address, "lr" register, saved on stack.
11142 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11143 after we invoke tilegx_analyze_prologue.
11144
11145 2013-02-19 Jiong Wang <jiwang@tilera.com>
11146
11147 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11148
11149 2013-02-19 Jiong Wang <jiwang@tilera.com>
11150
11151 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11152
11153 2013-02-19 Jiong Wang <jiwang@tilera.com>
11154
11155 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11156 (tilegx_write_pc): New function.
11157 (tilegx_cannot_reference_register): Return zero if REGNO
11158 is TILEGX_FAULTNUM_REGNUM.
11159 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11160 (tilegx_register_name): Add handling of "faultnum" register.
11161 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11162 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11163 handling of TILEGX_FAULTNUM_REGNUM.
11164 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11165
11166 2013-02-19 Jiong Wang <jiwang@tilera.com>
11167
11168 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11169 should be aligned to 64bit.
11170
11171 2013-02-19 Kai Tietz <ktietz@redhat.com>
11172
11173 * windows-nat.c (windows_xfer_memory): Fix debug-output
11174 for LLP64.
11175
11176 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11177
11178 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11179 Don't check DSP register number if HAVE_DSP is not set.
11180
11181 2013-02-19 Alan Modra <amodra@gmail.com>
11182
11183 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11184 throughout file instead.
11185 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11186 Don't xmalloc return value.
11187 (build_id_verify): Similarly. Don't xfree.
11188 (build_id_to_debug_filename): Update.
11189 (find_separate_debug_file_by_buildid): Update, don't xfree.
11190
11191 2013-02-18 Tom Tromey <tromey@redhat.com>
11192
11193 PR gdb/15102:
11194 * dwarf2read.c (read_subrange_type): Use result of
11195 'check_typedef'.
11196
11197 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11198
11199 * frame.c: Remove one extra white space after #include
11200 directive.
11201
11202 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11203
11204 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11205
11206 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11209 and dir commands into an if block.
11210
11211 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11212
11213 * python/py-breakpoint (struct pybp_code): Use int instead of
11214 enum type_code.
11215
11216 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11217 Hafiz Abid Qadeer <abidh@codesourcery.com>
11218
11219 * NEWS: Mention new field "trace-file".
11220 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11221 (tfile_open): Record the trace file's filename in the trace
11222 status.
11223 (tfile_files_info): Mention the name of the trace file.
11224 Check the "filename" field explicitely.
11225 (trace_status_command): Explicitely check "filename" field.
11226 (trace_find_command): Ditto.
11227 (trace_find_pc_command): Ditto.
11228 (trace_find_tracepoint_command): Ditto.
11229 (trace_find_line_command): Ditto.
11230 (trace_find_range_command): Ditto.
11231 (trace_find_outside_command): Ditto.
11232 * tracepoint.h (struct trace_status) <from_file>: Rename it
11233 to "filename" and make it hold the trace file's filename
11234 instead of a boolean.
11235 * remote.c (remote_get_trace_status): Initialize "filename"
11236 field with NULL instead of 0.
11237
11238 2013-02-15 Yao Qi <yao@codesourcery.com>
11239
11240 * remote.c: Fix a typo.
11241
11242 2013-02-14 Pierre Muller <muller@sourceware.org>
11243
11244 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11245
11246 2013-02-14 Pedro Alves <palves@redhat.com>
11247
11248 * utils.c (savestring): Don't #undef it. Move function to
11249 common/common-utils.c.
11250 * common/common-utils.c: Include gdb_string.h.
11251 (savestring): Move here from utils.c.
11252 * common/common-utils.h (savestring): Declare.
11253
11254 2013-02-14 Pedro Alves <palves@redhat.com>
11255
11256 * utils.c (savestring): Rename parameter 'size' to 'len'.
11257
11258 2013-02-14 Pedro Alves <palves@redhat.com>
11259 Yufeng Zhang <yufeng.zhang@arm.com>
11260
11261 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11262 (aarch64_inferior_data, struct aarch64_inferior_data):
11263 Delete.
11264 (struct aarch64_process_info): New.
11265 (aarch64_process_list): New global.
11266 (aarch64_find_process_pid, aarch64_add_process)
11267 (aarch64_process_info_get): New functions.
11268 (aarch64_inferior_data_get): Delete.
11269 (aarch64_process_info_get): New function.
11270 (aarch64_forget_process): New function.
11271 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11272 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11273 aarch64_get_debug_reg_state.
11274 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11275 instead of linux_nat_iterate_watchpoint_lwps.
11276 (aarch64_linux_new_fork): New function.
11277 (aarch64_linux_child_post_startup_inferior): Use
11278 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11279 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11280 (aarch64_linux_remove_hw_breakpoint)
11281 (aarch64_handle_aligned_watchpoint)
11282 (aarch64_handle_unaligned_watchpoint)
11283 (aarch64_linux_insert_watchpoint)
11284 (aarch64_linux_remove_watchpoint)
11285 (aarch64_linux_stopped_data_address): Adjust to pass the current
11286 process id to aarch64_debug_reg_state.
11287 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11288 linux_nat_new_fork hook, and aarch64_forget_process as
11289 linux_nat_forget_process hook; remove the call to
11290 register_inferior_data_with_cleanup.
11291
11292 2013-02-14 Pedro Alves <palves@redhat.com>
11293
11294 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11295 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11296 lval_memory.
11297
11298 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11299 Hafiz Abid Qadeer <abidh@codesourcery.com>
11300
11301 * tracepoint.h (validate_trace_state_variable_name): Declare.
11302 * tracepoint.c (validate_trace_state_variable_name): New.
11303 (trace_variable_command): Parse the trace state variable's name
11304 without using parse_expression. Do several validations.
11305 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11306 trace state variable's name with parse_expression. Validate it.
11307
11308 2013-02-14 Yao Qi <yao@codesourcery.com>
11309
11310 * infcmd.c (breakpoint_proceeded): Remove it.
11311
11312 2013-02-14 Yao Qi <yao@codesourcery.com>
11313
11314 * tracepoint.c (end_actions_pseudocommand): Make it static.
11315 (while_stepping_pseudocommand): Likewise.
11316 * tracepoint.h (end_actions_pseudocommand): Remove the
11317 declaration.
11318 (while_stepping_pseudocommand): Likewise.
11319
11320 2013-02-14 Yao Qi <yao@codesourcery.com>
11321
11322 * cli/cli-decode.c (help_cmd): Remove the declaration of
11323 "cmdlist".
11324 (help_all): Likewise.
11325
11326 2013-02-13 Pedro Alves <palves@redhat.com>
11327
11328 * amd64-linux-nat.c (update_debug_registers_callback):
11329 Update comment.
11330 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11331 iterate_over_lwps.
11332 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11333 i386_debug_reg_state.
11334 (amd64_linux_new_fork): New function.
11335 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11336 linux_nat_new_fork hook, and i386_forget_process as
11337 linux_nat_forget_process hook.
11338 * i386-linux-nat.c (update_debug_registers_callback):
11339 Update comment.
11340 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11341 iterate_over_lwps.
11342 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11343 i386_debug_reg_state.
11344 (i386_linux_new_fork): New function.
11345 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11346 linux_nat_new_fork hook, and i386_forget_process as
11347 linux_nat_forget_process hook.
11348 * i386-nat.c (i386_init_dregs): Delete.
11349 (i386_inferior_data, struct i386_inferior_data):
11350 Delete.
11351 (struct i386_process_info): New.
11352 (i386_process_list): New global.
11353 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11354 New functions.
11355 (i386_inferior_data_get): Delete.
11356 (i386_process_info_get): New function.
11357 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11358 (i386_forget_process): New function.
11359 (i386_cleanup_dregs): Rewrite.
11360 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11361 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11362 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11363 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11364 to i386_debug_reg_state.
11365 (i386_use_watchpoints): Don't register inferior data.
11366 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11367 adjust comment.
11368 (i386_forget_process): Declare.
11369 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11370 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11371 New static globals.
11372 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11373 (add_initial_lwp): New, factored out from ...
11374 (add_lwp): ... this. Don't check the number of lwps before
11375 calling linux_nat_new_thread.
11376 (linux_nat_iterate_watchpoint_lwps): Delete.
11377 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11378 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11379 forks and vforks.
11380 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11381 initial lwp.
11382 (linux_nat_kill, linux_nat_mourn_inferior): Call
11383 linux_nat_forget_process.
11384 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11385 (linux_nat_forget_process): New functions.
11386 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11387 type.
11388 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11389 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11390 types.
11391 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11392 (linux_nat_forget_process): New declarations.
11393
11394 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11395 (amd64fbsd_mourn_inferior): New function.
11396 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11397 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11398
11399 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11400
11401 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11402 Adding _().
11403
11404 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11405
11406 * aarch64-linux-nat.c (debug_reg_change_callback)
11407 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11408 %s and phex().
11409
11410 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11411
11412 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11413 with LONGEST.
11414
11415 2013-02-13 Pedro Alves <palves@redhat.com>
11416 Hafiz Abid Qadeer <abidh@codesourcery.com>
11417
11418 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11419
11420 2013-02-12 Tom Tromey <tromey@redhat.com>
11421
11422 PR symtab/11464:
11423 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11424 NAME return.
11425 (classify_inner_name): Remove 'first_name' argument, add
11426 'context'. Remove unused variable.
11427 (yylex): Explicitly maintain the context type. Exit loop earlier
11428 if NAME result is seen.
11429
11430 2013-02-12 Pedro Alves <palves@redhat.com>
11431
11432 * amd64-darwin-tdep.c: Add (C) after Copyright.
11433 * cli/cli-cmds.h: Ditto.
11434 * cli/cli-decode.c: Ditto.
11435 * cli/cli-decode.h: Ditto.
11436 * cli/cli-dump.c: Ditto.
11437 * cli/cli-dump.h: Ditto.
11438 * cli/cli-interp.c: Ditto.
11439 * cli/cli-logging.c: Ditto.
11440 * cli/cli-script.c: Ditto.
11441 * cli/cli-script.h: Ditto.
11442 * cli/cli-setshow.c: Ditto.
11443 * cli/cli-setshow.h: Ditto.
11444 * cli/cli-utils.c: Ditto.
11445 * cli/cli-utils.h: Ditto.
11446 * config/alpha/nm-osf3.h: Ditto.
11447 * config/djgpp/djconfig.sh: Ditto.
11448 * config/i386/nm-fbsd.h: Ditto.
11449 * config/i386/nm-i386gnu.h: Ditto.
11450 * config/nm-linux.h: Ditto.
11451 * config/nm-nto.h: Ditto.
11452 * config/rs6000/nm-rs6000.h: Ditto.
11453 * config/sparc/nm-sol2.h: Ditto.
11454 * darwin-nat-info.c: Ditto.
11455 * dfp.c: Ditto.
11456 * dfp.h: Ditto.
11457 * gdb-demangle.h: Ditto.
11458 * i386-darwin-nat.c: Ditto.
11459 * i386-darwin-tdep.c: Ditto.
11460 * linux-fork.h: Ditto.
11461 * m32c-tdep.c: Ditto.
11462 * microblaze-linux-tdep.c: Ditto.
11463 * microblaze-rom.c: Ditto.
11464 * microblaze-tdep.c: Ditto.
11465 * microblaze-tdep.h: Ditto.
11466 * mips-linux-tdep.h: Ditto.
11467 * ppc-ravenscar-thread.c: Ditto.
11468 * ppc-ravenscar-thread.h: Ditto.
11469 * prologue-value.c: Ditto.
11470 * prologue-value.h: Ditto.
11471 * ravenscar-thread.c: Ditto.
11472 * ravenscar-thread.h: Ditto.
11473 * sparc-ravenscar-thread.c: Ditto.
11474 * sparc-ravenscar-thread.h: Ditto.
11475 * tilegx-linux-tdep.c: Ditto.
11476 * unwind_stop_reasons.def: Ditto.
11477 * windows-nat.h: Ditto.
11478 * xtensa-linux-tdep.c: Ditto.
11479 * xtensa-xtregs.c: Ditto.
11480 * regformats/regdat.sh: Ditto.
11481 * regformats/regdef.h: Ditto.
11482
11483 2013-02-12 Pedro Alves <palves@redhat.com>
11484
11485 * break-catch-sig.c: Update copyright years.
11486
11487 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11488
11489 Add support for a destructor for ui_out data and use it to
11490 provide a ui_out destructor.
11491 * ui-out.h: Declare the new ui_out destructor.
11492 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11493 * ui-out.c (default_data_destroy): Add a default data destructor
11494 which does nothing.
11495 (default_ui_out_impl): Set the new data_destroy field to
11496 default_data_destroy
11497 (uo_data_destroy): Local function which invokes the data
11498 destructor if present.
11499 (clear_table): Local function which clears the table data of a
11500 ui_out object.
11501 (ui_out_destroy): Public function which frees a ui_out object.
11502 (ui_out_table_end): Use the new clear_table function.
11503 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11504 NULL.
11505 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11506 to NULL.
11507
11508 2013-02-11 Doug Evans <dje@google.com>
11509
11510 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11511 (printf_decfloat): New function. Broken out from ui_printf.
11512 Remove unnecessary code to shift the entire format string down.
11513 (printf_pointer): New function.
11514 (ui_printf): Code to print C strings, wide C strings, decfloats,
11515 and pointers moved to separate functions.
11516
11517 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11518
11519 * valops.c (value_assign): Handling bitfield offset in
11520 `lval_internalvar_component' case.
11521
11522 2013-02-08 Doug Evans <dje@google.com>
11523
11524 * common/format.c (parse_format_string): Fix whitespace.
11525
11526 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11527
11528 * stack.c (return_command): Work around uninitialized variable
11529 warning.
11530
11531 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11532
11533 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11534 number of the registers from 36 to 34.
11535
11536 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11537
11538 * NEWS: Mention new AArch64 native and target support.
11539
11540 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11541
11542 * MAINTAINERS (Write After Approval): Add myself.
11543
11544 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11545 Marcus Shawcroft <marcus.shawcroft@arm.com>
11546 Nigel Stephens <nigel.stephens@arm.com>
11547 Yufeng Zhang <yufeng.zhang@arm.com>
11548
11549 * aarch64-linux-nat.c: New file.
11550 * config/aarch64/linux.mh: New file.
11551 * configure.host: Add AArch64.
11552 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11553
11554 2013-02-07 Doug Evans <dje@google.com>
11555
11556 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11557 disassemble command.
11558
11559 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11560
11561 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11562 set_gdbarch_fetch_tls_load_module_address.
11563
11564 2013-02-06 David S. Miller <davem@davemloft.net>
11565
11566 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11567 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11568 * value.c (struct_return_convention): New function.
11569 (using_struct_return): Implement in terms of struct_return_convention.
11570 * value.h (struct_return_convention): Declare.
11571 * stack.c (return_command): Allow successful overriding of the return
11572 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11573
11574 2013-02-06 Tom Tromey <tromey@redhat.com>
11575
11576 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11577 outside of TRY_CATCH.
11578
11579 2013-02-06 Yao Qi <yao@codesourcery.com>
11580
11581 * mi/mi-interp.c: Include "tracepoint.h".
11582 (mi_tsv_modified): Declare.
11583 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11584 (mi_interpreter_init): Call observer_attach_tsv_modified.
11585 (mi_tsv_modified): New.
11586 (mi_tsv_created, mi_tsv_deleted): Update.
11587 * tracepoint.c (trace_variable_command): Call
11588 observer_notify_tsv_modified if the initial value of tsv is
11589 changed.
11590 (delete_trace_state_variable): Call
11591 observer_notify_tsv_deleted earlier.
11592 (trace_variable_command): Caller update.
11593 (create_tsv_from_upload): Likewise.
11594 * observer.sh: Declare "struct trace_state_variable".
11595
11596 * NEWS: Mention the new MI notification "=tsv-modified".
11597
11598 2013-02-05 Doug Evans <dje@google.com>
11599
11600 * completer.c (location_completer): Fix typo in comment.
11601
11602 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11605 ADDRESS sorted.
11606
11607 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11608
11609 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11610 Refactor if statement to avoid trailing || operator.
11611
11612 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11613
11614 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11615
11616 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11617
11618 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11619 * configure.host: Add powerpc*-*-freebsd* target.
11620 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11621 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11622 * config/powerpc/fbsd.mh: New file.
11623
11624 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11625 Denys Vlasenko <dvlasenk@redhat.com>
11626 Pedro Alves <palves@redhat.com>
11627
11628 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11629 (struct elf_internal_linux_prpsinfo): Forward declare.
11630 * gdbarch.h, gdbarch.c: Regenerate.
11631 * linux-tdep.c: Include `cli/cli-utils.h'.
11632 (linux_fill_prpsinfo): New function.
11633 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11634 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11635 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11636 depending on gdbarch pointer bitness.
11637 * ppc-linux-tdep.c: Include elf-bfd.h.
11638 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11639 on 32-bit.
11640
11641 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11642 Marcus Shawcroft <marcus.shawcroft@arm.com>
11643 Nigel Stephens <nigel.stephens@arm.com>
11644 Yufeng Zhang <yufeng.zhang@arm.com>
11645
11646 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11647
11648 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11649 Marcus Shawcroft <marcus.shawcroft@arm.com>
11650 Nigel Stephens <nigel.stephens@arm.com>
11651 Yufeng Zhang <yufeng.zhang@arm.com>
11652
11653 * aarch64-newlib-tdep.c: New file.
11654 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11655 aarch64*-*-elf.
11656 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11657 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11658 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11659 * osabi.c (gdb_osabi_names): Add "Newlib".
11660
11661 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11662 Marcus Shawcroft <marcus.shawcroft@arm.com>
11663 Nigel Stephens <nigel.stephens@arm.com>
11664 Yufeng Zhang <yufeng.zhang@arm.com>
11665
11666 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11667 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11668 * aarch64-linux-tdep.c: New file.
11669 * aarch64-linux-tdep.h: New file.
11670 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11671 * configure.tgt: Add aarch64-none-linux-gnu.
11672
11673 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11674 Marcus Shawcroft <marcus.shawcroft@arm.com>
11675 Nigel Stephens <nigel.stephens@arm.com>
11676 Yufeng Zhang <yufeng.zhang@arm.com>
11677
11678 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11679 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11680 (ALLDEPFILES): Add aarch64-tdep.c.
11681 * aarch64-tdep.c: New file.
11682 * aarch64-tdep.h: New file.
11683 * configure.tgt: Add AArch64.
11684 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11685 (aarch64-expedite): New definition.
11686 * features/aarch64-core.xml: New file.
11687 * features/aarch64-fpu.xml: New file.
11688 * features/aarch64-without-fpu.c: New file (generated).
11689 * features/aarch64-without-fpu.xml: New file.
11690 * features/aarch64.c: New file (generated).
11691 * features/aarch64.xml: New file.
11692 * regformats/aarch64-without-fpu.dat: New file (generated).
11693 * regformats/aarch64.dat: New file (generated).
11694
11695 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * contrib/expect-read1.c: New file.
11698 * contrib/expect-read1.sh: New file.
11699
11700 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11701
11702 * dwarf2read.c (file_file_name): New function with code from
11703 file_full_name.
11704 (file_full_name): Move most of the code to file_file_name.
11705 (macro_start_file): Rename variable full_name to file_name and use
11706 file_file_name for it. Add comp_dir parameter to new_macro_table.
11707 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11708 macro_source_file->filename access by macro_source_fullname call.
11709 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11710 caller.
11711 * macrotab.c (struct macro_table): New field comp_dir.
11712 (macro_include): New variables link_fullname and source_fullname.
11713 Replace any macro_source_file->filename access by macro_source_fullname
11714 call.
11715 (macro_lookup_inclusion): Remove the partial filenames checking code.
11716 (check_for_redefinition): New variables source_fullname and
11717 found_key_fullname. Replace any macro_source_file->filename access by
11718 macro_source_fullname call.
11719 (macro_undef): New variables source_fullname and key_fullname. Replace
11720 any macro_source_file->filename access by macro_source_fullname call.
11721 (macro_lookup_definition): New variables retval and source_fullname.
11722 Replace any macro_source_file->filename access by macro_source_fullname
11723 call.
11724 (foreach_macro): New variable key_fullname. Replace any
11725 macro_source_file->filename access by macro_source_fullname call.
11726 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11727 macro_source_file->filename access by macro_source_fullname call.
11728 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11729 (macro_source_fullname): New function.
11730 * macrotab.h (struct macro_source_file): Extent the filename field
11731 comment.
11732 (new_macro_table): New parameter comp_dir, add a comment for it.
11733 (macro_source_fullname): new declaration.
11734
11735 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11736
11737 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11738 this_real_name to outer block. Use it also for
11739 compare_filenames_for_search.
11740 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11741 with dw2_get_real_path for file_matcher, considering also
11742 BASENAMES_MAY_DIFFER.
11743 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11744
11745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11746
11747 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11748 to the file_matcher parameter. Pass 0 to it.
11749 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11750 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11751 NULL psymtab_to_fullname result.
11752 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11753 an expected filename instead.
11754 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11755 file_matcher parameter. Call also psymtab_to_fullname, after newly
11756 considering BASENAMES_MAY_DIFFER.
11757 * source.c (rewrite_source_path): Remove static.
11758 * source.h (rewrite_source_path): New declaration.
11759 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11760 the expand_symtabs_matching field. Comment it.
11761 * symtab.c (file_matches): New function comment. Add parameter
11762 basenames, implement it.
11763 (search_symbols_file_matches): Add basenames parameter. Update the
11764 file_matches caller.
11765 (search_symbols): Match FILES also against symtab_to_fullname.
11766 Optimize it for BASENAMES_MAY_DIFFER.
11767
11768 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11769
11770 * source.c (print_source_lines_base): Print for TUI also "fullname".
11771 * tui/tui-data.c (init_content_element): Change tui_locator_element
11772 field to full_name.
11773 * tui/tui-data.h (struct tui_locator_element): Likewise.
11774 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11775 tui_update_locator_filename calls to tui_update_locator_fullname.
11776 Replace symtab->filename refererence by symtab_to_fullname call.
11777 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11778 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11779 field to full_name. Replace symtab->filename refererence by
11780 symtab_to_fullname call.
11781 (tui_show_symtab_source): Rename parameter to fullname. Change
11782 tui_locator_element field to full_name.
11783 * tui/tui-stack.c: Include source.h.
11784 (tui_set_locator_filename): Rename the declaration to ...
11785 (tui_set_locator_fullname): ... here. Rename its parameter to
11786 fullname, updates its comment.
11787 (tui_set_locator_info): Rename its parameter to fullname.
11788 (tui_set_locator_filename): Rename the definition to ...
11789 (tui_set_locator_fullname): ... here. Rename its parameter to
11790 fullname, updates its comment. Change tui_locator_element field to
11791 full_name.
11792 (tui_set_locator_info): Rename its parameter to fullname.
11793 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11794 (tui_update_locator_filename): Rename to ...
11795 (tui_update_locator_fullname): ... here. Rename callee to
11796 tui_set_locator_fullname.
11797 (tui_show_frame_info): Replace symtab->filename refererence by
11798 symtab_to_fullname call.
11799 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11800 (tui_update_locator_fullname): ... here.
11801 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11802 tui_update_locator_fullname. Replace symtab->filename refererence by
11803 symtab_to_fullname call.
11804 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11805 Rename the callee to tui_update_locator_fullname.
11806 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11807
11808 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11809
11810 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11811 by symtab_to_filename_for_display calls.
11812 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11813 (clear_command): New variable sal_fullname, initialize it. Replace
11814 compare_filenames_for_search by filename_cmp with sal_fullname.
11815 (say_where, update_static_tracepoint): Replace symtab->filename
11816 refererences by symtab_to_filename_for_display calls.
11817 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11818 Likewise.
11819 * dwarf2read.c: Include source.h.
11820 (fixup_go_packaging): Replace symtab->filename refererences by
11821 symtab_to_filename_for_display calls.
11822 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11823 Replace symtab->filename refererences by symtab_to_filename_for_display
11824 calls.
11825 (create_sals_line_offset, convert_linespec_to_sals): New variable
11826 fullname, initialize it, replace symtab->filename reference by the
11827 variable.
11828 * linux-fork.c: Include source.h.
11829 (info_checkpoints_command): Replace symtab->filename refererences by
11830 symtab_to_filename_for_display calls.
11831 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11832 by symtab_to_filename_for_display calls.
11833 * mdebugread.c: Include source.h.
11834 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11835 symtab_to_filename_for_display calls.
11836 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11837 (mi_cmd_file_list_exec_source_files): Likewise.
11838 * printcmd.c: Include source.h.
11839 (build_address_symbolic): Replace symtab->filename refererences by
11840 symtab_to_filename_for_display calls.
11841 * psymtab.c (partial_map_symtabs_matching_filename)
11842 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11843 with psymtab_to_fullname.
11844 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11845 by symtab_to_filename_for_display calls.
11846 (stpy_get_filename): New variable filename, initialize it, use instead
11847 of symtab->filename refererences.
11848 (salpy_str): Make variable filename const char *. Replace
11849 symtab->filename refererences by symtab_to_filename_for_display calls.
11850 * skip.c: Include source.h and filenames.h.
11851 (skip_file_command): Remove const from the symtab variable. Replace
11852 symtab->filename refererences by symtab_to_fullname call.
11853 (function_name_is_marked_for_skip): New variables searched_for_fullname
11854 and fullname. Use them to search also with symtab's fullname.
11855 * source.c (find_source_lines): Replace symtab->filename refererences
11856 by symtab_to_filename_for_display calls.
11857 (print_source_lines_base): New variable filename, use it instead of
11858 symtab->filename. Replace symtab->filename refererences by
11859 symtab_to_filename_for_display calls.
11860 (line_info, forward_search_command): Replace symtab->filename
11861 refererences by symtab_to_filename_for_display calls.
11862 (reverse_search_command): Replace symtab->filename refererences by
11863 symtab_to_filename_for_display calls. New variable filename for it.
11864 * stack.c (frame_info): Likewise.
11865 * symmisc.c: Include source.h.
11866 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11867 (maintenance_info_symtabs): Replace symtab->filename refererences by
11868 symtab_to_filename_for_display calls.
11869 * symtab.c (iterate_over_some_symtabs): Call
11870 compare_filenames_for_search also with symtab_to_fullname.
11871 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11872 symtab->filename refererences by symtab_to_filename_for_display calls.
11873 (find_line_symtab): Replace symtab->filename refererences by
11874 symtab_to_filename_for_display calls.
11875 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11876 (print_symbol_info): Make the last parameter const char *. New
11877 variable s_filename. Use it in the function.
11878 (symtab_symbol_info): Make the last_filename variable const char *.
11879 Replace symtab->filename refererences by symtab_to_filename_for_display
11880 calls.
11881 (rbreak_command): New variable fullname. Use it. Replace
11882 symtab->filename refererence by symtab_to_filename_for_display call.
11883 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11884 (print_one_static_tracepoint_marker): Replace symtab->filename
11885 refererences by symtab_to_filename_for_display calls.
11886 * tui/tui-source.c (tui_set_source_content): New variables filename and
11887 s_filename. Replace symtab->filename refererences by this variable.
11888 Replace other symtab->filename refererences by
11889 symtab_to_filename_for_display calls.
11890
11891 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
11892 Jan Kratochvil <jan.kratochvil@redhat.com>
11893
11894 Add a new variable that controls a way in which filenames are
11895 displayed.
11896 * NEWS (set filename-display): New entry.
11897 * source.c (filename_display_basename, filename_display_relative)
11898 (filename_display_absolute, filename_display_kind_names)
11899 (filename_display_string, show_filename_display_string)
11900 (symtab_to_filename_for_display): New.
11901 (_initialize_source): Added initialization of 'filename-display'
11902 variable.
11903 * source.h (symtab_to_filename_for_display): Added declaration.
11904 * stack.c (print_frame): Added new variable and calling of a new
11905 function and condition with this variable. Changed third argument of
11906 calling of a function.
11907
11908 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11909
11910 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
11911 Rename field reference filename to fullname.
11912 * tui/tui-data.h (struct tui_source_info): Rename field filename to
11913 fullname. New comment for it.
11914 * tui/tui-source.c (tui_set_source_content): Rename field reference
11915 filename to fullname. Initialize field by symtab_to_fullname now.
11916 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
11917 reference filename to fullname. Use symtab_to_fullname during
11918 comparison.
11919
11920 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11921
11922 Code cleanup.
11923 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
11924 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
11925 filename to fullname. Rename variable this_name to this_fullname.
11926 Lowercase FILENAME_CMP call.
11927 (dw2_find_symbol_file): New comment for the returned string.
11928 (dwarf2_gdb_index_functions): Rename the function to
11929 dw2_expand_symtabs_with_fullname.
11930 * psymtab.c (read_psymtabs_with_filename): Rename to ...
11931 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
11932 fullname.
11933 (psym_functions): Rename the function to read_psymtabs_with_fullname.
11934 * symfile.h (struct quick_symbol_functions): Rename field
11935 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
11936 parameter filename to fullname. Document returned string meaning for
11937 find_symbol_file.
11938 * symtab.c (find_line_symtab): Rename the called function to
11939 expand_symtabs_with_fullname.
11940
11941 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11942
11943 Code cleanup.
11944 * breakpoint.c (clear_command): Remove variable is_abs, unify the
11945 call of filename_cmp with compare_filenames_for_search.
11946 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
11947 is_abs, unify the call of FILENAME_CMP with
11948 compare_filenames_for_search. New gdb_asserts for real_path and name.
11949 Unify the call of compare_filenames_for_search with FILENAME_CMP.
11950 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
11951 * symfile.h (struct quick_symbol_functions): Extend the comment for
11952 map_symtabs_matching_filename.
11953 * symtab.c (compare_filenames_for_search): Remove the function comment
11954 relative path requirement. Handle absolute filenames, with a comment.
11955 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
11956 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
11957 real_path and name. Unify the call of compare_filenames_for_search
11958 with FILENAME_CMP.
11959 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
11960
11961 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11962
11963 Code cleanup.
11964 * breakpoint.c (print_breakpoint_location): Replace bp_location field
11965 source_file references by symtab field references. Remove variables
11966 sal and fullname.
11967 (momentary_breakpoint_from_master, add_location_to_breakpoint):
11968 (clear_command, say_where): Replace bp_location field source_file
11969 references by symtab field references.
11970 (bp_location_dtor): Remove the source_file reference.
11971 (update_static_tracepoint): Replace bp_location field source_file
11972 references by symtab field references.
11973 (breakpoint_free_objfile): New function.
11974 * breakpoint.h (struct bp_location): Extend the comment for line_number.
11975 Replace the field source_file by field symtab, extend its comment.
11976 (breakpoint_free_objfile): New declaration.
11977 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
11978 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
11979 field source_file references by symtab field references.
11980
11981 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11982
11983 Replace xfullpath calls by gdb_realpath calls.
11984 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
11985 function comment.
11986 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
11987 Remove it from the iterate_over_some_symtabs call.
11988 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
11989 Remove it from the dw2_map_expand_apply calls, remove a block handling
11990 it.
11991 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
11992 Remove it from the iterate_over_some_symtabs call.
11993 (partial_map_symtabs_matching_filename): Remove parameter full_path.
11994 Remove it from the partial_map_expand_apply calls, remove a block
11995 handling it. Drop gdb_realpath call and cleanups from the real_path
11996 handling.
11997 * source.c (openp): Drop the comment part about xfullpath. Replace
11998 xfullpath calls by gdb_realpath calls.
11999 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12000 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12001 from method map_symtabs_matching_filename and its comment.
12002 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12003 gdb_realpath call.
12004 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12005 remove it also from the function comment, remove a block handling it.
12006 Drop gdb_realpath call and cleanups from the real_path handling.
12007 (iterate_over_symtabs): Drop variable full_path and its use.
12008 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12009 * utils.c (xfullpath): Remove.
12010 * utils.h (xfullpath): Remove.
12011
12012 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12013
12014 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12015 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12016 (ALLDEPFILES): Add ppc64-tdep.c.
12017 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12018 ppc64-tdep.o to gdb_target_obs.
12019 * ppc64-tdep.h: New file.
12020 * ppc64-tdep.c: New file.
12021 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12022 ppc-linux-tdep.c to here.
12023 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12024 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12025 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12026 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12027 from ppc-linux-tdep.c to here.
12028 (ppc64_convert_from_func_ptr_addr): Rename from
12029 ppc64_linux_convert_from_func_ptr_addr to
12030 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12031 here.
12032 * rs6000-tdep.c:
12033 (read_insn): Move from ppc-linux-tdep.c to here.
12034 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12035 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12036 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12037 Removed above functions.
12038 (ppc_linux_init_abi): Adjust.
12039
12040 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12041
12042 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12043
12044 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12045
12046 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12047
12048 2013-02-01 Pedro Alves <palves@redhat.com>
12049
12050 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12051 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12052
12053 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12054
12055 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12056 files with no separate debug info.
12057 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12058 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12059 only for files with no separate debug info.
12060
12061 2013-01-31 Tom Tromey <tromey@redhat.com>
12062
12063 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12064 change type.
12065 (struct jit_program_space_data): Rename from jit_inferior_data.
12066 Update comments.
12067 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12068 Change return type. Attach data to program space.
12069 (jit_program_space_data_cleanup): Rename from
12070 jit_inferior_data_cleanup; change argument type.
12071 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12072 change type.
12073 (jit_register_code): Update.
12074 (jit_update_inferior_cache): Remove.
12075 (jit_breakpoint_deleted): Get jit data from the location's program
12076 space.
12077 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12078 'ps_data', change type.
12079 (jit_inferior_init, jit_breakpoint_re_set_internal)
12080 (jit_event_handler): Update.
12081 (free_objfile_data): Get data from objfile's program space.
12082 (_initialize_jit): Update.
12083
12084 2013-01-31 Tom Tromey <tromey@redhat.com>
12085
12086 PR gdb/13987:
12087 * jit.c (struct jit_inferior_data) <cached_code_address,
12088 jit_breakpoint>: New fields.
12089 (jit_breakpoint_re_set_internal): Fix logging. Only create
12090 breakpoint if cached address has changed.
12091 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12092 functions.
12093 (_initialize_jit): Register breakpoint deleted observer.
12094
12095 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12096
12097 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12098 (save_infcall_suspend_state): Ifdef out unused inf.
12099 (restore_infcall_suspend_state): Ifdef out unused inf.
12100 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12101 (jit_frame_sniffer): Remove unused inf_data.
12102
12103 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12104
12105 * c-exp.y (classify_inner_name): Remove unused type.
12106 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12107 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12108 need_escape.
12109 (c_get_string): Remove unused kind.
12110 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12111
12112 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12113
12114 * charset.c (intermediate_encoding): Remove unused i.
12115 * completer.c (signal_completer): Remove unused i.
12116 * continuations.c (discard_my_continuations_1): Remove unused
12117 continuation_ptr.
12118 * corelow.c (core_close): Remove unuseD name.
12119 (get_core_siginfo): Remove unused pid.
12120 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12121 i, cps.
12122 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12123 (loclist_describe_location): Remove unused first.
12124 * event-top.c (command_line_handler): Remove unused got_eof.
12125 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12126 (resize_section_table): Remove unused old_value.
12127 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12128 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12129 * i386-tdep.c (i386_process_record): Remove unused rex.
12130 * infcmd.c (get_return_value): Remove unused uiout.
12131 * jv-lang.c (type_from_class): Remove unused is_array.
12132 * jv-valprint.c (java_val_print): Remove unused i.
12133 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12134 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12135 * m2-typeprint.c (m2_print_type): Remove unused code.
12136 * macroexp.c (get_character_constant): Remove unused body_start.
12137 (macro_stringify): Remove unused result.
12138 * objc-lang.c (find_methods): Remove unused gdbarch.
12139 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12140 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12141 * stack.c (print_frame_args): Remove unused summary.
12142 * thread.c (thread_apply_command): Remove unused p.
12143 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12144 * valops.c (search_struct_method): Remove unused skip.
12145 * valprint.c (generic_val_print): Remove unused byte_order.
12146 * varobj.c (varobj_update): Remove unused changed.
12147 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12148 (alias_command): Remove unused c.
12149 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12150 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12151 format.
12152 (mi_cmd_data_write_memory): Remove unused word_format.
12153 (mi_cmd_data_write_memory_bytes): Remove unused r.
12154 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12155 p_start, p_end.
12156 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12157 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12158 line_width.
12159
12160 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12161
12162 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12163 * symtab.c (iterate_over_symtabs): Remove unused s.
12164 (find_pc_sect_symtab): Remove unused pspAce.
12165 (find_pc_sect_line): Remove unused alt_symtab.
12166 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12167 (completion_list_add_name): Remove unused newsize.
12168
12169 2013-01-31 Tom Tromey <tromey@redhat.com>
12170
12171 PR c++/14998:
12172 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12173 TYPE_CODE_FUNC.
12174
12175 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12176
12177 * target.c (target_read_string): Remove unused origlen.
12178
12179 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12180
12181 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12182 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12183 * ax-general.c (ax_print): Remove unused is_float.
12184 * blockframe.c (block_innermost_frame): Remove unused start, end.
12185 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12186
12187 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12188
12189 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12190 (svr4_read_so_list): Remove unused lmo.
12191 * solib-target.c (solib_target_relocate_section_addresses): Remove
12192 unused flags.
12193
12194 2013-01-30 Tom Tromey <tromey@redhat.com>
12195
12196 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12197
12198 2013-01-30 Tom Tromey <tromey@redhat.com>
12199
12200 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12201 * utils.c (gnu_debuglink_crc32): Remove.
12202 * utils.h (gnu_debuglink_crc32): Don't declare.
12203
12204 2013-01-30 Tom Tromey <tromey@redhat.com>
12205
12206 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12207 (read_structure_type, read_enumeration_type): Remove cast.
12208
12209 2013-01-30 Tom Tromey <tromey@redhat.com>
12210
12211 * dwarf2read.c (read_namespace_type): Remove cast.
12212 (read_typedef): Likewise.
12213
12214 2013-01-29 Tom Tromey <tromey@redhat.com>
12215
12216 * dwarf2read.c (free_dwo_file): Remove assert.
12217
12218 2013-01-29 Tom Tromey <tromey@redhat.com>
12219
12220 * value.c (deprecated_set_value_modifiable): Remove.
12221 * value.h (deprecated_set_value_modifiable): Remove.
12222
12223 2013-01-28 Doug Evans <dje@google.com>
12224
12225 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12226 to addresses from dwo files.
12227
12228 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12229
12230 * valops.c (find_overload_match): Remove unused argument 'lax'.
12231 * value.h: Remove unused argument 'lax' from the declaration of
12232 find_overload_match.
12233 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12234 to find_overload_match.
12235 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12236 argument to find_overload_match.
12237
12238 2013-01-25 Tom Tromey <tromey@redhat.com>
12239
12240 * dwarf2read.c (processing_has_namespace_info): Remove.
12241 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12242 (process_die, read_func_scope, dwarf2_start_symtab)
12243 (new_symbol_full): Update.
12244
12245 2013-01-25 Tom Tromey <tromey@redhat.com>
12246
12247 * cp-namespace.c (cp_set_block_scope): Remove.
12248 * cp-support.h (cp_set_block_scope): Remove.
12249 * dbxread.c: Include block.h.
12250 (cp_set_block_scope): New function.
12251 (process_one_symbol): Update.
12252 * dwarf2read.c (read_func_scope): Use block_set_scope.
12253
12254 2013-01-25 Pedro Alves <palves@redhat.com>
12255
12256 * remote.c (add_current_inferior_and_thread): Tweak comment.
12257
12258 2013-01-25 Tom Tromey <tromey@redhat.com>
12259
12260 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12261 (cp_add_using_directive): Add 'copy_names' argument.
12262 * cp-support.h (cp_add_using_directive): Update.
12263 (struct using_direct) <import_src, import_dest, alias,
12264 declaration>: Now const.
12265 * dwarf2read.c (read_import_statement): Use obconcat.
12266 Don't copy names passed to cp_add_using_directive.
12267
12268 2013-01-25 Tom Tromey <tromey@redhat.com>
12269
12270 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12271
12272 2013-01-25 Pedro Alves <palves@redhat.com>
12273
12274 * remote.c (stop_reply_extract_thread): New.
12275 (add_current_inferior_and_thread): New parameter 'wait_status'.
12276 Handle it.
12277 (remote_start_remote): Pass wait status to
12278 add_current_inferior_and_thread.
12279 (extended_remote_run): Update comment.
12280 (extended_remote_create_inferior_1): Pass wait status to
12281 add_current_inferior_and_thread.
12282
12283 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12284 Ulrich Weigand <uweigand@de.ibm.com>
12285
12286 * valarith.c (value_vector_widen): New function for replicating a
12287 scalar into a vector.
12288 (value_binop): Use value_vector_widen to widen scalar to vector
12289 rather than casting, this better matches gcc C behaviour.
12290 * valops.c (value_casst): Update logic for casting between vector
12291 types, and for casting from scalar to vector, try to match gcc C
12292 behaviour.
12293 * value.h (value_vector_widen): Declare.
12294 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12295 function, handle special case for casting scalar to vector.
12296 (opencl_relop): Use opencl_value_cast.
12297 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12298 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12299 in order to use opencl_value_cast.
12300
12301 2013-01-25 Yao Qi <yao@codesourcery.com>
12302
12303 * event-loop.c: Include "queue.h".
12304 (gdb_event_p): New typedef.
12305 (DECLARE_QUEUE_P): Use.
12306 (DEFINE_QUEUE_P): Use.
12307 (async_queue_event): Remove.
12308 (gdb_event_xfree): New.
12309 (initialize_event_loop): New.
12310 (process_event): Use QUEUE macros.
12311 (event_queue): Remove.
12312 (gdb_wait_for_event): Caller update.
12313 (check_async_event_handlers): Likewise.
12314 (poll_timers): Likewise.
12315 * event-loop.h (initialize_event_loop): Declare.
12316 * event-loop.c (gdb_event_xfree): New.
12317 * top.c (gdb_init): Call initialize_event_loop.
12318
12319 2013-01-25 Yao Qi <yao@codesourcery.com>
12320
12321 * event-loop.c (async_queue_event): Remove one parameter
12322 'position'. Remove code handling 'position' == TAIL.
12323 (gdb_wait_for_event): Caller update.
12324 (check_async_event_handlers): Caller update.
12325 (poll_timers): Caller update.
12326 * event-loop.h (enum queue_position): Remove.
12327
12328 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12329
12330 * MAINTAINERS: Update my email.
12331
12332 2013-01-25 Yao Qi <yao@codesourcery.com>
12333
12334 * main.c (print_gdb_help): Remove "--epoch" from the help
12335 message.
12336
12337 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12338
12339 * symtab.c (skip_prologue_using_sal): Consider a file
12340 change the same as an increased line number
12341
12342 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12343
12344 * MAINTAINERS (Write After Approval): Add myself to the list.
12345
12346 2013-01-24 Tom Tromey <tromey@redhat.com>
12347
12348 * ada-lang.h (ada_decode_symbol): Make return type const.
12349 * ada-lang.c (ada_decode_symbol): Likewise.
12350
12351 2013-01-23 Doug Evans <dje@google.com>
12352
12353 * linespec.c (find_linespec_symbols): Make static.
12354
12355 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12356
12357 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12358 type on float conversion for complex type.
12359
12360 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12361
12362 Add a new class gdb.Architecture which exposes GDB's
12363 internal representation of architecture via GDB Python API.
12364 * Makefile.in: Add entries corresponding to the new file
12365 python/py-arch.c.
12366 * NEWS (Python Scripting): Add entries for the new class
12367 gdb.Architecture and the new method gdb.Frame.architecture.
12368 * python/py-arch.c: Implement gdb.Architecture class.
12369 * python/py-frame.c (frapy_arch): Implement the method
12370 gdb.Frame.architecture().
12371 (frame_object_methods): Add 'architecture' to the method table.
12372 * python/python-internal.h: Add declarations of new utility
12373 functions.
12374 * python/python.c (_initialize_python): Initialize
12375 gdb.Architecture class.
12376
12377 2013-01-23 Doug Evans <dje@google.com>
12378
12379 Work around binutils/15021.
12380 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12381 type_unit_group out of union s. All uses updated.
12382 (read_index_from_section): Watch for index version 8.
12383 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12384 an imported symtab.
12385 (write_psymtabs_to_index): Increment version number to 8.
12386
12387 2013-01-22 Pedro Alves <palves@redhat.com>
12388
12389 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12390 user-visible.
12391
12392 2013-01-22 Pedro Alves <palves@redhat.com>
12393
12394 * annotate.c (annotate_breakpoints_changed): Rename to ...
12395 (annotate_breakpoints_invalid): ... this. Make static.
12396 (breakpoint_changed): Adjust.
12397 (_initialize_annotate): Always install the observers. Install a
12398 "breakpoint_created" observer.
12399 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12400 * breakpoint.c (set_breakpoint_condition)
12401 (breakpoint_set_commands, do_map_commands_command)
12402 (init_raw_breakpoint, clear_command, set_ignore_count)
12403 (enable_breakpoint_disp): No longer call
12404 annotate_breakpoints_changed.
12405
12406 2013-01-22 Pedro Alves <palves@redhat.com>
12407
12408 * annotate.c: Include "inferior.h".
12409 (frames_invalid_emitted)
12410 (breakpoints_invalid_emitted): New globals.
12411 (async_background_execution_p): New function.
12412 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12413 emitting the annotation if it has already been emitted.
12414 (annotate_display_prompt): New function.
12415 * annotate.h (annotate_display_prompt): New declaration.
12416 * event-top.c: Include annotate.h.
12417 (display_gdb_prompt): Call annotate_display_prompt.
12418
12419 2013-01-22 Pedro Alves <palves@redhat.com>
12420
12421 * annotate.c (ignore_count_changed): Delete.
12422 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12423 (annotate_ignore_count_change): Delete.
12424 (annotate_stopped): Don't emit a delayed breakpoints-changed
12425 annotation.
12426 * annotate.h (annotate_ignore_count_change): Delete.
12427 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12428 annotate_ignore_count_change.
12429
12430 2013-01-22 Tom Tromey <tromey@redhat.com>
12431
12432 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12433 require_rvalue for a register location.
12434
12435 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12436
12437 * breakpoint.c (print_one_breakpoint_location): Add MI
12438 field 'thread-groups' when printing a breakpoint.
12439 (output_thread_groups): New function.
12440
12441 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12442
12443 * python/lib/gdb/commands/explore.py
12444 (CompoundExplorer.explore_expr): Correct the name of a method
12445 being invoked.
12446 (ExploreTypeCommand.invoke): Add a missing 'return'.
12447
12448 2013-01-21 Tom Tromey <tromey@redhat.com>
12449
12450 * gdb_obstack.h (obconcat): Move declaration here, from...
12451 * symfile.h (obconcat): ... here.
12452 * gdb_obstack.c: New file.
12453 (obconcat): Move from...
12454 * symfile.c (obconcat): ... here.
12455 * Makefile.in (SFILES): Add gdb_obstack.c.
12456 (COMMON_OBS): Add gdb_obstack.o.
12457
12458 2013-01-21 Tom Tromey <tromey@redhat.com>
12459
12460 * symfile.h (obsavestring): Don't declare.
12461 * symfile.c (obsavestring): Remove.
12462 * ada-exp.y: Use obstack_copy0, not obsavestring.
12463 * ada-lang.c: Use obstack_copy0, not obsavestring.
12464 * coffread.c: Use obstack_copy0, not obsavestring.
12465 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12466 * dbxread.c: Use obstack_copy0, not obsavestring.
12467 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12468 * jit.c: Use obstack_copy0, not obsavestring.
12469 * mdebugread.c: Use obstack_copy0, not obsavestring.
12470 * psymtab.c: Use obstack_copy0, not obsavestring.
12471 * stabsread.c: Use obstack_copy0, not obsavestring.
12472 * xcoffread.c: Use obstack_copy0, not obsavestring.
12473
12474 2013-01-21 Tom Tromey <tromey@redhat.com>
12475
12476 * dwarf2read.c (fixup_go_packaging): Save package name
12477 on objfile obstack.
12478 * gdbtypes.c (init_type): Don't copy name.
12479
12480 2013-01-21 Tom Tromey <tromey@redhat.com>
12481
12482 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12483 const.
12484 (struct attribute) <u.str>: Now const.
12485 (struct fnfieldlist) <name>: Now const.
12486 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12487 (partial_die_parent_scope): Make return type const.
12488 (partial_die_full_name, add_partial_symbol): Update.
12489 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12490 'name' const.
12491 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12492 (read_file_scope, read_func_scope, dwarf2_add_field)
12493 (dwarf2_add_member_fn, read_structure_type)
12494 (process_enumeration_scope, read_array_type, read_module_type)
12495 (read_base_type, read_subrange_type): Update.
12496 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12497 (new_symbol_full, guess_full_die_structure_name): Update.
12498 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12499 (dwarf2_name): Return const type.
12500 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12501 const.
12502
12503 2013-01-21 Tom Tromey <tromey@redhat.com>
12504
12505 * gdbtypes.c (init_type): Make 'name' const.
12506 * gdbtypes.h (init_type): Update.
12507
12508 2013-01-21 Tom Tromey <tromey@redhat.com>
12509
12510 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12511 (start_symtab): Make 'name' and 'dirname' const. Use
12512 set_last_source_file.
12513 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12514 (last_source_file): Define. Now static.
12515 (set_last_source_file, get_last_source_file): New functions.
12516 * buildsym.h (last_source_file): Don't declare.
12517 (start_symtab): Update.
12518 (set_last_source_file, get_last_source_file): Declare.
12519 * coffread.c (complete_symtab): Use set_last_source_file.
12520 (coff_end_symtab): Likewise.
12521 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12522 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12523 set_last_source_file.
12524 (process_one_symbol): Use get_last_source_file.
12525 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12526 (psymtab_to_symtab_1): Use get_last_source_file.
12527 * xcoffread.c (process_linenos): Use get_last_source_file.
12528 (complete_symtab): Use set_last_source_file.
12529 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12530 (scan_xcoff_symtab): Use set_last_source_file.
12531
12532 2013-01-21 Tom Tromey <tromey@redhat.com>
12533
12534 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12535 (symbol_set_names): Remove casts. Handle field const-ness.
12536
12537 2013-01-21 Tom Tromey <tromey@redhat.com>
12538
12539 * dwarf2read.c (new_symbol_full): Remove cast.
12540 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12541 * symtab.h (symbol_set_demangled_name): Update.
12542
12543 2013-01-21 Tom Tromey <tromey@redhat.com>
12544
12545 * main.c (captured_main): Call bfd_init.
12546
12547 2013-01-21 Tom Tromey <tromey@redhat.com>
12548
12549 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12550 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12551 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12552 * NEWS: Update.
12553
12554 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12555
12556 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12557
12558 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12559
12560 Fix gdb.fortran/common-block.exp crash in PIE mode.
12561 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12562 LOC_COMMON_BLOCK.
12563 * f-valprint.c (info_common_command_for_block): Expect
12564 LOC_COMMON_BLOCK in gdb_assert.
12565 * symtab.h (struct general_symbol_info): Update comment for the
12566 common_block member.
12567 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12568 (enum address_class): New member LOC_COMMON_BLOCK.
12569
12570 2013-01-18 David Blaikie <dblaikie@gmail.com>
12571
12572 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12573
12574 2013-01-18 Tom Tromey <tromey@redhat.com>
12575
12576 PR c++/14999:
12577 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12578 Call require_rvalue.
12579
12580 2013-01-18 Yao Qi <yao@codesourcery.com>
12581
12582 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12583 (dbx_read_symtab): New declaration.
12584 (dbx_psymtab_to_symtab): Delete.
12585 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12586 Rename parameter PST to SELF. Exchanged two parameters.
12587 (start_psymtab): Caller update.
12588 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12589 (dwarf2_read_symtab): New declaration.
12590 (dwarf2_psymtab_to_symtab): Delete.
12591 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12592 Rename parameter PST to SELF. Exchanged two parameters.
12593 (create_partial_symtab): Caller update.
12594 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12595 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12596 Rename parameter PST to SELF. Exchanged two parameters.
12597 (parse_partial_symbols, new_psymtab): Caller update.
12598 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12599 two parameters.
12600 * psymtab.c (psymtab_to_symtab): Caller update.
12601 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12602 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12603 Rename parameter PST to SELF. Exchanged two parameters.
12604 (xcoff_start_psymtab): Caller update.
12605
12606 2013-01-18 Yao Qi <yao@codesourcery.com>
12607
12608 * infrun.c (proceed): Rename local variable 'oneproc' to
12609 'force_step'.
12610
12611 2013-01-17 Doug Evans <dje@google.com>
12612
12613 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12614 (dw2_build_type_unit_groups): Delete. All uses updated.
12615
12616 * symtab.h (struct symbol_search): Add comment.
12617
12618 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12619
12620 * symtab.c (compare_filenames_for_search): New comment for
12621 HAS_DRIVE_SPEC.
12622
12623 2013-01-17 Tom Tromey <tromey@redhat.com>
12624
12625 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12626
12627 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12628
12629 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12630 initialize it by existing make_cleanup. Call new do_cleanups.
12631
12632 2013-01-17 Tom Tromey <tromey@redhat.com>
12633
12634 * cp-abi.c (cp_abi_completer): New function.
12635 (_initialize_cp_abi): Set completer for "set cp-abi".
12636
12637 2013-01-17 Tom Tromey <tromey@redhat.com>
12638
12639 * mem-break.c: Remove obsolete comment.
12640 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12641
12642 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12643
12644 * jit.c (jit_reader_load_command): Interpret the jit reader name
12645 as an absolute path if it begins with a forward slash.
12646
12647 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12648
12649 PR gdb/14550
12650
12651 * jit.c (finalize_symtab): Ensure that only the global block has a
12652 NULL superblock.
12653
12654 2013-01-17 Pedro Alves <palves@redhat.com>
12655
12656 * acinclude.m4: Include ../config/plugins.m4,
12657 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12658 * Makefile.in (aclocal_m4_deps): Update.
12659 * aclocal.m4: Renegerate.
12660
12661 2013-01-16 Doug Evans <dje@google.com>
12662
12663 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12664
12665 2013-01-16 Pedro Alves <palves@redhat.com>
12666 Tom Tromey <tromey@redhat.com>
12667
12668 PR cli/7221:
12669 * NEWS: Add "catch signal".
12670 * breakpoint.c (base_breakpoint_ops): No longer static.
12671 (bpstat_explains_signal): New function.
12672 (init_catchpoint): No longer static.
12673 (base_breakpoint_explains_signal): New function.
12674 (base_breakpoint_ops): Initialize new field.
12675 * breakpoint.h (enum bpstat_signal_value): New.
12676 (struct breakpoint_ops) <explains_signal>: New field.
12677 (bpstat_explains_signal): Remove macro, declare as function.
12678 (base_breakpoint_ops, init_catchpoint): Declare.
12679 * break-catch-sig.c: New file.
12680 * inferior.h (signal_catch_update): Declare.
12681 * infrun.c (signal_catch): New global.
12682 (handle_syscall_event): Update for change to
12683 bpstat_explains_signal.
12684 (handle_inferior_event): Likewise. Always handle random signals
12685 via bpstats.
12686 (signal_cache_update): Check signal_catch.
12687 (signal_catch_update): New function.
12688 (_initialize_infrun): Initialize signal_catch.
12689 * Makefile.in (SFILES): Add break-catch-sig.c.
12690 (COMMON_OBS): Add break-catch-sig.o.
12691
12692 2013-01-16 Tom Tromey <tromey@redhat.com>
12693
12694 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12695 (print_one_catch_solib, print_one_catch_syscall)
12696 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12697 "catch-type".
12698
12699 2013-01-16 Yao Qi <yao@codesourcery.com>
12700
12701 * printcmd.c (current_display_number): Make it static.
12702
12703 2013-01-16 Yao Qi <yao@codesourcery.com>
12704
12705 * infcmd.c (step_once): Don't check '!single_inst' as it was
12706 checked before.
12707
12708 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12709
12710 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12711
12712 2013-01-14 Tom Tromey <tromey@redhat.com>
12713
12714 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12715 set command.
12716 * command.h (add_setshow_string_noescape_cmd): Update.
12717 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12718 (complete_set_gnutarget): New function.
12719 (_initialize_core): Set the "set gnutarget" completer.
12720
12721 2013-01-14 Tom Tromey <tromey@redhat.com>
12722
12723 PR symtab/14442:
12724 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12725 (c_type_print_modifier): Likewise.
12726 * dwarf2read.c (read_tag_restrict_type): New function.
12727 (read_type_die_1): Handle DW_TAG_restrict_type.
12728 * gdbtypes.c (make_restrict_type): New function.
12729 (recursive_dump_type): Handle TYPE_RESTRICT.
12730 * gdbtypes.h (enum type_flag_values): Renumber.
12731 (enum type_instance_flag_value): Add
12732 TYPE_INSTANCE_FLAG_RESTRICT.
12733 (TYPE_RESTRICT): New macro.
12734 (make_restrict_type): Declare.
12735
12736 2013-01-14 Tom Tromey <tromey@redhat.com>
12737
12738 PR symtab/14931:
12739 * psymtab.c (struct psymtab_state): New.
12740 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12741 functions.
12742 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12743 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12744
12745 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12746 Pedro Alves <palves@redhat.com>
12747
12748 PR remote/14786
12749
12750 * remote.c (remote_threads_info): Make a copy of the reply from
12751 qfThreadInfo and use that instead of rs->buf.
12752
12753 2013-01-14 Yao Qi <yao@codesourcery.com>
12754
12755 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12756 (dbx_psymtab_to_symtab): Likewise.
12757 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12758 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12759 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12760
12761 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12762
12763 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12764 make_cleanup_restore_current_language. Call set_language. Move
12765 OLD_CHAIN and INNER_CHAIN cleanups.
12766 * utils.c (do_restore_current_language)
12767 (make_cleanup_restore_current_language): New functions.
12768 * utils.h (make_cleanup_restore_current_language): New declaration.
12769
12770 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12771
12772 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12773 non-existing files.
12774
12775 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12776 non-existing files if FILENAME is already absolute.
12777
12778 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12779
12780 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12781 fputs_filtered. Append trailing newline.
12782
12783 2013-01-11 Yao Qi <yao@codesourcery.com>
12784 Stan Shebs <stan@codesourcery.com>
12785
12786 * psymtab.c (init_psymbol_list): Clarify the comment.
12787
12788 2013-01-11 Yao Qi <yao@codesourcery.com>
12789
12790 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12791 (update_dprintf_command_list): Assert that 'printf_line' is
12792 non-null. Remove condition check.
12793
12794 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12795
12796 Code cleanup.
12797 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12798 type const char *.
12799 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12800 const char *.
12801 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12802
12803 2013-01-09 Anthony Green <green@moxielogic.com>
12804
12805 * cp-abi.c (cplus_print_vtable): Don't return value from void
12806 function.
12807 * ada-lang.c (re_set_catch_assert): Ditto.
12808
12809 2013-01-09 Doug Evans <dje@google.com>
12810
12811 * symfile.h (quick_symbol_functions): Delete member
12812 pre_expand_symtabs_matching. All uses removed.
12813 * dwarf2read.c (dw2_lookup_symbol): Implement.
12814 (dw2_do_expand_symtabs_matching): Delete.
12815 (dw2_pre_expand_symtabs_matching): Delete.
12816 (struct dw2_symtab_iterator): New type.
12817 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12818 (dw2_expand_symtabs_for_function): Rewrite.
12819 (dwarf2_gdb_index_functions): Update.
12820 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12821 (psym_functions): Update.
12822
12823 2013-01-09 Tom Tromey <tromey@redhat.com>
12824
12825 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12826 * configure: Rebuild.
12827 * configure.ac: Add somread.o to the build if BFD has SOM
12828 support.
12829 * somread.c: Include som/aout.h, not syms.h.
12830 (som_symtab_read): Use som_external_symbol_dictionary_record.
12831 Unpack records manually.
12832 (_initialize_somread): Declare.
12833
12834 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12835
12836 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12837 Cast return_address to 64bits.
12838
12839 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12840
12841 * printcmd.c: Remove define of function output_command.
12842 * tracepoint.c: Remove extern of function output_command.
12843 * valprint.h: (output_command): New extern.
12844
12845 2013-01-07 Tom Tromey <tromey@redhat.com>
12846
12847 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12848 Remove.
12849 (objc_language_defn): Use c_printchar, c_printstr,
12850 c_emit_char.
12851
12852 2013-01-07 Tom Tromey <tromey@redhat.com>
12853
12854 PR cli/7719:
12855 * NEWS: Update.
12856 * ada-valprint.c (printstr, print_field_values): Remove
12857 "inspect_it" code.
12858 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12859 code.
12860 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12861 code.
12862 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12863 * main.c (captured_main): Remove "epoch" argument.
12864 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12865 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12866 * p-valprint.c (pascal_object_print_value_fields): Remove
12867 "inspect_it" code.
12868 * printcmd.c (print_command_1): Remove 'inspect' argument.
12869 (print_command, call_command): Update.
12870 (inspect_command): Remove.
12871 (_initialize_printcmd): Make "inspect" an alias for "print".
12872 * top.c (epoch_interface): Remove.
12873 * top.h (epoch_interface): Remove.
12874 * valprint.c (user_print_options): Update.
12875 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12876 * valprint.h (struct value_print_options) <inspect_it>: Remove
12877 field.
12878
12879 2013-01-04 Tom Tromey <tromey@redhat.com>
12880
12881 * valprint.h (read_string): Add 'extern'.
12882
12883 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12884
12885 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12886 used to decide whether to define darwin_read_dyld_info or not.
12887
12888 2013-01-03 Pierre Muller <muller@sourceware.org>
12889
12890 * main.c (relocate_gdb_directory): Avoid calling stat function
12891 if DIR is empty.
12892
12893 2013-01-03 Yao Qi <yao@codesourcery.com>
12894
12895 * psymtab.c (fixup_psymbol_section): Update declaration.
12896 (fixup_psymbol_section): Remove code returning value.
12897
12898 2013-01-03 Yao Qi <yao@codesourcery.com>
12899
12900 * symtab.h: Remove some out of date comments.
12901 (enum exception_event_kind): Move it ...
12902 * breakpoint.c: ... here.
12903
12904 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
12905
12906 PR gdb/14405
12907 * darwin-nat.c (darwin_read_dyld_info): Only build if
12908 TASK_DYLD_INFO_COUNT is defined.
12909 (darwin_xfer_partial): Call darwin_read_dyld_info only if
12910 TASK_DYLD_INFO_COUNT is defined.
12911
12912 2013-01-02 Tom Tromey <tromey@redhat.com>
12913
12914 * symfile.h (struct ecoff_debug_hack): Remove.
12915 * objfiles.c: Don't include mdebugread.h.
12916
12917 2013-01-02 Tom Tromey <tromey@redhat.com>
12918
12919 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
12920 * configure.ac: Check for Mach-O support in BFD. Update
12921 CONFIG_OBS.
12922 * configure: Rebuild.
12923
12924 2013-01-02 Tom Tromey <tromey@redhat.com>
12925
12926 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
12927 * configure.ac: Use GDB_AC_CHECK_BFD.
12928 * configure: Rebuild.
12929
12930 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
12931
12932 * MAINTAINERS: Update my email.
12933
12934 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12935
12936 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
12937
12938 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12939
12940 * rs6000-nat.c (bss_data_overlap): New function.
12941 (vmap_symtab): Use it to adjust the .bss section's offset.
12942
12943 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12944
12945 Update year range in copyright notice of all files.
12946
12947 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
12948
12949 * top.c (print_gdb_version): Update copyright year.
12950
12951 For older changes see ChangeLog-2012.
12952 \f
12953 Local Variables:
12954 mode: change-log
12955 left-margin: 8
12956 fill-column: 74
12957 version-control: never
12958 coding: utf-8
12959 End:
This page took 0.295668 seconds and 5 git commands to generate.