911131410a17060dd435bb986c696cb177cc13c3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
2 Pedro Alves <palves@redhat.com>
3
4 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
5 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
6 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
7 * spu-tdep.c (spu_software_single_step): Throw
8 OPTIMIZED_OUT_ERROR.
9 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
10
11 2013-12-06 Tom Tromey <tromey@redhat.com>
12
13 * objfiles.c (free_objfile): Update comment.
14
15 2013-12-06 Tom Tromey <tromey@redhat.com>
16
17 * objfiles.h (objfile_to_front): Remove.
18 * objfiles.c (objfile_to_front): Remove.
19
20 2013-12-06 Tom Tromey <tromey@redhat.com>
21
22 * minsyms.c (get_symbol_leading_char): Remove unnecessary
23 declaration.
24
25 2013-12-06 Tom Tromey <tromey@redhat.com>
26
27 * psympriv.h (struct partial_symtab) <user>: Move earlier.
28
29 2013-12-06 Tom Tromey <tromey@redhat.com>
30
31 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
32 (list_command): Likewise.
33
34 2013-12-06 Tom Tromey <tromey@redhat.com>
35
36 * psymtab.c (allocate_psymtab): Put the filename in the filename
37 bcache.
38
39 2013-12-06 Tom Tromey <tromey@redhat.com>
40
41 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
42 * symtab.h (struct symtab) <dirname>: Now const.
43
44 2013-12-06 Tom Tromey <tromey@redhat.com>
45
46 * symfile.c (allocate_symtab): Remove cast.
47 * symtab.h (struct symtab) <filename>: Now const.
48
49 2013-12-06 Tom Tromey <tromey@redhat.com>
50
51 * break-catch-throw.c (fetch_probe_arguments): Use
52 get_probe_argument_count and evaluate_probe_argument.
53 * elfread.c (elf_get_probe_argument_count)
54 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
55 (elf_compile_to_ax): Remove.
56 (elf_probe_fns): Update.
57 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
58 (evaluate_probe_argument): Call method on probe, not via sym
59 functions.
60 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
61 evaluate_probe_argument.
62 (compile_probe_arg): Use get_probe_argument_count. Call method on
63 probe, not via sym functions.
64 * symfile-debug.c (debug_sym_get_probe_argument_count)
65 (debug_can_evaluate_probe_arguments)
66 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
67 Remove.
68 (debug_sym_probe_fns): Remove.
69 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
70 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
71 sym_compile_to_ax>: Remove fields.
72
73 2013-12-06 Pierre Muller <muller@sourceware.org>
74
75 Fix completion for pascal language.
76 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
77 (exp : field_exp name COMPLETE): New rule.
78 (exp : SIZEOF): Set correct current_type.
79 (last_was_structop): Remove static variable.
80 (yylex): Remove saw_structop local variable.
81 Adapt code to removal of variables above.
82
83 2013-12-06 Joel Brobecker <brobecker@adacore.com>
84
85 * frame.c (get_prev_frame_1): Delete variable "this_id".
86 Replace its use by a call to get_frame_id.
87
88 2013-12-05 Anthony Green <green@moxielogic.com>
89
90 * moxie-tdep.c (moxie_software_single_step): New function.
91 (INST2OFFSET): New helper macro.
92 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
93 (moxie_process_readu): Move this up in the file.
94
95 2013-12-05 Doug Evans <xdje42@gmail.com>
96
97 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
98
99 2013-12-05 Joel Brobecker <brobecker@adacore.com>
100 Tristan Gingold <gingold@adacore.com>
101
102 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
103 Accept version 2. Ignore operations using opcode 6.
104
105 2013-12-05 Joel Brobecker <brobecker@adacore.com>
106
107 * ada-lex.l (find_dot_all): Fix coding style violations.
108
109 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
110
111 * NEWS: Add section for Intel(R) Architecture Instructions
112 Extesions mentioning MPX.
113
114 2013-12-03 Joel Brobecker <brobecker@adacore.com>
115
116 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
117
118 2013-12-03 Joel Brobecker <brobecker@adacore.com>
119
120 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
121 when parse_exp_1 threw an error. Add comment.
122
123 2013-12-03 Joel Brobecker <brobecker@adacore.com>
124
125 * NEWS: Mention "-list-features" in the entry documenting
126 the support for the "--language" option.
127
128 2013-12-03 Tom Tromey <tromey@redhat.com>
129 Jan Kratochvil <jan.kratochvil@redhat.com>
130 Doug Evans <dje@google.com>
131 Samuel Bronson <naesten@gmail.com>
132
133 Bring back gdb-add-index as a contrib script.
134 * contrib/gdb-add-index.sh: New file.
135 * NEWS: Note the addition.
136
137 2013-12-03 Samuel Bronson <naesten@gmail.com>
138
139 * MAINTAINERS (Write After Approval): Add myself to the list.
140
141 2013-12-03 Joel Brobecker <brobecker@adacore.com>
142
143 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
144
145 2013-12-03 Joel Brobecker <brobecker@adacore.com>
146
147 * mi/mi-main.c: Remove trailing spaces throughout.
148
149 2013-12-03 Pedro Alves <palves@redhat.com>
150 Joel Brobecker <brobecker@adacore.com>
151
152 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
153 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
154 of a regular error when the GDB/MI command does not exist.
155 * mi/mi-main.c (mi_cmd_list_features): Add
156 "undefined-command-error-code".
157 (mi_print_exception): Print an "undefined-command"
158 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
159 * NEWS: Add entry documenting the new "code" variable in
160 "^error" result records.
161
162 2013-12-03 Joel Brobecker <brobecker@adacore.com>
163
164 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
165 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
166 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
167 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
168 field to output of "-list-features".
169
170 * NEWS: Add entry for new -info-gdb-mi-command.
171
172 2013-12-02 Doug Evans <dje@google.com>
173 Jan Kratochvil <jan.kratochvil@redhat.com>
174
175 * objfiles.c (allocate_objfile): Save original_name as an absolute
176 path.
177 * objfiles.h (struct objfile): Expand comment on original_name.
178 * source.c (openp): Call gdb_abspath.
179 * utils.c (gdb_abspath): New function.
180 * utils.h (gdb_abspath): Declare.
181
182 2013-12-02 Pedro Alves <palves@redhat.com>
183
184 * dcache.c (dcache_read_line): Use target_read_raw_memory.
185 * target.c (target_read_raw_memory): New function.
186 (target_read_stack, target_write_memory, target_write_raw_memory):
187 Update comment.
188 (target_read_code): Add comment.
189 * target.h (target_read_raw_memory): Declare.
190
191 2013-12-02 Pedro Alves <palves@redhat.com>
192
193 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
194 unconditionally.
195
196 2013-12-02 Pedro Alves <pedro@codesourcery.com>
197 Maciej W. Rozycki <macro@codesourcery.com>
198
199 * remote.c (putpkt_for_catch_errors): Remove function.
200 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
201 gracefully.
202
203 2013-12-02 Pedro Alves <palves@redhat.com>
204
205 PR remote/15974
206 * remote-notif.c (handle_notification): Return early if no
207 notification is found.
208
209 2013-12-02 Joel Brobecker <brobecker@adacore.com>
210
211 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
212 preprocessor check.
213
214 2013-12-02 Joel Brobecker <brobecker@adacore.com>
215
216 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
217
218 2013-12-02 Joel Brobecker <brobecker@adacore.com>
219
220 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
221 * ctf.c (ctf_start): Remove obsolete comment.
222
223 2013-12-02 Joel Brobecker <brobecker@adacore.com>
224
225 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
226
227 2013-11-30 Doug Evans <xdje42@gmail.com>
228
229 * auto-load.h (script_language): New members name, auto_load_enabled.
230 Add missing comments on struct members.
231 (auto_load_objfile_script): Delete.
232 * auto-load.c: #include "cli/cli-cmds.h".
233 (auto_load_gdb_scripts_enabled): New function.
234 (script_language_gdb): Update, add new members.
235 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
236 and call to maybe_add_script moved to caller.
237 (auto_load_objfile_script_1): Auto-load safe-checking and
238 call to maybe_add_script moved here.
239 (auto_load_objfile_script): Make static. Early exit if support for
240 scripting language hasn't been compiled in, or auto-loading has been
241 disabled.
242 (source_section_scripts): Argument "source_name" renamed to
243 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
244 with section_name. Skip loading script if support for scripting
245 language hasn't been compiled in, or auto-loading has been disabled.
246 Call language->source_script_for_objfile instead of calling
247 source_python_script_for_objfile directly.
248 (load_auto_scripts_for_objfile): Update.
249 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
250 (gdbpy_load_auto_script_for_objfile): Delete.
251 (auto_load_python_scripts_enabled): New function.
252 (script_language_python): Update, add new members.
253 (gdbpy_script_language_defn): New function.
254 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
255 (gdbpy_script_language_defn): Declare.
256
257 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
258 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
259 (source_section_scripts): Moved here from py-auto-load.c.
260 (auto_load_section_scripts): Ditto.
261 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
262 auto-load.c, renamed AUTO_SECTION_NAME.
263 (source_section_scripts, auto_load_section_scripts): Moved to
264 auto-load.c.
265
266 2013-11-30 Yao Qi <yao@codesourcery.com>
267
268 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
269
270 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
271
272 * gdbarch.sh: Remove include of "gdb_string.h", replace by
273 <string.h>.
274
275 2013-11-29 Doug Evans <xdje42@gmail.com>
276
277 * python/py-auto-load.c (source_section_scripts): Move comment to
278 more relevant location.
279
280 Whitespace cleanup.
281 * python/py-breakpoint.c: Remove trailing whitespace.
282 * python/py-cmd.c: Ditto.
283 * python/py-evts.c: Ditto.
284 * python/py-finishbreakpoint.c: Ditto.
285 * python/py-frame.c: Ditto.
286 * python/py-function.c: Ditto.
287 * python/py-inferior.c: Ditto.
288 * python/py-infthread.c: Ditto.
289 * python/py-param.c: Ditto.
290 * python/py-prettyprint.c: Ditto.
291 * python/py-symbol.c: Ditto.
292 * python/py-type.c: Ditto.
293 * python/py-utils.c: Ditto.
294 * python/py-value.c: Ditto.
295 * python/python-internal.h: Ditto.
296 * python/python.c: Ditto.
297
298 2013-11-29 Pedro Alves <palves@redhat.com>
299
300 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
301
302 2013-11-29 Pedro Alves <palves@redhat.com>
303
304 * breakpoint.c (build_target_condition_list): Release previous
305 conditions.
306 (build_target_command_list): Release previous commands.
307 (bp_location_dtor): Release target conditions and commands.
308 * remote.c (remote_add_target_side_condition): Don't release
309 conditions.
310 (remote_add_target_side_commands): Don't release commands.
311
312 2013-11-29 Yao Qi <yao@codesourcery.com>
313 Pedro Alves <palves@redhat.com>
314
315 * dcache.c (dcache_read_line): Use current_target.beneath
316 instead of &current_target.
317 * target.c (memory_xfer_partial_1): Factor code out to ...
318 (raw_memory_xfer_partial): ... it. New function.
319 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
320 is TARGET_OBJECT_RAW_MEMORY.
321
322 2013-11-28 Doug Evans <xdje42@gmail.com>
323
324 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
325 breakpoint_object. All uses updated.
326 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
327 breakpoint_object. All uses updated.
328 * python.c (*): All uses of breakpoint_object updated.
329 * python.h (*): All uses of breakpoint_object updated.
330 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
331 * python/py-finishbreakpoint.c (*): Ditto.
332
333 2013-11-28 Doug Evans <xdje42@gmail.com>
334
335 * configure.ac: Add comments delineating libpython and libmcheck.
336 * configure: Regenerate.
337
338 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
339 Pedro Alves <palves@redhat.com>
340
341 * valprint.c (value_check_printable): If the value is entirely
342 unavailable, print a single "<unavailable>" instead of printing
343 all subfields.
344
345 2013-11-28 Pedro Alves <palves@redhat.com>
346
347 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
348 Add "set debug frame" output.
349 (frame_stop_reason_symbol_string): New function.
350
351 2013-11-28 Pedro Alves <palves@redhat.com>
352
353 * frame-unwind.c (default_frame_unwind_stop_reason): Return
354 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
355 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
356
357 2013-11-28 Pedro Alves <palves@redhat.com>
358
359 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
360 set the unwind stop reason to UNWIND_OUTERMOST, not
361 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
362
363 2013-11-28 Pedro Alves <palves@redhat.com>
364
365 * frame.c (frame_unwind_register): Say the register was "not
366 saved" instead of "optimized out".
367
368 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
369
370 PR 16152
371 * configure: Rebuild.
372 * configure.ac: Tighten cygwin detection check.
373
374 2013-11-27 Pedro Alves <palves@redhat.com>
375
376 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
377 register in the previous frame's arch.
378
379 2013-11-27 Pedro Alves <palves@redhat.com>
380
381 * frame-unwind.c (frame_unwind_got_optimized): Return
382 an lval_register value instead of a not_lval value.
383
384 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
385
386 * frame.c: Include "valprint.h".
387 (frame_unwind_register_value): Use value_optimized_out.
388 * value.c (value_fetch_lazy): Likewise.
389
390 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
391
392 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
393
394 2013-11-26 Tom Tromey <tromey@redhat.com>
395
396 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
397 2013-11-22.
398
399 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
400
401 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
402 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
403 (HAS_MPX): New macro.
404 (HAS_AVX): New macro.
405 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
406
407 2013-11-25 Keith Seitz <keiths@redhat.com>
408
409 PR c++/14819
410 * c-exp.y (classify_inner_name): If no matching symbol was
411 found, try looking up the token as a base class.
412 Likewise if a constructor was found.
413 * cp-namespace.c (find_type_baseclass_by_name): New function.
414 * cp-support.h (find_type_baseclass_by_name): Declare.
415 * valops.c (value_struct_elt_for_reference): If we get
416 a non-static field, try to get a value based on the
417 current instance, if any.
418
419 2013-11-24 Yao Qi <yao@codesourcery.com>
420
421 * disasm.c (dis_asm_read_memory): Call target_read_code
422 instead of target_read_memory.
423
424 2013-11-24 Yao Qi <yao@codesourcery.com>
425
426 * NEWS: Add note on new "set code-cache" option.
427 * target-dcache.c (code_cache_enabled_1): New variable.
428 (code_cache_enabled): New variable.
429 (show_code_cache, set_code_cache): New function.
430 (code_cache_enabled_p): New function.
431 (_initialize_target_dcache): Register command.
432 * target-dcache.h (code_cache_enabled_p): Declare.
433 * target.c (memory_xfer_partial_1):Handle
434 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
435 (target_read_code): New function.
436 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
437 New.
438 (target_read_code): Declare.
439
440 2013-11-24 Yao Qi <yao@codesourcery.com>
441
442 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
443 (stack_cache_enabled_1): ... this. New variable.
444 (stack_cache_enabled_p): Rename to ...
445 (stack_cache_enabled): ... this. New variable.
446 (set_stack_cache_enabled_p): Rename to ...
447 (set_stack_cache): ... this. Update caller.
448 (show_stack_cache_enabled_p): Rename to ...
449 (show_stack_cache): ... this. Update caller.
450 (stack_cache_enabled): Rename to ...
451 (stack_cache_enabled_p): ... this. Update caller.
452 (_initialize_target_dcache): Replace "data cache" with
453 "target memory cache".
454 * target-dcache.h (stack_cache_enabled): Remove declaration.
455 (stack_cache_enabled_p): Add declaration.
456
457 2013-11-23 Doug Evans <xdje42@gmail.com>
458
459 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
460 superfluous.
461
462 2013-11-23 Doug Evans <xdje42@gmail.com>
463
464 * python/py-frame.c (frapy_block): Fix error message text.
465
466 2013-11-23 Doug Evans <xdje42@gmail.com>
467
468 * cli/cli-script.c (multi_line_command_p): New function.
469 (recurse_read_control_structure, read_command_lines_1): Call it.
470 (execute_control_command): Consistently have a blank line between
471 each case.
472
473 2013-11-22 Sterling Augustine <saugustine@google.com>
474
475 PR gdb/16196:
476 * valprint.c (read_string): Set new variable fetchlen based on
477 fetchlimit and size. Use it in call to partial_memory_read.
478 Update comment.
479
480 2013-11-22 Tom Tromey <tromey@redhat.com>
481
482 PR backtrace/16155:
483 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
484 the return address column is unspecified.
485
486 2013-11-22 Tom Tromey <tromey@redhat.com>
487 Pedro Alves <palves@redhat.com>
488
489 PR backtrace/16155
490 * value.c (value_fetch_lazy): Internal error if
491 get_frame_register_value returns the same register.
492
493 2013-11-22 Pedro Alves <palves@redhat.com>
494 Tom Tromey <tromey@redhat.com>
495
496 * frame.c (frame_stash_add): Now returns whether a frame with the
497 same ID was already known.
498 (compute_frame_id): New function, factored out from get_frame_id.
499 (get_frame_id): No longer lazilly compute the frame id here.
500 (get_prev_frame_if_no_cycle): New function. Detects wider stack
501 cycles.
502 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
503 and checking for stack cycles here.
504
505 2013-11-22 Pedro Alves <palves@redhat.com>
506
507 PR 16155
508 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
509 this frame and the new previous frame, not between this frame and
510 the next frame.
511
512 2013-11-22 Pedro Alves <palves@redhat.com>
513
514 PR 16155
515 * dwarf2-frame.c (struct dwarf2_frame_cache)
516 <checked_tailcall_bottom, entry_cfa_sp_offset,
517 entry_cfa_sp_offset_p>: New fields.
518 (dwarf2_frame_cache): Adjust to use the new cache fields instead
519 of locals. Don't call dwarf2_tailcall_sniffer_first here.
520 (dwarf2_frame_prev_register): Call it here, but only once.
521
522 2013-11-21 Doug Evans <xdje42@gmail.com>
523
524 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
525 (type_equality_entry): Move here from python/py-type.c.
526 (type_equality_entry_d): Ditto.
527 (compare_maybe_null_strings, check_types_equal): Ditto.
528 (check_types_worklist, types_deeply_equal): Ditto.
529 * gdbtypes.h (types_deeply_equal): Declare.
530 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
531 (typy_richcompare): Update.
532
533 2013-11-20 Joel Brobecker <brobecker@adacore.com>
534
535 * python/py-value.c (is_intlike): Delete.
536 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
537 by use of is_integral_type.
538 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
539 by use of is_integral_type and check for TYPE_CODE_PTR.
540
541 2013-11-20 Tom Tromey <tromey@redhat.com>
542
543 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
544 strerror module.
545 * gnulib/aclocal.m4: Update.
546 * gnulib/config.in: Update.
547 * gnulib/configure: Update.
548 * gnulib/import/Makefile.am: Update.
549 * gnulib/import/Makefile.in: Update.
550 * gnulib/import/errno.in.h: Remove.
551 * gnulib/import/intprops.h: Remove.
552 * gnulib/import/m4/errno_h.m4: Remove.
553 * gnulib/import/m4/gnulib-cache.m4: Update.
554 * gnulib/import/m4/gnulib-comp.m4: Update.
555 * gnulib/import/m4/strerror.m4: Remove.
556 * gnulib/import/m4/sys_socket_h.m4: Remove.
557 * gnulib/import/strerror-override.c: Remove.
558 * gnulib/import/strerror-override.h: Remove.
559 * gnulib/import/strerror.c: Remove.
560 * gnulib/update-gnulib.sh: Update.
561
562 2013-11-20 Yao Qi <yao@codesourcery.com>
563
564 * target-dcache.c (target_dcache_get_or_init): Call
565 set_address_space_data if 'dcache' is NULL.
566
567 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
568
569 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
570
571 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
572
573 * python/lib/gdb/command/bound_register.py: New file.
574 * data-directory/Makefile.in: Copy bond_register.py to the right path
575 to be initialized at gdb startup.
576
577 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
578
579 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
580 Add MPX registers.
581 (amd64_linux_read_description): Add initialization for MPX and
582 AVX independently.
583 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
584 (amd64_linux_gregset_reg_offset): Add MPX registers.
585 (amd64_linux_core_read_description): Add initialization for MPX
586 registers.
587 (_initialize_amd64_linux_tdep): Initialize MPX targets.
588 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
589 register on the list.
590 (tdesc_amd64_mpx_linux) Add new target for MPX.
591 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
592 (amd64_mpx_names): MPX register names.
593 (amd64_init_abi): Add MPX register while initializing the ABI.
594 (_initialize_amd64_tdep): Initialize MPX targets.
595 * amd64-tdep.h (amd64_regnum): Add MPX registers.
596 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
597
598 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
599
600 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
601 registers on the range of registers to be read from
602 xsave buffer.
603 (i386_linux_read_description): Add case for MPX.
604 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
605 (i386_linux_gregset_reg_offset): Add MPX registers.
606 (i386_linux_core_read_description): Initialize also MPX.
607 (_initialize_i386_linux_tdep): Add mpx initialization.
608 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
609 mpx_register_names.
610 (i386_regnum): Add MPX registers.
611 (I386_MPX_NUM_REGS): New macro.
612 (i386_bnd_regnum_p): New function.
613 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
614 number of registers to be the number of BNDSTATUS.
615 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
616 * i386-tdep.c: Include features/i386/i386-mpx.c.
617 (i386_mpx_names): Add MPX register names array.
618 (i386_bnd_names): Add bnd pseudo register names array.
619 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
620 registers.
621 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
622 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
623 registers.
624 (i386_bnd_type): New function.
625 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
626 register types.
627 (i386_pseudo_register_read_into_value): Add bnd case.
628 (i386_pseudo_register_write): Add bnd pseudo registers.
629 (i386_register_reggroup_p): Add MPX register to the group all.
630 (i386_validate_tdesc_p): Add MPX to the target description
631 validation.
632 (i386_pseudo_register_name): Add bnd pseudo registers.
633 (i386_gdbarch_init): Add MPX for architecture initialization.
634 (_initia_initialize_i386_tdep): Add mpx initialization.
635 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
636 XSAVE buffer.
637 (XSAVE_MPX_ADDR): New macro.
638 (i387_supply_xsave): Add MPX case.
639 (i387_collect_xsave): Add MPX case.
640 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
641 (I387_BNDCFGU_REGNUM): New macro.
642 (I387_NUM_MPX_REGS): New macro.
643 (I387_NUM_BND_REGS): New macro.
644 (I387_NUM_MPX_CTRL_REGS): New macro.
645 (I387_MPXEND_REGNUM): New macro.
646 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
647 (I386_XSTATE_BNDCFG): Likewise.
648 (I386_XSTATE_MPX_MASK): Likewise.
649 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
650 (I386_XSTATE_BNDREGS_SIZE): New macro.
651 (I386_XSTATE_BNDCFG_SIZE): Likewise.
652 (I386_XSTATE_SIZE): Adapt for MPX.
653 (I386_XSTATE_MAX_SIZE): Likewise.
654
655 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
656
657 * features/i386/Makefile: Adapts for using MPX registers.
658 * features/i386/32bit-mpx.xml: New file.
659 * features/i386/64bit-mpx.xml: Likewise.
660 * features/i386/amd64-mpx-linux.c: Likewise.
661 * features/i386/amd64-mpx-linux.xml: Likewise.
662 * features/i386/amd64-mpx.c: Likewise.
663 * features/i386/amd64-mpx.xml: Likewise.
664 * features/i386/i386-mpx-linux.c: Likewise.
665 * features/i386/i386-mpx-linux.xml: Likewise.
666 * features/i386/i386-mpx.c: Likewise.
667 * features/i386/i386-mpx.xml: Likewise.
668 * regformats/i386/amd64-mpx-linux.dat: New file.
669 * regformats/i386/amd64-mpx.dat: Likewise.
670 * regformats/i386/i386-mpx-linux.dat: Likewise.
671 * regformats/i386/i386-mpx.dat: Likewise.
672
673 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
674
675 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
676 Modified logic of creating a bitfield to be in sync with
677 tdesc_gdb_type.
678
679 2013-11-20 Will Newton <will.newton@linaro.org>
680
681 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
682 error message.
683
684 2013-11-20 Yao Qi <yao@codesourcery.com>
685
686 * progspace.h (struct address_space_data): Declare.
687 * target-dcache.c: Include "progspace.h".
688 (target_dache): Remove.
689 (target_dcache_aspace_key): New.
690 (target_dcache_cleanup): New function.
691 (target_dcache_init_p): Get data through
692 target_dcache_aspace_key.
693 (target_dcache_invalidate): Likewise.
694 (target_dcache_get): Likewise.
695 (target_dcache_get_or_init): Likewise.
696 (_initialize_target_dcache): Initialize
697 target_dcache_aspace_key.
698
699 2013-11-20 Yao Qi <yao@codesourcery.com>
700
701 * progspace.c (struct address_space): Update comments.
702 <REGISTRY_FIELDS>: New fields.
703 DEFINE_REGISTRY for address_space.
704 (new_address_space): Call address_space_alloc_data.
705 (free_address_space): Call address_space_free_data.
706 * progspace.h: Use DECLARE_REGISTRY.
707
708 2013-11-20 Yao Qi <yao@codesourcery.com>
709
710 * Makefile.in (SFILES):Add target-dcache.c.
711 (HFILES_NO_SRCDIR): Add target-dcache.h.
712 (COMMON_OBS): Add target-dcache.o.
713 * dcache.c: Remove inclusion to "target.h". Include
714 "target-dcache.h".
715 * memattr.c: Include "target-dcache.h".
716 * top.c: Likewise.
717 * tracepoint.c: Likewise.
718 * target.c: (stack_cache_enabled_p_1): Move to
719 target-dcache.c.
720 (stack_cache_enabled_p): Likewise.
721 (set_stack_cache_enabled_p): Likewise.
722 (show_stack_cache_enabled_p): Likewise.
723 (target_dcache, target_dcache_init_p): Likewise.
724 (target_dcache_invalidate): Likewise.
725 (target_dcache_get, target_dcache_get_or_init): Likewise.
726 (memory_xfer_partial_1): Call function stack_cache_enabled.
727 (initialize_target): Move code to target-dcache.c.
728 * target.h (target_dcache_invalidate): Move to
729 target-dcache.h.
730 (target_dcache_get): Likewise.
731 * target-dcache.c: New.
732 * target-dcache.h: New.
733
734 2013-11-20 Yao Qi <yao@codesourcery.com>
735
736 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
737 it is initialized.
738
739 2013-11-20 Yao Qi <yao@codesourcery.com>
740
741 * dcache.c (last_cache): Remove.
742 (dcache_free, dcache_init): Update.
743 (dcache_update):
744 (dcache_print_line): Add parameter 'dcache'. Replace
745 'target_dcache' with 'dcache'.
746 (dcache_info): Move code to dcache_info_1. Call
747 'dcache_info_1'.
748 (dcache_info_1): New function.
749 (set_dcache_size): Call target_dcache_invalidate.
750 (set_dcache_line_size): Call target_dcache_invalidate.
751 * target.c (target_dcache_init_p): New function.
752 (target_dcache_invalidate): Check target_dcache_init_p first.
753 (target_dcache_get, target_dcache_get_or_init): New function.
754 (memory_xfer_partial_1): Adjust.
755 (initialize_target): Don't initialize 'target_dcache'.
756 * target.h (struct dcache_struct): Declare.
757 (target_dcache_get): Declare.
758
759 2013-11-19 Yao Qi <yao@codesourcery.com>
760
761 * varobj.c (varobj_get_type): Fix typo.
762
763 2013-11-19 Joel Brobecker <brobecker@adacore.com>
764
765 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
766
767 2013-11-19 Joel Brobecker <brobecker@adacore.com>
768
769 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
770 "stat.h".
771
772 2013-11-18 Tom Tromey <tromey@redhat.com>
773
774 * common/gdb_stat.h: Remove.
775 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
776 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
777 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
778 * corefile.c: Use sys/stat.h, not gdb_stat.h.
779 * ctf.c: Use sys/stat.h, not gdb_stat.h.
780 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
781 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
782 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
783 * exec.c: Use sys/stat.h, not gdb_stat.h.
784 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
785 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
786 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
787 * jit.c: Use sys/stat.h, not gdb_stat.h.
788 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
789 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
790 * main.c: Use sys/stat.h, not gdb_stat.h.
791 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
792 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
793 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
794 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
795 * procfs.c: Use sys/stat.h, not gdb_stat.h.
796 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
797 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
798 * remote.c: Use sys/stat.h, not gdb_stat.h.
799 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
800 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
801 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
802 * source.c: Use sys/stat.h, not gdb_stat.h.
803 * symfile.c: Use sys/stat.h, not gdb_stat.h.
804 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
805 * symtab.c: Use sys/stat.h, not gdb_stat.h.
806 * top.c: Use sys/stat.h, not gdb_stat.h.
807 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
808
809 2013-11-18 Tom Tromey <tromey@redhat.com>
810
811 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
812 sys_stat.
813 * gnulib/aclocal.m4: Update.
814 * gnulib/config.in: Update.
815 * gnulib/configure: Update.
816 * gnulib/import/Makefile.am: Update.
817 * gnulib/import/Makefile.in: Update.
818 * gnulib/import/m4/gnulib-cache.m4: Update.
819 * gnulib/import/m4/gnulib-comp.m4: Update.
820 * gnulib/import/m4/sys_stat_h.m4: New.
821 * gnulib/import/m4/time_h.m4: New.
822 * gnulib/import/sys_stat.in.h: New.
823 * gnulib/import/time.in.h: New.
824
825 2013-11-18 Tom Tromey <tromey@redhat.com>
826
827 * configure: Rebuild.
828 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
829
830 2013-11-18 Tom Tromey <tromey@redhat.com>
831
832 * configure: Rebuild.
833 * configure.ac: Don't check for unistd.h.
834
835 2013-11-18 Tom Tromey <tromey@redhat.com>
836
837 * configure: Rebuild.
838 * configure.ac: Don't check for stdlib.h
839 * defs.h: Include stdlib.h unconditionally.
840
841 2013-11-18 Tom Tromey <tromey@redhat.com>
842
843 * config.in: Rebuild.
844 * configure: Rebuild.
845 * configure.ac: Don't check for stddef.h.
846 * defs.h: Unconditionally include stddef.h. Remove duplicate
847 inclusion.
848
849 2013-11-18 Tom Tromey <tromey@redhat.com>
850
851 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
852 * common/gdb_dirent.h: Remove.
853 * common/filestuff.c: Use dirent.h.
854 * common/linux-osdata.c: Use dirent.h.
855 (NAMELEN): Define.
856 * config.in: Rebuild.
857 * configure: Rebuild.
858 * configure.ac: Don't use AC_HEADER_DIRENT.
859 * linux-fork.c: Use dirent.h
860 * linux-nat.c: Use dirent.h.
861 * nto-procfs.c: Use dirent.h.
862 * procfs.c: Use dirent.h.
863
864 2013-11-18 Tom Tromey <tromey@redhat.com>
865
866 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
867 * gnulib/aclocal.m4: Update.
868 * gnulib/config.in: Update.
869 * gnulib/configure: Update.
870 * gnulib/import/Makefile.am: Update.
871 * gnulib/import/Makefile.in: Update.
872 * gnulib/import/dirent.in.h: New.
873 * gnulib/import/m4/dirent_h.m4: New.
874 * gnulib/import/m4/gnulib-cache.m4: Update.
875 * gnulib/import/m4/gnulib-comp.m4: Update.
876
877 2013-11-18 Tom Tromey <tromey@redhat.com>
878
879 * configure: Rebuild.
880 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
881 strings.h.
882
883 2013-11-18 Tom Tromey <tromey@redhat.com>
884
885 * common/gdb_string.h: Remove.
886 * aarch64-tdep.c: Use string.h, not gdb_string.h.
887 * ada-exp.y: Use string.h, not gdb_string.h.
888 * ada-lang.c: Use string.h, not gdb_string.h.
889 * ada-lex.l: Use string.h, not gdb_string.h.
890 * ada-typeprint.c: Use string.h, not gdb_string.h.
891 * ada-valprint.c: Use string.h, not gdb_string.h.
892 * aix-thread.c: Use string.h, not gdb_string.h.
893 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
894 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
895 * alpha-nat.c: Use string.h, not gdb_string.h.
896 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
897 * alpha-tdep.c: Use string.h, not gdb_string.h.
898 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
899 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
900 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
901 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
902 * amd64-nat.c: Use string.h, not gdb_string.h.
903 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
904 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
905 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
906 * arch-utils.c: Use string.h, not gdb_string.h.
907 * arm-linux-nat.c: Use string.h, not gdb_string.h.
908 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
909 * arm-tdep.c: Use string.h, not gdb_string.h.
910 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
911 * armbsd-tdep.c: Use string.h, not gdb_string.h.
912 * armnbsd-nat.c: Use string.h, not gdb_string.h.
913 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
914 * armobsd-tdep.c: Use string.h, not gdb_string.h.
915 * avr-tdep.c: Use string.h, not gdb_string.h.
916 * ax-gdb.c: Use string.h, not gdb_string.h.
917 * ax-general.c: Use string.h, not gdb_string.h.
918 * bcache.c: Use string.h, not gdb_string.h.
919 * bfin-tdep.c: Use string.h, not gdb_string.h.
920 * breakpoint.c: Use string.h, not gdb_string.h.
921 * build-id.c: Use string.h, not gdb_string.h.
922 * buildsym.c: Use string.h, not gdb_string.h.
923 * c-exp.y: Use string.h, not gdb_string.h.
924 * c-lang.c: Use string.h, not gdb_string.h.
925 * c-typeprint.c: Use string.h, not gdb_string.h.
926 * c-valprint.c: Use string.h, not gdb_string.h.
927 * charset.c: Use string.h, not gdb_string.h.
928 * cli-out.c: Use string.h, not gdb_string.h.
929 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
930 * cli/cli-decode.c: Use string.h, not gdb_string.h.
931 * cli/cli-dump.c: Use string.h, not gdb_string.h.
932 * cli/cli-interp.c: Use string.h, not gdb_string.h.
933 * cli/cli-logging.c: Use string.h, not gdb_string.h.
934 * cli/cli-script.c: Use string.h, not gdb_string.h.
935 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
936 * cli/cli-utils.c: Use string.h, not gdb_string.h.
937 * coffread.c: Use string.h, not gdb_string.h.
938 * common/common-utils.c: Use string.h, not gdb_string.h.
939 * common/filestuff.c: Use string.h, not gdb_string.h.
940 * common/linux-procfs.c: Use string.h, not gdb_string.h.
941 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
942 * common/signals.c: Use string.h, not gdb_string.h.
943 * common/vec.h: Use string.h, not gdb_string.h.
944 * core-regset.c: Use string.h, not gdb_string.h.
945 * corefile.c: Use string.h, not gdb_string.h.
946 * corelow.c: Use string.h, not gdb_string.h.
947 * cp-abi.c: Use string.h, not gdb_string.h.
948 * cp-support.c: Use string.h, not gdb_string.h.
949 * cp-valprint.c: Use string.h, not gdb_string.h.
950 * cris-tdep.c: Use string.h, not gdb_string.h.
951 * d-lang.c: Use string.h, not gdb_string.h.
952 * dbxread.c: Use string.h, not gdb_string.h.
953 * dcache.c: Use string.h, not gdb_string.h.
954 * demangle.c: Use string.h, not gdb_string.h.
955 * dicos-tdep.c: Use string.h, not gdb_string.h.
956 * disasm.c: Use string.h, not gdb_string.h.
957 * doublest.c: Use string.h, not gdb_string.h.
958 * dsrec.c: Use string.h, not gdb_string.h.
959 * dummy-frame.c: Use string.h, not gdb_string.h.
960 * dwarf2-frame.c: Use string.h, not gdb_string.h.
961 * dwarf2loc.c: Use string.h, not gdb_string.h.
962 * dwarf2read.c: Use string.h, not gdb_string.h.
963 * elfread.c: Use string.h, not gdb_string.h.
964 * environ.c: Use string.h, not gdb_string.h.
965 * eval.c: Use string.h, not gdb_string.h.
966 * event-loop.c: Use string.h, not gdb_string.h.
967 * exceptions.c: Use string.h, not gdb_string.h.
968 * exec.c: Use string.h, not gdb_string.h.
969 * expprint.c: Use string.h, not gdb_string.h.
970 * f-exp.y: Use string.h, not gdb_string.h.
971 * f-lang.c: Use string.h, not gdb_string.h.
972 * f-typeprint.c: Use string.h, not gdb_string.h.
973 * f-valprint.c: Use string.h, not gdb_string.h.
974 * fbsd-nat.c: Use string.h, not gdb_string.h.
975 * findcmd.c: Use string.h, not gdb_string.h.
976 * findvar.c: Use string.h, not gdb_string.h.
977 * fork-child.c: Use string.h, not gdb_string.h.
978 * frame.c: Use string.h, not gdb_string.h.
979 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
980 * frv-tdep.c: Use string.h, not gdb_string.h.
981 * gdb.c: Use string.h, not gdb_string.h.
982 * gdb_bfd.c: Use string.h, not gdb_string.h.
983 * gdbarch.c: Use string.h, not gdb_string.h.
984 * gdbtypes.c: Use string.h, not gdb_string.h.
985 * gnu-nat.c: Use string.h, not gdb_string.h.
986 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
987 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
988 * go-exp.y: Use string.h, not gdb_string.h.
989 * go-lang.c: Use string.h, not gdb_string.h.
990 * go32-nat.c: Use string.h, not gdb_string.h.
991 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
992 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
993 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
994 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
995 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
996 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
997 * i386-linux-nat.c: Use string.h, not gdb_string.h.
998 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
999 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1000 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1001 * i386-tdep.c: Use string.h, not gdb_string.h.
1002 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1003 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1004 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1005 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1006 * i387-tdep.c: Use string.h, not gdb_string.h.
1007 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1008 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1009 * inf-child.c: Use string.h, not gdb_string.h.
1010 * inf-ptrace.c: Use string.h, not gdb_string.h.
1011 * inf-ttrace.c: Use string.h, not gdb_string.h.
1012 * infcall.c: Use string.h, not gdb_string.h.
1013 * infcmd.c: Use string.h, not gdb_string.h.
1014 * inflow.c: Use string.h, not gdb_string.h.
1015 * infrun.c: Use string.h, not gdb_string.h.
1016 * interps.c: Use string.h, not gdb_string.h.
1017 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1018 * irix5-nat.c: Use string.h, not gdb_string.h.
1019 * jv-exp.y: Use string.h, not gdb_string.h.
1020 * jv-lang.c: Use string.h, not gdb_string.h.
1021 * jv-typeprint.c: Use string.h, not gdb_string.h.
1022 * jv-valprint.c: Use string.h, not gdb_string.h.
1023 * language.c: Use string.h, not gdb_string.h.
1024 * linux-fork.c: Use string.h, not gdb_string.h.
1025 * linux-nat.c: Use string.h, not gdb_string.h.
1026 * lm32-tdep.c: Use string.h, not gdb_string.h.
1027 * m2-exp.y: Use string.h, not gdb_string.h.
1028 * m2-typeprint.c: Use string.h, not gdb_string.h.
1029 * m32c-tdep.c: Use string.h, not gdb_string.h.
1030 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1031 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1032 * m32r-rom.c: Use string.h, not gdb_string.h.
1033 * m32r-tdep.c: Use string.h, not gdb_string.h.
1034 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1035 * m68k-tdep.c: Use string.h, not gdb_string.h.
1036 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1037 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1038 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1039 * m88k-tdep.c: Use string.h, not gdb_string.h.
1040 * macrocmd.c: Use string.h, not gdb_string.h.
1041 * main.c: Use string.h, not gdb_string.h.
1042 * mdebugread.c: Use string.h, not gdb_string.h.
1043 * mem-break.c: Use string.h, not gdb_string.h.
1044 * memattr.c: Use string.h, not gdb_string.h.
1045 * memory-map.c: Use string.h, not gdb_string.h.
1046 * mep-tdep.c: Use string.h, not gdb_string.h.
1047 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1048 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1049 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1050 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1051 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1052 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1053 * mi/mi-console.c: Use string.h, not gdb_string.h.
1054 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1055 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1056 * mi/mi-main.c: Use string.h, not gdb_string.h.
1057 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1058 * microblaze-rom.c: Use string.h, not gdb_string.h.
1059 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1060 * mingw-hdep.c: Use string.h, not gdb_string.h.
1061 * minidebug.c: Use string.h, not gdb_string.h.
1062 * minsyms.c: Use string.h, not gdb_string.h.
1063 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1064 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1065 * mips-tdep.c: Use string.h, not gdb_string.h.
1066 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1067 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1068 * mipsread.c: Use string.h, not gdb_string.h.
1069 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1070 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1071 * monitor.c: Use string.h, not gdb_string.h.
1072 * moxie-tdep.c: Use string.h, not gdb_string.h.
1073 * mt-tdep.c: Use string.h, not gdb_string.h.
1074 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1075 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1076 * nto-procfs.c: Use string.h, not gdb_string.h.
1077 * nto-tdep.c: Use string.h, not gdb_string.h.
1078 * objc-lang.c: Use string.h, not gdb_string.h.
1079 * objfiles.c: Use string.h, not gdb_string.h.
1080 * opencl-lang.c: Use string.h, not gdb_string.h.
1081 * osabi.c: Use string.h, not gdb_string.h.
1082 * osdata.c: Use string.h, not gdb_string.h.
1083 * p-exp.y: Use string.h, not gdb_string.h.
1084 * p-lang.c: Use string.h, not gdb_string.h.
1085 * p-typeprint.c: Use string.h, not gdb_string.h.
1086 * parse.c: Use string.h, not gdb_string.h.
1087 * posix-hdep.c: Use string.h, not gdb_string.h.
1088 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1089 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1090 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1091 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1092 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1093 * printcmd.c: Use string.h, not gdb_string.h.
1094 * procfs.c: Use string.h, not gdb_string.h.
1095 * prologue-value.c: Use string.h, not gdb_string.h.
1096 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1097 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1098 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1099 * regcache.c: Use string.h, not gdb_string.h.
1100 * registry.c: Use string.h, not gdb_string.h.
1101 * remote-fileio.c: Use string.h, not gdb_string.h.
1102 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1103 * remote-mips.c: Use string.h, not gdb_string.h.
1104 * remote-sim.c: Use string.h, not gdb_string.h.
1105 * remote.c: Use string.h, not gdb_string.h.
1106 * reverse.c: Use string.h, not gdb_string.h.
1107 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1108 * ser-base.c: Use string.h, not gdb_string.h.
1109 * ser-go32.c: Use string.h, not gdb_string.h.
1110 * ser-mingw.c: Use string.h, not gdb_string.h.
1111 * ser-pipe.c: Use string.h, not gdb_string.h.
1112 * ser-tcp.c: Use string.h, not gdb_string.h.
1113 * ser-unix.c: Use string.h, not gdb_string.h.
1114 * serial.c: Use string.h, not gdb_string.h.
1115 * sh-tdep.c: Use string.h, not gdb_string.h.
1116 * sh64-tdep.c: Use string.h, not gdb_string.h.
1117 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1118 * skip.c: Use string.h, not gdb_string.h.
1119 * sol-thread.c: Use string.h, not gdb_string.h.
1120 * solib-dsbt.c: Use string.h, not gdb_string.h.
1121 * solib-frv.c: Use string.h, not gdb_string.h.
1122 * solib-osf.c: Use string.h, not gdb_string.h.
1123 * solib-spu.c: Use string.h, not gdb_string.h.
1124 * solib-target.c: Use string.h, not gdb_string.h.
1125 * solib.c: Use string.h, not gdb_string.h.
1126 * somread.c: Use string.h, not gdb_string.h.
1127 * source.c: Use string.h, not gdb_string.h.
1128 * sparc-nat.c: Use string.h, not gdb_string.h.
1129 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1130 * sparc-tdep.c: Use string.h, not gdb_string.h.
1131 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1132 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1133 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1134 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1135 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1136 * spu-multiarch.c: Use string.h, not gdb_string.h.
1137 * spu-tdep.c: Use string.h, not gdb_string.h.
1138 * stabsread.c: Use string.h, not gdb_string.h.
1139 * stack.c: Use string.h, not gdb_string.h.
1140 * std-regs.c: Use string.h, not gdb_string.h.
1141 * symfile.c: Use string.h, not gdb_string.h.
1142 * symmisc.c: Use string.h, not gdb_string.h.
1143 * symtab.c: Use string.h, not gdb_string.h.
1144 * target.c: Use string.h, not gdb_string.h.
1145 * thread.c: Use string.h, not gdb_string.h.
1146 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1147 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1148 * top.c: Use string.h, not gdb_string.h.
1149 * tracepoint.c: Use string.h, not gdb_string.h.
1150 * tui/tui-command.c: Use string.h, not gdb_string.h.
1151 * tui/tui-data.c: Use string.h, not gdb_string.h.
1152 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1153 * tui/tui-file.c: Use string.h, not gdb_string.h.
1154 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1155 * tui/tui-out.c: Use string.h, not gdb_string.h.
1156 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1157 * tui/tui-source.c: Use string.h, not gdb_string.h.
1158 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1159 * tui/tui-win.c: Use string.h, not gdb_string.h.
1160 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1161 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1162 * typeprint.c: Use string.h, not gdb_string.h.
1163 * ui-file.c: Use string.h, not gdb_string.h.
1164 * ui-out.c: Use string.h, not gdb_string.h.
1165 * user-regs.c: Use string.h, not gdb_string.h.
1166 * utils.c: Use string.h, not gdb_string.h.
1167 * v850-tdep.c: Use string.h, not gdb_string.h.
1168 * valarith.c: Use string.h, not gdb_string.h.
1169 * valops.c: Use string.h, not gdb_string.h.
1170 * valprint.c: Use string.h, not gdb_string.h.
1171 * value.c: Use string.h, not gdb_string.h.
1172 * varobj.c: Use string.h, not gdb_string.h.
1173 * vax-tdep.c: Use string.h, not gdb_string.h.
1174 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1175 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1176 * windows-nat.c: Use string.h, not gdb_string.h.
1177 * xcoffread.c: Use string.h, not gdb_string.h.
1178 * xml-support.c: Use string.h, not gdb_string.h.
1179 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1180 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1181
1182 2013-11-18 Tom Tromey <tromey@redhat.com>
1183
1184 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1185 and strstr.
1186 * gnulib/aclocal.m4: Update.
1187 * gnulib/config.in: Update.
1188 * gnulib/configure: Update.
1189 * gnulib/import/Makefile.am: Update.
1190 * gnulib/import/Makefile.in: Update.
1191 * gnulib/import/errno.in.h: New.
1192 * gnulib/import/intprops.h: New.
1193 * gnulib/import/m4/errno_h.m4: New.
1194 * gnulib/import/m4/gnulib-cache.m4: Update.
1195 * gnulib/import/m4/gnulib-comp.m4: Update.
1196 * gnulib/import/m4/strerror.m4: New.
1197 * gnulib/import/m4/strstr.m4: New.
1198 * gnulib/import/m4/sys_socket_h.m4: New.
1199 * gnulib/import/strerror-override.c: New.
1200 * gnulib/import/strerror-override.h: New.
1201 * gnulib/import/strerror.c: New.
1202 * gnulib/import/strstr.c: New.
1203
1204 2013-11-18 Tom Tromey <tromey@redhat.com>
1205
1206 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1207 multiple lines.
1208
1209 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1210
1211 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1212 * sparc-tdep.h: And its prototype.
1213
1214 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1215 function.
1216 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1217
1218 2013-11-18 Pedro Alves <palves@redhat.com>
1219
1220 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1221 use unpack_pointer.
1222
1223 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1224
1225 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1226 to -list-features output.
1227
1228 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1229
1230 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1231 <read_addr_from_reg>: Renames "read_reg".
1232 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1233 Adjust comment.
1234 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1235 Use read_addr_from_reg in place of read_reg.
1236 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1237 in place of read_reg.
1238 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1239 dwarf_expr_read_reg.
1240 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1241 with dwarf_expr_read_addr_from_reg.
1242 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1243 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1244 needs_frame_read_addr_from_reg.
1245
1246 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1247
1248 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1249
1250 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251
1252 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1253 NULL.
1254
1255 2013-11-15 Tom Tromey <tromey@redhat.com>
1256
1257 PR c++/16117:
1258 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1259 (classify_name): Likewise. Prefer a field of "this" over a
1260 filename.
1261 (classify_inner_name, yylex): Update.
1262
1263 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1264
1265 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1266 Extend the documentation a bit.
1267 <get_reg_value>: New field.
1268 * dwarf2loc.c (dwarf_expr_get_reg_value)
1269 (needs_frame_get_reg_value): New functions.
1270 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1271 callback.
1272 * dwarf2-frame.c (get_reg_value): New function.
1273 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1274 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1275 Use new callback to compute result_val.
1276
1277 2013-11-15 Alan Modra <amodra@gmail.com>
1278
1279 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1280 (ppc64_desc_entry_point): ..this. Update comments here and at
1281 call points.
1282 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1283 ppc64_standard_linkage3): Update comments.
1284 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1285 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1286 patterns.
1287 (ppc64_standard_linkage4_target): New function.
1288 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1289 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1290 nop match. Fix comment wrap.
1291
1292 2013-11-14 Pedro Alves <palves@redhat.com>
1293
1294 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1295 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1296
1297 2013-11-14 Pedro Alves <palves@redhat.com>
1298
1299 * infrun.c (struct execution_control_state)
1300 <stepped_after_stopped_by_watchpoint>: New field.
1301 (get_inferior_stop_soon): New function.
1302 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1303 moved to struct execution_control_state -- adjust. Use
1304 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1305 new function.
1306 (handle_signal_stop): New function, factored out from
1307 handle_inferior_event.
1308
1309 2013-11-14 Pedro Alves <palves@redhat.com>
1310
1311 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1312 return a boolean.
1313 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1314 boolean.
1315 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1316 Adjust to return a boolean.
1317 * breakpoint.h (enum bpstat_signal_value): Delete.
1318 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1319 (bpstat_explains_signal): Likewise.
1320 * infrun.c (handle_inferior_event) <random signal checks>:
1321 bpstat_explains_signal now returns a boolean - adjust. No longer
1322 consider hiding signals.
1323
1324 2013-11-14 Pedro Alves <palves@redhat.com>
1325
1326 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1327 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1328 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1329 BPSTAT_SIGNAL_HIDE.
1330 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1331 instead of BPSTAT_SIGNAL_HIDE.
1332 * infrun.c (handle_inferior_event): Rework random signal checks.
1333
1334 2013-11-14 Pedro Alves <palves@redhat.com>
1335
1336 * infrun.c (struct execution_control_state): Remove
1337 'random_signal' field.
1338 (handle_syscall_event): Use bpstat_causes_stop instead of
1339 bpstat_explains_signal. Don't set ecs->random_signal.
1340 (handle_inferior_event): New 'random_signal' local.
1341 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1342 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1343 bpstat_explains_signal. Don't set ecs->random_signal.
1344 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1345 ecs->random_signal.
1346
1347 2013-11-14 Pedro Alves <palves@redhat.com>
1348
1349 * infrun.c (handle_inferior_event): Move comment from the
1350 function's body to the function's description, adjusted.
1351
1352 2013-11-14 Pedro Alves <palves@redhat.com>
1353
1354 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1355 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1356 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1357 case.
1358
1359 2013-11-14 Tom Tromey <tromey@redhat.com>
1360
1361 * python/py-linetable.c (ltpy_has_line)
1362 (ltpy_get_all_source_lines): Fix loop termination condition.
1363
1364 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1365
1366 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1367 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1368 PARSE->LANGUAGE during command execution, if set.
1369 * mi/mi-parse.c: Add "language.h" #include.
1370 (mi_parse): Add parsing of "--language" command option.
1371
1372 * NEWS: Add entry mentioning the new "--language" command option.
1373
1374 2013-11-14 Pedro Alves <palves@redhat.com>
1375 Joel Brobecker <brobecker@adacore.com>
1376
1377 * cli/cli-utils.h (extract_arg_const): Add declaration.
1378 * cli/cli-utils.c (extract_arg_const): New function.
1379 (extract_arg): Reimplement using extract_arg_const.
1380
1381 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1382
1383 * language.h: Add "symtab.h" #include.
1384
1385 2013-11-13 Doug Evans <xdje42@gmail.com>
1386
1387 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1388 specific breakpoints, don't evaluate breakpoint condition if
1389 different thread.
1390
1391 2013-11-13 Keith Seitz <keiths@redhat.com>
1392
1393 PR c++/7935
1394 PR c++/10541
1395 * cp-support.c (insepct_type): Add support for substituting
1396 namespace aliases, too.
1397 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1398 for DW_TAG_imported_declaration.
1399 (add_partial_symbol): Likewise.
1400 (process_die): Handle namespace aliases with
1401 read_namespace_alias.
1402 (die_needs_namespace): Add DW_TAG_imported_declaration.
1403 (read_namespace_alias): New function.
1404 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1405 (new_symbol_full): Handle DW_TAG_imported_declaration.
1406
1407 2013-11-13 Keith Seitz <keiths@redhat.com>
1408
1409 * p-exp.y (uptok): Make first parameter const.
1410 (yylex): Make `tokstart' and `tokptr' const.
1411 Don't copy the lexer input to a temporary buffer.
1412 Make `p' const.
1413 Remove const workaround for parse_escape.
1414 Create a temporary buffer for a convenience variable instead
1415 of doing in-place modification of the input.
1416 If a match is found with a different case from the input,
1417 do not change the input at all.
1418 Use `tmp' to construct the resultant stoken instead of
1419 `tokstart'.
1420
1421 2013-11-13 Doug Evans <xdje42@gmail.com>
1422
1423 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1424
1425 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1426
1427 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1428 entry with "ada-exceptions".
1429
1430 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1431
1432 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1433 after re-initialization of OBJFILE's obstack.
1434
1435 2013-11-12 Doug Evans <xdje42@gmail.com>
1436
1437 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1438 bs->stop != 0 on entry. Update function comment. Simplify early
1439 exit for frame mismatch. Reindent rest of function.
1440
1441 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1442
1443 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1444 NULL.
1445
1446 2013-11-12 Doug Evans <dje@google.com>
1447
1448 Work around gold/15646.
1449 * dwarf2read.c (read_index_from_section): Update comment.
1450 (struct dw2_symtab_iterator): New member global_seen.
1451 (dw2_symtab_iter_init): Initialize it.
1452 (dw2_symtab_iter_next): Skip duplicate global symbols.
1453 (dw2_expand_symtabs_matching): Ditto.
1454
1455 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1456
1457 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1458 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1459 command.
1460 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1461 (mi_cmd_info_ada_exceptions): New function.
1462 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1463
1464 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1465
1466 * ada-lang.h: #include "vec.h".
1467 (struct ada_exc_info): New.
1468 (ada_exc_info): New typedef.
1469 (DEF_VEC_O(ada_exc_info)): New vector.
1470 (ada_exceptions_list): Add declaration.
1471 * ada-lang.c (ada_is_exception_sym)
1472 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1473 (sort_remove_dups_ada_exceptions_list)
1474 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1475 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1476 (ada_exceptions_list_1, ada_exceptions_list)
1477 (info_exceptions_command): New function.
1478 (_initialize_ada_language): Add "info exception" command.
1479
1480 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1481
1482 PR python/15629
1483 * NEWS: Add linetable feature.
1484 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1485 * python/py-linetable.c: New file.
1486 * python/py-symtab.c (stpy_get_linetable): New function.
1487 * python/python-internal.h (symtab_to_linetable_object): Declare.
1488 (gdbpy_initialize_linetable): Ditto.
1489 * python/python.c (_initialize_python): Call
1490 gdbpy_initialize_linetable.
1491
1492 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1493
1494 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1495 the documentation of fields "except_string" and "condition".
1496 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1497 CONDITION on the heap before passing it to
1498 create_ada_exception_catchpoint.
1499 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1500 CONDITION.
1501
1502 2013-11-11 Tom Tromey <tromey@redhat.com>
1503
1504 * config.in, configure: Rebuild.
1505 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1506
1507 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1508
1509 * remote-sim.c (gdbsim_detach): Break declaration into
1510 shorter lines. No code change.
1511
1512 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1513
1514 * remote-sim.c (gdbsim_detach): Fix prototype.
1515
1516 2013-11-08 Doug Evans <dje@google.com>
1517
1518 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1519 (create_debug_types_hash_table): Only print debugging messages for
1520 each TU if dwarf2-read >= 2.
1521 (process_queue): Ditto.
1522 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1523 Update doc string.
1524
1525 2013-11-08 Tom Tromey <tromey@redhat.com>
1526
1527 * configure: Rebuild.
1528 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1529
1530 2013-11-08 Tom Tromey <tromey@redhat.com>
1531
1532 * configure, config.in: Rebuild.
1533 * configure.ac: Remove unused configury.
1534
1535 2013-11-08 Tom Tromey <tromey@redhat.com>
1536
1537 * m32c-tdep.c: Use gdb_string.h.
1538
1539 2013-11-08 Tom Tromey <tromey@redhat.com>
1540
1541 * configure, config.in: Rebuild.
1542 * configure.ac: Remove all link.h-related checks.
1543
1544 2013-11-08 Tom Tromey <tromey@redhat.com>
1545
1546 * acinclude.m4: Include common.m4.
1547 * common/common.m4: New file.
1548 * configure, config.in: Rebuild.
1549 * configure.ac: Use GDB_AC_COMMON.
1550
1551 2013-11-08 Doug Evans <dje@google.com>
1552
1553 * NEWS: Mention that "set debug symtab-create" now accepts a
1554 verbosity level.
1555 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1556 to set the symtab's primary flag.
1557 * jit.c (finalize_symtab): Ditto.
1558 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1559 * symfile.c (allocate_symtab): Only print debugging messages for
1560 symtab_create_debug levels 2 and higher.
1561 * symtab.c (symtab_create_debug): Change type to unsigned int.
1562 (set_symtab_primary): New function.
1563 (_initialize_symtab): Change "set debug symtab-create" to a
1564 zuinteger option.
1565 * symtab.h (set_symtab_primary): Declare.
1566 (symtab_create_debug): Update decl.
1567
1568 2013-11-08 Tom Tromey <tromey@redhat.com>
1569
1570 * aix-thread.c (aix_thread_detach): Update.
1571 * corelow.c (core_detach): Update.
1572 * darwin-nat.c (darwin_detach): Update.
1573 * dec-thread.c (dec_thread_detach): Update.
1574 * gnu-nat.c (gnu_detach): Update.
1575 * go32-nat.c (go32_detach): Update.
1576 * inf-ptrace.c (inf_ptrace_detach): Update.
1577 * inf-ttrace.c (inf_ttrace_detach): Update.
1578 * linux-fork.c (linux_fork_detach): Update.
1579 * linux-fork.h (linux_fork_detach): Update.
1580 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1581 local for const-correctness.
1582 * linux-thread-db.c (thread_db_detach): Update.
1583 * monitor.c (monitor_detach): Update.
1584 * nto-procfs.c (procfs_detach): Update.
1585 * procfs.c (procfs_detach): Update.
1586 * record.c (record_detach): Update.
1587 * record.h (record_detach): Update.
1588 * remote-m32r-sdi.c (m32r_detach): Update.
1589 * remote-mips.c (mips_detach): Update.
1590 * remote-sim.c (gdbsim_detach): Update.
1591 * remote.c (remote_detach_1, remote_detach)
1592 (extended_remote_detach): Update.
1593 * sol-thread.c (sol_thread_detach): Update.
1594 * target.c (target_detach): Make "args" const.
1595 (init_dummy_target): Update.
1596 * target.h (struct target_ops) <to_detach>: Make argument const.
1597 (target_detach): Likewise.
1598 * windows-nat.c (windows_detach): Update.
1599
1600 2013-11-07 Doug Evans <dje@google.com>
1601
1602 PR 11786
1603 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1604 and align fields for PT_GNU_RELRO segments.
1605
1606 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1607
1608 PR python/15747
1609 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1610
1611 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1612
1613 * NEWS: Document Python temporary breakpoint support.
1614 * python/py-breakpoint.c (bppy_get_temporary): New function.
1615 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1616 to temporary if True.
1617
1618 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1619
1620 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1621 removed to allow analyzing unconditional branch instructions
1622 with PC-relative offsets of zero.
1623
1624 2013-11-07 Yao Qi <yao@codesourcery.com>
1625
1626 * mi/mi-cmd-var.c: Include "language.h".
1627 (mi_cmd_var_info_expression): Get language name from
1628 language_defn.
1629 * varobj.c (varobj_language_string): Remove.
1630 (variable_language): Remove declaration.
1631 (languages): Remove.
1632 (varobj_get_language): Change the type of return value.
1633 (variable_language): Remove.
1634 * varobj.h (enum varobj_languages): Remove.
1635 (varobj_language_string): Remove declaration.
1636 (varobj_get_language): Update declaration.
1637
1638 2013-11-07 Yao Qi <yao@codesourcery.com>
1639
1640 * language.h (struct language_defn) <la_natural_name>: New
1641 field.
1642 * ada-lang.c (ada_language_defn): Initialize field
1643 'la_natural_name'.
1644 * c-lang.c (c_language_defn): Likewise.
1645 (cplus_language_defn, asm_language_defn): Likewise.
1646 * d-lang.c (d_language_defn): Likewise.
1647 * f-lang.c (f_language_defn): Likewise.
1648 * go-lang.c (go_language_defn): Likewise.
1649 * jv-lang.c (java_language_defn): Likewise.
1650 * language.c (unknown_language_defn ): Likewise.
1651 (auto_language_defn): Likewise.
1652 * m2-lang.c (m2_language_defn): Likewise.
1653 * objc-lang.c (objc_language_defn): Likewise.
1654 * opencl-lang.c (opencl_language_defn): Likewise.
1655 * p-lang.c (pascal_language_defn): Likewise.
1656
1657 2013-11-07 Yao Qi <yao@codesourcery.com>
1658
1659 * language.c (language_str): Return const char *.
1660 (add_language): Add const to 'language_names'
1661 * language.h (struct language_defn) <la_name>: Add const.
1662 (language_str: Update declaration.
1663
1664 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * s390-linux-nat.c (s390_read_description): Consider the TE field
1667 in the HWCAP for determining 'have_regset_tdb'.
1668
1669 2013-11-06 Will Newton <will.newton@linaro.org>
1670
1671 PR gdb/12866
1672 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1673 values. (read_partial_die): Likewise.
1674
1675 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1676
1677 PR cli/16122
1678 * top.c (command_line_input): Unify interactivity tests to use
1679 input_from_terminal_p.
1680 * event-top.c (command_line_handler): Likewise.
1681
1682 2013-11-06 Yao Qi <yao@codesourcery.com>
1683
1684 * Makefile.in (check-perf): New target.
1685
1686 2013-11-05 Will Newton <will.newton@linaro.org>
1687
1688 PR gdb/7670
1689 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1690 (arm_print_float_info): Likewise.
1691
1692 2013-11-04 Anton Blanchard <anton@samba.org>
1693
1694 * target.c (memory_xfer_partial): Cap write to 4KB.
1695
1696 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1697
1698 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1699 probe scan even when the arch provides no get_longjmp_target.
1700
1701 2013-10-31 Pedro Alves <palves@redhat.com>
1702
1703 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1704 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1705 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1706 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1707 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1708 <bpstat handling>: If the bpstat chain wants the signal to be
1709 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1710 GDB_SIGNAL_TRAP.
1711
1712 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1713
1714 * breakpoint.c (update_watchpoint): Update error message and add
1715 an additional error message.
1716
1717 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1718
1719 * s390-tdep.h: Rename to...
1720 * s390-linux-tdep.h: ...here.
1721 * s390-tdep.c: Rename to...
1722 * s390-linux-tdep.c: ...here. Adjust #include.
1723 * s390-nat.c: Rename to...
1724 * s390-linux-nat.c: ...here. Adjust #include.
1725 * config/s390/s390.mh: Rename to...
1726 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1727 s390-linux-nat.o.
1728 * configure.host: Reflect host rename "s390" -> "linux".
1729 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1730 * Makefile.in (ALL_TARGET_OBS): Likewise.
1731 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1732 s390-linux-tdep.h.
1733 (ALLDEPFILES): Reflect rename of .c files.
1734
1735 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1736
1737 * s390-nat.c: Whitespace cleanup.
1738 * s390-tdep.c: Likewise.
1739 * s390-tdep.h: Remove empty line at end of file.
1740
1741 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1742
1743 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1744 siginfo_size.
1745
1746 2013-10-29 Tom Tromey <tromey@redhat.com>
1747
1748 * utils.c (reg): Move undefinition...
1749 * gdb_curses.h: ... here. Update comment to mention AIX.
1750
1751 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1752
1753 * exec.h (add_target_sections_of_objfile): New declaration.
1754 * exec.c (add_target_sections_of_objfile): New function.
1755 * symfile.c (add_symbol_file_command): Update current target sections.
1756 (remove_symbol_file_command): New command.
1757 (symfile_free_objfile): New function.
1758 (_initialize_symfile): Register observer for free_objfile events.
1759 * NEWS: Add description of the remove-symbol-file command.
1760 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1761 * objfiles.c (free_objfile): Notify free_objfile.
1762 (is_addr_in_objfile): New function.
1763 * objfiles.h (is_addr_in_objfile): New declaration.
1764 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1765 events instead of solib_unloaded events.
1766 (_initialize_printcmd): Register observer for free_objfile instead
1767 of solib_unloaded notifications.
1768 * solib.c (remove_user_added_objfile): New function.
1769 (_initialize_symfile): Add remove-symbol-file.
1770
1771 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1772
1773 * infcmd.c (default_print_one_register_info): Use val_print to
1774 print all values even optimized out or unavailable ones. Don't
1775 try to print a raw form of optimized out or unavailable values.
1776
1777 2013-10-29 Yao Qi <yao@codesourcery.com>
1778
1779 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1780 parameter 'arg' instead of from program_space_data.
1781 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1782 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1783 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1784 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1785 * inflow.c (inflow_inferior_data_cleanup): Get data from
1786 parameter 'arg' instead of inferior_data.
1787 * registry.h: Add comments.
1788
1789 2013-10-28 Pedro Alves <palves@redhat.com>
1790
1791 * breakpoint.c (watchpoints_triggered)
1792 <!target_stopped_data_address>: Hardcode return 1.
1793
1794 2013-10-28 Pedro Alves <palves@redhat.com>
1795
1796 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1797 level and reindent.
1798
1799 2013-10-28 Pedro Alves <palves@redhat.com>
1800
1801 * infrun.c (process_event_stop_test): New function, factored out
1802 from handle_inferior_event.
1803 (handle_inferior_event): 'process_event_stop_test' is now a
1804 function instead of a goto label -- adjust.
1805
1806 2013-10-28 Pedro Alves <palves@redhat.com>
1807
1808 * infrun.c (handle_inferior_event): Move process_event_stop_test
1809 goto label to the else branch of the ecs->random_signal check,
1810 along with FRAME and GDBARCH re-fetching.
1811
1812 2013-10-28 Pedro Alves <palves@redhat.com>
1813
1814 * infrun.c (switch_back_to_stepped_thread): New function, factored
1815 out from handle_inferior_event.
1816 (handle_inferior_event): Adjust to call
1817 switch_back_to_stepped_thread. Call it also at the tail of the
1818 random signal handling, and return, instead of also handling
1819 random signals just before the stepping tests.
1820
1821 2013-10-28 Pedro Alves <palves@redhat.com>
1822
1823 * infrun.c (clear_stop_func): Delete.
1824 (handle_inferior_event): Don't call clear_stop_func and don't
1825 clear 'ecs->random_signal'.
1826
1827 2013-10-27 Yao Qi <yao@codesourcery.com>
1828
1829 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
1830 (varobj_create, varobj_get_path_expr): Update.
1831 (varobj_value_has_mutated, varobj_update): Likewise.
1832 (create_child_with_value, new_root_variable): Likewise.
1833 (number_of_children, name_of_variable): Likewise.
1834 (value_of_child, my_value_of_variable): Likewise.
1835 (varobj_value_is_changeable_p): Likewise.
1836
1837 2013-10-25 Yao Qi <yao@codesourcery.com>
1838
1839 * language.h (struct lang_varobj_ops): Declare.
1840 (struct language_defn) <la_varobj_ops>: New field.
1841 * ada-lang.c: Include "varobj.h"
1842 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
1843 ada_varobj_ops.
1844 * c-lang.c: Include "varobj.h"
1845 (c_language_defn): Initialize field 'la_varobj_ops' with
1846 c_varobj_ops.
1847 (cplus_language_defn): Initialize field 'la_varobj_ops' with
1848 cplus_varobj_ops.
1849 (asm_language_defn): Initialize field 'la_varobj_ops' with
1850 default_varobj_ops.
1851 (minimal_language_defn): Likewise.
1852 * d-lang.c (d_language_defn): Likewise.
1853 * f-lang.c (f_language_defn): Likewise.
1854 * go-lang.c (go_language_defn): Likewise.
1855 * m2-lang.c (m2_language_defn): Likewise.
1856 * objc-lang.c (objc_language_defn): Likewise.
1857 * opencl-lang.c (opencl_language_defn): Likewise.
1858 * p-lang.c (pascal_language_defn): Likewise.
1859 * language.c (unknown_language_defn): Likewise.
1860 (auto_language_defn): Likewise.
1861 (local_language_defn): Likewise.
1862 * jv-lang.c (java_language_defn): Initialize field
1863 'la_varobj_ops' with java_varobj_ops.
1864 * varobj.c (varobj_create): Update.
1865 * varobj.h (default_varobj_ops): Define macro.
1866
1867 2013-10-25 Pedro Alves <palves@redhat.com>
1868
1869 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
1870 static field value.
1871 (cp_print_static_field): If the value is entirely optimized out,
1872 print <optimized out> here.
1873 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
1874 static field value.
1875 * p-valprint.c (pascal_object_print_static_field): If the value is
1876 entirely optimized out, print <optimized out> here.
1877 * valops.c (do_search_struct_field)
1878 (value_struct_elt_for_reference): No longer handle a NULL static
1879 field value.
1880 * value.c (value_static_field): Return an optimized out value
1881 instead of NULL.
1882
1883 2013-10-25 Yao Qi <yao@codesourcery.com>
1884
1885 * remote.c (remote_traceframe_info): Return early if
1886 traceframe is not selected.
1887
1888 2013-10-25 Yao Qi <yao@codesourcery.com>
1889
1890 * tracepoint.c (traceframe_fun): Remove.
1891 (traceframe_sal): Remove.
1892 (set_traceframe_context): Add local variables.
1893
1894 2013-10-25 Joel Brobecker <brobecker@adacore.com>
1895
1896 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
1897 and parameter name.
1898
1899 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1900
1901 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
1902 failure from register information collection.
1903
1904 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
1905
1906 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
1907 member.
1908 (linux_corefile_thread_callback): Update accordingly.
1909 (linux_make_corefile_notes): Likewise.
1910
1911 2013-10-24 Pedro Alves <palves@redhat.com>
1912
1913 * NEWS (New options): Mention set/show startup-with-shell.
1914 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
1915 instead of 3.
1916 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
1917 startup-with-shell'.
1918 (show_startup_with_shell): New function.
1919 (_initialize_fork_child): Register the set/show startup-with-shell
1920 commands.
1921 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
1922 * inf-ttrace.c (inf_ttrace_him): Remove comment.
1923 * procfs.c (procfs_init_inferior): Remove comment.
1924 * infcmd.c (startup_with_shell): New global.
1925 * inferior.h (startup_with_shell): Declare global.
1926 (STARTUP_WITH_SHELL): Delete.
1927 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
1928
1929 2013-10-23 Pedro Alves <palves@redhat.com>
1930
1931 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
1932 * common/signals.c: Include "gdb_assert.h".
1933 (signals): New field 'symbol'.
1934 (SET): Use the 'symbol' parameter.
1935 (gdb_signal_to_symbol_string): New function.
1936 * infrun.c (handle_inferior_event) <random signal>: In debug
1937 output, print the random signal enum as string in addition to its
1938 number.
1939 * target/waitstatus.c (target_waitstatus_to_string): Print the
1940 signal's enum value as string instead of the (POSIX) signal name.
1941
1942 2013-10-23 Gary Benson <gbenson@redhat.com>
1943
1944 PR 16013
1945 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
1946 from 32 to 18. Adjusted fscanf format string accordingly.
1947 (Avoids leaving cmd unterminated.)
1948 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
1949 trun, retn or extra. (Avoids leaving extra unterminated.) Check
1950 that local_address and remote_address will not overflow.
1951 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
1952 leaving dependencies unterminated. Parse size as "%u" to match
1953 definition.
1954
1955 2013-10-22 Pedro Alves <palves@redhat.com>
1956
1957 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
1958 set ecs->random signal.
1959
1960 2013-10-22 Pedro Alves <palves@redhat.com>
1961
1962 * infrun.c (keep_going): Update comments.
1963
1964 2013-10-22 Pedro Alves <palves@redhat.com>
1965
1966 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
1967 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
1968
1969 2013-10-22 Pedro Alves <palves@redhat.com>
1970
1971 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
1972 GDB_EXC_BAD_ACCESS.
1973 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
1974 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
1975 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
1976 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
1977 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
1978 (GDB_SIGNAL_LAST): Change description string.
1979 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
1980 Adjust to signal renaming.
1981 * darwin-nat.c (darwin_decode_message): Likewise.
1982
1983 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
1984
1985 * MAINTAINERS (Write After Approval): Add myself to the list.
1986
1987 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
1988
1989 * breakpoint.c (update_watchpoint): If hardware watchpoints are
1990 forced off, downgrade them to software watchpoints if possible,
1991 and error out if not possible.
1992 (watch_command_1): Move watchpoint type selection closer to
1993 watchpoint creation, and extend the comments.
1994
1995 2013-10-18 Pedro Alves <palves@redhat.com>
1996
1997 PR gdb/16062
1998 * infrun.c (handle_inferior_event): Keep going if we got a random
1999 signal we should not stop for, instead of falling through to the
2000 step tests.
2001
2002 2013-10-18 Yao Qi <yao@codesourcery.com>
2003
2004 * c-varobj.c (cplus_number_of_children): Fix indentation.
2005
2006 2013-10-17 Tom Tromey <tromey@redhat.com>
2007
2008 PR gdb/15995:
2009 * printcmd.c (printcmd): Call gdb_flush.
2010
2011 2013-10-17 Tom Tromey <tromey@redhat.com>
2012
2013 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2014 (elf_locate_sections): Update.
2015
2016 2013-10-17 Yao Qi <yao@codesourcery.com>
2017
2018 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2019 * ada-varobj.c: Remove the include of ada-varobj.h.
2020 (ada_varobj_get_number_of_children): Declare.
2021 (ada_varobj_get_name_of_child): Make it static.
2022 (ada_varobj_get_path_expr_of_child): Likewise.
2023 (ada_varobj_get_value_of_child): Likewise.
2024 (ada_varobj_get_type_of_child): Likewise.
2025 (ada_varobj_get_value_of_array_variable): Likewise.
2026 * ada-varobj.h: Remove.
2027
2028 2013-10-17 Yao Qi <yao@codesourcery.com>
2029
2030 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2031 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2032 * ada-varobj.c: Include "varobj.h".
2033 (ada_number_of_children): New. Moved from varobj.c.
2034 (ada_name_of_variable, ada_name_of_child): Likewise.
2035 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2036 (ada_type_of_child, ada_value_of_variable): Likewise.
2037 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2038 (ada_varobj_ops): New.
2039 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2040 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2041 * gdbtypes.h (get_target_type): Declare.
2042 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2043 "ada-lang.h".
2044 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2045 (ANONYMOUS_UNION_NAME): Likewise.
2046 (get_type, get_value_type, get_target_type): Remove declarations.
2047 (value_get_print_value, varobj_value_get_print_value): Likewise.
2048 (c_number_of_children, c_name_of_variable): Likewise.
2049 (c_name_of_child, c_path_expr_of_child): Likewise.
2050 (c_value_of_child, c_type_of_child): Likewise.
2051 (c_value_of_variable, cplus_number_of_children): Likewise.
2052 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2053 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2054 (cplus_value_of_child, cplus_type_of_child): Likewise.
2055 (cplus_value_of_variable, java_number_of_children): Likewise.
2056 (java_name_of_variable, java_name_of_child): Likewise.
2057 (java_path_expr_of_child, java_value_of_child): Likewise.
2058 (java_type_of_child, java_value_of_variable): Likewise.
2059 (ada_number_of_children, ada_name_of_variable): Likewise.
2060 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2061 (ada_value_of_child, ada_type_of_child): Likewise.
2062 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2063 (ada_value_has_mutated): Likewise.
2064 (struct language_specific): Move it to varobj.h.
2065 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2066 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2067 Callers update.
2068 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2069 Make it extern.
2070 (is_anonymous_child): Move it to c-varobj.c and rename to
2071 varobj_is_anonymous_child. Caller update.
2072 (get_type): Move it to c-varobj.c.
2073 (get_value_type): Rename it varobj_get_value_type. Make it
2074 extern.
2075 (get_target_type): Move it gdbtypes.c.
2076 (varobj_formatted_print_options): New function.
2077 (value_get_print_value): Rename it to
2078 varobj_value_get_print_value and make it extern.
2079 (varobj_value_is_changeable_p): Make it extern.
2080 (adjust_value_for_child_access): Move it to c-varobj.c.
2081 (default_value_is_changeable_p): Rename it to
2082 varobj_default_value_is_changeable_p. Make it extern.
2083 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2084 (c_name_of_child, c_path_expr_of_child): Likewise.
2085 (c_value_of_child, c_type_of_child): Likewise.
2086 (c_value_of_variable, cplus_number_of_children): Likewise.
2087 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2088 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2089 (cplus_value_of_child, cplus_type_of_child): Likewise.
2090 (cplus_value_of_variable): Likewise.
2091 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2092 (java_name_of_child, java_path_expr_of_child): Likewise.
2093 (java_value_of_child, java_type_of_child): Likewise.
2094 (java_value_of_variable): Likewise.
2095 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2096 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2097 (ada_value_of_child, ada_type_of_child): Likewise.
2098 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2099 (ada_value_has_mutated): Likewise.
2100 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2101 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2102 (c_varobj_ops, cplus_varobj_ops): Declare.
2103 (java_varobj_ops, ada_varobj_ops): Declare.
2104 (varobj_default_value_is_changeable_p): Declare.
2105 (varobj_value_is_changeable_p): Declare.
2106 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2107 (varobj_get_path_expr_parent): Declare.
2108 (varobj_value_get_print_value): Declare.
2109 (varobj_formatted_print_options): Declare.
2110 (varobj_restrict_range): Declare.
2111
2112 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2113
2114 * target/waitstatus.h (target_waitkind): Remove spurious
2115 character from the comments.
2116
2117 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2118
2119 * gdbarch.sh (get_longjmp_target): Add method documentation.
2120 * gdbarch.h: Regenerate.
2121
2122 2013-10-16 Tom Tromey <tromey@redhat.com>
2123
2124 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2125 label.
2126
2127 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2128
2129 * gcore.in: Call GDB using the full path to the gcore script.
2130 Error out if the GDB binary is not found.
2131
2132 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2133
2134 PR gdb/16014
2135 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2136 sizeof.
2137
2138 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2139
2140 PR gdb/16042
2141 * target.c (target_disable_btrace): Fix invalid return value for
2142 void function.
2143 (target_teardown_btrace): Likewise.
2144
2145 2013-10-14 Yao Qi <yao@codesourcery.com>
2146
2147 * varobj.c (struct varobj): Move most of the fields to
2148 varobj.h.
2149 (struct varobj_dynamic): New struct.
2150 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2151 (varobj_has_more): Likewise.
2152 (dynamic_varobj_has_child_method): Likewise.
2153 (update_dynamic_varobj_children): Likewise.
2154 (varobj_get_num_children): Likewise.
2155 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2156 (install_new_value_visualizer): Likewise.
2157 (install_new_value_visualizer, install_new_value): Likewise.
2158 (varobj_update, new_variable, free_variable): Likewise.
2159 (my_value_of_variable, value_get_print_value): Likewise.
2160 (install_visualizer): Change the type of parameter 'var' to
2161 'struct varobjd_dynamic *'. Callers update.
2162 * varobj.h (struct varobj): Moved from varobj.c.
2163 (struct varobj) <dynamic>: New field.
2164
2165 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2166
2167 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2168 as the preferred name of r30.
2169 * nios2-linux-tdep.c (reg_offsets): Likewise.
2170 * features/nios2-cpu.xml: Likewise.
2171 * features/nios2-linux.c: Regenerated.
2172 * features/nios2.c: Regenerated.
2173 * regformats/nios2-linux.dat: Regenerated.
2174
2175 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2176
2177 Canonicalize directories for EXEC_FILENAME.
2178 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2179 exec_filename.
2180 * utils.c (gdb_realpath_keepfile): New function.
2181 * utils.h (gdb_realpath_keepfile): New declaration.
2182
2183 2013-10-11 Doug Evans <dje@google.com>
2184
2185 * Makefile.in (GDBFLAGS): New variable.
2186 (run): New rule.
2187
2188 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2189
2190 * NEWS: Add entry documenting the new "-catch-assert" and
2191 "-catch-exception" GDB/MI commands.
2192
2193 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2194
2195 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2196 "enabled".
2197 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2198 "enabled". Set B->ENABLE_STATE accordingly.
2199 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2200 ada-lang.c.
2201 (create_ada_exception_catchpoint): Add declaration.
2202 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2203 (create_ada_exception_catchpoint): Make non-static. Add new
2204 parameter "disabled". Use it in call to
2205 init_ada_exception_breakpoint.
2206 (catch_ada_exception_command): Add parameter "enabled" in call
2207 to create_ada_exception_catchpoint.
2208 (catch_assert_command): Likewise.
2209
2210 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2211 Add declarations.
2212 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2213 "catch-exception" commands.
2214 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2215 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2216
2217 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2218
2219 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2220 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2221 of all its enumerates with "ada_". Update the rest of this
2222 file throughout.
2223
2224 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2225
2226 * ada-lang.c (ada_decode_exception_location): Delete.
2227 (create_ada_exception_catchpoint): Remove arguments "sal",
2228 "addr_string" and "ops". Add argument "ex_kind" instead.
2229 Adjust implementation accordingly, calling ada_exception_sal
2230 to get the entities it no longer gets passed as arguments.
2231 Document the function's arguments.
2232 (catch_ada_exception_command): Use catch_ada_exception_command_split
2233 instead of ada_decode_exception_location, and update call to
2234 create_ada_exception_catchpoint.
2235 (catch_ada_assert_command_split): Renames
2236 ada_decode_assert_location. Remove parameters "addr_string" and
2237 "ops", and now returns void. Adjust implementation accordingly.
2238 Update the function documentation.
2239 (catch_assert_command): Use catch_ada_assert_command_split
2240 instead of ada_decode_assert_location. Update call to
2241 create_ada_exception_catchpoint.
2242
2243 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2244
2245 * utils.h (perror_warning_with_name): Add declaration.
2246 * utils.c (perror_warning_with_name): New function.
2247 * cli/cli-cmds.c (source_script_with_search): Add call to
2248 perror_warning_with_name if from_tty is nul.
2249
2250 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2251
2252 * utils.c (perror_string): New function, extracted out of
2253 throw_perror_with_name.
2254 (throw_perror_with_name): Rework to use perror_string.
2255
2256 2013-10-11 Yao Qi <yao@codesourcery.com>
2257
2258 * remote.c (discard_pending_stop_replies_in_queue): Update
2259 declaration.
2260 (struct stop_reply) <rs>: New field.
2261 (remove_stop_reply_of_remote_state): New function.
2262 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2263 Callers update. Pass remove_stop_reply_of_remote_state to
2264 QUEUE_iterate.
2265 (remote_parse_stop_reply): Initialize field 'rs'.
2266
2267 2013-10-10 Will Newton <will.newton@linaro.org>
2268
2269 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2270 linux_init_abi.
2271
2272 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2273
2274 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2275 serial_baud_show_cmd.
2276 (_initialize_cli_cmds): Delete the code creating the
2277 "set/show remotebaud" commands.
2278 * serial.c (baud_rate): Move here from top.c.
2279 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2280 (_initialize_serial): Create "set/show serial baud" commands.
2281 Add "set/show remotebaud" command aliases.
2282 * top.c (baud_rate): Moved to serial.c.
2283 * NEWS: Document the new "set/show serial baud" commands,
2284 replacing "set/show remotebaud".
2285
2286 2013-10-09 Pedro Alves <palves@redhat.com>
2287
2288 * breakpoint.c (insert_bp_location): Use memory_error_message to
2289 build the memory error string.
2290 * c-lang.c: Include "gdbcore.h".
2291 (c_get_string): Use memory_error to throw error.
2292 (target_xfer_memory_error): Delete.
2293 (memory_error_message): New, factored out from
2294 target_xfer_memory_error.
2295 (memory_error): Change parameter type to target_xfer_error.
2296 Rewrite.
2297 (read_memory): Use memory_error instead of
2298 target_xfer_memory_error.
2299 * gdbcore.h: Include "target.h".
2300 (memory_error): Change parameter type to target_xfer_error.
2301 (memory_error_message): Declare function.
2302 * target.c (target_read_memory, target_read_stack)
2303 (target_write_memory, target_write_raw_memory): Return
2304 TARGET_XFER_E_IO on error. Adjust comments.
2305 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2306 instead of EIO.
2307 * target.h (target_read, target_insert_breakpoint)
2308 (target_remove_breakpoint): Adjust comments.
2309 * valprint.c (partial_memory_read): Rename parameter, and adjust
2310 comment.
2311 (val_print_string): Use memory_error_message to build the memory
2312 error string.
2313
2314 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2315
2316 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2317 result variable. Rename variable fopen_e_ever_failed to
2318 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2319
2320 2013-10-09 Pedro Alves <palves@redhat.com>
2321
2322 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2323 (monitor_write_memory_longlongs, monitor_write_memory_block):
2324 Constify 'myaddr' parameter.
2325 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2326 helper.
2327 (monitor_xfer_partial): New function.
2328 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2329 hook. Install a to_xfer_partial hook.
2330
2331 2013-10-09 Tom Tromey <tromey@redhat.com>
2332
2333 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2334 bfd_get_alt_debug_link_info.
2335
2336 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2337
2338 New flag OBJF_NOT_FILENAME.
2339 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2340 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2341 allocate_objfile.
2342 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2343 symbol_file_add_from_bfd.
2344 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2345 allocate_objfile.
2346 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2347 NULL.
2348 * objfiles.h (OBJF_NOT_FILENAME): New.
2349
2350 2013-10-08 Tom Tromey <tromey@redhat.com>
2351
2352 * Makefile.in (SFILES): Add build-id.c.
2353 (HFILES_NO_SRCDIR): Add build-id.h.
2354 * build-id.c: New file, largely from elfread.c. Modified
2355 most functions.
2356 * build-id.h: New file.
2357 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2358 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2359 Search for dwz file using build-id.
2360 * elfread.c (build_id_bfd_get, build_id_verify)
2361 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2362
2363 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2364
2365 * ada-lang.c (compare_names_with_case): Renamed from
2366 compare_names, adding a new parameter "casing" and its handling.
2367 New function documentation.
2368 (compare_names): New function, implemented using
2369 compare_names_with_case.
2370
2371 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2372
2373 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2374
2375 2013-10-07 Tom Tromey <tromey@redhat.com>
2376
2377 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2378 demangled_names_hash.
2379 (free_objfile): Don't delete the demangled_names_hash.
2380 * objfiles.h (struct objfile_per_bfd_storage)
2381 <demangled_names_hash>: New field.
2382 (struct objfile) <demangled_names_hash>: Move to
2383 objfile_per_bfd_storage.
2384 * symfile.c (reread_symbols): Don't delete the
2385 demangled_names_hash.
2386 * symtab.c (create_demangled_names_hash): Update.
2387 (symbol_set_names): Update.
2388
2389 2013-10-07 Tom Tromey <tromey@redhat.com>
2390
2391 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2392 needs_relocations>: New fields.
2393 (gdb_bfd_requires_relocations): New function.
2394 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2395 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2396 the BFD needs relocations applied.
2397
2398 2013-10-07 Pedro Alves <palves@redhat.com>
2399
2400 PR breakpoints/11568
2401 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2402 the thread list" instead of "gone".
2403
2404 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2405
2406 * NEWS: Mention new convenience variable $_exitsignal.
2407 * corelow.c (core_open): Reset exit convenience variables. Set
2408 $_exitsignal to the uncaught signal which generated the corefile.
2409 * infrun.c (handle_inferior_event): Reset exit convenience
2410 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2411 (clear_exit_convenience_vars): New function.
2412 * inferior.h (clear_exit_convenience_vars): New prototype.
2413
2414 2013-10-06 Yao Qi <yao@codesourcery.com>
2415
2416 * varobj.h: Add comments to enum varobj_languages.
2417
2418 2013-10-04 Doug Evans <dje@google.com>
2419
2420 Add support for DWP file format version 2.
2421 * NEWS: Mention support for DWP file format version 2.
2422 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2423 union of asection, containing_section. New fields virtual_offset
2424 and is_virtual. Change type of readin filed from int to char.
2425 (dwo_sections, dwo_file): Tweak comments.
2426 (dwp_v2_section_ids): New enum.
2427 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2428 str_offsets, types.
2429 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2430 All uses updated.
2431 (virtual_v2_dwo_sections): New struct.
2432 (dwp_hash_table): New fields version, nr_columns. Change type of
2433 section_pool field to a union.
2434 (dwp_file): New field version.
2435 (dwarf2_has_info): Check for virtual sections.
2436 (get_containing_section): New function.
2437 (get_section_bfd_owner, get_section_bfd_section): Call it.
2438 (dwarf2_locate_sections): Update.
2439 (dwarf2_section_empty_p): Update.
2440 (dwarf2_read_section): Handle virtual sections.
2441 (locate_dwz_sections): Update.
2442 (create_dwp_hash_table): Document and handle V2 format.
2443 (locate_v1_virtual_dwo_sections): Renamed from
2444 locate_virtual_dwo_sections and update. All callers updated.
2445 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2446 Delete arg htab. Rename arg section_index to unit_index.
2447 All callers updated.
2448 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2449 All uses updated.
2450 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2451 (lookup_dwo_unit_in_dwp): Add V2 support.
2452 (dwarf2_locate_dwo_sections): Update.
2453 (dwarf2_locate_common_dwp_sections): Renamed from
2454 dwarf2_locate_dwp_sections and update. All callers updated.
2455 (dwarf2_locate_v2_dwp_sections): New function.
2456 (open_and_init_dwp_file): Add V2 support.
2457 (read_str_index): New locals str_section, str_offsets_section.
2458
2459 2013-10-04 Pedro Alves <palves@redhat.com>
2460
2461 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2462 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2463 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2464 describing comments with references to ptid.h.
2465 * common/ptid.h: Remove intro description of constructors,
2466 accessors and predicates.
2467 (struct ptid): Reformat.
2468 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2469 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2470 describing comments.
2471
2472 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2473
2474 * aix-thread.c (sync_threadlists): Add missing ')' in call
2475 to ptid_build.
2476
2477 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2478
2479 * procfs.c (procfs_init_inferior): Fix typo causing the build
2480 to fail.
2481
2482 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2483
2484 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2485
2486 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2487
2488 * mi/mi-main.c (run_one_inferior): Add function description.
2489 Make ARG a pointer to an integer whose value determines whether
2490 we should "run" or "start" the program.
2491 (mi_cmd_exec_run): Add handling of the "--start" option.
2492 Reject all other command-line options.
2493 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2494
2495 2013-10-04 Yao Qi <yao@codesourcery.com>
2496
2497 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2498 (struct notif_client) <pending_event>: Moved
2499 to struct remote_notif_state.
2500 <id>: New field.
2501 (struct remote_notif_state) <pending_event>: New field.
2502 (notif_event_xfree): Declare.
2503 * remote-notif.c (handle_notification): Adjust.
2504 (notif_event_xfree): New function.
2505 (do_notif_event_xfree): Call notif_event_xfree.
2506 (remote_notif_state_xfree): Call notif_event_xfree to free
2507 each element in field pending_event.
2508 * remote.c (discard_pending_stop_replies): Remove declaration.
2509 (discard_pending_stop_replies_in_queue): Declare.
2510 (remote_close): Call discard_pending_stop_replies_in_queue
2511 instead of discard_pending_stop_replies.
2512 (remote_start_remote): Adjust.
2513 (stop_reply_xfree): Call notif_event_xfree.
2514 (notif_client_stop): Adjust initialization.
2515 (remote_notif_remove_all): Rename it to ...
2516 (remove_stop_reply_for_inferior): ... this. Update comments.
2517 Don't check INF is NULL.
2518 (discard_pending_stop_replies): Return early if notif_state is
2519 NULL. Adjust. Don't check INF is NULL.
2520 (remote_notif_get_pending_events): Adjust.
2521 (discard_pending_stop_replies_in_queue): New function.
2522 (remote_wait_ns): Likewise.
2523
2524 2013-10-04 Yao Qi <yao@codesourcery.com>
2525
2526 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2527 (notif_queue): Remove.
2528 (remote_notif_process): Add one parameter 'notif_queue'.
2529 Update comments. Callers update.
2530 (remote_async_get_pending_events_token): Remove.
2531 (remote_notif_register_async_event_handler): Remove.
2532 (remote_notif_unregister_async_event_handler): Remove.
2533 (handle_notification): Add parameter 'notif_queue'. Update
2534 comments. Callers update.
2535 (notif_xfree): Remove.
2536 (remote_notif_state_allocate): New function.
2537 (remote_notif_state_xfree): New function.
2538 (_initialize_notif): Remove code to allocate queue.
2539 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2540 (struct remote_notif_state): New.
2541 (handle_notification): Update declaration.
2542 (remote_notif_process): Likewise.
2543 (remote_notif_register_async_event_handler): Remove.
2544 (remote_notif_unregister_async_event_handler): Remove.
2545 (remote_notif_state_allocate): Declare.
2546 (remote_notif_state_xfree): Declare.
2547 * remote.c (struct remote_state) <notif_state>: New field.
2548 (remote_close): Don't call
2549 remote_notif_unregister_async_event_handler. Call
2550 remote_notif_state_xfree.
2551 (remote_open_1): Don't call
2552 remote_notif_register_async_event_handler. Call
2553 remote_notif_state_allocate.
2554
2555 2013-10-04 Yao Qi <yao@codesourcery.com>
2556
2557 * varobj.c (create_child_with_value): Remove 'const' from the
2558 type of parameter 'name'.
2559 (varobj_add_child): Likewise.
2560 (install_dynamic_child): Remove 'const' from the type of
2561 parameter 'name'.
2562 (varobj_add_child): Likewise.
2563 (create_child_with_value): Likewise. Update comments. Don't
2564 duplicate 'name'.
2565 (update_dynamic_varobj_children): Duplicate 'name'
2566 and pass it to install_dynamic_child.
2567
2568 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2569
2570 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2571 conversion logic to occur after PyLong_Check. Comment on order
2572 change significance.
2573 * python/py-arch.c (archpy_disassemble): Comment on order of
2574 conversion for integers and longs.
2575
2576 2013-10-03 Pedro Alves <palves@redhat.com>
2577
2578 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2579 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2580 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2581 PTRACE_O_TRACEFORK is not supported.
2582 (linux_test_for_tracesysgood): New function.
2583 (linux_test_for_tracefork): New function, factored out from
2584 linux_check_ptrace_features, and also don't kill child_pid here.
2585
2586 2013-10-03 Tristan Gingold <gingold@adacore.com>
2587
2588 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2589 Remove verbose error reporting. Use detected state to
2590 thread_set_state call.
2591 (i386_darwin_dr_get): Fix return type. Remove verbose error
2592 report.
2593 Remove trailing spaces.
2594
2595 2013-10-02 Pedro Alves <palves@redhat.com>
2596
2597 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2598 val_print_optimized_out.
2599 * jv-valprint.c (java_print_value_fields): Likewise.
2600 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2601 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2602 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2603 new optimized out value.
2604 * findvar.c (address_from_register): Likewise.
2605 * frame.c (put_frame_register): Tweak error string to say the
2606 register was not saved, rather than optimized out.
2607 * infcmd.c (default_print_one_register_info): Adjust call to
2608 val_print_optimized_out. Use value_of_register instead of
2609 get_frame_register_value.
2610 * mi/mi-main.c (output_register): Use value_of_register instead of
2611 get_frame_register_value.
2612 * valprint.c (valprint_check_validity): Likewise.
2613 (val_print_optimized_out): New value parameter. If the value is
2614 lval_register, print <not saved> instead.
2615 (value_check_printable, val_print_scalar_formatted): Adjust calls
2616 to val_print_optimized_out.
2617 * valprint.h (val_print_optimized_out): New value parameter.
2618 * value.c (struct value) <optimized_out>: Extend comment.
2619 (error_value_optimized_out): New function.
2620 (require_not_optimized_out): Use it. Use a different string for
2621 lval_register values.
2622 * value.h (error_value_optimized_out): New declaration.
2623 * NEWS: Mention <not saved>.
2624
2625 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2626
2627 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2628 strcmp to compare two symtab filenames.
2629
2630 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2631
2632 * symtab.c (search_symbols_equal): Delete.
2633 (sort_search_symbols_remove_dups): Replace call to
2634 search_symbols_equal by call to compare_search_syms,
2635 adjusting as necessary.
2636
2637 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2638
2639 PR python/15579
2640 * python/python.c: Document gdb.execute command in Python help.
2641
2642 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2643
2644 * python/py-frame.c (frame_info_to_frame_object): Use
2645 gdbpy_convert_exception. Clean up Python object on failure.
2646
2647 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2648
2649 * python/lib/gdb/command/frame_filters.py
2650 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2651 (ShowFrameFilterPriority.invoke): Ditto.
2652
2653 2013-10-01 Keith Seitz <keiths@redhat.com>
2654
2655 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2656 (parse_linespec): Make 'argptr' const.
2657 Remove temporary cast of 'argptr' to const char **.
2658 (decode_line_full): Pass const pointer to parse_linespec.
2659 (decode_line_1): Likewise.
2660 (decode_objc): Make local variable 'new_argptr' const.
2661 (find_function_symbols): Remove temporary cast to char *
2662 to find_imps.
2663 * objc-lang.c (find_imps): Make argument 'method' const.
2664 Return const.
2665 * objc-lang.h (find_imps): Likewise.
2666
2667 2013-10-01 Keith Seitz <keiths@redhat.com>
2668
2669 * completer.c (skip_quoted_chars): Make all arguments const.
2670 Return const.
2671 (skip_quoted): Likewise.
2672 * completer.h (skip_quoted_chars): Likewise.
2673 (skip_quoted): Likewise.
2674 * defs.h (skip_quoted): Remove duplicate declaration.
2675 * jv-exp.y: Include completer.h.
2676 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2677 * p-exp.y: Include completer.h.
2678
2679 2013-10-01 Keith Seitz <keiths@redhat.com>
2680
2681 * c-exp.y (parse_number): Make first argument const.
2682 Make a copy of the input to manipulate.
2683 (c_parse_escape): Make first argument const.
2684 Make local variable 'tokptr' const.
2685 (parse_string_or_char): Make first two arguments const.
2686 (macro_original_text): Make const.
2687 (lex_one_token): Make local variable 'tokstart' const.
2688 Likewise for local variables named 'p'.
2689 Cast away const for struct stoken (temporary).
2690 * c-lang.h (c_parse_escpae): Make first argument const.
2691 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2692 const.
2693 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2694 var_string case.
2695 * f-exp.y (parse_number): Make first argument const.
2696 (match_string_literal): Make local variable 'tokstart'
2697 const.
2698 (yylex): Make local variable 'p' const.
2699 Cast away const for struct stoken (temporary).
2700 * go-exp.y (parse_number): Make first argument const.
2701 (parse_string_or_char): Likewise.
2702 Make local variable 'tokstart' const.
2703 (lex_one_token): Likewise for numerous locals called 'p'.
2704 Cast away const for struct stoken (temporary).
2705 * jv-exp.y (parse_number): Make first argument const.
2706 Make local variables 'tokstart' and 'tokptr' const.
2707 Cast away const for call to skip_quoted (temporary).
2708 (yylex): Make local variable 'p' const.
2709 Cast away const for struct stoken (temporary).
2710 * m2-exp.y (parse_number): Make local variable 'p' const.
2711 (yylex): Likewise for 'tokstart'.
2712 Cast away const for struct stoken (temporary).
2713 Make local variable 'p' const.
2714 * macroexp.c (get_character_constant): Pass a const string
2715 to c_parse_escape.
2716 (get_string_literal): Likewise.
2717 (macro_expand_next): Make first argument const.
2718 Cast away const for init_shared_buffer.
2719 * macroexp.h (macro_expand_next): Make first argument const.
2720 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2721 Pass a const string to c_parse_escape.
2722 Make local variables 'p' and 'namestart' const.
2723 * parse.c (lexptr): Make const.
2724 (prev_lexptr): Likewise.
2725 (find_template_name_end): Return const.
2726 Make argument const, too.
2727 (parse_exp_in_context): Make first argument const.
2728 Remove the entire const_hack.
2729 (parse_exp_in_context_1): Make first argument const.
2730 * parser-defs.h (find_template_name_end): Return const.
2731 Make argument const, too.
2732 (lexptr): Make const.
2733 (prev_lexptr): Likewise.
2734 * utils.c (parse_escape): Make second argument const.
2735 * utils.h (parse_escape): Likewise.
2736
2737 2013-10-01 Keith Seitz <keiths@redhat.com>
2738
2739 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2740 is now const.
2741 (block_lookup): Make 'raw_name' and 'name' const.
2742 * ada-lex.l (processString): Update for struct stoken.ptr.
2743 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2744 (operator_stoken): Likewise.
2745 (lex_one_token): Remove temporary cast to char * for
2746 'yylval.sval.ptr'.
2747 * f-exp.y (yylex): Likewise.
2748 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2749 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2750 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2751 'yylval.sval.ptr'.
2752 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2753 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2754 * linespec.c (struct ls_parser): Make 'stream' const.
2755 (find_parameter_list_end): Make argument 'input' and local
2756 variable 'p' const.
2757 (linespec_lexer_lex_string): Make local variables 'start' and
2758 'p' const.
2759 Use skip_spaces_const instead of skip_spaces.
2760 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2761 const.
2762 (parse_linespec): Temporarily cast 'argptr' to const for
2763 'parser->lexer.stream'.
2764 * m2-exp.y (yylex): Remove temporary cast to char * for
2765 'yylval.sval.ptr'.
2766 * objc-lang.c (add_msglist): Make local variable 'p' const.
2767 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2768 (exp : STRING): Make 'sp' const.
2769 (parse_number): Make argument 'p' const.
2770 * parser-defs.h (struct stoken): Make 'ptr' const.
2771
2772 2013-10-01 Doug Evans <dje@google.com>
2773
2774 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2775
2776 2013-10-01 Yao Qi <yao@codesourcery.com>
2777
2778 * varobj.c (c_value_of_root): Remove declaration.
2779 (cplus_value_of_root, java_value_of_root): Likewise.
2780 (ada_value_of_root): Likewise.
2781 (struct language_specific) <value_of_root>: Remove.
2782 (languages): Update initialization.
2783 (check_scope): Move earlier.
2784 (c_value_of_root): Move earlier and rename to ...
2785 (value_of_root_1): ... this.
2786 (value_of_root): Caller update.
2787 (cplus_value_of_root, java_value_of_root): Remove.
2788 (ada_value_of_root): Remove.
2789
2790 2013-10-01 Yao Qi <yao@codesourcery.com>
2791
2792 * varobj.c (varobj_format_string): Remove "unknown".
2793 (languages): Remove the first element.
2794 * varobj.h (enum varobj_languages): Remove vlang_c.
2795
2796 2013-10-01 Yao Qi <yao@codesourcery.com>
2797
2798 * varobj.c (struct language_specific) <language>: Remove.
2799 (languages): Update the initialization.
2800
2801 2013-10-01 Yao Qi <yao@codesourcery.com>
2802
2803 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2804 "solib-target.h". Include "windows-tdep.h".
2805 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2806 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2807 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2808 windows-tdep.o to gdb_target_obs.
2809
2810 2013-10-01 Yao Qi <yao@codesourcery.com>
2811
2812 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2813 "solib-target.h".
2814 (amd64_windows_init_abi): Don't call set_solib_ops and
2815 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2816 windows_init_abi instead.
2817 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2818 "solib-target.h".
2819 (i386_cygwin_init_abi): Don't call set_solib_ops,
2820 set_gdbarch_has_dos_based_file_system and
2821 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2822 windows_init_abi instead.
2823 * windows-tdep.c: Include "solib.h" and "solib-target.h".
2824 (windows_init_abi): New function.
2825 (windows_iterate_over_objfiles_in_search_order): Make it
2826 static.
2827 * windows-tdep.h (windows_init_abi): Declare.
2828 (windows_iterate_over_objfiles_in_search_order): Remove
2829 declaration.
2830
2831 2013-10-01 Jerome Guitton <guitton@adacore.com>
2832
2833 Checked in by Joel Brobecker <brobecker@adacore.com>
2834 * system-gdbinit/elinos.py (get_elinos_environment): Return an
2835 incomplete dictionnary instead of None in case of missing
2836 environment variables.
2837 (elinos_init): in case of an incomplete environment, best
2838 effort to load system libraries instead of abort.
2839
2840 2013-10-01 Joel Brobecker <brobecker@adacore.com>
2841
2842 * ada-lang.c (ada_has_this_exception_support): Ignore
2843 mst_solib_trampoline minimal symbols.
2844
2845 2013-09-30 Tristan Gingold <gingold@adacore.com>
2846
2847 * i386-darwin-nat.c (darwin_complete_target): Install methods for
2848 hardware watchpoint.
2849 (i386_darwin_dr_set): Support 32 and 64 bit states.
2850 (i386_darwin_dr_get): Likewise.
2851 (i386_darwin_dr_set_control): Make static.
2852 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
2853 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
2854
2855 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
2856
2857 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2858 Replace TIDGET with ptid_get_lwp.
2859 Replace GET_LWP with ptid_get_lwp.
2860 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
2861 Replace BUILD_THREAD with ptid_build.
2862 Replace BUILD_LWP with ptid_build.
2863 Replace PIDGET with ptid_get_pid.
2864 Replace TIDGET with ptid_get_lwp.
2865 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
2866 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2867 Replace TIDGET with ptid_get_lwp.
2868 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
2869 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
2870 Replace TIDGET with ptid_get_lwp.
2871 Replace GET_LWP with ptid_get_lwp.
2872 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
2873 * auxv.c: Likewise.
2874 * breakpoint.c: Likewise.
2875 * common/ptid.c (ptid_is_pid): Condense check for
2876 null_ptid and minus_one_ptid.
2877 (ptid_lwp_p): New function.
2878 (ptid_tid_p): New function.
2879 * common/ptid.h: Update comments for accessors.
2880 (ptid_lwp_p): New prototype.
2881 (ptid_tid_p): New prototype.
2882 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
2883 * gcore.c: Replace PIDGET with ptid_get_pid.
2884 * gdbthread.h: Likewise.
2885 * gnu-nat.c: Likewise.
2886 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
2887 Replace TIDGET with ptid_get_lwp.
2888 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
2889 * hppanbsd-nat.c: Likewise.
2890 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
2891 Replace TIDGET with ptid_get_lwp.
2892 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
2893 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
2894 * infcmd.c: Likewise.
2895 * inferior.h: Likewise.
2896 * inflow.c: Likewise.
2897 * infrun.c: Likewise.
2898 * linux-fork.c: Likewise.
2899 * linux-nat.c: Replace PIDGET with ptid_get_pid.
2900 Replace GET_PID with ptid_get_pid.
2901 Replace is_lwp with ptid_lwp_p.
2902 Replace GET_LWP with ptid_get_lwp.
2903 Replace BUILD_LWP with ptid_build.
2904
2905 2013-09-28 Mike Frysinger <vapier@gentoo.org>
2906
2907 * common/linux-btrace.c: Move sys/syscall.h out of the
2908 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
2909 Also check for SYS_perf_event_open before attempting to buid.
2910
2911 2013-09-27 Doug Evans <dje@google.com>
2912
2913 * dwarf2read.c (dwarf2_section_info): Add comment.
2914 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
2915 All uses updated.
2916 (dwarf2_section_empty_p): Rename arg from "info" to "section".
2917 (dwarf2_read_section): Delete unused local "header". Add section
2918 name to error message.
2919 (create_dwo_in_dwp): Tweak comment.
2920 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
2921
2922 * dwarf2read.c (die_reader_specs): Tweak comment.
2923 (get_section_bfd_owner, get_section_bfd_section): New functions.
2924 (get_section_name, get_section_file_name): New functions.
2925 (get_section_id, get_section_flags): New functions.
2926 (*): Use new functions to access section fields.
2927
2928 * dwarf2read.c (struct dwo_file): Add/tweak comments.
2929 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
2930 arg "htab". All callers updated.
2931 (create_debug_types_hash_table): Remove redundant copy of
2932 abbrev_section.
2933 (create_dwo_in_dwp): Tweak comments.
2934 (read_str_index): Tweak comment. Record dwarf form name in static
2935 local.
2936
2937 2013-09-27 Pedro Alves <palves@redhat.com>
2938
2939 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
2940 (remote_filename_p): Add comment.
2941 * remote.c (remote_filename_p): Adjust to use
2942 REMOTE_SYSROOT_PREFIX.
2943 * solib.c (solib_find): When deciding whether we need to add a
2944 directory separator, check whether the sysroot is "remote:"
2945 instead of checking whether the patch has a drive spec. Add
2946 comments.
2947
2948 2013-09-27 Pedro Alves <palves@redhat.com>
2949
2950 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
2951 Delete fields.
2952 (remote_parse_stop_reply): Adjust, setting event->ws.kind
2953 directly.
2954
2955 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 Fix set debug frame output.
2958 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
2959 SENTINEL_FRAME entry lower to match enum frame_type order.
2960
2961 2013-09-26 Pierre Muller <muller@sourceware.org>
2962
2963 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
2964 AMD64_R15_REGNUM when a register index is expected.
2965 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
2966 Substitute in array.
2967 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
2968 (amd64_push_arguments): Substitute in integer_regnum array.
2969
2970 2013-09-25 Doug Evans <dje@google.com>
2971
2972 * objfiles.c (allocate_objfile): Move comment to better place.
2973
2974 New option "set debug symfile on".
2975 * NEWS: Mention "set debug symfile".
2976 * Makefile.in (SFILES): Add symfile-debug.c.
2977 (COMMON_OBS): Add symfile-debug.o.
2978 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
2979 objfile's symbol functions.
2980 * objfiles.h (objfile_set_sym_fns): Declare.
2981 * symfile-debug.c: New file.
2982 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
2983 objfile's symbol functions.
2984 (reread_symbols): Ditto.
2985
2986 * symfile.h (struct sym_fns): Delete member "sym_flavour".
2987 All uses updated.
2988 (add_symtab_fns): Update prototype.
2989 * symfile.c (sym_fns_ptr): Delete. Replace with ...
2990 (registered_sym_fns): ... this.
2991 (symtab_fns): Update.
2992 (add_symtab_fns): New arg "flavour". All callers updated.
2993 (find_sym_fns): Rewrite to use new sym_fns registry.
2994
2995 * symfile.h (struct sym_fns): Add "objfile" argument to
2996 sym_read_linetable. All uses updated.
2997
2998 * symtab.c (domain_name, search_domain_name): New functions.
2999 * symtab.h (domain_name, search_domain_name): Declare.
3000
3001 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3002 map_matching_symbols so objfile is first. All uses updated.
3003 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3004 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3005
3006 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007
3008 PR shlibs/8882
3009 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3010 link map entries.
3011
3012 2013-09-24 Doug Evans <dje@google.com>
3013
3014 * objfiles.c (free_objfile): Move comment.
3015
3016 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3017
3018 * ada-exp.y (string_to_operator): Delete.
3019 (dummy_string_to_ada_operator): Delete.
3020
3021 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3022
3023 Revert:
3024 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3025 amd64-tdep.c.
3026 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3027 call_dummy_integer_regs, and classify.
3028 * amd64-tdep.h (amd64_classify): Add declaration.
3029 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3030 (amd64_reg_class): Delete, moved to i386-tdep.h.
3031 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3032 Replace call to amd64_classify by call to tdep->classify.
3033 (amd64_push_arguments): Get the list of registers to use for
3034 passing integer parameters from the gdbarch tdep structure,
3035 rather than using a hardcoded one. Replace calls to amd64_classify
3036 by calls to tdep->classify.
3037 (amd64_push_dummy_call): Get the register number used for
3038 the "hidden" argument from tdep->call_dummy_integer_regs.
3039 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3040 and tdep->call_dummy_integer_regs. Set tdep->classify.
3041
3042 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3043
3044 Revert:
3045 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3046 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3047 where tdep->memory_args_by_pointer is non-zero.
3048
3049 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3050
3051 Revert:
3052 * i386-tdep.h (struct gdbarch_tdep): Add new field
3053 integer_param_regs_saved_in_caller_frame.
3054 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3055 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3056
3057 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3058
3059 * amd64-windows-tdep.c: #include "value.h"
3060 (amd64_windows_classify): Delete.
3061 (amd64_windows_passed_by_integer_register)
3062 (amd64_windows_passed_by_xmm_register)
3063 (amd64_windows_passed_by_pointer)
3064 (amd64_windows_adjust_args_passed_by_pointer)
3065 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3066 (amd64_windows_push_dummy_call): New functions.
3067 (amd64_windows_init_abi): Remove setting of
3068 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3069 tdep->classify, tdep->memory_args_by_pointer and
3070 tdep->integer_param_regs_saved_in_caller_frame.
3071 Add call to set_gdbarch_push_dummy_call.
3072
3073 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3074
3075 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3076 objfile->original_name.
3077
3078 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3079
3080 Pass down original filename for objfile.
3081 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3082 * elfread.c (elf_symfile_read): Likewise.
3083 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3084 longer set ORIGINAL_NAME.
3085 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3086 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3087 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3088 symbol_file_add_from_bfd call.
3089 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3090 (macho_check_dsym): Add parameter filenamep. Change function comment.
3091 Set *filenamep.
3092 (macho_symfile_read): New variable dsym_filename. Update
3093 macho_check_dsym call. Use it for symbol_file_add_separate.
3094 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3095 it. Use it for objfile->original_name.
3096 (objfile_name): Return OBFD's filename, if available.
3097 * objfiles.h (allocate_objfile): Add new parameter name.
3098 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3099 * symfile-mem.c (symbol_file_add_from_memory): Update
3100 symbol_file_add_from_bfd call.
3101 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3102 comment for it.
3103 (symbol_file_add_with_addrs): New parameter name, add function comment
3104 for it. Remove variable name. Update allocate_objfile call.
3105 (symbol_file_add_separate): New parameter name, add function comment
3106 for it. Update symbol_file_add_with_addrs call.
3107 (symbol_file_add_from_bfd): New parameter name. Update
3108 symbol_file_add_with_addrs call.
3109 (symbol_file_add): Update symbol_file_add_from_bfd call.
3110 (reread_symbols): New variable original_name. Save
3111 objfile->original_name by it.
3112 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3113 second parameter.
3114
3115 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 Code cleanup: Add objfile_name accessor function.
3118 * ada-lang.c (is_known_support_routine): Use objfile_name.
3119 * auto-load.c (source_gdb_script_for_objfile)
3120 (auto_load_objfile_script): Likewise.
3121 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3122 * dbxread.c (dbx_symfile_read): Likewise.
3123 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3124 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3125 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3126 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3127 (lookup_dwp_signatured_type, lookup_dwo_unit)
3128 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3129 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3130 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3131 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3132 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3133 (read_subrange_type, load_partial_dies, read_partial_die)
3134 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3135 (die_containing_type, build_error_marker_type, lookup_die_type)
3136 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3137 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3138 (get_DW_AT_signature_type, write_psymtabs_to_index)
3139 (save_gdb_index_command): Likewise.
3140 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3141 Likewise.
3142 * expprint.c (dump_subexp_body_standard): Likewise.
3143 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3144 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3145 original_name.
3146 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3147 obj_name, use objfile_name for it, use the variable.
3148 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3149 Use objfile_name.
3150 * machoread.c (macho_symtab_read, macho_check_dsym)
3151 (macho_symfile_relocate): Likewise.
3152 * maint.c (maintenance_translate_address): Likewise.
3153 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3154 * minsyms.c (install_minimal_symbols): Likewise.
3155 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3156 original_name.
3157 (filter_overlapping_sections): Use objfile_name.
3158 (objfile_name): New function.
3159 * objfiles.h (struct objfile): Rename field name to original_name.
3160 (objfile_name): New prototype.
3161 * printcmd.c (sym_info, address_info): Use objfile_name.
3162 * probe.c (parse_probes, collect_probes, compare_probes)
3163 (info_probes_for_ops): Likewise.
3164 * progspace.c (clone_program_space): Likewise.
3165 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3166 (maintenance_info_psymtabs): Likewise.
3167 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3168 (source_section_scripts): Likewise.
3169 * python/py-objfile.c (objfpy_get_filename): Likewise.
3170 * python/py-progspace.c (pspy_get_filename): Likewise.
3171 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3172 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3173 * solib.c (solib_read_symbols): Likewise.
3174 * stabsread.c (scan_file_globals): Likewise.
3175 * stap-probe.c (handle_stap_probe): Likewise.
3176 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3177 (find_separate_debug_file_by_debuglink): Likewise.
3178 (reread_symbols): Likewise. Use the objfile field name renamed to
3179 original_name.
3180 (allocate_symtab): Use objfile_name.
3181 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3182 (dump_objfile, dump_msymbols, dump_symtab_1)
3183 (maintenance_print_msymbols, maintenance_print_objfiles)
3184 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3185 * target.c (target_translate_tls_address, target_info): Likewise.
3186 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3187 objfile_name.
3188
3189 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3190
3191 Code cleanup.
3192 * probe.c (parse_probes): Rename variable objfile_name to
3193 objfile_namestr.
3194
3195 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 Remove solib-sunos.c.
3198 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3199 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3200 * objfiles.c (rt_common_objfile): Remove.
3201 (free_objfile): Remove rt_common_objfile comparison.
3202 * objfiles.h (rt_common_objfile): Remove.
3203 * solib-sunos.c: Remove.
3204 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3205
3206 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3207
3208 Remove a.out NetBSD and OpenBSD hosts.
3209 * NEWS (Removed native configurations): New.
3210 * config/arm/nbsdaout.mh: Remove.
3211 * config/i386/nbsdaout.mh: Remove.
3212 * config/i386/obsdaout.mh: Remove.
3213 * config/m68k/nbsdaout.mh: Remove.
3214 * config/sparc/nbsdaout.mh: Remove.
3215 * config/vax/nbsdaout.mh: Remove.
3216 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3217 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3218 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3219 error.
3220 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3221 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3222 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3223
3224 2013-09-23 Tom Tromey <tromey@redhat.com>
3225
3226 * linespec.c (struct minsym_and_objfile): Remove.
3227 (minsym_and_objfile_d): Remove.
3228 (struct linespec, struct collect_info, linespec_parse_basic)
3229 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3230 (compare_msymbols, find_method, find_function_symbols)
3231 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3232 (add_minsym, search_minsyms_for_name): Update.
3233
3234 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3235
3236 * regcache.c: Add include of valprint.h.
3237 (dump_endian_bytes): Delete.
3238 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3239
3240 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3241
3242 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3243
3244 2013-09-19 Pedro Alves <palves@redhat.com>
3245
3246 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3247 breakpoints.
3248
3249 2013-09-19 Pedro Alves <palves@redhat.com>
3250 Thomas Schwinge <thomas@codesourcery.com>
3251 Yue Lu <hacklu.newborn@gmail.com>
3252
3253 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3254 Take a gdb_byte pointer instead of a char pointer.
3255
3256 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3257 gnu_xfer_partial helper.
3258 (gnu_xfer_partial): New function.
3259 (gnu_target): Don't install a deprecated_xfer_memory hook.
3260 Install a to_xfer_partial hook.
3261
3262 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 Constification.
3265 * main.c (captured_main): Replace catch_command_errors by
3266 catch_command_errors_const. Twice.
3267 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3268 (symbol_file_add): Make name parameter const.
3269 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3270 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3271 variable name. Change their usage accordingly.
3272 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3273 const.
3274 (symbol_file_add_main): Make args parameter const.
3275
3276 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3277 Ulrich Weigand <uweigand@de.ibm.com>
3278
3279 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3280 of c_value member.
3281 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3282
3283 2013-09-18 Pedro Alves <palves@redhat.com>
3284 Yue Lu <hacklu.newborn@gmail.com>
3285
3286 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3287 (gnu_create_inferior)
3288 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3289 (set_sig_thread_cmd): Use the lwpid field of ptids to
3290 store/extract thread ids instead of the tid field.
3291 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3292
3293 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3294
3295 * infcmd.c (default_print_one_register_info): Add detection of
3296 optimized out values.
3297 (default_print_registers_info): Switch to using
3298 get_frame_register_value.
3299
3300 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3301
3302 * infrun.c (handle_inferior_event): Check if we know the
3303 function start address before setting a resume breakpoint.
3304
3305 2013-09-18 Pedro Alves <palves@redhat.com>
3306
3307 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3308 minus_one_ptid instead of looking at the ptid's tid field and
3309 comparing that to -1.
3310
3311 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3312
3313 * main.h (get_gdb_program_name): Remove extra whitespace.
3314
3315 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3316
3317 * main.h (get_gdb_program_name): Add declaration.
3318 * main.c (get_gdb_program_name): Add definition.
3319
3320 2013-09-17 Doug Evans <dje@google.com>
3321
3322 * dwarf2read.c: Move definitions of complaint functions to after
3323 forward declarations of local functions.
3324
3325 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3326 Pedro Alves <palves@redhat.com>
3327
3328 PR gdb/11568
3329 * breakpoint.c (remove_threaded_breakpoints): New function.
3330 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3331 as thread_exit observer.
3332
3333 2013-09-17 Pedro Alves <palves@redhat.com>
3334
3335 PR gdb/15911
3336 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3337 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3338 * corelow.c (core_open):
3339 * frame.h (print_stack_frame, print_frame_info): New
3340 'set_current_sal' parameter.
3341 * infcmd.c (finish_command, kill_command): Adjust call to
3342 print_stack_frame.
3343 * inferior.c (inferior_command): Likewise.
3344 * infrun.c (normal_stop): Likewise.
3345 * linux-fork.c (linux_fork_context): Likewise.
3346 * record-full.c (record_full_goto_entry, record_full_restore):
3347 Likewise.
3348 * remote-mips.c (common_open): Likewise.
3349 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3350 Use it.
3351 (print_frame_info): New 'set_current_sal' parameter. Set the last
3352 displayed sal depending on the new paremeter instead of looking at
3353 print_what.
3354 (backtrace_command_1, select_and_print_frame, frame_command)
3355 (current_frame_command, up_command, down_command): Adjust call to
3356 print_stack_frame.
3357 * thread.c (print_thread_info, restore_selected_frame)
3358 (do_captured_thread_select): Adjust call to print_stack_frame.
3359 * tracepoint.c (tfind_1): Likewise.
3360 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3361 (mi_cmd_stack_info_frame): Likewise.
3362 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3363 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3364
3365 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3366
3367 * value.c (isvoid_internal_fn): Replace "parameter" with
3368 "argument".
3369
3370 2013-09-16 Stan Shebs <stan@codesourcery.com>
3371
3372 * README: Update references to writing code for GDB.
3373 * configure.ac (build_warnings): Remove obsolete comment.
3374 * configure: Regenerate.
3375 * gdbarch.sh: Remove references to gdbint.texinfo.
3376 * gdbarch.h: Regenerate.
3377 * gdbtypes.c (objfile_type): Remove comments referencing internals
3378 manual and D10V.
3379
3380 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3381
3382 * NEWS: Mention new convenience function $_isvoid.
3383 * value.c (isvoid_internal_fn): New function.
3384 (_initialize_values): Add new convenience function $_isvoid.
3385
3386 2013-09-16 Pierre Muller <muller@sourceware.org>
3387
3388 * arm-linux-tdep.c: Add "elf/common.h" header.
3389 Remove AT_HWCAP macro definintion as it is provided in
3390 added include file.
3391 * s390-tdep.c: Remove system header <elf.h>
3392 Add "elf/common.h" header for AT_HWCAP definition.
3393 (s390_core_read_description): Use correct CORE_ADDR
3394 for hwcap local variable used as third parameter
3395 of function target_auxv_search.
3396
3397 2013-09-14 Pierre Muller <muller@sourceware.org>
3398 Tom Tromey <tromey@redhat.com>
3399 Pedro Alves <palves@redhat.com>
3400
3401 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3402 mode if operating system doesn't know O_CLOEXEC.
3403
3404 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3405
3406 Code cleanup.
3407 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3408 inner block.
3409
3410 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3411
3412 * NEWS: Mention TDB support.
3413 * features/s390-tdb.xml: New file.
3414 * features/s390-te-linux64.xml: New file.
3415 * features/s390x-te-linux64.xml: New file.
3416 * features/Makefile (WHICH): Add new tdescs above.
3417 (s390-te-linux64-expedite): Set.
3418 (s390x-te-linux64-expedite): Set.
3419 * features/s390-te-linux64.c: New file (generated).
3420 * features/s390x-te-linux64.c: New file (generated).
3421 * regformats/s390-te-linux64.dat: New file (generated).
3422 * regformats/s390x-te-linux64.dat: New file (generated).
3423 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3424 (HWCAP_S390_TE): Likewise.
3425 (S390_TDB_DWORD0_REGNUM): Likewise.
3426 (S390_TDB_DWORD0_REGNUM): Likewise.
3427 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3428 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3429 (S390_TDB_ATIA_REGNUM): Likewise.
3430 (S390_TDB_R0_REGNUM): Likewise.
3431 (S390_TDB_R1_REGNUM): Likewise.
3432 (S390_TDB_R2_REGNUM): Likewise.
3433 (S390_TDB_R3_REGNUM): Likewise.
3434 (S390_TDB_R4_REGNUM): Likewise.
3435 (S390_TDB_R5_REGNUM): Likewise.
3436 (S390_TDB_R6_REGNUM): Likewise.
3437 (S390_TDB_R7_REGNUM): Likewise.
3438 (S390_TDB_R8_REGNUM): Likewise.
3439 (S390_TDB_R9_REGNUM): Likewise.
3440 (S390_TDB_R10_REGNUM): Likewise.
3441 (S390_TDB_R11_REGNUM): Likewise.
3442 (S390_TDB_R12_REGNUM): Likewise.
3443 (S390_TDB_R13_REGNUM): Likewise.
3444 (S390_TDB_R14_REGNUM): Likewise.
3445 (S390_TDB_R15_REGNUM): Likewise.
3446 (S390_NUM_REGS): Increase.
3447 (S390_IS_TDBREGSET_REGNUM): New macro.
3448 (s390_regmap_tdb): Declare.
3449 (s390_sizeof_tdbregset): Define.
3450 (tdesc_s390_te_linux64): Declare.
3451 (tdesc_s390x_te_linux64): Likewise.
3452 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3453 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3454 (s390_regmap_tdb): New regmap.
3455 (s390_supply_tdb_regset): New function.
3456 (s390_tdb_regset): New regset.
3457 (s390_linux64v2_regset_sections): Add TDB regset to list.
3458 (s390x_linux64v2_regset_sections): Likewise.
3459 (s390_regset_from_core_section): Recognize TDB core note section.
3460 (s390_core_read_description): If HWCAP indicates TE support,
3461 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3462 (s390_gdbarch_init): Handle TDB regset.
3463 (_initialize_s390_tdep): Initialize new tdescs.
3464 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3465 (have_regset_tdb): New variable.
3466 (s390_native_supply): Support register invalidation.
3467 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3468 (check_regset): Treat ENODATA as "regset exists".
3469 (s390_linux_fetch_inferior_registers): Add TDB.
3470 (s390_read_description): Check for TDB existence and select
3471 appropriate tdesc.
3472 * gdbserver/Makefile.in (clean): Add removal of new makefile
3473 targets.
3474 (s390-te-linux64.c): New makefile target.
3475 (s390x-te-linux64.c): Likewise.
3476 * gdbserver/configure.srv (srv_regobj): Append new objects
3477 s390-te-linux64.o and s390x-te-linux64.o.
3478 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3479 s390x-te-linux64.xml, and s390-tdb.xml.
3480 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3481 declaration.
3482 (tdesc_s390_te_linux64): Likewise.
3483 (init_registers_s390x_te_linux64): Likewise.
3484 (tdesc_s390x_te_linux64): Likewise.
3485 (s390_check_regset): Treat ENODATA as "regset exists".
3486 (s390_arch_setup): Add TDB regset support.
3487 (initialize_low_arch): Initialize registers for new tdescs.
3488
3489 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3490
3491 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3492 (S390_IS_FPREGSET_REGNUM): New macro.
3493 * s390-tdep.c (s390_dwarf_regmap): Make const.
3494 (regnum_is_gpr_full): New function for replacing repeated code.
3495 (s390_pseudo_register_name): Use it.
3496 (s390_pseudo_register_type): Likewise.
3497 (s390_pseudo_register_read): Likewise.
3498 (s390_pseudo_register_write): Likewise.
3499 (s390_unwind_pseudo_register): Likewise.
3500 (s390_regmap_gregset): New format for regmap.
3501 (s390x_regmap_gregset): Likewise.
3502 (s390_regmap_fpregset): Likewise.
3503 (s390_regmap_upper): Likewise.
3504 (s390_regmap_last_break): Likewise.
3505 (s390_regmap_system_call): Likewise.
3506 (s390_supply_regset): Adjust to new regmap format.
3507 (s390_collect_regset): Likewise.
3508 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3509 (s390_native_collect): Likewise.
3510 (supply_gregset): Likewise.
3511 (fill_gregset): Likewise.
3512 (supply_fpregset): Likewise.
3513 (fill_fpregset): Likewise.
3514 (fetch_regset): Likewise.
3515 (store_regset): Likewise.
3516 (s390_linux_fetch_inferior_registers): Likewise.
3517 (s390_linux_fetch_inferior_registers): Likewise.
3518
3519 2013-09-12 Andrew Pinski <apinski@cavium.com>
3520
3521 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3522
3523 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3524
3525 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3526
3527 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3528
3529 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3530
3531 2013-09-06 Pedro Alves <palves@redhat.com>
3532
3533 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3534 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3535 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3536 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3537 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3538 gdb_stdlog.
3539
3540 2013-09-06 Pedro Alves <palves@redhat.com>
3541
3542 * remote-sim.c (dump_mem): Constify buf parameter.
3543 gdbsim_xfer_inferior_memory): Rename to ...
3544 (gdbsim_xfer_memory): ... this. Adjust interface as
3545 target_xfer_partial helper.
3546 (gdbsim_xfer_partial): New function.
3547 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3548 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3549
3550 2013-09-06 Pedro Alves <palves@redhat.com>
3551
3552 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3553 host_address_to_string, and send debug output to gdb_stdlog.
3554
3555 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3556
3557 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3558 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3559 gdb_target_obs for cris target.
3560 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3561 (cris_gdbarch_init): Move calls to
3562 set_gdbarch_fetch_tls_load_module_address and
3563 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3564 Add call to gdbarch_init_osabi.
3565 * cris-linux-tdep.c: New file.
3566 * cris-tdep.h: New file.
3567
3568 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3569
3570 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3571 to deprecated_init_ui_hook.
3572
3573 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3574
3575 * cli/cli-interp.c (_initialize_cli_interp): Add a
3576 command_loop_proc to interp_procs.
3577 * event-top.c (cli_command_loop): Change signature to match
3578 interp_command_loop_ftype.
3579 * event-top.h (cli_command_loop): Same.
3580 * interps.c (interp_new): Require every interpreter to have a
3581 command_loop_proc.
3582 (current_interp_command_loop): Just call the command_loop_proc on
3583 the current interpreter.
3584 * tui/tui-interp.c (_initialize_tui_interp): Add a
3585 command_loop_proc to interp_procs.
3586
3587 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3588
3589 * cris-tdep.c (cris_gdbarch_init): Add call to
3590 get_gdbarch_fetch_tls_load_module_address.
3591
3592 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3593
3594 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3595 (cris_elf_gregset_t): Rename from elf_gregset_t.
3596 (crisv32_elf_gregset_t): Adjust.
3597 (cris_supply_gregset, fetch_core_registers): Adjust.
3598
3599 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3600
3601 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3602
3603 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3604
3605 * defs.h (deprecated_command_loop_hook): Remove, including
3606 references in comments.
3607 * interps.c (current_interp_command_loop): No longer use
3608 deprecated_command_loop_hook.
3609 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3610 setup.
3611 * top.c (deprecated_command_loop_hook): Remove.
3612
3613 2013-09-05 Pedro Alves <palves@redhat.com>
3614
3615 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3616 local is now int instead of ULONGEST. Print it with %d
3617 instead of paddress.
3618
3619 2013-09-05 Tristan Gingold <gingold@adacore.com>
3620
3621 * MAINTAINERS: Remove avr maintainership.
3622
3623 2013-09-05 Pedro Alves <palves@redhat.com>
3624
3625 * findvar.c (value_of_register): Rework in terms of
3626 value_of_register_lazy.
3627
3628 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3629
3630 * symfile.c (add_symbol_file_command): Remove trailing
3631 whitespaces and blank line after comment.
3632
3633 2013-09-05 Pedro Alves <palves@redhat.com>
3634
3635 * tui/tui-regs.c (tui_register_format): Don't look at the
3636 register's name here. Return string representing register
3637 value instead of storing it in the data element.
3638 (tui_get_register): Compare register string representations
3639 instead of register value states and contents.
3640
3641 2013-09-05 Pedro Alves <palves@redhat.com>
3642
3643 PR tui/15933
3644 * tui/tui-regs.c (tui_show_registers): Show registers of the
3645 selected frame, not the current frame.
3646
3647 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3648
3649 * MAINTAINERS (Write After Approval): Add myself to the list.
3650
3651 2013-09-04 Doug Evans <dje@google.com>
3652
3653 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3654 (queue_and_load_dwo_tu): New function.
3655 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3656 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3657 Make dependent_cu optional.
3658 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3659 and an older .gdb_index is in use, queue and load all its TUs too.
3660
3661 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3662
3663 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3664 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3665 variable search_flags.
3666 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3667 (OPF_RETURN_REALPATH): ... here.
3668 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3669 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3670 call. Twice.
3671 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3672 openp call.
3673 * solib.c (solib_find): Likewise. Four times.
3674 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3675 in the function comment and for the realpath_fptr variable.
3676 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3677 (find_and_open_source): Likewise. Twice.
3678 * symfile.c (symfile_bfd_open): Likewise, also twice.
3679
3680 2013-09-04 Doug Evans <dje@google.com>
3681
3682 * progspace.c (save_current_space_and_thread): Remove unnecessary
3683 call to save_current_inferior.
3684
3685 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3686
3687 * sh64-tdep.c (sh64_do_register): Return after printing message
3688 about unavailable register contents.
3689
3690 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3691 Pedro Alves <palves@redhat.com>
3692
3693 * symfile.c (add_symbol_file_command): Error out on unknown
3694 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3695 options and collapse into single conditional branch.
3696
3697 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3698
3699 * inf-child.c (inf_child_follow_fork): New parameter
3700 detach_fork.
3701 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3702 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3703 * inferior.h (detach_fork): Remove.
3704 * infrun.c (detach_fork): Adjust comment and make it
3705 static.
3706 (follow_fork): Pass detach_fork parameter to
3707 target_follow_fork.
3708 * linux-nat.c (linux_child_follow_fork): New parameter
3709 detach_fork.
3710 * target.c (target_follow_fork): New parameter detach_fork.
3711 Pass detach_fork as parameter and print its value.
3712 * target.h (struct target_ops) <to_follow_fork>: New int
3713 parameter.
3714 (target_follow_fork): New parameter detach_fork.
3715
3716 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3717
3718 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3719 Replace sec->bfd by sec->the_bfd_section->owner.
3720
3721 2013-09-03 Yao Qi <yao@codesourcery.com>
3722
3723 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3724 from linux_has_shared_address_space.
3725 (linux_has_shared_address_space): Call linux_is_uclinux.
3726 * linux-tdep.h (linux_is_uclinux): Declare.
3727 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3728 linux_is_uclinux.
3729
3730 2013-09-03 Yao Qi <yao@codesourcery.com>
3731
3732 * config/djgpp/fnchange.lst: Remove entry of
3733 i386-interix-nat.c and i386-interix-tdep.c.
3734 * configure.ac: Remove '*-*-interix*'.
3735 * configure: Re-generated.
3736 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3737 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3738 obsolete comments.
3739 * osabi.c (gdb_osabi_names): Remove "Interix".
3740
3741 2013-09-03 Yao Qi <yao@codesourcery.com>
3742
3743 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3744
3745 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3746
3747 * record.h (record_print_flag) <record_print_src_line,
3748 record_print_insn_range>: Rename into ...
3749 (record_print_flag) <record_print_src_line,
3750 record_print_insn_range>: ... this. Update all users.
3751
3752 2013-09-02 Pierre Muller <muller@sourceware.org>
3753
3754 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3755 error code.
3756
3757 2013-09-02 Pierre Muller <muller@sourceware.org>
3758
3759 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3760 by use of plongest function.
3761
3762 2013-09-02 Tristan Gingold <gingold@adacore.com>
3763
3764 * NEWS: Add entry mentioning support for native Windows x64
3765 SEH data.
3766
3767 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3768 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3769 (struct amd64_windows_frame_cache): New struct.
3770 (amd64_windows_w2gdb_regnum): New global.
3771 (pc_in_range, amd64_windows_frame_decode_epilogue)
3772 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3773 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3774 (amd64_windows_frame_this_id): New functions.
3775 (amd64_windows_frame_unwind): New static global.
3776 (amd64_windows_skip_prologue): New function.
3777 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3778 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3779 with amd64_windows_skip_prologue.
3780
3781 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3782
3783 GDB 7.6.1 released.
3784
3785 2013-08-30 Pedro Alves <palves@redhat.com>
3786
3787 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3788 SRC_AND_LOC.
3789
3790 2013-08-30 Pedro Alves <palves@redhat.com>
3791
3792 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3793 warning text.
3794
3795 2013-08-30 Pedro Alves <palves@redhat.com>
3796
3797 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3798 Adjust arguments to print_stack_frame.
3799
3800 2013-08-30 Pedro Alves <palves@redhat.com>
3801
3802 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3803
3804 2013-08-30 Pedro Alves <palves@redhat.com>
3805
3806 * frame.h (show_and_print_stack_frame): Delete declaration.
3807
3808 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3809
3810 PR python/15461
3811 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3812 (archpy_name): Check for valid architecture.
3813 (archpy_disassemble): Ditto.
3814
3815 2013-08-29 Joel Brobecker <brobecker@adacore.com>
3816
3817 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3818 instead of "long long" in call to ptrace64.
3819
3820 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
3821
3822 * mi/mi-interp.c (mi_command_loop): Change signature to match
3823 interp_command_loop_ftype.
3824 (mi1_command_loop): Remove.
3825 (mi2_command_loop): Remove.
3826 (mi3_command_loop): Remove.
3827 (mi_interpreter_resume): Remove setting of
3828 deprecated_command_loop_hook.
3829 (_initialize_mi_interp): Set mi_command_loop as the command loop
3830 callback.
3831
3832 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3833
3834 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
3835 value_type.
3836
3837 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3838
3839 * value.c (allocate_value_contents): Make static.
3840 * value.h (allocate_value_contents): Remove prototype.
3841
3842 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3843
3844 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
3845 of assembling value via allocate_value_lazy and attribute setter.
3846 * findvar.c (default_read_var_value): Use value_at_lazy instead of
3847 assembling value via allocate_value_lazy and attribute setter.
3848 * valops.c (do_search_struct_field): Use value_at_lazy instead of
3849 assembling value via allocate_value_lazy and attribute setter.
3850
3851 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
3852
3853 * value.c (value_from_contents_and_address): Replace allocate_value and
3854 memcpy with value_from_contents.
3855
3856 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3857
3858 * python/py-framefilter.c (py_print_frame): Remove usage of
3859 PyString_AsString. Use python_string_to_host_string instead.
3860 Refactor function to work with a string as a new allocation
3861 instead of a pointer.
3862 (py_print_frame): Ditto.
3863 * python/lib/gdb/frames.py (return_list): Cain iterators together
3864 instead of adding them as a list.
3865 (_sort_list): Call return_list, and remove duplicate code.
3866 (execute_frame_filters): Convert iterator to a list with list().
3867 * python/lib/gdb/command/frame_filters.py
3868 (SetFrameFilterPriority._set_filter_priority): Convert priority
3869 attribute to an integer.
3870 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
3871 wrapper function __next__.
3872 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
3873 define as "str".
3874
3875 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3876
3877 PR python/15752
3878 * python/py-framefilter.c (apply_frame_filter): Check
3879 gdb_python_initialized. Exit if the Python frame-filter code
3880 cannot be initialized.
3881
3882 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
3883
3884 PR cli/15842
3885 * top.c (print_gdb_version): Remove erroneous newline after help
3886 text.
3887
3888 2013-08-29 Yao Qi <yao@codesourcery.com>
3889
3890 * varobj.c (install_dynamic_child): Remove trailing space.
3891 Add one blank line after variable declaration.
3892
3893 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 PR gdb/15415
3896 * corefile.c (get_exec_file): Use exec_filename.
3897 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
3898 * exec.c (exec_close): Free EXEC_FILENAME.
3899 (exec_file_attach): New variable canonical_pathname. Use
3900 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
3901 EXEC_FILENAME.
3902 * exec.h (exec_filename): New.
3903 * inferior.c (print_inferior, inferior_command): Use
3904 PSPACE_EXEC_FILENAME.
3905 * mi/mi-main.c (print_one_inferior): Likewise.
3906 * progspace.c (clone_program_space, print_program_space): Likewise.
3907 * progspace.h (struct program_space): New field pspace_exec_filename.
3908 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
3909 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
3910
3911 2013-08-28 Will Newton <will.newton@linaro.org>
3912
3913 * common/linux-ptrace.c: Include stdint.h unconditionally.
3914
3915 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 Code cleanup.
3918 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
3919
3920 2013-08-28 Yao Qi <yao@codesourcery.com>
3921 Pedro Alves <palves@redhat.com>
3922
3923 * event-top.c (gdb_setup_readline): Call stderr_fileopen
3924 instead of stdio_fileopen.
3925 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
3926 .Call stderr_fileopen instead of stdio_fileopen.
3927 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
3928 [__MINGW32__] (stderr_file_fputs): New function.
3929 (stderr_fileopen): New function.
3930 * ui-file.h (stderr_fileopen): Declare.
3931
3932 2013-08-27 Doug Evans <dje@google.com>
3933
3934 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
3935 (struct dwarf2_per_cu_data): Ditto.
3936 (maybe_queue_comp_unit): Delete forward decl. Add comment.
3937 (process_imported_unit_die): Ditto.
3938 (follow_die_sig_1): Simplify assert.
3939
3940 2013-08-27 Pedro Alves <palves@redhat.com>
3941
3942 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
3943 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
3944 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
3945 windows_xfer_memory directly.
3946 (init_windows_ops): Don't install a deprecated_xfer_memory method.
3947
3948 2013-08-27 Pedro Alves <palves@redhat.com>
3949
3950 * darwin-nat.c (darwin_xfer_memory): Delete.
3951 (_initialize_darwin_inferior): Don't install a
3952 deprecated_xfer_memory method.
3953
3954 2013-08-27 Pedro Alves <pedro@codesourcery.com>
3955 Yao Qi <yao@codesourcery.com>
3956
3957 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
3958 (parse_no_frames_option): Remove.
3959 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
3960 (mi_cmd_stack_list_args): Adjust.
3961 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
3962 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
3963 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
3964 Caller update.
3965 (list_args_or_locals): New parameter 'skip_unavailable'.
3966 Handle it.
3967 * valprint.c (scalar_type_p): Rename to ...
3968 (val_print_scalar_type_p): ... this. Make extern.
3969 (val_print, value_check_printable): Adjust.
3970 * valprint.h (val_print_scalar_type_p): Declare.
3971 * value.c (value_entirely_unavailable): New function.
3972 * value.h (value_entirely_unavailable): Declare.
3973
3974 * NEWS: Mention the new option "--skip-unavailable" to MI
3975 commands '-stack-list-locals', '-stack-list-arguments' and
3976 '-stack-list-variables'.
3977
3978 2013-08-27 Yao Qi <yao@codesourcery.com>
3979
3980 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
3981 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
3982 options.
3983 * mi/mi-getopt.c (mi_getopt): Remove.
3984 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
3985 'error_on_unknown'.
3986 (mi_getopt): Call mi_getopt_1.
3987 (mi_getopt_silent): New.
3988 * mi/mi-getopt.h (mi_getopt_silent): Declare.
3989
3990 2013-08-26 Doug Evans <dje@google.com>
3991
3992 PR symtab/15885
3993 * dwarf2read.c (dw2_dump): Print some minimal information indicating
3994 .gdb_index is in use.
3995 * symfile.c (reread_symbols): Reset objfile->sf.
3996
3997 * NEWS: Document "mt print objfiles" now takes optional regexp.
3998 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
3999 regexp of objfiles to print.
4000 (_initialize_symmisc): Update doc string for "mt print objfiles".
4001
4002 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4003 missing debug info checks.
4004
4005 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4006 Ulrich Weigand <uweigand@de.ibm.com>
4007
4008 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4009 line tables generated by XLC compiled binaries.
4010
4011 2013-08-23 Doug Evans <dje@google.com>
4012
4013 * symmisc.c (dump_symtab): Delete prototype.
4014 (dump_msymbols, dump_objfile): Ditto.
4015 (maintenance_info_symtabs): Mark as dont_repeat.
4016 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4017
4018 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4019 debugging printf to better location.
4020
4021 2013-08-23 Pedro Alves <palves@redhat.com>
4022
4023 * target.c (target_read_live_memory): Change type of 'ret' local
4024 to LONGEST.
4025
4026 2013-08-23 Pedro Alves <palves@redhat.com>
4027
4028 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4029 (remote_read_bytes): Change return type to LONGEST, and adjust to
4030 return a target_xfer_error on error.
4031 (remote_xfer_memory): Delete.
4032 (remote_flash_write): Change type of 'ret' local to LONGEST.
4033 (remote_xfer_partial, remote_xfer_partial): Adjust.
4034 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4035
4036 2013-08-23 Pierre Muller <muller@sourceware.org>
4037
4038 ARI fix: Push # directives to start of line.
4039 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4040
4041 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4042
4043 PR gdb/15501
4044 * breakpoint.c (enable_command, disable_command): Iterate over
4045 all specified breakpoint locations.
4046
4047 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4048
4049 * common/linux-ptrace.c (linux_fork_to_function): Push #
4050 directives to the start of the line.
4051 (linux_check_ptrace_features): Fix warning message to use
4052 the "_" markup.
4053
4054 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4055
4056 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4057 nat/linux-waitpid.h.
4058 (linux-waitpid.o): New object file rule.
4059 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4060 (current_ptrace_options): Moved from linux-nat.c.
4061 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4062 parameters.
4063 (linux_fork_to_function): New function.
4064 (linux_grandchild_function): Likewise.
4065 (linux_child_function): Likewise.
4066 (linux_check_ptrace_features): New function, heavily
4067 based on linux-nat.c:linux_test_for_tracefork.
4068 (linux_enable_event_reporting): New function.
4069 (ptrace_supports_feature): Likewise.
4070 (linux_supports_tracefork): Likewise.
4071 (linux_supports_traceclone): Likewise.
4072 (linux_supports_tracevforkdone): Likewise.
4073 (linux_supports_tracesysgood): Likewise.
4074 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4075 gdbserver/linux-low.c.
4076 (linux_enable_event_reporting): New declaration.
4077 (linux_supports_tracefork): Likewise.
4078 (linux_supports_traceclone): Likewise.
4079 (linux_supports_tracevforkdone): Likewise.
4080 (linux_supports_tracesysgood): Likewise.
4081 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4082 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4083 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4084 * config/arm/linux.mh (NATDEPFILES): Likewise.
4085 * config/i386/linux.mh (NATDEPFILES): Likewise.
4086 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4087 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4088 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4089 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4090 * config/mips/linux.mh (NATDEPFILES): Likewise.
4091 * config/pa/linux.mh (NATDEPFILES): Likewise..
4092 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4093 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4094 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4095 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4096 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4097 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4098 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4099 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4100 ptrace's 4th argument's types.
4101 Check the type of PTRACE_TYPE_ARG4.
4102 * configure: Regenerate.
4103 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4104 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4105 (linux_supports_tracefork_flag): Remove.
4106 (linux_supports_tracesysgood_flag): Likewise.
4107 (linux_supports_tracevforkdone_flag): Likewise.
4108 (current_ptrace_options): Moved to
4109 common/linux-ptrace.c.
4110 (linux_tracefork_child): Remove.
4111 (my_waitpid): Remove.
4112 (linux_test_for_tracefork): Renamed to
4113 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4114 (linux_test_for_tracesysgood): Remove.
4115 (linux_supports_tracesysgood): Remove.
4116 (linux_supports_tracefork): Remove.
4117 (linux_supports_tracevforkdone): Remove.
4118 (linux_enable_tracesysgood): Remove.
4119 (linux_enable_event_reporting): Remove.
4120 (linux_init_ptrace): New function.
4121 (linux_child_post_attach): Call linux_init_ptrace.
4122 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4123 (linux_child_follow_fork): Call linux_supports_tracefork
4124 and linux_supports_tracevforkdone.
4125 (linux_child_insert_fork_catchpoint): Call
4126 linux_supports_tracefork.
4127 (linux_child_insert_vfork_catchpoint): Likewise.
4128 (linux_child_set_syscall_catchpoint): Call
4129 linux_supports_tracesysgood.
4130 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4131 * nat/linux-nat.h: New file.
4132 * nat/linux-waitpid.c: New file.
4133 * nat/linux-waitpid.h: New file.
4134
4135 2013-08-22 Samuel Bronson <naesten@gmail.com>
4136
4137 ARM Linux support for `catch syscall'.
4138 * syscalls/arm-linux.py: New file.
4139 * syscalls/arm-linux.xml: Likewise.
4140 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4141 (arm_linux_init_abi): Register the new function and syscall xml file.
4142 * data-directory/Makefile.in: Install the new syscall xml file.
4143 * NEWS: Brag about this.
4144
4145 2013-08-22 Pedro Alves <palves@redhat.com>
4146
4147 PR gdb/15871
4148 * corefile.c (target_xfer_memory_error): New function.
4149 (memory_error): Defer EIO to target_memory_error.
4150 (read_memory): Use target_xfer_partial, and handle finer-grained
4151 target xfer errors.
4152 * target.c (target_xfer_error_to_string): New function.
4153 (memory_xfer_partial_1): If memory is known to be
4154 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4155 (target_xfer_partial): Make extern.
4156 * target.h (enum target_xfer_error): New enum.
4157 (target_xfer_error_to_string): Declare function.
4158 (target_xfer_partial): Declare function.
4159 (struct target_ops) <xfer_partial>: Adjust describing comment.
4160
4161 2013-08-22 Alan Modra <amodra@gmail.com>
4162
4163 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4164 * configure.tgt: Likewise as targets.
4165
4166 2013-08-20 Doug Evans <dje@google.com>
4167
4168 * buildsym.c (subfile_stack): Move here from buildsym.h.
4169 (pending_macros): Ditto.
4170 (get_macro_table): New function.
4171 (buildsym_init): Initialize subfile_stack.
4172 * coffread.c (type_vector,type_vector_length): Moved here from
4173 buildsym.h.
4174 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4175 (coff_symtab_read): Use it.
4176 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4177 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4178 with call to get_macro_table.
4179 * stabsread.c (type_vector,type_vector_length): Moved here from
4180 buildsym.h.
4181 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4182 * buildsym.h (get_macro_table): Declare.
4183
4184 2013-08-20 Tom Tromey <tromey@redhat.com>
4185
4186 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4187 Update.
4188 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4189
4190 2013-08-20 Doug Evans <dje@google.com>
4191
4192 * blockframe.c: Remove #include "psymtab.h".
4193 * cp-support.c: Ditto.
4194 * source.c: Ditto.
4195 * stack.c: Ditto.
4196
4197 2013-08-20 Tom Tromey <tromey@redhat.com>
4198
4199 PR python/15816:
4200 * exceptions.h (return_mask): Now an enum.
4201 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4202 enum constants.
4203
4204 2013-08-20 Tom Tromey <tromey@redhat.com>
4205
4206 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4207 get_objfile_arch.
4208 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4209 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4210 * jit.c (jit_object_close_impl): Update.
4211 * jv-lang.c (get_dynamics_objfile): Update.
4212 * linespec.c (add_minsym): Use get_dynamics_objfile.
4213 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4214 (allocate_objfile): Don't initialize 'gdbarch' field.
4215 (get_objfile_arch): Update.
4216 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4217 moved from...
4218 (struct objfile) <gdbarch>: ... here. Remove.
4219 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4220 get_objfile_arch.
4221 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4222
4223 2013-08-20 Alan Modra <amodra@gmail.com>
4224
4225 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4226 for IBM long double nan and inf.
4227 (floatformat_is_negative, floatformat_classify,
4228 floatformat_mantissa): Similarly.
4229 (floatformat_ieee_single, floatformat_ieee_double,
4230 floatformat_ieee_quad, floatformat_arm_ext,
4231 floatformat_ia64_spill): Delete unused vars.
4232 (_initialize_doublest): Delete unused function.
4233 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4234 little-endian variants of floatformat_ibm_long_double.
4235
4236 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4237
4238 * Makefile.in (SFILES): Remove common/target-common.c and
4239 add target/waitstatus.c.
4240 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4241 target/resume.h, target/wait.h and target/waitstatus.h.
4242 (COMMON_OBS): Remove target-common.o and add
4243 waitstatus.o.
4244 (target-common.o): Remove.
4245 (waitstatus.o): New target object file.
4246 * common/target-common.c: Move contents to
4247 target/waitstatus.c and remove.
4248 * common/target-common.h: Move contents to other files and
4249 remove.
4250 (enum resume_kind: Move to target/resume.h.
4251 (TARGET_WNOHANG): Move to target/wait.h.
4252 (enum target_waitkind): Move to target/waitstatus.h.
4253 (struct target_waitstatus): Likewise.
4254 * target.h: Do not include target-common.h and
4255 include target/resume.h, target/wait.h and
4256 target/waitstatus.h.
4257 * target/resume.h: New file.
4258 * target/wait.h: New file.
4259 * target/waitstatus.h: New file.
4260 * target/waitstatus.c: New file.
4261
4262 2013-08-19 Pedro Alves <palves@redhat.com>
4263
4264 * linux-nat.c (linux_test_for_tracefork)
4265 (linux_test_for_tracesysgood, linux_child_follow_fork)
4266 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4267 (linux_nat_wait_1): Extend comment.
4268 (linux_async_pipe): Add comment.
4269
4270 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4271
4272 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4273 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4274 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4275 Update to account for fact that PC is now a pseudo-register.
4276 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4277 cases for RL78_PC_REGNUM.
4278
4279 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4280
4281 PR cli/15841
4282 * top.c (quit_force): Skip writing history file
4283 if input is not from terminal.
4284
4285 2013-08-14 Tom Tromey <tromey@redhat.com>
4286
4287 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4288 resultthreadlist>: New fields.
4289 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4290 (remote_get_threadlist, remote_threadlist_iterator): Use
4291 new fields. Remove static variables.
4292
4293 2013-08-14 Tom Tromey <tromey@redhat.com>
4294
4295 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4296 remote_watch_data_address>: New fields.
4297 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4298 (process_stop_reply, remote_wait_as)
4299 (remote_check_watch_resources, remote_stopped_data_address): Update.
4300
4301 2013-08-14 Tom Tromey <tromey@redhat.com>
4302
4303 * remote.c (struct remote_state) <async_client_callback,
4304 async_client_context>: New fields.
4305 (async_client_callback, async_client_context): Remove.
4306 (remote_async_serial_handler, remote_async): Update.
4307
4308 2013-08-14 Tom Tromey <tromey@redhat.com>
4309
4310 * remote.c (sizeof_pkt): Remove.
4311 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4312
4313 2013-08-14 Tom Tromey <tromey@redhat.com>
4314
4315 * remote.c (struct remote_state) <use_threadinfo_query,
4316 use_threadextra_query>: New fields.
4317 (remote_threads_info, remote_threads_extra_info)
4318 (remote_open_1): Update.
4319
4320 2013-08-14 Tom Tromey <tromey@redhat.com>
4321
4322 * remote.c (struct remote_state) <finished_object,
4323 finished_annex, finished_offset>: New fields.
4324 (remote_read_qxfer): Use remote_state fields; remove static
4325 variables.
4326
4327 2013-08-14 Tom Tromey <tromey@redhat.com>
4328
4329 * remote.c (struct remote_state) <last_sent_step>:
4330 New field.
4331 (last_sent_step): Remove.
4332 (remote_resume, remote_wait_as): Update.
4333
4334 2013-08-14 Tom Tromey <tromey@redhat.com>
4335
4336 * remote.c (struct remote_state) <last_sent_signal>:
4337 New field.
4338 (last_sent_signal): Remove.
4339 (new_remote_state, remote_resume, remote_wait_as): Update.
4340
4341 2013-08-14 Tom Tromey <tromey@redhat.com>
4342
4343 * remote.c (struct remote_state) <last_program_signals_packet>:
4344 New field.
4345 (last_program_signals_packet): Remove.
4346 (remote_program_signals, remote_open_1): Update.
4347
4348 2013-08-14 Tom Tromey <tromey@redhat.com>
4349
4350 * remote.c (struct remote_state) <last_pass_packet>:
4351 New field.
4352 (last_pass_packet): Remove.
4353 (remote_pass_signals, remote_open_1): Update.
4354
4355 2013-08-14 Tom Tromey <tromey@redhat.com>
4356
4357 * remote.c (struct remote_state) <remote_traceframe_number>:
4358 New field.
4359 (remote_traceframe_number): Remove.
4360 (new_remote_state, remote_open_1, set_remote_traceframe)
4361 (remote_trace_find): Update.
4362
4363 2013-08-14 Tom Tromey <tromey@redhat.com>
4364
4365 * remote.c (struct remote_state) <general_thread, continue_thread>:
4366 New fields.
4367 (general_thread, continue_thread): Remove.
4368 (record_currthread, set_thread, set_general_process)
4369 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4370 (extended_remote_mourn_1): Update.
4371
4372 2013-08-14 Tom Tromey <tromey@redhat.com>
4373
4374 * remote.c (struct remote_state) <remote_desc>: New field.
4375 (remote_desc): Remove.
4376 (remote_threads_info, remote_threads_extra_info, remote_close)
4377 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4378 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4379 (remote_hostio_send_command, remote_file_put, remote_file_get)
4380 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4381 (remote_async, remote_new_objfile, set_range_stepping): Update.
4382
4383 2013-08-14 Tom Tromey <tromey@redhat.com>
4384
4385 * remote.c (remote_state): Now a pointer.
4386 (get_remote_state_raw): Update.
4387 (new_remote_state): New function.
4388 (_initialize_remote): Use new_remote_state.
4389
4390 2013-08-14 Tom Tromey <tromey@redhat.com>
4391
4392 * remote.c (remote_protocol_features): Now const.
4393
4394 2013-08-14 Tom Tromey <tromey@redhat.com>
4395
4396 * remote.c (crc32_table, crc32): Remove.
4397 (remote_verify_memory): Use xcrc32.
4398
4399 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4400
4401 * value.h (create_internalvar_type_lazy): Adjust prototype
4402 declaration.
4403
4404 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4405
4406 * common/format.c (parse_format_string): Don't allow '#' flag for
4407 pointer arguments in format string.
4408
4409 2013-08-13 Pierre Muller <muller@sourceware.org>
4410
4411 * utils.c (init_page_info): Only call tgetnum function
4412 if rl_get_screen_size did not return useful values.
4413
4414 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4415
4416 PR breakpoints/15117
4417 * linespec.c (linespec_parse_basic): Check for convenience
4418 variable or history value while parsing.
4419
4420 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4421
4422 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4423 AVR.
4424 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4425 different signals between the generic Linux kernel implementation
4426 and AVR's.
4427 (avr_linux_gdb_signal_from_target): Delete.
4428 (avr_linux_gdb_signal_to_target): Delete.
4429 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4430
4431 2013-08-09 Doug Evans <dje@google.com>
4432
4433 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4434 entries.
4435
4436 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4437
4438 * linux-tdep.c: Define enum with generic signal numbers.
4439 (linux_gdb_signal_from_target): New function.
4440 (linux_gdb_signal_to_target): Likewise.
4441 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4442 methods to the functions above.
4443 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4444 (linux_gdb_signal_to_target): Likewise.
4445 * alpha-linux-tdep.c: Define new enum with signals different
4446 from generic Linux kernel.
4447 (alpha_linux_gdb_signal_from_target): New function.
4448 (alpha_linux_gdb_signal_to_target): Likewise.
4449 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4450 with the functions mentioned above.
4451 * avr-tdep.c: Define enum with differences between Linux kernel
4452 and AVR signals.
4453 (avr_linux_gdb_signal_from_target): New function.
4454 (avr_linux_gdb_signal_to_target): Likewise.
4455 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4456 the functions mentioned above.
4457 * sparc-linux-tdep.c: Define enum with differences between SPARC
4458 and generic Linux kernel signal numbers.
4459 (sparc32_linux_gdb_signal_from_target): New function.
4460 (sparc32_linux_gdb_signal_to_target): Likewise.
4461 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4462 to the functions defined above.
4463 * xtensa-linux-tdep.c: Define enum with differences between
4464 Xtensa and Linux kernel generic signals.
4465 (xtensa_linux_gdb_signal_from_target): New function.
4466 (xtensa_linux_gdb_signal_to_target): Likewise.
4467 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4468 to the functions defined above.
4469 * mips-linux-tdep.c: Define enum with differences between
4470 signals in MIPS and Linux kernel generic ones.
4471 (mips_gdb_signal_to_target): New function.
4472 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4473 only different signals from the Linux kernel generic.
4474 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4475 the functions defined above.
4476 * mips-linux-tdep.h (enum mips_signals): Remove.
4477
4478 2013-08-09 Pedro Alves <palves@redhat.com>
4479
4480 * avr-tdep.c (XMALLOC): Delete macro.
4481 * cli/cli-dump.c (XMALLOC): Delete macro.
4482
4483 2013-08-09 Pedro Alves <palves@redhat.com>
4484
4485 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4486 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4487 (fopen_with_cleanup, add_dump_command): Make static.
4488 * cli/cli-dump.h: Delete file.
4489 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4490 cli/cli-dump.h.
4491
4492 2013-08-09 Pedro Alves <palves@redhat.com>
4493
4494 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4495 error message.
4496
4497 2013-08-09 Pedro Alves <palves@redhat.com>
4498
4499 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4500 error message.
4501
4502 2013-08-09 Pedro Alves <palves@redhat.com>
4503
4504 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4505 (gcore_command): Use tilde_expand here, and when showing the
4506 filename to the user, show the expanded version.
4507
4508 2013-08-09 Yao Qi <yao@codesourcery.com>
4509
4510 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4511 'entryval' is set.
4512
4513 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4514
4515 * gcore.c (create_gcore_bfd): Use tilde_expand.
4516
4517 2013-08-08 Yao Qi <yao@codesourcery.com>
4518
4519 * frame.h (read_frame_local): Declare.
4520 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4521 read_frame_local.
4522 * stack.c (read_frame_local): New.
4523
4524 2013-08-08 Yao Qi <yao@codesourcery.com>
4525
4526 * mi/mi-cmd-stack.c: Update comments to function
4527 list_args_or_locals.
4528
4529 2013-08-07 Tom Tromey <tromey@redhat.com>
4530
4531 PR symtab/15028:
4532 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4533 (process_psymtab_comp_unit_reader): Use it.
4534 (process_psymtab_comp_unit): Update. Add "pretend_language"
4535 argument.
4536 (dwarf2_build_psymtabs_hard): Update.
4537 (scan_partial_symbols): Pass CU's language to
4538 process_psymtab_comp_unit.
4539
4540 2013-08-07 Tom Tromey <tromey@redhat.com>
4541
4542 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4543 (dwarf2_gdb_index_functions): Update.
4544 * psymtab.c (find_symbol_file_from_partial): Remove.
4545 (psym_functions): Update.
4546 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4547 Remove.
4548
4549 2013-08-07 Tom Tromey <tromey@redhat.com>
4550
4551 * symfile.c (set_initial_language): Look up "main" symbol
4552 and use its language.
4553 * symtab.c (find_main_filename): Remove.
4554 * symtab.h (find_main_filename): Remove.
4555
4556 2013-08-07 Tom Tromey <tromey@redhat.com>
4557
4558 * dwarf2read.c (recursively_compute_inclusions): Add
4559 "immediate_parent" argument. Set symtab's "user" field
4560 if not set.
4561 (compute_symtab_includes): Update.
4562
4563 2013-08-07 Tom Tromey <tromey@redhat.com>
4564
4565 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4566 when adding label symbols.
4567
4568 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4569 Ulrich Weigand <uweigand@de.ibm.com>
4570
4571 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4572 * configure.host (powerpc64-*-aix*): Likewise.
4573
4574 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4575 Ulrich Weigand <uweigand@de.ibm.com>
4576
4577 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4578 is defined.
4579 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4580 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4581 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4582 * configure.ac: Check for ptrace64.
4583 * configure, config.in: Regenerate.
4584
4585 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4586 Ulrich Weigand <uweigand@de.ibm.com>
4587
4588 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4589 Call ptrace64 instead of ptrace if defined.
4590 Add macro addr_ptr to take care of ptrace address argument.
4591 (pdc_read_regs): Likewise.
4592 (pdc_write_regs): Likewise.
4593 (aix_thread_resume): Likewise.
4594 (fetch_regs_kernel_thread): Likewise.
4595 (store_regs_kernel_thread): Likewise.
4596
4597 2013-08-07 Anton Blanchard <anton@samba.org>
4598
4599 * MAINTAINERS: Add myself to Write After Approval.
4600
4601 2013-08-05 Tom Tromey <tromey@redhat.com>
4602
4603 * aix-thread.c (_initialize_aix_thread): Use
4604 complete_target_initialization.
4605 * bsd-uthread.c (_initialize_bsd_uthread): Use
4606 complete_target_initialization.
4607 * dec-thread.c (_initialize_dec_thread): Use
4608 complete_target_initialization.
4609 * ravenscar-thread.c (_initialize_ravenscar): Use
4610 complete_target_initialization.
4611 * sol-thread.c (_initialize_sol_thread): Use
4612 complete_target_initialization.
4613 * spu-multiarch.c (_initialize_spu_multiarch): Use
4614 complete_target_initialization.
4615
4616 2013-08-05 Tom Tromey <tromey@redhat.com>
4617
4618 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4619 * ada-lang.c (ada_lookup_simple_minsym): Return
4620 bound_minimal_symbol.
4621 * ada-lang.h (ada_lookup_simple_minsym): Update.
4622 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4623 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4624 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4625 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4626 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4627 * minsyms.c (msymbol_objfile): Remove.
4628 (lookup_minimal_symbol_internal): New function, from
4629 lookup_minimal_symbol.
4630 (lookup_minimal_symbol): Rewrite using
4631 lookup_minimal_symbol_internal.
4632 (lookup_bound_minimal_symbol): New function.
4633 * minsyms.h (msymbol_objfile): Remove.
4634 (lookup_bound_minimal_symbol): Declare.
4635 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4636 * parse.c (write_exp_msymbol): Change parameter to a
4637 bound_minimal_symbol.
4638 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4639 * parser-defs.h (write_exp_msymbol): Update.
4640 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4641 * symfile.c (simple_read_overlay_table): Use
4642 lookup_bound_minimal_symbol.
4643 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4644 (search_symbols): Likewise.
4645 (print_msymbol_info): Take a bound_minimal_symbol argument.
4646 (symtab_symbol_info, rbreak_command): Update.
4647 * symtab.h (struct symbol_search) <msymbol>: Change type
4648 to bound_minimal_symbol.
4649 * valops.c (find_function_in_inferior): Use
4650 lookup_bound_minimal_symbol.
4651 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4652
4653 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4654
4655 Code cleanup.
4656 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4657 to ...
4658 (async_cleanup_sigint_signal_handler): ... this.
4659 (initialize_sigint_signal_handler): Remove declaration.
4660 (handle_remote_sigint): Rename the declaration to ...
4661 (async_handle_remote_sigint): ... this.
4662 (handle_remote_sigint_twice): Rename the declaration to ...
4663 (async_handle_remote_sigint_twice): ... this.
4664 (async_remote_interrupt, async_remote_interrupt_twice)
4665 (remote_interrupt): Remove the declarations.
4666 (remote_interrupt_twice): Rename the declaration ...
4667 (sync_remote_interrupt_twice): ... this.
4668 (sigint_remote_twice_token): Rename the variable to ...
4669 (async_sigint_remote_twice_token): ... this.
4670 (sigint_remote_token): Rename the variable to ...
4671 (async_sigint_remote_token): ... this.
4672 (initialize_sigint_signal_handler): Rename the function to ...
4673 (async_initialize_sigint_signal_handler): ... this. Update the name
4674 inside.
4675 (handle_remote_sigint): Rename the function to ...
4676 (async_handle_remote_sigint): ... this. Update the names inside.
4677 (handle_remote_sigint_twice): Rename the function to ...
4678 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4679 (cleanup_sigint_signal_handler): Rename the function to ...
4680 (async_cleanup_sigint_signal_handler): ... this.
4681 (remote_interrupt): Rename the function to ...
4682 (sync_remote_interrupt): this. Update the names inside.
4683 (remote_interrupt_twice): Rename the function to ...
4684 (sync_remote_interrupt_twice): this. Update the names inside.
4685 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4686 (_initialize_remote): Update the names inside.
4687
4688 2013-08-02 Tom Tromey <tromey@redhat.com>
4689
4690 PR symtab/15719:
4691 * breakpoint.c (update_watchpoint, watchpoint_check)
4692 (watch_command_1): Update.
4693 * eval.c (fetch_subexp_value): Add "preserve_errors"
4694 parameter.
4695 * ppc-linux-nat.c (check_condition): Update.
4696 * value.h (fetch_subexp_value): Update.
4697
4698 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4699
4700 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4701 add_file_handler.
4702
4703 2013-08-01 Doug Evans <dje@google.com>
4704
4705 PR symtab/15691
4706 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4707 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4708 Add assert of sig_entry->dwo_unit == NULL.
4709 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4710 had already been read.
4711 (read_signatured_type): Set per_cu.tu_read.
4712
4713 PR symtab/15695
4714 * valops.c (value_struct_elt): Add missing call to check_typedef.
4715 (value_find_oload_method_list): Ditto.
4716
4717 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4718 effectively, struct symbol_search **.
4719 (make_cleanup_free_search_symbols): Change arg to struct
4720 symbol_search **. All callers updated.
4721 (compare_search_syms): Compare symtab file name and block as well.
4722 (search_symbols_equal): New function.
4723 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4724 New args new_head, new_tail. Result is now void. Remove dups after
4725 sorting the symbols.
4726 (search_symbols): Sort all found symbols once, after all have been
4727 found, and remove duplicates. Simplify cleanup tracking of result.
4728 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4729
4730 Further workarounds for binutils/15021.
4731 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4732 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4733 Watch for duplicate symtabs coming from type units.
4734 (compute_symtab_includes): Update call to
4735 recursively_compute_inclusions. Build vector of included symtabs
4736 instead of per_cus.
4737 * symtab.h (symtab_ptr): New typedef.
4738 (DEF_VEC_P (symtab_ptr)): New VEC type.
4739 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4740 instead.
4741
4742 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4743
4744 * cli/cli-script.c (script_from_file): Remove use of
4745 error_pre_print.
4746 * main.c (captured_main): Remove use of error_pre_print and
4747 quit_pre_print.
4748 * utils.c (error_pre_print, quit_pre_print): Remove.
4749 * utils.h (error_pre_print, quit_pre_print): Likewise.
4750
4751 2013-08-01 Yao Qi <yao@codesourcery.com>
4752
4753 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4754 with mi_getopt.
4755 (mi_cmd_stack_list_variables): Likewise.
4756
4757 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4758
4759 * exceptions.c (deprecated_throw_reason): Remove.
4760 * exceptions.h (deprecated_throw_reason): Remove.
4761
4762 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * remote-mips.c (mips_error): Replace use of
4765 deprecated_throw_reason with throw_verror. Use the error message
4766 passed to mips_error as the error message for throw_verror.
4767
4768 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4769
4770 * monitor.c (monitor_interrupt_query): Replace use of
4771 deprecated_throw_reason with quit.
4772 * nto-procfs.c (interrupt_query): Likewise.
4773 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4774 * remote-mips.c (mips_kill): Likewise.
4775 * remote.c (interrupt_query): Likewise.
4776
4777 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4778
4779 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4780 with call to fatal.
4781
4782 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4783 Yao Qi <yao@codesourcery.com>
4784
4785 * tracepoint.c (trace_dump_command): Select the current frame.
4786
4787 2013-07-30 Doug Evans <dje@google.com>
4788
4789 * dwarf2read.c (process_queue): Add type signature to debug output.
4790
4791 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4792
4793 * value.c (value_fetch_lazy): Mark optimized out values as such
4794 rather than raising an error.
4795
4796 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4797
4798 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4799 before checking which bits of the parent, not the child, value are
4800 valid.
4801
4802 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4803
4804 PR gdb/15715
4805 * top.c: Include "filenames.h".
4806 (set_history_filename): New function.
4807 (init_main): Install it as set hook of the "set history filename"
4808 command.
4809
4810 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4811
4812 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4813 attribute parameter.
4814 (dwarf2_const_value_data): Constify struct attribute parameter.
4815 (dwarf2_const_value): Constify struct attribute parameter.
4816 (dwarf2_const_value_attr): Constify struct attribute parameter.
4817 (lookup_die_type): Constify struct attribute parameter.
4818 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4819 (follow_die_ref_or_sig): Constify struct attribute parameter.
4820 (follow_die_ref): Constify struct attribute parameter.
4821 (follow_die_sig): Constify struct attribute parameter.
4822 (get_DW_AT_signature_type): Constify struct attribute parameter.
4823 (get_type_unit_group): Constify struct attribute parameter.
4824 (fill_in_loclist_baton): Constify struct attribute parameter.
4825 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
4826 (type_unit_group): Constify struct attribute parameter.
4827
4828 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4829
4830 * dwarf2read.c (attr_form_is_block): Make argument const.
4831 (attr_form_is_section_offset): Make argument const.
4832 (attr_form_is_constant): Make argument const.
4833 (attr_form_is_ref): Make argument const.
4834
4835 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4836
4837 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
4838 All uses updated.
4839 (attr_form_is_ref): Moved below attr_form_is_constant.
4840
4841 2013-07-29 Doug Evans <dje@google.com>
4842
4843 * main.c (captured_command_loop): Tweak comment.
4844
4845 * target.c (target_async_permitted_1): Fix comment.
4846
4847 * symtab.c (iterate_over_some_symtabs): Add comment.
4848
4849 * symtab.c (iterate_over_some_symtabs): Fix indentation.
4850
4851 2013-07-27 Yao Qi <yao@codesourcery.com>
4852
4853 * NEWS: Mention that GDBserver now supports hardware
4854 watchpoints on the MIPS GNU/Linux target.
4855
4856 2013-07-27 Yao Qi <yao@codesourcery.com>
4857
4858 * Makefile.in (HFILES_NO_SRCDIR): Add
4859 common/mips-linux-watch.h.
4860 (mips-linux-watch.o): New rule.
4861 * common/mips-linux-watch.c: New.
4862 * common/mips-linux-watch.h: New.
4863 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
4864 * mips-linux-nat.c: Include mips-linux-watch.h.
4865 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
4866 to common/mips-linux-watch.h.
4867 (MAX_DEBUG_REGISTER): Likewise.
4868 (enum pt_watch_style): Likewise.
4869 (struct mips32_watch_regs): Likewise.
4870 (struct mips64_watch_regs): Likewise.
4871 (struct pt_watch_regs): Likewise.
4872 (struct mips_watchpoint): Likewise.
4873 (mips_linux_watch_get_irw_mask): Move to
4874 common/mips-linux-watch.c.
4875 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
4876 (mips_linux_watch_get_watchlo): Likewise.
4877 (mips_linux_watch_set_watchlo): Likewise.
4878 (mips_linux_watch_get_watchhi): Likewise.
4879 (mips_linux_watch_set_watchhi): Likewise.
4880 (mips_linux_read_watch_registers): Likewise.
4881 (mips_linux_watch_type_to_irw): Likewise.
4882 (mips_linux_stopped_data_address, fill_mask): Likewise.
4883 (mips_linux_watch_try_one_watch): Likewise.
4884 (mips_linux_watch_populate_regs): Likewise.
4885
4886 2013-07-27 Yao Qi <yao@codesourcery.com>
4887
4888 * mips-linux-nat.c (get_irw_mask): Rename to ...
4889 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
4890 'set' to 'n'. Update function comment. All callers changed.
4891 (get_reg_mask): Rename parameter 'set' to 'n'. Update
4892 function comment. All callers changed.
4893 (get_num_valid): Rename to ...
4894 (mips_linux_watch_get_num_valid): ... this. Rename parameter
4895 'set' to 'n'. Update function comment. All callers changed.
4896 (get_watchlo): Rename to ...
4897 (mips_linux_watch_get_watchlo): ... this. Rename parameter
4898 'set' to 'n'. Update function comment. All callers changed.
4899 (set_watchlo): Rename to ...
4900 (mips_linux_watch_set_watchlo): ... this. Rename parameter
4901 'set' to 'n'. Update function comment. All callers changed.
4902 (get_watchhi): Rename to ...
4903 (mips_linux_watch_get_watchhi): ... this. Update function
4904 comment. All callers changed.
4905 (set_watchhi): Rename to ...
4906 (mips_linux_watch_set_watchhi): ... this. Update function
4907 comment. All callers changed.
4908 (mips_linux_read_watch_registers): Update function comment.
4909 Add new parameters 'lwpid', 'watch_readback', and
4910 'watch_readback_valid'. Update.
4911 (type_to_irw): Rename to ...
4912 (mips_linux_watch_type_to_irw): ... this. Update function
4913 comment. All callers changed.
4914 (fill_mask): Update function comment.
4915 (try_one_watch): Rename to ...
4916 (mips_linux_watch_try_one_watch): ... this. Change the type
4917 of parameter 'irw' from 'unsigned' to 'uint32_t'.
4918 (populate_regs_from_watches): Rename to ...
4919 (mips_linux_watch_populate_regs): ... this. Add parameter
4920 'current_watches'. All callers changed.
4921
4922 2013-07-27 Yao Qi <yao@codesourcery.com>
4923
4924 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
4925 the code.
4926 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
4927 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
4928 (struct pt_watch_regs): Likewise.
4929 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
4930 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
4931 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
4932 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
4933 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
4934
4935 2013-07-27 Yao Qi <yao@codesourcery.com>
4936
4937 * breakpoint.h: Include break-common.h.
4938 (enum target_hw_bp_type): Move to ...
4939 * common/break-common.h: ... here. New.
4940
4941 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
4942
4943 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4944 process group regardless of having tty on stdin.
4945
4946 2013-07-25 Doug Evans <dje@google.com>
4947
4948 * linux-fork.h (detach_fork): Delete.
4949
4950 2013-07-25 Tom Tromey <tromey@redhat.com>
4951
4952 PR remote/15256, PR remote/15266:
4953 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
4954 * monitor.c (monitor_detach): Use unpush_target.
4955 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
4956 * remote-mips.c (mips_detach): Use unpush_target. Don't
4957 call mips_close.
4958 * remote-sim.c (gdbsim_detach): Use unpush_target.
4959 * target.c (pop_target): Remove.
4960 (pop_all_targets_above): Don't call target_close.
4961 (target_close): Assert that the target is unpushed.
4962 * target.h (pop_target): Don't declare.
4963 * tracepoint.c (tfile_open): Use unpush_target.
4964
4965 2013-07-25 Tom Tromey <tromey@redhat.com>
4966
4967 * linux-thread-db.c (init_thread_db_ops): Call
4968 complete_target_initialization.
4969 (_initialize_thread_db): Don't call add_target.
4970 * target.c (complete_target_initialization): New function.
4971 (add_target_with_completer): Call it.
4972 * target.h (complete_target_initialization): Declare.
4973
4974 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4975
4976 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
4977 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
4978 (HPPANBSD_SIZEOF_GREGS): New define.
4979 (hppaobsd_supply_gregset): Handle additional registers.
4980 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
4981 we provide more registers now.
4982 (hppabsd_supply_gregset): Supply additional registers.
4983 (hppabsd_collect_gregset): Collect additional registers.
4984
4985 2013-07-25 Mark Kettenis <kettenis@gnu.org>
4986
4987 * hppabsd-tdep.c: Include "dwarf2-frame.h".
4988 (hppabsd_dwarf2_frame_init_reg): New function.
4989 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
4990
4991 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4992
4993 * mi/mi-main.c (output_register): Make MI 'r' format use standard
4994 'z' format code. Remove error for optimized out values, standard
4995 code will handle these fine.
4996
4997 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
4998
4999 * NEWS: Mention new 'z' formatter.
5000 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5001 (_initialize_printcmd): Mention 'z' formatter in help text of the
5002 'x' command.
5003
5004 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5005
5006 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5007 formatting.
5008
5009 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5010
5011 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5012 interface can evaluate arguments. Fallback to the old mode if it
5013 cannot.
5014 (create_exception_master_breakpoint): Likewise.
5015 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5016 (struct sym_probe_fns elf_probe_fns): Export function above to the
5017 probe interface.
5018 * probe.c (can_evaluate_probe_arguments): New function.
5019 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5020 function pointer.
5021 (can_evaluate_probe_arguments): New function prototype.
5022 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5023 probe interface can evaluate arguments. Fallback to the old mode
5024 if it cannot.
5025 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5026 interface can evaluate arguments. Warning the user if it cannot.
5027 (stap_can_evaluate_probe_arguments): New function.
5028 (struct probe_ops stap_probe_ops): Export function above to the
5029 probe interface.
5030 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5031 New function pointer.
5032
5033 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5034
5035 * Makefile.in (SFILES): Add common/target-common.c.
5036 Add common/target-common.h to headers.
5037 (COMMON_OBS): Add target-common.o.
5038 (target-common.o): New target.
5039 * linux-nat.h (resume_kind): Move to common/target-common.h.
5040 * target.c (target_waitstatus_to_string): Move to
5041 common/target-common.c.
5042 * target.h: Include target-common.h.
5043 (target_waitkind): Move to common/target-common.h.
5044 (target_waitstatus): Likewise.
5045 (TARGET_WNOHANG): Likewise.
5046 * common/target-common.c: New file.
5047 * common/target-common.h: New file.
5048
5049 2013-07-24 Doug Evans <dje@google.com>
5050
5051 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5052 a warning.
5053
5054 2013-07-23 Yao Qi <yao@codesourcery.com>
5055
5056 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5057 parameter 'gdbarch'.
5058 (i386_stack_tramp_frame_sniffer): Caller update.
5059 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5060 parameter 'gdbarch' and 'target'.
5061 (i386_linux_core_read_description): Caller update.
5062 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5063 Likewise.
5064 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5065 declaration.
5066
5067 2013-07-23 Tom Tromey <tromey@redhat.com>
5068
5069 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5070 2013-07-22.
5071
5072 2013-07-22 Doug Evans <dje@google.com>
5073
5074 * exec.h (remove_target_sections): Delete arg abfd.
5075 * exec.c (exec_close): Update call to remove_target_sections.
5076 (remove_target_sections): Delete arg abfd.
5077 * solib.c (update_solib_list): Ditto.
5078 (reload_shared_libraries_1): Ditto.
5079 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5080 * target.h (struct target_section): Rename key to owner.
5081 All uses updated.
5082
5083 2013-07-22 Tom Tromey <tromey@redhat.com>
5084
5085 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5086
5087 2013-07-22 Tom Tromey <tromey@redhat.com>
5088
5089 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5090 Simplify cleanup handling.
5091
5092 2013-07-22 Tom Tromey <tromey@redhat.com>
5093
5094 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5095 on all return paths.
5096
5097 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5098
5099 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5100 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5101 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5102
5103 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5104
5105 * top.c (print_gdb_version): Add help, apropos description and
5106 url to online documentation.
5107
5108 2013-07-19 Hui Zhu <hui@codesourcery.com>
5109
5110 PR gdb/15692
5111 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5112
5113 2013-07-19 Yao Qi <yao@codesourcery.com>
5114
5115 * target.c (update_current_target): Change the default action
5116 of 'to_traceframe_info' from tcomplain to return_zero.
5117 * target.h (struct target_ops) <to_traceframe_info>: Add more
5118 comments.
5119 * valops.c (read_value_memory): Call
5120 traceframe_available_memory unconditionally.
5121
5122 2013-07-18 Yao Qi <yao@codesourcery.com>
5123
5124 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5125 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5126 symbol without prefix. If found, set its type to
5127 'mst_solib_trampoline'.
5128
5129 2013-07-17 Doug Evans <dje@google.com>
5130
5131 * NEWS: Mention "set print raw frame-arguments".
5132 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5133 * stack.c (print_raw_frame_arguments): New static global.
5134 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5135 (_initialize_stack): New command "set/show print raw frame-arguments".
5136 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5137 (set_print_raw, show_print_raw): New functions.
5138 (_initialize_valprint): New prefix command "set/show print raw".
5139 * valprint.h (value_print_options): Improve comments.
5140
5141 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5142 of all *list variables.
5143
5144 * gdbcmd.h (togglelist): Delete.
5145 * cli/cli-cmds.c (togglelist): Delete.
5146 (init_cmd_lists): Update.
5147 * cli/cli-cmds.h (togglelist): Delete.
5148
5149 2013-07-17 Tom Tromey <tromey@redhat.com>
5150
5151 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5152 dwarf2_per_objfile.
5153
5154 2013-07-16 Doug Evans <dje@google.com>
5155
5156 * nto-tdep.c (nto_relocate_section_addresses): Update,
5157 target_section.bfd deleted.
5158 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5159 * s390-tdep.c (s390_load): Ditto.
5160 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5161
5162 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5163
5164 * common/format.c (parse_format_string): Add checks for NULL
5165 character before calling strchr.
5166
5167 2013-07-16 Doug Evans <dje@google.com>
5168
5169 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5170 temp_pathname argument.
5171 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5172 when opening the file fails.
5173
5174 * target.h (struct target_section): Delete member bfd.
5175 All users updated to use the_bfd_section->owner instead.
5176 * exec.c (add_to_section_table): Assert bfd is expected value.
5177 Remove initialization of target_section.bfd.
5178 (remove_target_sections): Update.
5179 (section_table_available_memory): Update.
5180 (section_table_xfer_memory_partial): Update.
5181 (print_section_info): Update.
5182 (exec_set_section_address): Update.
5183 * record-full.c (record_full_core_xfer_partial): Update.
5184 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5185 * solib-target.c (solib_target_relocate_section_addresses): Update.
5186 * symfile.c (build_section_addr_info_from_section_table): Update.
5187 * target.c (memory_xfer_live_readonly_partial): Update.
5188 (memory_xfer_partial_1): Update.
5189
5190 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5191
5192 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5193 now available for embedded (BookE) and server (BookS) processors,
5194 correct mentions of 'booke' and adjust comments accordingly in order to
5195 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5196 (have_ptrace_booke_interface): Rename function and variable
5197 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5198 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5199 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5200 'hwdebug_point_cmp'. Update all uses.
5201 (booke_find_thread_points_by_tid): Rename function
5202 'booke_find_thread_points_by_tid' to
5203 'hwdebug_find_thread_points_by_tid'. Update all uses.
5204 (booke_insert_point): Rename function 'booke_insert_point' to
5205 'hwdebug_insert_point'. Update all uses.
5206 (booke_remove_point): Rename function 'booke_remove_point' to
5207 'hwdebug_remove_point'. Update all uses.
5208
5209 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5210
5211 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5212 numbers with enum values.
5213
5214 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5215
5216 PR threads/13217
5217 * thread.c (thread_apply_all_command): Check for valid threads
5218 and thread count.
5219 (thread_array_cleanup): New struct.
5220 (set_thread_refcount): New function.
5221
5222 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5223
5224 * infcmd.c (default_print_one_register_info): Reuse function
5225 print_hex_chars.
5226
5227 2013-07-10 Tom Tromey <tromey@redhat.com>
5228
5229 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5230 (ada-exp.o): New target.
5231
5232 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5233
5234 * mt-tdep.c (mt_registers_info): Call
5235 get_no_prettyformat_print_options instead of
5236 get_raw_print_options (regression by last patch from Doug
5237 Evans).
5238
5239 2013-07-09 Pedro Alves <palves@redhat.com>
5240
5241 Checked in by Joel Brobecker <brobecker@adacore.com>.
5242 * ada-lang.c (coerce_unspec_val_to_type): Use
5243 value_optimized_out_const.
5244 * value.c (value_optimized_out_const): New function.
5245 * value.h (value_optimized_out_const): New declaration.
5246
5247 2013-07-09 Doug Evans <dje@google.com>
5248
5249 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5250 Enum values rename as well. All uses updated.
5251 * valprint.h (value_print_options): Rename member pretty to
5252 pretty format. Rename member prettyprint_arrays to
5253 prettyformat_arrays. Rename member prettyprint_structs to
5254 prettyformat_structs. All uses updated.
5255 (get_no_prettyformat_print_options): Renamed from
5256 get_raw_print_options.
5257 * valprint.c (get_no_prettyformat_print_options): Renamed from
5258 get_raw_print_options. All callers updated.
5259 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5260 All callers updated.
5261 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5262 All callers updated.
5263 (_initialize_valprint): Improve help text for "set print pretty" and
5264 "set print arrays".
5265
5266 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5267
5268 * value.c (value_bits_valid): Revert previous change, and change
5269 by Pedro on 2013-07-04, due to regressions in
5270 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5271
5272 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5273 Pedro Alves <palves@redhat.com>
5274
5275 * value.c (value_bits_valid): If the value is not lval_computed
5276 or has no check validity handler then the answer is the
5277 optimized_out flag, otherwise defer to the handler.
5278
5279 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5280
5281 * top.c (print_gdb_configuration): Explain in output of
5282 --configuration what does "relocatable" mean.
5283
5284 * main.c (print_gdb_help): Regroup options in the --help text.
5285 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5286 the relevant discussions.
5287
5288 2013-07-06 Yao Qi <yao@codesourcery.com>
5289
5290 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5291 Remove parameter 'lsal'.
5292 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5293 to inner block. Caller update.
5294 (base_breakpoint_create_breakpoints_sal): Update.
5295 (bkpt_create_breakpoints_sal): Likewise.
5296 (tracepoint_create_breakpoints_sal): Likewise.
5297 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5298 element 0 of vector 'canonical->sals'.
5299
5300 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5301
5302 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5303 register number instead of the pseudo register one.
5304 (rs6000_dwarf2_reg_to_regnum): Likewise.
5305
5306 2013-07-04 Pedro Alves <palves@redhat.com>
5307
5308 * findvar.c (value_of_register): Use allocate_optimized_out_value
5309 if the register has been optimized out, instead of
5310 set_value_optimized_out.
5311 * frame-unwind.c (frame_unwind_got_optimized): Use
5312 allocate_optimized_out_value.
5313
5314 2013-07-04 Pedro Alves <palves@redhat.com>
5315
5316 * value.c (value_bits_valid): If the value is not lval_computed,
5317 or doesn't have a check_validity hook, assume the value is entirely
5318 valid.
5319
5320 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5321
5322 * stack.c (read_frame_arg): No longer fetch lazy values.
5323 * value.c (value_optimized_out): If the value is not already
5324 marked optimized out, and is lazy then fetch it.
5325 (value_primitive_field): Move optimized out check to later in the
5326 function, after we have loaded any lazy values.
5327 (value_fetch_lazy): Use optimized out flag directly rather than
5328 calling optimized_out method.
5329
5330 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5331
5332 * valops.c: Don't include "user-regs.h".
5333 (value_fetch_lazy): Moved to value.c.
5334 * value.c: Include "user-regs.h".
5335 (value_fetch_lazy): Moved from valops.c.
5336
5337 2013-07-04 Yao Qi <yao@codesourcery.com>
5338
5339 Revert:
5340 2013-06-27 Yao Qi <yao@codesourcery.com>
5341
5342 * common/create-version.sh: Update comments. Handle the case
5343 that TARGET_ALIAS is empty.
5344
5345 2013-07-03 Pedro Alves <palves@redhat.com>
5346
5347 * Makefile.in (config.status): Depend on development.sh.
5348 (aclocal_m4_deps): Add libmcheck.m4.
5349 * acinclude.m4: Include libmcheck.m4.
5350 * configure.ac: Source development.sh instead of setting
5351 'development' here. --enable-libmcheck/--disable-libmcheck code
5352 factored out to GDB_AC_LIBMCHECK. Run it.
5353 * development.sh: New file.
5354 * libmcheck.m4: New file.
5355 * configure: Regenerate.
5356
5357 2013-07-02 Tom Tromey <tromey@redhat.com>
5358
5359 * contrib/ari/update-web-ari.sh: Update for version.in change.
5360
5361 2013-07-02 Tom Tromey <tromey@redhat.com>
5362
5363 * common/ptid.h: Comment fixes.
5364
5365 2013-07-01 Tom Tromey <tromey@redhat.com>
5366
5367 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5368 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5369 (dwarf2_read_index, create_all_comp_units): Update.
5370
5371 2013-07-01 Tom Tromey <tromey@redhat.com>
5372
5373 * configure.ac (build_warnings): Add -Wold-style-definition.
5374 * configure: Rebuild.
5375 * machoread.c (_initialize_machoread): Use "(void)".
5376 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5377 use "(void)".
5378
5379 2013-07-01 Tom Tromey <tromey@redhat.com>
5380
5381 * configure.ac (build_warnings): Add -Wold-style-declaration.
5382 * configure: Rebuild.
5383 * dsrec.c (make_srec): Use "static const", not "const static".
5384 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5385 not "const static".
5386 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5387 Use "static const", not "const static".
5388 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5389 not "const static".
5390 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5391 not "const static".
5392 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5393 not "const static".
5394 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5395 not "const static".
5396 (v850_dbtrap_breakpoint_from_pc): Likewise.
5397 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5398 not "const static".
5399
5400 2013-07-01 Tom Tromey <tromey@redhat.com>
5401
5402 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5403 * configure: Rebuild.
5404
5405 2013-07-01 Pedro Alves <palves@redhat.com>
5406
5407 * defs.h: Include "pathmax.h".
5408 * utils.c: Don't include sys/param.h.
5409 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5410 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5411 instead of MAXPATHLEN.
5412 * solib-sunos.c: Don't include sys/param.h.
5413 * xcoffread.c: Don't include sys/param.h.
5414 * bsd-kvm.c: Don't include sys/param.h.
5415 * darwin-nat.c: Don't include sys/param.h.
5416 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5417 * darwin-nat-info.c: Don't include sys/param.h.
5418 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5419 MAXPATHLEN.
5420 * i386obsd-nat.c: Don't include sys/param.h.
5421 * inf-child.c: Don't include sys/param.h.
5422 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5423 * linux-fork.c: Don't include sys/param.h.
5424 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5425 * linux-nat.c: Don't include sys/param.h.
5426 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5427 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5428 * m68klinux-nat.c: Don't include sys/param.h.
5429 * nbsd-nat.c: Don't include sys/param.h.
5430 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5431 * ppc-linux-nat.c: Don't include sys/param.h.
5432 * rs6000-nat.c: Don't include sys/param.h.
5433 * spu-linux-nat.c. Don't include sys/param.h.
5434 * windows-nat.c: Don't include sys/param.h.
5435 * xtensa-linux-nat.c: Don't include sys/param.h.
5436 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5437
5438 2013-07-01 Pedro Alves <palves@redhat.com>
5439
5440 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5441 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5442 * gnulib/aclocal.m4: Regenerate.
5443 * gnulib/config.in: Regenerate.
5444 * gnulib/configure: Regenerate.
5445 * gnulib/import/pathmax.h: New file.
5446 * gnulib/import/Makefile.am: Regenerate.
5447 * gnulib/import/Makefile.in: Regenerate.
5448 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5449 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5450 * gnulib/import/m4/pathmax.m4: New file.
5451
5452 2013-07-01 Pedro Alves <palves@redhat.com>
5453
5454 * configure.ac (GDBINIT): Define, depending on host.
5455 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5456 * top.c (PATH_MAX): Delete fallback definition.
5457 (GDBINIT_FILENAME): Delete.
5458 (gdbinit): Reimplement as const char array set to the GDBINIT
5459 string constant.
5460 * top.h (gdbinit): Make const.
5461 * configure, config.in: Regenerate.
5462
5463 2013-07-01 Pedro Alves <palves@redhat.com>
5464
5465 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5466 * cli/cli-cmds.h (source_script): Likewise.
5467 * exceptions.c (catch_command_errors_const): New function.
5468 * exceptions.h (catch_command_errors_const): Declare.
5469 * main.c (get_init_files): Make parameters const, and adjust.
5470 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5471 'local_gdbinit' locals const. Adjust to use
5472 catch_command_errors_const.
5473 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5474 'local_gdbinit' locals const.
5475
5476 2013-07-01 Pedro Alves <palves@redhat.com>
5477
5478 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5479 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5480 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5481 <unistd.h>.
5482
5483 2013-07-01 Pedro Alves <palves@redhat.com>
5484
5485 Import the "unistd" gnulib module.
5486 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5487 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5488 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5489 import/m4/unistd_h.m4.
5490 * gnulib/aclocal.m4: Renenerate.
5491 * gnulib/config.in: Renenerate.
5492 * gnulib/configure: Renenerate.
5493 * gnulib/import/Makefile.am: Renenerate.
5494 * gnulib/import/Makefile.in: Renenerate.
5495 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5496 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5497 * gnulib/import/m4/off_t.m4: New file.
5498 * gnulib/import/m4/ssize_t.m4: New file.
5499 * gnulib/import/m4/sys_types_h.m4: New file.
5500 * gnulib/import/m4/unistd_h.m4: New file.
5501 * gnulib/import/sys_types.in.h: New file.
5502 * gnulib/import/unistd.c: New file.
5503 * gnulib/import/unistd.in.h: New file.
5504
5505 2013-07-01 Pedro Alves <palves@redhat.com>
5506
5507 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5508 defined instead of checking HAVE_UNISTD_H.
5509
5510 2013-07-01 Pedro Alves <palves@redhat.com>
5511
5512 Reimport gnulib from scratch.
5513 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5514 import/m4/onceonly.m4.
5515 * gnulib/aclocal.m4: Renegerate.
5516 * gnulib/config.in: Renegerate.
5517 * gnulib/configure: Renegerate.
5518 * gnulib/import/Makefile.in: Renegerate.
5519 * gnulib/import/extra/update-copyright: Renegerate.
5520 * gnulib/import/m4/onceonly.m4: Delete.
5521
5522 2013-07-01 Pedro Alves <palves@redhat.com>
5523
5524 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5525
5526 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5527
5528 Code cleanup.
5529 * remote.c (async_remote_interrupt_twice): Make it static.
5530 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5531
5532 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5533
5534 * ia64-linux-tdep.c: Include <ctype.h>.
5535 (ia64_linux_stap_is_single_operand): New function.
5536 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5537
5538 2013-06-28 Tom Tromey <tromey@redhat.com>
5539
5540 * Makefile.in (version.c): Use version.in, not
5541 common/version.in.
5542 * common/create-version.sh: Likewise.
5543 * common/version.in: Move...
5544 * version.in: ...here.
5545
5546 2013-06-28 Pedro Alves <palves@redhat.com>
5547
5548 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5549 here.
5550 * utils.h (pagination_enabled): Declare.
5551
5552 2013-06-28 Pedro Alves <palves@redhat.com>
5553
5554 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5555 Move higher up in file.
5556
5557 2013-06-28 Tom Tromey <tromey@redhat.com>
5558
5559 * tracepoint.c (deprecated_readline_begin_hook)
5560 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5561 declare.
5562
5563 2013-06-28 Pedro Alves <palves@redhat.com>
5564
5565 PR tui/14880
5566 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5567 checking if they're available.
5568 * value.c (value_available_contents_eq): Change comment.
5569 * value.h (value_available_contents_eq): Expand comment.
5570
5571 2013-06-27 Tom Tromey <tromey@redhat.com>
5572
5573 * target.c (find_run_target): Remove.
5574 * target.h (find_run_target): Remove.
5575
5576 2013-06-27 Tom Tromey <tromey@redhat.com>
5577
5578 * corelow.c (core_gdbarch): Now static.
5579
5580 2013-06-27 Tom Tromey <tromey@redhat.com>
5581
5582 * target.c (target_struct_index): Remove.
5583
5584 2013-06-27 Pedro Alves <palves@redhat.com>
5585
5586 * infrun.c: Remove comment describing the 'stepping over runtime
5587 loader dynamic symbol resolution code' mechanism; moved to
5588 gdbint.texinfo.
5589
5590 2013-06-27 Pedro Alves <palves@redhat.com>
5591
5592 * exceptions.c (catch_command_errors): Remove spurious space.
5593 * exceptions.h (catch_command_errors): Second parameter is "arg",
5594 not "command".
5595
5596 2013-06-27 Yao Qi <yao@codesourcery.com>
5597
5598 * common/create-version.sh: Update comments. Handle the case
5599 that TARGET_ALIAS is empty.
5600
5601 2013-06-26 Pedro Alves <palves@redhat.com>
5602
5603 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5604 comment.
5605
5606 2013-06-26 Pedro Alves <palves@redhat.com>
5607
5608 * infrun.c: Update comments on stepping over runtime loader
5609 dynamic symbol resolution code.
5610
5611 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5612
5613 * ax-gdb.h (union exp_element): Forward declare.
5614 * parser-defs.h: Include expression.h.
5615
5616 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5617
5618 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5619
5620 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5621
5622 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5623
5624 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5625
5626 Fix trace-status to output proper start-time and stop-time.
5627 * tracepoint.c (trace_status_command): Fix type of printf arg to
5628 prevent improper type conversion.
5629 (trace_status_mi): Likewise.
5630
5631 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5632
5633 * mips-tdep.c (mips_next_pc): Fix a typo.
5634
5635 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5636
5637 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5638
5639 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5640 Yao Qi <yao@codesourcery.com>
5641
5642 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5643 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5644 * mi/mi-main.c (print_variable_or_computed): New function.
5645 (mi_cmd_trace_frame_collected): New function.
5646 * tracepoint.c (find_trace_state_variable_by_number): New.
5647 (struct traceframe_info): Move to tracepoint.h
5648 (struct collection_list): Likewise.
5649 (do_collect_symbol): Include locals and arguments in the
5650 collected variables list.
5651 (clear_collection_list): Clear wholly collected variables list
5652 and computed variables list.
5653 (append_exp): New function.
5654 (encode_actions_1): Include variables in the wholly
5655 collected variables list. Include memory ranges and
5656 full-fledged expressions in the computed expressions list.
5657 (encode_actions): Move some code to ...
5658 Return the cleanup chain.
5659 (encode_actions_rsp): ... here. New function.
5660 (get_traceframe_location, get_traceframe_info): Remove static.
5661 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5662 (struct collection_list): Moved from tracepoint.c. Add two
5663 new fields 'wholly_collected' and 'computed'.
5664 (find_trace_state_variable_by_number): Declare.
5665 (encode_actions): Adjust declaration.
5666 (encode_actions_rsp): Declare.
5667 (get_traceframe_info, get_traceframe_location): Declare.
5668
5669 * NEWS: Mention new MI command -trace-frame-collected.
5670
5671 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5672 Yao Qi <yao@codesourcery.com>
5673
5674 * ctf.c (ctf_traceframe_info): Push trace state variables
5675 present in the trace data into the traceframe info object.
5676 * breakpoint.c (DEF_VEC_I): Remove.
5677 * common/filestuff.c (DEF_VEC_I): Likewise.
5678 * dwarf2loc.c (DEF_VEC_I): Likewise.
5679 * mi/mi-main.c (DEF_VEC_I): Likewise.
5680 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5681 * features/traceframe-info.dtd: Add tvar element and its
5682 attributes.
5683 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5684 (build_traceframe_info): Push trace state variables present in
5685 the trace data into the traceframe info object.
5686 (traceframe_info_start_tvar): New function.
5687 (tvar_attributes): New.
5688 (traceframe_info_children): Add "tvar" element.
5689 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5690
5691 * NEWS: Mention the change in GDB and GDBserver.
5692
5693 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5694 Yao Qi <yao@codesourcery.com>
5695
5696 * tracepoint.c (trace_dump_command): Move code to ...
5697 (get_traceframe_location): ... here. New.
5698
5699 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5700 Yao Qi <yao@codesourcery.com>
5701
5702 * tracepoint.c (trace_dump_command): GDB emits an error
5703 instead of a warning when a traceframe is not selected.
5704
5705 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5706 Yao Qi <yao@codesourcery.com>
5707
5708 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5709 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5710 in collection_list.
5711 (do_clear_collection_list, init_collection_list): New.
5712 (encode_actions): Add local variables 'tracepoint_list' and
5713 'stepping_list'. Call init_collection_list and make cleanup
5714 which calls do_clear_collection_list. Don't call
5715 clear_collection_list.
5716 (_initialize_tracepoint): Delete references to
5717 'tracepoint_list' and 'stepping_list'.
5718
5719 2013-06-25 Tom Tromey <tromey@redhat.com>
5720
5721 * common/create-version.sh (date): Use "$", not "$$" in sed
5722 expression.
5723
5724 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5725
5726 * NEWS (New targets): Add entry for TI MSP430.
5727
5728 2013-06-25 Yao Qi <yao@codesourcery.com>
5729
5730 * remote.c (remote_start_remote): Move code to upload tsv
5731 earlier.
5732
5733 2013-06-25 Yao Qi <yao@codesourcery.com>
5734 Hui Zhu <hui@codesourcery.com>
5735 Pedro Alves <palves@redhat.com>
5736
5737 PR breakpoints/15075
5738 PR breakpoints/15434
5739 * breakpoint.c (bpstat_stop_status): Call
5740 b->ops->after_condition_true.
5741 (update_dprintf_command_list): Don't append "continue" command
5742 to the command list of dprintf breakpoint.
5743 (base_breakpoint_after_condition_true): New function.
5744 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5745 (dprintf_after_condition_true): New function.
5746 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5747 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5748
5749 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5750
5751 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5752 (ALLDEPFILES): Add msp430-tdep.c.
5753 * configure.tgt (msp430*-*-elf): New target.
5754 * msp430-tdep.c: New file.
5755
5756 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5757
5758 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5759 microMIPS synthetic symbols.
5760
5761 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5762
5763 * objfiles.h (pc_in_section): New prototype.
5764 (in_plt_section): Remove name argument, replace prototype with
5765 static inline function.
5766 * mips-tdep.h: Include "objfiles.h".
5767 (in_mips_stubs_section): New function.
5768 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5769 in_solib_call_trampoline member.
5770 (hppa_in_solib_call_trampoline): Remove name argument.
5771 * objfiles.c (pc_in_section): New function.
5772 (in_plt_section): Remove function.
5773 * mips-linux-tdep.c: Include "objfiles.h".
5774 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5775 name argument. Return 1 rather than the low 16-bit halfword of
5776 any instruction examined.
5777 (mips_linux_in_dynsym_resolve_code): Update
5778 mips_linux_in_dynsym_stub call accordingly.
5779 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5780 rather than an equivalent hand-coded sequence.
5781 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5782 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5783 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5784 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5785 in_opd_section.
5786 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5787 on call to tdep->in_solib_call_trampoline.
5788 (hppa_in_solib_call_trampoline): Remove name argument, update
5789 according to in_plt_section change.
5790 (hppa_skip_trampoline_code): Update according to in_plt_section
5791 change.
5792 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5793 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5794 Likewise.
5795 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5796 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5797 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5798 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5799 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5800 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5801 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5802 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5803 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5804 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5805 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5806 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5807 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5808
5809 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5810
5811 * common/create-version.sh: Fix expansion of $host_alias
5812 and $target_alias in generation of HOST_NAME and TARGET_NAME
5813 (resp.).
5814
5815 2013-06-24 Tom Tromey <tromey@redhat.com>
5816
5817 * common/create-version.sh: New file.
5818 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5819 create-version.sh.
5820 (HFILES_NO_SRCDIR): Use common/version.h.
5821 * version.in: Move to ...
5822 * common/version.in: ... here. Replace date with "DATE".
5823 * version.h: Move to ...
5824 * common/version.h: ... here.
5825
5826 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5827
5828 * gdb/gnulib/Makefile.in: Update date in copyright header.
5829 * gdb/gnulib/configure.ac: Ditto.
5830 * gdb/gnulib/update-gnulib.sh: Ditto.
5831
5832 2013-06-21 Joel Brobecker <brobecker@adacore.com>
5833
5834 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
5835 "gdb/gnulib/import".
5836
5837 2013-06-21 Will Newton <will.newton@linaro.org>
5838
5839 * doublest.c (ldfrexp): Remove function.
5840 (convert_doublest_to_floatformat): Call frexpl instead of
5841 ldfrexp.
5842
5843 2013-06-21 Will Newton <will.newton@linaro.org>
5844
5845 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
5846 * gnulib/aclocal.m4: Regenerate.
5847 * gnulib/config.in: Regenerate.
5848 * gnulib/configure: Regenerate.
5849 * gnulib/import/Makefile.am: Update.
5850 * gnulib/import/Makefile.in: Update.
5851 * gnulib/import/m4/gnulib-cache.m4: Update.
5852 * gnulib/import/m4/gnulib-comp.m4: Update.
5853 * gnulib/import/float+.h: Import.
5854 * gnulib/import/float.c: Import.
5855 * gnulib/import/float.in.h: Import.
5856 * gnulib/import/fpucw.h: Import.
5857 * gnulib/import/frexp.c: Import.
5858 * gnulib/import/frexpl.c: Import.
5859 * gnulib/import/isnan.c: Import.
5860 * gnulib/import/isnand-nolibm.h: Import.
5861 * gnulib/import/isnand.c: Import.
5862 * gnulib/import/isnanl-nolibm.h: Import.
5863 * gnulib/import/isnanl.c: Import.
5864 * gnulib/import/itold.c: Import.
5865 * gnulib/import/m4/exponentd.m4: Import.
5866 * gnulib/import/m4/exponentl.m4: Import.
5867 * gnulib/import/m4/float_h.m4: Import.
5868 * gnulib/import/m4/fpieee.m4: Import.
5869 * gnulib/import/m4/frexp.m4: Import.
5870 * gnulib/import/m4/frexpl.m4: Import.
5871 * gnulib/import/m4/isnand.m4: Import.
5872 * gnulib/import/m4/isnanl.m4: Import.
5873 * gnulib/import/m4/math_h.m4: Import.
5874 * gnulib/import/math.c: Import.
5875 * gnulib/import/math.in.h: Import.
5876
5877 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5878
5879 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
5880 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
5881 signature_INTEL_edx comparisons.
5882
5883 2013-06-20 Doug Evans <dje@google.com>
5884
5885 symtab/15652
5886 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
5887 All callers updated.
5888 (open_dwp_file): If we can't find the dwp file, search the basename
5889 in debug-file-directory.
5890
5891 * dwarf2read.c (struct dwp_file): Fix comment.
5892 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
5893
5894 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
5895 better.
5896
5897 2013-06-20 Yao Qi <yao@codesourcery.com>
5898
5899 * breakpoint.c (create_breakpoint): Fix code indentation.
5900
5901 2013-06-20 Yao Qi <yao@codesourcery.com>
5902
5903 * breakpoint.c (create_breakpoints_sal_default): Remove
5904 parameter 'lsal'. Update declaration.
5905 (bkpt_create_breakpoints_sal): Caller update.
5906 (tracepoint_create_breakpoints_sal): Likewise.
5907
5908 2013-06-20 Pedro Alves <pedro@codesourcery.com>
5909 Yao Qi <yao@codesourcery.com>
5910
5911 * NEWS: Mention the new option '--skip-unavailable' of command
5912 -data-list-register-values.
5913 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
5914 --skip-unavailable option. Adjust to use output_register.
5915 (output_register): Add new 'skip_unavailable' parameter.
5916 Handle it.
5917
5918 2013-06-19 Mike Frysinger <vapier@gentoo.org>
5919
5920 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
5921 common/i386-gcc-cpuid.h.
5922 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
5923 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
5924 Copy the latest version from upstream gcc.
5925 * common/linux-btrace.c: Include i386-cpuid.h.
5926 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
5927 call to i386_cpuid.
5928 (cpu_supports_btrace): Likewise.
5929 * go32-nat.c: Include i386-cpuid.h.
5930 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
5931
5932 2013-06-19 Doug Evans <dje@google.com>
5933
5934 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
5935 (get_section_index): Ditto.
5936
5937 2013-06-19 Tom Tromey <tromey@redhat.com>
5938
5939 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
5940 "dprintf" help.
5941
5942 2013-06-18 Doug Evans <dje@google.com>
5943
5944 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
5945 before using it.
5946 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
5947 Move test of cu_index closer to use. Print complaint if cu_index
5948 is bad.
5949
5950 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5951
5952 * machoread.c (oso_vector): Delete this global.
5953 (macho_register_oso): Add new parameter "oso_vector_ptr".
5954 Use it instead of the "oso_vector" global.
5955 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
5956 (macho_symfile_read): Use a local oso_vector, to be free'ed
5957 at the end of this function, in place of the old "oso_vector"
5958 global. Update various function calls accordingly. Use one
5959 single cleanup chain for the entire function.
5960
5961 2013-06-18 Joel Brobecker <brobecker@adacore.com>
5962
5963 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
5964 DWARF2_PER_OBJFILE by uses of DATA instead.
5965
5966 2013-06-18 Tom Tromey <tromey@redhat.com>
5967
5968 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
5969 argument.
5970 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
5971 Special case signals other than GDB_SIGNAL_TRAP.
5972 (explains_signal_watchpoint): New function.
5973 (base_breakpoint_explains_signal): Add 'sig' argument.
5974 (initialize_breakpoint_ops): Set 'explains_signal' method for
5975 watchpoints.
5976 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
5977 signal argument.
5978 (bpstat_explains_signal): Likewise.
5979 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
5980
5981 2013-06-18 Tom Tromey <tromey@redhat.com>
5982
5983 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
5984
5985 2013-06-18 Tom Tromey <tromey@redhat.com>
5986
5987 * python/python.c (finish_python_initialization): Decref
5988 'pythondir' on failure path as well.
5989
5990 2013-06-18 Tom Tromey <tromey@redhat.com>
5991
5992 PR symtab/15391:
5993 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
5994 after taking bits_to_skip into account. Sign extend byte_offset.
5995 * utils.h (gdb_sign_extend): Declare.
5996 * utils.c (gdb_sign_extend): New function.
5997
5998 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5999
6000 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6001
6002 2013-06-17 Pierre Muller <muller@sourceware.org>
6003
6004 * corelow.c (core_open): Print GDB signal name instead of target
6005 signal number.
6006
6007 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6008
6009 * .gitignore: Add /gcore.
6010
6011 2013-06-13 Doug Evans <dje@google.com>
6012
6013 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6014 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6015
6016 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6017
6018 * stack.c (backtrace_command_1): Fix indentation.
6019
6020 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6021
6022 * window-nat.c (thread_rec): Add missing empty line after
6023 local variable declaration.
6024
6025 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6026
6027 * windows-nat.c (thread_rec): Revert format used to print
6028 error code returned by SuspendThread from %d back to %u.
6029
6030 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6031
6032 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6033 ID in debug trace.
6034 (get_windows_debug_event): Likewise, for all debug traces.
6035
6036 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6037
6038 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6039 warning message.
6040
6041 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6042 Yao Qi <yao@codesourcery.com>
6043
6044 * mi/mi-main.c (get_register): Remove declaration.
6045 (output_register): Declare.
6046 (mi_cmd_data_list_register_values): Remove local variable
6047 'tuple_cleanup'. Move some code into output_register.
6048 (get_register): Renamed to ...
6049 (output_register): ... this. Output the register's
6050 "number" ui_out tuple here.
6051
6052 2013-06-07 Pedro Alves <palves@redhat.com>
6053
6054 * darwin-nat.c: Fix formating in copyright header.
6055 * darwin-nat.h: Likewise.
6056 * gnu-nat.c: Likewise.
6057 * machoread.c: Likewise.
6058
6059 2013-06-07 Pedro Alves <palves@redhat.com>
6060
6061 PR server/14823
6062 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6063 static. Output a global target description pointer.
6064 (init_registers_${name}): Adjust to initialize a
6065 target description structure.
6066
6067 2013-06-07 Will Newton <will.newton@linaro.org>
6068
6069 * printcmd.c (build_address_symbolic): Call
6070 gdbarch_addr_bits_remove for text minimal symbols.
6071
6072 2013-06-07 Will Newton <will.newton@linaro.org>
6073
6074 * MAINTAINERS: Add myself to Write After Approval.
6075
6076 2013-06-07 Yao Qi <yao@codesourcery.com>
6077
6078 * tracepoint.c (start_tracing): Move code to ...
6079 (trace_reset_local_state): ... here. New.
6080 (disconnect_tracing): Don't call set_current_traceframe,
6081 set_tracepoint_num, and set_traceframe_context. Call
6082 trace_reset_local_state instead.
6083 (tfile_close): Call trace_reset_local_state.
6084 * ctf.c (ctf_close): Likewise.
6085 * remote.c (remote_close): Likewise.
6086 * tracepoint.h (trace_reset_local_state): Declare.
6087
6088 2013-06-06 Doug Evans <dje@google.com>
6089
6090 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6091 and fix header docs.
6092
6093 2013-06-05 Doug Evans <dje@google.com>
6094 Keith Seitz <keiths@redhat.com>
6095
6096 PR 15519
6097 * cp-namespace.c (find_symbol_in_baseclass): Call
6098 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6099 Check result of call to lookup_symbol_static.
6100 Call lookup_static_symbol_aux unconditionally.
6101 Call check_typedef on base types before accessing them.
6102 (cp_lookup_nested_symbol): Fix comment.
6103
6104 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6105
6106 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6107 minimal symbols pointing to function descriptors.
6108
6109 2013-06-05 Tom Tromey <tromey@redhat.com>
6110
6111 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6112
6113 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6114 Pedro Alves <palves@redhat.com>
6115
6116 * remote.c (remote_wait_as): Restore signal handler before returning
6117 when GDB gets a notification.
6118
6119 2013-06-04 Gary Benson <gbenson@redhat.com>
6120
6121 PR 2328
6122 * breakpoint.h (handle_solib_event): Moved function declaration
6123 to solib.h.
6124 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6125 (bpstat_stop_status): Pass new argument to handle_solib_event.
6126 * solib.h (update_solib_breakpoints): New function declaration.
6127 (handle_solib_event): Moved function declaration from
6128 breakpoint.h.
6129 * solib.c (update_solib_breakpoints): New function.
6130 (handle_solib_event): Moved function from breakpoint.c.
6131 Updated to call solib_ops->handle_event if not NULL.
6132 * solist.h (target_so_ops): New fields "update_breakpoints" and
6133 "handle_event".
6134 * infrun.c (set_stop_on_solib_events): New function.
6135 (_initialize_infrun): Use the above for "set
6136 stop-on-solib-events".
6137 (handle_inferior_event): Pass new argument to handle_solib_event.
6138 * solib-svr4.c (probe.h): New include.
6139 (svr4_free_library_list): New forward declaration.
6140 (probe_action): New enum.
6141 (probe_info): New struct.
6142 (probe_info): New static variable.
6143 (NUM_PROBES): New definition.
6144 (svr4_info): New fields "using_xfer", "probes_table" and
6145 "solib_list".
6146 (free_probes_table): New function.
6147 (free_solib_list): New function.
6148 (svr4_pspace_data_cleanup): Free probes table and solib list.
6149 (svr4_copy_library_list): New function.
6150 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6151 (svr4_read_so_list): New parameter "prev_lm".
6152 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6153 (svr4_current_sos): New function.
6154 (probe_and_action): New struct.
6155 (hash_probe_and_action): New function.
6156 (equal_probe_and_action): Likewise.
6157 (register_solib_event_probe): Likewise.
6158 (solib_event_probe_at): Likewise.
6159 (solib_event_probe_action): Likewise.
6160 (solist_update_full): Likewise.
6161 (solist_update_incremental): Likewise.
6162 (disable_probes_interface_cleanup): Likewise.
6163 (svr4_handle_solib_event): Likewise.
6164 (svr4_update_solib_event_breakpoint): Likewise.
6165 (svr4_update_solib_event_breakpoints): Likewise.
6166 (svr4_create_solib_event_breakpoints): Likewise.
6167 (enable_break): Free probes table before creating breakpoints.
6168 Use svr4_create_solib_event_breakpoints to create breakpoints.
6169 (svr4_solib_create_inferior_hook): Free the solib list.
6170 (_initialize_svr4_solib): Initialise
6171 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6172
6173 2013-06-04 Gary Benson <gbenson@redhat.com>
6174
6175 * target.h (target_ops): New field
6176 "to_augmented_libraries_svr4_read".
6177 (target_augmented_libraries_svr4_read): New macro.
6178 * target.c (update_current_target): Handle
6179 to_augmented_libraries_svr4_read.
6180 * remote.c (remote_state): New field
6181 "augmented_libraries_svr4_read".
6182 (remote_augmented_libraries_svr4_read_feature): New function.
6183 (remote_protocol_features): Add entry for
6184 "augmented-libraries-svr4-read".
6185 (remote_augmented_libraries_svr4_read): New function.
6186 (init_remote_ops): Initialize
6187 remote_ops.to_augmented_libraries_svr4_read.
6188
6189 2013-06-04 Gary Benson <gbenson@redhat.com>
6190
6191 * NEWS: Update.
6192
6193 2013-06-04 Gary Benson <gbenson@redhat.com>
6194
6195 * objfiles.h (inhibit_section_map_updates): New function
6196 declaration.
6197 (resume_section_map_updates): Likewise.
6198 (resume_section_map_updates_cleanup): Likewise.
6199 * objfiles.c (objfile_pspace_info): Removed field
6200 "objfiles_changed_p". New fields "new_objfiles_available",
6201 "section_map_dirty" and "inhibit_updates".
6202 (allocate_objfile): Set new_objfiles_available.
6203 (free_objfile): Set section_map_dirty.
6204 (objfile_relocate1): Likewise.
6205 (in_plt_section): Likewise.
6206 (find_pc_section): Update the conditions under which the
6207 section map will be updated.
6208 (inhibit_section_map_updates): New function.
6209 (resume_section_map_updates): Likewise.
6210 (resume_section_map_updates_cleanup): Likewise.
6211
6212 2013-06-04 Gary Benson <gbenson@redhat.com>
6213
6214 * probe.h (get_probe_argument_count): New declaration.
6215 (evaluate_probe_argument): Likewise.
6216 * probe.c (get_probe_argument_count): New function.
6217 (evaluate_probe_argument): Likewise.
6218 (probe_safe_evaluate_at_pc): Use the above new functions.
6219
6220 2013-06-04 Alan Modra <amodra@gmail.com>
6221
6222 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6223 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6224 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6225 target mem reads on optional insns.
6226 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6227 ppc_insns_match_pattern calls.
6228 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6229 Add match for power7 thread safety insns, and new order of
6230 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6231 invocation in comment, and update rest of comment.
6232 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6233 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6234 (ppc64_standard_linkage2_target): Update insn offsets.
6235 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6236 stubs first. Update calls.
6237
6238 2013-06-04 Yao Qi <yao@codesourcery.com>
6239
6240 * solib.c (solib_find): Don't need dir separator if path has
6241 drive spec.
6242
6243 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6244
6245 Revert (indirectly causes a SIGSEGV):
6246 * machoread.c (macho_symfile_read): Assign first cleanup to
6247 'back_to'.
6248
6249 2013-06-03 Yao Qi <yao@codesourcery.com>
6250
6251 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6252 mi-parse.c. Make them static.
6253 (mi_all_values): Likewise.
6254 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6255 mi_parse_print_values. Make it external.
6256 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6257 Remove the declarations.
6258 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6259 * mi/mi-parse.h (mi_parse_print_values): Declare.
6260 * mi/mi-cmd-stack.c: Include mi-parse.h.
6261 (parse_print_values): Remove
6262 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6263 of parse_print_values.
6264 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6265
6266 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6267 Yao Qi <yao@codesourcery.com>
6268
6269 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6270 (encode_actions): Move code to ...
6271 (all_tracepoint_actions_and_cleanup): ... here. New.
6272 (trace_dump_command): Likewise.
6273
6274 2013-05-30 Tom Tromey <tromey@redhat.com>
6275
6276 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6277
6278 2013-05-30 Tom Tromey <tromey@redhat.com>
6279
6280 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6281 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6282 'old_chain' argument. Add 'parser_result' argument.
6283 (gdb_xml_create_parser_and_cleanup): Remove old version.
6284 (gdb_xml_parse_quick): Update.
6285 (xml_process_xincludes): Update.
6286 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6287 declare.
6288
6289 2013-05-30 Tom Tromey <tromey@redhat.com>
6290
6291 * probe.c (collect_probes): Check arguments for NULL before
6292 calling compile_rx_or_error.
6293 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6294 Remove NULL return.
6295
6296 2013-05-30 Tom Tromey <tromey@redhat.com>
6297
6298 * infrun.c (adjust_pc_after_break): Introduce an outer null
6299 cleanup.
6300
6301 2013-05-30 Tom Tromey <tromey@redhat.com>
6302
6303 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6304
6305 2013-05-30 Tom Tromey <tromey@redhat.com>
6306
6307 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6308 for 'old_chain'. Do not check 'head' before processing
6309 cleanups.
6310
6311 2013-05-30 Tom Tromey <tromey@redhat.com>
6312
6313 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6314 "cleanup_tuple".
6315
6316 2013-05-30 Tom Tromey <tromey@redhat.com>
6317
6318 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6319 inner scope. Unconditionally call do_cleanups.
6320
6321 2013-05-30 Tom Tromey <tromey@redhat.com>
6322
6323 * source.c (find_and_open_source): Call do_cleanups.
6324
6325 2013-05-30 Tom Tromey <tromey@redhat.com>
6326
6327 * linux-thread-db.c (thread_db_load_search): Unconditionally
6328 call do_cleanups.
6329
6330 2013-05-30 Tom Tromey <tromey@redhat.com>
6331
6332 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6333 for 'cleanup'; instead use a later one.
6334
6335 2013-05-30 Tom Tromey <tromey@redhat.com>
6336
6337 * python/py-breakpoint.c (bppy_get_commands): Use
6338 explicit, unconditional return.
6339 * python/py-frame.c (frapy_read_var): Likewise.
6340 * python/python.c (gdbpy_decode_line): Likewise.
6341
6342 2013-05-30 Tom Tromey <tromey@redhat.com>
6343
6344 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6345 do_cleanups on all return paths.
6346
6347 2013-05-30 Tom Tromey <tromey@redhat.com>
6348
6349 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6350
6351 2013-05-30 Tom Tromey <tromey@redhat.com>
6352
6353 * stabsread.c (read_struct_type): Call do_cleanups along
6354 all return paths.
6355
6356 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6357
6358 * mips-linux-tdep.c: Adjust formatting throughout.
6359
6360 2013-05-30 Tom Tromey <tromey@redhat.com>
6361
6362 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6363 along all return paths.
6364
6365 2013-05-30 Tom Tromey <tromey@redhat.com>
6366
6367 * symfile.c (find_separate_debug_file): Call do_cleanups
6368 along all return paths.
6369
6370 2013-05-30 Tom Tromey <tromey@redhat.com>
6371
6372 * symtab.c (search_symbols): Introduce a null cleanup for
6373 'retval_chain'.
6374
6375 2013-05-30 Tom Tromey <tromey@redhat.com>
6376
6377 * python/py-value.c (valpy_binop): Call do_cleanups before
6378 exiting loop.
6379
6380 2013-05-30 Tom Tromey <tromey@redhat.com>
6381
6382 * python/py-prettyprint.c (print_children): Remove extra
6383 do_cleanups call.
6384
6385 2013-05-30 Tom Tromey <tromey@redhat.com>
6386
6387 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6388 all return paths.
6389
6390 2013-05-30 Tom Tromey <tromey@redhat.com>
6391
6392 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6393 along all return paths.
6394
6395 2013-05-30 Tom Tromey <tromey@redhat.com>
6396
6397 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6398 call do_cleanups.
6399
6400 2013-05-30 Tom Tromey <tromey@redhat.com>
6401
6402 * varobj.c (c_value_of_root): Call do_cleanups along all
6403 return paths.
6404
6405 2013-05-30 Tom Tromey <tromey@redhat.com>
6406
6407 * tracepoint.c (trace_dump_command): Unconditionally call
6408 do_cleanups.
6409
6410 2013-05-30 Tom Tromey <tromey@redhat.com>
6411
6412 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6413 do_cleanups earlier.
6414
6415 2013-05-30 Tom Tromey <tromey@redhat.com>
6416
6417 * machoread.c (macho_symfile_read): Assign first cleanup to
6418 'back_to'.
6419
6420 2013-05-30 Tom Tromey <tromey@redhat.com>
6421
6422 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6423
6424 2013-05-30 Tom Tromey <tromey@redhat.com>
6425
6426 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6427
6428 2013-05-30 Tom Tromey <tromey@redhat.com>
6429
6430 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6431 call discard_cleanups.
6432 (inf_ptrace_attach): Likewise.
6433
6434 2013-05-30 Tom Tromey <tromey@redhat.com>
6435
6436 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6437 return paths.
6438 (mips_initialize): Likewise.
6439 (common_open): Call do_cleanups.
6440
6441 2013-05-30 Tom Tromey <tromey@redhat.com>
6442
6443 * utils.c (internal_vproblem): Call do_cleanups.
6444
6445 2013-05-30 Tom Tromey <tromey@redhat.com>
6446
6447 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6448
6449 2013-05-30 Tom Tromey <tromey@redhat.com>
6450
6451 * cli/cli-script.c (setup_user_args): Don't return after error.
6452
6453 2013-05-30 Tom Tromey <tromey@redhat.com>
6454
6455 * somread.c (som_symtab_read): Call do_cleanups.
6456
6457 2013-05-30 Tom Tromey <tromey@redhat.com>
6458
6459 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6460
6461 2013-05-30 Tom Tromey <tromey@redhat.com>
6462
6463 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6464 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6465 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6466 * source.c (show_substitute_path_command): Call do_cleanups.
6467 (unset_substitute_path_command, set_substitute_path_command):
6468 Likewise.
6469 * symfile.c (load_command): Call do_cleanups.
6470
6471 2013-05-30 Tom Tromey <tromey@redhat.com>
6472
6473 * contrib/cleanup_check.py: New file.
6474 * contrib/gcc-with-excheck: Add option parsing.
6475
6476 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6477
6478 * windows-nat.c (windows_delete_thread): Add missing space
6479 in cast expression.
6480
6481 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6482
6483 * inferior.c (top level): Include tilde.h.
6484 (add_inferior_command): Call tilde_expand on the value of 'exec'
6485 argument.
6486
6487 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6488 Yao Qi <yao@codesourcery.com>
6489
6490 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6491 Caller update.
6492 (encode_actions): Likewise.
6493 * remote.c (remote_download_tracepoint): Caller update.
6494 * tracepoint.h (encode_actions): Update declaration.
6495
6496 2013-05-30 Pedro Alves <palves@redhat.com>
6497
6498 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6499 pointer.
6500
6501 2013-05-30 Yao Qi <yao@codesourcery.com>
6502
6503 * remote.c (remote_check_symbols): Remove unused parameter
6504 'objfile'.
6505 Declaration update.
6506 (remote_start_remote, remote_new_objfile): Caller update.
6507
6508 2013-05-30 Yao Qi <yao@codesourcery.com>
6509
6510 * mi/mi-cmds.c (mi_cmds): Define MI command
6511 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6512 DEF_MI_CMD_CLI.
6513
6514 2013-05-29 Pedro Alves <palves@redhat.com>
6515
6516 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6517 (remote_insert_watchpoint, remote_remove_watchpoint)
6518 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6519 (remote_verify_memory, compare_sections_command)
6520 (remote_search_memory): Set the general process/thread on the
6521 remote side.
6522
6523 2013-05-29 Pedro Alves <palves@redhat.com>
6524
6525 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6526 (_initialize_aarch64_tdep): Don't call
6527 initialize_tdesc_aarch64_without_fpu.
6528 * features/Makefile (WHICH): Remove reference to
6529 aarch64-without-fpu.
6530 * features/aarch64-without-fpu.c: Delete file.
6531 * regformats/aarch64-without-fpu.dat: Delete file.
6532
6533 2013-05-28 Yao Qi <yao@codesourcery.com>
6534
6535 * tracepoint.c (stringify_collection_list): Remove parameter
6536 'string'.
6537 (encode_actions): Caller update. Remove local variables.
6538
6539 2013-05-24 Yao Qi <yao@codesourcery.com>
6540
6541 * tracepoint.c (TFILE_PID): Remove.
6542 (tfile_open): Don't add thread and inferior.
6543 (tfile_close): Don't set 'inferior_ptid'. Don't call
6544 exit_inferior_silent.
6545 (tfile_thread_alive): Remove.
6546 (init_tfile_ops): Don't set field 'to_thread_alive' of
6547 tfile_ops.
6548
6549 2013-05-23 Doug Evans <dje@google.com>
6550
6551 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6552
6553 2013-05-23 Pedro Alves <palves@redhat.com>
6554
6555 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6556 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6557 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6558 Only define if HAVE_SOCKETS is defined.
6559 * configure.ac: Check for sys/socket.h.
6560 * config.in, configure: Regenerate.
6561
6562 2013-05-23 Pedro Alves <palves@redhat.com>
6563
6564 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6565 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6566 printing uint32_t variables.
6567
6568 2013-05-23 Pedro Alves <palves@redhat.com>
6569
6570 * NEWS: Mention GDBserver range stepping support.
6571
6572 2013-05-23 Yao Qi <yao@codesourcery.com>
6573 Pedro Alves <palves@redhat.com>
6574
6575 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6576 field.
6577 * infcmd.c (step_once, until_next_command): Enable range stepping.
6578 * infrun.c (displaced_step_prepare): Disable range stepping.
6579 (resume): Disable range stepping if stepping over a breakpoint or
6580 we have software watchpoints. If range stepping is enabled,
6581 assert the thread is in the stepping range.
6582 (clear_proceed_status_thread): Clear may_range_step.
6583 (handle_inferior_event): Disable range stepping as soon as we know
6584 the thread that hit the event. Re-enable it whenever we're going
6585 to step with a step range.
6586 * remote.c (struct vCont_action_support) <r>: New field.
6587 (use_range_stepping): New global.
6588 (remote_vcont_probe): Handle 'r' action.
6589 (append_resumption): Append an 'r' action if the thread may range
6590 step.
6591 (show_range_stepping): New function.
6592 (set_range_stepping): New function.
6593 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6594 'set range-stepping' and 'show range-stepping' commands.
6595 * NEWS: Mention range stepping, the new vCont;r action, and the
6596 new "set/show range-stepping" commands.
6597
6598 2013-05-23 Yao Qi <yao@codesourcery.com>
6599 Pedro Alves <palves@redhat.com>
6600
6601 * remote.c (struct vCont_action_support): New struct.
6602 (struct remote_state) <support_vCont_t>: Remove field.
6603 <vCont_actions_support>: New field.
6604 (remote_vcont_probe, remote_stop_ns): Update.
6605
6606 2013-05-23 Yao Qi <yao@codesourcery.com>
6607 Pedro Alves <palves@redhat.com>
6608
6609 * gdbthread.h (pc_in_thread_step_range): New declaration.
6610 * thread.c (pc_in_thread_step_range): New function.
6611 * infrun.c (handle_inferior_event): Use it.
6612
6613 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6614
6615 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6616 of sprintf.
6617
6618 2013-05-22 Keith Seitz <keiths@redhat.com>
6619
6620 * ada-lang.c (is_known_support_routine): Add explicit free of
6621 'func_name' from find_frame_funname.
6622 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6623 for func_name from find_frame_funname.
6624 * python/py-frame.c (frapy_name): Add explicit free of
6625 'name' from find_frame_funname.
6626 * stack.c (find_frame_funname): Add comment explaining that
6627 funcp must be freed by the caller.
6628 Return copy of symbol names instead of pointers.
6629 (print_frame): Add a cleanup for 'funname' from
6630 find_frame_funname.
6631 * stack.h (find_frame_funname): Remove "const" from
6632 'funname' parameter.
6633
6634 2013-05-22 Tom Tromey <tromey@redhat.com>
6635
6636 PR c++/15401:
6637 * c-valprint.c (c_value_print): Use value_addr for
6638 references. Convert back to reference type with value_ref.
6639
6640 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6641
6642 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6643 unloaded DLL, it will be done by handle_solib_event. See
6644 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6645 details.
6646
6647 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6648
6649 * ui-out.c: Create typedef ui_out_level_p and define vector
6650 operations for that type.
6651 (struct ui_out): Use a vector instead of an array.
6652 (current_level): Return level from a vector.
6653 (push_level): Create a level in a vector.
6654 (pop_level): Delete a level in a vector.
6655 (ui_out_new): Create initial level zero level, and store in a
6656 vector.
6657 (ui_out_destroy): Add vector cleanup.
6658
6659 2013-05-22 Pedro Alves <palves@redhat.com>
6660
6661 * python/python-internal.h (gdb_Py_DECREF): Tag with
6662 "ARI: editCase function".
6663
6664 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6665
6666 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6667
6668 2013-05-21 Pedro Alves <palves@redhat.com>
6669
6670 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6671 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6672 * python/py-utils.c (py_decref): Don't check for NULL before
6673 calling Py_DECREF.
6674
6675 2013-05-21 Pedro Alves <palves@redhat.com>
6676
6677 * python/py-utils.c (py_decref): Remove extra braces.
6678 (gdb_pymodule_addobject): Remove extra braces.
6679 * python-internal.h (gdb_Py_DECREF): New static inline function.
6680 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6681
6682 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6683
6684 * breakpoints.c (detach_breakpoints): Do not
6685 detach breakpoints locations with loc_type bp_loc_other.
6686
6687 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6688
6689 Workaround Python 2.6.
6690 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6691 a block.
6692
6693 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6694
6695 Code cleanup: constification.
6696 * solib.c (solib_ops): Make return type and ops variable type const.
6697 (set_solib_ops): Make the new_ops parameter and ops variable const.
6698 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6699 (solib_add, solib_keep_data_in_core, clear_solib)
6700 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6701 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6702 const.
6703 * solib.h (set_solib_ops): Make the new_ops parameter const.
6704
6705 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6706
6707 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6708 variable.
6709 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6710 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6711 (SYSTEM_GDBINIT_FILES): New variables.
6712 (all): Add stamp-system-gdbinit.
6713 (stamp-system-gdbinit): New rule.
6714 (clean-system-gdbinit, install-system-gdbinit)
6715 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6716 (install-only): Add dependency on install-system-gdbinit.
6717 (uninstall): Add dependency on uninstall-system-gdbinit.
6718 (clean): Add dependency on clean-system-gdbinit.
6719 * system-gdbinit/elinos.py: New file.
6720 * system-gdbinit/wrs-linux.py: New file.
6721
6722 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6723
6724 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6725
6726 2013-05-21 Hui Zhu <hui@codesourcery.com>
6727
6728 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6729 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6730 * mi/mi-cmd-break.c (ctype.h): New include.
6731 (gdb_obstack.h): New include.
6732 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6733 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6734 (mi_cmd_dprintf_insert): New.
6735 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6736 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6737
6738 2013-05-20 Tom Tromey <tromey@redhat.com>
6739
6740 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6741
6742 2013-05-20 Tom Tromey <tromey@redhat.com>
6743
6744 * python/py-value.c (valpy_get_dynamic_type): Simplify
6745 dynamic_type assignment. Use Py_XINCREF.
6746
6747 2013-05-20 Tom Tromey <tromey@redhat.com>
6748
6749 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6750
6751 2013-05-20 Tom Tromey <tromey@redhat.com>
6752
6753 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6754 (gdbpy_selected_frame): Move object-construction code
6755 out of TRY_CATCH.
6756
6757 2013-05-20 Tom Tromey <tromey@redhat.com>
6758
6759 * python/py-arch.c (gdbpy_initialize_arch): Use
6760 gdb_pymodule_addobject.
6761 * python/py-block.c (gdbpy_initialize_blocks): Use
6762 gdb_pymodule_addobject.
6763 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6764 gdb_pymodule_addobject.
6765 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6766 gdb_pymodule_addobject.
6767 * python/py-event.c (gdbpy_initialize_event_generic): Use
6768 gdb_pymodule_addobject.
6769 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6770 gdb_pymodule_addobject.
6771 * python/py-evts.c (add_new_registry): Use
6772 gdb_pymodule_addobject.
6773 (gdbpy_initialize_py_events): Likewise.
6774 * python/py-finishbreakpoint.c
6775 (gdbpy_initialize_finishbreakpoints): Use
6776 gdb_pymodule_addobject.
6777 * python/py-frame.c (gdbpy_initialize_frames): Use
6778 gdb_pymodule_addobject.
6779 * python/py-function.c (gdbpy_initialize_functions): Use
6780 gdb_pymodule_addobject.
6781 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6782 gdb_pymodule_addobject.
6783 * python/py-infthread.c (gdbpy_initialize_thread): Use
6784 gdb_pymodule_addobject.
6785 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6786 gdb_pymodule_addobject.
6787 * python/py-param.c (gdbpy_initialize_parameters): Use
6788 gdb_pymodule_addobject.
6789 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6790 gdb_pymodule_addobject.
6791 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6792 gdb_pymodule_addobject.
6793 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6794 gdb_pymodule_addobject.
6795 * python/py-type.c (gdbpy_initialize_types): Use
6796 gdb_pymodule_addobject.
6797 * python/py-utils.c (gdb_pymodule_addobject): New function.
6798 * python/py-value.c (gdbpy_initialize_values): Use
6799 gdb_pymodule_addobject.
6800 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6801 * python/python.c (_initialize_python): Use
6802 gdb_pymodule_addobject.
6803
6804 2013-05-20 Tom Tromey <tromey@redhat.com>
6805
6806 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6807 * python/py-param.c (get_set_value, get_show_value): Use
6808 explicit decrefs.
6809 * python/python.c (start_type_printers, apply_type_printers):
6810 Use explicit decrefs.
6811
6812 2013-05-20 Tom Tromey <tromey@redhat.com>
6813
6814 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6815 incref the module.
6816
6817 2013-05-20 Tom Tromey <tromey@redhat.com>
6818
6819 * python/python.c (gdbpy_run_events): Decref the result
6820 of PyObject_CallObject.
6821
6822 2013-05-20 Tom Tromey <tromey@redhat.com>
6823
6824 * python/py-symtab.c (set_sal): Use
6825 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
6826 (symtab_and_line_to_sal_object): Update.
6827
6828 2013-05-20 Tom Tromey <tromey@redhat.com>
6829
6830 * python/py-param.c (compute_enum_values): Decref 'item'.
6831
6832 2013-05-20 Tom Tromey <tromey@redhat.com>
6833
6834 * mi/mi-main.c: Include python-internal.h.
6835 (mi_cmd_list_features): Check gdb_python_initialized.
6836 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6837 (python_inferior_exit, python_new_objfile, add_thread_object)
6838 (delete_thread_object, py_free_inferior): Check
6839 gdb_python_initialized.
6840 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6841 gdb_python_initialized.
6842 * python/py-type.c (save_objfile_types): Check
6843 gdb_python_initialized.
6844 * python/python-internal.h (gdb_python_initialized): Declare.
6845 * python/python.c (ensure_python_env): Throw exception if
6846 Python not initialized.
6847 (before_prompt_hook, source_python_script_for_objfile)
6848 (start_type_printers, apply_type_printers,
6849 free_type_printers): Check gdb_python_initialized.
6850 * varobj.c (varobj_get_display_hint)
6851 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
6852 (install_new_value_visualizer, varobj_set_visualizer)
6853 (value_get_print_value): Check gdb_python_initialized.
6854
6855 2013-05-20 Tom Tromey <tromey@redhat.com>
6856
6857 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
6858 Check errors.
6859 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
6860 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
6861 Check errors.
6862 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
6863 Check errors.
6864 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
6865 Check errors.
6866 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
6867 Check errors.
6868 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
6869 init function to return 'int'.
6870 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
6871 Return 'int'. Check errors.
6872 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
6873 Check errors.
6874 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
6875 Return 'int'. Check errors.
6876 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
6877 Check errors.
6878 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
6879 Check errors.
6880 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
6881 Check errors.
6882 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
6883 Check errors.
6884 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
6885 Check errors.
6886 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
6887 Check errors.
6888 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
6889 Check errors.
6890 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
6891 Check errors.
6892 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
6893 Check errors.
6894 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
6895 Check errors.
6896 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
6897 Check errors.
6898 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
6899 Check errors.
6900 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
6901 Check errors.
6902 * python/python-internal.h (gdbpy_initialize_auto_load,
6903 gdbpy_initialize_values, gdbpy_initialize_frames,
6904 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
6905 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
6906 gdbpy_initialize_blocks, gdbpy_initialize_types,
6907 gdbpy_initialize_functions, gdbpy_initialize_pspace,
6908 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
6909 gdbpy_initialize_finishbreakpoints,
6910 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
6911 gdbpy_initialize_thread, gdbpy_initialize_inferior,
6912 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
6913 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
6914 gdbpy_initialize_signal_event,
6915 gdbpy_initialize_breakpoint_event,
6916 gdbpy_initialize_continue_event,
6917 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
6918 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
6919 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6920 * python/python.c (gdb_python_initialized): New global.
6921 (gdbpy_initialize_events): Return 'int'. Check errors.
6922 (_initialize_python): Check errors. Set
6923 gdb_python_initialized.
6924
6925 2013-05-20 Tom Tromey <tromey@redhat.com>
6926
6927 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
6928 Decref the reslut of PyObject_CallMethod.
6929
6930 2013-05-20 Tom Tromey <tromey@redhat.com>
6931
6932 * python/py-event.c (gdbpy_initialize_event_generic): Return
6933 early if PyType_Ready fails.
6934
6935 2013-05-20 Tom Tromey <tromey@redhat.com>
6936
6937 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
6938 as 'default' in the switch.
6939
6940 2013-05-20 Tom Tromey <tromey@redhat.com>
6941
6942 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
6943 get_addr_from_python calls out of TRY_CATCH.
6944 (infpy_write_memory, infpy_search_memory): Likewise.
6945 * python/py-utils.c (get_addr_from_python): Return negative
6946 value on error. Use TRY_CATCH.
6947 * python/python-internal.h (get_addr_from_python): Use
6948 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6949
6950 2013-05-20 Tom Tromey <tromey@redhat.com>
6951
6952 * python/py-event.c (evpy_emit_event): Decref the
6953 result of PyObject_CallFunctionObjArgs.
6954
6955 2013-05-20 Tom Tromey <tromey@redhat.com>
6956
6957 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
6958 Correctly decref.
6959
6960 2013-05-20 Tom Tromey <tromey@redhat.com>
6961
6962 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
6963
6964 2013-05-20 Tom Tromey <tromey@redhat.com>
6965
6966 * python/py-event.h (gdbpy_initialize_event_generic): Use
6967 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6968 * python/py-evts.c (add_new_registry): Use
6969 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
6970 * python/python-internal.h
6971 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
6972
6973 2013-05-20 Tom Tromey <tromey@redhat.com>
6974
6975 * python/py-arch.c (archpy_disassemble): Update.
6976 * python/py-type.c (typy_get_composite, typy_lookup_typename)
6977 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
6978 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
6979 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
6980 macro.
6981 (GDB_PY_HANDLE_EXCEPTION): Update.
6982 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
6983
6984 2013-05-20 Tom Tromey <tromey@redhat.com>
6985
6986 * python/python-internal.h (events_object_type): Remove.
6987
6988 2013-05-20 Tom Tromey <tromey@redhat.com>
6989
6990 * python/py-event.h (evpy_emit_event): Use
6991 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
6992 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
6993 New macro.
6994
6995 2013-05-20 Tom Tromey <tromey@redhat.com>
6996
6997 * py-evtregistry.c (create_event_object): Decref
6998 eventregistry_object if PyList_New fails.
6999
7000 2013-05-20 Tom Tromey <tromey@redhat.com>
7001
7002 * py-cmd.c (gdbpy_string_to_argv): Check result of
7003 PyList_New.
7004
7005 2013-05-20 Tom Tromey <tromey@redhat.com>
7006
7007 * python/python.c (before_prompt_hook): Add cleanup to
7008 decref 'hook'.
7009
7010 2013-05-20 Tom Tromey <tromey@redhat.com>
7011
7012 * python/py-function.c (fnpy_init): Decref result of
7013 PyObject_GetAttrString.
7014
7015 2013-05-20 Tom Tromey <tromey@redhat.com>
7016
7017 * python/py-threadevent.c (get_event_thread): Use
7018 CPYCHECKER_RETURNS_BORROWED_REF.
7019 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7020 New define.
7021 (pspace_to_pspace_object, objfile_to_objfile_object)
7022 (find_thread_object): Use it.
7023
7024 2013-05-20 Tom Tromey <tromey@redhat.com>
7025
7026 * python/py-arch.c (arch_object_type): Use
7027 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7028 * python/py-block.c (block_syms_iterator_object_type):
7029 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7030 * python/py-bpevent.c (breakpoint_event_object_type):
7031 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7032 * python/py-cmd.c (cmdpy_object_type): Use
7033 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7034 * python/py-continueevent.c (continue_event_object_type):
7035 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7036 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7037 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7038 * python/py-events.h (thread_event_object_type):
7039 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7040 * python/py-evtregistry.c (eventregistry_object_type): Use
7041 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7042 * python/py-exitedevent.c (exited_event_object_type):
7043 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7044 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7045 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7046 * python/py-function.c (fnpy_object_type): Use
7047 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7048 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7049 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7050 * python/py-infthread.c (thread_object_type): Use
7051 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7052 * python/py-lazy-string.c (lazy_string_object_type):
7053 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7054 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7055 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7056 * python/py-objfile.c (objfile_object_type): Use
7057 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7058 * python/py-param.c (parmpy_object_type):
7059 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7060 * python/py-progspace.c (pspace_object_type):
7061 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7062 * python/py-signalevent.c (signal_event_object_type):
7063 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7064 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7065 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7066 * python/py-type.c (type_object_type, field_object_type)
7067 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7068 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7069 define.
7070 (value_object_type, block_object_type, symbol_object_type)
7071 (event_object_type, stop_event_object_type, breakpoint_object_type)
7072 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7073
7074 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7075
7076 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7077 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7078
7079 2013-05-20 Doug Evans <dje@google.com>
7080
7081 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7082 For Fission.
7083 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7084 reading_dwo_directly.
7085 (struct signatured_type): New member dwo_unit.
7086 (struct die_reader_specs): New member comp_dir.
7087 (create_signatured_type_table_from_index): Use malloc for
7088 all_type_units instead of objfile's obstack.
7089 (create_all_type_units): Ditto.
7090 (fill_in_sig_entry_from_dwo_entry): New function.
7091 (add_type_unit): New function.
7092 (lookup_dwo_signatured_type): New function.
7093 (lookup_dwp_signatured_type): New function.
7094 (lookup_signatured_type): New arg cu. All callers updated.
7095 (init_cu_die_reader): Initialize comp_dir.
7096 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7097 Change assert of matching type signatures to call error on mismatch.
7098 (lookup_dwo_unit): Add assert.
7099 (init_tu_and_read_dwo_dies): New function.
7100 (init_cutu_and_read_dies): Call it.
7101 (build_type_unit_groups): Handle case of no type unit groups created.
7102 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7103 (lookup_dwo_cutu): Tweak complaint.
7104 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7105 (dwarf2_per_objfile_free): Free all_type_units.
7106
7107 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7108
7109 * windows-nat.c (handle_unload_dll): Add missing empty line.
7110
7111 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7112
7113 * dwarf2read.c (prototyped_function_p): New function.
7114 (read_subroutine_type): Use it.
7115
7116 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7117
7118 * rs6000-aix-tdep.c: De-indent some example code provided
7119 as a comment.
7120
7121 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7122
7123 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7124 region is ok for a hardware watchpoint using the new ptrace interface
7125 on Power servers.
7126
7127 2013-05-17 Doug Evans <dje@google.com>
7128
7129 * NEWS: Mention new maintenance commands check-symtabs, and
7130 expand-symtabs, and renamed check-psymtabs.
7131 * psymtab.c (maintenance_check_psymtabs): Renamed from
7132 maintenance_check_symtabs. Only process already-expanded symbol
7133 tables.
7134 (_initialize_psymtab): Update.
7135 * symmisc.c (maintenance_check_symtabs): New function.
7136 (maintenance_expand_name_matcher): New function
7137 (maintenance_expand_file_matcher): New function
7138 (maintenance_expand_symtabs): New function.
7139 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7140 commands.
7141
7142 2013-05-17 Tom Tromey <tromey@redhat.com>
7143
7144 * python/py-inferior.c (infpy_read_memory): Don't call
7145 PyErr_SetString if PyObject_New fails.
7146 * python/py-frame.c (frame_info_to_frame_object): Don't call
7147 PyErr_SetString if PyObject_New fails.
7148
7149 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7150
7151 * acinclude.m4: Add check for dlopen in libdl.
7152 * configure.ac: Ditto.
7153 * configure: Regenerate.
7154
7155 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7156
7157 * frame.c (frame_stash): Convert to htab.
7158 (frame_addr_hash): New function.
7159 (frame_addr_hash_eq): New function.
7160 (frame_stash_create): Convert function to create
7161 a hash table.
7162 (frame_stash_add): Convert function to add an entry to a hash
7163 table.
7164 (frame_stash_find): Convert function to search the hash table.
7165 (frame_stash_invalidate): Convert function to empty the hash
7166 table.
7167 (get_frame_id): Only add to stash if a frame_id is created.
7168 (_initialize_frame): Call frame_stash_create.
7169
7170 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7171
7172 * configure.ac: Ensure MIG is available when building for GNU Hurd
7173 hosts.
7174 * configure: Regenerate.
7175
7176 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7177
7178 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7179
7180 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7181
7182 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7183 all cleanups are done before returning from this function.
7184
7185 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7186
7187 * utils.h: #include "exceptions.h".
7188 (enum errors): Remove partial declaration.
7189
7190 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7191
7192 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7193 * gdbarch.h, gdbarch.c: Regenerate.
7194 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7195 handling.
7196
7197 * rs6000-aix-tdep.h: New file.
7198 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7199 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7200 "xml-utils.h".
7201 (struct field_info, struct ld_info_desc): New types.
7202 (ld_info32_desc, ld_info64_desc): New static constants.
7203 (struct ld_info): New type.
7204 (rs6000_aix_extract_ld_info): New function.
7205 (rs6000_aix_shared_library_to_xml): Likewise.
7206 (rs6000_aix_ld_info_to_xml): Likewise.
7207 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7208 (rs6000_aix_init_osabi): Add call to
7209 set_gdbarch_core_xfer_shared_libraries_aix.
7210 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7211 Remove "xml-utils.h" include.
7212 (LdInfo): Delete typedef.
7213 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7214 Delete macros.
7215 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7216 Adjust code accordingly.
7217 (rs6000_core_ldinfo): Delete, folded into
7218 rs6000_aix_core_xfer_shared_libraries_aix.
7219 (rs6000_xfer_shared_library): Delete.
7220 (rs6000_xfer_shared_libraries): Reimplement.
7221
7222 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7223
7224 * record.c (record_goto_cmdlist): New.
7225 (cmd_record_goto): Split into this ...
7226 (cmd_record_goto_begin): ... this
7227 (cmd_record_goto_end): ... and this.
7228 (_initialize_record): Change "record goto" to prefix command.
7229 Add commands for "record goto begin" and "record goto end".
7230 Add an alias for "record goto start" to "record goto begin".
7231
7232 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7233
7234 * linespec.c (convert_linespec_to_sals): New comment for
7235 SOURCE_FILENAME assignment.
7236
7237 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7238
7239 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7240 internal_warning.
7241
7242 2013-05-14 Tom Tromey <tromey@redhat.com>
7243
7244 * eval.c (parse_and_eval_long): Make 'exp' const.
7245 * value.h (parse_and_eval_long): Update.
7246
7247 2013-05-14 Tom Tromey <tromey@redhat.com>
7248
7249 * ui-file.c (gdb_fopen): Make arguments const.
7250 * ui-file.h (gdb_fopen): Make arguments const.
7251
7252 2013-05-14 Tom Tromey <tromey@redhat.com>
7253
7254 * remote.c (remote_set_trace_notes): Make arguments const.
7255 * target.c (update_current_target): Update cast.
7256 * target.h (to_set_trace_notes): Make arguments const.
7257
7258 2013-05-14 Tom Tromey <tromey@redhat.com>
7259
7260 * go32-nat.c (go32_terminal_info): Make 'args' const.
7261 * inferior.h (child_terminal_info): Update.
7262 * inflow.c (child_terminal_info): Make 'args' const.
7263 * target.c (default_terminal_info): Make 'args' const.
7264 (debug_to_terminal_save_ours): Likewise.
7265 * target.h (struct target_ops) <to_terminal_info>: Make argument
7266 const.
7267
7268 2013-05-13 Tom Tromey <tromey@redhat.com>
7269
7270 * gcore.c (create_gcore_bfd): Make 'filename' const.
7271 * gcore.h (create_gcore_bfd): Make 'filename' const.
7272 * record-full.c (record_full_save): Make 'recfilename' const.
7273 * target.c (target_save_record): Make 'filename' const.
7274 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7275 const.
7276 (target_save_record): Likewise.
7277
7278 2013-05-13 Tom Tromey <tromey@redhat.com>
7279
7280 PR gdb/15338:
7281 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7282 ranges section has been read.
7283
7284 2013-05-13 Tom Tromey <tromey@redhat.com>
7285
7286 PR exp/15364:
7287 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7288 STRUCTOP_PTR>: Return a not_lval value for
7289 EVAL_AVOID_SIDE_EFFECTS.
7290 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7291 for EVAL_AVOID_SIDE_EFFECTS.
7292
7293 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7294
7295 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7296 floating point registers to register type before storing
7297 value.
7298 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7299 Likewise.
7300
7301 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7302 Tom Tromey <tromey@redhat.com>
7303
7304 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7305 New functions.
7306 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7307 Declare.
7308 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7309 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7310 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7311 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7312
7313 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7314 Tom Tromey <tromey@redhat.com>
7315
7316 PR build/15414:
7317 * configure: Rebuild.
7318 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7319 with -Wno-format.
7320
7321 2013-05-10 Pedro Alves <palves@redhat.com>
7322
7323 * remote.c (_initialize_remote): Fix spelling of
7324 qXfer:traceframe-info:read packet in packet config command.
7325
7326 2013-05-10 David Taylor <dtaylor@emc.com>
7327
7328 PR remote/15455
7329
7330 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7331 "QTro" at start of packet.
7332
7333 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7334
7335 * solib-aix.c (solib_aix_relocate_section_addresses):
7336 For the .bss section action, apply the same offset as
7337 the .data section.
7338
7339 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7340
7341 * solib-aix.c (solib_aix_relocate_section_addresses):
7342 Remove FIXME comment.
7343
7344 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7345
7346 PR tdep/15420:
7347 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7348 New functions, directly copied from sparc-sol-thread.c.
7349 * sparc-sol-thread.c: Delete.
7350 * configure.ac: Remove code handling sparc-solaris-thread.c.
7351 * configure: Regenerate.
7352
7353 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7354
7355 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7356 filter logic.
7357 (backtrace_command): Add "no-filters" option parsing.
7358 (_initialize_stack): Alter help to reflect "no-filters" option.
7359 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7360 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7361 (py-frame.o): Add target
7362 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7363 filter files.
7364 * python/python.h: Add new frame filter constants, and flag enum.
7365 (apply_frame_filter): Add definition.
7366 * python/python.c (apply_frame_filter): New non-Python
7367 enabled function.
7368 * python/py-utils.c (py_xdecref): New function.
7369 (make_cleanup_py_xdecref): Ditto.
7370 * python/py-objfile.c: Declare frame_filters dictionary.
7371 (objfpy_dealloc): Add frame_filters dealloc.
7372 (objfpy_new): Initialize frame_filters attribute.
7373 (objfile_to_objfile_object): Ditto.
7374 (objfpy_get_frame_filters): New function.
7375 (objfpy_set_frame_filters): New function.
7376 * python/py-progspace.c: Declare frame_filters dictionary.
7377 (pspy_dealloc): Add frame_filters dealloc.
7378 (pspy_new): Initialize frame_filters attribute.
7379 (pspacee_to_pspace_object): Ditto.
7380 (pspy_get_frame_filters): New function.
7381 (pspy_set_frame_filters): New function.
7382 * python/py-framefilter.c: New file.
7383 * python/lib/gdb/command/frame_filters.py: New file.
7384 * python/lib/gdb/frames.py: New file.
7385 * python/lib/gdb/__init__.py: Initialize global frame_filters
7386 dictionary
7387 * python/lib/gdb/FrameDecorator.py: New file.
7388 * python/lib/gdb/FrameIterator.py: New file.
7389 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7390 * mi/mi-cmds.h: Declare.
7391 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7392 --no-frame-filter logic, and Python frame filter logic.
7393 (stack_enable_frame_filters): New function.
7394 (parse_no_frame_option): Ditto.
7395 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7396 filter logic.
7397 (mi_cmd_stack_list_locals): Ditto.
7398 (mi_cmd_stack_list_args): Ditto.
7399 (mi_cmd_stack_list_variables): Ditto.
7400 * NEWS: Add frame filter note.
7401
7402 2013-05-09 Doug Evans <dje@google.com>
7403
7404 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7405 All callers updated.
7406 (syms_from_objfile): Ditto. Make static.
7407 (symbol_file_add_with_addrs): Renamed from
7408 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7409 num_offsets. All callers updated.
7410 * symfile.h (syms_from_objfile): Delete.
7411
7412 * symfile.c (decrement_reading_symtab): Add assert.
7413 (increment_reading_symtab): Ditto.
7414
7415 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7416
7417 * source.c (forward_search_command): Replace call to getc
7418 by call to fgetc.
7419 (reverse_search_command): Likewise.
7420
7421 2013-05-08 Doug Evans <dje@google.com>
7422
7423 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7424 matching test.
7425
7426 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7427
7428 * sol-thread.c (info_cb): Factorize the code a little.
7429
7430 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7431
7432 * sol-thread.c (info_cb): Rework the output of the "maintenance
7433 info sol-threads" command a bit.
7434
7435 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7436
7437 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7438 Replace ti.ti_startfunc by ti.ti_pc.
7439
7440 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7441
7442 * solib-aix.c (solib_aix_free_library_list): New function
7443 for the case where HAVE_LIBEXPAT is not defined.
7444
7445 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7446
7447 PR breakpoints/15413:
7448 * breakpoint.c (condition_completer): Simplify the code to
7449 disconsider multiple locations of breakpoints when completing the
7450 "condition" command.
7451
7452 2013-05-07 Pierre Muller <muller@sourceware.org>
7453
7454 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7455 instead of <sys/wait.h>.
7456
7457 2013-05-07 Pierre Muller <muller@sourceware.org>
7458
7459 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7460 trailing new line from warning message.
7461
7462 2013-05-07 Pierre Muller <muller@sourceware.org>
7463
7464 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7465 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7466
7467 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7468
7469 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7470 error message (ARI fix).
7471
7472 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7473
7474 * features/library-list-aix.dtd: Replace library-list by
7475 library-list-aix.
7476 * rs6000-nat.c: Replace library-list by library-list-aix
7477 throughout.
7478 * solib-aix.c: Likewise.
7479
7480 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7481
7482 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7483 Renames TARGET_OBJECT_AIX_LIBRARIES.
7484 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7485 TARGET_OBJECT_LIBRARIES_AIX throughout.
7486 * solib-aix.c: Likwise.
7487
7488 2013-05-07 Yao Qi <yao@codesourcery.com>
7489
7490 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7491 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7492
7493 2013-05-07 Yao Qi <yao@codesourcery.com>
7494
7495 * solib-dsbt.c (enable_break): Declare.
7496 (dsbt_current_sos): Remove call to enable_break2.
7497 (enable_break2): Rename to enable_break. Set solib breakpoint
7498 on '_dl_debug_state'.
7499 (enable_break): Remove.
7500
7501 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7502
7503 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7504 debug state prior to replicating existing hardware watchpoints or
7505 breakpoints.
7506
7507 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7508
7509 * gcore.c (gcore_create_callback): Ignore sections with
7510 separate_debug_objfile_backlink != NULL.
7511
7512 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7513 Andrew Jenner <andrew@codesourcery.com>
7514 Chung-Lin Tang <cltang@codesourcery.com>
7515 Julian Brown <julian@codesourcery.com>
7516
7517 Based on the nios2-elf port from Altera Corporation.
7518
7519 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7520 nios2-linux-tdep.o.
7521 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7522 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7523 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7524 * nios2-tdep.h: New.
7525 * nios2-tdep.c: New.
7526 * nios2-linux-tdep.c: New.
7527 * features/Makefile (WHICH): Add nios2-linux.
7528 (nios2-linux-expedite): Set.
7529 * features/nios2-cpu.xml: New.
7530 * features/nios2.xml: New.
7531 * features/nios2-linux.xml: New.
7532 * features/nios2.c: New (autogenerated).
7533 * features/nios2-linux.c: New (autogenerated).
7534 * regformats/nios2-linux.dat: New (autogenerated).
7535 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7536 and commands.
7537
7538 2013-05-06 Doug Evans <dje@google.com>
7539
7540 * symfile.c: Whitespace cleanup.
7541
7542 * solist.h (struct target_so_ops): New member clear_so.
7543 * solib-svr4.c (svr4_clear_so): New function.
7544 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7545 * solib.c (clear_so): Renamed from free_so_symbols.
7546 All callers updated. Call target clear_so if it exists.
7547
7548 2013-05-06 Tom Tromey <tromey@redhat.com>
7549
7550 * ada-lang.c (ada_value_primitive_packed_val): Don't
7551 call value_incref.
7552 * value.c (set_value_parent): Incref the new parent and decref
7553 the old parent.
7554 (value_copy, value_primitive_field): Use set_value_parent.
7555
7556 2013-05-06 Tom Tromey <tromey@redhat.com>
7557
7558 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7559 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7560 if needed.
7561 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7562 * dwarf2read.c (write_constant_as_bytes)
7563 (dwarf2_fetch_constant_bytes): New functions.
7564
7565 2013-05-06 Tom Tromey <tromey@redhat.com>
7566
7567 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7568 parameters.
7569 (dwarf2_const_value_attr): Update.
7570
7571 2013-05-06 Tom Tromey <tromey@redhat.com>
7572
7573 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7574 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7575 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7576 Remove declaration.
7577
7578 2013-05-06 Tom Tromey <tromey@redhat.com>
7579
7580 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7581 objfile's obstack.
7582
7583 2013-05-06 Doug Evans <dje@google.com>
7584
7585 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7586 * stabsread.h (process_one_symbol): Update declaration.
7587 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7588 * elfread.c (elf_symfile_relocate_probe): Ditto.
7589 * psymtab.c (relocate_psymtabs): Ditto.
7590 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7591 (objfile_relocate): Ditto.
7592 * objfiles.h (objfile_relocate): Update declaration.
7593 * symfile.c (relative_addr_info_to_section_offsets): Constify
7594 addrs parameter.
7595 (default_symfile_offsets): Ditto.
7596 (syms_from_objfile_1): Constify offsets parameter.
7597 (syms_from_objfile): Ditto.
7598 (symbol_file_add_with_addrs_or_offsets): Ditto.
7599 (symfile_map_offsets_to_segments): Constify data parameter.
7600 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7601 delta parameters of member relocate.
7602 (struct sym_probe_fns): Constify new_offsets,
7603 delta parameters of member sym_relocate_probe.
7604 (struct sym_fns): Constify section_addr_info parameter of member
7605 sym_offsets.
7606 (relative_addr_info_to_section_offsets): Update declaration.
7607 (default_symfile_offsets): Ditto.
7608 (syms_from_objfile): Ditto.
7609 (symfile_map_offsets_to_segments): Ditto.
7610
7611 * symfile.c (syms_from_objfile_1): Use correct section count when
7612 objfile->sf == NULL.
7613
7614 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7615
7616 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7617
7618 2013-05-06 Doug Evans <dje@google.com>
7619
7620 * psympriv.h (struct partial_symtab): Augment comment for member
7621 section_offsets.
7622
7623 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7624
7625 Reimplement shared library support on ppc-aix...
7626 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7627 * features/library-list-aix.dtd: New file.
7628 * solib-aix.h, solib-aix.c: New file.
7629 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7630 (rs6000_find_toc_address_hook): Delete.
7631 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7632 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7633 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7634 "xml-utils.h".
7635 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7636 (vmap_symtab, fixup_breakpoints): Delete.
7637 (rs6000_xfer_shared_libraries): New function.
7638 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7639 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7640 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7641 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7642 (rs6000_xfer_shared_library): New function.
7643 (find_toc_address): Delete.
7644 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7645 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7646 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7647 before creating minimal symbol. Adjust function description
7648 accordingly.
7649 (scan_xcoff_symtab): Replace call to
7650 prim_record_minimal_symbol_and_info by call to
7651 record_minimal_symbol.
7652 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7653 around default_symfile_offsets.
7654 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7655 powerpc-aix targets.
7656 * config/rs6000/nm-rs6000.h: Delete.
7657 * config/powerpc/aix.mh (NAT_FILE): Delete.
7658 (NATDEPFILES): Remove xcoffsolib.o.
7659 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7660 (ALL_TARGET_OBS): Add solib-aix.o.
7661 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7662 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7663 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7664 * xcoffsolib.h, xcoffsolib.c: Delete.
7665
7666 * solib.c (reload_shared_libraries): Remove reference to
7667 SOLIB_CREATE_INFERIOR_HOOK.
7668 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7669 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7670 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7671 comment.
7672 * corelow.c (deprecated_core_resize_section_table): Delete.
7673 * exec.c: Remove include of xcoffsolib.h".
7674 (map_vmap, vmap): Delete.
7675 (exec_close_1): Remove references to vmap.
7676 (exec_file_attach): Remove vmap handling code, and reference
7677 to DEPRECATED_IBM6000_TARGET.
7678 (bfdsec_to_vmap): Delete.
7679 (exec_files_info): Remove block of code handling VMAP.
7680 * infcmd.c (post_create_inferior): Remove reference to
7681 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7682 * infrun.c (follow_exec): Remove reference to
7683 SOLIB_CREATE_INFERIOR_HOOK.
7684 * stack.c (print_frame): Remove reference to PC_SOLIB.
7685 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7686 (dsbt_relocate_main_executable): Likewise.
7687 * solib-frv.c (frv_current_sos): Likewise.
7688
7689 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7690
7691 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7692 to target_write_memory and target_read_memory.
7693
7694 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7695
7696 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7697 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7698
7699 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7700
7701 * darwin-nat.c: Replace all "%x" instances in format strings
7702 into "0x%x" throughout.
7703
7704 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7705
7706 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7707 gdb_assert by call to MACH_CHECK_ERROR.
7708 (darwin_attach_pid): Raise an error rather than a failed
7709 assertion when various system calls failed. Report a warning
7710 instead of raising a failed assertion when PREV_NOT is not NULL
7711 after call to mach_port_request_notification.
7712 (darwin_ptrace_me): Raise an error rather than a failed
7713 assertion when read returns nonzero.
7714
7715 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7716
7717 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7718
7719 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7722
7723 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7726 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7727 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7728 a stale cleanup. Fix double free of NAME.
7729
7730 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7731
7732 * windows-nat.c (windows_delete_thread): Accept an additional
7733 argument, the thread's exit code, and announce thread death when
7734 print_thread_events is non-zero and we are deleting a thread that
7735 is not the main thread.
7736 (get_windows_debug_event): Pass thread exit code to
7737 windows_delete_thread.
7738
7739 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7740
7741 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7742 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7743 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7744 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7745 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7746 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7747 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7748 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7749 (gdbarch_tdep): New struct.
7750 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7751 E_NUM_REGS.
7752 (v850e3v5_register_name): New function.
7753 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7754 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7755 code handling the struct return conventions for the RH850 ABI.
7756 Update all callers.
7757 (v850_eight_byte_align_p): New function.
7758 (v850_push_call_dummy): Push structs by value, not by reference
7759 for the RH850 ABI. Add support for eight byte alignment.
7760 (v850_dbtrap_breakpoint_from_pc): New function.
7761 (v850_gdbarch_init): Add ABI detection code. Register
7762 v850e3v5_register_name for the v850e3v5 architecture. Set the
7763 number of registers for v850e3v5. Register
7764 v850_dbtrap_breakpoint_from_pc as appropriate.
7765 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7766
7767 2013-05-03 Doug Evans <dje@google.com>
7768
7769 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7770 of bfd_count_sections.
7771 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7772 * symfile.c (default_symfile_offsets): Ditto.
7773 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7774 one entry, not bfd_count_sections entries.
7775
7776 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7777
7778 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7779 `save' and `restore' register groups. Don't include SPL
7780 or SPH in these groups.
7781 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7782 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7783 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7784 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7785 dwarf2_append_unwinders().
7786
7787 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7788
7789 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7790 ignore SIGINT and SIGTRAP in case these internal signals are
7791 caught explicitely.
7792
7793 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7794
7795 * darwin-nat.c (darwin_read_write_inferior): Change types
7796 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7797 of copy_count to "mach_msg_type_number_t".
7798 (darwin_read_dyld_info): Change type of parameter
7799 rdaddr to "gdb_byte *".
7800
7801 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7802
7803 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7804 of &info->load_map from "char *" to "gdb_byte *".
7805
7806 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7807
7808 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7809 from "char *" to "gdb_byte *".
7810 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7811
7812 2013-04-30 Doug Evans <dje@google.com>
7813
7814 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7815 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7816 DWO stub. If DWO isn't found, just use stub.
7817 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7818
7819 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7820 calling init_cutu_and_read_dies.
7821
7822 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7823
7824 * target-descriptions.c (maint_print_c_tdesc_cmd):
7825 Add case to parse structures as register types and
7826 bitfields.
7827
7828 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
7829
7830 * MAINTAINERS (Write After Approval): Add myself to the list.
7831
7832 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7833
7834 * sol-thread.c (rw_common): Change type of parameter "buf"
7835 to "gdb_byte *".
7836 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
7837 rw_common to "gdb_byte *" instead of "char *".
7838
7839 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7840
7841 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
7842 of local variable msym to const struct bound_minimal_symbol.
7843 Adjust use accordingly.
7844 [ti.ti_state == TD_THR_SLEEP]: Likewise.
7845
7846 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
7847
7848 * i386gnu-nat.c (CREG_OFFSET): New macro.
7849 (creg_offset): New array.
7850 (CREG_ADDR): Use creg_offset instead of reg_offset.
7851
7852 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7853
7854 * mep-tdep.c (mep_write_pc): Delete.
7855 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
7856 Add call to set_gdbarch_pc_regnum.
7857
7858 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7859
7860 * common/filestuff.c: Replace #include <dirent.h> by
7861 #include "gdb_dirent.h".
7862
7863 2013-04-30 Joel Brobecker <brobecker@adacore.com>
7864
7865 * common/filestuff.c: Replace #include <sys/stat.h> by
7866 #include "gdb_stat.h".
7867
7868 2013-04-29 Pierre Muller <muller@sourceware.org>
7869
7870 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
7871 editCase function rule.
7872 (get_DW_AT_signature_type): Likewise.
7873
7874 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7875
7876 * m32r-tdep.c (m32r_write_pc): Delete.
7877 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
7878 Add call to set_gdbarch_pc_regnum.
7879
7880 2013-04-29 Pierre Muller <muller@sourceware.org>
7881
7882 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
7883
7884 2013-04-29 Joel Brobecker <brobecker@adacore.com>
7885
7886 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
7887
7888 2013-04-28 Yao Qi <yao@codesourcery.com>
7889
7890 * solib-dsbt.c (fetch_loadmap): Re-indent.
7891 (displacement_from_map, enable_break2): Likewise.
7892 (dsbt_relocate_section_addresses): Likewise.
7893
7894 2013-04-26 Joel Brobecker <brobecker@adacore.com>
7895
7896 GDB 7.6 released.
7897
7898 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
7899
7900 PR corefiles/14983:
7901 * dwarf2read.c (process_full_comp_unit): Always create a static
7902 block.
7903
7904 2013-04-25 Hui Zhu <hui@codesourcery.com>
7905
7906 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
7907 to loc->cmd_bytecode.
7908
7909 2013-04-24 Doug Evans <dje@google.com>
7910
7911 * dwarf2read.c (setup_type_unit_groups): Fix comment.
7912
7913 2013-04-22 Keith Seitz <keiths@redhat.com>
7914
7915 * tracepoint.c (trace_save): Call the writer's start method.
7916
7917 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
7918
7919 PR gdb/10462
7920 * cli/cli-decode.c (lookup_command): Show an error if there is no space
7921 before argument.
7922
7923 2013-04-23 Tom Tromey <tromey@redhat.com>
7924
7925 * common/filestuff.c: Check USE_WIN32API before including
7926 sys/socket.h.
7927 (HAVE_F_GETFD): New define.
7928 (mark_cloexec): Check HAVE_F_GETFD.
7929 (gdb_open_cloexec): Change 'mode' to unsigned long.
7930 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
7931 (gdb_pipe_cloexec): Check HAVE_PIPE.
7932 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
7933 long.
7934
7935 2013-04-23 Hui Zhu <hui@codesourcery.com>
7936
7937 PR gdb/15293
7938 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
7939
7940 2013-04-23 Hui Zhu <hui@codesourcery.com>
7941
7942 PR gdb/15165
7943 * breakpoint.c (dprintf_print_recreate): New.
7944 (save_breakpoints): Let it not save dprintf commands.
7945 (initialize_breakpoint_ops): Set dprintf_print_recreate.
7946
7947 2013-04-22 Tom Tromey <tromey@redhat.com>
7948
7949 PR gdb/7912:
7950 * Makefile.in (SFILES): Add filestuff.c
7951 (COMMON_OBS): Add filestuff.o.
7952 (filestuff.o): New target.
7953 * auto-load.c (auto_load_objfile_script_1): Use
7954 gdb_fopen_cloexec.
7955 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
7956 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
7957 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
7958 * common/agent.c (gdb_connect_sync_socket): Use
7959 gdb_socket_cloexec.
7960 * common/filestuff.c: New file.
7961 * common/filestuff.h: New file.
7962 * common/linux-osdata.c (linux_common_core_of_thread)
7963 (command_from_pid, commandline_from_pid, print_source_lines)
7964 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
7965 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
7966 gdb_fopen_cloexec.
7967 * common/linux-procfs.c (linux_proc_get_int)
7968 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
7969 * config.in, configure: Rebuild.
7970 * configure.ac: Don't check for sys/socket.h. Check for
7971 fdwalk, pipe2.
7972 * corelow.c (core_open): Use gdb_open_cloexec.
7973 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
7974 * fork-child.c (fork_inferior): Call close_most_fds.
7975 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
7976 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
7977 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
7978 Use gdb_fopen_cloexec.
7979 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
7980 gdb_open_cloexec.
7981 (linux_async_pipe): Use gdb_pipe_cloexec.
7982 * remote-fileio.c (remote_fileio_func_open): Use
7983 gdb_open_cloexec.
7984 * remote.c (remote_file_put, remote_file_get): Use
7985 gdb_fopen_cloexec.
7986 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
7987 close_most_fds.
7988 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
7989 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
7990 * solib.c (solib_find): Use gdb_open_cloexec.
7991 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
7992 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
7993 (tfile_open): Use gdb_open_cloexec.
7994 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
7995 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
7996 * xml-support.c (xml_fetch_content_from_file): Use
7997 gdb_fopen_cloexec.
7998 * main.c (captured_main): Call notice_open_fds.
7999
8000 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8001
8002 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8003 'char *' to 'gdb_byte *'.
8004 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8005 'gdb_byte'.
8006
8007 2013-04-22 Yao Qi <yao@codesourcery.com>
8008
8009 * infrun.c: Fix typo in comment.
8010
8011 2013-04-22 Andrew Haley <aph@redhat.com>
8012
8013 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8014 instead of "long".
8015
8016 2013-04-20 Yao Qi <yao@codesourcery.com>
8017
8018 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8019 'char *' to 'gdb_byte *'. Cast the return value of
8020 'bt_ctf_get_char_array' to 'gdb_byte *'.
8021
8022 2013-04-19 Pedro Alves <palves@redhat.com>
8023
8024 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8025 -Wpointer-sign.
8026 * configure: Regenerate.
8027
8028 2013-04-19 Pedro Alves <palves@redhat.com>
8029
8030 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8031 'void *'.
8032
8033 2013-04-19 Pedro Alves <palves@redhat.com>
8034
8035 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8036 Change type of 'myaddr' parameter to gdb_byte pointer.
8037 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8038 to 'long long' pointer instead of to 'unsigned long long'.
8039 (monitor_write_memory_block, monitor_read_memory_single)
8040 (monitor_read_memory): Change type of 'myaddr' parameter to
8041 gdb_byte pointer.
8042
8043 2013-04-19 Pedro Alves <palves@redhat.com>
8044
8045 * record.c (validate_history_size): Make parameter 'setting'
8046 unsigned.
8047
8048 2013-04-19 Pedro Alves <palves@redhat.com>
8049
8050 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8051 to 'gdb_byte *'.
8052
8053 2013-04-19 Pedro Alves <palves@redhat.com>
8054
8055 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8056 local to int.
8057
8058 2013-04-19 Pedro Alves <palves@redhat.com>
8059
8060 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8061 * ada-tasks.c (read_fat_string_value): Likewise.
8062
8063 2013-04-19 Pedro Alves <palves@redhat.com>
8064
8065 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8066 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8067 'offset', and adjust.
8068
8069 2013-04-19 Pedro Alves <palves@redhat.com>
8070
8071 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8072 (read_index_from_section): Add cast to 'char *'.
8073
8074 2013-04-19 Pedro Alves <palves@redhat.com>
8075
8076 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8077
8078 2013-04-19 Pedro Alves <palves@redhat.com>
8079
8080 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8081
8082 2013-04-19 Pedro Alves <palves@redhat.com>
8083
8084 * record-full.c (record_full_get_bookmark): Change local 'ret'
8085 type to char * and add cast to gdb_byte *.
8086 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8087 string.
8088 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8089
8090 2013-04-19 Pedro Alves <palves@redhat.com>
8091
8092 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8093 * python/py-prettyprint.c (print_string_repr): Change type of
8094 'output' local to char *. Add cast to gdb_byte * in
8095 LA_PRINT_STRING call.
8096 (print_children): Change type of 'output' local to char *.
8097 * python/py-value.c (valpy_string): Add cast to const char * in
8098 PyUnicode_Decode call.
8099
8100 2013-04-19 Pedro Alves <palves@redhat.com>
8101
8102 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8103 and change its type to 'const char *'. Adjust.
8104 (mips_send_packet): Add cast to 'char *', and remove cast to
8105 'unsigned char *'.
8106 (mips_receive_packet): Remove cast to 'unsigned char *'.
8107 (mips_load_srec): Use bfd_byte.
8108 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8109 (pmon_checkset): Make 'value' parameter unsigned.
8110
8111 2013-04-19 Pedro Alves <palves@redhat.com>
8112
8113 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8114
8115 2013-04-19 Pedro Alves <palves@redhat.com>
8116
8117 * remote.c (remote_write_bytes_aux, compare_sections_command)
8118 (remote_read_qxfer)
8119 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8120 (remote_hostio_readlink, remote_bfd_iovec_pread)
8121 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8122 binary buffer, and char when buffer is used as string.
8123 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8124 (trace_save, tfile_open, traceframe_walk_blocks)
8125 (tfile_fetch_registers): Likewise.
8126
8127 2013-04-19 Pedro Alves <palves@redhat.com>
8128
8129 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8130 buffer and size_t size. Adjust.
8131 * ser-base.h (ser_base_write): Adjust.
8132 * ser-go32.c (cnts): Change type to size_t.
8133 (dos_write): Change prototype -- take 'void *'
8134 buffer and size_t size. Adjust.
8135 (dos_info): Print elements of 'cnts' as unsigned long.
8136 * serial.c (serial_write): Likewise.
8137 * serial.h (serial_write): Adjust.
8138 (struct serial_ops) <write>: Change prototype -- take 'void *'
8139 buffer and size_t size. Adjust.
8140
8141 2013-04-19 Pedro Alves <palves@redhat.com>
8142
8143 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8144 gdb_byte *.
8145 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8146
8147 2013-04-19 Pedro Alves <palves@redhat.com>
8148
8149 * alpha-tdep.c (alpha_extract_return_value): Use
8150 regcache_cooked_read_unsigned to read 'v0'.
8151
8152 2013-04-19 Pedro Alves <palves@redhat.com>
8153
8154 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8155 parameters 'at', 'as' and 'offset' to uint32_t.
8156
8157 2013-04-19 Pedro Alves <palves@redhat.com>
8158
8159 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8160 'is64' to signed 'int'.
8161
8162 2013-04-19 Pedro Alves <palves@redhat.com>
8163
8164 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8165 parameter to int *.
8166
8167 2013-04-19 Pedro Alves <palves@redhat.com>
8168
8169 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8170 'insnbuf' buffer type to unsigned int[].
8171
8172 2013-04-19 Pedro Alves <palves@redhat.com>
8173
8174 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8175
8176 2013-04-19 Pedro Alves <palves@redhat.com>
8177
8178 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8179 unsigned long *.
8180
8181 2013-04-19 Pedro Alves <palves@redhat.com>
8182
8183 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8184 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8185 UINT_MAX.
8186 * mips-tdep.c (heuristic_fence_post): Change type to int.
8187 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8188
8189 2013-04-19 Pedro Alves <palves@redhat.com>
8190
8191 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8192 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8193 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8194
8195 2013-04-19 Pedro Alves <palves@redhat.com>
8196
8197 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8198 it to get a string view of the byte buffer.
8199 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8200 type to gdb_byte *. Adjust.
8201 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8202 Change local to char *.
8203 * solib-darwin.c (find_program_interpreter): Change return type to
8204 char *. Adjust.
8205 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8206 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8207 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8208 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8209 * solib-svr4.c (find_program_interpreter): Change return type to
8210 char *. Adjust.
8211 (enable_break): Change local 'interp_name' to char *.
8212 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8213 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8214 (spu_pseudo_register_write_spu): Use char for string buffer.
8215 Adjust.
8216 (info_spu_event_command, info_spu_signal_command): Add casts to
8217 'char *'.
8218
8219 2013-04-19 Pedro Alves <palves@redhat.com>
8220
8221 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8222 gdb_byte[].
8223 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8224 * ada-lang.c (ada_value_assign): Use gdb_byte.
8225 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8226 (alphanbsd_sigtramp_offset): Use gdb_byte.
8227 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8228 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8229 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8230 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8231 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8232 * arm-tdep.c (arm_stub_unwind_sniffer)
8233 (arm_displaced_init_closure): Use gdb_byte.
8234 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8235 (arm_default_thumb_le_breakpoint)
8236 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8237 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8238 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8239 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8240 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8241 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8242 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8243 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8244 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8245 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8246 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8247 (cris_store_return_value, cris_extract_return_value): Use
8248 gdb_byte.
8249 (constraint): Change type of parameter to char * from signed
8250 char*. Use gdb_byte.
8251 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8252 of local buffer to gdb_byte *.
8253 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8254 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8255 (add_address_entry): Change type of local buffer to gdb_byte[].
8256 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8257 (frv_push_dummy_call): Use gdb_byte.
8258 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8259 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8260 (hppa_hpux_supply_save_state): Use gdb_byte.
8261 * hppa-tdep.c (hppa32_push_dummy_call)
8262 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8263 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8264 (slotN_contents, replace_slotN_contents): Change type of parameter
8265 to gdb_byte *.
8266 (fetch_instruction, ia64_pseudo_register_write)
8267 (ia64_register_to_value, ia64_value_to_register)
8268 (ia64_extract_return_value, ia64_store_return_value)
8269 (ia64_push_dummy_call): Use gdb_byte.
8270 * m32c-tdep.c (m32c_return_value): Remove cast.
8271 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8272 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8273 gdb_byte.
8274 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8275 * mn10300-tdep.c (mn10300_store_return_value)
8276 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8277 gdb_byte.
8278 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8279 (moxie_process_record): Remove casts.
8280 * ppc-ravenscar-thread.c (supply_register_at_address)
8281 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8282 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8283 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8284 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8285 * remote.c (compare_sections_command): Use gdb_byte.
8286 * score-tdep.c (score7_free_memblock): Change type of parameter to
8287 gdb_byte *.
8288 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8289 gdb_byte *. Use gdb_byte.
8290 (sh_push_dummy_call_fpu): Use gdb_byte.
8291 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8292 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8293 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8294 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8295 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8296 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8297 (sh64_store_return_value, sh64_register_convert_to_virtual):
8298 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8299 (sh64_pseudo_register_write): Use gdb_byte.
8300 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8301 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8302 buffer.
8303 (irix_current_sos): Use gdb_byte.
8304 * solib-som.c (som_current_sos): Use gdb_byte.
8305 * sparc-ravenscar-thread.c (supply_register_at_address)
8306 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8307 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8308 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8309 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8310 'gdb_byte *'.
8311 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8312 'gdb_byte *'.
8313 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8314 * xstormy16-tdep.c (xstormy16_extract_return_value)
8315 (xstormy16_store_return_value): Change parameter type to
8316 'gdb_byte *'. Adjust.
8317 (xstormy16_push_dummy_call): Use gdb_byte.
8318 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8319 (call0_analyze_prologue, execute_code): Use gdb_byte.
8320
8321 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8322 Pedro Alves <palves@redhat.com>
8323
8324 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8325 value contents.
8326
8327 2013-04-17 Doug Evans <dje@google.com>
8328
8329 * dwarf2read.c (struct signatured_type): New member type.
8330 (struct attribute): Replace member signatured_type with signature.
8331 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8332 (read_call_site_scope): Call follow_die_ref instead of
8333 follow_die_ref_or_sig.
8334 (read_structure_type): Rewrite handling of signatured types.
8335 (read_enumeration_type): Ditto.
8336 (read_attribute_value): Update.
8337 (build_error_marker_type): New function.
8338 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8339 Don't call error for bad types, just build an error marker type.
8340 (dump_die_shallow): Update.
8341 (follow_die_sig_1): Renamed from follow_die_sig.
8342 Don't call error for bad types, instead return NULL.
8343 (follow_die_sig): New function.
8344 (get_signatured_type, get_DW_AT_signature_type): New functions.
8345
8346 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8347
8348 * aarch64-tdep.c (aarch64_write_pc): Removed.
8349 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8350 function.
8351
8352 2013-04-17 Yao Qi <yao@codesourcery.com>
8353
8354 * top.c (print_gdb_configuration): Print configure-time
8355 parameter on using libbabeltrace or not.
8356
8357 2013-04-16 Pedro Alves <palves@redhat.com>
8358
8359 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8360
8361 2013-04-16 Pedro Alves <palves@redhat.com>
8362
8363 * common/glibc_thread_db.h: Update from upstream glibc
8364 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8365
8366 2013-04-16 Pedro Alves <palves@redhat.com>
8367
8368 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8369 * common/glibc_thread_db.h: ... this new file ...
8370 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8371
8372 2013-04-16 Will Newton <will.newton@gmail.com>
8373 Pedro Alves <palves@redhat.com>
8374
8375 PR build/11881
8376
8377 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8378 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8379 HAVE_THREAD_DB_H.
8380
8381 2013-04-16 Pedro Alves <palves@redhat.com>
8382 Eli Zaretskii <eliz@gnu.org>
8383
8384 * NEWS: Mention "set foo unlimited".
8385
8386 2013-04-15 Doug Evans <dje@google.com>
8387
8388 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8389 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8390 (create_dwo_cu_reader): Renamed from
8391 create_dwo_debug_info_hash_table_reader.
8392 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8393 Remove support for multiple CUs in a DWO file.
8394 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8395
8396 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8397 instead of phex.
8398 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8399 (create_dwo_in_dwp): Ditto.
8400
8401 2013-04-15 Tom Tromey <tromey@redhat.com>
8402
8403 * NEWS: Move recent entries into "since 7.6" section.
8404
8405 2013-04-15 Tom Tromey <tromey@redhat.com>
8406
8407 PR c++/13588:
8408 * NEWS: Update.
8409 * break-catch-throw.c (struct exception_catchpoint)
8410 <exception_rx, pattern>: New fields.
8411 (fetch_probe_arguments, dtor_exception_catchpoint)
8412 (check_status_exception_catchpoint)
8413 (print_one_detail_exception_catchpoint): New functions.
8414 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8415 Compile regular expression if needed.
8416 (extract_exception_regexp): New function.
8417 (catch_exception_command_1): Use extract_exception_regexp.
8418 (compute_exception): Use fetch_probe_arguments.
8419 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8420 and check_status fields.
8421 * cp-abi.c (cplus_typename_from_type_info): New function.
8422 * cp-abi.h (cplus_typename_from_type_info): Declare.
8423 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8424 * gdb_regex.h (compile_rx_or_error): Declare.
8425 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8426 comment.
8427 (init_gnuv3_ops): Set get_type_from_type_info field.
8428 * probe.c (compile_rx_or_error): Move...
8429 * utils.c (compile_rx_or_error): ... here.
8430
8431 2013-04-15 Tom Tromey <tromey@redhat.com>
8432
8433 PR c++/15176:
8434 * NEWS: Update.
8435 * break-catch-throw.c (compute_exception): New function.
8436 (exception_funcs): New global.
8437 (_initialize_break_catch_throw): Create $_exception.
8438 * cp-abi.c (cplus_type_from_type_info): New function.
8439 * cp-abi.h (cplus_type_from_type_info): Declare.
8440 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8441 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8442 (gnuv3_get_type_from_type_info): New functions.
8443 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8444
8445 2013-04-15 Tom Tromey <tromey@redhat.com>
8446
8447 * break-catch-throw.c (struct exception_names): New.
8448 (exception_functions): Change type.
8449 (re_set_exception_catchpoint): Look for SDT probes.
8450
8451 2013-04-15 Tom Tromey <tromey@redhat.com>
8452
8453 PR c++/10119:
8454 * break-catch-throw.c (exception_functions): New global.
8455 (gnu_v3_exception_catchpoint_ops): Move earlier.
8456 (struct exception_catchpoint): New.
8457 (classify_exception_breakpoint): Rewrite.
8458 (re_set_exception_catchpoint): New function.
8459 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8460 Allocate a struct exception_catchpoint.
8461 (catch_exception_command_1): Update.
8462 (initialize_throw_catchpoint_ops): Set 're_set' method.
8463
8464 2013-04-15 Tom Tromey <tromey@redhat.com>
8465
8466 * Makefile.in (SFILES): Add break-catch-throw.c
8467 (COMMON_OBS): Add break-catch-throw.o.
8468 * break-catch-throw.c: New file.
8469 * breakpoint.c: Move exception-catching code to new file.
8470 (ep_parse_optional_if_clause): No longer static.
8471 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8472
8473 2013-04-15 Tom Tromey <tromey@redhat.com>
8474
8475 PR c++/9065:
8476 * NEWS: Update.
8477 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8478 * c-exp.y (TYPEID): New token.
8479 (exp): Add new TYPEID productions.
8480 (ident_tokens): Add "typeid".
8481 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8482 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8483 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8484 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8485 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8486 case.
8487 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8488 (build_std_type_info_type, gnuv3_get_typeid_type)
8489 (gnuv3_get_typeid): New functions.
8490 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8491 new fields on ABI object.
8492 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8493 * std-operator.def (OP_TYPEID): New.
8494
8495 2013-04-15 Tom Tromey <tromey@redhat.com>
8496
8497 * elfread.c (elf_symtab_read): Install versioned symbol under
8498 unversioned name as well.
8499
8500 2013-04-15 Tom Tromey <tromey@redhat.com>
8501
8502 PR c++/11990:
8503 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8504 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8505 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8506 (gdb_demangle): New function.
8507 * cp-support.h (gdb_demangle): Declare.
8508 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8509 (dwarf2_name): Use gdb_demangle.
8510 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8511 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8512 suffixes from name.
8513 (gnuv3_print_method_ptr): Use gdb_demangle.
8514 * jv-lang.c (java_demangle): Use gdb_demangle.
8515 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8516 * language.c (unk_lang_demangle): Use gdb_demangle.
8517 * symtab.c (symbol_find_demangled_name)
8518 (demangle_for_lookup): Use gdb_demangle.
8519
8520 2013-04-15 Tom Tromey <tromey@redhat.com>
8521
8522 PR c++/12824:
8523 * NEWS: Update.
8524 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8525 New constant.
8526 (classify_exception_breakpoint): New function.
8527 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8528 (print_mention_exception_catchpoint)
8529 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8530 (catch_exception_command_1): Handle "rethrow" catchpoint.
8531 (catch_rethrow_command): New function.
8532 (_initialize_breakpoint): Add "catch rethrow" command.
8533
8534 2013-04-15 Pierre Muller <muller@sourceware.org>
8535
8536 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8537 set_gdbarch_write_pc as deprecated anymore.
8538
8539 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8540
8541 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8542 declarations.
8543
8544 2013-04-13 Yao Qi <yao@codesourcery.com>
8545
8546 * ctf.c (_initialize_ctf): Include "completer.h".
8547 Call add_target_with_completer instead of add_target.
8548
8549 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8550
8551 Fix GDB regression related to PR binutils/14813.
8552 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8553 * minidebug.c (lzma_close): Add return value comment.
8554 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8555 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8556 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8557
8558 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8559
8560 * config.in: Regenerate.
8561
8562 2013-04-12 Tom Tromey <tromey@redhat.com>
8563
8564 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8565 const.
8566 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8567 (struct die_reader_specs) <buffer>: Likewise.
8568 (die_reader_func_ftype): Make 'info_ptr' const.
8569 (struct line_header) <include_dirs, statement_program_start,
8570 statement_program_end>: Now const.
8571 (struct file_entry) <name>: Likewise.
8572 (struct partial_die_info) <sibling>: Likewise.
8573 (struct dwarf_block) <data>: Likewise.
8574 (dwarf2_read_section): Remove cast.
8575 (dwarf2_get_section_info): Make 'bufp' const.
8576 (read_index_from_section): Constify.
8577 (dw2_get_file_names_reader): Make 'info_ptr' const.
8578 (dw2_get_primary_filename_reader): Likewise.
8579 (read_comp_unit_head): Make 'info_ptr' and return type const.
8580 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8581 Likewise.
8582 (read_abbrev_offset): Constify.
8583 (dwarf2_create_include_psymtab): Make 'name' const.
8584 (create_debug_types_hash_table): Update.
8585 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8586 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8587 Constify.
8588 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8589 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8590 (read_comp_units_from_section): Constify.
8591 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8592 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8593 const.
8594 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8595 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8596 (create_dwp_hash_table, dwarf2_ranges_read)
8597 (dwarf2_record_block_ranges): Constify.
8598 (read_die_and_children, read_die_and_siblings_1)
8599 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8600 const.
8601 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8602 (abbrev_table_read_table): Constify.
8603 (load_partial_dies): Make 'info_ptr' const.
8604 (read_partial_die, read_attribute_value, read_attribute): Make
8605 'info_ptr' and return type const.
8606 (read_address, read_initial_length)
8607 (read_checked_initial_length_and_offset, read_offset)
8608 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8609 const.
8610 (read_direct_string): Make 'buf' and return type const.
8611 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8612 (read_indirect_string): Make return type const.
8613 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8614 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8615 'info_ptr' const.
8616 (read_str_index): Make return type const.
8617 (add_include_dir): Make 'include_dir' const.
8618 (add_file_name): Make 'name' const.
8619 (dwarf_decode_line_header): Constify.
8620 (psymtab_include_file_name): Make return type const.
8621 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8622 (dwarf2_start_subfile): Make 'filename' const.
8623 (dwarf2_const_value_attr): Make 'bytes' const.
8624 (read_signatured_type_reader): Make 'info_ptr' const.
8625 (decode_locdesc): Constify.
8626 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8627 const.
8628 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8629 'mac_end', and return type const.
8630 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8631 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8632 type const.
8633 (per_cu_header_read_in): Constify.
8634 * symfile.h (dwarf2_get_section_info): Update.
8635
8636 2013-04-12 Tom Tromey <tromey@redhat.com>
8637
8638 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8639
8640 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8641
8642 * NEWS: Mention "show configuration", --configuration.
8643 * top.c (print_gdb_configuration): New function, displays the
8644 details about GDB configure-time parameters.
8645 (print_gdb_version): Mention "show configuration".
8646 * cli/cli-cmds.c (show_configuration): New function.
8647 (_initialize_cli_cmds): Add the "show configuration" command.
8648 * main.c (captured_main) <print_configuration>: New static var.
8649 <long_options>: Use it.
8650 If --configuration was given, call print_gdb_configuration.
8651
8652 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8653 Pedro Alves <palves@redhat.com>
8654
8655 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8656 (generated_files): Add gcore.
8657 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8658 HAVE_NATIVE_GCORE_HOST.
8659 (gcore): New.
8660 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8661 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8662 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8663 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8664 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8665 Add HAVE_NATIVE_GCORE_HOST.
8666 * configure: Regenerate.
8667 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8668 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8669 AC_CONFIG_FILES for gcore.
8670 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8671 gdb_have_gcore.
8672 * gdb_gcore.sh: Rename to ...
8673 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8674 and GCORE_TRANSFORM_NAME substitutions.
8675
8676 Fix parsing tabs in ${gdb_target_obs}.
8677 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8678
8679 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8680
8681 * remote.c (unpush_and_perror): Add output message final dot.
8682
8683 2013-04-11 Yao Qi <yao@codesourcery.com>
8684
8685 * tracepoint.c (tfile_interp_line): Fit parameters line and
8686 utpp in one line.
8687
8688 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8689
8690 * solib.c (solib_map_sections): Remove code overwriting
8691 SO->SO_NAME with the bfd's filename.
8692
8693 2013-04-10 Pedro Alves <palves@redhat.com>
8694
8695 * cli/cli-decode.c (integer_unlimited_completer): New function.
8696 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8697 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8698 completer.
8699 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8700 (is_unlimited_literal): New function.
8701 (do_set_command): Handle literal "unlimited" arguments.
8702 * frame.c (_initialize_frame) <set backtrace limit>: Document
8703 "unlimited".
8704 * printcmd.c (_initialize_printcmd) <set print
8705 max-symbolic-offset>: Add help text.
8706 * record-full.c (_initialize_record_full) <set record full
8707 insn-number-max>: Likewise.
8708 * record.c (_initialize_record) <set record
8709 instruction-history-size, set record function-call-history-size>:
8710 Add help text.
8711 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8712 help text.
8713 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8714 Likewise.
8715 * source.c (_initialize_source) <set listsize>: Add help text.
8716 * utils.c (initialize_utils) <set height, set width>: Likewise.
8717 <set pagination>: Mention "set height unlimited".
8718 * valprint.c (_initialize_valprint) <set print elements, set print
8719 repeats>: Document "unlimited".
8720
8721 2013-04-10 Pedro Alves <palves@redhat.com>
8722
8723 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8724 instead of disconnect_tracing.
8725 * infcmd.c (detach_command, disconnect_command): Call
8726 query_if_trace_running. Adjust.
8727 * top.c: Include "tracepoint.h".
8728 (quit_target): Delete. Contents moved ...
8729 (quit_force): ... here. Wrap each stage of teardown in
8730 TRY_CATCH. Call disconnect_tracing before detaching.
8731
8732 2013-04-10 Hui Zhu <hui@codesourcery.com>
8733 Yao Qi <yao@codesourcery.com>
8734
8735 * configure.ac: Check libbabeltrace is installed.
8736 * config.in: Regenerate.
8737 * configure: Regenerate.
8738 * Makefile.in (LIBBABELTRACE): New.
8739 (CLIBS): Add LIBBABELTRACE.
8740 * ctf.c: Include "exec.h".
8741 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8742 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8743 (ctf_save_metadata_header): Define new type aliases in
8744 metadata.
8745 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8746 in metadata. Start a new faked packet for trace status.
8747 (ctf_write_status): Write trace status to CTF.
8748 (ctf_write_uploaded_tsv): Write TSV to CTF.
8749 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8750 (ctf_write_definition_end): End the faked packet.
8751
8752 (ctx, ctf_iter, trace_dirname): New.
8753 (start_pos): New variable.
8754 (ctf_destroy, ctf_open_dir, ctf_open): New.
8755 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8756 macros.
8757 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8758 (ctf_fetch_registers, ctf_xfer_partial): New.
8759 (ctf_get_trace_state_variable_value): New.
8760 (ctf_get_tpnum_from_frame_event): New.
8761 (ctf_get_traceframe_address): New.
8762 (ctf_trace_find, ctf_has_stack): New.
8763 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8764 (ctf_get_trace_status, ctf_read_status): New.
8765 (_initialize_ctf): New.
8766 * tracepoint.c (get_tracepoint_number): New
8767 (get_uploaded_tsv): Remove 'static'.
8768 (struct traceframe_info, trace_regblock_size): Move it to ...
8769 * tracepoint.h: ... here.
8770 (get_tracepoint_number): Declare it.
8771 (get_uploaded_tsv): Declare it.
8772
8773 * NEWS: Mention new configure option.
8774
8775 2013-04-10 Pedro Alves <palves@redhat.com>
8776 Hui Zhu <hui@codesourcery.com>
8777
8778 * breakpoint.c (dprintf_re_set): New.
8779 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8780 to dprintf_re_set.
8781
8782 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8783
8784 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8785 Remove solib-svr4.o from the list.
8786
8787 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8788
8789 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8790 Use gdb_assert_not_reached instead of invalid boolean expression.
8791
8792 2013-04-09 Pedro Alves <palves@redhat.com>
8793
8794 * remote.c (unpush_and_perror): New function.
8795 (readchar, remote_serial_write): Use it.
8796
8797 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8798
8799 * NEWS: Mention new btrace RSP packets.
8800
8801 2013-04-08 Tom Tromey <tromey@redhat.com>
8802
8803 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8804 long.
8805
8806 2013-04-08 Tom Tromey <tromey@redhat.com>
8807
8808 * maint.c (print_bfd_section_info): Print the section index.
8809 * symmisc.c (dump_msymbols): Print the section index.
8810
8811 2013-04-08 Tom Tromey <tromey@redhat.com>
8812
8813 PR symtab/8424:
8814 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8815 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8816 * breakpoint.c (resolve_sal_pc): Update.
8817 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8818 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8819 (minsym_lookup_iterator_cb): Use it.
8820 (default_read_var_value): Update.
8821 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8822 Update.
8823 * infcmd.c (jump_command): Update.
8824 * linespec.c (minsym_found): Update.
8825 * maint.c (maintenance_translate_address): Update.
8826 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
8827 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
8828 * parse.c (write_exp_msymbol): Update.
8829 * printcmd.c (address_info): Update.
8830 * psymtab.c (find_pc_sect_psymbol): Update.
8831 (fixup_psymbol_section): Check SYMBOL_SECTION, not
8832 SYMBOL_OBJ_SECTION.
8833 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
8834 Don't initialize SYMBOL_OBJ_SECTION.
8835 * spu-tdep.c (spu_catch_start): Update.
8836 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
8837 * symmisc.c (dump_msymbols, print_symbol): Update.
8838 * symtab.c (fixup_section): Don't set 'obj_section'. Change
8839 how fallback section is computed.
8840 (fixup_symbol_section): Update.
8841 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
8842 Update.
8843 (allocate_symbol, initialize_symbol, allocate_template_symbol):
8844 Initialize SYMBOL_SECTION.
8845 * symtab.h (struct general_symbol_info) <section>: Update comment.
8846 <obj_section>: Remove.
8847 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
8848 (SYMBOL_OBJFILE): New macro.
8849
8850 2013-04-08 Tom Tromey <tromey@redhat.com>
8851
8852 * coffread.c (record_minimal_symbol): Update.
8853 * dbxread.c (record_minimal_symbol): Update.
8854 * elfread.c (record_minimal_symbol): Update.
8855 * machoread.c (macho_symtab_add_minsym): Update.
8856 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
8857 Update.
8858 * minsyms.c (prim_record_minimal_symbol): Update.
8859 (prim_record_minimal_symbol_full): Remove 'bfd_section'
8860 argument.
8861 (prim_record_minimal_symbol_and_info): Likewise.
8862 * minsyms.h (prim_record_minimal_symbol_full)
8863 (prim_record_minimal_symbol_and_info): Update.
8864 * symtab.c (allocate_symbol, initialize_symbol)
8865 (allocate_template_symbol): Initialize SYMBOL_SECTION.
8866 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
8867 Update.
8868
8869 2013-04-08 Tom Tromey <tromey@redhat.com>
8870
8871 PR symtab/8423:
8872 * solib-som.c (som_solib_section_offsets): Use BFD section
8873 indices. Set offsets for all sections.
8874 * somread.c (som_symtab_read): Compute BFD section for
8875 symbol. Use prim_record_minimal_symbol_and_info.
8876 (som_symfile_read): Fix comment.
8877 (struct find_section_offset_arg): New.
8878 (find_section_offset, set_section_index): New functions.
8879 (som_symfile_offsets): Use set_section_index to compute
8880 section indices.
8881
8882 2013-04-08 Tom Tromey <tromey@redhat.com>
8883
8884 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
8885 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
8886 gdb_bfd_section_index.
8887 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
8888 New functions.
8889 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
8890 Declare.
8891 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
8892 Update.
8893 * objfiles.c (add_to_objfile_sections_full): New function.
8894 (add_to_objfile_sections): Use it.
8895 (build_section_table): Rewrite.
8896 (objfile_relocate1): Use gdb_bfd_section_index. Update.
8897 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
8898 (struct objfile) <sections>: Update comment.
8899 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
8900 is NULL.
8901 (ALL_OBJSECTIONS): Use it.
8902 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8903 * solib-frv.c (frv_relocate_main_executable): Update.
8904 * solib-target.c (solib_target_relocate_section_addresses):
8905 Use gdb_bfd_section_index.
8906 * symfile.c (build_section_addr_info_from_section_table):
8907 Use gdb_bfd_section_index.
8908 (build_section_addr_info_from_bfd, place_section): Likewise.
8909 * symtab.c (fixup_section): Update.
8910 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
8911
8912 2013-04-08 Tom Tromey <tromey@redhat.com>
8913
8914 * minsyms.h (struct bound_minimal_symbol): New.
8915 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8916 Remove objfile argument.
8917 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8918 Return bound_minimal_symbol.
8919 * minsyms.c (lookup_minimal_symbol_by_pc_1)
8920 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
8921 Return bound_minimal_symbol.
8922 (in_gnu_ifunc_stub): Update.
8923 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
8924 Remove 'objfile_p' argument.
8925 (lookup_solib_trampoline_symbol_by_pc): Update.
8926 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
8927 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
8928 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
8929 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
8930 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
8931 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
8932 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
8933 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
8934 stack.c, symtab.c, tui/tui-disasm.c: Update.
8935
8936 2013-04-08 Tom Tromey <tromey@redhat.com>
8937
8938 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
8939 Use symbol's obstack, not an objfile.
8940 * coffread.c (process_coff_symbol): Update.
8941 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
8942 * jv-lang.c (add_class_symbol): Update.
8943 * mdebugread.c (new_symbol): Update.
8944 * minsyms.c (prim_record_minimal_symbol_full)
8945 (terminate_minimal_symbol_table): Update.
8946 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
8947 * stabsread.c (define_symbol, read_enum_type): Update.
8948 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
8949 Handle Ada specially.
8950 (symbol_set_language): Add 'obstack' argument.
8951 (symbol_set_names): Update.
8952 (symbol_natural_name, symbol_demangled_name): Always use
8953 ada_decode_symbol.
8954 * symtab.h (struct general_symbol_info)
8955 <language_specific::obstack>: New field.
8956 <ada_mangled>: New field.
8957 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
8958 (symbol_set_language): Update.
8959
8960 2013-04-08 Tom Tromey <tromey@redhat.com>
8961
8962 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
8963 Take an obstack, not an objfile.
8964 (symbol_set_names): Update.
8965 * symtab.h (symbol_set_demangled_name): Update.
8966
8967 2013-04-08 Tom Tromey <tromey@redhat.com>
8968
8969 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
8970 allocate_symbol.
8971 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
8972 (read_func_scope): Call allocate_template_symbol.
8973 (new_symbol_full): Call allocate_symbol.
8974 * jit.c (finalize_symtab): Call allocate_symbol.
8975 * jv-lang.c (add_class_symbol): Call allocate_symbol.
8976 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
8977 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8978 (common_block_end): Call allocate_symbol.
8979 * symtab.c (allocate_symbol, initialize_symbol)
8980 (allocate_template_symbol): New functions.
8981 * symtab.c (allocate_symbol, initialize_symbol)
8982 (allocate_template_symbol): Declare.
8983 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
8984
8985 2013-04-08 Pedro Alves <palves@redhat.com>
8986 Keith Seitz <keiths@redhat.com>
8987
8988 * breakpoint.c (create_breakpoint): Rename
8989 "parse_condition_and_thread" parameter to "parse_arg". Update
8990 describing comment. If !PARSE_ARG, then error out if ARG is not
8991 the empty string after extracting the location.
8992 * breakpoint.h (create_breakpoint): Rename
8993 "parse_condition_and_thread" parameter to "parse_arg".
8994
8995 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
8996
8997 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
8998
8999 2013-04-07 Yao Qi <yao@codesourcery.com>
9000
9001 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9002 and 'addr2' to CORE_ADDR.
9003 * target.c (update_current_target): Update.
9004 * target.h (struct target_ops) <to_trace_find>: Change parameter
9005 type to CORE_ADDR.
9006 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9007 'addr2' to CORE_ADDR.
9008 (tfile_trace_find): Likewise.
9009 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9010 Change local variable 'addr' to type CORE_ADDR.
9011 * tracepoint.h (tfind_1): Update declaration.
9012
9013 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9014
9015 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9016 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9017 Include main.h.
9018
9019 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9020 here...
9021 * main.h (windows_get_absolute_argv0): ...to here.
9022
9023 2013-04-05 Doug Evans <dje@google.com>
9024
9025 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9026 (read_cutu_die_from_dwo): Add comments.
9027 (read_structure_type): Update comment.
9028 (read_enumeration_type, read_namespace_type): Update comment.
9029 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9030
9031 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9032
9033 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9034 * Makefile.in (gdb.z): Remove.
9035 (install-only): Remove $(man1dir) and gdb.1 installation.
9036 * gdb.1: Remove.
9037
9038 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9039
9040 Fix compatibility with Linux kernel 3.8.3.
9041 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9042 to more inner block. Remove parsing of NUMBER from outer block.
9043 Parse NUMBER only if KEYWORD has been identified.
9044
9045 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9046
9047 Fix variable name shadowing.
9048 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9049 filename to mapsfilename and update its uses.
9050
9051 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9052
9053 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9054 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9055 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9056 details of the problem.
9057
9058 2013-04-04 Pedro Alves <palves@redhat.com>
9059 Hui Zhu <hui@codesourcery.com>
9060
9061 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9062 tracepoint, reset its STEP_COUNT and call validate_actionline.
9063
9064 2013-04-03 Doug Evans <dje@google.com>
9065
9066 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9067 read_die_and_siblings.
9068 (read_die_and_siblings): New function.
9069 (read_cutu_die_from_dwo): Dump die if requested.
9070 (read_die_and_children): Call read_full_die_1 and
9071 read_die_and_siblings_1.
9072 (read_full_die): Dump die if requested.
9073
9074 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9075
9076 * dwarf2read.c (struct dwo_file): New member comp_dir.
9077 Rename member name to dwo_name. All uses updated.
9078 (hash_dwo_file): Include comp_dir in computation.
9079 (eq_dwo_file): Ditto.
9080 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9081 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9082
9083 * psymtab.c (read_psymtabs_with_fullname): Don't call
9084 psymtab_to_fullname if the basenames are different.
9085
9086 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9087
9088 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9089 New entry about "fullname" presence.
9090
9091 2013-04-03 Pedro Alves <palves@redhat.com>
9092
9093 * NEWS: Mention x86_64/Cygwin as new native configuration.
9094
9095 2013-04-02 Doug Evans <dje@google.com>
9096
9097 * dwarf2read.c (read_structure_type): Fix typo in comment.
9098
9099 2013-04-02 Pedro Alves <palves@redhat.com>
9100
9101 * NEWS: Mention "set/show debug aarch64", "set/show debug
9102 coff-pe-read" and "set/show debug mach-o".
9103
9104 2013-04-02 Pedro Alves <palves@redhat.com>
9105
9106 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9107
9108 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9109
9110 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9111 gdb_string.h is now in common/.
9112
9113 2013-04-02 Pedro Alves <palves@redhat.com>
9114
9115 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9116 under "New options".
9117
9118 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9119
9120 Revert this patch:
9121 PR gdb/15275
9122 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9123
9124 2013-04-02 Pedro Alves <palves@redhat.com>
9125
9126 PR gdb/15275
9127
9128 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9129 (remote_serial_write): New function.
9130 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9131
9132 2013-04-01 Jiong Wang <jiwang@tilera.com>
9133
9134 * NEWS: Mention TILE-Gx in "New native configurations" and
9135 "New targets" sections.
9136
9137 2013-04-01 Doug Evans <dje@google.com>
9138
9139 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9140 (process_enumeration_scope): Simplify.
9141
9142 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9143 type_unit_group ...
9144 (struct signatured_type): ... to here.
9145 (sig_type_ptr): New typedef.
9146 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9147 out of union 't'. All uses updated.
9148 (dw2_get_file_names_reader): Assert not called for a type unit.
9149 (dw2_get_file_names): Assert not called for a type unit or type
9150 unit group.
9151 (build_type_psymtabs_reader): Assert called for a type unit.
9152 (build_type_psymtab_dependencies): Assert called for a type unit group.
9153
9154 * dwarf2read.c (free_dwo_file): Add comment.
9155 (dwarf2_per_objfile_free): Unref dwp bfd.
9156
9157 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9158
9159 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9160 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9161 (read_pe_exported_syms): Remove unused 'exportix'.
9162 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9163 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9164 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9165
9166 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9167
9168 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9169 (print_it_watchpoint): Remove unused 'bl'.
9170 (say_where): Remove unused 'uiout'.
9171 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9172 (bkpt_breakpoint_hit): Remove unused 'b'.
9173 (internal_bkpt_print_it): Remove unused 'uiout'.
9174 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9175
9176 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9177
9178 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9179 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9180
9181 2013-03-29 Doug Evans <dje@google.com>
9182
9183 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9184 Delete arg is_dwp. All callers updated.
9185 (open_dwp_file): New function.
9186 (open_and_init_dwp_file): Call it.
9187 (get_dwp_file): New function.
9188 (lookup_dwo_cutu): Call it.
9189
9190 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9191 unnecessary, cleanup.
9192
9193 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9194
9195 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9196 (lookup_dwo_unit): New function.
9197 (init_cutu_and_read_dies): Move DWO handling to new functions.
9198
9199 * dwarf2read.c (struct signatured_type): Tweak comment.
9200 (struct dwo_unit): Tweak comment.
9201 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9202 (create_dwo_debug_info_hash_table): Tweak comment.
9203 (dwarf2_per_cu_offset_and_type): Tweak comment.
9204
9205 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9206 missing .debug_types section.
9207
9208 2013-03-29 Yao Qi <yao@codesourcery.com>
9209
9210 * corelow.c: Include "completer.h".
9211 (_initialize_corelow): Call add_target_with_completer with
9212 argument 'filename_completer'.
9213 * tracepoint.c: Likewise.
9214 * exec.c (_initialize_exec): Likewise.
9215 * target.c (add_target): Rename to ...
9216 (add_target_with_completer): ... this. Call set_cmd_completer
9217 if parameter completer is not NULL.
9218 (add_target): New.
9219 * target.h: Include "command.h".
9220 (add_target_with_completer): Declare it.
9221
9222 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9223
9224 * coffread.c (is_import_fixup_symbol): New function.
9225 (record_minimal_symbol): Use is_import_fixup_symbol to
9226 detect import fixup symbols, and discard them.
9227
9228 2013-03-28 Doug Evans <dje@google.com>
9229
9230 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9231 types hash table until we know we need it.
9232
9233 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9234 index numbers.
9235
9236 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9237 All callers updated.
9238 (dw2_print_stats): Print #read CUs too.
9239 (dump_die_shallow): Print signatured types better.
9240
9241 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9242 info_or_types_section to section. All uses updated.
9243 (struct dwo_unit): Ditto.
9244
9245 2013-03-28 Pedro Alves <palves@redhat.com>
9246
9247 * NEWS (New options): New section.
9248 (New options): Mention set/show remote trace-status-packet.
9249 * remote.c (PACKET_qTStatus): New enumeration value.
9250 (remote_get_trace_status): Skip sending qTStatus if the packet is
9251 disabled. Use packet_ok.
9252 (_initialize_remote): Register a configuration command for
9253 qTStatus packet.
9254
9255 2013-03-28 Doug Evans <dje@google.com>
9256
9257 * symfile.c (find_separate_debug_file): Add comment.
9258 (terminate_after_last_dir_separator): Tweak comment.
9259
9260 * dwarf2read.c (create_partial_symtab): Add forward decl.
9261 (create_partial_symtab): Move to be closer to other psymtab functions.
9262 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9263
9264 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9265 (compute_symtab_includes): Remove unnecessary forward declaration.
9266 (die_needs_namespace): Add comment marking group of functions for
9267 dwarf2 name computation.
9268
9269 * typeprint.c (_initialize_typeprint): Improve type help text.
9270
9271 * python/python.c (finish_python_initialization): Provide suggestion
9272 for how to tell gdb to find its python files.
9273
9274 2013-03-28 Pedro Alves <palves@redhat.com>
9275
9276 PR gdb/15294
9277
9278 * source.c (_initialize_source): Change back "set listsize" to an
9279 integer command.
9280
9281 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9282
9283 PR gdb/15275
9284 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9285
9286 2013-03-27 Pedro Alves <palves@redhat.com>
9287
9288 * top.c (history_size): Rename to ...
9289 (history_size_setshow_var): ... this. Add comment.
9290 (show_commands): Use readline's 'history_length' instead of
9291 computing the history length by calling history_get in a loop.
9292 (set_history_size_command): Error out for sizes over INT_MAX.
9293 Restore previous history size on invalid size.
9294 (init_history): If HISTSIZE is negative, leave the history size as
9295 zero. Add comments.
9296 (init_main): Adjust.
9297
9298 2013-03-27 Pedro Alves <palves@redhat.com>
9299
9300 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9301 coff_pe_read" command to "set debug coff-pe-read".
9302
9303 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9304
9305 * record.c (command_size_to_target_size): Fix size comparison.
9306 Change parameter type from pointer to integer to integer.
9307 Update all users.
9308
9309 2013-03-27 Pierre Muller <muller@sourceware.org>
9310
9311 * windows-nat.c (handle_output_debug_string): Avoid typecast
9312 from integer of different size warning.
9313
9314 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9315
9316 * windows-nat.c (handle_output_debug_string): Add empty line
9317 after local block variable definition.
9318
9319 2013-03-26 Pedro Alves <palves@redhat.com>
9320
9321 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9322 (net_open): Make 'polls' local unsigned.
9323
9324 2013-03-26 Pedro Alves <palves@redhat.com>
9325
9326 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9327 a zuinteger command instead of uinteger.
9328
9329 2013-03-26 Pedro Alves <palves@redhat.com>
9330
9331 * record-full.c (record_full_insn_num): Make it unsigned.
9332 (record_full_check_insn_num, record_full_message)
9333 (record_full_registers_change, record_full_xfer_partial): Remove
9334 record_full_insn_max_num check (it's always != 0).
9335 (record_full_info, record_full_restore): Use %u as format string.
9336 (): Use %u as format string.
9337 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9338 check (it's always != 0).
9339
9340 2013-03-26 Pedro Alves <palves@redhat.com>
9341
9342 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9343 and "set dcache size" commands zuinteger instead of uinteger.
9344
9345 2013-03-26 Pedro Alves <palves@redhat.com>
9346
9347 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9348 command zuinteger instead of uinteger.
9349
9350 2013-03-26 Pedro Alves <palves@redhat.com>
9351
9352 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9353 zuinteger instead of uinteger.
9354
9355 2013-03-26 Pedro Alves <palves@redhat.com>
9356
9357 * record.c (record_insn_history_size_setshow_var)
9358 (record_call_history_size_setshow_var): New globals.
9359 (command_size_to_target_size): New function.
9360 (cmd_record_insn_history, cmd_record_call_history): Use
9361 command_size_to_target_size instead of cast.
9362 (validate_history_size, set_record_insn_history_size)
9363 (set_record_call_history_size): New functions.
9364 (_initialize_record): Install set_record_insn_history_size and
9365 set_record_call_history_size as "set" hooks of "set record
9366 instruction-history-size" and "set record
9367 function-call-history-size".
9368
9369 2013-03-26 Pedro Alves <palves@redhat.com>
9370
9371 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9372 use with history_max_entries use. Remove FIXME note.
9373
9374 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9375
9376 * record-btrace.c (record_btrace_close): Call
9377 record_btrace_auto_disable.
9378
9379 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9380
9381 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9382
9383 2013-03-25 Doug Evans <dje@google.com>
9384
9385 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9386
9387 2013-03-25 Tom Tromey <tromey@redhat.com>
9388
9389 PR symtab/11462:
9390 * c-exp.y (exp): Add new productions for destructors after '.' and
9391 '->'.
9392 (write_destructor_name): New function.
9393
9394 2013-03-25 Tom Tromey <tromey@redhat.com>
9395
9396 PR c++/9197:
9397 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9398 value_struct_elt, not lookup_struct_elt_type.
9399 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9400 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9401 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9402
9403 2013-03-25 Yao Qi <yao@codesourcery.com>
9404
9405 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9406 instead of '_mkdir'.
9407
9408 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9409
9410 * windows-nat.c (windows_get_absolute_argv0): New function.
9411 * windows-nat.h: Add its prototype.
9412
9413 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9414 Use IS_DIR_SEPARATOR instead of looking for a character inside
9415 SLASH_STRING. Include filenames.h.
9416 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9417 relocate_gdb_directory works when passed gdb_program_name.
9418 Include windows-nat.h.
9419
9420 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9421
9422 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9423 * remote.c (trace_error): Remove the special handling of '2'.
9424 (readchar) <SERIAL_EOF>
9425 (readchar) <SERIAL_ERROR>
9426 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9427 (remote_get_trace_status): Call throw_exception if EX is
9428 TARGET_CLOSE_ERROR.
9429 * utils.c (perror_with_name): Rename to ...
9430 (throw_perror_with_name): ... here. New parameter errcode, describe it
9431 in the function comment.
9432 (perror_with_name): New function wrapper.
9433 * utils.h (enum errors): New stub declaration.
9434 (throw_perror_with_name): New declaration.
9435
9436 2013-03-22 Pedro Alves <palves@redhat.com>
9437 Yao Qi <yao@codesourcery.com>
9438 Mark Kettenis <kettenis@gnu.org>
9439
9440 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9441 Don't let the user set the value to UINT_MAX directly.
9442 <var_integer>: Don't let the user set the value to INT_MAX
9443 directly.
9444
9445 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 * remote.c (remote_unpush_target): New function.
9448 (remote_open_1): Remove two pop_target calls, update one comment, add
9449 comment to target_preopen call. Replace pop_target call by
9450 remote_unpush_target call.
9451 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9452 pop_target calls by remote_unpush_target calls.
9453
9454 2013-03-22 Pedro Alves <palves@redhat.com>
9455
9456 * linux-nat.c (linux_child_follow_fork): Don't call
9457 linux_enable_event_reporting.
9458 (linux_handle_extended_wait): Don't call
9459 linux_enable_event_reporting.
9460
9461 2013-03-22 Pedro Alves <palves@redhat.com>
9462
9463 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9464 use it to rewrite the trampoline buffers with type gdb_byte[], and
9465 undefine the macro. Remove char* cast.
9466
9467 2013-03-21 Doug Evans <dje@google.com>
9468
9469 New commands "mt set per-command {space,time,symtab} {on,off}".
9470 * NEWS: Add entry.
9471 * event-top.c: #include "maint.h".
9472 * main.c: #include "maint.h".
9473 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9474 timeval-utils.h, maint.h, cli/cli-setshow.h.
9475 (per_command_time, per_command_space): New static globals.
9476 (per_command_symtab): New static global.
9477 (per_command_setlist, per_command_showlist): New static globals.
9478 (struct cmd_stats): Move here from utils.c.
9479 (set_per_command_time): Renamed from set_display_time in utils.c
9480 and moved here. All callers updated.
9481 (set_per_command_space): Renamed from set_display_space in utils.c
9482 and moved here. All callers updated.
9483 (count_symtabs_and_blocks): New function.
9484 (report_command_stats): Moved here from utils.c. Add support for
9485 printing symtab stats. Only print data if enabled before command
9486 executed.
9487 (make_command_stats_cleanup): Ditto.
9488 (sert_per_command_cmd, show_per_command_cmd): New functions.
9489 (_initialize_maint_cmds): Add new commands
9490 mt set per-command {space,time,symtab} {on,off}.
9491 * maint.h: New file.
9492 * top.c: #include "maint.h".
9493 * utils.c (reset_prompt_for_continue_wait_time): New function.
9494 (get_prompt_for_continue_wait_time): New function.
9495 * utils.h (reset_prompt_for_continue_wait_time): Declare
9496 (get_prompt_for_continue_wait_time): Declare.
9497 (make_command_stats_cleanup): Moved to maint.h.
9498 (set_display_time, set_display_space): Moved to maint.h and renamed
9499 to set_per_command_time, set_per_command_space.
9500 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9501 parse_binary_operation and made non-static. Don't call error,
9502 just return an error marker. All callers updated.
9503 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9504
9505 2013-03-21 Tom Tromey <tromey@redhat.com>
9506
9507 * symfile.c (alloc_section_addr_info): Update header. Don't set
9508 'num_sections' field.
9509 (build_section_addr_info_from_section_table): Set 'num_sections'.
9510 (build_section_addr_info_from_bfd): Likewise.
9511 (build_section_addr_info_from_objfile): Remove dead loop
9512 condition.
9513 (free_section_addr_info): Unconditionally call xfree.
9514 (relative_addr_info_to_section_offsets, addrs_section_sort)
9515 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9516 condition.
9517 (syms_from_objfile_1): Remove dead 'if' condition. Check
9518 'num_sections'.
9519 (add_symbol_file_command): Set 'num_sections'.
9520 * symfile-mem.c (symbol_file_add_from_memory): Set
9521 'num_sections'.
9522 * somread.c (som_symfile_offsets): Remove dead loop condition.
9523 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9524 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9525
9526 2013-03-21 Tom Tromey <tromey@redhat.com>
9527
9528 * tracepoint.h (decode_agent_options): Add 'trace_string'
9529 argument.
9530 * tracepoint.c (decode_agent_options): Add 'trace_string'
9531 argument.
9532 (validate_actionline): Update.
9533 (collect_symbol): Add 'trace_string' argument.
9534 (struct add_local_symbols_data) <trace_string>: New field.
9535 (do_collect_symbol): Update.
9536 (add_local_symbols): Add 'trace_string' argument.
9537 (encode_actions_1): Update.
9538 (trace_dump_actions): Update.
9539 * dwarf2loc.c (access_memory): Update.
9540 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9541 * ax-general.c (new_agent_expr): Update.
9542 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9543 (gen_trace_for_return_address): Add argument.
9544 (trace_kludge, trace_string_kludge): Remove.
9545 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9546 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9547 (gen_trace_for_var): Add 'trace_string' argument.
9548 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9549 (gen_printf, agent_eval_command_one): Update.
9550
9551 2013-03-21 Tom Tromey <tromey@redhat.com>
9552
9553 PR exp/15109:
9554 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9555 Handle FILENAME token.
9556
9557 2013-03-21 Tom Tromey <tromey@redhat.com>
9558
9559 * c-exp.y (YYPRINT): Define.
9560 (c_print_token): New function.
9561
9562 2013-03-21 Tom Tromey <tromey@redhat.com>
9563
9564 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9565
9566 2013-03-21 Yao Qi <yao@codesourcery.com>
9567
9568 * ctf.c: Include "gdb_stat.h".
9569 [USE_WIN32API]: New macro 'mkdir'.
9570 (ctf_start): Use permission bits macros if they are defined.
9571
9572 2013-03-20 Keith Seitz <keiths@redhat.com>
9573
9574 * breakpoint.h (struct breakpoint): Add comment to
9575 extra_string indicating that this member is mallod'd.
9576 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9577
9578 2013-03-20 Pedro Alves <palves@redhat.com>
9579
9580 PR gdb/15289
9581
9582 * cli/cli-setshow.c (do_set_command)
9583 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9584 the result of parsing the command argument. Throw error if the
9585 value is greater than UINT_MAX. Print the invalid value with
9586 plongest.
9587 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9588 result of parsing the command argument. Throw error if the value
9589 is greater than INT_MAX, not greater or equal. Also throw error
9590 if the value is less than INT_MIN. Print the invalid value with
9591 plongest.
9592 <var_zuinteger_unlimited>: Throw error if the value is greater
9593 than INT_MAX, not greater or equal.
9594 (do_show_command) <var_integer, var_zinteger,
9595 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9596
9597 2013-03-20 Tom Tromey <tromey@redhat.com>
9598
9599 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9600 if possible.
9601 * dwarf2read.c (read_func_scope): Remove old FIXME.
9602 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9603 not LOC_COMPUTED.
9604 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9605 Unconditionally call via computed ops, if possible.
9606 * printcmd.c (address_info): Unconditionally call via computed ops,
9607 if possible.
9608 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9609 if possible.
9610 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9611 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9612 if possible.
9613
9614 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9615 Tom Tromey <tromey@redhat.com>
9616
9617 PR symtab/8421:
9618 * coffread.c (coff_register_index): New global.
9619 (process_coff_symbol, coff_read_enum_type): Set
9620 SYMBOL_ACLASS_INDEX.
9621 (_initialize_coffread): Initialize new global.
9622 * dwarf2loc.c (locexpr_find_frame_base_location)
9623 (dwarf2_block_frame_base_locexpr_funcs)
9624 (loclist_find_frame_base_location)
9625 (dwarf2_block_frame_base_loclist_funcs): New.
9626 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9627 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9628 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9629 (dwarf2_block_frame_base_loclist_funcs): New.
9630 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9631 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9632 globals.
9633 (read_func_scope): Update.
9634 (fixup_go_packaging, mark_common_block_symbol_computed)
9635 (var_decode_location, new_symbol_full, dwarf2_const_value):
9636 Set SYMBOL_ACLASS_INDEX.
9637 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9638 (_initialize_dwarf2_read): Initialize new globals.
9639 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9640 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9641 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9642 globals.
9643 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9644 (_initialize_mdebugread): Initialize new globals.
9645 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9646 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9647 (stab_register_index, stab_regparm_index): New globals.
9648 (define_symbol, read_enum_type, common_block_end): Set
9649 SYMBOL_ACLASS_INDEX.
9650 (_initialize_stabsread): Initialize new globals.
9651 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9652 globals.
9653 (MAX_SYMBOL_IMPLS): New define.
9654 (register_symbol_computed_impl, register_symbol_block_impl)
9655 (register_symbol_register_impl)
9656 (initialize_ordinary_address_classes): New functions.
9657 (_initialize_symtab): Call initialize_ordinary_address_classes.
9658 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9659 (struct symbol_impl): New.
9660 (SYMBOL_ACLASS_BITS): New define.
9661 (struct symbol) <aclass, ops>: Remove fields.
9662 <aclass_index>: New field.
9663 (symbol_impls): Declare.
9664 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9665 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9666 (register_symbol_computed_impl, register_symbol_block_impl)
9667 (register_symbol_register_impl): Declare.
9668 (struct symbol_computed_ops): Add location_has_loclist.
9669 (struct symbol_block_ops): New.
9670 (SYMBOL_BLOCK_OPS): New.
9671 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9672
9673 2013-03-20 Tom Tromey <tromey@redhat.com>
9674
9675 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9676 (print_partial_symbols, recursively_search_psymtabs): Use
9677 PSYMBOL_CLASS.
9678
9679 2013-03-20 Pierre Muller <muller@sourceware.org>
9680
9681 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9682 addtion, subtraction, multiplication and division binary operator.
9683
9684 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9685
9686 Code cleanup.
9687 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9688 * bsd-kvm.c (bsd_kvm_close): Likewise.
9689 * bsd-uthread.c (bsd_uthread_close): Likewise.
9690 * corelow.c (core_close): Likewise.
9691 (core_close_cleanup): Remove parameter quitting from a caller.
9692 * event-top.c (async_disconnect): Likewise.
9693 * exec.c (exec_close_1): Remove parameter quitting.
9694 * go32-nat.c (go32_close): Likewise.
9695 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9696 parameter quitting from a caller.
9697 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9698 variable.
9699 (mips_linux_close): Remove parameter quitting. Remove parameter
9700 quitting from a caller.
9701 * monitor.c (monitor_close): Remove parameter quitting.
9702 * monitor.h (monitor_close): Likewise.
9703 * record-btrace.c (record_btrace_close): Likewise.
9704 * record-full.c (record_full_close): Likewise.
9705 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9706 it also from fprintf_unfiltered.
9707 * remote-mips.c (mips_close): Remove parameter quitting.
9708 (mips_detach): Remove parameter quitting from a caller.
9709 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9710 (gdbsim_close): Remove duplicate function comment. Remove parameter
9711 quitting and remove it also from printf_filtered.
9712 * remote.c (remote_close): Remove parameter quitting.
9713 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9714 * target.c (update_current_target): Remove parameter int from to_close
9715 de_fault.
9716 (push_target, unpush_target, pop_target): Remove parameter quitting from
9717 a caller.
9718 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9719 Remove parameter quitting from a caller.
9720 (target_preopen): Remove parameter quitting from a caller.
9721 (target_close): Remove parameter quitting. Remove parameter quitting
9722 from a caller two times. Remove parameter quitting also from
9723 fprintf_unfiltered.
9724 * target.h (struct target_ops): Remove parameter quitting and as int
9725 from fields to_xclose and to_close.
9726 (extern struct target_ops current_target):
9727 (target_close, pop_all_targets): Remove parameter quitting. Update the
9728 comment.
9729 (pop_all_targets_above): Remove parameter quitting.
9730 * top.c (quit_target): Remove parameter quitting from a caller.
9731 * tracepoint.c (tfile_close): Remove parameter quitting.
9732 * windows-nat.c (windows_close): Remove parameter quitting.
9733
9734 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9735
9736 * windows-nat.c (handle_output_debug_string): Replace call
9737 to string_to_core_addr with call to strtoull.
9738
9739 2013-03-20 Yao Qi <yao@codesourcery.com>
9740
9741 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9742 and write it to CTF metadata.
9743
9744 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9745
9746 * windows-nat.c (handle_output_debug_string): Change type of n to
9747 SIZE_T to avoid crash on 64 bit systems.
9748
9749 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9750
9751 * python/python-internal.h (HAVE_SNPRINTF)
9752 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9753 about redefinition of snprintf by pyerrors.h.
9754
9755 2013-03-15 Steve Ellcey <sellcey@mips.com>
9756
9757 * remote-sim.c (sim_command_completer): Make char arguments const.
9758
9759 2013-03-15 Tom Tromey <tromey@redhat.com>
9760
9761 PR c++/15116:
9762 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9763
9764 2013-03-14 Tom Tromey <tromey@redhat.com>
9765
9766 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9767 New fields.
9768 (get_file_crc): Move from symfile.c.
9769 (gdb_bfd_crc): New function.
9770 * gdb_bfd.h (gdb_bfd_crc): Declare.
9771 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9772 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9773 (separate_debug_file_exists): Use gdb_bfd_crc.
9774
9775 2013-03-14 Tom Tromey <tromey@redhat.com>
9776
9777 * symfile.c (get_debug_link_info): Remove.
9778 (find_separate_debug_file_by_debuglink): Use
9779 bfd_get_debug_link_info.
9780
9781 2013-03-14 Tom Tromey <tromey@redhat.com>
9782
9783 * symtab.c (error_in_psymtab_expansion): New function.
9784 (lookup_symbol_aux_quick)
9785 (basic_lookup_transparent_type_quick): Remove "last resort"
9786 code. Use error_in_psymtab_expansion.
9787
9788 2013-03-14 Doug Evans <dje@google.com>
9789 Jan Kratochvil <jan.kratochvil@redhat.com>
9790
9791 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9792 any successful compare_filenames_for_search or FILENAME_CMP.
9793 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9794 * symtab.c (iterate_over_some_symtabs): Likewise.
9795
9796 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 * source.c (print_source_lines_base): Make a local copy of
9799 symtab_to_fullname.
9800
9801 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9802 Jan Kratochvil <jan.kratochvil@redhat.com>
9803
9804 * source.c (print_source_lines_base): Suppress "file" for TUI.
9805
9806 2013-03-14 Keith Seitz <keiths@redhat.com>
9807 Alan Matsuoka <alanm@redhat.com>
9808
9809 PR c++/15203
9810 PR c++/15210
9811 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9812 TYPE_CODE_METHOD.
9813 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9814 symbols.
9815
9816 2013-03-14 Yao Qi <yao@codesourcery.com>
9817
9818 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9819 status to tfile if trace is stopped by command 'tstop'.
9820
9821 2013-03-14 Yao Qi <yao@codesourcery.com>
9822
9823 * tracepoint.c (tfile_write_status): Write trace notes and user
9824 name into tfile if they are not NULL.
9825
9826 2013-03-14 Hui Zhu <hui@codesourcery.com>
9827 Yao Qi <yao@codesourcery.com>
9828
9829 * Makefile.in (REMOTE_OBS): Add ctf.o.
9830 (SFILES): Add ctf.c.
9831 (HFILES_NO_SRCDIR): Add ctf.h.
9832 * ctf.c, ctf.h: New files.
9833 * tracepoint.c: Include 'ctf.h'.
9834 (collect_pseudocommand): Remove static.
9835 (trace_save_command): Parse option "-ctf".
9836 Produce different trace file writers per option.
9837 Adjust output message.
9838 (trace_save_tfile, trace_save_ctf): New.
9839 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
9840 * mi/mi-main.c: Include 'ctf.h'.
9841 (mi_cmd_trace_save): Handle option '-ctf'. Call either
9842 trace_save_tfile or trace_save_ctf.
9843 * NEWS: Mention these changes.
9844
9845 2013-03-14 Yao Qi <yao@codesourcery.com>
9846
9847 * tracepoint.c (trace_file_writer_xfree): New.
9848 (struct tfile_writer_data): New.
9849 (tfile_dtor, tfile_can_target_save, tfile_start): New.
9850 (tfile_write_header, tfile_write_regblock_type): New.
9851 (tfile_write_status, tfile_write_uploaded_tsv): New.
9852 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
9853 (tfile_write_raw_data, (tfile_end): New.
9854 (tfile_write_ops): New global variable.
9855 (TRACE_WRITE_R_BLOCK): New macro.
9856 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
9857 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
9858 (TRACE_WRITE_V_BLOCK): New macro.
9859 (trace_save): Add extra one parameter WRITER. Make it static.
9860 Use WRITER to writer trace.
9861 (tfile_trace_file_writer_new): New.
9862 (trace_save_command): Caller update.
9863 (trace_save_tfile): Write trace data in TFILE format.
9864 * tracepoint.h (struct trace_frame_write_ops): New.
9865 (struct trace_file_write_ops): New.
9866 (struct trace_file_writer): New.
9867 (trace_save): Remove its declaration.
9868 (trace_save_tfile): Declare it.
9869 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
9870 instead of trace_save.
9871
9872 2013-03-13 Pedro Alves <palves@redhat.com>
9873
9874 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
9875
9876 2013-03-13 Pedro Alves <palves@redhat.com>
9877
9878 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
9879 commented out code.
9880 * demangle.c (current_demangling_style_string): Make it const.
9881 (set_demangling_command): Assert the demangling style is known.
9882 Remove all handling of unknown styles. Set
9883 'current_demangling_style_string' to an element of the
9884 demangling_style_names array.
9885 (set_demangling_style): Delete.
9886 (_initialize_demangler): Set current_demangling_style_string to the
9887 element of the demangling_style_names array that corresponds to
9888 the default demangling style. Remove FIXME note. Don't call
9889 set_demangling_style.
9890 * gdb-demangle.h (set_demangling_style): Remove declaration.
9891
9892 2013-03-13 Pedro Alves <palves@redhat.com>
9893
9894 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
9895 fields const.
9896 (ada_make_symbol_completion_list): Make "text0" parameter const.
9897 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
9898 * breakpoint.c (condition_completer): Make "text" and "word"
9899 parameters const. Adjust.
9900 (check_tracepoint_command): Adjust to validate_actionline
9901 prototype change.
9902 (catch_syscall_completer): Make "text" and "word" parameters
9903 const.
9904 * cli/cli-cmds.c (show_user): Make "comname" local const.
9905 (valid_command_p): Make "command" parameter const.
9906 (alias_command): Make "alias_prefix" and "command_prefix" locals
9907 const.
9908 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
9909 (add_alias_cmd): Make "name" and "oldname" parameters const.
9910 Adjust. No longer make copy of OLDNAME.
9911 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
9912 (add_setshow_cmd_full, add_setshow_enum_cmd)
9913 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9914 (add_setshow_filename_cmd, add_setshow_string_cmd)
9915 (add_setshow_string_noescape_cmd)
9916 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9917 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9918 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
9919 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
9920 Make "name" parameter const.
9921 (help_cmd): Rename "command" parameter to "arg". New const local
9922 "command".
9923 (find_cmd): Make "command" parameter const.
9924 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
9925 deprecated_cmd_warning prototype change.
9926 (undef_cmd_error): Make "cmdtype" parameter const.
9927 (lookup_cmd): Make "line" parameter const.
9928 (deprecated_cmd_warning): Change type of "text" parameter to
9929 pointer to const char, from pointer to pointer to char. Adjust.
9930 (lookup_cmd_composition): Make "text" parameter const.
9931 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
9932 parameters const.
9933 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
9934 const.
9935 * cli/cli-script.c (validate_comname): Make "tem" local const.
9936 (define_command): New const local "tem_c". Use it in calls to
9937 lookup_cmd.
9938 (document_command): Make "tem" and "comfull" locals const.
9939 (show_user_1): Make "prefix" and "name" parameters const.
9940 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
9941 const.
9942 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
9943 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
9944 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
9945 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
9946 (complete_on_enum, add_setshow_enum_cmd)
9947 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
9948 (add_setshow_filename_cmd, add_setshow_string_cmd)
9949 (add_setshow_string_noescape_cmd)
9950 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
9951 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
9952 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
9953 Change prototypes, constifying strings.
9954 * completer.c (noop_completer, filename_completer): Make "text"
9955 and "prefix" parameters const.
9956 (location_completer, expression_completer)
9957 (complete_line_internal): Make "text" and "prefix" parameters
9958 const and adjust.
9959 (command_completer, signal_completer): Make "text" and "prefix"
9960 parameters const.
9961 * completer.h (noop_completer, filename_completer)
9962 (expression_completer, location_completer, command_completer)
9963 (signal_completer): Change prototypes.
9964 * corefile.c (complete_set_gnutarget): Make "text" and "word"
9965 parameters const.
9966 * cp-abi.c (cp_abi_completer): Likewise.
9967 * expression.h (parse_expression_for_completion): Change
9968 prototype.
9969 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
9970 parameters const.
9971 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
9972 * infrun.c (handle_completer): Make "text" and "word" parameters
9973 const.
9974 * interps.c (interpreter_completer): Make "text" and "word"
9975 parameters const.
9976 * language.h (struct language_defn)
9977 <la_make_symbol_completion_list>: Make "text" and "word"
9978 parameters const.
9979 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
9980 (parse_exp_in_context): Rename to ...
9981 (parse_exp_in_context_1): ... this.
9982 (parse_exp_in_context): Reimplement, with const hack from
9983 parse_exp_1.
9984 (parse_expression_for_completion): Make "string" parameter const.
9985 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
9986 to pointer to const char. Adjust.
9987 (print_command_1): Make "exp" parameter const.
9988 (output_command): Rename to ...
9989 (output_command_const): ... this. Make "exp" parameter const.
9990 (output_command): Reimplement.
9991 (x_command): Adjust.
9992 (display_command): Rename "exp" parameter to "arg". New "exp"
9993 local, const version of "arg".
9994 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
9995 "cmd_name" local const.
9996 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
9997 call.
9998 (cmdpy_completer): Make "text" and "word" parameters const.
9999 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10000 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10001 const.
10002 * remote.c (_initialize_remote): Make "cmd_name" local const.
10003 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10004 parameters const. Adjust.
10005 (completion_list_add_fields): Make "sym_text", "text" and "word"
10006 parameters const.
10007 (struct add_name_data) <sym_text, text, word>: Make fields const.
10008 (default_make_symbol_completion_list_break_on): Make "text" and
10009 "word" parameters const. Adjust locals.
10010 (default_make_symbol_completion_list)
10011 (make_symbol_completion_list, make_symbol_completion_type)
10012 (make_symbol_completion_list_fn): Make "text" and "word"
10013 parameters const.
10014 (make_file_symbol_completion_list): Make "text", "word" and
10015 "srcfile" parameters const. Adjust locals.
10016 (add_filename_to_list): Make "text" and "word" parameters const.
10017 (struct add_partial_filename_data) <text, word>: Make fields
10018 const.
10019 (make_source_files_completion_list): Make "text" and "word"
10020 parameters const.
10021 * symtab.h (default_make_symbol_completion_list_break_on)
10022 (default_make_symbol_completion_list, make_symbol_completion_list)
10023 (make_symbol_completion_type enum type_code)
10024 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10025 (make_source_files_completion_list): Change prototype.
10026 * top.c (execute_command): Adjust to pass pointer to pointer to
10027 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10028 change.
10029 (set_verbose): Make "cmdname" local const.
10030 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10031 and adjust.
10032 (validate_actionline): Make "line" parameter a pointer to const
10033 char, and adjust.
10034 (encode_actions_1): Make "action_exp" local const, and adjust.
10035 (encode_actions): Adjust.
10036 (replace_comma): Delete.
10037 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10038 const, and adjust. Don't frob the action string while splitting
10039 it at commas. Instead, make a copy of each split substring in
10040 turn.
10041 (trace_dump_command): Adjust to validate_actionline prototype
10042 change.
10043 * tracepoint.h (decode_agent_options, decode_agent_options)
10044 (encode_actions, validate_actionline): Change prototypes.
10045 * valprint.h (output_command): Delete declaration.
10046 (output_command_const): Declare.
10047 * value.c (function_destroyer): Cast const away in xfree call.
10048
10049 2013-03-13 Pedro Alves <palves@redhat.com>
10050
10051 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10052 rather than casting 'const char * const *' to 'const char **'.
10053 * ada-lex.l (processInt): Make "trailer" local const. Remove
10054 'const char **' cast.
10055 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10056 locals, and use those as strtol output pointer, instead than doing
10057 invalid casts to from 'const char **' to 'char **'.
10058 (_initialize_demangle): Remove cast.
10059 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10060 locals, and use those as strtol output pointer, instead than doing
10061 invalid casts to from 'const char **' to 'char **'.
10062 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10063 casts.
10064 * stap-probe.c (stap_parse_register_operand)
10065 (stap_parse_single_operand): Likewise.
10066
10067 2013-03-13 Yao Qi <yao@codesourcery.com>
10068
10069 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10070 the last matched 'V' blcok in trace frame.
10071
10072 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10073
10074 * NEWS: Create a new section for the next release branch.
10075 Rename the section of the current branch, now that it has
10076 been cut.
10077
10078 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10079
10080 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10081 * version.in: Bump version to 7.6.50.20130312-cvs.
10082
10083 2013-03-12 Keith Seitz <keiths@redhat.com>
10084
10085 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10086 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10087 Remove temporary copy of input string.
10088 (mi_execute_command_wrapper): Make "cmd" const.
10089 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10090 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10091 Use const strings.
10092 (mi_parse): Make "cmd" const.
10093 Use const strings.
10094 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10095
10096 2013-03-12 Keith Seitz <keiths@redhat.com>
10097
10098 * ada-lang.c (ada_read_renaming_var_value): Pass const
10099 pointer to expression string to parse_exp_1.
10100 (create_excep_cond_exprs): Likewise.
10101 * ax-gdb.c (agent_eval_command_one): Likewise.
10102 (maint_agent_printf_command): Likewise.
10103 Constify much of the string handling/parsing.
10104 * breakpoint.c (set_breakpoint_condition): Pass const
10105 pointer to expression string to parse_exp_1.
10106 (update_watchpoint): Likewise.
10107 (parse_cmd_to_aexpr): Constify string handling.
10108 Pass const pointer to parse_exp_1.
10109 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10110 (find_condition_and_thread): Likewise.
10111 Make TOK const.
10112 (watch_command_1): Make "arg" const.
10113 Constify string handling.
10114 Copy the expression string instead of changing the input
10115 string.
10116 (update_breakpoint_location): Pass const pointer to
10117 parse_exp_1.
10118 * eval.c (parse_and_eval_address): Make "exp" const.
10119 (parse_to_comma_and_eval): Make "expp" const.
10120 (parse_and_eval): Make "exp" const.
10121 * expression.h (parse_expression): Make argument const.
10122 (parse_exp_1): Make first argument const.
10123 * findcmd.c (parse_find_args): Treat "args" as const.
10124 * linespec.c (parse_linespec): Pass const pointer to
10125 linespec_expression_to_pc.
10126 (linespec_expression_to_pc): Make "exp_ptr" const.
10127 * parse.c (parse_exp_1): Make "stringptr" const.
10128 Make a copy of the expression to pass to parse_exp_in_context until
10129 this whole interface can be constified.
10130 (parse_expression): Make "string" const.
10131 * printcmd.c (ui_printf): Treat "arg" as const.
10132 Handle const strings.
10133 * tracepoint.c (validate_actionline): Pass const pointer to
10134 all calls to parse_exp_1.
10135 (encode_actions_1): Likewise.
10136 * value.h (parse_to_comma_and_eval): Make argument const.
10137 (parse_and_eval_address): Likewise.
10138 (parse_and_eval): Likewise.
10139 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10140 (varobj_set_value): Likewise.
10141 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10142 constify string handling.
10143 Pass const pointers to parse_and_eval_address and
10144 parse_to_comman_and_eval.
10145 * cli/cli-utils.c (skip_to_space): Rename to ...
10146 (skip_to_space_const): ... this. Handle const strings.
10147 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10148 skip_to_space_const.
10149 (skip_to_space_const): Declare.
10150 * common/format.c (parse_format_string): Make "arg" const.
10151 Handle const strings.
10152 * common/format.h (parse_format_string): Make "arg" const.
10153 * gdbserver/ax.c (ax_printf): Make "format" const.
10154 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10155 of the expression string.
10156
10157 2013-03-12 Hui Zhu <hui@codesourcery.com>
10158
10159 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10160
10161 2013-03-12 Yao Qi <yao@codesourcery.com>
10162 Hui Zhu <hui@codesourcery.com>
10163
10164 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10165 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10166 DW_OP_deref_size.
10167
10168 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10169
10170 * ada-lex.l (rules): Only recognize 'thread' as a
10171 delimiter when followed by numerals, as for c-exp.y.
10172 Use new rewind_to_char function to rewind the input for
10173 expression-delimiting tokens.
10174 (rewind_to_char): New function.
10175
10176 2013-03-11 Pedro Alves <palves@redhat.com>
10177 Jan Kratochvil <jan.kratochvil@redhat.com>
10178
10179 * configure: Regenerate.
10180 * configure.ac (check dynamic export flag): Link python test with
10181 $PYTHON_LIBS.
10182
10183 2013-03-11 Doug Evans <dje@google.com>
10184 Keith Seitz <keiths@redhat.com>
10185
10186 * linespec.c (find_linespec_symbols): Call find_function_symbols
10187 first, and then call lookup_prefix_sym/find_method.
10188
10189 2013-03-11 Pedro Alves <palves@redhat.com>
10190
10191 * charset.c (convert_between_encodings): Don't cast between
10192 different pointer to pointer types. Instead, make the 'inp' local
10193 be of the type iconv expects.
10194 (wchar_iterate): Don't cast between different pointer to pointer
10195 types. Instead, use new pointer local of the type iconv expects.
10196 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10197 Add new local of type char pointer, and use it to get a
10198 char/string view of the byte buffer, instead of casting between
10199 pointer to pointer types.
10200
10201 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10202
10203 * remote.c (remote_set_trace_buffer_size): Move != operator
10204 to the start of next line to fix an ARI warning.
10205
10206 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10207
10208 * NEWS: Add record changes.
10209
10210 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10211
10212 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10213 the instruction history disassembly.
10214 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10215 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10216
10217 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10218
10219 * Makefile.in (SFILES): Add record-btrace.c
10220 (COMMON_OBS): Add record-btrace.o
10221 * record-btrace.c: New.
10222 * objfiles.c: Include btrace.h.
10223 (free_objfile): call btrace_free_objfile.
10224
10225 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10226
10227 * target.c (target_call_history, target_call_history_from,
10228 target_call_history_range): New.
10229 * target.h (target_ops) <to_call_history, to_call_history_from,
10230 to_call_history_range>: New fields.
10231 (target_call_history, target_call_history_from,
10232 target_call_history_range): New declaration.
10233 * record.c (get_call_history_modifiers, cmd_record_call_history,
10234 record_call_history_size): New.
10235 (_initialize_record): Add the "record function-call-history" command.
10236 Add "set/show record function-call-history-size" commands.
10237 * record.h (record_print_flag): New.
10238
10239 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10240
10241 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10242 to_insn_history_range>: New fields.
10243 (target_insn_history): New.
10244 (target_insn_history_from): New.
10245 (target_insn_history_range): New.
10246 * target.c (target_insn_history): New.
10247 (target_insn_history_from): New.
10248 (target_insn_history_range): New.
10249 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10250 (record_insn_history_size): New.
10251 (get_insn_number): New.
10252 (get_context_size): New.
10253 (no_chunk): New.
10254 (get_insn_history_modifiers): New.
10255 (cmd_record_insn_history): New.
10256 (_initialize_record): Add "set/show record instruction-history-size"
10257 command. Add "record instruction-history" command.
10258
10259 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10260
10261 * record.h (record_disconnect): New.
10262 (record_detach): New.
10263 (record_mourn_inferior): New.
10264 (record_kill): New.
10265 * record-full.c (record_disconnect, record_detach,
10266 record_mourn_inferior, record_kill): Move to...
10267 * record.c: ...here.
10268 (DEBUG): New.
10269 (record_stop): New.
10270 (record_unpush): New.
10271 (cmd_record_stop): Call record_stop. Replace unpush_target
10272 call with record_unpush call.
10273 (record_disconnect, record_detach): Assert that the target
10274 is of record stratum. Call record_unpush, record_stop, and
10275 DEBUG.
10276 (record_mourn_inferior, record_kill): Assert that the target
10277 is of record stratum. Call record_unpush and DEBUG.
10278
10279 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10280
10281 * record-full.h, record-full.c (record_memory_query): Rename
10282 to ...
10283 (record_full_memory_query): ...this. Update all users.
10284 (record_arch_list_add_reg): Rename to ...
10285 (record_full_arch_list_add_reg): ...this. Update all users.
10286 (record_arch_list_add_mem): Rename to ...
10287 (record_full_arch_list_add_mem): ...this. Update all users.
10288 (record_arch_list_add_end): Rename to ...
10289 (record_full_arch_list_add_end): ...this. Update all users.
10290 (record_gdb_operation_disable_set): Rename to ...
10291 (record_full_gdb_operation_disable_set): ...this.
10292 Update all users.
10293
10294 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10295
10296 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10297 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10298 (RECORD_IS_REPLAY): Renamed to ...
10299 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10300 (RECORD_FILE_MAGIC): Renamed to ...
10301 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10302 (record_mem_entry): Renamed to ...
10303 (record_full_mem_entry): ... this. Updated all users.
10304 (record_reg_entry): Renamed to ...
10305 (record_full_reg_entry): ... this. Updated all users.
10306 (record_end_entry): Renamed to ...
10307 (record_full_end_entry): ... this. Updated all users.
10308 (record_type) <record_end, record_reg, record_mem>: Renamed
10309 to ...
10310 (record_full_type) <record_full_end, record_full_reg,
10311 record_full_mem>: ... this. Updated all users.
10312 (record_entry): Renamed to ...
10313 (record_full_entry): ... this. Updated all users.
10314 (record_core_buf_entry): Renamed to ...
10315 (record_full_core_buf_entry): ... this. Updated all users.
10316 (record_core_regbuf): Renamed to ...
10317 (record_full_core_regbuf): ... this. Updated all users.
10318 (record_core_start): Renamed to ...
10319 (record_full_core_start): ... this. Updated all users.
10320 (record_core_end): Renamed to ...
10321 (record_full_core_end): ... this. Updated all users.
10322 (record_core_buf_list): Renamed to ...
10323 (record_full_core_buf_list): ... this. Updated all users.
10324 (record_first): Renamed to ...
10325 (record_full_first): ... this. Updated all users.
10326 (record_list): Renamed to ...
10327 (record_full_list): ... this. Updated all users.
10328 (record_arch_list_head): Renamed to ...
10329 (record_full_arch_list_head): ... this. Updated all users.
10330 (record_arch_list_tail): Renamed to ...
10331 (record_full_arch_list_tail): ... this. Updated all users.
10332 (record_stop_at_limit): Renamed to ...
10333 (record_full_stop_at_limit): ... this. Updated all users.
10334 (record_insn_max_num): Renamed to ...
10335 (record_full_insn_max_num): ... this. Updated all users.
10336 (record_insn_num): Renamed to ...
10337 (record_full_insn_num): ... this. Updated all users.
10338 (record_insn_count): Renamed to ...
10339 (record_full_insn_count): ... this. Updated all users.
10340 (record_ops): Renamed to ...
10341 (record_full_ops): ... this. Updated all users.
10342 (record_core_ops): Renamed to ...
10343 (record_full_core_ops): ... this. Updated all users.
10344 (set_record_cmdlist): Renamed to ...
10345 (set_record_full_cmdlist): ... this. Updated all users.
10346 (show_record_cmdlist): Renamed to ...
10347 (show_record_full_cmdlist): ... this. Updated all users.
10348 (record_cmdlist): Renamed to ...
10349 (record_full_cmdlist): ... this. Updated all users.
10350 (record_beneath_to_resume_ops): Renamed to ...
10351 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10352 (record_beneath_to_resume): Renamed to ...
10353 (record_full_beneath_to_resume): ... this. Updated all users.
10354 (record_beneath_to_wait_ops): Renamed to ...
10355 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10356 (record_beneath_to_wait): Renamed to ...
10357 (record_full_beneath_to_wait): ... this. Updated all users.
10358 (record_beneath_to_store_registers_ops): Renamed to ...
10359 (record_full_beneath_to_store_registers_ops): ... this.
10360 Updated all users.
10361 (record_beneath_to_store_registers): Renamed to ...
10362 (record_full_beneath_to_store_registers): ... this.
10363 Updated all users.
10364 (record_beneath_to_xfer_partial_ops): Renamed to ...
10365 (record_full_beneath_to_xfer_partial_ops): ... this.
10366 Updated all users.
10367 (record_beneath_to_xfer_partial): Renamed to ...
10368 (record_full_beneath_to_xfer_partial): ... this.
10369 Updated all users.
10370 (record_beneath_to_insert_breakpoint): Renamed to ...
10371 (record_full_beneath_to_insert_breakpoint): ... this.
10372 Updated all users.
10373 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10374 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10375 Updated all users.
10376 (record_beneath_to_stopped_data_address): Renamed to ...
10377 (record_full_beneath_to_stopped_data_address): ... this.
10378 Updated all users.
10379 (record_beneath_to_async): Renamed to ...
10380 (record_full_beneath_to_async): ... this. Updated all users.
10381 (record_goto_insn): Renamed to ...
10382 (record_full_goto_insn): ... this. Updated all users.
10383 (record_save): Renamed to ...
10384 (record_full_save): ... this. Updated all users.
10385 (record_reg_alloc): Renamed to ...
10386 (record_full_reg_alloc): ... this. Updated all users.
10387 (record_reg_release): Renamed to ...
10388 (record_full_reg_release): ... this. Updated all users.
10389 (record_mem_alloc): Renamed to ...
10390 (record_full_mem_alloc): ... this. Updated all users.
10391 (record_mem_release): Renamed to ...
10392 (record_full_mem_release): ... this. Updated all users.
10393 (record_end_alloc): Renamed to ...
10394 (record_full_end_alloc): ... this. Updated all users.
10395 (record_end_release): Renamed to ...
10396 (record_full_end_release): ... this. Updated all users.
10397 (record_entry_release): Renamed to ...
10398 (record_full_entry_release): ... this. Updated all users.
10399 (record_list_release): Renamed to ...
10400 (record_full_list_release): ... this. Updated all users.
10401 (record_list_release_following): Renamed to ...
10402 (record_full_list_release_following): ... this.
10403 Updated all users.
10404 (record_list_release_first): Renamed to ...
10405 (record_full_list_release_first): ... this. Updated all users.
10406 (record_arch_list_add): Renamed to ...
10407 (record_full_arch_list_add): ... this. Updated all users.
10408 (record_get_loc): Renamed to ...
10409 (record_full_get_loc): ... this. Updated all users.
10410 (record_check_insn_num): Renamed to ...
10411 (record_full_check_insn_num): ... this. Updated all users.
10412 (record_arch_list_cleanups): Renamed to ...
10413 (record_full_arch_list_cleanups): ... this. Updated all users.
10414 (record_message): Renamed to ...
10415 (record_full_message): ... this. Updated all users.
10416 (record_message_wrapper): Renamed to ...
10417 (record_full_message_wrapper): ... this. Updated all users.
10418 (record_message_wrapper_safe): Renamed to ...
10419 (record_full_message_wrapper_safe): ... this. Updated all users.
10420 (record_gdb_operation_disable): Renamed to ...
10421 (record_full_gdb_operation_disable): ... this. Updated all users.
10422 (record_hw_watchpoint): Renamed to ...
10423 (record_full_hw_watchpoint): ... this. Updated all users.
10424 (record_exec_insn): Renamed to ...
10425 (record_full_exec_insn): ... this. Updated all users.
10426 (record_restore): Renamed to ...
10427 (record_full_restore): ... this. Updated all users.
10428 (record_async_inferior_event_token): Renamed to ...
10429 (record_full_async_inferior_event_token): ... this.
10430 Updated all users.
10431 (record_async_inferior_event_handler): Renamed to ...
10432 (record_full_async_inferior_event_handler): ... this.
10433 Updated all users.
10434 (record_core_open_1): Renamed to ...
10435 (record_full_core_open_1): ... this. Updated all users.
10436 (record_open_1): Renamed to ...
10437 (record_full_open_1): ... this. Updated all users.
10438 (record_open): Renamed to ...
10439 (record_full_open): ... this. Updated all users.
10440 (record_close): Renamed to ...
10441 (record_full_close): ... this. Updated all users.
10442 (record_resume_step): Renamed to ...
10443 (record_full_resume_step): ... this. Updated all users.
10444 (record_resumed): Renamed to ...
10445 (record_full_resumed): ... this. Updated all users.
10446 (record_execution_dir): Renamed to ...
10447 (record_full_execution_dir): ... this. Updated all users.
10448 (record_resume): Renamed to ...
10449 (record_full_resume): ... this. Updated all users.
10450 (record_get_sig): Renamed to ...
10451 (record_full_get_sig): ... this. Updated all users.
10452 (record_sig_handler): Renamed to ...
10453 (record_full_sig_handler): ... this. Updated all users.
10454 (record_wait_cleanups): Renamed to ...
10455 (record_full_wait_cleanups): ... this. Updated all users.
10456 (record_wait_1): Renamed to ...
10457 (record_full_wait_1): ... this. Updated all users.
10458 (record_wait): Renamed to ...
10459 (record_full_wait): ... this. Updated all users.
10460 (record_stopped_by_watchpoint): Renamed to ...
10461 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10462 (record_disconnect): Renamed to ...
10463 (record_full_disconnect): ... this. Updated all users.
10464 (record_detach): Renamed to ...
10465 (record_full_detach): ... this. Updated all users.
10466 (record_mourn_inferior): Renamed to ...
10467 (record_full_mourn_inferior): ... this. Updated all users.
10468 (record_kill): Renamed to ...
10469 (record_full_kill): ... this. Updated all users.
10470 (record_stopped_data_address): Renamed to ...
10471 (record_full_stopped_data_address): ... this. Updated all users.
10472 (record_registers_change): Renamed to ...
10473 (record_full_registers_change): ... this. Updated all users.
10474 (record_store_registers): Renamed to ...
10475 (record_full_store_registers): ... this. Updated all users.
10476 (record_xfer_partial): Renamed to ...
10477 (record_full_xfer_partial): ... this. Updated all users.
10478 (record_breakpoint): Renamed to ...
10479 (record_full_breakpoint): ... this. Updated all users.
10480 (record_breakpoint_p): Renamed to ...
10481 (record_full_breakpoint_p): ... this. Updated all users.
10482 (record_breakpoints): Renamed to ...
10483 (record_full_breakpoints): ... this. Updated all users.
10484 (record_sync_record_breakpoints): Renamed to ...
10485 (record_full_sync_record_breakpoints): ... this.
10486 Updated all users.
10487 (record_init_record_breakpoints): Renamed to ...
10488 (record_full_init_record_breakpoints): ... this.
10489 Updated all users.
10490 (record_insert_breakpoint): Renamed to ...
10491 (record_full_insert_breakpoint): ... this. Updated all users.
10492 (record_remove_breakpoint): Renamed to ...
10493 (record_full_remove_breakpoint): ... this. Updated all users.
10494 (record_can_execute_reverse): Renamed to ...
10495 (record_full_can_execute_reverse): ... this. Updated all users.
10496 (record_get_bookmark): Renamed to ...
10497 (record_full_get_bookmark): ... this. Updated all users.
10498 (record_goto_bookmark): Renamed to ...
10499 (record_full_goto_bookmark): ... this. Updated all users.
10500 (record_async): Renamed to ...
10501 (record_full_async): ... this. Updated all users.
10502 (record_can_async_p): Renamed to ...
10503 (record_full_can_async_p): ... this. Updated all users.
10504 (record_is_async_p): Renamed to ...
10505 (record_full_is_async_p): ... this. Updated all users.
10506 (record_execution_direction): Renamed to ...
10507 (record_full_execution_direction): ... this. Updated all users.
10508 (record_info): Renamed to ...
10509 (record_full_info): ... this. Updated all users.
10510 (record_delete): Renamed to ...
10511 (record_full_delete): ... this. Updated all users.
10512 (record_is_replaying): Renamed to ...
10513 (record_full_is_replaying): ... this. Updated all users.
10514 (record_goto_entry): Renamed to ...
10515 (record_full_goto_entry): ... this. Updated all users.
10516 (record_goto_begin): Renamed to ...
10517 (record_full_goto_begin): ... this. Updated all users.
10518 (record_goto_end): Renamed to ...
10519 (record_full_goto_end): ... this. Updated all users.
10520 (record_goto): Renamed to ...
10521 (record_full_goto): ... this. Updated all users.
10522 (init_record_ops): Renamed to ...
10523 (init_record_full_ops): ... this. Updated all users.
10524 (record_core_resume): Renamed to ...
10525 (record_full_core_resume): ... this. Updated all users.
10526 (record_core_kill): Renamed to ...
10527 (record_full_core_kill): ... this. Updated all users.
10528 (record_core_fetch_registers): Renamed to ...
10529 (record_full_core_fetch_registers): ... this. Updated all users.
10530 (record_core_prepare_to_store): Renamed to ...
10531 (record_full_core_prepare_to_store): ... this. Updated all users.
10532 (record_core_store_registers): Renamed to ...
10533 (record_full_core_store_registers): ... this. Updated all users.
10534 (record_core_xfer_partial): Renamed to ...
10535 (record_full_core_xfer_partial): ... this. Updated all users.
10536 (record_core_insert_breakpoint): Renamed to ...
10537 (record_full_core_insert_breakpoint): ... this. Updated all users.
10538 (record_core_remove_breakpoint): Renamed to ...
10539 (record_full_core_remove_breakpoint): ... this. Updated all users.
10540 (record_core_has_execution): Renamed to ...
10541 (record_full_core_has_execution): ... this. Updated all users.
10542 (init_record_core_ops): Renamed to ...
10543 (init_record_full_core_ops): ... this. Updated all users.
10544 (cmd_record_restore): Renamed to ...
10545 (cmd_record_full_restore): ... this. Updated all users.
10546 (record_save_cleanups): Renamed to ...
10547 (record_full_save_cleanups): ... this. Updated all users.
10548 (cmd_record_start): Renamed to ...
10549 (cmd_record_full_start): ... this. Updated all users.
10550 (set_record_insn_max_num): Renamed to ...
10551 (set_record_full_insn_max_num): ... this. Updated all users.
10552 (set_record_command): Renamed to ...
10553 (set_record_full_command): ... this. Updated all users.
10554 (show_record_command): Renamed to ...
10555 (show_record_full_command): ... this. Updated all users.
10556 (_initialize_record): Renamed to ...
10557 (_initialize_record_full): ... this. Updated all users.
10558
10559 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10560
10561 * record.h: Split into this and ...
10562 * record-full.h: ... this.
10563 * record.c: Split into this and ...
10564 * record-full.c: ... this.
10565 * target.h (target_ops): Add new fields to_info_record,
10566 to_save_record, to_delete_record, to_record_is_replaying,
10567 to_goto_record_begin, to_goto_record_end, to_goto_record.
10568 (target_info_record): New.
10569 (target_save_record): New.
10570 (target_supports_delete_record): New.
10571 (target_delete_record): New.
10572 (target_record_is_replaying): New.
10573 (target_goto_record_begin): New.
10574 (target_goto_record_end): New.
10575 (target_goto_record): New.
10576 * target.c (target_info_record): New.
10577 (target_save_record): New.
10578 (target_supports_delete_record): New.
10579 (target_delete_record): New.
10580 (target_record_is_replaying): New.
10581 (target_goto_record_begin): New.
10582 (target_goto_record_end): New.
10583 (target_goto_record): New.
10584 * record.h: Declare struct cmd_list_element.
10585 (record_cmdlist): New declaration.
10586 (set_record_cmdlist): New declaration.
10587 (show_record_cmdlist): New declaration.
10588 (info_record_cmdlist): New declaration.
10589 (cmd_record_goto): New declaration.
10590 * record.c: Remove unnecessary includes.
10591 Include inferior.h.
10592 (cmd_record_goto): Remove declaration.
10593 (record_cmdlist): Now extern. Initialize.
10594 (set_record_cmdlist): Now extern. Initialize.
10595 (show_record_cmdlist): Now extern. Initialize.
10596 (info_record_cmdlist): Now extern. Initialize.
10597 (find_record_target): New.
10598 (require_record_target): New.
10599 (cmd_record_start): Update.
10600 (cmd_record_delete): Remove target-specific code.
10601 Call target_delete_record.
10602 (cmd_record_stop): Unpush any record target.
10603 (set_record_insn_max_num): Move to record-full.c
10604 (set_record_command): Add comment.
10605 (show_record_command): Add comment.
10606 (info_record_command): Update comment.
10607 Remove target-specific code.
10608 Call the record target's to_info_record.
10609 (cmd_record_start): New.
10610 (cmd_record_goto): Now extern.
10611 Remove target-specific code.
10612 Call target_goto_begin, target_goto_end, or target_goto.
10613 (_initialize_record): Move record target ops initialization to
10614 record-full.c.
10615 Change "record" command help text.
10616 Move "record restore", "record set", and "record show" commands to
10617 record-full.c.
10618 * Makefile.in (SFILES): Add record-full.c.
10619 (HFILES_NO_SRCDIR): Add record-full.h.
10620 (COMMON_OBS): Add record-full.o.
10621 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10622 * arm-tdep.c: Include record-full.h.
10623 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10624 * i386-tdep.c: Include record-full.h.
10625 * infrun.c: Include record-full.h.
10626 * linux-record.c: Include record-full.h.
10627 * moxie-tdep.c: Include record-full.h.
10628 * record-full.c: Include record-full.h.
10629 Change module comment.
10630 (set_record_full_cmdlist): New.
10631 (show_record_full_cmdlist): New.
10632 (record_full_cmdlist): New.
10633 (record_goto_insn): New declaration.
10634 (record_save): New declaration.
10635 (record_check_insn_num): Change query string.
10636 (record_info): New.
10637 (record_delete): New.
10638 (record_is_replaying): New.
10639 (record_goto_entry): New.
10640 (record_goto_begin): New.
10641 (record_goto_end): New.
10642 (record_goto): New.
10643 (init_record_ops): Update.
10644 (init_record_core_ops): Update.
10645 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10646 (cmd_record_start): New.
10647 (set_record_insn_max_num): Moved from record.c
10648 (set_record_full_command): New.
10649 (show_record_full_command): New.
10650 (_initialize_record_full): New.
10651
10652 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10653
10654 * target.h (add_deprecated_target_alias): New.
10655 * target.c (add_deprecated_target_alias): New.
10656
10657 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10658
10659 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10660 and signal.h.
10661 (linux_supports_btrace): Add kernel and
10662 cpuid check.
10663 (kernel_supports_btrace): New function.
10664 (cpu_supports_btrace): New function.
10665 (intel_supports_btrace): New function.
10666
10667 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10668
10669 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10670 * remote.c: Include btrace.h.
10671 (struct btrace_target_info): New struct.
10672 (remote_supports_btrace): New function.
10673 (send_Qbtrace): New function.
10674 (remote_enable_btrace): New function.
10675 (remote_disable_btrace): New function.
10676 (remote_teardown_btrace): New function.
10677 (remote_read_btrace): New function.
10678 (init_remote_ops): Add btrace ops.
10679 (enum <unnamed>): Add btrace packets.
10680 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10681 (_initialize_remote): Add packet configuration for branch tracing.
10682
10683 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10684
10685 * features/btrace.dtd: New file.
10686 * Makefile.in (XMLFILES): Add btrace.dtd.
10687 * btrace.h (parse_xml_btrace): New declaration.
10688 * btrace.c: Include xml-support.h.
10689 (parse_xml_btrace): New function.
10690 (parse_xml_btrace_block): New function.
10691 (block_attributes): New struct.
10692 (btrace_attributes): New struct.
10693 (btrace_children): New struct.
10694 (btrace_elements): New struct.
10695
10696 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10697
10698 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10699 (amd64_linux_enable_btrace): New.
10700 (amd64_linux_disable_btrace): New.
10701 (amd64_linux_teardown_btrace): New.
10702 (_initialize_amd64_linux_nat): Initialize btrace ops.
10703 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10704 (i386_linux_enable_btrace): New.
10705 (i386_linux_disable_btrace): New.
10706 (i386_linux_teardown_btrace): New.
10707 (_initialize_i386_linux_nat): Initialize btrace ops.
10708 * config/i386/linux.mh: Add linux-btrace.o.
10709 * config/i386/linux64.mh: Add linux-btrace.o.
10710
10711 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10712
10713 * common/linux_btrace.h: New file.
10714 * common/linux_btrace.c: New file.
10715 * Makefile.in (SFILES): Add btrace.c.
10716 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10717 (COMMON_OBS): Add btrace.o.
10718 (linux-btrace.o): New rule.
10719
10720 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10721
10722 * target.h: Include btrace.h.
10723 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10724 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10725 * target.c (target_supports_btrace): New function.
10726 (target_enable_btrace): New function.
10727 (target_disable_btrace): New function.
10728 (target_teardown_btrace): New function.
10729 (target_read_btrace): New function.
10730 * btrace.h: New file.
10731 * btrace.c: New file.
10732 * Makefile.in: Add btrace.c.
10733 * gdbthread.h: Include btrace.h.
10734 (struct thread_info): Add btrace field.
10735 * thread.c: Include btrace.h.
10736 (clear_thread_inferior_resources): Call target_teardown_btrace.
10737 * common/btrace-common.h: New file.
10738
10739 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10740
10741 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10742 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10743 kill_status to outer block.
10744
10745 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10746
10747 Fix entry-values if the callee called a noreturn function.
10748 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10749 get_frame_address_in_block. Add new comment.
10750
10751 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 Fix entry-values in C++ across CUs.
10754 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10755 lookup_minimal_symbol. Add a comment.
10756 * dwarf2read.c
10757 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10758 DW_AT_linkage_name.
10759
10760 2013-03-08 Yao Qi <yao@codesourcery.com>
10761
10762 * tracepoint.c (_initialize_tracepoint): Indent the code.
10763
10764 2013-03-08 Pedro Alves <palves@redhat.com>
10765
10766 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10767 (parse_find_args, find_command): Change type of pattern buffer
10768 locals to 'gdb_byte *'.
10769
10770 2013-03-08 Stan Shebs <stan@codesourcery.com>
10771 Hafiz Abid Qadeer <abidh@codesourcery.com>
10772
10773 * NEWS: Mention set and show trace-buffer-size commands.
10774 Mention new packet.
10775 * target.h (struct target_ops): New method
10776 to_set_trace_buffer_size.
10777 (target_set_trace_buffer_size): New macro.
10778 * target.c (update_current_target): Set up new method.
10779 * tracepoint.c (trace_buffer_size): New global.
10780 (start_tracing): Send it to the target.
10781 (set_trace_buffer_size): New function.
10782 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10783 * remote.c (remote_set_trace_buffer_size): New function.
10784 (_initialize_remote): Use it.
10785 (QTBuffer:size) New remote command.
10786 (PACKET_QTBuffer_size): New enum.
10787 (remote_protocol_features): Add an entry for
10788 PACKET_QTBuffer_size.
10789
10790 2013-03-08 Tom Tromey <tromey@redhat.com>
10791
10792 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10793 variable.
10794
10795 2013-03-07 Pedro Alves <palves@redhat.com>
10796
10797 * target.c (target_read_stralloc, target_fileio_read_alloc):
10798 *Cast pointer to 'gdb_byte *' in target call.
10799
10800 2013-03-07 Pedro Alves <palves@redhat.com>
10801
10802 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10803 call.
10804
10805 2013-03-07 Keith Seitz <keiths@redhat.com>
10806
10807 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10808 (trace_pass_command): Likewise.
10809 * cli/cli-cmds.c: Include cli/cli-utils.h.
10810 (source_command): Use skip-spaces.
10811 (disassemble_command): Likewise.
10812 * findcmd.c: Include cli/cli-utils.h.
10813 (parse_find_args): Use skip_spaces.
10814 * go32-nat.c: Include cli/cli-utils.h.
10815 (go32_sldt): Use skip_spaces.
10816 (go32_sgdt): Likewise.
10817 (go32_sidt): Likewise.
10818 (go32_pde): Likewise.
10819 (go32_pte): Likewise.
10820 (go32_pte_for_address): Likewise.
10821 * infcmd.c: Include cli/cli-utils.h.
10822 (registers_info): Use skip_spaces.
10823 * linux-tdep.c (read_mapping): Use skip_spaces_const.
10824 (linux_info_proc): Likewise.
10825 * linux-thread-db.c: Include cli/cli-utils.h.
10826 (info_auto_load_libthread_db): Use skip_spaces_const.
10827 * m32r-rom.c: Include cli/cli-utils.h.
10828 (m32r_upload_command): Use skip_spaces.
10829 * maint.c: Include cli/cli-utils.h.
10830 (maintenance_translate_address): Use skip_spaces.
10831 * mi/mi-parse.c: Include cli/cli-utils.h.
10832 (mi_parse_argv): Use skip_spaces.
10833 (mi_parse): Likewise.
10834 * minsyms.c: Include cli/cli-utils.h.
10835 (msymbol_hash_iw): Use skip_spaces_const.
10836 * objc-lang.c: Include cli/cli-utils.h.
10837 (parse_selector): Use skip_spaces.
10838 (parse_method): Likewise.
10839 * python/python.c: Include cli/cli-utils.h.
10840 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
10841 (python_command)[HAVE_PYTHON]: Likewise.
10842 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
10843 * remote-m32r-sdi.c: Include cli/cli-utils.h.
10844 (m32r_load): Use skip_spaces.
10845 * serial.c: Include cli/cli-utils.h.
10846 (serial_open): Use skip_spaces_const.
10847 * stack.c: Include cli/cli-utils.h.
10848 (parse_frame_specification_1): Use skip_spaces_const.
10849 * symfile.c: Include cli/cli-utils.h.
10850 (set_ext_lang_command): Use skip_spaces.
10851 * symtab.c: Include cli/cli-utils.h.
10852 (rbreak_command): Use skip_spaces.
10853 * thread.c (thread_name_command): Use skip_spaces.
10854 * tracepoint.c (validate_actionline): Use skip_spaces.
10855 (encode_actions_1): Likewise.
10856 (trace_find_range_command): Likewise.
10857 (trace_find_outside_command): Likewise.
10858 (trace_dump_actions): Likewise.
10859
10860 2013-03-07 Pedro Alves <palves@redhat.com>
10861
10862 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
10863 * expprint.c (print_subexp_standard): Likewise.
10864 * utils.c (host_char_to_target): Likewise.
10865 * valprint.c (generic_emit_char, generic_printstr): Likewise.
10866 * varobj.c (value_get_print_value): Change type of local to char*.
10867 Cast it gdb_byte * in call to language printer.
10868
10869 2013-03-07 Pedro Alves <palves@redhat.com>
10870
10871 * charset.c (struct wchar_iterator) <input>: Change type to 'const
10872 gdb_byte *'.
10873 (make_wchar_iterator): Remove cast to char*.
10874 (wchar_iterate): Change type of local.
10875
10876 2013-03-07 Pedro Alves <palves@redhat.com>
10877
10878 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
10879 for 'regcache->register_status'.
10880
10881 2013-03-07 Pedro Alves <palves@redhat.com>
10882
10883 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
10884 int.
10885
10886 2013-03-07 Pedro Alves <palves@redhat.com>
10887
10888 * stap-probe.c (handle_stap_probe): Add cast to char*.
10889
10890 2013-03-07 Pedro Alves <palves@redhat.com>
10891
10892 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
10893 RECORD_MSGRCV>: Pass a signed variable to
10894 regcache_raw_read_signed, instead of an unsigned one.
10895
10896 2013-03-07 Pedro Alves <palves@redhat.com>
10897
10898 * remote-notif.c (notif_debug): Change type to int.
10899 * remote-notif.h (notif_debug): Likewise.
10900
10901 2013-03-07 Pedro Alves <palves@redhat.com>
10902
10903 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
10904
10905 2013-03-07 Pedro Alves <palves@redhat.com>
10906
10907 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
10908 * remote.h (hex2bin, bin2hex): ... here.
10909 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
10910
10911 2013-03-07 Eli Zaretskii <eliz@gnu.org>
10912
10913 * utils.c (initialize_utils): Improve doc strings of "set/show
10914 width", "set/show height", and "set/show pagination".
10915
10916 2013-03-06 Keith Seitz <keiths@redhat.com>
10917
10918 * ax-gdb.c (gen_printf): Make FORMAT const.
10919 * ax-gdb.h (gen_printf): Likewise.
10920 * ax-general.c (ax_string): Make STR const.
10921 * ax.h (ax_string): Likewise.
10922
10923 2013-03-06 Doug Evans <dje@google.com>
10924
10925 * elfread.c (elf_symfile_read): Move debugging printf to more
10926 logical location.
10927
10928 2013-03-06 Pedro Alves <palves@redhat.com>
10929
10930 * python/py-utils.c (target_string_to_unicode): Delete function.
10931 * python/python-internal.h (target_string_to_unicode): Delete
10932 declaration.
10933
10934 2013-03-06 Pierre Muller <muller@sourceware.org>
10935
10936 * linespec.c (get_current_search_block): ARI fix, use (void)
10937 for empty parameter list.
10938
10939 2013-03-05 Doug Evans <dje@google.com>
10940
10941 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
10942 of old ada_lookup_symbol_list. In !full_search case, don't
10943 search superblocks.
10944 (ada_lookup_symbol_list): Delete arg full_search, all callers
10945 updated. Call ada_lookup_symbol_list_worker.
10946 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
10947 * ada-lang.h (ada_lookup_symbol_list): Update.
10948 * language.h (language_defn): Update comment for
10949 la_iterate_over_symbols.
10950 * linespec.c (iterate_over_file_blocks): New function.
10951 (iterate_over_all_matching_symtabs): Call it.
10952 (lookup_prefix_sym): Ditto.
10953 (get_current_search_block): New function.
10954 (get_search_block): Delete.
10955 (find_label_symbols): Call get_current_search_block.
10956 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
10957 * symtab.c (iterate_over_symbols): Don't search superblocks.
10958
10959 2013-03-05 Yao Qi <yao@codesourcery.com>
10960
10961 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
10962 parameter VAR's type from "unsigned int" to "int".
10963 * command.h (var_zuinteger_unlimited): Update its comments.
10964 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
10965
10966 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10967
10968 * NEWS: Mention new target x86_64-*-cygwin*.
10969
10970 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10971
10972 * configure.host: Add x86_64-*-cygwin* as host.
10973 * configure.tgt: Add x86_64-*-cygwin* as target.
10974 * config/i386/cygwin64.mh: New file.
10975
10976 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10977
10978 * linespec.c (decode_line_2): Fix duplicate request off by two message.
10979
10980 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10981
10982 * linespec.c (struct linespec_canonical_name): New.
10983 (struct linespec_state): Change canonical_names type to it.
10984 (add_sal_to_sals): Change variable canonical_name to canonical. Change
10985 xrealloc element size. Initialize the different CANONICAL fields.
10986 (canonical_to_fullform): New.
10987 (filter_results): Use it. Add variables canonical, fullform and
10988 cleanup.
10989 (struct decode_line_2_item, decode_line_2_compare_items): New.
10990 (decode_line_2): Remove variables iter and item_names, add variables
10991 items and items_count. Modify the code for these new variables.
10992
10993 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
10994
10995 * coff-pe-read.c (read_pe_exported_syms): Don't return without
10996 calling do_cleanup.
10997
10998 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
10999
11000 * tracepoint.c (build_traceframe_info): Add code for byte order.
11001
11002 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11003
11004 * v850-tdep.c: (v850e2_register_name): Revise system register
11005 names to match current V850E2M architecture specifications.
11006 Update register number enum comments too.
11007
11008 2013-03-01 Jiong Wang <jiwang@tilera.com>
11009 Pedro Alves <palves@redhat.com>
11010
11011 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11012 to END_ADDR.
11013 (tilegx_skip_prologue): Limit prologue analysis to section end.
11014
11015 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11016
11017 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11018 use it.
11019
11020 2013-03-01 Pedro Alves <palves@redhat.com>
11021
11022 Use gdb_byte for bytes from the program being debugged.
11023
11024 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11025 Change type of local 'buf' to gdb_byte.
11026 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11027 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11028 * cris-tdep.c (cris_sigcontext_addr)
11029 (cris_sigtramp_frame_unwind_cache): Likewise.
11030 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11031 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11032 Likewise.
11033 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11034 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11035 (hppa32_hpux_search_dummy_call_sequence)
11036 (hppa_hpux_supply_save_state): Likewise.
11037 * hppa-linux-tdep.c (insns_match_pattern)
11038 (hppa_linux_find_global_pointer): Likewise.
11039 * hppa-tdep.c (hppa_in_function_epilogue_p)
11040 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11041 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11042 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11043 (i386fbsd_collect_uthread): Likewise.
11044 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11045 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11046 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11047 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11048 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11049 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11050 (ia64_libunwind_frame_prev_register)
11051 (ia64_libunwind_sigtramp_frame_this_id)
11052 (ia64_find_global_pointer_from_dynamic_section)
11053 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11054 (ia64_unwind_pc): Likewise.
11055 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11056 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11057 (m68hc11_extract_return_value): Likewise.
11058 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11059 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11060 (mep_get_insn, mep_push_dummy_call): Likewise.
11061 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11062 (mips_linux_in_dynsym_stub): Likewise.
11063 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11064 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11065 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11066 to gdb_byte.
11067 * remote-mips.c (mips_set_register): Likewise.
11068 * remote-sim.c (gdbsim_fetch_register): Likewise.
11069 * score-tdep.c (score7_fetch_inst): Change type of parameter
11070 'memblock' and local 'buf' to gdb_byte.
11071 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11072 Change type of local 'buf' to gdb_byte. Adjust.
11073 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11074 to gdb_byte**.
11075 (score7_analyze_prologue): Change type of 'memblock' and
11076 'memblock_ptr' locals to gdb_byte*.
11077 * sh64-tdep.c (sh64_extract_return_value)
11078 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11079 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11080 * solib-pa64.c (pa64_solib_create_inferior_hook)
11081 (pa64_open_symbol_file_object): Remove local 'buf'.
11082 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11083 (som_open_symbol_file_object): Likewise.
11084 * solib-spu.c (spu_current_sos): Likewise.
11085 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11086 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11087 (spu_store_registers): Likewise.
11088 * target.c (debug_print_register): Likewise.
11089 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11090 * xstormy16-tdep.c (xstormy16_store_return_value)
11091 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11092 (xstormy16_find_jmp_table_entry): Likewise.
11093
11094 2013-03-01 Jiong Wang <jiwang@tilera.com>
11095
11096 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11097 (tilegx_gdbarch_init): Install it.
11098
11099 2013-02-28 Tom Tromey <tromey@redhat.com>
11100
11101 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11102 PyLong_Check.
11103
11104 2013-02-28 Doug Evans <dje@google.com>
11105
11106 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11107 * python/python.c (gdbpy_find_pc_line): Ditto.
11108
11109 2013-02-28 Tom Tromey <tromey@redhat.com>
11110
11111 * contrib/excheck.py: New file.
11112 * contrib/exsummary.py: New file.
11113 * contrib/gcc-with-excheck: New file.
11114
11115 2013-02-28 Tom Tromey <tromey@redhat.com>
11116
11117 * python/python.c (gdbpy_print_stack): Call begin_line and
11118 fprintf_filtered inside TRY_CATCH.
11119
11120 2013-02-28 Tom Tromey <tromey@redhat.com>
11121
11122 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11123 inside TRY_CATCH.
11124
11125 2013-02-28 Tom Tromey <tromey@redhat.com>
11126
11127 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11128 frame_object_to_frame_info inside TRY_CATCH.
11129
11130 2013-02-28 Tom Tromey <tromey@redhat.com>
11131
11132 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11133 TRY_CATCH.
11134
11135 2013-02-28 Tom Tromey <tromey@redhat.com>
11136
11137 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11138
11139 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11140
11141 * windows-nat.c: Throughout, fix format strings and casts of
11142 printf-like functions to avoid type related warnings on all
11143 platforms.
11144 (handle_output_debug_string): Fetch context information address
11145 from debug string using string_to_core_addr.
11146
11147 2013-02-27 Jiong Wang <jiwang@tilera.com>
11148
11149 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11150 * regformats/reg-tilegx32.dat: New.
11151
11152 2013-02-27 Jiong Wang <jiwang@tilera.com>
11153
11154 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11155
11156 2013-02-27 Jiong Wang <jiwang@tilera.com>
11157
11158 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11159
11160 2013-02-27 Yao Qi <yao@codesourcery.com>
11161 Pedro Alves <palves@redhat.com>
11162
11163 * tracepoint.c (tfile_trace_find): For tfind
11164 pc/tp/range/outside, look for the next trace frame instead of
11165 always starting from frame 0.
11166
11167 2013-02-26 Anthony Green <green@moxielogic.com>
11168
11169 * configure.tgt: Add support for moxie-*-rtems* target.
11170
11171 2013-02-25 Pedro Alves <palves@redhat.com>
11172
11173 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11174 warning text.
11175
11176 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11177
11178 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11179 if $fp is used as the virtual frame pointer.
11180
11181 2013-02-23 Alan Modra <amodra@gmail.com>
11182
11183 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11184 symbol size.
11185 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11186 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11187 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11188 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11189
11190 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11191
11192 Code cleanup.
11193 * elfread.c (build_id_bfd_get): Make the return type const.
11194 (build_id_verify): Make the check parameter const.
11195 (build_id_to_debug_filename): Make the build_id parameter and variable
11196 data const.
11197 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11198
11199 2013-02-21 Alan Modra <amodra@gmail.com>
11200
11201 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11202
11203 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11204
11205 Add a new method 'disassemble' to gdb.Architecture class.
11206 * python/py-arch.c (archpy_disassmble): Implementation of the
11207 new method gdb.Architecture.disassemble.
11208 (arch_object_methods): Add entry for the new method.
11209
11210 2013-02-20 Jiong Wang <jiwang@tilera.com>
11211
11212 * MAINTAINERS (Write After Approval): Add myself to the list.
11213
11214 2013-02-19 Pedro Alves <palves@redhat.com>
11215
11216 Garbage collect 'struct monitor_ops'::load_routine.
11217
11218 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11219 * monitor.c (monitor_load): No longer call
11220 current_monitor->load_routine.
11221 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11222 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11223 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11224
11225 2013-02-19 Pedro Alves <palves@redhat.com>
11226
11227 PR gdb/15161
11228
11229 Harmonize with generic_load.
11230
11231 * monitor.c: Include "readline/readline.h".
11232 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11233 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11234 long/strtol for the 'load_offset' local. Error out if no argument
11235 is given or if too many arguments are given. Tilde expand the
11236 passed in file name.
11237
11238 2013-02-19 Kai Tietz <ktietz@redhat.com>
11239
11240 PR gdb/15161
11241 * symfile.c (load_section_data): Change type of load_offset
11242 to CORE_ADDR.
11243 (generic_load): User strtoulst instead of strtoul for conversion
11244 of load_offset.
11245
11246 2013-02-19 Jiong Wang <jiwang@tilera.com>
11247
11248 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11249 for return address, "lr" register, saved on stack.
11250 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11251 after we invoke tilegx_analyze_prologue.
11252
11253 2013-02-19 Jiong Wang <jiwang@tilera.com>
11254
11255 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11256
11257 2013-02-19 Jiong Wang <jiwang@tilera.com>
11258
11259 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11260
11261 2013-02-19 Jiong Wang <jiwang@tilera.com>
11262
11263 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11264 (tilegx_write_pc): New function.
11265 (tilegx_cannot_reference_register): Return zero if REGNO
11266 is TILEGX_FAULTNUM_REGNUM.
11267 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11268 (tilegx_register_name): Add handling of "faultnum" register.
11269 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11270 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11271 handling of TILEGX_FAULTNUM_REGNUM.
11272 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11273
11274 2013-02-19 Jiong Wang <jiwang@tilera.com>
11275
11276 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11277 should be aligned to 64bit.
11278
11279 2013-02-19 Kai Tietz <ktietz@redhat.com>
11280
11281 * windows-nat.c (windows_xfer_memory): Fix debug-output
11282 for LLP64.
11283
11284 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11285
11286 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11287 Don't check DSP register number if HAVE_DSP is not set.
11288
11289 2013-02-19 Alan Modra <amodra@gmail.com>
11290
11291 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11292 throughout file instead.
11293 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11294 Don't xmalloc return value.
11295 (build_id_verify): Similarly. Don't xfree.
11296 (build_id_to_debug_filename): Update.
11297 (find_separate_debug_file_by_buildid): Update, don't xfree.
11298
11299 2013-02-18 Tom Tromey <tromey@redhat.com>
11300
11301 PR gdb/15102:
11302 * dwarf2read.c (read_subrange_type): Use result of
11303 'check_typedef'.
11304
11305 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11306
11307 * frame.c: Remove one extra white space after #include
11308 directive.
11309
11310 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11311
11312 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11313
11314 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11315
11316 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11317 and dir commands into an if block.
11318
11319 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11320
11321 * python/py-breakpoint (struct pybp_code): Use int instead of
11322 enum type_code.
11323
11324 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11325 Hafiz Abid Qadeer <abidh@codesourcery.com>
11326
11327 * NEWS: Mention new field "trace-file".
11328 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11329 (tfile_open): Record the trace file's filename in the trace
11330 status.
11331 (tfile_files_info): Mention the name of the trace file.
11332 Check the "filename" field explicitely.
11333 (trace_status_command): Explicitely check "filename" field.
11334 (trace_find_command): Ditto.
11335 (trace_find_pc_command): Ditto.
11336 (trace_find_tracepoint_command): Ditto.
11337 (trace_find_line_command): Ditto.
11338 (trace_find_range_command): Ditto.
11339 (trace_find_outside_command): Ditto.
11340 * tracepoint.h (struct trace_status) <from_file>: Rename it
11341 to "filename" and make it hold the trace file's filename
11342 instead of a boolean.
11343 * remote.c (remote_get_trace_status): Initialize "filename"
11344 field with NULL instead of 0.
11345
11346 2013-02-15 Yao Qi <yao@codesourcery.com>
11347
11348 * remote.c: Fix a typo.
11349
11350 2013-02-14 Pierre Muller <muller@sourceware.org>
11351
11352 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11353
11354 2013-02-14 Pedro Alves <palves@redhat.com>
11355
11356 * utils.c (savestring): Don't #undef it. Move function to
11357 common/common-utils.c.
11358 * common/common-utils.c: Include gdb_string.h.
11359 (savestring): Move here from utils.c.
11360 * common/common-utils.h (savestring): Declare.
11361
11362 2013-02-14 Pedro Alves <palves@redhat.com>
11363
11364 * utils.c (savestring): Rename parameter 'size' to 'len'.
11365
11366 2013-02-14 Pedro Alves <palves@redhat.com>
11367 Yufeng Zhang <yufeng.zhang@arm.com>
11368
11369 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11370 (aarch64_inferior_data, struct aarch64_inferior_data):
11371 Delete.
11372 (struct aarch64_process_info): New.
11373 (aarch64_process_list): New global.
11374 (aarch64_find_process_pid, aarch64_add_process)
11375 (aarch64_process_info_get): New functions.
11376 (aarch64_inferior_data_get): Delete.
11377 (aarch64_process_info_get): New function.
11378 (aarch64_forget_process): New function.
11379 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11380 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11381 aarch64_get_debug_reg_state.
11382 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11383 instead of linux_nat_iterate_watchpoint_lwps.
11384 (aarch64_linux_new_fork): New function.
11385 (aarch64_linux_child_post_startup_inferior): Use
11386 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11387 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11388 (aarch64_linux_remove_hw_breakpoint)
11389 (aarch64_handle_aligned_watchpoint)
11390 (aarch64_handle_unaligned_watchpoint)
11391 (aarch64_linux_insert_watchpoint)
11392 (aarch64_linux_remove_watchpoint)
11393 (aarch64_linux_stopped_data_address): Adjust to pass the current
11394 process id to aarch64_debug_reg_state.
11395 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11396 linux_nat_new_fork hook, and aarch64_forget_process as
11397 linux_nat_forget_process hook; remove the call to
11398 register_inferior_data_with_cleanup.
11399
11400 2013-02-14 Pedro Alves <palves@redhat.com>
11401
11402 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11403 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11404 lval_memory.
11405
11406 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11407 Hafiz Abid Qadeer <abidh@codesourcery.com>
11408
11409 * tracepoint.h (validate_trace_state_variable_name): Declare.
11410 * tracepoint.c (validate_trace_state_variable_name): New.
11411 (trace_variable_command): Parse the trace state variable's name
11412 without using parse_expression. Do several validations.
11413 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11414 trace state variable's name with parse_expression. Validate it.
11415
11416 2013-02-14 Yao Qi <yao@codesourcery.com>
11417
11418 * infcmd.c (breakpoint_proceeded): Remove it.
11419
11420 2013-02-14 Yao Qi <yao@codesourcery.com>
11421
11422 * tracepoint.c (end_actions_pseudocommand): Make it static.
11423 (while_stepping_pseudocommand): Likewise.
11424 * tracepoint.h (end_actions_pseudocommand): Remove the
11425 declaration.
11426 (while_stepping_pseudocommand): Likewise.
11427
11428 2013-02-14 Yao Qi <yao@codesourcery.com>
11429
11430 * cli/cli-decode.c (help_cmd): Remove the declaration of
11431 "cmdlist".
11432 (help_all): Likewise.
11433
11434 2013-02-13 Pedro Alves <palves@redhat.com>
11435
11436 * amd64-linux-nat.c (update_debug_registers_callback):
11437 Update comment.
11438 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11439 iterate_over_lwps.
11440 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11441 i386_debug_reg_state.
11442 (amd64_linux_new_fork): New function.
11443 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11444 linux_nat_new_fork hook, and i386_forget_process as
11445 linux_nat_forget_process hook.
11446 * i386-linux-nat.c (update_debug_registers_callback):
11447 Update comment.
11448 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11449 iterate_over_lwps.
11450 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11451 i386_debug_reg_state.
11452 (i386_linux_new_fork): New function.
11453 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11454 linux_nat_new_fork hook, and i386_forget_process as
11455 linux_nat_forget_process hook.
11456 * i386-nat.c (i386_init_dregs): Delete.
11457 (i386_inferior_data, struct i386_inferior_data):
11458 Delete.
11459 (struct i386_process_info): New.
11460 (i386_process_list): New global.
11461 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11462 New functions.
11463 (i386_inferior_data_get): Delete.
11464 (i386_process_info_get): New function.
11465 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11466 (i386_forget_process): New function.
11467 (i386_cleanup_dregs): Rewrite.
11468 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11469 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11470 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11471 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11472 to i386_debug_reg_state.
11473 (i386_use_watchpoints): Don't register inferior data.
11474 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11475 adjust comment.
11476 (i386_forget_process): Declare.
11477 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11478 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11479 New static globals.
11480 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11481 (add_initial_lwp): New, factored out from ...
11482 (add_lwp): ... this. Don't check the number of lwps before
11483 calling linux_nat_new_thread.
11484 (linux_nat_iterate_watchpoint_lwps): Delete.
11485 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11486 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11487 forks and vforks.
11488 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11489 initial lwp.
11490 (linux_nat_kill, linux_nat_mourn_inferior): Call
11491 linux_nat_forget_process.
11492 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11493 (linux_nat_forget_process): New functions.
11494 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11495 type.
11496 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11497 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11498 types.
11499 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11500 (linux_nat_forget_process): New declarations.
11501
11502 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11503 (amd64fbsd_mourn_inferior): New function.
11504 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11505 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11506
11507 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11508
11509 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11510 Adding _().
11511
11512 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11513
11514 * aarch64-linux-nat.c (debug_reg_change_callback)
11515 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11516 %s and phex().
11517
11518 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11519
11520 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11521 with LONGEST.
11522
11523 2013-02-13 Pedro Alves <palves@redhat.com>
11524 Hafiz Abid Qadeer <abidh@codesourcery.com>
11525
11526 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11527
11528 2013-02-12 Tom Tromey <tromey@redhat.com>
11529
11530 PR symtab/11464:
11531 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11532 NAME return.
11533 (classify_inner_name): Remove 'first_name' argument, add
11534 'context'. Remove unused variable.
11535 (yylex): Explicitly maintain the context type. Exit loop earlier
11536 if NAME result is seen.
11537
11538 2013-02-12 Pedro Alves <palves@redhat.com>
11539
11540 * amd64-darwin-tdep.c: Add (C) after Copyright.
11541 * cli/cli-cmds.h: Ditto.
11542 * cli/cli-decode.c: Ditto.
11543 * cli/cli-decode.h: Ditto.
11544 * cli/cli-dump.c: Ditto.
11545 * cli/cli-dump.h: Ditto.
11546 * cli/cli-interp.c: Ditto.
11547 * cli/cli-logging.c: Ditto.
11548 * cli/cli-script.c: Ditto.
11549 * cli/cli-script.h: Ditto.
11550 * cli/cli-setshow.c: Ditto.
11551 * cli/cli-setshow.h: Ditto.
11552 * cli/cli-utils.c: Ditto.
11553 * cli/cli-utils.h: Ditto.
11554 * config/alpha/nm-osf3.h: Ditto.
11555 * config/djgpp/djconfig.sh: Ditto.
11556 * config/i386/nm-fbsd.h: Ditto.
11557 * config/i386/nm-i386gnu.h: Ditto.
11558 * config/nm-linux.h: Ditto.
11559 * config/nm-nto.h: Ditto.
11560 * config/rs6000/nm-rs6000.h: Ditto.
11561 * config/sparc/nm-sol2.h: Ditto.
11562 * darwin-nat-info.c: Ditto.
11563 * dfp.c: Ditto.
11564 * dfp.h: Ditto.
11565 * gdb-demangle.h: Ditto.
11566 * i386-darwin-nat.c: Ditto.
11567 * i386-darwin-tdep.c: Ditto.
11568 * linux-fork.h: Ditto.
11569 * m32c-tdep.c: Ditto.
11570 * microblaze-linux-tdep.c: Ditto.
11571 * microblaze-rom.c: Ditto.
11572 * microblaze-tdep.c: Ditto.
11573 * microblaze-tdep.h: Ditto.
11574 * mips-linux-tdep.h: Ditto.
11575 * ppc-ravenscar-thread.c: Ditto.
11576 * ppc-ravenscar-thread.h: Ditto.
11577 * prologue-value.c: Ditto.
11578 * prologue-value.h: Ditto.
11579 * ravenscar-thread.c: Ditto.
11580 * ravenscar-thread.h: Ditto.
11581 * sparc-ravenscar-thread.c: Ditto.
11582 * sparc-ravenscar-thread.h: Ditto.
11583 * tilegx-linux-tdep.c: Ditto.
11584 * unwind_stop_reasons.def: Ditto.
11585 * windows-nat.h: Ditto.
11586 * xtensa-linux-tdep.c: Ditto.
11587 * xtensa-xtregs.c: Ditto.
11588 * regformats/regdat.sh: Ditto.
11589 * regformats/regdef.h: Ditto.
11590
11591 2013-02-12 Pedro Alves <palves@redhat.com>
11592
11593 * break-catch-sig.c: Update copyright years.
11594
11595 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11596
11597 Add support for a destructor for ui_out data and use it to
11598 provide a ui_out destructor.
11599 * ui-out.h: Declare the new ui_out destructor.
11600 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11601 * ui-out.c (default_data_destroy): Add a default data destructor
11602 which does nothing.
11603 (default_ui_out_impl): Set the new data_destroy field to
11604 default_data_destroy
11605 (uo_data_destroy): Local function which invokes the data
11606 destructor if present.
11607 (clear_table): Local function which clears the table data of a
11608 ui_out object.
11609 (ui_out_destroy): Public function which frees a ui_out object.
11610 (ui_out_table_end): Use the new clear_table function.
11611 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11612 NULL.
11613 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11614 to NULL.
11615
11616 2013-02-11 Doug Evans <dje@google.com>
11617
11618 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11619 (printf_decfloat): New function. Broken out from ui_printf.
11620 Remove unnecessary code to shift the entire format string down.
11621 (printf_pointer): New function.
11622 (ui_printf): Code to print C strings, wide C strings, decfloats,
11623 and pointers moved to separate functions.
11624
11625 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11626
11627 * valops.c (value_assign): Handling bitfield offset in
11628 `lval_internalvar_component' case.
11629
11630 2013-02-08 Doug Evans <dje@google.com>
11631
11632 * common/format.c (parse_format_string): Fix whitespace.
11633
11634 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11635
11636 * stack.c (return_command): Work around uninitialized variable
11637 warning.
11638
11639 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11640
11641 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11642 number of the registers from 36 to 34.
11643
11644 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11645
11646 * NEWS: Mention new AArch64 native and target support.
11647
11648 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11649
11650 * MAINTAINERS (Write After Approval): Add myself.
11651
11652 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11653 Marcus Shawcroft <marcus.shawcroft@arm.com>
11654 Nigel Stephens <nigel.stephens@arm.com>
11655 Yufeng Zhang <yufeng.zhang@arm.com>
11656
11657 * aarch64-linux-nat.c: New file.
11658 * config/aarch64/linux.mh: New file.
11659 * configure.host: Add AArch64.
11660 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11661
11662 2013-02-07 Doug Evans <dje@google.com>
11663
11664 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11665 disassemble command.
11666
11667 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11668
11669 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11670 set_gdbarch_fetch_tls_load_module_address.
11671
11672 2013-02-06 David S. Miller <davem@davemloft.net>
11673
11674 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11675 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11676 * value.c (struct_return_convention): New function.
11677 (using_struct_return): Implement in terms of struct_return_convention.
11678 * value.h (struct_return_convention): Declare.
11679 * stack.c (return_command): Allow successful overriding of the return
11680 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11681
11682 2013-02-06 Tom Tromey <tromey@redhat.com>
11683
11684 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11685 outside of TRY_CATCH.
11686
11687 2013-02-06 Yao Qi <yao@codesourcery.com>
11688
11689 * mi/mi-interp.c: Include "tracepoint.h".
11690 (mi_tsv_modified): Declare.
11691 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11692 (mi_interpreter_init): Call observer_attach_tsv_modified.
11693 (mi_tsv_modified): New.
11694 (mi_tsv_created, mi_tsv_deleted): Update.
11695 * tracepoint.c (trace_variable_command): Call
11696 observer_notify_tsv_modified if the initial value of tsv is
11697 changed.
11698 (delete_trace_state_variable): Call
11699 observer_notify_tsv_deleted earlier.
11700 (trace_variable_command): Caller update.
11701 (create_tsv_from_upload): Likewise.
11702 * observer.sh: Declare "struct trace_state_variable".
11703
11704 * NEWS: Mention the new MI notification "=tsv-modified".
11705
11706 2013-02-05 Doug Evans <dje@google.com>
11707
11708 * completer.c (location_completer): Fix typo in comment.
11709
11710 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11711
11712 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11713 ADDRESS sorted.
11714
11715 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11716
11717 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11718 Refactor if statement to avoid trailing || operator.
11719
11720 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11721
11722 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11723
11724 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11725
11726 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11727 * configure.host: Add powerpc*-*-freebsd* target.
11728 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11729 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11730 * config/powerpc/fbsd.mh: New file.
11731
11732 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11733 Denys Vlasenko <dvlasenk@redhat.com>
11734 Pedro Alves <palves@redhat.com>
11735
11736 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11737 (struct elf_internal_linux_prpsinfo): Forward declare.
11738 * gdbarch.h, gdbarch.c: Regenerate.
11739 * linux-tdep.c: Include `cli/cli-utils.h'.
11740 (linux_fill_prpsinfo): New function.
11741 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11742 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11743 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11744 depending on gdbarch pointer bitness.
11745 * ppc-linux-tdep.c: Include elf-bfd.h.
11746 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11747 on 32-bit.
11748
11749 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11750 Marcus Shawcroft <marcus.shawcroft@arm.com>
11751 Nigel Stephens <nigel.stephens@arm.com>
11752 Yufeng Zhang <yufeng.zhang@arm.com>
11753
11754 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11755
11756 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11757 Marcus Shawcroft <marcus.shawcroft@arm.com>
11758 Nigel Stephens <nigel.stephens@arm.com>
11759 Yufeng Zhang <yufeng.zhang@arm.com>
11760
11761 * aarch64-newlib-tdep.c: New file.
11762 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11763 aarch64*-*-elf.
11764 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11765 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11766 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11767 * osabi.c (gdb_osabi_names): Add "Newlib".
11768
11769 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11770 Marcus Shawcroft <marcus.shawcroft@arm.com>
11771 Nigel Stephens <nigel.stephens@arm.com>
11772 Yufeng Zhang <yufeng.zhang@arm.com>
11773
11774 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11775 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11776 * aarch64-linux-tdep.c: New file.
11777 * aarch64-linux-tdep.h: New file.
11778 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11779 * configure.tgt: Add aarch64-none-linux-gnu.
11780
11781 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11782 Marcus Shawcroft <marcus.shawcroft@arm.com>
11783 Nigel Stephens <nigel.stephens@arm.com>
11784 Yufeng Zhang <yufeng.zhang@arm.com>
11785
11786 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11787 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11788 (ALLDEPFILES): Add aarch64-tdep.c.
11789 * aarch64-tdep.c: New file.
11790 * aarch64-tdep.h: New file.
11791 * configure.tgt: Add AArch64.
11792 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11793 (aarch64-expedite): New definition.
11794 * features/aarch64-core.xml: New file.
11795 * features/aarch64-fpu.xml: New file.
11796 * features/aarch64-without-fpu.c: New file (generated).
11797 * features/aarch64-without-fpu.xml: New file.
11798 * features/aarch64.c: New file (generated).
11799 * features/aarch64.xml: New file.
11800 * regformats/aarch64-without-fpu.dat: New file (generated).
11801 * regformats/aarch64.dat: New file (generated).
11802
11803 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11804
11805 * contrib/expect-read1.c: New file.
11806 * contrib/expect-read1.sh: New file.
11807
11808 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11809
11810 * dwarf2read.c (file_file_name): New function with code from
11811 file_full_name.
11812 (file_full_name): Move most of the code to file_file_name.
11813 (macro_start_file): Rename variable full_name to file_name and use
11814 file_file_name for it. Add comp_dir parameter to new_macro_table.
11815 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11816 macro_source_file->filename access by macro_source_fullname call.
11817 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11818 caller.
11819 * macrotab.c (struct macro_table): New field comp_dir.
11820 (macro_include): New variables link_fullname and source_fullname.
11821 Replace any macro_source_file->filename access by macro_source_fullname
11822 call.
11823 (macro_lookup_inclusion): Remove the partial filenames checking code.
11824 (check_for_redefinition): New variables source_fullname and
11825 found_key_fullname. Replace any macro_source_file->filename access by
11826 macro_source_fullname call.
11827 (macro_undef): New variables source_fullname and key_fullname. Replace
11828 any macro_source_file->filename access by macro_source_fullname call.
11829 (macro_lookup_definition): New variables retval and source_fullname.
11830 Replace any macro_source_file->filename access by macro_source_fullname
11831 call.
11832 (foreach_macro): New variable key_fullname. Replace any
11833 macro_source_file->filename access by macro_source_fullname call.
11834 (foreach_macro_in_scope): New variable datum_fullname. Replace any
11835 macro_source_file->filename access by macro_source_fullname call.
11836 (new_macro_table): Add parameter comp_dir. Initialize T with it.
11837 (macro_source_fullname): New function.
11838 * macrotab.h (struct macro_source_file): Extent the filename field
11839 comment.
11840 (new_macro_table): New parameter comp_dir, add a comment for it.
11841 (macro_source_fullname): new declaration.
11842
11843 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11844
11845 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
11846 this_real_name to outer block. Use it also for
11847 compare_filenames_for_search.
11848 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
11849 with dw2_get_real_path for file_matcher, considering also
11850 BASENAMES_MAY_DIFFER.
11851 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
11852
11853 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11854
11855 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
11856 to the file_matcher parameter. Pass 0 to it.
11857 (dwarf2_create_include_psymtab): Copy also DIRNAME.
11858 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
11859 NULL psymtab_to_fullname result.
11860 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
11861 an expected filename instead.
11862 (expand_symtabs_matching_via_partial): Add basenames parameter to the
11863 file_matcher parameter. Call also psymtab_to_fullname, after newly
11864 considering BASENAMES_MAY_DIFFER.
11865 * source.c (rewrite_source_path): Remove static.
11866 * source.h (rewrite_source_path): New declaration.
11867 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
11868 the expand_symtabs_matching field. Comment it.
11869 * symtab.c (file_matches): New function comment. Add parameter
11870 basenames, implement it.
11871 (search_symbols_file_matches): Add basenames parameter. Update the
11872 file_matches caller.
11873 (search_symbols): Match FILES also against symtab_to_fullname.
11874 Optimize it for BASENAMES_MAY_DIFFER.
11875
11876 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11877
11878 * source.c (print_source_lines_base): Print for TUI also "fullname".
11879 * tui/tui-data.c (init_content_element): Change tui_locator_element
11880 field to full_name.
11881 * tui/tui-data.h (struct tui_locator_element): Likewise.
11882 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
11883 tui_update_locator_filename calls to tui_update_locator_fullname.
11884 Replace symtab->filename refererence by symtab_to_fullname call.
11885 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
11886 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
11887 field to full_name. Replace symtab->filename refererence by
11888 symtab_to_fullname call.
11889 (tui_show_symtab_source): Rename parameter to fullname. Change
11890 tui_locator_element field to full_name.
11891 * tui/tui-stack.c: Include source.h.
11892 (tui_set_locator_filename): Rename the declaration to ...
11893 (tui_set_locator_fullname): ... here. Rename its parameter to
11894 fullname, updates its comment.
11895 (tui_set_locator_info): Rename its parameter to fullname.
11896 (tui_set_locator_filename): Rename the definition to ...
11897 (tui_set_locator_fullname): ... here. Rename its parameter to
11898 fullname, updates its comment. Change tui_locator_element field to
11899 full_name.
11900 (tui_set_locator_info): Rename its parameter to fullname.
11901 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
11902 (tui_update_locator_filename): Rename to ...
11903 (tui_update_locator_fullname): ... here. Rename callee to
11904 tui_set_locator_fullname.
11905 (tui_show_frame_info): Replace symtab->filename refererence by
11906 symtab_to_fullname call.
11907 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
11908 (tui_update_locator_fullname): ... here.
11909 * tui/tui-winsource.c (tui_display_main): Rename the callee to
11910 tui_update_locator_fullname. Replace symtab->filename refererence by
11911 symtab_to_fullname call.
11912 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
11913 Rename the callee to tui_update_locator_fullname.
11914 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
11915
11916 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11917
11918 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
11919 by symtab_to_filename_for_display calls.
11920 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
11921 (clear_command): New variable sal_fullname, initialize it. Replace
11922 compare_filenames_for_search by filename_cmp with sal_fullname.
11923 (say_where, update_static_tracepoint): Replace symtab->filename
11924 refererences by symtab_to_filename_for_display calls.
11925 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
11926 Likewise.
11927 * dwarf2read.c: Include source.h.
11928 (fixup_go_packaging): Replace symtab->filename refererences by
11929 symtab_to_filename_for_display calls.
11930 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
11931 Replace symtab->filename refererences by symtab_to_filename_for_display
11932 calls.
11933 (create_sals_line_offset, convert_linespec_to_sals): New variable
11934 fullname, initialize it, replace symtab->filename reference by the
11935 variable.
11936 * linux-fork.c: Include source.h.
11937 (info_checkpoints_command): Replace symtab->filename refererences by
11938 symtab_to_filename_for_display calls.
11939 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
11940 by symtab_to_filename_for_display calls.
11941 * mdebugread.c: Include source.h.
11942 (psymtab_to_symtab_1): Replace symtab->filename refererences by
11943 symtab_to_filename_for_display calls.
11944 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11945 (mi_cmd_file_list_exec_source_files): Likewise.
11946 * printcmd.c: Include source.h.
11947 (build_address_symbolic): Replace symtab->filename refererences by
11948 symtab_to_filename_for_display calls.
11949 * psymtab.c (partial_map_symtabs_matching_filename)
11950 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
11951 with psymtab_to_fullname.
11952 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
11953 by symtab_to_filename_for_display calls.
11954 (stpy_get_filename): New variable filename, initialize it, use instead
11955 of symtab->filename refererences.
11956 (salpy_str): Make variable filename const char *. Replace
11957 symtab->filename refererences by symtab_to_filename_for_display calls.
11958 * skip.c: Include source.h and filenames.h.
11959 (skip_file_command): Remove const from the symtab variable. Replace
11960 symtab->filename refererences by symtab_to_fullname call.
11961 (function_name_is_marked_for_skip): New variables searched_for_fullname
11962 and fullname. Use them to search also with symtab's fullname.
11963 * source.c (find_source_lines): Replace symtab->filename refererences
11964 by symtab_to_filename_for_display calls.
11965 (print_source_lines_base): New variable filename, use it instead of
11966 symtab->filename. Replace symtab->filename refererences by
11967 symtab_to_filename_for_display calls.
11968 (line_info, forward_search_command): Replace symtab->filename
11969 refererences by symtab_to_filename_for_display calls.
11970 (reverse_search_command): Replace symtab->filename refererences by
11971 symtab_to_filename_for_display calls. New variable filename for it.
11972 * stack.c (frame_info): Likewise.
11973 * symmisc.c: Include source.h.
11974 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
11975 (maintenance_info_symtabs): Replace symtab->filename refererences by
11976 symtab_to_filename_for_display calls.
11977 * symtab.c (iterate_over_some_symtabs): Call
11978 compare_filenames_for_search also with symtab_to_fullname.
11979 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
11980 symtab->filename refererences by symtab_to_filename_for_display calls.
11981 (find_line_symtab): Replace symtab->filename refererences by
11982 symtab_to_filename_for_display calls.
11983 (file_matches): Replace filename_cmp by compare_filenames_for_search.
11984 (print_symbol_info): Make the last parameter const char *. New
11985 variable s_filename. Use it in the function.
11986 (symtab_symbol_info): Make the last_filename variable const char *.
11987 Replace symtab->filename refererences by symtab_to_filename_for_display
11988 calls.
11989 (rbreak_command): New variable fullname. Use it. Replace
11990 symtab->filename refererence by symtab_to_filename_for_display call.
11991 * tracepoint.c (set_traceframe_context, trace_find_line_command)
11992 (print_one_static_tracepoint_marker): Replace symtab->filename
11993 refererences by symtab_to_filename_for_display calls.
11994 * tui/tui-source.c (tui_set_source_content): New variables filename and
11995 s_filename. Replace symtab->filename refererences by this variable.
11996 Replace other symtab->filename refererences by
11997 symtab_to_filename_for_display calls.
11998
11999 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12000 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 Add a new variable that controls a way in which filenames are
12003 displayed.
12004 * NEWS (set filename-display): New entry.
12005 * source.c (filename_display_basename, filename_display_relative)
12006 (filename_display_absolute, filename_display_kind_names)
12007 (filename_display_string, show_filename_display_string)
12008 (symtab_to_filename_for_display): New.
12009 (_initialize_source): Added initialization of 'filename-display'
12010 variable.
12011 * source.h (symtab_to_filename_for_display): Added declaration.
12012 * stack.c (print_frame): Added new variable and calling of a new
12013 function and condition with this variable. Changed third argument of
12014 calling of a function.
12015
12016 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12017
12018 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12019 Rename field reference filename to fullname.
12020 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12021 fullname. New comment for it.
12022 * tui/tui-source.c (tui_set_source_content): Rename field reference
12023 filename to fullname. Initialize field by symtab_to_fullname now.
12024 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12025 reference filename to fullname. Use symtab_to_fullname during
12026 comparison.
12027
12028 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12029
12030 Code cleanup.
12031 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12032 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12033 filename to fullname. Rename variable this_name to this_fullname.
12034 Lowercase FILENAME_CMP call.
12035 (dw2_find_symbol_file): New comment for the returned string.
12036 (dwarf2_gdb_index_functions): Rename the function to
12037 dw2_expand_symtabs_with_fullname.
12038 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12039 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12040 fullname.
12041 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12042 * symfile.h (struct quick_symbol_functions): Rename field
12043 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12044 parameter filename to fullname. Document returned string meaning for
12045 find_symbol_file.
12046 * symtab.c (find_line_symtab): Rename the called function to
12047 expand_symtabs_with_fullname.
12048
12049 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12050
12051 Code cleanup.
12052 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12053 call of filename_cmp with compare_filenames_for_search.
12054 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12055 is_abs, unify the call of FILENAME_CMP with
12056 compare_filenames_for_search. New gdb_asserts for real_path and name.
12057 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12058 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12059 * symfile.h (struct quick_symbol_functions): Extend the comment for
12060 map_symtabs_matching_filename.
12061 * symtab.c (compare_filenames_for_search): Remove the function comment
12062 relative path requirement. Handle absolute filenames, with a comment.
12063 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12064 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12065 real_path and name. Unify the call of compare_filenames_for_search
12066 with FILENAME_CMP.
12067 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12068
12069 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12070
12071 Code cleanup.
12072 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12073 source_file references by symtab field references. Remove variables
12074 sal and fullname.
12075 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12076 (clear_command, say_where): Replace bp_location field source_file
12077 references by symtab field references.
12078 (bp_location_dtor): Remove the source_file reference.
12079 (update_static_tracepoint): Replace bp_location field source_file
12080 references by symtab field references.
12081 (breakpoint_free_objfile): New function.
12082 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12083 Replace the field source_file by field symtab, extend its comment.
12084 (breakpoint_free_objfile): New declaration.
12085 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12086 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12087 field source_file references by symtab field references.
12088
12089 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12090
12091 Replace xfullpath calls by gdb_realpath calls.
12092 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12093 function comment.
12094 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12095 Remove it from the iterate_over_some_symtabs call.
12096 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12097 Remove it from the dw2_map_expand_apply calls, remove a block handling
12098 it.
12099 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12100 Remove it from the iterate_over_some_symtabs call.
12101 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12102 Remove it from the partial_map_expand_apply calls, remove a block
12103 handling it. Drop gdb_realpath call and cleanups from the real_path
12104 handling.
12105 * source.c (openp): Drop the comment part about xfullpath. Replace
12106 xfullpath calls by gdb_realpath calls.
12107 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12108 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12109 from method map_symtabs_matching_filename and its comment.
12110 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12111 gdb_realpath call.
12112 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12113 remove it also from the function comment, remove a block handling it.
12114 Drop gdb_realpath call and cleanups from the real_path handling.
12115 (iterate_over_symtabs): Drop variable full_path and its use.
12116 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12117 * utils.c (xfullpath): Remove.
12118 * utils.h (xfullpath): Remove.
12119
12120 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12121
12122 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12123 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12124 (ALLDEPFILES): Add ppc64-tdep.c.
12125 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12126 ppc64-tdep.o to gdb_target_obs.
12127 * ppc64-tdep.h: New file.
12128 * ppc64-tdep.c: New file.
12129 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12130 ppc-linux-tdep.c to here.
12131 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12132 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12133 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12134 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12135 from ppc-linux-tdep.c to here.
12136 (ppc64_convert_from_func_ptr_addr): Rename from
12137 ppc64_linux_convert_from_func_ptr_addr to
12138 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12139 here.
12140 * rs6000-tdep.c:
12141 (read_insn): Move from ppc-linux-tdep.c to here.
12142 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12143 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12144 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12145 Removed above functions.
12146 (ppc_linux_init_abi): Adjust.
12147
12148 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12149
12150 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12151
12152 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12153
12154 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12155
12156 2013-02-01 Pedro Alves <palves@redhat.com>
12157
12158 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12159 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12160
12161 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12162
12163 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12164 files with no separate debug info.
12165 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12166 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12167 only for files with no separate debug info.
12168
12169 2013-01-31 Tom Tromey <tromey@redhat.com>
12170
12171 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12172 change type.
12173 (struct jit_program_space_data): Rename from jit_inferior_data.
12174 Update comments.
12175 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12176 Change return type. Attach data to program space.
12177 (jit_program_space_data_cleanup): Rename from
12178 jit_inferior_data_cleanup; change argument type.
12179 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12180 change type.
12181 (jit_register_code): Update.
12182 (jit_update_inferior_cache): Remove.
12183 (jit_breakpoint_deleted): Get jit data from the location's program
12184 space.
12185 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12186 'ps_data', change type.
12187 (jit_inferior_init, jit_breakpoint_re_set_internal)
12188 (jit_event_handler): Update.
12189 (free_objfile_data): Get data from objfile's program space.
12190 (_initialize_jit): Update.
12191
12192 2013-01-31 Tom Tromey <tromey@redhat.com>
12193
12194 PR gdb/13987:
12195 * jit.c (struct jit_inferior_data) <cached_code_address,
12196 jit_breakpoint>: New fields.
12197 (jit_breakpoint_re_set_internal): Fix logging. Only create
12198 breakpoint if cached address has changed.
12199 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12200 functions.
12201 (_initialize_jit): Register breakpoint deleted observer.
12202
12203 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12204
12205 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12206 (save_infcall_suspend_state): Ifdef out unused inf.
12207 (restore_infcall_suspend_state): Ifdef out unused inf.
12208 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12209 (jit_frame_sniffer): Remove unused inf_data.
12210
12211 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12212
12213 * c-exp.y (classify_inner_name): Remove unused type.
12214 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12215 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12216 need_escape.
12217 (c_get_string): Remove unused kind.
12218 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12219
12220 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12221
12222 * charset.c (intermediate_encoding): Remove unused i.
12223 * completer.c (signal_completer): Remove unused i.
12224 * continuations.c (discard_my_continuations_1): Remove unused
12225 continuation_ptr.
12226 * corelow.c (core_close): Remove unuseD name.
12227 (get_core_siginfo): Remove unused pid.
12228 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12229 i, cps.
12230 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12231 (loclist_describe_location): Remove unused first.
12232 * event-top.c (command_line_handler): Remove unused got_eof.
12233 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12234 (resize_section_table): Remove unused old_value.
12235 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12236 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12237 * i386-tdep.c (i386_process_record): Remove unused rex.
12238 * infcmd.c (get_return_value): Remove unused uiout.
12239 * jv-lang.c (type_from_class): Remove unused is_array.
12240 * jv-valprint.c (java_val_print): Remove unused i.
12241 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12242 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12243 * m2-typeprint.c (m2_print_type): Remove unused code.
12244 * macroexp.c (get_character_constant): Remove unused body_start.
12245 (macro_stringify): Remove unused result.
12246 * objc-lang.c (find_methods): Remove unused gdbarch.
12247 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12248 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12249 * stack.c (print_frame_args): Remove unused summary.
12250 * thread.c (thread_apply_command): Remove unused p.
12251 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12252 * valops.c (search_struct_method): Remove unused skip.
12253 * valprint.c (generic_val_print): Remove unused byte_order.
12254 * varobj.c (varobj_update): Remove unused changed.
12255 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12256 (alias_command): Remove unused c.
12257 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12258 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12259 format.
12260 (mi_cmd_data_write_memory): Remove unused word_format.
12261 (mi_cmd_data_write_memory_bytes): Remove unused r.
12262 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12263 p_start, p_end.
12264 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12265 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12266 line_width.
12267
12268 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12269
12270 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12271 * symtab.c (iterate_over_symtabs): Remove unused s.
12272 (find_pc_sect_symtab): Remove unused pspAce.
12273 (find_pc_sect_line): Remove unused alt_symtab.
12274 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12275 (completion_list_add_name): Remove unused newsize.
12276
12277 2013-01-31 Tom Tromey <tromey@redhat.com>
12278
12279 PR c++/14998:
12280 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12281 TYPE_CODE_FUNC.
12282
12283 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12284
12285 * target.c (target_read_string): Remove unused origlen.
12286
12287 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12288
12289 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12290 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12291 * ax-general.c (ax_print): Remove unused is_float.
12292 * blockframe.c (block_innermost_frame): Remove unused start, end.
12293 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12294
12295 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12296
12297 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12298 (svr4_read_so_list): Remove unused lmo.
12299 * solib-target.c (solib_target_relocate_section_addresses): Remove
12300 unused flags.
12301
12302 2013-01-30 Tom Tromey <tromey@redhat.com>
12303
12304 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12305
12306 2013-01-30 Tom Tromey <tromey@redhat.com>
12307
12308 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12309 * utils.c (gnu_debuglink_crc32): Remove.
12310 * utils.h (gnu_debuglink_crc32): Don't declare.
12311
12312 2013-01-30 Tom Tromey <tromey@redhat.com>
12313
12314 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12315 (read_structure_type, read_enumeration_type): Remove cast.
12316
12317 2013-01-30 Tom Tromey <tromey@redhat.com>
12318
12319 * dwarf2read.c (read_namespace_type): Remove cast.
12320 (read_typedef): Likewise.
12321
12322 2013-01-29 Tom Tromey <tromey@redhat.com>
12323
12324 * dwarf2read.c (free_dwo_file): Remove assert.
12325
12326 2013-01-29 Tom Tromey <tromey@redhat.com>
12327
12328 * value.c (deprecated_set_value_modifiable): Remove.
12329 * value.h (deprecated_set_value_modifiable): Remove.
12330
12331 2013-01-28 Doug Evans <dje@google.com>
12332
12333 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12334 to addresses from dwo files.
12335
12336 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12337
12338 * valops.c (find_overload_match): Remove unused argument 'lax'.
12339 * value.h: Remove unused argument 'lax' from the declaration of
12340 find_overload_match.
12341 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12342 to find_overload_match.
12343 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12344 argument to find_overload_match.
12345
12346 2013-01-25 Tom Tromey <tromey@redhat.com>
12347
12348 * dwarf2read.c (processing_has_namespace_info): Remove.
12349 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12350 (process_die, read_func_scope, dwarf2_start_symtab)
12351 (new_symbol_full): Update.
12352
12353 2013-01-25 Tom Tromey <tromey@redhat.com>
12354
12355 * cp-namespace.c (cp_set_block_scope): Remove.
12356 * cp-support.h (cp_set_block_scope): Remove.
12357 * dbxread.c: Include block.h.
12358 (cp_set_block_scope): New function.
12359 (process_one_symbol): Update.
12360 * dwarf2read.c (read_func_scope): Use block_set_scope.
12361
12362 2013-01-25 Pedro Alves <palves@redhat.com>
12363
12364 * remote.c (add_current_inferior_and_thread): Tweak comment.
12365
12366 2013-01-25 Tom Tromey <tromey@redhat.com>
12367
12368 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12369 (cp_add_using_directive): Add 'copy_names' argument.
12370 * cp-support.h (cp_add_using_directive): Update.
12371 (struct using_direct) <import_src, import_dest, alias,
12372 declaration>: Now const.
12373 * dwarf2read.c (read_import_statement): Use obconcat.
12374 Don't copy names passed to cp_add_using_directive.
12375
12376 2013-01-25 Tom Tromey <tromey@redhat.com>
12377
12378 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12379
12380 2013-01-25 Pedro Alves <palves@redhat.com>
12381
12382 * remote.c (stop_reply_extract_thread): New.
12383 (add_current_inferior_and_thread): New parameter 'wait_status'.
12384 Handle it.
12385 (remote_start_remote): Pass wait status to
12386 add_current_inferior_and_thread.
12387 (extended_remote_run): Update comment.
12388 (extended_remote_create_inferior_1): Pass wait status to
12389 add_current_inferior_and_thread.
12390
12391 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12392 Ulrich Weigand <uweigand@de.ibm.com>
12393
12394 * valarith.c (value_vector_widen): New function for replicating a
12395 scalar into a vector.
12396 (value_binop): Use value_vector_widen to widen scalar to vector
12397 rather than casting, this better matches gcc C behaviour.
12398 * valops.c (value_casst): Update logic for casting between vector
12399 types, and for casting from scalar to vector, try to match gcc C
12400 behaviour.
12401 * value.h (value_vector_widen): Declare.
12402 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12403 function, handle special case for casting scalar to vector.
12404 (opencl_relop): Use opencl_value_cast.
12405 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12406 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12407 in order to use opencl_value_cast.
12408
12409 2013-01-25 Yao Qi <yao@codesourcery.com>
12410
12411 * event-loop.c: Include "queue.h".
12412 (gdb_event_p): New typedef.
12413 (DECLARE_QUEUE_P): Use.
12414 (DEFINE_QUEUE_P): Use.
12415 (async_queue_event): Remove.
12416 (gdb_event_xfree): New.
12417 (initialize_event_loop): New.
12418 (process_event): Use QUEUE macros.
12419 (event_queue): Remove.
12420 (gdb_wait_for_event): Caller update.
12421 (check_async_event_handlers): Likewise.
12422 (poll_timers): Likewise.
12423 * event-loop.h (initialize_event_loop): Declare.
12424 * event-loop.c (gdb_event_xfree): New.
12425 * top.c (gdb_init): Call initialize_event_loop.
12426
12427 2013-01-25 Yao Qi <yao@codesourcery.com>
12428
12429 * event-loop.c (async_queue_event): Remove one parameter
12430 'position'. Remove code handling 'position' == TAIL.
12431 (gdb_wait_for_event): Caller update.
12432 (check_async_event_handlers): Caller update.
12433 (poll_timers): Caller update.
12434 * event-loop.h (enum queue_position): Remove.
12435
12436 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12437
12438 * MAINTAINERS: Update my email.
12439
12440 2013-01-25 Yao Qi <yao@codesourcery.com>
12441
12442 * main.c (print_gdb_help): Remove "--epoch" from the help
12443 message.
12444
12445 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12446
12447 * symtab.c (skip_prologue_using_sal): Consider a file
12448 change the same as an increased line number
12449
12450 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12451
12452 * MAINTAINERS (Write After Approval): Add myself to the list.
12453
12454 2013-01-24 Tom Tromey <tromey@redhat.com>
12455
12456 * ada-lang.h (ada_decode_symbol): Make return type const.
12457 * ada-lang.c (ada_decode_symbol): Likewise.
12458
12459 2013-01-23 Doug Evans <dje@google.com>
12460
12461 * linespec.c (find_linespec_symbols): Make static.
12462
12463 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12464
12465 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12466 type on float conversion for complex type.
12467
12468 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12469
12470 Add a new class gdb.Architecture which exposes GDB's
12471 internal representation of architecture via GDB Python API.
12472 * Makefile.in: Add entries corresponding to the new file
12473 python/py-arch.c.
12474 * NEWS (Python Scripting): Add entries for the new class
12475 gdb.Architecture and the new method gdb.Frame.architecture.
12476 * python/py-arch.c: Implement gdb.Architecture class.
12477 * python/py-frame.c (frapy_arch): Implement the method
12478 gdb.Frame.architecture().
12479 (frame_object_methods): Add 'architecture' to the method table.
12480 * python/python-internal.h: Add declarations of new utility
12481 functions.
12482 * python/python.c (_initialize_python): Initialize
12483 gdb.Architecture class.
12484
12485 2013-01-23 Doug Evans <dje@google.com>
12486
12487 Work around binutils/15021.
12488 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12489 type_unit_group out of union s. All uses updated.
12490 (read_index_from_section): Watch for index version 8.
12491 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12492 an imported symtab.
12493 (write_psymtabs_to_index): Increment version number to 8.
12494
12495 2013-01-22 Pedro Alves <palves@redhat.com>
12496
12497 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12498 user-visible.
12499
12500 2013-01-22 Pedro Alves <palves@redhat.com>
12501
12502 * annotate.c (annotate_breakpoints_changed): Rename to ...
12503 (annotate_breakpoints_invalid): ... this. Make static.
12504 (breakpoint_changed): Adjust.
12505 (_initialize_annotate): Always install the observers. Install a
12506 "breakpoint_created" observer.
12507 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12508 * breakpoint.c (set_breakpoint_condition)
12509 (breakpoint_set_commands, do_map_commands_command)
12510 (init_raw_breakpoint, clear_command, set_ignore_count)
12511 (enable_breakpoint_disp): No longer call
12512 annotate_breakpoints_changed.
12513
12514 2013-01-22 Pedro Alves <palves@redhat.com>
12515
12516 * annotate.c: Include "inferior.h".
12517 (frames_invalid_emitted)
12518 (breakpoints_invalid_emitted): New globals.
12519 (async_background_execution_p): New function.
12520 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12521 emitting the annotation if it has already been emitted.
12522 (annotate_display_prompt): New function.
12523 * annotate.h (annotate_display_prompt): New declaration.
12524 * event-top.c: Include annotate.h.
12525 (display_gdb_prompt): Call annotate_display_prompt.
12526
12527 2013-01-22 Pedro Alves <palves@redhat.com>
12528
12529 * annotate.c (ignore_count_changed): Delete.
12530 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12531 (annotate_ignore_count_change): Delete.
12532 (annotate_stopped): Don't emit a delayed breakpoints-changed
12533 annotation.
12534 * annotate.h (annotate_ignore_count_change): Delete.
12535 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12536 annotate_ignore_count_change.
12537
12538 2013-01-22 Tom Tromey <tromey@redhat.com>
12539
12540 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12541 require_rvalue for a register location.
12542
12543 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12544
12545 * breakpoint.c (print_one_breakpoint_location): Add MI
12546 field 'thread-groups' when printing a breakpoint.
12547 (output_thread_groups): New function.
12548
12549 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12550
12551 * python/lib/gdb/commands/explore.py
12552 (CompoundExplorer.explore_expr): Correct the name of a method
12553 being invoked.
12554 (ExploreTypeCommand.invoke): Add a missing 'return'.
12555
12556 2013-01-21 Tom Tromey <tromey@redhat.com>
12557
12558 * gdb_obstack.h (obconcat): Move declaration here, from...
12559 * symfile.h (obconcat): ... here.
12560 * gdb_obstack.c: New file.
12561 (obconcat): Move from...
12562 * symfile.c (obconcat): ... here.
12563 * Makefile.in (SFILES): Add gdb_obstack.c.
12564 (COMMON_OBS): Add gdb_obstack.o.
12565
12566 2013-01-21 Tom Tromey <tromey@redhat.com>
12567
12568 * symfile.h (obsavestring): Don't declare.
12569 * symfile.c (obsavestring): Remove.
12570 * ada-exp.y: Use obstack_copy0, not obsavestring.
12571 * ada-lang.c: Use obstack_copy0, not obsavestring.
12572 * coffread.c: Use obstack_copy0, not obsavestring.
12573 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12574 * dbxread.c: Use obstack_copy0, not obsavestring.
12575 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12576 * jit.c: Use obstack_copy0, not obsavestring.
12577 * mdebugread.c: Use obstack_copy0, not obsavestring.
12578 * psymtab.c: Use obstack_copy0, not obsavestring.
12579 * stabsread.c: Use obstack_copy0, not obsavestring.
12580 * xcoffread.c: Use obstack_copy0, not obsavestring.
12581
12582 2013-01-21 Tom Tromey <tromey@redhat.com>
12583
12584 * dwarf2read.c (fixup_go_packaging): Save package name
12585 on objfile obstack.
12586 * gdbtypes.c (init_type): Don't copy name.
12587
12588 2013-01-21 Tom Tromey <tromey@redhat.com>
12589
12590 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12591 const.
12592 (struct attribute) <u.str>: Now const.
12593 (struct fnfieldlist) <name>: Now const.
12594 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12595 (partial_die_parent_scope): Make return type const.
12596 (partial_die_full_name, add_partial_symbol): Update.
12597 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12598 'name' const.
12599 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12600 (read_file_scope, read_func_scope, dwarf2_add_field)
12601 (dwarf2_add_member_fn, read_structure_type)
12602 (process_enumeration_scope, read_array_type, read_module_type)
12603 (read_base_type, read_subrange_type): Update.
12604 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12605 (new_symbol_full, guess_full_die_structure_name): Update.
12606 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12607 (dwarf2_name): Return const type.
12608 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12609 const.
12610
12611 2013-01-21 Tom Tromey <tromey@redhat.com>
12612
12613 * gdbtypes.c (init_type): Make 'name' const.
12614 * gdbtypes.h (init_type): Update.
12615
12616 2013-01-21 Tom Tromey <tromey@redhat.com>
12617
12618 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12619 (start_symtab): Make 'name' and 'dirname' const. Use
12620 set_last_source_file.
12621 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12622 (last_source_file): Define. Now static.
12623 (set_last_source_file, get_last_source_file): New functions.
12624 * buildsym.h (last_source_file): Don't declare.
12625 (start_symtab): Update.
12626 (set_last_source_file, get_last_source_file): Declare.
12627 * coffread.c (complete_symtab): Use set_last_source_file.
12628 (coff_end_symtab): Likewise.
12629 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12630 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12631 set_last_source_file.
12632 (process_one_symbol): Use get_last_source_file.
12633 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12634 (psymtab_to_symtab_1): Use get_last_source_file.
12635 * xcoffread.c (process_linenos): Use get_last_source_file.
12636 (complete_symtab): Use set_last_source_file.
12637 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12638 (scan_xcoff_symtab): Use set_last_source_file.
12639
12640 2013-01-21 Tom Tromey <tromey@redhat.com>
12641
12642 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12643 (symbol_set_names): Remove casts. Handle field const-ness.
12644
12645 2013-01-21 Tom Tromey <tromey@redhat.com>
12646
12647 * dwarf2read.c (new_symbol_full): Remove cast.
12648 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12649 * symtab.h (symbol_set_demangled_name): Update.
12650
12651 2013-01-21 Tom Tromey <tromey@redhat.com>
12652
12653 * main.c (captured_main): Call bfd_init.
12654
12655 2013-01-21 Tom Tromey <tromey@redhat.com>
12656
12657 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12658 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12659 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12660 * NEWS: Update.
12661
12662 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12663
12664 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12665
12666 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12667
12668 Fix gdb.fortran/common-block.exp crash in PIE mode.
12669 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12670 LOC_COMMON_BLOCK.
12671 * f-valprint.c (info_common_command_for_block): Expect
12672 LOC_COMMON_BLOCK in gdb_assert.
12673 * symtab.h (struct general_symbol_info): Update comment for the
12674 common_block member.
12675 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12676 (enum address_class): New member LOC_COMMON_BLOCK.
12677
12678 2013-01-18 David Blaikie <dblaikie@gmail.com>
12679
12680 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12681
12682 2013-01-18 Tom Tromey <tromey@redhat.com>
12683
12684 PR c++/14999:
12685 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12686 Call require_rvalue.
12687
12688 2013-01-18 Yao Qi <yao@codesourcery.com>
12689
12690 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12691 (dbx_read_symtab): New declaration.
12692 (dbx_psymtab_to_symtab): Delete.
12693 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12694 Rename parameter PST to SELF. Exchanged two parameters.
12695 (start_psymtab): Caller update.
12696 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12697 (dwarf2_read_symtab): New declaration.
12698 (dwarf2_psymtab_to_symtab): Delete.
12699 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12700 Rename parameter PST to SELF. Exchanged two parameters.
12701 (create_partial_symtab): Caller update.
12702 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12703 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12704 Rename parameter PST to SELF. Exchanged two parameters.
12705 (parse_partial_symbols, new_psymtab): Caller update.
12706 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12707 two parameters.
12708 * psymtab.c (psymtab_to_symtab): Caller update.
12709 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12710 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12711 Rename parameter PST to SELF. Exchanged two parameters.
12712 (xcoff_start_psymtab): Caller update.
12713
12714 2013-01-18 Yao Qi <yao@codesourcery.com>
12715
12716 * infrun.c (proceed): Rename local variable 'oneproc' to
12717 'force_step'.
12718
12719 2013-01-17 Doug Evans <dje@google.com>
12720
12721 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12722 (dw2_build_type_unit_groups): Delete. All uses updated.
12723
12724 * symtab.h (struct symbol_search): Add comment.
12725
12726 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12727
12728 * symtab.c (compare_filenames_for_search): New comment for
12729 HAS_DRIVE_SPEC.
12730
12731 2013-01-17 Tom Tromey <tromey@redhat.com>
12732
12733 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12734
12735 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12736
12737 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12738 initialize it by existing make_cleanup. Call new do_cleanups.
12739
12740 2013-01-17 Tom Tromey <tromey@redhat.com>
12741
12742 * cp-abi.c (cp_abi_completer): New function.
12743 (_initialize_cp_abi): Set completer for "set cp-abi".
12744
12745 2013-01-17 Tom Tromey <tromey@redhat.com>
12746
12747 * mem-break.c: Remove obsolete comment.
12748 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12749
12750 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12751
12752 * jit.c (jit_reader_load_command): Interpret the jit reader name
12753 as an absolute path if it begins with a forward slash.
12754
12755 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12756
12757 PR gdb/14550
12758
12759 * jit.c (finalize_symtab): Ensure that only the global block has a
12760 NULL superblock.
12761
12762 2013-01-17 Pedro Alves <palves@redhat.com>
12763
12764 * acinclude.m4: Include ../config/plugins.m4,
12765 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12766 * Makefile.in (aclocal_m4_deps): Update.
12767 * aclocal.m4: Renegerate.
12768
12769 2013-01-16 Doug Evans <dje@google.com>
12770
12771 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12772
12773 2013-01-16 Pedro Alves <palves@redhat.com>
12774 Tom Tromey <tromey@redhat.com>
12775
12776 PR cli/7221:
12777 * NEWS: Add "catch signal".
12778 * breakpoint.c (base_breakpoint_ops): No longer static.
12779 (bpstat_explains_signal): New function.
12780 (init_catchpoint): No longer static.
12781 (base_breakpoint_explains_signal): New function.
12782 (base_breakpoint_ops): Initialize new field.
12783 * breakpoint.h (enum bpstat_signal_value): New.
12784 (struct breakpoint_ops) <explains_signal>: New field.
12785 (bpstat_explains_signal): Remove macro, declare as function.
12786 (base_breakpoint_ops, init_catchpoint): Declare.
12787 * break-catch-sig.c: New file.
12788 * inferior.h (signal_catch_update): Declare.
12789 * infrun.c (signal_catch): New global.
12790 (handle_syscall_event): Update for change to
12791 bpstat_explains_signal.
12792 (handle_inferior_event): Likewise. Always handle random signals
12793 via bpstats.
12794 (signal_cache_update): Check signal_catch.
12795 (signal_catch_update): New function.
12796 (_initialize_infrun): Initialize signal_catch.
12797 * Makefile.in (SFILES): Add break-catch-sig.c.
12798 (COMMON_OBS): Add break-catch-sig.o.
12799
12800 2013-01-16 Tom Tromey <tromey@redhat.com>
12801
12802 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12803 (print_one_catch_solib, print_one_catch_syscall)
12804 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12805 "catch-type".
12806
12807 2013-01-16 Yao Qi <yao@codesourcery.com>
12808
12809 * printcmd.c (current_display_number): Make it static.
12810
12811 2013-01-16 Yao Qi <yao@codesourcery.com>
12812
12813 * infcmd.c (step_once): Don't check '!single_inst' as it was
12814 checked before.
12815
12816 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12817
12818 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12819
12820 2013-01-14 Tom Tromey <tromey@redhat.com>
12821
12822 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
12823 set command.
12824 * command.h (add_setshow_string_noescape_cmd): Update.
12825 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
12826 (complete_set_gnutarget): New function.
12827 (_initialize_core): Set the "set gnutarget" completer.
12828
12829 2013-01-14 Tom Tromey <tromey@redhat.com>
12830
12831 PR symtab/14442:
12832 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
12833 (c_type_print_modifier): Likewise.
12834 * dwarf2read.c (read_tag_restrict_type): New function.
12835 (read_type_die_1): Handle DW_TAG_restrict_type.
12836 * gdbtypes.c (make_restrict_type): New function.
12837 (recursive_dump_type): Handle TYPE_RESTRICT.
12838 * gdbtypes.h (enum type_flag_values): Renumber.
12839 (enum type_instance_flag_value): Add
12840 TYPE_INSTANCE_FLAG_RESTRICT.
12841 (TYPE_RESTRICT): New macro.
12842 (make_restrict_type): Declare.
12843
12844 2013-01-14 Tom Tromey <tromey@redhat.com>
12845
12846 PR symtab/14931:
12847 * psymtab.c (struct psymtab_state): New.
12848 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
12849 functions.
12850 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
12851 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
12852
12853 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
12854 Pedro Alves <palves@redhat.com>
12855
12856 PR remote/14786
12857
12858 * remote.c (remote_threads_info): Make a copy of the reply from
12859 qfThreadInfo and use that instead of rs->buf.
12860
12861 2013-01-14 Yao Qi <yao@codesourcery.com>
12862
12863 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
12864 (dbx_psymtab_to_symtab): Likewise.
12865 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
12866 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
12867 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
12868
12869 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12870
12871 * parse.c (parse_exp_in_context): New variable inner_chain. Call
12872 make_cleanup_restore_current_language. Call set_language. Move
12873 OLD_CHAIN and INNER_CHAIN cleanups.
12874 * utils.c (do_restore_current_language)
12875 (make_cleanup_restore_current_language): New functions.
12876 * utils.h (make_cleanup_restore_current_language): New declaration.
12877
12878 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12879
12880 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
12881 non-existing files.
12882
12883 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
12884 non-existing files if FILENAME is already absolute.
12885
12886 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12887
12888 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
12889 fputs_filtered. Append trailing newline.
12890
12891 2013-01-11 Yao Qi <yao@codesourcery.com>
12892 Stan Shebs <stan@codesourcery.com>
12893
12894 * psymtab.c (init_psymbol_list): Clarify the comment.
12895
12896 2013-01-11 Yao Qi <yao@codesourcery.com>
12897
12898 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
12899 (update_dprintf_command_list): Assert that 'printf_line' is
12900 non-null. Remove condition check.
12901
12902 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12903
12904 Code cleanup.
12905 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
12906 type const char *.
12907 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
12908 const char *.
12909 * tui/tui-source.h (tui_source_is_displayed): Likewise.
12910
12911 2013-01-09 Anthony Green <green@moxielogic.com>
12912
12913 * cp-abi.c (cplus_print_vtable): Don't return value from void
12914 function.
12915 * ada-lang.c (re_set_catch_assert): Ditto.
12916
12917 2013-01-09 Doug Evans <dje@google.com>
12918
12919 * symfile.h (quick_symbol_functions): Delete member
12920 pre_expand_symtabs_matching. All uses removed.
12921 * dwarf2read.c (dw2_lookup_symbol): Implement.
12922 (dw2_do_expand_symtabs_matching): Delete.
12923 (dw2_pre_expand_symtabs_matching): Delete.
12924 (struct dw2_symtab_iterator): New type.
12925 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
12926 (dw2_expand_symtabs_for_function): Rewrite.
12927 (dwarf2_gdb_index_functions): Update.
12928 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
12929 (psym_functions): Update.
12930
12931 2013-01-09 Tom Tromey <tromey@redhat.com>
12932
12933 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
12934 * configure: Rebuild.
12935 * configure.ac: Add somread.o to the build if BFD has SOM
12936 support.
12937 * somread.c: Include som/aout.h, not syms.h.
12938 (som_symtab_read): Use som_external_symbol_dictionary_record.
12939 Unpack records manually.
12940 (_initialize_somread): Declare.
12941
12942 2012-01-08 Mike Frysinger <vapier@gentoo.org>
12943
12944 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
12945 Cast return_address to 64bits.
12946
12947 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
12948
12949 * printcmd.c: Remove define of function output_command.
12950 * tracepoint.c: Remove extern of function output_command.
12951 * valprint.h: (output_command): New extern.
12952
12953 2013-01-07 Tom Tromey <tromey@redhat.com>
12954
12955 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
12956 Remove.
12957 (objc_language_defn): Use c_printchar, c_printstr,
12958 c_emit_char.
12959
12960 2013-01-07 Tom Tromey <tromey@redhat.com>
12961
12962 PR cli/7719:
12963 * NEWS: Update.
12964 * ada-valprint.c (printstr, print_field_values): Remove
12965 "inspect_it" code.
12966 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
12967 code.
12968 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
12969 code.
12970 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
12971 * main.c (captured_main): Remove "epoch" argument.
12972 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
12973 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
12974 * p-valprint.c (pascal_object_print_value_fields): Remove
12975 "inspect_it" code.
12976 * printcmd.c (print_command_1): Remove 'inspect' argument.
12977 (print_command, call_command): Update.
12978 (inspect_command): Remove.
12979 (_initialize_printcmd): Make "inspect" an alias for "print".
12980 * top.c (epoch_interface): Remove.
12981 * top.h (epoch_interface): Remove.
12982 * valprint.c (user_print_options): Update.
12983 (print_converted_chars_to_obstack): Remove "inspect_it" code.
12984 * valprint.h (struct value_print_options) <inspect_it>: Remove
12985 field.
12986
12987 2013-01-04 Tom Tromey <tromey@redhat.com>
12988
12989 * valprint.h (read_string): Add 'extern'.
12990
12991 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12992
12993 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
12994 used to decide whether to define darwin_read_dyld_info or not.
12995
12996 2013-01-03 Pierre Muller <muller@sourceware.org>
12997
12998 * main.c (relocate_gdb_directory): Avoid calling stat function
12999 if DIR is empty.
13000
13001 2013-01-03 Yao Qi <yao@codesourcery.com>
13002
13003 * psymtab.c (fixup_psymbol_section): Update declaration.
13004 (fixup_psymbol_section): Remove code returning value.
13005
13006 2013-01-03 Yao Qi <yao@codesourcery.com>
13007
13008 * symtab.h: Remove some out of date comments.
13009 (enum exception_event_kind): Move it ...
13010 * breakpoint.c: ... here.
13011
13012 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13013
13014 PR gdb/14405
13015 * darwin-nat.c (darwin_read_dyld_info): Only build if
13016 TASK_DYLD_INFO_COUNT is defined.
13017 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13018 TASK_DYLD_INFO_COUNT is defined.
13019
13020 2013-01-02 Tom Tromey <tromey@redhat.com>
13021
13022 * symfile.h (struct ecoff_debug_hack): Remove.
13023 * objfiles.c: Don't include mdebugread.h.
13024
13025 2013-01-02 Tom Tromey <tromey@redhat.com>
13026
13027 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13028 * configure.ac: Check for Mach-O support in BFD. Update
13029 CONFIG_OBS.
13030 * configure: Rebuild.
13031
13032 2013-01-02 Tom Tromey <tromey@redhat.com>
13033
13034 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13035 * configure.ac: Use GDB_AC_CHECK_BFD.
13036 * configure: Rebuild.
13037
13038 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13039
13040 * MAINTAINERS: Update my email.
13041
13042 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13043
13044 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13045
13046 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13047
13048 * rs6000-nat.c (bss_data_overlap): New function.
13049 (vmap_symtab): Use it to adjust the .bss section's offset.
13050
13051 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13052
13053 Update year range in copyright notice of all files.
13054
13055 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13056
13057 * top.c (print_gdb_version): Update copyright year.
13058
13059 For older changes see ChangeLog-2012.
13060 \f
13061 Local Variables:
13062 mode: change-log
13063 left-margin: 8
13064 fill-column: 74
13065 version-control: never
13066 coding: utf-8
13067 End:
This page took 0.586099 seconds and 4 git commands to generate.