71cf9c6d86873ac1826a56a561bf73cdecc04cfe
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-17 Pedro Alves <palves@redhat.com>
2
3 * frame.h (enum frame_id_stack_status): New enum.
4 (struct frame_id) <stack_addr>: Adjust comment.
5 <stack_addr_p>: Delete field, replaced with ...
6 <stack_status>: ... this new field.
7 (frame_id_build_unavailable_stack): Declare.
8 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
9 (frame_id_build_special): Adjust.
10 (frame_id_build_unavailable_stack): New function.
11 (frame_id_build, frame_id_build_wild): Adjust.
12 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
13 account frames with unavailable stack.
14
15 * amd64-tdep.c (amd64_frame_this_id)
16 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
17 frame_id_build_unavailable_stack.
18 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
19 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
20 (i386_sigtramp_frame_this_id): Likewise.
21
22 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
23
24 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
25 unavailable, use correct bit length.
26 * value.c (struct value): Extend comment on unavailable to
27 indicate that it is bit based.
28 (value_bits_available): New function.
29 (value_bytes_available): Call value_bits_available.
30 (value_entirely_available): Check against the bit length, not byte
31 length.
32 (mark_value_bits_unavailable): New function.
33 (mark_value_bytes_unavailable): Move contents to
34 mark_value_bits_unavailable, call to same.
35 (memcmp_with_bit_offsets): New function.
36 (value_available_contents_bits_eq): New function, takes the
37 functionality from value_available_contents_eq but uses
38 memcmp_with_bit_offsets now, and is bit not byte based.
39 (value_available_contents_eq): Move implementation into
40 value_available_contents_bits_eq, call to same.
41 (value_contents_copy_raw): Work on bits, not bytes.
42 (unpack_value_bits_as_long_1): Check availability in bits, not
43 bytes.
44 * value.h (value_bits_available): Declare new function.
45 (mark_value_bits_unavailable): Declare new function.
46
47 2013-12-16 Pierre Muller <muller@sourceware.org>
48
49 Fix compilation error for cygwin native build.
50 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
51 Call wcstombs.
52
53 2013-12-16 Pedro Alves <palves@redhat.com>
54
55 PR 16329
56 * sol-thread.c (check_for_thread_db): If the target can't run or
57 isn't a core, return without pushing.
58
59 2013-12-15 Joel Brobecker <brobecker@adacore.com>
60
61 Revert the following commit:
62 * solib.c (solib_map_sections): Remove code overwriting
63 SO->SO_NAME with the bfd's filename.
64
65 Make the following changes required after the revert above:
66 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
67 returned bfd to a copy of the synthetic pathname.
68 * solib-darwin.c (darwin_bfd_open): Set the filename of the
69 returned bfd to a copy of PATHNAME.
70
71 2013-12-13 Joel Brobecker <brobecker@adacore.com>
72
73 * ada-lang.c (ada_array_bound_from_type): Move the declaration
74 and assignment of variable "elt_type" inside the else block
75 where it is used. Add two missing check_typedef calls.
76 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
77 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
78
79 2013-12-13 Joel Brobecker <brobecker@adacore.com>
80
81 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
82 between 'struct type *' and 'arr_type'.
83
84 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
85
86 PR python/16113
87 * NEWS (Python Scripting): Add entry for the new feature and the
88 new attribute of gdb.Field objects.
89 * python/py-type.c (gdbpy_is_field): New function
90 (convert_field): Add 'parent_type' attribute to gdb.Field
91 objects.
92 * python/py-value.c (valpy_getitem): Allow subscript value to be
93 a gdb.Field object.
94 (value_has_field): New function
95 (get_field_flag): New function
96 * python/python-internal.h (gdbpy_is_field): Add declaration.
97
98 2013-12-12 Pedro Alves <palves@redhat.com>
99
100 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
101 const, and remove casts.
102
103 2013-12-12 Pedro Alves <palves@redhat.com>
104
105 * cli/cli-cmds.c (source_script_from_stream) Use have_python
106 instead of catching UNSUPPORTED_ERROR.
107 * exceptions.h (UNSUPPORTED_ERROR): Delete.
108 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
109 error if called.
110 * python/python.h (have_python): New static inline function.
111
112 2013-12-11 Doug Evans <dje@google.com>
113
114 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
115 "can't find DWO" warning.
116
117 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
118
119 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
120 to get_probe_argument_count and evaluate_probe_argument.
121 * probe.c (get_probe_argument_count): Adjust declaration to accept
122 frame. Pass frame to probe_ops's get_probe_argument_count.
123 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
124 (probe_safe_evaluate_at_pc): Pass frame to
125 get_probe_argument_count and evaluate_probe_argument.
126 * probe.h (struct probe_ops) <get_probe_argument_count,
127 evaluate_probe_argument>: Adjust declarations to accept frame.
128 (get_probe_argument_count, evaluate_probe_argument): Likewise.
129 * solib-svr4.c (solib_event_probe_action): Get current frame.
130 Pass it to get_probe_argument_count.
131 (svr4_handle_solib_event): Get current frame. Pass it to
132 get_probe_argument_count and evaluate_probe_argument.
133 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
134 accept gdbarch. Do not obtain it from the probe's objfile.
135 (stap_get_probe_argument_count): Adjust declaration to accept
136 frame. Obtain gdbarch from the frame. Call generic
137 can_evaluate_probe_arguments. Pass gdbarch to
138 stap_parse_probe_arguments.
139 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
140 stap_parse_probe_arguments.
141 (stap_evaluate_probe_argument): Adjust declaration to accept
142 frame. Obtain gdbarch from the frame. Pass gdbarch to
143 stap_get_arg.
144 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
145 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
146 get_probe_argument_count and evaluate_probe_argument.
147
148 2013-12-10 Doug Evans <dje@google.com>
149
150 PR 16286
151 * c-lang.c (c_get_string): Ignore the declared size of the object
152 if a specific length is requested.
153
154 2013-12-10 Doug Evans <dje@google.com>
155
156 * interps.h (interp_exec_p): Delete.
157 * interps.c (interp_exec_p): Delete.
158 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
159 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
160
161 2013-12-10 Yao Qi <yao@codesourcery.com>
162
163 * amd64-tdep.c (amd64_analyze_stack_align): Call
164 target_read_code instead of target_read_memory.
165 (amd64_analyze_prologue): Call read_code_unsigned_integer
166 instead of read_memory_unsigned_integer. Call read_code
167 instead of read_memory.
168 (amd64_skip_xmm_prologue): Likewise.
169
170 2013-12-10 Yao Qi <yao@codesourcery.com>
171
172 * corefile.c (read_code): New function.
173 (read_code_integer): New function.
174 (read_code_unsigned_integer): New function.
175 * gdbcore.h (read_code): Declare.
176 (read_code_integer): Declare.
177 (read_code_unsigned_integer): Declare.
178 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
179 of target_read_memory. Call read_code_unsigned_integer instead
180 of read_memory_unsigned_integer.
181 (i386_analyze_struct_return): Likewise.
182 (i386_skip_probe): Likewise.
183 (i386_analyze_stack_align): Likewise.
184 (i386_match_pattern): Likewise.
185 (i386_skip_noop): Likewise.
186 (i386_analyze_frame_setup): Likewise.
187 (i386_analyze_register_saves): Likewise.
188 (i386_skip_prologue): Likewise.
189 (i386_skip_main_prologue): Likewise.
190 (i386_frame_cache_1): Likewise.
191
192 2013-12-10 Yao Qi <yao@codesourcery.com>
193
194 * infrun.c: Include "target-dcache.h".
195 (prepare_for_detach): Call target_dcache_invalidate.
196 (wait_for_inferior): Likewise.
197 (fetch_inferior_event): Likewise.
198 (infrun_thread_stop_requested_callback): Likewise. Set
199 overlay_cache_invalid to 1.
200
201 2013-12-10 Joel Brobecker <brobecker@adacore.com>
202
203 * symtab.c (symbol_find_demangled_name): Add handling of
204 Ada symbols.
205
206 2013-12-10 Joel Brobecker <brobecker@adacore.com>
207
208 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
209 * NEWS: Expand the entry documenting the new -exec-run --start
210 option to mention the corresponding new entry in the output of
211 "-list-features".
212
213 2013-12-10 Joel Brobecker <brobecker@adacore.com>
214
215 * windows-nat.c (handle_load_dll): Add comments.
216 (windows_ensure_ntdll_loaded): New function.
217 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
218 Add FIXME comment.
219
220 2013-12-08 Joel Brobecker <brobecker@adacore.com>
221
222 GDB 7.6.2 released.
223
224 2013-12-08 Yao Qi <yao@codesourcery.com>
225
226 * stack.c (frame_info): Initialize variable caller_pc.
227
228 2013-12-06 Pedro Alves <palves@redhat.com>
229
230 * frame.c (enum cached_copy_status): New enum.
231 (struct frame_info) <prev_pc.p>: Change type to enum
232 cached_copy_status.
233 (fprint_frame): Handle not saved and unavailable prev_pc values.
234 (frame_unwind_pc_if_available): Delete and merge contents into ...
235 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
236 to use enum cached_copy_status.
237 (frame_unwind_caller_pc_if_available): Delete.
238 (create_new_frame): Adjust.
239 * frame.h (frame_unwind_caller_pc_if_available): Delete
240 declaration.
241 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
242 frame_unwind_caller_pc_if_available, and handle
243 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
244 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
245 (val_print_not_saved): New function.
246 * valprint.h (val_print_not_saved): Declare.
247
248 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
249 Pedro Alves <palves@redhat.com>
250
251 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
252 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
253 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
254 * spu-tdep.c (spu_software_single_step): Throw
255 OPTIMIZED_OUT_ERROR.
256 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
257
258 2013-12-06 Tom Tromey <tromey@redhat.com>
259
260 * objfiles.c (free_objfile): Update comment.
261
262 2013-12-06 Tom Tromey <tromey@redhat.com>
263
264 * objfiles.h (objfile_to_front): Remove.
265 * objfiles.c (objfile_to_front): Remove.
266
267 2013-12-06 Tom Tromey <tromey@redhat.com>
268
269 * minsyms.c (get_symbol_leading_char): Remove unnecessary
270 declaration.
271
272 2013-12-06 Tom Tromey <tromey@redhat.com>
273
274 * psympriv.h (struct partial_symtab) <user>: Move earlier.
275
276 2013-12-06 Tom Tromey <tromey@redhat.com>
277
278 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
279 (list_command): Likewise.
280
281 2013-12-06 Tom Tromey <tromey@redhat.com>
282
283 * psymtab.c (allocate_psymtab): Put the filename in the filename
284 bcache.
285
286 2013-12-06 Tom Tromey <tromey@redhat.com>
287
288 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
289 * symtab.h (struct symtab) <dirname>: Now const.
290
291 2013-12-06 Tom Tromey <tromey@redhat.com>
292
293 * symfile.c (allocate_symtab): Remove cast.
294 * symtab.h (struct symtab) <filename>: Now const.
295
296 2013-12-06 Tom Tromey <tromey@redhat.com>
297
298 * break-catch-throw.c (fetch_probe_arguments): Use
299 get_probe_argument_count and evaluate_probe_argument.
300 * elfread.c (elf_get_probe_argument_count)
301 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
302 (elf_compile_to_ax): Remove.
303 (elf_probe_fns): Update.
304 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
305 (evaluate_probe_argument): Call method on probe, not via sym
306 functions.
307 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
308 evaluate_probe_argument.
309 (compile_probe_arg): Use get_probe_argument_count. Call method on
310 probe, not via sym functions.
311 * symfile-debug.c (debug_sym_get_probe_argument_count)
312 (debug_can_evaluate_probe_arguments)
313 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
314 Remove.
315 (debug_sym_probe_fns): Remove.
316 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
317 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
318 sym_compile_to_ax>: Remove fields.
319
320 2013-12-06 Pierre Muller <muller@sourceware.org>
321
322 Fix completion for pascal language.
323 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
324 (exp : field_exp name COMPLETE): New rule.
325 (exp : SIZEOF): Set correct current_type.
326 (last_was_structop): Remove static variable.
327 (yylex): Remove saw_structop local variable.
328 Adapt code to removal of variables above.
329
330 2013-12-06 Joel Brobecker <brobecker@adacore.com>
331
332 * frame.c (get_prev_frame_1): Delete variable "this_id".
333 Replace its use by a call to get_frame_id.
334
335 2013-12-05 Anthony Green <green@moxielogic.com>
336
337 * moxie-tdep.c (moxie_software_single_step): New function.
338 (INST2OFFSET): New helper macro.
339 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
340 (moxie_process_readu): Move this up in the file.
341
342 2013-12-05 Doug Evans <xdje42@gmail.com>
343
344 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
345
346 2013-12-05 Joel Brobecker <brobecker@adacore.com>
347 Tristan Gingold <gingold@adacore.com>
348
349 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
350 Accept version 2. Ignore operations using opcode 6.
351
352 2013-12-05 Joel Brobecker <brobecker@adacore.com>
353
354 * ada-lex.l (find_dot_all): Fix coding style violations.
355
356 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
357
358 * NEWS: Add section for Intel(R) Architecture Instructions
359 Extesions mentioning MPX.
360
361 2013-12-03 Joel Brobecker <brobecker@adacore.com>
362
363 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
364
365 2013-12-03 Joel Brobecker <brobecker@adacore.com>
366
367 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
368 when parse_exp_1 threw an error. Add comment.
369
370 2013-12-03 Joel Brobecker <brobecker@adacore.com>
371
372 * NEWS: Mention "-list-features" in the entry documenting
373 the support for the "--language" option.
374
375 2013-12-03 Tom Tromey <tromey@redhat.com>
376 Jan Kratochvil <jan.kratochvil@redhat.com>
377 Doug Evans <dje@google.com>
378 Samuel Bronson <naesten@gmail.com>
379
380 Bring back gdb-add-index as a contrib script.
381 * contrib/gdb-add-index.sh: New file.
382 * NEWS: Note the addition.
383
384 2013-12-03 Samuel Bronson <naesten@gmail.com>
385
386 * MAINTAINERS (Write After Approval): Add myself to the list.
387
388 2013-12-03 Joel Brobecker <brobecker@adacore.com>
389
390 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
391
392 2013-12-03 Joel Brobecker <brobecker@adacore.com>
393
394 * mi/mi-main.c: Remove trailing spaces throughout.
395
396 2013-12-03 Pedro Alves <palves@redhat.com>
397 Joel Brobecker <brobecker@adacore.com>
398
399 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
400 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
401 of a regular error when the GDB/MI command does not exist.
402 * mi/mi-main.c (mi_cmd_list_features): Add
403 "undefined-command-error-code".
404 (mi_print_exception): Print an "undefined-command"
405 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
406 * NEWS: Add entry documenting the new "code" variable in
407 "^error" result records.
408
409 2013-12-03 Joel Brobecker <brobecker@adacore.com>
410
411 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
412 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
413 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
414 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
415 field to output of "-list-features".
416
417 * NEWS: Add entry for new -info-gdb-mi-command.
418
419 2013-12-02 Doug Evans <dje@google.com>
420 Jan Kratochvil <jan.kratochvil@redhat.com>
421
422 * objfiles.c (allocate_objfile): Save original_name as an absolute
423 path.
424 * objfiles.h (struct objfile): Expand comment on original_name.
425 * source.c (openp): Call gdb_abspath.
426 * utils.c (gdb_abspath): New function.
427 * utils.h (gdb_abspath): Declare.
428
429 2013-12-02 Pedro Alves <palves@redhat.com>
430
431 * dcache.c (dcache_read_line): Use target_read_raw_memory.
432 * target.c (target_read_raw_memory): New function.
433 (target_read_stack, target_write_memory, target_write_raw_memory):
434 Update comment.
435 (target_read_code): Add comment.
436 * target.h (target_read_raw_memory): Declare.
437
438 2013-12-02 Pedro Alves <palves@redhat.com>
439
440 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
441 unconditionally.
442
443 2013-12-02 Pedro Alves <pedro@codesourcery.com>
444 Maciej W. Rozycki <macro@codesourcery.com>
445
446 * remote.c (putpkt_for_catch_errors): Remove function.
447 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
448 gracefully.
449
450 2013-12-02 Pedro Alves <palves@redhat.com>
451
452 PR remote/15974
453 * remote-notif.c (handle_notification): Return early if no
454 notification is found.
455
456 2013-12-02 Joel Brobecker <brobecker@adacore.com>
457
458 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
459 preprocessor check.
460
461 2013-12-02 Joel Brobecker <brobecker@adacore.com>
462
463 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
464
465 2013-12-02 Joel Brobecker <brobecker@adacore.com>
466
467 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
468 * ctf.c (ctf_start): Remove obsolete comment.
469
470 2013-12-02 Joel Brobecker <brobecker@adacore.com>
471
472 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
473
474 2013-11-30 Doug Evans <xdje42@gmail.com>
475
476 * auto-load.h (script_language): New members name, auto_load_enabled.
477 Add missing comments on struct members.
478 (auto_load_objfile_script): Delete.
479 * auto-load.c: #include "cli/cli-cmds.h".
480 (auto_load_gdb_scripts_enabled): New function.
481 (script_language_gdb): Update, add new members.
482 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
483 and call to maybe_add_script moved to caller.
484 (auto_load_objfile_script_1): Auto-load safe-checking and
485 call to maybe_add_script moved here.
486 (auto_load_objfile_script): Make static. Early exit if support for
487 scripting language hasn't been compiled in, or auto-loading has been
488 disabled.
489 (source_section_scripts): Argument "source_name" renamed to
490 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
491 with section_name. Skip loading script if support for scripting
492 language hasn't been compiled in, or auto-loading has been disabled.
493 Call language->source_script_for_objfile instead of calling
494 source_python_script_for_objfile directly.
495 (load_auto_scripts_for_objfile): Update.
496 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
497 (gdbpy_load_auto_script_for_objfile): Delete.
498 (auto_load_python_scripts_enabled): New function.
499 (script_language_python): Update, add new members.
500 (gdbpy_script_language_defn): New function.
501 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
502 (gdbpy_script_language_defn): Declare.
503
504 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
505 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
506 (source_section_scripts): Moved here from py-auto-load.c.
507 (auto_load_section_scripts): Ditto.
508 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
509 auto-load.c, renamed AUTO_SECTION_NAME.
510 (source_section_scripts, auto_load_section_scripts): Moved to
511 auto-load.c.
512
513 2013-11-30 Yao Qi <yao@codesourcery.com>
514
515 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
516
517 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
518
519 * gdbarch.sh: Remove include of "gdb_string.h", replace by
520 <string.h>.
521
522 2013-11-29 Doug Evans <xdje42@gmail.com>
523
524 * python/py-auto-load.c (source_section_scripts): Move comment to
525 more relevant location.
526
527 Whitespace cleanup.
528 * python/py-breakpoint.c: Remove trailing whitespace.
529 * python/py-cmd.c: Ditto.
530 * python/py-evts.c: Ditto.
531 * python/py-finishbreakpoint.c: Ditto.
532 * python/py-frame.c: Ditto.
533 * python/py-function.c: Ditto.
534 * python/py-inferior.c: Ditto.
535 * python/py-infthread.c: Ditto.
536 * python/py-param.c: Ditto.
537 * python/py-prettyprint.c: Ditto.
538 * python/py-symbol.c: Ditto.
539 * python/py-type.c: Ditto.
540 * python/py-utils.c: Ditto.
541 * python/py-value.c: Ditto.
542 * python/python-internal.h: Ditto.
543 * python/python.c: Ditto.
544
545 2013-11-29 Pedro Alves <palves@redhat.com>
546
547 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
548
549 2013-11-29 Pedro Alves <palves@redhat.com>
550
551 * breakpoint.c (build_target_condition_list): Release previous
552 conditions.
553 (build_target_command_list): Release previous commands.
554 (bp_location_dtor): Release target conditions and commands.
555 * remote.c (remote_add_target_side_condition): Don't release
556 conditions.
557 (remote_add_target_side_commands): Don't release commands.
558
559 2013-11-29 Yao Qi <yao@codesourcery.com>
560 Pedro Alves <palves@redhat.com>
561
562 * dcache.c (dcache_read_line): Use current_target.beneath
563 instead of &current_target.
564 * target.c (memory_xfer_partial_1): Factor code out to ...
565 (raw_memory_xfer_partial): ... it. New function.
566 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
567 is TARGET_OBJECT_RAW_MEMORY.
568
569 2013-11-28 Doug Evans <xdje42@gmail.com>
570
571 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
572 breakpoint_object. All uses updated.
573 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
574 breakpoint_object. All uses updated.
575 * python.c (*): All uses of breakpoint_object updated.
576 * python.h (*): All uses of breakpoint_object updated.
577 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
578 * python/py-finishbreakpoint.c (*): Ditto.
579
580 2013-11-28 Doug Evans <xdje42@gmail.com>
581
582 * configure.ac: Add comments delineating libpython and libmcheck.
583 * configure: Regenerate.
584
585 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
586 Pedro Alves <palves@redhat.com>
587
588 * valprint.c (value_check_printable): If the value is entirely
589 unavailable, print a single "<unavailable>" instead of printing
590 all subfields.
591
592 2013-11-28 Pedro Alves <palves@redhat.com>
593
594 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
595 Add "set debug frame" output.
596 (frame_stop_reason_symbol_string): New function.
597
598 2013-11-28 Pedro Alves <palves@redhat.com>
599
600 * frame-unwind.c (default_frame_unwind_stop_reason): Return
601 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
602 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
603
604 2013-11-28 Pedro Alves <palves@redhat.com>
605
606 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
607 set the unwind stop reason to UNWIND_OUTERMOST, not
608 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
609
610 2013-11-28 Pedro Alves <palves@redhat.com>
611
612 * frame.c (frame_unwind_register): Say the register was "not
613 saved" instead of "optimized out".
614
615 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
616
617 PR 16152
618 * configure: Rebuild.
619 * configure.ac: Tighten cygwin detection check.
620
621 2013-11-27 Pedro Alves <palves@redhat.com>
622
623 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
624 register in the previous frame's arch.
625
626 2013-11-27 Pedro Alves <palves@redhat.com>
627
628 * frame-unwind.c (frame_unwind_got_optimized): Return
629 an lval_register value instead of a not_lval value.
630
631 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
632
633 * frame.c: Include "valprint.h".
634 (frame_unwind_register_value): Use value_optimized_out.
635 * value.c (value_fetch_lazy): Likewise.
636
637 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
638
639 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
640
641 2013-11-26 Tom Tromey <tromey@redhat.com>
642
643 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
644 2013-11-22.
645
646 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
647
648 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
649 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
650 (HAS_MPX): New macro.
651 (HAS_AVX): New macro.
652 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
653
654 2013-11-25 Keith Seitz <keiths@redhat.com>
655
656 PR c++/14819
657 * c-exp.y (classify_inner_name): If no matching symbol was
658 found, try looking up the token as a base class.
659 Likewise if a constructor was found.
660 * cp-namespace.c (find_type_baseclass_by_name): New function.
661 * cp-support.h (find_type_baseclass_by_name): Declare.
662 * valops.c (value_struct_elt_for_reference): If we get
663 a non-static field, try to get a value based on the
664 current instance, if any.
665
666 2013-11-24 Yao Qi <yao@codesourcery.com>
667
668 * disasm.c (dis_asm_read_memory): Call target_read_code
669 instead of target_read_memory.
670
671 2013-11-24 Yao Qi <yao@codesourcery.com>
672
673 * NEWS: Add note on new "set code-cache" option.
674 * target-dcache.c (code_cache_enabled_1): New variable.
675 (code_cache_enabled): New variable.
676 (show_code_cache, set_code_cache): New function.
677 (code_cache_enabled_p): New function.
678 (_initialize_target_dcache): Register command.
679 * target-dcache.h (code_cache_enabled_p): Declare.
680 * target.c (memory_xfer_partial_1):Handle
681 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
682 (target_read_code): New function.
683 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
684 New.
685 (target_read_code): Declare.
686
687 2013-11-24 Yao Qi <yao@codesourcery.com>
688
689 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
690 (stack_cache_enabled_1): ... this. New variable.
691 (stack_cache_enabled_p): Rename to ...
692 (stack_cache_enabled): ... this. New variable.
693 (set_stack_cache_enabled_p): Rename to ...
694 (set_stack_cache): ... this. Update caller.
695 (show_stack_cache_enabled_p): Rename to ...
696 (show_stack_cache): ... this. Update caller.
697 (stack_cache_enabled): Rename to ...
698 (stack_cache_enabled_p): ... this. Update caller.
699 (_initialize_target_dcache): Replace "data cache" with
700 "target memory cache".
701 * target-dcache.h (stack_cache_enabled): Remove declaration.
702 (stack_cache_enabled_p): Add declaration.
703
704 2013-11-23 Doug Evans <xdje42@gmail.com>
705
706 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
707 superfluous.
708
709 2013-11-23 Doug Evans <xdje42@gmail.com>
710
711 * python/py-frame.c (frapy_block): Fix error message text.
712
713 2013-11-23 Doug Evans <xdje42@gmail.com>
714
715 * cli/cli-script.c (multi_line_command_p): New function.
716 (recurse_read_control_structure, read_command_lines_1): Call it.
717 (execute_control_command): Consistently have a blank line between
718 each case.
719
720 2013-11-22 Sterling Augustine <saugustine@google.com>
721
722 PR gdb/16196:
723 * valprint.c (read_string): Set new variable fetchlen based on
724 fetchlimit and size. Use it in call to partial_memory_read.
725 Update comment.
726
727 2013-11-22 Tom Tromey <tromey@redhat.com>
728
729 PR backtrace/16155:
730 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
731 the return address column is unspecified.
732
733 2013-11-22 Tom Tromey <tromey@redhat.com>
734 Pedro Alves <palves@redhat.com>
735
736 PR backtrace/16155
737 * value.c (value_fetch_lazy): Internal error if
738 get_frame_register_value returns the same register.
739
740 2013-11-22 Pedro Alves <palves@redhat.com>
741 Tom Tromey <tromey@redhat.com>
742
743 * frame.c (frame_stash_add): Now returns whether a frame with the
744 same ID was already known.
745 (compute_frame_id): New function, factored out from get_frame_id.
746 (get_frame_id): No longer lazilly compute the frame id here.
747 (get_prev_frame_if_no_cycle): New function. Detects wider stack
748 cycles.
749 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
750 and checking for stack cycles here.
751
752 2013-11-22 Pedro Alves <palves@redhat.com>
753
754 PR 16155
755 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
756 this frame and the new previous frame, not between this frame and
757 the next frame.
758
759 2013-11-22 Pedro Alves <palves@redhat.com>
760
761 PR 16155
762 * dwarf2-frame.c (struct dwarf2_frame_cache)
763 <checked_tailcall_bottom, entry_cfa_sp_offset,
764 entry_cfa_sp_offset_p>: New fields.
765 (dwarf2_frame_cache): Adjust to use the new cache fields instead
766 of locals. Don't call dwarf2_tailcall_sniffer_first here.
767 (dwarf2_frame_prev_register): Call it here, but only once.
768
769 2013-11-21 Doug Evans <xdje42@gmail.com>
770
771 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
772 (type_equality_entry): Move here from python/py-type.c.
773 (type_equality_entry_d): Ditto.
774 (compare_maybe_null_strings, check_types_equal): Ditto.
775 (check_types_worklist, types_deeply_equal): Ditto.
776 * gdbtypes.h (types_deeply_equal): Declare.
777 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
778 (typy_richcompare): Update.
779
780 2013-11-20 Joel Brobecker <brobecker@adacore.com>
781
782 * python/py-value.c (is_intlike): Delete.
783 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
784 by use of is_integral_type.
785 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
786 by use of is_integral_type and check for TYPE_CODE_PTR.
787
788 2013-11-20 Tom Tromey <tromey@redhat.com>
789
790 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
791 strerror module.
792 * gnulib/aclocal.m4: Update.
793 * gnulib/config.in: Update.
794 * gnulib/configure: Update.
795 * gnulib/import/Makefile.am: Update.
796 * gnulib/import/Makefile.in: Update.
797 * gnulib/import/errno.in.h: Remove.
798 * gnulib/import/intprops.h: Remove.
799 * gnulib/import/m4/errno_h.m4: Remove.
800 * gnulib/import/m4/gnulib-cache.m4: Update.
801 * gnulib/import/m4/gnulib-comp.m4: Update.
802 * gnulib/import/m4/strerror.m4: Remove.
803 * gnulib/import/m4/sys_socket_h.m4: Remove.
804 * gnulib/import/strerror-override.c: Remove.
805 * gnulib/import/strerror-override.h: Remove.
806 * gnulib/import/strerror.c: Remove.
807 * gnulib/update-gnulib.sh: Update.
808
809 2013-11-20 Yao Qi <yao@codesourcery.com>
810
811 * target-dcache.c (target_dcache_get_or_init): Call
812 set_address_space_data if 'dcache' is NULL.
813
814 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
815
816 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
817
818 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
819
820 * python/lib/gdb/command/bound_register.py: New file.
821 * data-directory/Makefile.in: Copy bond_register.py to the right path
822 to be initialized at gdb startup.
823
824 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
825
826 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
827 Add MPX registers.
828 (amd64_linux_read_description): Add initialization for MPX and
829 AVX independently.
830 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
831 (amd64_linux_gregset_reg_offset): Add MPX registers.
832 (amd64_linux_core_read_description): Add initialization for MPX
833 registers.
834 (_initialize_amd64_linux_tdep): Initialize MPX targets.
835 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
836 register on the list.
837 (tdesc_amd64_mpx_linux) Add new target for MPX.
838 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
839 (amd64_mpx_names): MPX register names.
840 (amd64_init_abi): Add MPX register while initializing the ABI.
841 (_initialize_amd64_tdep): Initialize MPX targets.
842 * amd64-tdep.h (amd64_regnum): Add MPX registers.
843 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
844
845 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
846
847 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
848 registers on the range of registers to be read from
849 xsave buffer.
850 (i386_linux_read_description): Add case for MPX.
851 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
852 (i386_linux_gregset_reg_offset): Add MPX registers.
853 (i386_linux_core_read_description): Initialize also MPX.
854 (_initialize_i386_linux_tdep): Add mpx initialization.
855 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
856 mpx_register_names.
857 (i386_regnum): Add MPX registers.
858 (I386_MPX_NUM_REGS): New macro.
859 (i386_bnd_regnum_p): New function.
860 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
861 number of registers to be the number of BNDSTATUS.
862 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
863 * i386-tdep.c: Include features/i386/i386-mpx.c.
864 (i386_mpx_names): Add MPX register names array.
865 (i386_bnd_names): Add bnd pseudo register names array.
866 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
867 registers.
868 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
869 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
870 registers.
871 (i386_bnd_type): New function.
872 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
873 register types.
874 (i386_pseudo_register_read_into_value): Add bnd case.
875 (i386_pseudo_register_write): Add bnd pseudo registers.
876 (i386_register_reggroup_p): Add MPX register to the group all.
877 (i386_validate_tdesc_p): Add MPX to the target description
878 validation.
879 (i386_pseudo_register_name): Add bnd pseudo registers.
880 (i386_gdbarch_init): Add MPX for architecture initialization.
881 (_initia_initialize_i386_tdep): Add mpx initialization.
882 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
883 XSAVE buffer.
884 (XSAVE_MPX_ADDR): New macro.
885 (i387_supply_xsave): Add MPX case.
886 (i387_collect_xsave): Add MPX case.
887 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
888 (I387_BNDCFGU_REGNUM): New macro.
889 (I387_NUM_MPX_REGS): New macro.
890 (I387_NUM_BND_REGS): New macro.
891 (I387_NUM_MPX_CTRL_REGS): New macro.
892 (I387_MPXEND_REGNUM): New macro.
893 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
894 (I386_XSTATE_BNDCFG): Likewise.
895 (I386_XSTATE_MPX_MASK): Likewise.
896 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
897 (I386_XSTATE_BNDREGS_SIZE): New macro.
898 (I386_XSTATE_BNDCFG_SIZE): Likewise.
899 (I386_XSTATE_SIZE): Adapt for MPX.
900 (I386_XSTATE_MAX_SIZE): Likewise.
901
902 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
903
904 * features/i386/Makefile: Adapts for using MPX registers.
905 * features/i386/32bit-mpx.xml: New file.
906 * features/i386/64bit-mpx.xml: Likewise.
907 * features/i386/amd64-mpx-linux.c: Likewise.
908 * features/i386/amd64-mpx-linux.xml: Likewise.
909 * features/i386/amd64-mpx.c: Likewise.
910 * features/i386/amd64-mpx.xml: Likewise.
911 * features/i386/i386-mpx-linux.c: Likewise.
912 * features/i386/i386-mpx-linux.xml: Likewise.
913 * features/i386/i386-mpx.c: Likewise.
914 * features/i386/i386-mpx.xml: Likewise.
915 * regformats/i386/amd64-mpx-linux.dat: New file.
916 * regformats/i386/amd64-mpx.dat: Likewise.
917 * regformats/i386/i386-mpx-linux.dat: Likewise.
918 * regformats/i386/i386-mpx.dat: Likewise.
919
920 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
921
922 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
923 Modified logic of creating a bitfield to be in sync with
924 tdesc_gdb_type.
925
926 2013-11-20 Will Newton <will.newton@linaro.org>
927
928 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
929 error message.
930
931 2013-11-20 Yao Qi <yao@codesourcery.com>
932
933 * progspace.h (struct address_space_data): Declare.
934 * target-dcache.c: Include "progspace.h".
935 (target_dache): Remove.
936 (target_dcache_aspace_key): New.
937 (target_dcache_cleanup): New function.
938 (target_dcache_init_p): Get data through
939 target_dcache_aspace_key.
940 (target_dcache_invalidate): Likewise.
941 (target_dcache_get): Likewise.
942 (target_dcache_get_or_init): Likewise.
943 (_initialize_target_dcache): Initialize
944 target_dcache_aspace_key.
945
946 2013-11-20 Yao Qi <yao@codesourcery.com>
947
948 * progspace.c (struct address_space): Update comments.
949 <REGISTRY_FIELDS>: New fields.
950 DEFINE_REGISTRY for address_space.
951 (new_address_space): Call address_space_alloc_data.
952 (free_address_space): Call address_space_free_data.
953 * progspace.h: Use DECLARE_REGISTRY.
954
955 2013-11-20 Yao Qi <yao@codesourcery.com>
956
957 * Makefile.in (SFILES):Add target-dcache.c.
958 (HFILES_NO_SRCDIR): Add target-dcache.h.
959 (COMMON_OBS): Add target-dcache.o.
960 * dcache.c: Remove inclusion to "target.h". Include
961 "target-dcache.h".
962 * memattr.c: Include "target-dcache.h".
963 * top.c: Likewise.
964 * tracepoint.c: Likewise.
965 * target.c: (stack_cache_enabled_p_1): Move to
966 target-dcache.c.
967 (stack_cache_enabled_p): Likewise.
968 (set_stack_cache_enabled_p): Likewise.
969 (show_stack_cache_enabled_p): Likewise.
970 (target_dcache, target_dcache_init_p): Likewise.
971 (target_dcache_invalidate): Likewise.
972 (target_dcache_get, target_dcache_get_or_init): Likewise.
973 (memory_xfer_partial_1): Call function stack_cache_enabled.
974 (initialize_target): Move code to target-dcache.c.
975 * target.h (target_dcache_invalidate): Move to
976 target-dcache.h.
977 (target_dcache_get): Likewise.
978 * target-dcache.c: New.
979 * target-dcache.h: New.
980
981 2013-11-20 Yao Qi <yao@codesourcery.com>
982
983 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
984 it is initialized.
985
986 2013-11-20 Yao Qi <yao@codesourcery.com>
987
988 * dcache.c (last_cache): Remove.
989 (dcache_free, dcache_init): Update.
990 (dcache_update):
991 (dcache_print_line): Add parameter 'dcache'. Replace
992 'target_dcache' with 'dcache'.
993 (dcache_info): Move code to dcache_info_1. Call
994 'dcache_info_1'.
995 (dcache_info_1): New function.
996 (set_dcache_size): Call target_dcache_invalidate.
997 (set_dcache_line_size): Call target_dcache_invalidate.
998 * target.c (target_dcache_init_p): New function.
999 (target_dcache_invalidate): Check target_dcache_init_p first.
1000 (target_dcache_get, target_dcache_get_or_init): New function.
1001 (memory_xfer_partial_1): Adjust.
1002 (initialize_target): Don't initialize 'target_dcache'.
1003 * target.h (struct dcache_struct): Declare.
1004 (target_dcache_get): Declare.
1005
1006 2013-11-19 Yao Qi <yao@codesourcery.com>
1007
1008 * varobj.c (varobj_get_type): Fix typo.
1009
1010 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1011
1012 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1013
1014 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1015
1016 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1017 "stat.h".
1018
1019 2013-11-18 Tom Tromey <tromey@redhat.com>
1020
1021 * common/gdb_stat.h: Remove.
1022 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1023 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1024 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1025 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1026 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1027 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1028 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1029 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1030 * exec.c: Use sys/stat.h, not gdb_stat.h.
1031 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1032 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1033 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1034 * jit.c: Use sys/stat.h, not gdb_stat.h.
1035 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1036 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1037 * main.c: Use sys/stat.h, not gdb_stat.h.
1038 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1039 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1040 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1041 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1042 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1043 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1044 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1045 * remote.c: Use sys/stat.h, not gdb_stat.h.
1046 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1047 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1048 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1049 * source.c: Use sys/stat.h, not gdb_stat.h.
1050 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1051 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1052 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1053 * top.c: Use sys/stat.h, not gdb_stat.h.
1054 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1055
1056 2013-11-18 Tom Tromey <tromey@redhat.com>
1057
1058 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1059 sys_stat.
1060 * gnulib/aclocal.m4: Update.
1061 * gnulib/config.in: Update.
1062 * gnulib/configure: Update.
1063 * gnulib/import/Makefile.am: Update.
1064 * gnulib/import/Makefile.in: Update.
1065 * gnulib/import/m4/gnulib-cache.m4: Update.
1066 * gnulib/import/m4/gnulib-comp.m4: Update.
1067 * gnulib/import/m4/sys_stat_h.m4: New.
1068 * gnulib/import/m4/time_h.m4: New.
1069 * gnulib/import/sys_stat.in.h: New.
1070 * gnulib/import/time.in.h: New.
1071
1072 2013-11-18 Tom Tromey <tromey@redhat.com>
1073
1074 * configure: Rebuild.
1075 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1076
1077 2013-11-18 Tom Tromey <tromey@redhat.com>
1078
1079 * configure: Rebuild.
1080 * configure.ac: Don't check for unistd.h.
1081
1082 2013-11-18 Tom Tromey <tromey@redhat.com>
1083
1084 * configure: Rebuild.
1085 * configure.ac: Don't check for stdlib.h
1086 * defs.h: Include stdlib.h unconditionally.
1087
1088 2013-11-18 Tom Tromey <tromey@redhat.com>
1089
1090 * config.in: Rebuild.
1091 * configure: Rebuild.
1092 * configure.ac: Don't check for stddef.h.
1093 * defs.h: Unconditionally include stddef.h. Remove duplicate
1094 inclusion.
1095
1096 2013-11-18 Tom Tromey <tromey@redhat.com>
1097
1098 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1099 * common/gdb_dirent.h: Remove.
1100 * common/filestuff.c: Use dirent.h.
1101 * common/linux-osdata.c: Use dirent.h.
1102 (NAMELEN): Define.
1103 * config.in: Rebuild.
1104 * configure: Rebuild.
1105 * configure.ac: Don't use AC_HEADER_DIRENT.
1106 * linux-fork.c: Use dirent.h
1107 * linux-nat.c: Use dirent.h.
1108 * nto-procfs.c: Use dirent.h.
1109 * procfs.c: Use dirent.h.
1110
1111 2013-11-18 Tom Tromey <tromey@redhat.com>
1112
1113 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1114 * gnulib/aclocal.m4: Update.
1115 * gnulib/config.in: Update.
1116 * gnulib/configure: Update.
1117 * gnulib/import/Makefile.am: Update.
1118 * gnulib/import/Makefile.in: Update.
1119 * gnulib/import/dirent.in.h: New.
1120 * gnulib/import/m4/dirent_h.m4: New.
1121 * gnulib/import/m4/gnulib-cache.m4: Update.
1122 * gnulib/import/m4/gnulib-comp.m4: Update.
1123
1124 2013-11-18 Tom Tromey <tromey@redhat.com>
1125
1126 * configure: Rebuild.
1127 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1128 strings.h.
1129
1130 2013-11-18 Tom Tromey <tromey@redhat.com>
1131
1132 * common/gdb_string.h: Remove.
1133 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1134 * ada-exp.y: Use string.h, not gdb_string.h.
1135 * ada-lang.c: Use string.h, not gdb_string.h.
1136 * ada-lex.l: Use string.h, not gdb_string.h.
1137 * ada-typeprint.c: Use string.h, not gdb_string.h.
1138 * ada-valprint.c: Use string.h, not gdb_string.h.
1139 * aix-thread.c: Use string.h, not gdb_string.h.
1140 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1141 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1142 * alpha-nat.c: Use string.h, not gdb_string.h.
1143 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1144 * alpha-tdep.c: Use string.h, not gdb_string.h.
1145 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1146 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1147 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1148 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1149 * amd64-nat.c: Use string.h, not gdb_string.h.
1150 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1151 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1152 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1153 * arch-utils.c: Use string.h, not gdb_string.h.
1154 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1155 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1156 * arm-tdep.c: Use string.h, not gdb_string.h.
1157 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1158 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1159 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1160 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1161 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1162 * avr-tdep.c: Use string.h, not gdb_string.h.
1163 * ax-gdb.c: Use string.h, not gdb_string.h.
1164 * ax-general.c: Use string.h, not gdb_string.h.
1165 * bcache.c: Use string.h, not gdb_string.h.
1166 * bfin-tdep.c: Use string.h, not gdb_string.h.
1167 * breakpoint.c: Use string.h, not gdb_string.h.
1168 * build-id.c: Use string.h, not gdb_string.h.
1169 * buildsym.c: Use string.h, not gdb_string.h.
1170 * c-exp.y: Use string.h, not gdb_string.h.
1171 * c-lang.c: Use string.h, not gdb_string.h.
1172 * c-typeprint.c: Use string.h, not gdb_string.h.
1173 * c-valprint.c: Use string.h, not gdb_string.h.
1174 * charset.c: Use string.h, not gdb_string.h.
1175 * cli-out.c: Use string.h, not gdb_string.h.
1176 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1177 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1178 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1179 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1180 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1181 * cli/cli-script.c: Use string.h, not gdb_string.h.
1182 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1183 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1184 * coffread.c: Use string.h, not gdb_string.h.
1185 * common/common-utils.c: Use string.h, not gdb_string.h.
1186 * common/filestuff.c: Use string.h, not gdb_string.h.
1187 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1188 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1189 * common/signals.c: Use string.h, not gdb_string.h.
1190 * common/vec.h: Use string.h, not gdb_string.h.
1191 * core-regset.c: Use string.h, not gdb_string.h.
1192 * corefile.c: Use string.h, not gdb_string.h.
1193 * corelow.c: Use string.h, not gdb_string.h.
1194 * cp-abi.c: Use string.h, not gdb_string.h.
1195 * cp-support.c: Use string.h, not gdb_string.h.
1196 * cp-valprint.c: Use string.h, not gdb_string.h.
1197 * cris-tdep.c: Use string.h, not gdb_string.h.
1198 * d-lang.c: Use string.h, not gdb_string.h.
1199 * dbxread.c: Use string.h, not gdb_string.h.
1200 * dcache.c: Use string.h, not gdb_string.h.
1201 * demangle.c: Use string.h, not gdb_string.h.
1202 * dicos-tdep.c: Use string.h, not gdb_string.h.
1203 * disasm.c: Use string.h, not gdb_string.h.
1204 * doublest.c: Use string.h, not gdb_string.h.
1205 * dsrec.c: Use string.h, not gdb_string.h.
1206 * dummy-frame.c: Use string.h, not gdb_string.h.
1207 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1208 * dwarf2loc.c: Use string.h, not gdb_string.h.
1209 * dwarf2read.c: Use string.h, not gdb_string.h.
1210 * elfread.c: Use string.h, not gdb_string.h.
1211 * environ.c: Use string.h, not gdb_string.h.
1212 * eval.c: Use string.h, not gdb_string.h.
1213 * event-loop.c: Use string.h, not gdb_string.h.
1214 * exceptions.c: Use string.h, not gdb_string.h.
1215 * exec.c: Use string.h, not gdb_string.h.
1216 * expprint.c: Use string.h, not gdb_string.h.
1217 * f-exp.y: Use string.h, not gdb_string.h.
1218 * f-lang.c: Use string.h, not gdb_string.h.
1219 * f-typeprint.c: Use string.h, not gdb_string.h.
1220 * f-valprint.c: Use string.h, not gdb_string.h.
1221 * fbsd-nat.c: Use string.h, not gdb_string.h.
1222 * findcmd.c: Use string.h, not gdb_string.h.
1223 * findvar.c: Use string.h, not gdb_string.h.
1224 * fork-child.c: Use string.h, not gdb_string.h.
1225 * frame.c: Use string.h, not gdb_string.h.
1226 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1227 * frv-tdep.c: Use string.h, not gdb_string.h.
1228 * gdb.c: Use string.h, not gdb_string.h.
1229 * gdb_bfd.c: Use string.h, not gdb_string.h.
1230 * gdbarch.c: Use string.h, not gdb_string.h.
1231 * gdbtypes.c: Use string.h, not gdb_string.h.
1232 * gnu-nat.c: Use string.h, not gdb_string.h.
1233 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1234 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1235 * go-exp.y: Use string.h, not gdb_string.h.
1236 * go-lang.c: Use string.h, not gdb_string.h.
1237 * go32-nat.c: Use string.h, not gdb_string.h.
1238 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1239 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1240 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1241 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1242 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1243 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1244 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1245 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1246 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1247 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1248 * i386-tdep.c: Use string.h, not gdb_string.h.
1249 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1250 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1251 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1252 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1253 * i387-tdep.c: Use string.h, not gdb_string.h.
1254 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1255 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1256 * inf-child.c: Use string.h, not gdb_string.h.
1257 * inf-ptrace.c: Use string.h, not gdb_string.h.
1258 * inf-ttrace.c: Use string.h, not gdb_string.h.
1259 * infcall.c: Use string.h, not gdb_string.h.
1260 * infcmd.c: Use string.h, not gdb_string.h.
1261 * inflow.c: Use string.h, not gdb_string.h.
1262 * infrun.c: Use string.h, not gdb_string.h.
1263 * interps.c: Use string.h, not gdb_string.h.
1264 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1265 * irix5-nat.c: Use string.h, not gdb_string.h.
1266 * jv-exp.y: Use string.h, not gdb_string.h.
1267 * jv-lang.c: Use string.h, not gdb_string.h.
1268 * jv-typeprint.c: Use string.h, not gdb_string.h.
1269 * jv-valprint.c: Use string.h, not gdb_string.h.
1270 * language.c: Use string.h, not gdb_string.h.
1271 * linux-fork.c: Use string.h, not gdb_string.h.
1272 * linux-nat.c: Use string.h, not gdb_string.h.
1273 * lm32-tdep.c: Use string.h, not gdb_string.h.
1274 * m2-exp.y: Use string.h, not gdb_string.h.
1275 * m2-typeprint.c: Use string.h, not gdb_string.h.
1276 * m32c-tdep.c: Use string.h, not gdb_string.h.
1277 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1278 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1279 * m32r-rom.c: Use string.h, not gdb_string.h.
1280 * m32r-tdep.c: Use string.h, not gdb_string.h.
1281 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1282 * m68k-tdep.c: Use string.h, not gdb_string.h.
1283 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1284 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1285 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1286 * m88k-tdep.c: Use string.h, not gdb_string.h.
1287 * macrocmd.c: Use string.h, not gdb_string.h.
1288 * main.c: Use string.h, not gdb_string.h.
1289 * mdebugread.c: Use string.h, not gdb_string.h.
1290 * mem-break.c: Use string.h, not gdb_string.h.
1291 * memattr.c: Use string.h, not gdb_string.h.
1292 * memory-map.c: Use string.h, not gdb_string.h.
1293 * mep-tdep.c: Use string.h, not gdb_string.h.
1294 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1295 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1296 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1297 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1298 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1299 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1300 * mi/mi-console.c: Use string.h, not gdb_string.h.
1301 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1302 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1303 * mi/mi-main.c: Use string.h, not gdb_string.h.
1304 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1305 * microblaze-rom.c: Use string.h, not gdb_string.h.
1306 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1307 * mingw-hdep.c: Use string.h, not gdb_string.h.
1308 * minidebug.c: Use string.h, not gdb_string.h.
1309 * minsyms.c: Use string.h, not gdb_string.h.
1310 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1311 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1312 * mips-tdep.c: Use string.h, not gdb_string.h.
1313 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1314 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1315 * mipsread.c: Use string.h, not gdb_string.h.
1316 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1317 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1318 * monitor.c: Use string.h, not gdb_string.h.
1319 * moxie-tdep.c: Use string.h, not gdb_string.h.
1320 * mt-tdep.c: Use string.h, not gdb_string.h.
1321 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1322 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1323 * nto-procfs.c: Use string.h, not gdb_string.h.
1324 * nto-tdep.c: Use string.h, not gdb_string.h.
1325 * objc-lang.c: Use string.h, not gdb_string.h.
1326 * objfiles.c: Use string.h, not gdb_string.h.
1327 * opencl-lang.c: Use string.h, not gdb_string.h.
1328 * osabi.c: Use string.h, not gdb_string.h.
1329 * osdata.c: Use string.h, not gdb_string.h.
1330 * p-exp.y: Use string.h, not gdb_string.h.
1331 * p-lang.c: Use string.h, not gdb_string.h.
1332 * p-typeprint.c: Use string.h, not gdb_string.h.
1333 * parse.c: Use string.h, not gdb_string.h.
1334 * posix-hdep.c: Use string.h, not gdb_string.h.
1335 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1336 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1337 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1338 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1339 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1340 * printcmd.c: Use string.h, not gdb_string.h.
1341 * procfs.c: Use string.h, not gdb_string.h.
1342 * prologue-value.c: Use string.h, not gdb_string.h.
1343 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1344 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1345 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1346 * regcache.c: Use string.h, not gdb_string.h.
1347 * registry.c: Use string.h, not gdb_string.h.
1348 * remote-fileio.c: Use string.h, not gdb_string.h.
1349 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1350 * remote-mips.c: Use string.h, not gdb_string.h.
1351 * remote-sim.c: Use string.h, not gdb_string.h.
1352 * remote.c: Use string.h, not gdb_string.h.
1353 * reverse.c: Use string.h, not gdb_string.h.
1354 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1355 * ser-base.c: Use string.h, not gdb_string.h.
1356 * ser-go32.c: Use string.h, not gdb_string.h.
1357 * ser-mingw.c: Use string.h, not gdb_string.h.
1358 * ser-pipe.c: Use string.h, not gdb_string.h.
1359 * ser-tcp.c: Use string.h, not gdb_string.h.
1360 * ser-unix.c: Use string.h, not gdb_string.h.
1361 * serial.c: Use string.h, not gdb_string.h.
1362 * sh-tdep.c: Use string.h, not gdb_string.h.
1363 * sh64-tdep.c: Use string.h, not gdb_string.h.
1364 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1365 * skip.c: Use string.h, not gdb_string.h.
1366 * sol-thread.c: Use string.h, not gdb_string.h.
1367 * solib-dsbt.c: Use string.h, not gdb_string.h.
1368 * solib-frv.c: Use string.h, not gdb_string.h.
1369 * solib-osf.c: Use string.h, not gdb_string.h.
1370 * solib-spu.c: Use string.h, not gdb_string.h.
1371 * solib-target.c: Use string.h, not gdb_string.h.
1372 * solib.c: Use string.h, not gdb_string.h.
1373 * somread.c: Use string.h, not gdb_string.h.
1374 * source.c: Use string.h, not gdb_string.h.
1375 * sparc-nat.c: Use string.h, not gdb_string.h.
1376 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1377 * sparc-tdep.c: Use string.h, not gdb_string.h.
1378 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1379 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1380 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1381 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1382 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1383 * spu-multiarch.c: Use string.h, not gdb_string.h.
1384 * spu-tdep.c: Use string.h, not gdb_string.h.
1385 * stabsread.c: Use string.h, not gdb_string.h.
1386 * stack.c: Use string.h, not gdb_string.h.
1387 * std-regs.c: Use string.h, not gdb_string.h.
1388 * symfile.c: Use string.h, not gdb_string.h.
1389 * symmisc.c: Use string.h, not gdb_string.h.
1390 * symtab.c: Use string.h, not gdb_string.h.
1391 * target.c: Use string.h, not gdb_string.h.
1392 * thread.c: Use string.h, not gdb_string.h.
1393 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1394 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1395 * top.c: Use string.h, not gdb_string.h.
1396 * tracepoint.c: Use string.h, not gdb_string.h.
1397 * tui/tui-command.c: Use string.h, not gdb_string.h.
1398 * tui/tui-data.c: Use string.h, not gdb_string.h.
1399 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1400 * tui/tui-file.c: Use string.h, not gdb_string.h.
1401 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1402 * tui/tui-out.c: Use string.h, not gdb_string.h.
1403 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1404 * tui/tui-source.c: Use string.h, not gdb_string.h.
1405 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1406 * tui/tui-win.c: Use string.h, not gdb_string.h.
1407 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1408 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1409 * typeprint.c: Use string.h, not gdb_string.h.
1410 * ui-file.c: Use string.h, not gdb_string.h.
1411 * ui-out.c: Use string.h, not gdb_string.h.
1412 * user-regs.c: Use string.h, not gdb_string.h.
1413 * utils.c: Use string.h, not gdb_string.h.
1414 * v850-tdep.c: Use string.h, not gdb_string.h.
1415 * valarith.c: Use string.h, not gdb_string.h.
1416 * valops.c: Use string.h, not gdb_string.h.
1417 * valprint.c: Use string.h, not gdb_string.h.
1418 * value.c: Use string.h, not gdb_string.h.
1419 * varobj.c: Use string.h, not gdb_string.h.
1420 * vax-tdep.c: Use string.h, not gdb_string.h.
1421 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1422 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1423 * windows-nat.c: Use string.h, not gdb_string.h.
1424 * xcoffread.c: Use string.h, not gdb_string.h.
1425 * xml-support.c: Use string.h, not gdb_string.h.
1426 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1427 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1428
1429 2013-11-18 Tom Tromey <tromey@redhat.com>
1430
1431 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1432 and strstr.
1433 * gnulib/aclocal.m4: Update.
1434 * gnulib/config.in: Update.
1435 * gnulib/configure: Update.
1436 * gnulib/import/Makefile.am: Update.
1437 * gnulib/import/Makefile.in: Update.
1438 * gnulib/import/errno.in.h: New.
1439 * gnulib/import/intprops.h: New.
1440 * gnulib/import/m4/errno_h.m4: New.
1441 * gnulib/import/m4/gnulib-cache.m4: Update.
1442 * gnulib/import/m4/gnulib-comp.m4: Update.
1443 * gnulib/import/m4/strerror.m4: New.
1444 * gnulib/import/m4/strstr.m4: New.
1445 * gnulib/import/m4/sys_socket_h.m4: New.
1446 * gnulib/import/strerror-override.c: New.
1447 * gnulib/import/strerror-override.h: New.
1448 * gnulib/import/strerror.c: New.
1449 * gnulib/import/strstr.c: New.
1450
1451 2013-11-18 Tom Tromey <tromey@redhat.com>
1452
1453 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1454 multiple lines.
1455
1456 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1457
1458 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1459 * sparc-tdep.h: And its prototype.
1460
1461 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1462 function.
1463 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1464
1465 2013-11-18 Pedro Alves <palves@redhat.com>
1466
1467 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1468 use unpack_pointer.
1469
1470 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1471
1472 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1473 to -list-features output.
1474
1475 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1476
1477 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1478 <read_addr_from_reg>: Renames "read_reg".
1479 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1480 Adjust comment.
1481 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1482 Use read_addr_from_reg in place of read_reg.
1483 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1484 in place of read_reg.
1485 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1486 dwarf_expr_read_reg.
1487 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1488 with dwarf_expr_read_addr_from_reg.
1489 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1490 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1491 needs_frame_read_addr_from_reg.
1492
1493 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1494
1495 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1496
1497 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1498
1499 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1500 NULL.
1501
1502 2013-11-15 Tom Tromey <tromey@redhat.com>
1503
1504 PR c++/16117:
1505 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1506 (classify_name): Likewise. Prefer a field of "this" over a
1507 filename.
1508 (classify_inner_name, yylex): Update.
1509
1510 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1511
1512 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1513 Extend the documentation a bit.
1514 <get_reg_value>: New field.
1515 * dwarf2loc.c (dwarf_expr_get_reg_value)
1516 (needs_frame_get_reg_value): New functions.
1517 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1518 callback.
1519 * dwarf2-frame.c (get_reg_value): New function.
1520 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1521 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1522 Use new callback to compute result_val.
1523
1524 2013-11-15 Alan Modra <amodra@gmail.com>
1525
1526 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1527 (ppc64_desc_entry_point): ..this. Update comments here and at
1528 call points.
1529 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1530 ppc64_standard_linkage3): Update comments.
1531 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1532 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1533 patterns.
1534 (ppc64_standard_linkage4_target): New function.
1535 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1536 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1537 nop match. Fix comment wrap.
1538
1539 2013-11-14 Pedro Alves <palves@redhat.com>
1540
1541 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1542 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1543
1544 2013-11-14 Pedro Alves <palves@redhat.com>
1545
1546 * infrun.c (struct execution_control_state)
1547 <stepped_after_stopped_by_watchpoint>: New field.
1548 (get_inferior_stop_soon): New function.
1549 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1550 moved to struct execution_control_state -- adjust. Use
1551 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1552 new function.
1553 (handle_signal_stop): New function, factored out from
1554 handle_inferior_event.
1555
1556 2013-11-14 Pedro Alves <palves@redhat.com>
1557
1558 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1559 return a boolean.
1560 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1561 boolean.
1562 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1563 Adjust to return a boolean.
1564 * breakpoint.h (enum bpstat_signal_value): Delete.
1565 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1566 (bpstat_explains_signal): Likewise.
1567 * infrun.c (handle_inferior_event) <random signal checks>:
1568 bpstat_explains_signal now returns a boolean - adjust. No longer
1569 consider hiding signals.
1570
1571 2013-11-14 Pedro Alves <palves@redhat.com>
1572
1573 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1574 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1575 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1576 BPSTAT_SIGNAL_HIDE.
1577 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1578 instead of BPSTAT_SIGNAL_HIDE.
1579 * infrun.c (handle_inferior_event): Rework random signal checks.
1580
1581 2013-11-14 Pedro Alves <palves@redhat.com>
1582
1583 * infrun.c (struct execution_control_state): Remove
1584 'random_signal' field.
1585 (handle_syscall_event): Use bpstat_causes_stop instead of
1586 bpstat_explains_signal. Don't set ecs->random_signal.
1587 (handle_inferior_event): New 'random_signal' local.
1588 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1589 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1590 bpstat_explains_signal. Don't set ecs->random_signal.
1591 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1592 ecs->random_signal.
1593
1594 2013-11-14 Pedro Alves <palves@redhat.com>
1595
1596 * infrun.c (handle_inferior_event): Move comment from the
1597 function's body to the function's description, adjusted.
1598
1599 2013-11-14 Pedro Alves <palves@redhat.com>
1600
1601 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1602 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1603 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1604 case.
1605
1606 2013-11-14 Tom Tromey <tromey@redhat.com>
1607
1608 * python/py-linetable.c (ltpy_has_line)
1609 (ltpy_get_all_source_lines): Fix loop termination condition.
1610
1611 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1612
1613 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1614 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1615 PARSE->LANGUAGE during command execution, if set.
1616 * mi/mi-parse.c: Add "language.h" #include.
1617 (mi_parse): Add parsing of "--language" command option.
1618
1619 * NEWS: Add entry mentioning the new "--language" command option.
1620
1621 2013-11-14 Pedro Alves <palves@redhat.com>
1622 Joel Brobecker <brobecker@adacore.com>
1623
1624 * cli/cli-utils.h (extract_arg_const): Add declaration.
1625 * cli/cli-utils.c (extract_arg_const): New function.
1626 (extract_arg): Reimplement using extract_arg_const.
1627
1628 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1629
1630 * language.h: Add "symtab.h" #include.
1631
1632 2013-11-13 Doug Evans <xdje42@gmail.com>
1633
1634 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1635 specific breakpoints, don't evaluate breakpoint condition if
1636 different thread.
1637
1638 2013-11-13 Keith Seitz <keiths@redhat.com>
1639
1640 PR c++/7935
1641 PR c++/10541
1642 * cp-support.c (insepct_type): Add support for substituting
1643 namespace aliases, too.
1644 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1645 for DW_TAG_imported_declaration.
1646 (add_partial_symbol): Likewise.
1647 (process_die): Handle namespace aliases with
1648 read_namespace_alias.
1649 (die_needs_namespace): Add DW_TAG_imported_declaration.
1650 (read_namespace_alias): New function.
1651 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1652 (new_symbol_full): Handle DW_TAG_imported_declaration.
1653
1654 2013-11-13 Keith Seitz <keiths@redhat.com>
1655
1656 * p-exp.y (uptok): Make first parameter const.
1657 (yylex): Make `tokstart' and `tokptr' const.
1658 Don't copy the lexer input to a temporary buffer.
1659 Make `p' const.
1660 Remove const workaround for parse_escape.
1661 Create a temporary buffer for a convenience variable instead
1662 of doing in-place modification of the input.
1663 If a match is found with a different case from the input,
1664 do not change the input at all.
1665 Use `tmp' to construct the resultant stoken instead of
1666 `tokstart'.
1667
1668 2013-11-13 Doug Evans <xdje42@gmail.com>
1669
1670 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1671
1672 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1673
1674 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1675 entry with "ada-exceptions".
1676
1677 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1678
1679 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1680 after re-initialization of OBJFILE's obstack.
1681
1682 2013-11-12 Doug Evans <xdje42@gmail.com>
1683
1684 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1685 bs->stop != 0 on entry. Update function comment. Simplify early
1686 exit for frame mismatch. Reindent rest of function.
1687
1688 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1689
1690 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1691 NULL.
1692
1693 2013-11-12 Doug Evans <dje@google.com>
1694
1695 Work around gold/15646.
1696 * dwarf2read.c (read_index_from_section): Update comment.
1697 (struct dw2_symtab_iterator): New member global_seen.
1698 (dw2_symtab_iter_init): Initialize it.
1699 (dw2_symtab_iter_next): Skip duplicate global symbols.
1700 (dw2_expand_symtabs_matching): Ditto.
1701
1702 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1703
1704 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1705 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1706 command.
1707 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1708 (mi_cmd_info_ada_exceptions): New function.
1709 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1710
1711 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1712
1713 * ada-lang.h: #include "vec.h".
1714 (struct ada_exc_info): New.
1715 (ada_exc_info): New typedef.
1716 (DEF_VEC_O(ada_exc_info)): New vector.
1717 (ada_exceptions_list): Add declaration.
1718 * ada-lang.c (ada_is_exception_sym)
1719 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1720 (sort_remove_dups_ada_exceptions_list)
1721 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1722 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1723 (ada_exceptions_list_1, ada_exceptions_list)
1724 (info_exceptions_command): New function.
1725 (_initialize_ada_language): Add "info exception" command.
1726
1727 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1728
1729 PR python/15629
1730 * NEWS: Add linetable feature.
1731 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1732 * python/py-linetable.c: New file.
1733 * python/py-symtab.c (stpy_get_linetable): New function.
1734 * python/python-internal.h (symtab_to_linetable_object): Declare.
1735 (gdbpy_initialize_linetable): Ditto.
1736 * python/python.c (_initialize_python): Call
1737 gdbpy_initialize_linetable.
1738
1739 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1740
1741 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1742 the documentation of fields "except_string" and "condition".
1743 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1744 CONDITION on the heap before passing it to
1745 create_ada_exception_catchpoint.
1746 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1747 CONDITION.
1748
1749 2013-11-11 Tom Tromey <tromey@redhat.com>
1750
1751 * config.in, configure: Rebuild.
1752 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1753
1754 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1755
1756 * remote-sim.c (gdbsim_detach): Break declaration into
1757 shorter lines. No code change.
1758
1759 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1760
1761 * remote-sim.c (gdbsim_detach): Fix prototype.
1762
1763 2013-11-08 Doug Evans <dje@google.com>
1764
1765 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1766 (create_debug_types_hash_table): Only print debugging messages for
1767 each TU if dwarf2-read >= 2.
1768 (process_queue): Ditto.
1769 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1770 Update doc string.
1771
1772 2013-11-08 Tom Tromey <tromey@redhat.com>
1773
1774 * configure: Rebuild.
1775 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1776
1777 2013-11-08 Tom Tromey <tromey@redhat.com>
1778
1779 * configure, config.in: Rebuild.
1780 * configure.ac: Remove unused configury.
1781
1782 2013-11-08 Tom Tromey <tromey@redhat.com>
1783
1784 * m32c-tdep.c: Use gdb_string.h.
1785
1786 2013-11-08 Tom Tromey <tromey@redhat.com>
1787
1788 * configure, config.in: Rebuild.
1789 * configure.ac: Remove all link.h-related checks.
1790
1791 2013-11-08 Tom Tromey <tromey@redhat.com>
1792
1793 * acinclude.m4: Include common.m4.
1794 * common/common.m4: New file.
1795 * configure, config.in: Rebuild.
1796 * configure.ac: Use GDB_AC_COMMON.
1797
1798 2013-11-08 Doug Evans <dje@google.com>
1799
1800 * NEWS: Mention that "set debug symtab-create" now accepts a
1801 verbosity level.
1802 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1803 to set the symtab's primary flag.
1804 * jit.c (finalize_symtab): Ditto.
1805 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1806 * symfile.c (allocate_symtab): Only print debugging messages for
1807 symtab_create_debug levels 2 and higher.
1808 * symtab.c (symtab_create_debug): Change type to unsigned int.
1809 (set_symtab_primary): New function.
1810 (_initialize_symtab): Change "set debug symtab-create" to a
1811 zuinteger option.
1812 * symtab.h (set_symtab_primary): Declare.
1813 (symtab_create_debug): Update decl.
1814
1815 2013-11-08 Tom Tromey <tromey@redhat.com>
1816
1817 * aix-thread.c (aix_thread_detach): Update.
1818 * corelow.c (core_detach): Update.
1819 * darwin-nat.c (darwin_detach): Update.
1820 * dec-thread.c (dec_thread_detach): Update.
1821 * gnu-nat.c (gnu_detach): Update.
1822 * go32-nat.c (go32_detach): Update.
1823 * inf-ptrace.c (inf_ptrace_detach): Update.
1824 * inf-ttrace.c (inf_ttrace_detach): Update.
1825 * linux-fork.c (linux_fork_detach): Update.
1826 * linux-fork.h (linux_fork_detach): Update.
1827 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1828 local for const-correctness.
1829 * linux-thread-db.c (thread_db_detach): Update.
1830 * monitor.c (monitor_detach): Update.
1831 * nto-procfs.c (procfs_detach): Update.
1832 * procfs.c (procfs_detach): Update.
1833 * record.c (record_detach): Update.
1834 * record.h (record_detach): Update.
1835 * remote-m32r-sdi.c (m32r_detach): Update.
1836 * remote-mips.c (mips_detach): Update.
1837 * remote-sim.c (gdbsim_detach): Update.
1838 * remote.c (remote_detach_1, remote_detach)
1839 (extended_remote_detach): Update.
1840 * sol-thread.c (sol_thread_detach): Update.
1841 * target.c (target_detach): Make "args" const.
1842 (init_dummy_target): Update.
1843 * target.h (struct target_ops) <to_detach>: Make argument const.
1844 (target_detach): Likewise.
1845 * windows-nat.c (windows_detach): Update.
1846
1847 2013-11-07 Doug Evans <dje@google.com>
1848
1849 PR 11786
1850 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1851 and align fields for PT_GNU_RELRO segments.
1852
1853 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1854
1855 PR python/15747
1856 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1857
1858 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1859
1860 * NEWS: Document Python temporary breakpoint support.
1861 * python/py-breakpoint.c (bppy_get_temporary): New function.
1862 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1863 to temporary if True.
1864
1865 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1866
1867 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1868 removed to allow analyzing unconditional branch instructions
1869 with PC-relative offsets of zero.
1870
1871 2013-11-07 Yao Qi <yao@codesourcery.com>
1872
1873 * mi/mi-cmd-var.c: Include "language.h".
1874 (mi_cmd_var_info_expression): Get language name from
1875 language_defn.
1876 * varobj.c (varobj_language_string): Remove.
1877 (variable_language): Remove declaration.
1878 (languages): Remove.
1879 (varobj_get_language): Change the type of return value.
1880 (variable_language): Remove.
1881 * varobj.h (enum varobj_languages): Remove.
1882 (varobj_language_string): Remove declaration.
1883 (varobj_get_language): Update declaration.
1884
1885 2013-11-07 Yao Qi <yao@codesourcery.com>
1886
1887 * language.h (struct language_defn) <la_natural_name>: New
1888 field.
1889 * ada-lang.c (ada_language_defn): Initialize field
1890 'la_natural_name'.
1891 * c-lang.c (c_language_defn): Likewise.
1892 (cplus_language_defn, asm_language_defn): Likewise.
1893 * d-lang.c (d_language_defn): Likewise.
1894 * f-lang.c (f_language_defn): Likewise.
1895 * go-lang.c (go_language_defn): Likewise.
1896 * jv-lang.c (java_language_defn): Likewise.
1897 * language.c (unknown_language_defn ): Likewise.
1898 (auto_language_defn): Likewise.
1899 * m2-lang.c (m2_language_defn): Likewise.
1900 * objc-lang.c (objc_language_defn): Likewise.
1901 * opencl-lang.c (opencl_language_defn): Likewise.
1902 * p-lang.c (pascal_language_defn): Likewise.
1903
1904 2013-11-07 Yao Qi <yao@codesourcery.com>
1905
1906 * language.c (language_str): Return const char *.
1907 (add_language): Add const to 'language_names'
1908 * language.h (struct language_defn) <la_name>: Add const.
1909 (language_str: Update declaration.
1910
1911 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1912
1913 * s390-linux-nat.c (s390_read_description): Consider the TE field
1914 in the HWCAP for determining 'have_regset_tdb'.
1915
1916 2013-11-06 Will Newton <will.newton@linaro.org>
1917
1918 PR gdb/12866
1919 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1920 values. (read_partial_die): Likewise.
1921
1922 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1923
1924 PR cli/16122
1925 * top.c (command_line_input): Unify interactivity tests to use
1926 input_from_terminal_p.
1927 * event-top.c (command_line_handler): Likewise.
1928
1929 2013-11-06 Yao Qi <yao@codesourcery.com>
1930
1931 * Makefile.in (check-perf): New target.
1932
1933 2013-11-05 Will Newton <will.newton@linaro.org>
1934
1935 PR gdb/7670
1936 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1937 (arm_print_float_info): Likewise.
1938
1939 2013-11-04 Anton Blanchard <anton@samba.org>
1940
1941 * target.c (memory_xfer_partial): Cap write to 4KB.
1942
1943 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1944
1945 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1946 probe scan even when the arch provides no get_longjmp_target.
1947
1948 2013-10-31 Pedro Alves <palves@redhat.com>
1949
1950 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1951 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1952 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1953 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1954 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1955 <bpstat handling>: If the bpstat chain wants the signal to be
1956 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1957 GDB_SIGNAL_TRAP.
1958
1959 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1960
1961 * breakpoint.c (update_watchpoint): Update error message and add
1962 an additional error message.
1963
1964 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1965
1966 * s390-tdep.h: Rename to...
1967 * s390-linux-tdep.h: ...here.
1968 * s390-tdep.c: Rename to...
1969 * s390-linux-tdep.c: ...here. Adjust #include.
1970 * s390-nat.c: Rename to...
1971 * s390-linux-nat.c: ...here. Adjust #include.
1972 * config/s390/s390.mh: Rename to...
1973 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1974 s390-linux-nat.o.
1975 * configure.host: Reflect host rename "s390" -> "linux".
1976 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1977 * Makefile.in (ALL_TARGET_OBS): Likewise.
1978 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1979 s390-linux-tdep.h.
1980 (ALLDEPFILES): Reflect rename of .c files.
1981
1982 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983
1984 * s390-nat.c: Whitespace cleanup.
1985 * s390-tdep.c: Likewise.
1986 * s390-tdep.h: Remove empty line at end of file.
1987
1988 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1989
1990 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1991 siginfo_size.
1992
1993 2013-10-29 Tom Tromey <tromey@redhat.com>
1994
1995 * utils.c (reg): Move undefinition...
1996 * gdb_curses.h: ... here. Update comment to mention AIX.
1997
1998 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1999
2000 * exec.h (add_target_sections_of_objfile): New declaration.
2001 * exec.c (add_target_sections_of_objfile): New function.
2002 * symfile.c (add_symbol_file_command): Update current target sections.
2003 (remove_symbol_file_command): New command.
2004 (symfile_free_objfile): New function.
2005 (_initialize_symfile): Register observer for free_objfile events.
2006 * NEWS: Add description of the remove-symbol-file command.
2007 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2008 * objfiles.c (free_objfile): Notify free_objfile.
2009 (is_addr_in_objfile): New function.
2010 * objfiles.h (is_addr_in_objfile): New declaration.
2011 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2012 events instead of solib_unloaded events.
2013 (_initialize_printcmd): Register observer for free_objfile instead
2014 of solib_unloaded notifications.
2015 * solib.c (remove_user_added_objfile): New function.
2016 (_initialize_symfile): Add remove-symbol-file.
2017
2018 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2019
2020 * infcmd.c (default_print_one_register_info): Use val_print to
2021 print all values even optimized out or unavailable ones. Don't
2022 try to print a raw form of optimized out or unavailable values.
2023
2024 2013-10-29 Yao Qi <yao@codesourcery.com>
2025
2026 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2027 parameter 'arg' instead of from program_space_data.
2028 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2029 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2030 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2031 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2032 * inflow.c (inflow_inferior_data_cleanup): Get data from
2033 parameter 'arg' instead of inferior_data.
2034 * registry.h: Add comments.
2035
2036 2013-10-28 Pedro Alves <palves@redhat.com>
2037
2038 * breakpoint.c (watchpoints_triggered)
2039 <!target_stopped_data_address>: Hardcode return 1.
2040
2041 2013-10-28 Pedro Alves <palves@redhat.com>
2042
2043 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2044 level and reindent.
2045
2046 2013-10-28 Pedro Alves <palves@redhat.com>
2047
2048 * infrun.c (process_event_stop_test): New function, factored out
2049 from handle_inferior_event.
2050 (handle_inferior_event): 'process_event_stop_test' is now a
2051 function instead of a goto label -- adjust.
2052
2053 2013-10-28 Pedro Alves <palves@redhat.com>
2054
2055 * infrun.c (handle_inferior_event): Move process_event_stop_test
2056 goto label to the else branch of the ecs->random_signal check,
2057 along with FRAME and GDBARCH re-fetching.
2058
2059 2013-10-28 Pedro Alves <palves@redhat.com>
2060
2061 * infrun.c (switch_back_to_stepped_thread): New function, factored
2062 out from handle_inferior_event.
2063 (handle_inferior_event): Adjust to call
2064 switch_back_to_stepped_thread. Call it also at the tail of the
2065 random signal handling, and return, instead of also handling
2066 random signals just before the stepping tests.
2067
2068 2013-10-28 Pedro Alves <palves@redhat.com>
2069
2070 * infrun.c (clear_stop_func): Delete.
2071 (handle_inferior_event): Don't call clear_stop_func and don't
2072 clear 'ecs->random_signal'.
2073
2074 2013-10-27 Yao Qi <yao@codesourcery.com>
2075
2076 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2077 (varobj_create, varobj_get_path_expr): Update.
2078 (varobj_value_has_mutated, varobj_update): Likewise.
2079 (create_child_with_value, new_root_variable): Likewise.
2080 (number_of_children, name_of_variable): Likewise.
2081 (value_of_child, my_value_of_variable): Likewise.
2082 (varobj_value_is_changeable_p): Likewise.
2083
2084 2013-10-25 Yao Qi <yao@codesourcery.com>
2085
2086 * language.h (struct lang_varobj_ops): Declare.
2087 (struct language_defn) <la_varobj_ops>: New field.
2088 * ada-lang.c: Include "varobj.h"
2089 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2090 ada_varobj_ops.
2091 * c-lang.c: Include "varobj.h"
2092 (c_language_defn): Initialize field 'la_varobj_ops' with
2093 c_varobj_ops.
2094 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2095 cplus_varobj_ops.
2096 (asm_language_defn): Initialize field 'la_varobj_ops' with
2097 default_varobj_ops.
2098 (minimal_language_defn): Likewise.
2099 * d-lang.c (d_language_defn): Likewise.
2100 * f-lang.c (f_language_defn): Likewise.
2101 * go-lang.c (go_language_defn): Likewise.
2102 * m2-lang.c (m2_language_defn): Likewise.
2103 * objc-lang.c (objc_language_defn): Likewise.
2104 * opencl-lang.c (opencl_language_defn): Likewise.
2105 * p-lang.c (pascal_language_defn): Likewise.
2106 * language.c (unknown_language_defn): Likewise.
2107 (auto_language_defn): Likewise.
2108 (local_language_defn): Likewise.
2109 * jv-lang.c (java_language_defn): Initialize field
2110 'la_varobj_ops' with java_varobj_ops.
2111 * varobj.c (varobj_create): Update.
2112 * varobj.h (default_varobj_ops): Define macro.
2113
2114 2013-10-25 Pedro Alves <palves@redhat.com>
2115
2116 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2117 static field value.
2118 (cp_print_static_field): If the value is entirely optimized out,
2119 print <optimized out> here.
2120 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2121 static field value.
2122 * p-valprint.c (pascal_object_print_static_field): If the value is
2123 entirely optimized out, print <optimized out> here.
2124 * valops.c (do_search_struct_field)
2125 (value_struct_elt_for_reference): No longer handle a NULL static
2126 field value.
2127 * value.c (value_static_field): Return an optimized out value
2128 instead of NULL.
2129
2130 2013-10-25 Yao Qi <yao@codesourcery.com>
2131
2132 * remote.c (remote_traceframe_info): Return early if
2133 traceframe is not selected.
2134
2135 2013-10-25 Yao Qi <yao@codesourcery.com>
2136
2137 * tracepoint.c (traceframe_fun): Remove.
2138 (traceframe_sal): Remove.
2139 (set_traceframe_context): Add local variables.
2140
2141 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2142
2143 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2144 and parameter name.
2145
2146 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2147
2148 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2149 failure from register information collection.
2150
2151 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2152
2153 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2154 member.
2155 (linux_corefile_thread_callback): Update accordingly.
2156 (linux_make_corefile_notes): Likewise.
2157
2158 2013-10-24 Pedro Alves <palves@redhat.com>
2159
2160 * NEWS (New options): Mention set/show startup-with-shell.
2161 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2162 instead of 3.
2163 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2164 startup-with-shell'.
2165 (show_startup_with_shell): New function.
2166 (_initialize_fork_child): Register the set/show startup-with-shell
2167 commands.
2168 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2169 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2170 * procfs.c (procfs_init_inferior): Remove comment.
2171 * infcmd.c (startup_with_shell): New global.
2172 * inferior.h (startup_with_shell): Declare global.
2173 (STARTUP_WITH_SHELL): Delete.
2174 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2175
2176 2013-10-23 Pedro Alves <palves@redhat.com>
2177
2178 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2179 * common/signals.c: Include "gdb_assert.h".
2180 (signals): New field 'symbol'.
2181 (SET): Use the 'symbol' parameter.
2182 (gdb_signal_to_symbol_string): New function.
2183 * infrun.c (handle_inferior_event) <random signal>: In debug
2184 output, print the random signal enum as string in addition to its
2185 number.
2186 * target/waitstatus.c (target_waitstatus_to_string): Print the
2187 signal's enum value as string instead of the (POSIX) signal name.
2188
2189 2013-10-23 Gary Benson <gbenson@redhat.com>
2190
2191 PR 16013
2192 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2193 from 32 to 18. Adjusted fscanf format string accordingly.
2194 (Avoids leaving cmd unterminated.)
2195 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2196 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2197 that local_address and remote_address will not overflow.
2198 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2199 leaving dependencies unterminated. Parse size as "%u" to match
2200 definition.
2201
2202 2013-10-22 Pedro Alves <palves@redhat.com>
2203
2204 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2205 set ecs->random signal.
2206
2207 2013-10-22 Pedro Alves <palves@redhat.com>
2208
2209 * infrun.c (keep_going): Update comments.
2210
2211 2013-10-22 Pedro Alves <palves@redhat.com>
2212
2213 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2214 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2215
2216 2013-10-22 Pedro Alves <palves@redhat.com>
2217
2218 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2219 GDB_EXC_BAD_ACCESS.
2220 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2221 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2222 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2223 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2224 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2225 (GDB_SIGNAL_LAST): Change description string.
2226 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2227 Adjust to signal renaming.
2228 * darwin-nat.c (darwin_decode_message): Likewise.
2229
2230 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2231
2232 * MAINTAINERS (Write After Approval): Add myself to the list.
2233
2234 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2235
2236 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2237 forced off, downgrade them to software watchpoints if possible,
2238 and error out if not possible.
2239 (watch_command_1): Move watchpoint type selection closer to
2240 watchpoint creation, and extend the comments.
2241
2242 2013-10-18 Pedro Alves <palves@redhat.com>
2243
2244 PR gdb/16062
2245 * infrun.c (handle_inferior_event): Keep going if we got a random
2246 signal we should not stop for, instead of falling through to the
2247 step tests.
2248
2249 2013-10-18 Yao Qi <yao@codesourcery.com>
2250
2251 * c-varobj.c (cplus_number_of_children): Fix indentation.
2252
2253 2013-10-17 Tom Tromey <tromey@redhat.com>
2254
2255 PR gdb/15995:
2256 * printcmd.c (printcmd): Call gdb_flush.
2257
2258 2013-10-17 Tom Tromey <tromey@redhat.com>
2259
2260 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2261 (elf_locate_sections): Update.
2262
2263 2013-10-17 Yao Qi <yao@codesourcery.com>
2264
2265 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2266 * ada-varobj.c: Remove the include of ada-varobj.h.
2267 (ada_varobj_get_number_of_children): Declare.
2268 (ada_varobj_get_name_of_child): Make it static.
2269 (ada_varobj_get_path_expr_of_child): Likewise.
2270 (ada_varobj_get_value_of_child): Likewise.
2271 (ada_varobj_get_type_of_child): Likewise.
2272 (ada_varobj_get_value_of_array_variable): Likewise.
2273 * ada-varobj.h: Remove.
2274
2275 2013-10-17 Yao Qi <yao@codesourcery.com>
2276
2277 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2278 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2279 * ada-varobj.c: Include "varobj.h".
2280 (ada_number_of_children): New. Moved from varobj.c.
2281 (ada_name_of_variable, ada_name_of_child): Likewise.
2282 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2283 (ada_type_of_child, ada_value_of_variable): Likewise.
2284 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2285 (ada_varobj_ops): New.
2286 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2287 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2288 * gdbtypes.h (get_target_type): Declare.
2289 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2290 "ada-lang.h".
2291 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2292 (ANONYMOUS_UNION_NAME): Likewise.
2293 (get_type, get_value_type, get_target_type): Remove declarations.
2294 (value_get_print_value, varobj_value_get_print_value): Likewise.
2295 (c_number_of_children, c_name_of_variable): Likewise.
2296 (c_name_of_child, c_path_expr_of_child): Likewise.
2297 (c_value_of_child, c_type_of_child): Likewise.
2298 (c_value_of_variable, cplus_number_of_children): Likewise.
2299 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2300 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2301 (cplus_value_of_child, cplus_type_of_child): Likewise.
2302 (cplus_value_of_variable, java_number_of_children): Likewise.
2303 (java_name_of_variable, java_name_of_child): Likewise.
2304 (java_path_expr_of_child, java_value_of_child): Likewise.
2305 (java_type_of_child, java_value_of_variable): Likewise.
2306 (ada_number_of_children, ada_name_of_variable): Likewise.
2307 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2308 (ada_value_of_child, ada_type_of_child): Likewise.
2309 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2310 (ada_value_has_mutated): Likewise.
2311 (struct language_specific): Move it to varobj.h.
2312 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2313 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2314 Callers update.
2315 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2316 Make it extern.
2317 (is_anonymous_child): Move it to c-varobj.c and rename to
2318 varobj_is_anonymous_child. Caller update.
2319 (get_type): Move it to c-varobj.c.
2320 (get_value_type): Rename it varobj_get_value_type. Make it
2321 extern.
2322 (get_target_type): Move it gdbtypes.c.
2323 (varobj_formatted_print_options): New function.
2324 (value_get_print_value): Rename it to
2325 varobj_value_get_print_value and make it extern.
2326 (varobj_value_is_changeable_p): Make it extern.
2327 (adjust_value_for_child_access): Move it to c-varobj.c.
2328 (default_value_is_changeable_p): Rename it to
2329 varobj_default_value_is_changeable_p. Make it extern.
2330 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2331 (c_name_of_child, c_path_expr_of_child): Likewise.
2332 (c_value_of_child, c_type_of_child): Likewise.
2333 (c_value_of_variable, cplus_number_of_children): Likewise.
2334 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2335 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2336 (cplus_value_of_child, cplus_type_of_child): Likewise.
2337 (cplus_value_of_variable): Likewise.
2338 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2339 (java_name_of_child, java_path_expr_of_child): Likewise.
2340 (java_value_of_child, java_type_of_child): Likewise.
2341 (java_value_of_variable): Likewise.
2342 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2343 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2344 (ada_value_of_child, ada_type_of_child): Likewise.
2345 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2346 (ada_value_has_mutated): Likewise.
2347 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2348 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2349 (c_varobj_ops, cplus_varobj_ops): Declare.
2350 (java_varobj_ops, ada_varobj_ops): Declare.
2351 (varobj_default_value_is_changeable_p): Declare.
2352 (varobj_value_is_changeable_p): Declare.
2353 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2354 (varobj_get_path_expr_parent): Declare.
2355 (varobj_value_get_print_value): Declare.
2356 (varobj_formatted_print_options): Declare.
2357 (varobj_restrict_range): Declare.
2358
2359 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2360
2361 * target/waitstatus.h (target_waitkind): Remove spurious
2362 character from the comments.
2363
2364 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2365
2366 * gdbarch.sh (get_longjmp_target): Add method documentation.
2367 * gdbarch.h: Regenerate.
2368
2369 2013-10-16 Tom Tromey <tromey@redhat.com>
2370
2371 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2372 label.
2373
2374 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2375
2376 * gcore.in: Call GDB using the full path to the gcore script.
2377 Error out if the GDB binary is not found.
2378
2379 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2380
2381 PR gdb/16014
2382 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2383 sizeof.
2384
2385 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 PR gdb/16042
2388 * target.c (target_disable_btrace): Fix invalid return value for
2389 void function.
2390 (target_teardown_btrace): Likewise.
2391
2392 2013-10-14 Yao Qi <yao@codesourcery.com>
2393
2394 * varobj.c (struct varobj): Move most of the fields to
2395 varobj.h.
2396 (struct varobj_dynamic): New struct.
2397 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2398 (varobj_has_more): Likewise.
2399 (dynamic_varobj_has_child_method): Likewise.
2400 (update_dynamic_varobj_children): Likewise.
2401 (varobj_get_num_children): Likewise.
2402 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2403 (install_new_value_visualizer): Likewise.
2404 (install_new_value_visualizer, install_new_value): Likewise.
2405 (varobj_update, new_variable, free_variable): Likewise.
2406 (my_value_of_variable, value_get_print_value): Likewise.
2407 (install_visualizer): Change the type of parameter 'var' to
2408 'struct varobjd_dynamic *'. Callers update.
2409 * varobj.h (struct varobj): Moved from varobj.c.
2410 (struct varobj) <dynamic>: New field.
2411
2412 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2413
2414 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2415 as the preferred name of r30.
2416 * nios2-linux-tdep.c (reg_offsets): Likewise.
2417 * features/nios2-cpu.xml: Likewise.
2418 * features/nios2-linux.c: Regenerated.
2419 * features/nios2.c: Regenerated.
2420 * regformats/nios2-linux.dat: Regenerated.
2421
2422 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2423
2424 Canonicalize directories for EXEC_FILENAME.
2425 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2426 exec_filename.
2427 * utils.c (gdb_realpath_keepfile): New function.
2428 * utils.h (gdb_realpath_keepfile): New declaration.
2429
2430 2013-10-11 Doug Evans <dje@google.com>
2431
2432 * Makefile.in (GDBFLAGS): New variable.
2433 (run): New rule.
2434
2435 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2436
2437 * NEWS: Add entry documenting the new "-catch-assert" and
2438 "-catch-exception" GDB/MI commands.
2439
2440 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2441
2442 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2443 "enabled".
2444 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2445 "enabled". Set B->ENABLE_STATE accordingly.
2446 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2447 ada-lang.c.
2448 (create_ada_exception_catchpoint): Add declaration.
2449 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2450 (create_ada_exception_catchpoint): Make non-static. Add new
2451 parameter "disabled". Use it in call to
2452 init_ada_exception_breakpoint.
2453 (catch_ada_exception_command): Add parameter "enabled" in call
2454 to create_ada_exception_catchpoint.
2455 (catch_assert_command): Likewise.
2456
2457 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2458 Add declarations.
2459 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2460 "catch-exception" commands.
2461 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2462 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2463
2464 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2465
2466 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2467 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2468 of all its enumerates with "ada_". Update the rest of this
2469 file throughout.
2470
2471 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2472
2473 * ada-lang.c (ada_decode_exception_location): Delete.
2474 (create_ada_exception_catchpoint): Remove arguments "sal",
2475 "addr_string" and "ops". Add argument "ex_kind" instead.
2476 Adjust implementation accordingly, calling ada_exception_sal
2477 to get the entities it no longer gets passed as arguments.
2478 Document the function's arguments.
2479 (catch_ada_exception_command): Use catch_ada_exception_command_split
2480 instead of ada_decode_exception_location, and update call to
2481 create_ada_exception_catchpoint.
2482 (catch_ada_assert_command_split): Renames
2483 ada_decode_assert_location. Remove parameters "addr_string" and
2484 "ops", and now returns void. Adjust implementation accordingly.
2485 Update the function documentation.
2486 (catch_assert_command): Use catch_ada_assert_command_split
2487 instead of ada_decode_assert_location. Update call to
2488 create_ada_exception_catchpoint.
2489
2490 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2491
2492 * utils.h (perror_warning_with_name): Add declaration.
2493 * utils.c (perror_warning_with_name): New function.
2494 * cli/cli-cmds.c (source_script_with_search): Add call to
2495 perror_warning_with_name if from_tty is nul.
2496
2497 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2498
2499 * utils.c (perror_string): New function, extracted out of
2500 throw_perror_with_name.
2501 (throw_perror_with_name): Rework to use perror_string.
2502
2503 2013-10-11 Yao Qi <yao@codesourcery.com>
2504
2505 * remote.c (discard_pending_stop_replies_in_queue): Update
2506 declaration.
2507 (struct stop_reply) <rs>: New field.
2508 (remove_stop_reply_of_remote_state): New function.
2509 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2510 Callers update. Pass remove_stop_reply_of_remote_state to
2511 QUEUE_iterate.
2512 (remote_parse_stop_reply): Initialize field 'rs'.
2513
2514 2013-10-10 Will Newton <will.newton@linaro.org>
2515
2516 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2517 linux_init_abi.
2518
2519 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2520
2521 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2522 serial_baud_show_cmd.
2523 (_initialize_cli_cmds): Delete the code creating the
2524 "set/show remotebaud" commands.
2525 * serial.c (baud_rate): Move here from top.c.
2526 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2527 (_initialize_serial): Create "set/show serial baud" commands.
2528 Add "set/show remotebaud" command aliases.
2529 * top.c (baud_rate): Moved to serial.c.
2530 * NEWS: Document the new "set/show serial baud" commands,
2531 replacing "set/show remotebaud".
2532
2533 2013-10-09 Pedro Alves <palves@redhat.com>
2534
2535 * breakpoint.c (insert_bp_location): Use memory_error_message to
2536 build the memory error string.
2537 * c-lang.c: Include "gdbcore.h".
2538 (c_get_string): Use memory_error to throw error.
2539 (target_xfer_memory_error): Delete.
2540 (memory_error_message): New, factored out from
2541 target_xfer_memory_error.
2542 (memory_error): Change parameter type to target_xfer_error.
2543 Rewrite.
2544 (read_memory): Use memory_error instead of
2545 target_xfer_memory_error.
2546 * gdbcore.h: Include "target.h".
2547 (memory_error): Change parameter type to target_xfer_error.
2548 (memory_error_message): Declare function.
2549 * target.c (target_read_memory, target_read_stack)
2550 (target_write_memory, target_write_raw_memory): Return
2551 TARGET_XFER_E_IO on error. Adjust comments.
2552 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2553 instead of EIO.
2554 * target.h (target_read, target_insert_breakpoint)
2555 (target_remove_breakpoint): Adjust comments.
2556 * valprint.c (partial_memory_read): Rename parameter, and adjust
2557 comment.
2558 (val_print_string): Use memory_error_message to build the memory
2559 error string.
2560
2561 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2564 result variable. Rename variable fopen_e_ever_failed to
2565 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2566
2567 2013-10-09 Pedro Alves <palves@redhat.com>
2568
2569 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2570 (monitor_write_memory_longlongs, monitor_write_memory_block):
2571 Constify 'myaddr' parameter.
2572 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2573 helper.
2574 (monitor_xfer_partial): New function.
2575 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2576 hook. Install a to_xfer_partial hook.
2577
2578 2013-10-09 Tom Tromey <tromey@redhat.com>
2579
2580 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2581 bfd_get_alt_debug_link_info.
2582
2583 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2584
2585 New flag OBJF_NOT_FILENAME.
2586 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2587 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2588 allocate_objfile.
2589 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2590 symbol_file_add_from_bfd.
2591 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2592 allocate_objfile.
2593 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2594 NULL.
2595 * objfiles.h (OBJF_NOT_FILENAME): New.
2596
2597 2013-10-08 Tom Tromey <tromey@redhat.com>
2598
2599 * Makefile.in (SFILES): Add build-id.c.
2600 (HFILES_NO_SRCDIR): Add build-id.h.
2601 * build-id.c: New file, largely from elfread.c. Modified
2602 most functions.
2603 * build-id.h: New file.
2604 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2605 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2606 Search for dwz file using build-id.
2607 * elfread.c (build_id_bfd_get, build_id_verify)
2608 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2609
2610 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2611
2612 * ada-lang.c (compare_names_with_case): Renamed from
2613 compare_names, adding a new parameter "casing" and its handling.
2614 New function documentation.
2615 (compare_names): New function, implemented using
2616 compare_names_with_case.
2617
2618 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2619
2620 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2621
2622 2013-10-07 Tom Tromey <tromey@redhat.com>
2623
2624 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2625 demangled_names_hash.
2626 (free_objfile): Don't delete the demangled_names_hash.
2627 * objfiles.h (struct objfile_per_bfd_storage)
2628 <demangled_names_hash>: New field.
2629 (struct objfile) <demangled_names_hash>: Move to
2630 objfile_per_bfd_storage.
2631 * symfile.c (reread_symbols): Don't delete the
2632 demangled_names_hash.
2633 * symtab.c (create_demangled_names_hash): Update.
2634 (symbol_set_names): Update.
2635
2636 2013-10-07 Tom Tromey <tromey@redhat.com>
2637
2638 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2639 needs_relocations>: New fields.
2640 (gdb_bfd_requires_relocations): New function.
2641 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2642 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2643 the BFD needs relocations applied.
2644
2645 2013-10-07 Pedro Alves <palves@redhat.com>
2646
2647 PR breakpoints/11568
2648 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2649 the thread list" instead of "gone".
2650
2651 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2652
2653 * NEWS: Mention new convenience variable $_exitsignal.
2654 * corelow.c (core_open): Reset exit convenience variables. Set
2655 $_exitsignal to the uncaught signal which generated the corefile.
2656 * infrun.c (handle_inferior_event): Reset exit convenience
2657 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2658 (clear_exit_convenience_vars): New function.
2659 * inferior.h (clear_exit_convenience_vars): New prototype.
2660
2661 2013-10-06 Yao Qi <yao@codesourcery.com>
2662
2663 * varobj.h: Add comments to enum varobj_languages.
2664
2665 2013-10-04 Doug Evans <dje@google.com>
2666
2667 Add support for DWP file format version 2.
2668 * NEWS: Mention support for DWP file format version 2.
2669 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2670 union of asection, containing_section. New fields virtual_offset
2671 and is_virtual. Change type of readin filed from int to char.
2672 (dwo_sections, dwo_file): Tweak comments.
2673 (dwp_v2_section_ids): New enum.
2674 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2675 str_offsets, types.
2676 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2677 All uses updated.
2678 (virtual_v2_dwo_sections): New struct.
2679 (dwp_hash_table): New fields version, nr_columns. Change type of
2680 section_pool field to a union.
2681 (dwp_file): New field version.
2682 (dwarf2_has_info): Check for virtual sections.
2683 (get_containing_section): New function.
2684 (get_section_bfd_owner, get_section_bfd_section): Call it.
2685 (dwarf2_locate_sections): Update.
2686 (dwarf2_section_empty_p): Update.
2687 (dwarf2_read_section): Handle virtual sections.
2688 (locate_dwz_sections): Update.
2689 (create_dwp_hash_table): Document and handle V2 format.
2690 (locate_v1_virtual_dwo_sections): Renamed from
2691 locate_virtual_dwo_sections and update. All callers updated.
2692 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2693 Delete arg htab. Rename arg section_index to unit_index.
2694 All callers updated.
2695 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2696 All uses updated.
2697 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2698 (lookup_dwo_unit_in_dwp): Add V2 support.
2699 (dwarf2_locate_dwo_sections): Update.
2700 (dwarf2_locate_common_dwp_sections): Renamed from
2701 dwarf2_locate_dwp_sections and update. All callers updated.
2702 (dwarf2_locate_v2_dwp_sections): New function.
2703 (open_and_init_dwp_file): Add V2 support.
2704 (read_str_index): New locals str_section, str_offsets_section.
2705
2706 2013-10-04 Pedro Alves <palves@redhat.com>
2707
2708 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2709 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2710 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2711 describing comments with references to ptid.h.
2712 * common/ptid.h: Remove intro description of constructors,
2713 accessors and predicates.
2714 (struct ptid): Reformat.
2715 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2716 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2717 describing comments.
2718
2719 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2720
2721 * aix-thread.c (sync_threadlists): Add missing ')' in call
2722 to ptid_build.
2723
2724 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2725
2726 * procfs.c (procfs_init_inferior): Fix typo causing the build
2727 to fail.
2728
2729 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2730
2731 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2732
2733 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2734
2735 * mi/mi-main.c (run_one_inferior): Add function description.
2736 Make ARG a pointer to an integer whose value determines whether
2737 we should "run" or "start" the program.
2738 (mi_cmd_exec_run): Add handling of the "--start" option.
2739 Reject all other command-line options.
2740 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2741
2742 2013-10-04 Yao Qi <yao@codesourcery.com>
2743
2744 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2745 (struct notif_client) <pending_event>: Moved
2746 to struct remote_notif_state.
2747 <id>: New field.
2748 (struct remote_notif_state) <pending_event>: New field.
2749 (notif_event_xfree): Declare.
2750 * remote-notif.c (handle_notification): Adjust.
2751 (notif_event_xfree): New function.
2752 (do_notif_event_xfree): Call notif_event_xfree.
2753 (remote_notif_state_xfree): Call notif_event_xfree to free
2754 each element in field pending_event.
2755 * remote.c (discard_pending_stop_replies): Remove declaration.
2756 (discard_pending_stop_replies_in_queue): Declare.
2757 (remote_close): Call discard_pending_stop_replies_in_queue
2758 instead of discard_pending_stop_replies.
2759 (remote_start_remote): Adjust.
2760 (stop_reply_xfree): Call notif_event_xfree.
2761 (notif_client_stop): Adjust initialization.
2762 (remote_notif_remove_all): Rename it to ...
2763 (remove_stop_reply_for_inferior): ... this. Update comments.
2764 Don't check INF is NULL.
2765 (discard_pending_stop_replies): Return early if notif_state is
2766 NULL. Adjust. Don't check INF is NULL.
2767 (remote_notif_get_pending_events): Adjust.
2768 (discard_pending_stop_replies_in_queue): New function.
2769 (remote_wait_ns): Likewise.
2770
2771 2013-10-04 Yao Qi <yao@codesourcery.com>
2772
2773 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2774 (notif_queue): Remove.
2775 (remote_notif_process): Add one parameter 'notif_queue'.
2776 Update comments. Callers update.
2777 (remote_async_get_pending_events_token): Remove.
2778 (remote_notif_register_async_event_handler): Remove.
2779 (remote_notif_unregister_async_event_handler): Remove.
2780 (handle_notification): Add parameter 'notif_queue'. Update
2781 comments. Callers update.
2782 (notif_xfree): Remove.
2783 (remote_notif_state_allocate): New function.
2784 (remote_notif_state_xfree): New function.
2785 (_initialize_notif): Remove code to allocate queue.
2786 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2787 (struct remote_notif_state): New.
2788 (handle_notification): Update declaration.
2789 (remote_notif_process): Likewise.
2790 (remote_notif_register_async_event_handler): Remove.
2791 (remote_notif_unregister_async_event_handler): Remove.
2792 (remote_notif_state_allocate): Declare.
2793 (remote_notif_state_xfree): Declare.
2794 * remote.c (struct remote_state) <notif_state>: New field.
2795 (remote_close): Don't call
2796 remote_notif_unregister_async_event_handler. Call
2797 remote_notif_state_xfree.
2798 (remote_open_1): Don't call
2799 remote_notif_register_async_event_handler. Call
2800 remote_notif_state_allocate.
2801
2802 2013-10-04 Yao Qi <yao@codesourcery.com>
2803
2804 * varobj.c (create_child_with_value): Remove 'const' from the
2805 type of parameter 'name'.
2806 (varobj_add_child): Likewise.
2807 (install_dynamic_child): Remove 'const' from the type of
2808 parameter 'name'.
2809 (varobj_add_child): Likewise.
2810 (create_child_with_value): Likewise. Update comments. Don't
2811 duplicate 'name'.
2812 (update_dynamic_varobj_children): Duplicate 'name'
2813 and pass it to install_dynamic_child.
2814
2815 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2816
2817 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2818 conversion logic to occur after PyLong_Check. Comment on order
2819 change significance.
2820 * python/py-arch.c (archpy_disassemble): Comment on order of
2821 conversion for integers and longs.
2822
2823 2013-10-03 Pedro Alves <palves@redhat.com>
2824
2825 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2826 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2827 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2828 PTRACE_O_TRACEFORK is not supported.
2829 (linux_test_for_tracesysgood): New function.
2830 (linux_test_for_tracefork): New function, factored out from
2831 linux_check_ptrace_features, and also don't kill child_pid here.
2832
2833 2013-10-03 Tristan Gingold <gingold@adacore.com>
2834
2835 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2836 Remove verbose error reporting. Use detected state to
2837 thread_set_state call.
2838 (i386_darwin_dr_get): Fix return type. Remove verbose error
2839 report.
2840 Remove trailing spaces.
2841
2842 2013-10-02 Pedro Alves <palves@redhat.com>
2843
2844 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2845 val_print_optimized_out.
2846 * jv-valprint.c (java_print_value_fields): Likewise.
2847 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2848 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2849 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2850 new optimized out value.
2851 * findvar.c (address_from_register): Likewise.
2852 * frame.c (put_frame_register): Tweak error string to say the
2853 register was not saved, rather than optimized out.
2854 * infcmd.c (default_print_one_register_info): Adjust call to
2855 val_print_optimized_out. Use value_of_register instead of
2856 get_frame_register_value.
2857 * mi/mi-main.c (output_register): Use value_of_register instead of
2858 get_frame_register_value.
2859 * valprint.c (valprint_check_validity): Likewise.
2860 (val_print_optimized_out): New value parameter. If the value is
2861 lval_register, print <not saved> instead.
2862 (value_check_printable, val_print_scalar_formatted): Adjust calls
2863 to val_print_optimized_out.
2864 * valprint.h (val_print_optimized_out): New value parameter.
2865 * value.c (struct value) <optimized_out>: Extend comment.
2866 (error_value_optimized_out): New function.
2867 (require_not_optimized_out): Use it. Use a different string for
2868 lval_register values.
2869 * value.h (error_value_optimized_out): New declaration.
2870 * NEWS: Mention <not saved>.
2871
2872 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2873
2874 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2875 strcmp to compare two symtab filenames.
2876
2877 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2878
2879 * symtab.c (search_symbols_equal): Delete.
2880 (sort_search_symbols_remove_dups): Replace call to
2881 search_symbols_equal by call to compare_search_syms,
2882 adjusting as necessary.
2883
2884 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2885
2886 PR python/15579
2887 * python/python.c: Document gdb.execute command in Python help.
2888
2889 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2890
2891 * python/py-frame.c (frame_info_to_frame_object): Use
2892 gdbpy_convert_exception. Clean up Python object on failure.
2893
2894 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2895
2896 * python/lib/gdb/command/frame_filters.py
2897 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2898 (ShowFrameFilterPriority.invoke): Ditto.
2899
2900 2013-10-01 Keith Seitz <keiths@redhat.com>
2901
2902 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2903 (parse_linespec): Make 'argptr' const.
2904 Remove temporary cast of 'argptr' to const char **.
2905 (decode_line_full): Pass const pointer to parse_linespec.
2906 (decode_line_1): Likewise.
2907 (decode_objc): Make local variable 'new_argptr' const.
2908 (find_function_symbols): Remove temporary cast to char *
2909 to find_imps.
2910 * objc-lang.c (find_imps): Make argument 'method' const.
2911 Return const.
2912 * objc-lang.h (find_imps): Likewise.
2913
2914 2013-10-01 Keith Seitz <keiths@redhat.com>
2915
2916 * completer.c (skip_quoted_chars): Make all arguments const.
2917 Return const.
2918 (skip_quoted): Likewise.
2919 * completer.h (skip_quoted_chars): Likewise.
2920 (skip_quoted): Likewise.
2921 * defs.h (skip_quoted): Remove duplicate declaration.
2922 * jv-exp.y: Include completer.h.
2923 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2924 * p-exp.y: Include completer.h.
2925
2926 2013-10-01 Keith Seitz <keiths@redhat.com>
2927
2928 * c-exp.y (parse_number): Make first argument const.
2929 Make a copy of the input to manipulate.
2930 (c_parse_escape): Make first argument const.
2931 Make local variable 'tokptr' const.
2932 (parse_string_or_char): Make first two arguments const.
2933 (macro_original_text): Make const.
2934 (lex_one_token): Make local variable 'tokstart' const.
2935 Likewise for local variables named 'p'.
2936 Cast away const for struct stoken (temporary).
2937 * c-lang.h (c_parse_escpae): Make first argument const.
2938 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2939 const.
2940 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2941 var_string case.
2942 * f-exp.y (parse_number): Make first argument const.
2943 (match_string_literal): Make local variable 'tokstart'
2944 const.
2945 (yylex): Make local variable 'p' const.
2946 Cast away const for struct stoken (temporary).
2947 * go-exp.y (parse_number): Make first argument const.
2948 (parse_string_or_char): Likewise.
2949 Make local variable 'tokstart' const.
2950 (lex_one_token): Likewise for numerous locals called 'p'.
2951 Cast away const for struct stoken (temporary).
2952 * jv-exp.y (parse_number): Make first argument const.
2953 Make local variables 'tokstart' and 'tokptr' const.
2954 Cast away const for call to skip_quoted (temporary).
2955 (yylex): Make local variable 'p' const.
2956 Cast away const for struct stoken (temporary).
2957 * m2-exp.y (parse_number): Make local variable 'p' const.
2958 (yylex): Likewise for 'tokstart'.
2959 Cast away const for struct stoken (temporary).
2960 Make local variable 'p' const.
2961 * macroexp.c (get_character_constant): Pass a const string
2962 to c_parse_escape.
2963 (get_string_literal): Likewise.
2964 (macro_expand_next): Make first argument const.
2965 Cast away const for init_shared_buffer.
2966 * macroexp.h (macro_expand_next): Make first argument const.
2967 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2968 Pass a const string to c_parse_escape.
2969 Make local variables 'p' and 'namestart' const.
2970 * parse.c (lexptr): Make const.
2971 (prev_lexptr): Likewise.
2972 (find_template_name_end): Return const.
2973 Make argument const, too.
2974 (parse_exp_in_context): Make first argument const.
2975 Remove the entire const_hack.
2976 (parse_exp_in_context_1): Make first argument const.
2977 * parser-defs.h (find_template_name_end): Return const.
2978 Make argument const, too.
2979 (lexptr): Make const.
2980 (prev_lexptr): Likewise.
2981 * utils.c (parse_escape): Make second argument const.
2982 * utils.h (parse_escape): Likewise.
2983
2984 2013-10-01 Keith Seitz <keiths@redhat.com>
2985
2986 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2987 is now const.
2988 (block_lookup): Make 'raw_name' and 'name' const.
2989 * ada-lex.l (processString): Update for struct stoken.ptr.
2990 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2991 (operator_stoken): Likewise.
2992 (lex_one_token): Remove temporary cast to char * for
2993 'yylval.sval.ptr'.
2994 * f-exp.y (yylex): Likewise.
2995 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2996 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2997 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2998 'yylval.sval.ptr'.
2999 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3000 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3001 * linespec.c (struct ls_parser): Make 'stream' const.
3002 (find_parameter_list_end): Make argument 'input' and local
3003 variable 'p' const.
3004 (linespec_lexer_lex_string): Make local variables 'start' and
3005 'p' const.
3006 Use skip_spaces_const instead of skip_spaces.
3007 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3008 const.
3009 (parse_linespec): Temporarily cast 'argptr' to const for
3010 'parser->lexer.stream'.
3011 * m2-exp.y (yylex): Remove temporary cast to char * for
3012 'yylval.sval.ptr'.
3013 * objc-lang.c (add_msglist): Make local variable 'p' const.
3014 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3015 (exp : STRING): Make 'sp' const.
3016 (parse_number): Make argument 'p' const.
3017 * parser-defs.h (struct stoken): Make 'ptr' const.
3018
3019 2013-10-01 Doug Evans <dje@google.com>
3020
3021 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3022
3023 2013-10-01 Yao Qi <yao@codesourcery.com>
3024
3025 * varobj.c (c_value_of_root): Remove declaration.
3026 (cplus_value_of_root, java_value_of_root): Likewise.
3027 (ada_value_of_root): Likewise.
3028 (struct language_specific) <value_of_root>: Remove.
3029 (languages): Update initialization.
3030 (check_scope): Move earlier.
3031 (c_value_of_root): Move earlier and rename to ...
3032 (value_of_root_1): ... this.
3033 (value_of_root): Caller update.
3034 (cplus_value_of_root, java_value_of_root): Remove.
3035 (ada_value_of_root): Remove.
3036
3037 2013-10-01 Yao Qi <yao@codesourcery.com>
3038
3039 * varobj.c (varobj_format_string): Remove "unknown".
3040 (languages): Remove the first element.
3041 * varobj.h (enum varobj_languages): Remove vlang_c.
3042
3043 2013-10-01 Yao Qi <yao@codesourcery.com>
3044
3045 * varobj.c (struct language_specific) <language>: Remove.
3046 (languages): Update the initialization.
3047
3048 2013-10-01 Yao Qi <yao@codesourcery.com>
3049
3050 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3051 "solib-target.h". Include "windows-tdep.h".
3052 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3053 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3054 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3055 windows-tdep.o to gdb_target_obs.
3056
3057 2013-10-01 Yao Qi <yao@codesourcery.com>
3058
3059 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3060 "solib-target.h".
3061 (amd64_windows_init_abi): Don't call set_solib_ops and
3062 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3063 windows_init_abi instead.
3064 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3065 "solib-target.h".
3066 (i386_cygwin_init_abi): Don't call set_solib_ops,
3067 set_gdbarch_has_dos_based_file_system and
3068 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3069 windows_init_abi instead.
3070 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3071 (windows_init_abi): New function.
3072 (windows_iterate_over_objfiles_in_search_order): Make it
3073 static.
3074 * windows-tdep.h (windows_init_abi): Declare.
3075 (windows_iterate_over_objfiles_in_search_order): Remove
3076 declaration.
3077
3078 2013-10-01 Jerome Guitton <guitton@adacore.com>
3079
3080 Checked in by Joel Brobecker <brobecker@adacore.com>
3081 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3082 incomplete dictionnary instead of None in case of missing
3083 environment variables.
3084 (elinos_init): in case of an incomplete environment, best
3085 effort to load system libraries instead of abort.
3086
3087 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3088
3089 * ada-lang.c (ada_has_this_exception_support): Ignore
3090 mst_solib_trampoline minimal symbols.
3091
3092 2013-09-30 Tristan Gingold <gingold@adacore.com>
3093
3094 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3095 hardware watchpoint.
3096 (i386_darwin_dr_set): Support 32 and 64 bit states.
3097 (i386_darwin_dr_get): Likewise.
3098 (i386_darwin_dr_set_control): Make static.
3099 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3100 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3101
3102 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3103
3104 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3105 Replace TIDGET with ptid_get_lwp.
3106 Replace GET_LWP with ptid_get_lwp.
3107 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3108 Replace BUILD_THREAD with ptid_build.
3109 Replace BUILD_LWP with ptid_build.
3110 Replace PIDGET with ptid_get_pid.
3111 Replace TIDGET with ptid_get_lwp.
3112 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3113 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3114 Replace TIDGET with ptid_get_lwp.
3115 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3116 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3117 Replace TIDGET with ptid_get_lwp.
3118 Replace GET_LWP with ptid_get_lwp.
3119 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3120 * auxv.c: Likewise.
3121 * breakpoint.c: Likewise.
3122 * common/ptid.c (ptid_is_pid): Condense check for
3123 null_ptid and minus_one_ptid.
3124 (ptid_lwp_p): New function.
3125 (ptid_tid_p): New function.
3126 * common/ptid.h: Update comments for accessors.
3127 (ptid_lwp_p): New prototype.
3128 (ptid_tid_p): New prototype.
3129 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3130 * gcore.c: Replace PIDGET with ptid_get_pid.
3131 * gdbthread.h: Likewise.
3132 * gnu-nat.c: Likewise.
3133 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3134 Replace TIDGET with ptid_get_lwp.
3135 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3136 * hppanbsd-nat.c: Likewise.
3137 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3138 Replace TIDGET with ptid_get_lwp.
3139 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3140 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3141 * infcmd.c: Likewise.
3142 * inferior.h: Likewise.
3143 * inflow.c: Likewise.
3144 * infrun.c: Likewise.
3145 * linux-fork.c: Likewise.
3146 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3147 Replace GET_PID with ptid_get_pid.
3148 Replace is_lwp with ptid_lwp_p.
3149 Replace GET_LWP with ptid_get_lwp.
3150 Replace BUILD_LWP with ptid_build.
3151
3152 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3153
3154 * common/linux-btrace.c: Move sys/syscall.h out of the
3155 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3156 Also check for SYS_perf_event_open before attempting to buid.
3157
3158 2013-09-27 Doug Evans <dje@google.com>
3159
3160 * dwarf2read.c (dwarf2_section_info): Add comment.
3161 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3162 All uses updated.
3163 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3164 (dwarf2_read_section): Delete unused local "header". Add section
3165 name to error message.
3166 (create_dwo_in_dwp): Tweak comment.
3167 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3168
3169 * dwarf2read.c (die_reader_specs): Tweak comment.
3170 (get_section_bfd_owner, get_section_bfd_section): New functions.
3171 (get_section_name, get_section_file_name): New functions.
3172 (get_section_id, get_section_flags): New functions.
3173 (*): Use new functions to access section fields.
3174
3175 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3176 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3177 arg "htab". All callers updated.
3178 (create_debug_types_hash_table): Remove redundant copy of
3179 abbrev_section.
3180 (create_dwo_in_dwp): Tweak comments.
3181 (read_str_index): Tweak comment. Record dwarf form name in static
3182 local.
3183
3184 2013-09-27 Pedro Alves <palves@redhat.com>
3185
3186 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3187 (remote_filename_p): Add comment.
3188 * remote.c (remote_filename_p): Adjust to use
3189 REMOTE_SYSROOT_PREFIX.
3190 * solib.c (solib_find): When deciding whether we need to add a
3191 directory separator, check whether the sysroot is "remote:"
3192 instead of checking whether the patch has a drive spec. Add
3193 comments.
3194
3195 2013-09-27 Pedro Alves <palves@redhat.com>
3196
3197 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3198 Delete fields.
3199 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3200 directly.
3201
3202 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3203
3204 Fix set debug frame output.
3205 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3206 SENTINEL_FRAME entry lower to match enum frame_type order.
3207
3208 2013-09-26 Pierre Muller <muller@sourceware.org>
3209
3210 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3211 AMD64_R15_REGNUM when a register index is expected.
3212 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3213 Substitute in array.
3214 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3215 (amd64_push_arguments): Substitute in integer_regnum array.
3216
3217 2013-09-25 Doug Evans <dje@google.com>
3218
3219 * objfiles.c (allocate_objfile): Move comment to better place.
3220
3221 New option "set debug symfile on".
3222 * NEWS: Mention "set debug symfile".
3223 * Makefile.in (SFILES): Add symfile-debug.c.
3224 (COMMON_OBS): Add symfile-debug.o.
3225 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3226 objfile's symbol functions.
3227 * objfiles.h (objfile_set_sym_fns): Declare.
3228 * symfile-debug.c: New file.
3229 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3230 objfile's symbol functions.
3231 (reread_symbols): Ditto.
3232
3233 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3234 All uses updated.
3235 (add_symtab_fns): Update prototype.
3236 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3237 (registered_sym_fns): ... this.
3238 (symtab_fns): Update.
3239 (add_symtab_fns): New arg "flavour". All callers updated.
3240 (find_sym_fns): Rewrite to use new sym_fns registry.
3241
3242 * symfile.h (struct sym_fns): Add "objfile" argument to
3243 sym_read_linetable. All uses updated.
3244
3245 * symtab.c (domain_name, search_domain_name): New functions.
3246 * symtab.h (domain_name, search_domain_name): Declare.
3247
3248 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3249 map_matching_symbols so objfile is first. All uses updated.
3250 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3251 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3252
3253 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3254
3255 PR shlibs/8882
3256 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3257 link map entries.
3258
3259 2013-09-24 Doug Evans <dje@google.com>
3260
3261 * objfiles.c (free_objfile): Move comment.
3262
3263 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3264
3265 * ada-exp.y (string_to_operator): Delete.
3266 (dummy_string_to_ada_operator): Delete.
3267
3268 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3269
3270 Revert:
3271 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3272 amd64-tdep.c.
3273 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3274 call_dummy_integer_regs, and classify.
3275 * amd64-tdep.h (amd64_classify): Add declaration.
3276 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3277 (amd64_reg_class): Delete, moved to i386-tdep.h.
3278 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3279 Replace call to amd64_classify by call to tdep->classify.
3280 (amd64_push_arguments): Get the list of registers to use for
3281 passing integer parameters from the gdbarch tdep structure,
3282 rather than using a hardcoded one. Replace calls to amd64_classify
3283 by calls to tdep->classify.
3284 (amd64_push_dummy_call): Get the register number used for
3285 the "hidden" argument from tdep->call_dummy_integer_regs.
3286 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3287 and tdep->call_dummy_integer_regs. Set tdep->classify.
3288
3289 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3290
3291 Revert:
3292 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3293 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3294 where tdep->memory_args_by_pointer is non-zero.
3295
3296 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3297
3298 Revert:
3299 * i386-tdep.h (struct gdbarch_tdep): Add new field
3300 integer_param_regs_saved_in_caller_frame.
3301 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3302 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3303
3304 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3305
3306 * amd64-windows-tdep.c: #include "value.h"
3307 (amd64_windows_classify): Delete.
3308 (amd64_windows_passed_by_integer_register)
3309 (amd64_windows_passed_by_xmm_register)
3310 (amd64_windows_passed_by_pointer)
3311 (amd64_windows_adjust_args_passed_by_pointer)
3312 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3313 (amd64_windows_push_dummy_call): New functions.
3314 (amd64_windows_init_abi): Remove setting of
3315 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3316 tdep->classify, tdep->memory_args_by_pointer and
3317 tdep->integer_param_regs_saved_in_caller_frame.
3318 Add call to set_gdbarch_push_dummy_call.
3319
3320 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3321
3322 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3323 objfile->original_name.
3324
3325 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3326
3327 Pass down original filename for objfile.
3328 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3329 * elfread.c (elf_symfile_read): Likewise.
3330 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3331 longer set ORIGINAL_NAME.
3332 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3333 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3334 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3335 symbol_file_add_from_bfd call.
3336 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3337 (macho_check_dsym): Add parameter filenamep. Change function comment.
3338 Set *filenamep.
3339 (macho_symfile_read): New variable dsym_filename. Update
3340 macho_check_dsym call. Use it for symbol_file_add_separate.
3341 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3342 it. Use it for objfile->original_name.
3343 (objfile_name): Return OBFD's filename, if available.
3344 * objfiles.h (allocate_objfile): Add new parameter name.
3345 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3346 * symfile-mem.c (symbol_file_add_from_memory): Update
3347 symbol_file_add_from_bfd call.
3348 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3349 comment for it.
3350 (symbol_file_add_with_addrs): New parameter name, add function comment
3351 for it. Remove variable name. Update allocate_objfile call.
3352 (symbol_file_add_separate): New parameter name, add function comment
3353 for it. Update symbol_file_add_with_addrs call.
3354 (symbol_file_add_from_bfd): New parameter name. Update
3355 symbol_file_add_with_addrs call.
3356 (symbol_file_add): Update symbol_file_add_from_bfd call.
3357 (reread_symbols): New variable original_name. Save
3358 objfile->original_name by it.
3359 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3360 second parameter.
3361
3362 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3363
3364 Code cleanup: Add objfile_name accessor function.
3365 * ada-lang.c (is_known_support_routine): Use objfile_name.
3366 * auto-load.c (source_gdb_script_for_objfile)
3367 (auto_load_objfile_script): Likewise.
3368 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3369 * dbxread.c (dbx_symfile_read): Likewise.
3370 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3371 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3372 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3373 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3374 (lookup_dwp_signatured_type, lookup_dwo_unit)
3375 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3376 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3377 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3378 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3379 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3380 (read_subrange_type, load_partial_dies, read_partial_die)
3381 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3382 (die_containing_type, build_error_marker_type, lookup_die_type)
3383 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3384 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3385 (get_DW_AT_signature_type, write_psymtabs_to_index)
3386 (save_gdb_index_command): Likewise.
3387 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3388 Likewise.
3389 * expprint.c (dump_subexp_body_standard): Likewise.
3390 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3391 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3392 original_name.
3393 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3394 obj_name, use objfile_name for it, use the variable.
3395 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3396 Use objfile_name.
3397 * machoread.c (macho_symtab_read, macho_check_dsym)
3398 (macho_symfile_relocate): Likewise.
3399 * maint.c (maintenance_translate_address): Likewise.
3400 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3401 * minsyms.c (install_minimal_symbols): Likewise.
3402 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3403 original_name.
3404 (filter_overlapping_sections): Use objfile_name.
3405 (objfile_name): New function.
3406 * objfiles.h (struct objfile): Rename field name to original_name.
3407 (objfile_name): New prototype.
3408 * printcmd.c (sym_info, address_info): Use objfile_name.
3409 * probe.c (parse_probes, collect_probes, compare_probes)
3410 (info_probes_for_ops): Likewise.
3411 * progspace.c (clone_program_space): Likewise.
3412 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3413 (maintenance_info_psymtabs): Likewise.
3414 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3415 (source_section_scripts): Likewise.
3416 * python/py-objfile.c (objfpy_get_filename): Likewise.
3417 * python/py-progspace.c (pspy_get_filename): Likewise.
3418 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3419 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3420 * solib.c (solib_read_symbols): Likewise.
3421 * stabsread.c (scan_file_globals): Likewise.
3422 * stap-probe.c (handle_stap_probe): Likewise.
3423 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3424 (find_separate_debug_file_by_debuglink): Likewise.
3425 (reread_symbols): Likewise. Use the objfile field name renamed to
3426 original_name.
3427 (allocate_symtab): Use objfile_name.
3428 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3429 (dump_objfile, dump_msymbols, dump_symtab_1)
3430 (maintenance_print_msymbols, maintenance_print_objfiles)
3431 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3432 * target.c (target_translate_tls_address, target_info): Likewise.
3433 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3434 objfile_name.
3435
3436 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3437
3438 Code cleanup.
3439 * probe.c (parse_probes): Rename variable objfile_name to
3440 objfile_namestr.
3441
3442 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3443
3444 Remove solib-sunos.c.
3445 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3446 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3447 * objfiles.c (rt_common_objfile): Remove.
3448 (free_objfile): Remove rt_common_objfile comparison.
3449 * objfiles.h (rt_common_objfile): Remove.
3450 * solib-sunos.c: Remove.
3451 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3452
3453 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3454
3455 Remove a.out NetBSD and OpenBSD hosts.
3456 * NEWS (Removed native configurations): New.
3457 * config/arm/nbsdaout.mh: Remove.
3458 * config/i386/nbsdaout.mh: Remove.
3459 * config/i386/obsdaout.mh: Remove.
3460 * config/m68k/nbsdaout.mh: Remove.
3461 * config/sparc/nbsdaout.mh: Remove.
3462 * config/vax/nbsdaout.mh: Remove.
3463 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3464 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3465 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3466 error.
3467 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3468 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3469 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3470
3471 2013-09-23 Tom Tromey <tromey@redhat.com>
3472
3473 * linespec.c (struct minsym_and_objfile): Remove.
3474 (minsym_and_objfile_d): Remove.
3475 (struct linespec, struct collect_info, linespec_parse_basic)
3476 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3477 (compare_msymbols, find_method, find_function_symbols)
3478 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3479 (add_minsym, search_minsyms_for_name): Update.
3480
3481 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3482
3483 * regcache.c: Add include of valprint.h.
3484 (dump_endian_bytes): Delete.
3485 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3486
3487 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3488
3489 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3490
3491 2013-09-19 Pedro Alves <palves@redhat.com>
3492
3493 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3494 breakpoints.
3495
3496 2013-09-19 Pedro Alves <palves@redhat.com>
3497 Thomas Schwinge <thomas@codesourcery.com>
3498 Yue Lu <hacklu.newborn@gmail.com>
3499
3500 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3501 Take a gdb_byte pointer instead of a char pointer.
3502
3503 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3504 gnu_xfer_partial helper.
3505 (gnu_xfer_partial): New function.
3506 (gnu_target): Don't install a deprecated_xfer_memory hook.
3507 Install a to_xfer_partial hook.
3508
3509 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3510
3511 Constification.
3512 * main.c (captured_main): Replace catch_command_errors by
3513 catch_command_errors_const. Twice.
3514 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3515 (symbol_file_add): Make name parameter const.
3516 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3517 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3518 variable name. Change their usage accordingly.
3519 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3520 const.
3521 (symbol_file_add_main): Make args parameter const.
3522
3523 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3524 Ulrich Weigand <uweigand@de.ibm.com>
3525
3526 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3527 of c_value member.
3528 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3529
3530 2013-09-18 Pedro Alves <palves@redhat.com>
3531 Yue Lu <hacklu.newborn@gmail.com>
3532
3533 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3534 (gnu_create_inferior)
3535 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3536 (set_sig_thread_cmd): Use the lwpid field of ptids to
3537 store/extract thread ids instead of the tid field.
3538 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3539
3540 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3541
3542 * infcmd.c (default_print_one_register_info): Add detection of
3543 optimized out values.
3544 (default_print_registers_info): Switch to using
3545 get_frame_register_value.
3546
3547 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3548
3549 * infrun.c (handle_inferior_event): Check if we know the
3550 function start address before setting a resume breakpoint.
3551
3552 2013-09-18 Pedro Alves <palves@redhat.com>
3553
3554 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3555 minus_one_ptid instead of looking at the ptid's tid field and
3556 comparing that to -1.
3557
3558 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3559
3560 * main.h (get_gdb_program_name): Remove extra whitespace.
3561
3562 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3563
3564 * main.h (get_gdb_program_name): Add declaration.
3565 * main.c (get_gdb_program_name): Add definition.
3566
3567 2013-09-17 Doug Evans <dje@google.com>
3568
3569 * dwarf2read.c: Move definitions of complaint functions to after
3570 forward declarations of local functions.
3571
3572 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3573 Pedro Alves <palves@redhat.com>
3574
3575 PR gdb/11568
3576 * breakpoint.c (remove_threaded_breakpoints): New function.
3577 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3578 as thread_exit observer.
3579
3580 2013-09-17 Pedro Alves <palves@redhat.com>
3581
3582 PR gdb/15911
3583 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3584 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3585 * corelow.c (core_open):
3586 * frame.h (print_stack_frame, print_frame_info): New
3587 'set_current_sal' parameter.
3588 * infcmd.c (finish_command, kill_command): Adjust call to
3589 print_stack_frame.
3590 * inferior.c (inferior_command): Likewise.
3591 * infrun.c (normal_stop): Likewise.
3592 * linux-fork.c (linux_fork_context): Likewise.
3593 * record-full.c (record_full_goto_entry, record_full_restore):
3594 Likewise.
3595 * remote-mips.c (common_open): Likewise.
3596 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3597 Use it.
3598 (print_frame_info): New 'set_current_sal' parameter. Set the last
3599 displayed sal depending on the new paremeter instead of looking at
3600 print_what.
3601 (backtrace_command_1, select_and_print_frame, frame_command)
3602 (current_frame_command, up_command, down_command): Adjust call to
3603 print_stack_frame.
3604 * thread.c (print_thread_info, restore_selected_frame)
3605 (do_captured_thread_select): Adjust call to print_stack_frame.
3606 * tracepoint.c (tfind_1): Likewise.
3607 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3608 (mi_cmd_stack_info_frame): Likewise.
3609 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3610 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3611
3612 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3613
3614 * value.c (isvoid_internal_fn): Replace "parameter" with
3615 "argument".
3616
3617 2013-09-16 Stan Shebs <stan@codesourcery.com>
3618
3619 * README: Update references to writing code for GDB.
3620 * configure.ac (build_warnings): Remove obsolete comment.
3621 * configure: Regenerate.
3622 * gdbarch.sh: Remove references to gdbint.texinfo.
3623 * gdbarch.h: Regenerate.
3624 * gdbtypes.c (objfile_type): Remove comments referencing internals
3625 manual and D10V.
3626
3627 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3628
3629 * NEWS: Mention new convenience function $_isvoid.
3630 * value.c (isvoid_internal_fn): New function.
3631 (_initialize_values): Add new convenience function $_isvoid.
3632
3633 2013-09-16 Pierre Muller <muller@sourceware.org>
3634
3635 * arm-linux-tdep.c: Add "elf/common.h" header.
3636 Remove AT_HWCAP macro definintion as it is provided in
3637 added include file.
3638 * s390-tdep.c: Remove system header <elf.h>
3639 Add "elf/common.h" header for AT_HWCAP definition.
3640 (s390_core_read_description): Use correct CORE_ADDR
3641 for hwcap local variable used as third parameter
3642 of function target_auxv_search.
3643
3644 2013-09-14 Pierre Muller <muller@sourceware.org>
3645 Tom Tromey <tromey@redhat.com>
3646 Pedro Alves <palves@redhat.com>
3647
3648 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3649 mode if operating system doesn't know O_CLOEXEC.
3650
3651 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3652
3653 Code cleanup.
3654 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3655 inner block.
3656
3657 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3658
3659 * NEWS: Mention TDB support.
3660 * features/s390-tdb.xml: New file.
3661 * features/s390-te-linux64.xml: New file.
3662 * features/s390x-te-linux64.xml: New file.
3663 * features/Makefile (WHICH): Add new tdescs above.
3664 (s390-te-linux64-expedite): Set.
3665 (s390x-te-linux64-expedite): Set.
3666 * features/s390-te-linux64.c: New file (generated).
3667 * features/s390x-te-linux64.c: New file (generated).
3668 * regformats/s390-te-linux64.dat: New file (generated).
3669 * regformats/s390x-te-linux64.dat: New file (generated).
3670 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3671 (HWCAP_S390_TE): Likewise.
3672 (S390_TDB_DWORD0_REGNUM): Likewise.
3673 (S390_TDB_DWORD0_REGNUM): Likewise.
3674 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3675 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3676 (S390_TDB_ATIA_REGNUM): Likewise.
3677 (S390_TDB_R0_REGNUM): Likewise.
3678 (S390_TDB_R1_REGNUM): Likewise.
3679 (S390_TDB_R2_REGNUM): Likewise.
3680 (S390_TDB_R3_REGNUM): Likewise.
3681 (S390_TDB_R4_REGNUM): Likewise.
3682 (S390_TDB_R5_REGNUM): Likewise.
3683 (S390_TDB_R6_REGNUM): Likewise.
3684 (S390_TDB_R7_REGNUM): Likewise.
3685 (S390_TDB_R8_REGNUM): Likewise.
3686 (S390_TDB_R9_REGNUM): Likewise.
3687 (S390_TDB_R10_REGNUM): Likewise.
3688 (S390_TDB_R11_REGNUM): Likewise.
3689 (S390_TDB_R12_REGNUM): Likewise.
3690 (S390_TDB_R13_REGNUM): Likewise.
3691 (S390_TDB_R14_REGNUM): Likewise.
3692 (S390_TDB_R15_REGNUM): Likewise.
3693 (S390_NUM_REGS): Increase.
3694 (S390_IS_TDBREGSET_REGNUM): New macro.
3695 (s390_regmap_tdb): Declare.
3696 (s390_sizeof_tdbregset): Define.
3697 (tdesc_s390_te_linux64): Declare.
3698 (tdesc_s390x_te_linux64): Likewise.
3699 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3700 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3701 (s390_regmap_tdb): New regmap.
3702 (s390_supply_tdb_regset): New function.
3703 (s390_tdb_regset): New regset.
3704 (s390_linux64v2_regset_sections): Add TDB regset to list.
3705 (s390x_linux64v2_regset_sections): Likewise.
3706 (s390_regset_from_core_section): Recognize TDB core note section.
3707 (s390_core_read_description): If HWCAP indicates TE support,
3708 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3709 (s390_gdbarch_init): Handle TDB regset.
3710 (_initialize_s390_tdep): Initialize new tdescs.
3711 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3712 (have_regset_tdb): New variable.
3713 (s390_native_supply): Support register invalidation.
3714 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3715 (check_regset): Treat ENODATA as "regset exists".
3716 (s390_linux_fetch_inferior_registers): Add TDB.
3717 (s390_read_description): Check for TDB existence and select
3718 appropriate tdesc.
3719 * gdbserver/Makefile.in (clean): Add removal of new makefile
3720 targets.
3721 (s390-te-linux64.c): New makefile target.
3722 (s390x-te-linux64.c): Likewise.
3723 * gdbserver/configure.srv (srv_regobj): Append new objects
3724 s390-te-linux64.o and s390x-te-linux64.o.
3725 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3726 s390x-te-linux64.xml, and s390-tdb.xml.
3727 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3728 declaration.
3729 (tdesc_s390_te_linux64): Likewise.
3730 (init_registers_s390x_te_linux64): Likewise.
3731 (tdesc_s390x_te_linux64): Likewise.
3732 (s390_check_regset): Treat ENODATA as "regset exists".
3733 (s390_arch_setup): Add TDB regset support.
3734 (initialize_low_arch): Initialize registers for new tdescs.
3735
3736 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3737
3738 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3739 (S390_IS_FPREGSET_REGNUM): New macro.
3740 * s390-tdep.c (s390_dwarf_regmap): Make const.
3741 (regnum_is_gpr_full): New function for replacing repeated code.
3742 (s390_pseudo_register_name): Use it.
3743 (s390_pseudo_register_type): Likewise.
3744 (s390_pseudo_register_read): Likewise.
3745 (s390_pseudo_register_write): Likewise.
3746 (s390_unwind_pseudo_register): Likewise.
3747 (s390_regmap_gregset): New format for regmap.
3748 (s390x_regmap_gregset): Likewise.
3749 (s390_regmap_fpregset): Likewise.
3750 (s390_regmap_upper): Likewise.
3751 (s390_regmap_last_break): Likewise.
3752 (s390_regmap_system_call): Likewise.
3753 (s390_supply_regset): Adjust to new regmap format.
3754 (s390_collect_regset): Likewise.
3755 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3756 (s390_native_collect): Likewise.
3757 (supply_gregset): Likewise.
3758 (fill_gregset): Likewise.
3759 (supply_fpregset): Likewise.
3760 (fill_fpregset): Likewise.
3761 (fetch_regset): Likewise.
3762 (store_regset): Likewise.
3763 (s390_linux_fetch_inferior_registers): Likewise.
3764 (s390_linux_fetch_inferior_registers): Likewise.
3765
3766 2013-09-12 Andrew Pinski <apinski@cavium.com>
3767
3768 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3769
3770 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3771
3772 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3773
3774 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3775
3776 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3777
3778 2013-09-06 Pedro Alves <palves@redhat.com>
3779
3780 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3781 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3782 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3783 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3784 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3785 gdb_stdlog.
3786
3787 2013-09-06 Pedro Alves <palves@redhat.com>
3788
3789 * remote-sim.c (dump_mem): Constify buf parameter.
3790 gdbsim_xfer_inferior_memory): Rename to ...
3791 (gdbsim_xfer_memory): ... this. Adjust interface as
3792 target_xfer_partial helper.
3793 (gdbsim_xfer_partial): New function.
3794 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3795 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3796
3797 2013-09-06 Pedro Alves <palves@redhat.com>
3798
3799 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3800 host_address_to_string, and send debug output to gdb_stdlog.
3801
3802 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3803
3804 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3805 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3806 gdb_target_obs for cris target.
3807 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3808 (cris_gdbarch_init): Move calls to
3809 set_gdbarch_fetch_tls_load_module_address and
3810 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3811 Add call to gdbarch_init_osabi.
3812 * cris-linux-tdep.c: New file.
3813 * cris-tdep.h: New file.
3814
3815 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3816
3817 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3818 to deprecated_init_ui_hook.
3819
3820 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3821
3822 * cli/cli-interp.c (_initialize_cli_interp): Add a
3823 command_loop_proc to interp_procs.
3824 * event-top.c (cli_command_loop): Change signature to match
3825 interp_command_loop_ftype.
3826 * event-top.h (cli_command_loop): Same.
3827 * interps.c (interp_new): Require every interpreter to have a
3828 command_loop_proc.
3829 (current_interp_command_loop): Just call the command_loop_proc on
3830 the current interpreter.
3831 * tui/tui-interp.c (_initialize_tui_interp): Add a
3832 command_loop_proc to interp_procs.
3833
3834 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3835
3836 * cris-tdep.c (cris_gdbarch_init): Add call to
3837 get_gdbarch_fetch_tls_load_module_address.
3838
3839 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3840
3841 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3842 (cris_elf_gregset_t): Rename from elf_gregset_t.
3843 (crisv32_elf_gregset_t): Adjust.
3844 (cris_supply_gregset, fetch_core_registers): Adjust.
3845
3846 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3847
3848 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3849
3850 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3851
3852 * defs.h (deprecated_command_loop_hook): Remove, including
3853 references in comments.
3854 * interps.c (current_interp_command_loop): No longer use
3855 deprecated_command_loop_hook.
3856 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3857 setup.
3858 * top.c (deprecated_command_loop_hook): Remove.
3859
3860 2013-09-05 Pedro Alves <palves@redhat.com>
3861
3862 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3863 local is now int instead of ULONGEST. Print it with %d
3864 instead of paddress.
3865
3866 2013-09-05 Tristan Gingold <gingold@adacore.com>
3867
3868 * MAINTAINERS: Remove avr maintainership.
3869
3870 2013-09-05 Pedro Alves <palves@redhat.com>
3871
3872 * findvar.c (value_of_register): Rework in terms of
3873 value_of_register_lazy.
3874
3875 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3876
3877 * symfile.c (add_symbol_file_command): Remove trailing
3878 whitespaces and blank line after comment.
3879
3880 2013-09-05 Pedro Alves <palves@redhat.com>
3881
3882 * tui/tui-regs.c (tui_register_format): Don't look at the
3883 register's name here. Return string representing register
3884 value instead of storing it in the data element.
3885 (tui_get_register): Compare register string representations
3886 instead of register value states and contents.
3887
3888 2013-09-05 Pedro Alves <palves@redhat.com>
3889
3890 PR tui/15933
3891 * tui/tui-regs.c (tui_show_registers): Show registers of the
3892 selected frame, not the current frame.
3893
3894 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3895
3896 * MAINTAINERS (Write After Approval): Add myself to the list.
3897
3898 2013-09-04 Doug Evans <dje@google.com>
3899
3900 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3901 (queue_and_load_dwo_tu): New function.
3902 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3903 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3904 Make dependent_cu optional.
3905 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3906 and an older .gdb_index is in use, queue and load all its TUs too.
3907
3908 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3911 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3912 variable search_flags.
3913 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3914 (OPF_RETURN_REALPATH): ... here.
3915 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3916 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3917 call. Twice.
3918 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3919 openp call.
3920 * solib.c (solib_find): Likewise. Four times.
3921 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3922 in the function comment and for the realpath_fptr variable.
3923 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3924 (find_and_open_source): Likewise. Twice.
3925 * symfile.c (symfile_bfd_open): Likewise, also twice.
3926
3927 2013-09-04 Doug Evans <dje@google.com>
3928
3929 * progspace.c (save_current_space_and_thread): Remove unnecessary
3930 call to save_current_inferior.
3931
3932 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3933
3934 * sh64-tdep.c (sh64_do_register): Return after printing message
3935 about unavailable register contents.
3936
3937 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3938 Pedro Alves <palves@redhat.com>
3939
3940 * symfile.c (add_symbol_file_command): Error out on unknown
3941 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3942 options and collapse into single conditional branch.
3943
3944 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3945
3946 * inf-child.c (inf_child_follow_fork): New parameter
3947 detach_fork.
3948 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3949 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3950 * inferior.h (detach_fork): Remove.
3951 * infrun.c (detach_fork): Adjust comment and make it
3952 static.
3953 (follow_fork): Pass detach_fork parameter to
3954 target_follow_fork.
3955 * linux-nat.c (linux_child_follow_fork): New parameter
3956 detach_fork.
3957 * target.c (target_follow_fork): New parameter detach_fork.
3958 Pass detach_fork as parameter and print its value.
3959 * target.h (struct target_ops) <to_follow_fork>: New int
3960 parameter.
3961 (target_follow_fork): New parameter detach_fork.
3962
3963 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3964
3965 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3966 Replace sec->bfd by sec->the_bfd_section->owner.
3967
3968 2013-09-03 Yao Qi <yao@codesourcery.com>
3969
3970 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3971 from linux_has_shared_address_space.
3972 (linux_has_shared_address_space): Call linux_is_uclinux.
3973 * linux-tdep.h (linux_is_uclinux): Declare.
3974 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3975 linux_is_uclinux.
3976
3977 2013-09-03 Yao Qi <yao@codesourcery.com>
3978
3979 * config/djgpp/fnchange.lst: Remove entry of
3980 i386-interix-nat.c and i386-interix-tdep.c.
3981 * configure.ac: Remove '*-*-interix*'.
3982 * configure: Re-generated.
3983 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3984 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3985 obsolete comments.
3986 * osabi.c (gdb_osabi_names): Remove "Interix".
3987
3988 2013-09-03 Yao Qi <yao@codesourcery.com>
3989
3990 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3991
3992 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3993
3994 * record.h (record_print_flag) <record_print_src_line,
3995 record_print_insn_range>: Rename into ...
3996 (record_print_flag) <record_print_src_line,
3997 record_print_insn_range>: ... this. Update all users.
3998
3999 2013-09-02 Pierre Muller <muller@sourceware.org>
4000
4001 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4002 error code.
4003
4004 2013-09-02 Pierre Muller <muller@sourceware.org>
4005
4006 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4007 by use of plongest function.
4008
4009 2013-09-02 Tristan Gingold <gingold@adacore.com>
4010
4011 * NEWS: Add entry mentioning support for native Windows x64
4012 SEH data.
4013
4014 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4015 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4016 (struct amd64_windows_frame_cache): New struct.
4017 (amd64_windows_w2gdb_regnum): New global.
4018 (pc_in_range, amd64_windows_frame_decode_epilogue)
4019 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4020 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4021 (amd64_windows_frame_this_id): New functions.
4022 (amd64_windows_frame_unwind): New static global.
4023 (amd64_windows_skip_prologue): New function.
4024 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4025 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4026 with amd64_windows_skip_prologue.
4027
4028 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4029
4030 GDB 7.6.1 released.
4031
4032 2013-08-30 Pedro Alves <palves@redhat.com>
4033
4034 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4035 SRC_AND_LOC.
4036
4037 2013-08-30 Pedro Alves <palves@redhat.com>
4038
4039 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4040 warning text.
4041
4042 2013-08-30 Pedro Alves <palves@redhat.com>
4043
4044 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4045 Adjust arguments to print_stack_frame.
4046
4047 2013-08-30 Pedro Alves <palves@redhat.com>
4048
4049 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4050
4051 2013-08-30 Pedro Alves <palves@redhat.com>
4052
4053 * frame.h (show_and_print_stack_frame): Delete declaration.
4054
4055 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4056
4057 PR python/15461
4058 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4059 (archpy_name): Check for valid architecture.
4060 (archpy_disassemble): Ditto.
4061
4062 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4063
4064 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4065 instead of "long long" in call to ptrace64.
4066
4067 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4068
4069 * mi/mi-interp.c (mi_command_loop): Change signature to match
4070 interp_command_loop_ftype.
4071 (mi1_command_loop): Remove.
4072 (mi2_command_loop): Remove.
4073 (mi3_command_loop): Remove.
4074 (mi_interpreter_resume): Remove setting of
4075 deprecated_command_loop_hook.
4076 (_initialize_mi_interp): Set mi_command_loop as the command loop
4077 callback.
4078
4079 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4080
4081 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4082 value_type.
4083
4084 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4085
4086 * value.c (allocate_value_contents): Make static.
4087 * value.h (allocate_value_contents): Remove prototype.
4088
4089 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4090
4091 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4092 of assembling value via allocate_value_lazy and attribute setter.
4093 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4094 assembling value via allocate_value_lazy and attribute setter.
4095 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4096 assembling value via allocate_value_lazy and attribute setter.
4097
4098 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4099
4100 * value.c (value_from_contents_and_address): Replace allocate_value and
4101 memcpy with value_from_contents.
4102
4103 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4104
4105 * python/py-framefilter.c (py_print_frame): Remove usage of
4106 PyString_AsString. Use python_string_to_host_string instead.
4107 Refactor function to work with a string as a new allocation
4108 instead of a pointer.
4109 (py_print_frame): Ditto.
4110 * python/lib/gdb/frames.py (return_list): Cain iterators together
4111 instead of adding them as a list.
4112 (_sort_list): Call return_list, and remove duplicate code.
4113 (execute_frame_filters): Convert iterator to a list with list().
4114 * python/lib/gdb/command/frame_filters.py
4115 (SetFrameFilterPriority._set_filter_priority): Convert priority
4116 attribute to an integer.
4117 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4118 wrapper function __next__.
4119 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4120 define as "str".
4121
4122 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4123
4124 PR python/15752
4125 * python/py-framefilter.c (apply_frame_filter): Check
4126 gdb_python_initialized. Exit if the Python frame-filter code
4127 cannot be initialized.
4128
4129 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4130
4131 PR cli/15842
4132 * top.c (print_gdb_version): Remove erroneous newline after help
4133 text.
4134
4135 2013-08-29 Yao Qi <yao@codesourcery.com>
4136
4137 * varobj.c (install_dynamic_child): Remove trailing space.
4138 Add one blank line after variable declaration.
4139
4140 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4141
4142 PR gdb/15415
4143 * corefile.c (get_exec_file): Use exec_filename.
4144 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4145 * exec.c (exec_close): Free EXEC_FILENAME.
4146 (exec_file_attach): New variable canonical_pathname. Use
4147 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4148 EXEC_FILENAME.
4149 * exec.h (exec_filename): New.
4150 * inferior.c (print_inferior, inferior_command): Use
4151 PSPACE_EXEC_FILENAME.
4152 * mi/mi-main.c (print_one_inferior): Likewise.
4153 * progspace.c (clone_program_space, print_program_space): Likewise.
4154 * progspace.h (struct program_space): New field pspace_exec_filename.
4155 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4156 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4157
4158 2013-08-28 Will Newton <will.newton@linaro.org>
4159
4160 * common/linux-ptrace.c: Include stdint.h unconditionally.
4161
4162 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4163
4164 Code cleanup.
4165 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4166
4167 2013-08-28 Yao Qi <yao@codesourcery.com>
4168 Pedro Alves <palves@redhat.com>
4169
4170 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4171 instead of stdio_fileopen.
4172 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4173 .Call stderr_fileopen instead of stdio_fileopen.
4174 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4175 [__MINGW32__] (stderr_file_fputs): New function.
4176 (stderr_fileopen): New function.
4177 * ui-file.h (stderr_fileopen): Declare.
4178
4179 2013-08-27 Doug Evans <dje@google.com>
4180
4181 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4182 (struct dwarf2_per_cu_data): Ditto.
4183 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4184 (process_imported_unit_die): Ditto.
4185 (follow_die_sig_1): Simplify assert.
4186
4187 2013-08-27 Pedro Alves <palves@redhat.com>
4188
4189 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4190 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4191 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4192 windows_xfer_memory directly.
4193 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4194
4195 2013-08-27 Pedro Alves <palves@redhat.com>
4196
4197 * darwin-nat.c (darwin_xfer_memory): Delete.
4198 (_initialize_darwin_inferior): Don't install a
4199 deprecated_xfer_memory method.
4200
4201 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4202 Yao Qi <yao@codesourcery.com>
4203
4204 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4205 (parse_no_frames_option): Remove.
4206 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4207 (mi_cmd_stack_list_args): Adjust.
4208 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4209 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4210 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4211 Caller update.
4212 (list_args_or_locals): New parameter 'skip_unavailable'.
4213 Handle it.
4214 * valprint.c (scalar_type_p): Rename to ...
4215 (val_print_scalar_type_p): ... this. Make extern.
4216 (val_print, value_check_printable): Adjust.
4217 * valprint.h (val_print_scalar_type_p): Declare.
4218 * value.c (value_entirely_unavailable): New function.
4219 * value.h (value_entirely_unavailable): Declare.
4220
4221 * NEWS: Mention the new option "--skip-unavailable" to MI
4222 commands '-stack-list-locals', '-stack-list-arguments' and
4223 '-stack-list-variables'.
4224
4225 2013-08-27 Yao Qi <yao@codesourcery.com>
4226
4227 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4228 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4229 options.
4230 * mi/mi-getopt.c (mi_getopt): Remove.
4231 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4232 'error_on_unknown'.
4233 (mi_getopt): Call mi_getopt_1.
4234 (mi_getopt_silent): New.
4235 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4236
4237 2013-08-26 Doug Evans <dje@google.com>
4238
4239 PR symtab/15885
4240 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4241 .gdb_index is in use.
4242 * symfile.c (reread_symbols): Reset objfile->sf.
4243
4244 * NEWS: Document "mt print objfiles" now takes optional regexp.
4245 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4246 regexp of objfiles to print.
4247 (_initialize_symmisc): Update doc string for "mt print objfiles".
4248
4249 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4250 missing debug info checks.
4251
4252 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4253 Ulrich Weigand <uweigand@de.ibm.com>
4254
4255 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4256 line tables generated by XLC compiled binaries.
4257
4258 2013-08-23 Doug Evans <dje@google.com>
4259
4260 * symmisc.c (dump_symtab): Delete prototype.
4261 (dump_msymbols, dump_objfile): Ditto.
4262 (maintenance_info_symtabs): Mark as dont_repeat.
4263 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4264
4265 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4266 debugging printf to better location.
4267
4268 2013-08-23 Pedro Alves <palves@redhat.com>
4269
4270 * target.c (target_read_live_memory): Change type of 'ret' local
4271 to LONGEST.
4272
4273 2013-08-23 Pedro Alves <palves@redhat.com>
4274
4275 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4276 (remote_read_bytes): Change return type to LONGEST, and adjust to
4277 return a target_xfer_error on error.
4278 (remote_xfer_memory): Delete.
4279 (remote_flash_write): Change type of 'ret' local to LONGEST.
4280 (remote_xfer_partial, remote_xfer_partial): Adjust.
4281 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4282
4283 2013-08-23 Pierre Muller <muller@sourceware.org>
4284
4285 ARI fix: Push # directives to start of line.
4286 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4287
4288 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4289
4290 PR gdb/15501
4291 * breakpoint.c (enable_command, disable_command): Iterate over
4292 all specified breakpoint locations.
4293
4294 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4295
4296 * common/linux-ptrace.c (linux_fork_to_function): Push #
4297 directives to the start of the line.
4298 (linux_check_ptrace_features): Fix warning message to use
4299 the "_" markup.
4300
4301 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4302
4303 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4304 nat/linux-waitpid.h.
4305 (linux-waitpid.o): New object file rule.
4306 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4307 (current_ptrace_options): Moved from linux-nat.c.
4308 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4309 parameters.
4310 (linux_fork_to_function): New function.
4311 (linux_grandchild_function): Likewise.
4312 (linux_child_function): Likewise.
4313 (linux_check_ptrace_features): New function, heavily
4314 based on linux-nat.c:linux_test_for_tracefork.
4315 (linux_enable_event_reporting): New function.
4316 (ptrace_supports_feature): Likewise.
4317 (linux_supports_tracefork): Likewise.
4318 (linux_supports_traceclone): Likewise.
4319 (linux_supports_tracevforkdone): Likewise.
4320 (linux_supports_tracesysgood): Likewise.
4321 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4322 gdbserver/linux-low.c.
4323 (linux_enable_event_reporting): New declaration.
4324 (linux_supports_tracefork): Likewise.
4325 (linux_supports_traceclone): Likewise.
4326 (linux_supports_tracevforkdone): Likewise.
4327 (linux_supports_tracesysgood): Likewise.
4328 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4329 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4330 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4331 * config/arm/linux.mh (NATDEPFILES): Likewise.
4332 * config/i386/linux.mh (NATDEPFILES): Likewise.
4333 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4334 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4335 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4336 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4337 * config/mips/linux.mh (NATDEPFILES): Likewise.
4338 * config/pa/linux.mh (NATDEPFILES): Likewise..
4339 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4340 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4341 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4342 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4343 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4344 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4345 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4346 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4347 ptrace's 4th argument's types.
4348 Check the type of PTRACE_TYPE_ARG4.
4349 * configure: Regenerate.
4350 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4351 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4352 (linux_supports_tracefork_flag): Remove.
4353 (linux_supports_tracesysgood_flag): Likewise.
4354 (linux_supports_tracevforkdone_flag): Likewise.
4355 (current_ptrace_options): Moved to
4356 common/linux-ptrace.c.
4357 (linux_tracefork_child): Remove.
4358 (my_waitpid): Remove.
4359 (linux_test_for_tracefork): Renamed to
4360 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4361 (linux_test_for_tracesysgood): Remove.
4362 (linux_supports_tracesysgood): Remove.
4363 (linux_supports_tracefork): Remove.
4364 (linux_supports_tracevforkdone): Remove.
4365 (linux_enable_tracesysgood): Remove.
4366 (linux_enable_event_reporting): Remove.
4367 (linux_init_ptrace): New function.
4368 (linux_child_post_attach): Call linux_init_ptrace.
4369 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4370 (linux_child_follow_fork): Call linux_supports_tracefork
4371 and linux_supports_tracevforkdone.
4372 (linux_child_insert_fork_catchpoint): Call
4373 linux_supports_tracefork.
4374 (linux_child_insert_vfork_catchpoint): Likewise.
4375 (linux_child_set_syscall_catchpoint): Call
4376 linux_supports_tracesysgood.
4377 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4378 * nat/linux-nat.h: New file.
4379 * nat/linux-waitpid.c: New file.
4380 * nat/linux-waitpid.h: New file.
4381
4382 2013-08-22 Samuel Bronson <naesten@gmail.com>
4383
4384 ARM Linux support for `catch syscall'.
4385 * syscalls/arm-linux.py: New file.
4386 * syscalls/arm-linux.xml: Likewise.
4387 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4388 (arm_linux_init_abi): Register the new function and syscall xml file.
4389 * data-directory/Makefile.in: Install the new syscall xml file.
4390 * NEWS: Brag about this.
4391
4392 2013-08-22 Pedro Alves <palves@redhat.com>
4393
4394 PR gdb/15871
4395 * corefile.c (target_xfer_memory_error): New function.
4396 (memory_error): Defer EIO to target_memory_error.
4397 (read_memory): Use target_xfer_partial, and handle finer-grained
4398 target xfer errors.
4399 * target.c (target_xfer_error_to_string): New function.
4400 (memory_xfer_partial_1): If memory is known to be
4401 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4402 (target_xfer_partial): Make extern.
4403 * target.h (enum target_xfer_error): New enum.
4404 (target_xfer_error_to_string): Declare function.
4405 (target_xfer_partial): Declare function.
4406 (struct target_ops) <xfer_partial>: Adjust describing comment.
4407
4408 2013-08-22 Alan Modra <amodra@gmail.com>
4409
4410 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4411 * configure.tgt: Likewise as targets.
4412
4413 2013-08-20 Doug Evans <dje@google.com>
4414
4415 * buildsym.c (subfile_stack): Move here from buildsym.h.
4416 (pending_macros): Ditto.
4417 (get_macro_table): New function.
4418 (buildsym_init): Initialize subfile_stack.
4419 * coffread.c (type_vector,type_vector_length): Moved here from
4420 buildsym.h.
4421 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4422 (coff_symtab_read): Use it.
4423 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4424 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4425 with call to get_macro_table.
4426 * stabsread.c (type_vector,type_vector_length): Moved here from
4427 buildsym.h.
4428 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4429 * buildsym.h (get_macro_table): Declare.
4430
4431 2013-08-20 Tom Tromey <tromey@redhat.com>
4432
4433 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4434 Update.
4435 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4436
4437 2013-08-20 Doug Evans <dje@google.com>
4438
4439 * blockframe.c: Remove #include "psymtab.h".
4440 * cp-support.c: Ditto.
4441 * source.c: Ditto.
4442 * stack.c: Ditto.
4443
4444 2013-08-20 Tom Tromey <tromey@redhat.com>
4445
4446 PR python/15816:
4447 * exceptions.h (return_mask): Now an enum.
4448 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4449 enum constants.
4450
4451 2013-08-20 Tom Tromey <tromey@redhat.com>
4452
4453 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4454 get_objfile_arch.
4455 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4456 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4457 * jit.c (jit_object_close_impl): Update.
4458 * jv-lang.c (get_dynamics_objfile): Update.
4459 * linespec.c (add_minsym): Use get_dynamics_objfile.
4460 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4461 (allocate_objfile): Don't initialize 'gdbarch' field.
4462 (get_objfile_arch): Update.
4463 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4464 moved from...
4465 (struct objfile) <gdbarch>: ... here. Remove.
4466 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4467 get_objfile_arch.
4468 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4469
4470 2013-08-20 Alan Modra <amodra@gmail.com>
4471
4472 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4473 for IBM long double nan and inf.
4474 (floatformat_is_negative, floatformat_classify,
4475 floatformat_mantissa): Similarly.
4476 (floatformat_ieee_single, floatformat_ieee_double,
4477 floatformat_ieee_quad, floatformat_arm_ext,
4478 floatformat_ia64_spill): Delete unused vars.
4479 (_initialize_doublest): Delete unused function.
4480 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4481 little-endian variants of floatformat_ibm_long_double.
4482
4483 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4484
4485 * Makefile.in (SFILES): Remove common/target-common.c and
4486 add target/waitstatus.c.
4487 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4488 target/resume.h, target/wait.h and target/waitstatus.h.
4489 (COMMON_OBS): Remove target-common.o and add
4490 waitstatus.o.
4491 (target-common.o): Remove.
4492 (waitstatus.o): New target object file.
4493 * common/target-common.c: Move contents to
4494 target/waitstatus.c and remove.
4495 * common/target-common.h: Move contents to other files and
4496 remove.
4497 (enum resume_kind: Move to target/resume.h.
4498 (TARGET_WNOHANG): Move to target/wait.h.
4499 (enum target_waitkind): Move to target/waitstatus.h.
4500 (struct target_waitstatus): Likewise.
4501 * target.h: Do not include target-common.h and
4502 include target/resume.h, target/wait.h and
4503 target/waitstatus.h.
4504 * target/resume.h: New file.
4505 * target/wait.h: New file.
4506 * target/waitstatus.h: New file.
4507 * target/waitstatus.c: New file.
4508
4509 2013-08-19 Pedro Alves <palves@redhat.com>
4510
4511 * linux-nat.c (linux_test_for_tracefork)
4512 (linux_test_for_tracesysgood, linux_child_follow_fork)
4513 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4514 (linux_nat_wait_1): Extend comment.
4515 (linux_async_pipe): Add comment.
4516
4517 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4518
4519 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4520 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4521 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4522 Update to account for fact that PC is now a pseudo-register.
4523 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4524 cases for RL78_PC_REGNUM.
4525
4526 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4527
4528 PR cli/15841
4529 * top.c (quit_force): Skip writing history file
4530 if input is not from terminal.
4531
4532 2013-08-14 Tom Tromey <tromey@redhat.com>
4533
4534 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4535 resultthreadlist>: New fields.
4536 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4537 (remote_get_threadlist, remote_threadlist_iterator): Use
4538 new fields. Remove static variables.
4539
4540 2013-08-14 Tom Tromey <tromey@redhat.com>
4541
4542 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4543 remote_watch_data_address>: New fields.
4544 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4545 (process_stop_reply, remote_wait_as)
4546 (remote_check_watch_resources, remote_stopped_data_address): Update.
4547
4548 2013-08-14 Tom Tromey <tromey@redhat.com>
4549
4550 * remote.c (struct remote_state) <async_client_callback,
4551 async_client_context>: New fields.
4552 (async_client_callback, async_client_context): Remove.
4553 (remote_async_serial_handler, remote_async): Update.
4554
4555 2013-08-14 Tom Tromey <tromey@redhat.com>
4556
4557 * remote.c (sizeof_pkt): Remove.
4558 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4559
4560 2013-08-14 Tom Tromey <tromey@redhat.com>
4561
4562 * remote.c (struct remote_state) <use_threadinfo_query,
4563 use_threadextra_query>: New fields.
4564 (remote_threads_info, remote_threads_extra_info)
4565 (remote_open_1): Update.
4566
4567 2013-08-14 Tom Tromey <tromey@redhat.com>
4568
4569 * remote.c (struct remote_state) <finished_object,
4570 finished_annex, finished_offset>: New fields.
4571 (remote_read_qxfer): Use remote_state fields; remove static
4572 variables.
4573
4574 2013-08-14 Tom Tromey <tromey@redhat.com>
4575
4576 * remote.c (struct remote_state) <last_sent_step>:
4577 New field.
4578 (last_sent_step): Remove.
4579 (remote_resume, remote_wait_as): Update.
4580
4581 2013-08-14 Tom Tromey <tromey@redhat.com>
4582
4583 * remote.c (struct remote_state) <last_sent_signal>:
4584 New field.
4585 (last_sent_signal): Remove.
4586 (new_remote_state, remote_resume, remote_wait_as): Update.
4587
4588 2013-08-14 Tom Tromey <tromey@redhat.com>
4589
4590 * remote.c (struct remote_state) <last_program_signals_packet>:
4591 New field.
4592 (last_program_signals_packet): Remove.
4593 (remote_program_signals, remote_open_1): Update.
4594
4595 2013-08-14 Tom Tromey <tromey@redhat.com>
4596
4597 * remote.c (struct remote_state) <last_pass_packet>:
4598 New field.
4599 (last_pass_packet): Remove.
4600 (remote_pass_signals, remote_open_1): Update.
4601
4602 2013-08-14 Tom Tromey <tromey@redhat.com>
4603
4604 * remote.c (struct remote_state) <remote_traceframe_number>:
4605 New field.
4606 (remote_traceframe_number): Remove.
4607 (new_remote_state, remote_open_1, set_remote_traceframe)
4608 (remote_trace_find): Update.
4609
4610 2013-08-14 Tom Tromey <tromey@redhat.com>
4611
4612 * remote.c (struct remote_state) <general_thread, continue_thread>:
4613 New fields.
4614 (general_thread, continue_thread): Remove.
4615 (record_currthread, set_thread, set_general_process)
4616 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4617 (extended_remote_mourn_1): Update.
4618
4619 2013-08-14 Tom Tromey <tromey@redhat.com>
4620
4621 * remote.c (struct remote_state) <remote_desc>: New field.
4622 (remote_desc): Remove.
4623 (remote_threads_info, remote_threads_extra_info, remote_close)
4624 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4625 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4626 (remote_hostio_send_command, remote_file_put, remote_file_get)
4627 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4628 (remote_async, remote_new_objfile, set_range_stepping): Update.
4629
4630 2013-08-14 Tom Tromey <tromey@redhat.com>
4631
4632 * remote.c (remote_state): Now a pointer.
4633 (get_remote_state_raw): Update.
4634 (new_remote_state): New function.
4635 (_initialize_remote): Use new_remote_state.
4636
4637 2013-08-14 Tom Tromey <tromey@redhat.com>
4638
4639 * remote.c (remote_protocol_features): Now const.
4640
4641 2013-08-14 Tom Tromey <tromey@redhat.com>
4642
4643 * remote.c (crc32_table, crc32): Remove.
4644 (remote_verify_memory): Use xcrc32.
4645
4646 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4647
4648 * value.h (create_internalvar_type_lazy): Adjust prototype
4649 declaration.
4650
4651 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4652
4653 * common/format.c (parse_format_string): Don't allow '#' flag for
4654 pointer arguments in format string.
4655
4656 2013-08-13 Pierre Muller <muller@sourceware.org>
4657
4658 * utils.c (init_page_info): Only call tgetnum function
4659 if rl_get_screen_size did not return useful values.
4660
4661 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4662
4663 PR breakpoints/15117
4664 * linespec.c (linespec_parse_basic): Check for convenience
4665 variable or history value while parsing.
4666
4667 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4668
4669 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4670 AVR.
4671 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4672 different signals between the generic Linux kernel implementation
4673 and AVR's.
4674 (avr_linux_gdb_signal_from_target): Delete.
4675 (avr_linux_gdb_signal_to_target): Delete.
4676 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4677
4678 2013-08-09 Doug Evans <dje@google.com>
4679
4680 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4681 entries.
4682
4683 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4684
4685 * linux-tdep.c: Define enum with generic signal numbers.
4686 (linux_gdb_signal_from_target): New function.
4687 (linux_gdb_signal_to_target): Likewise.
4688 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4689 methods to the functions above.
4690 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4691 (linux_gdb_signal_to_target): Likewise.
4692 * alpha-linux-tdep.c: Define new enum with signals different
4693 from generic Linux kernel.
4694 (alpha_linux_gdb_signal_from_target): New function.
4695 (alpha_linux_gdb_signal_to_target): Likewise.
4696 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4697 with the functions mentioned above.
4698 * avr-tdep.c: Define enum with differences between Linux kernel
4699 and AVR signals.
4700 (avr_linux_gdb_signal_from_target): New function.
4701 (avr_linux_gdb_signal_to_target): Likewise.
4702 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4703 the functions mentioned above.
4704 * sparc-linux-tdep.c: Define enum with differences between SPARC
4705 and generic Linux kernel signal numbers.
4706 (sparc32_linux_gdb_signal_from_target): New function.
4707 (sparc32_linux_gdb_signal_to_target): Likewise.
4708 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4709 to the functions defined above.
4710 * xtensa-linux-tdep.c: Define enum with differences between
4711 Xtensa and Linux kernel generic signals.
4712 (xtensa_linux_gdb_signal_from_target): New function.
4713 (xtensa_linux_gdb_signal_to_target): Likewise.
4714 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4715 to the functions defined above.
4716 * mips-linux-tdep.c: Define enum with differences between
4717 signals in MIPS and Linux kernel generic ones.
4718 (mips_gdb_signal_to_target): New function.
4719 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4720 only different signals from the Linux kernel generic.
4721 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4722 the functions defined above.
4723 * mips-linux-tdep.h (enum mips_signals): Remove.
4724
4725 2013-08-09 Pedro Alves <palves@redhat.com>
4726
4727 * avr-tdep.c (XMALLOC): Delete macro.
4728 * cli/cli-dump.c (XMALLOC): Delete macro.
4729
4730 2013-08-09 Pedro Alves <palves@redhat.com>
4731
4732 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4733 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4734 (fopen_with_cleanup, add_dump_command): Make static.
4735 * cli/cli-dump.h: Delete file.
4736 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4737 cli/cli-dump.h.
4738
4739 2013-08-09 Pedro Alves <palves@redhat.com>
4740
4741 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4742 error message.
4743
4744 2013-08-09 Pedro Alves <palves@redhat.com>
4745
4746 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4747 error message.
4748
4749 2013-08-09 Pedro Alves <palves@redhat.com>
4750
4751 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4752 (gcore_command): Use tilde_expand here, and when showing the
4753 filename to the user, show the expanded version.
4754
4755 2013-08-09 Yao Qi <yao@codesourcery.com>
4756
4757 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4758 'entryval' is set.
4759
4760 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4761
4762 * gcore.c (create_gcore_bfd): Use tilde_expand.
4763
4764 2013-08-08 Yao Qi <yao@codesourcery.com>
4765
4766 * frame.h (read_frame_local): Declare.
4767 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4768 read_frame_local.
4769 * stack.c (read_frame_local): New.
4770
4771 2013-08-08 Yao Qi <yao@codesourcery.com>
4772
4773 * mi/mi-cmd-stack.c: Update comments to function
4774 list_args_or_locals.
4775
4776 2013-08-07 Tom Tromey <tromey@redhat.com>
4777
4778 PR symtab/15028:
4779 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4780 (process_psymtab_comp_unit_reader): Use it.
4781 (process_psymtab_comp_unit): Update. Add "pretend_language"
4782 argument.
4783 (dwarf2_build_psymtabs_hard): Update.
4784 (scan_partial_symbols): Pass CU's language to
4785 process_psymtab_comp_unit.
4786
4787 2013-08-07 Tom Tromey <tromey@redhat.com>
4788
4789 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4790 (dwarf2_gdb_index_functions): Update.
4791 * psymtab.c (find_symbol_file_from_partial): Remove.
4792 (psym_functions): Update.
4793 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4794 Remove.
4795
4796 2013-08-07 Tom Tromey <tromey@redhat.com>
4797
4798 * symfile.c (set_initial_language): Look up "main" symbol
4799 and use its language.
4800 * symtab.c (find_main_filename): Remove.
4801 * symtab.h (find_main_filename): Remove.
4802
4803 2013-08-07 Tom Tromey <tromey@redhat.com>
4804
4805 * dwarf2read.c (recursively_compute_inclusions): Add
4806 "immediate_parent" argument. Set symtab's "user" field
4807 if not set.
4808 (compute_symtab_includes): Update.
4809
4810 2013-08-07 Tom Tromey <tromey@redhat.com>
4811
4812 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4813 when adding label symbols.
4814
4815 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4816 Ulrich Weigand <uweigand@de.ibm.com>
4817
4818 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4819 * configure.host (powerpc64-*-aix*): Likewise.
4820
4821 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4822 Ulrich Weigand <uweigand@de.ibm.com>
4823
4824 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4825 is defined.
4826 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4827 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4828 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4829 * configure.ac: Check for ptrace64.
4830 * configure, config.in: Regenerate.
4831
4832 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4833 Ulrich Weigand <uweigand@de.ibm.com>
4834
4835 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4836 Call ptrace64 instead of ptrace if defined.
4837 Add macro addr_ptr to take care of ptrace address argument.
4838 (pdc_read_regs): Likewise.
4839 (pdc_write_regs): Likewise.
4840 (aix_thread_resume): Likewise.
4841 (fetch_regs_kernel_thread): Likewise.
4842 (store_regs_kernel_thread): Likewise.
4843
4844 2013-08-07 Anton Blanchard <anton@samba.org>
4845
4846 * MAINTAINERS: Add myself to Write After Approval.
4847
4848 2013-08-05 Tom Tromey <tromey@redhat.com>
4849
4850 * aix-thread.c (_initialize_aix_thread): Use
4851 complete_target_initialization.
4852 * bsd-uthread.c (_initialize_bsd_uthread): Use
4853 complete_target_initialization.
4854 * dec-thread.c (_initialize_dec_thread): Use
4855 complete_target_initialization.
4856 * ravenscar-thread.c (_initialize_ravenscar): Use
4857 complete_target_initialization.
4858 * sol-thread.c (_initialize_sol_thread): Use
4859 complete_target_initialization.
4860 * spu-multiarch.c (_initialize_spu_multiarch): Use
4861 complete_target_initialization.
4862
4863 2013-08-05 Tom Tromey <tromey@redhat.com>
4864
4865 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4866 * ada-lang.c (ada_lookup_simple_minsym): Return
4867 bound_minimal_symbol.
4868 * ada-lang.h (ada_lookup_simple_minsym): Update.
4869 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4870 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4871 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4872 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4873 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4874 * minsyms.c (msymbol_objfile): Remove.
4875 (lookup_minimal_symbol_internal): New function, from
4876 lookup_minimal_symbol.
4877 (lookup_minimal_symbol): Rewrite using
4878 lookup_minimal_symbol_internal.
4879 (lookup_bound_minimal_symbol): New function.
4880 * minsyms.h (msymbol_objfile): Remove.
4881 (lookup_bound_minimal_symbol): Declare.
4882 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4883 * parse.c (write_exp_msymbol): Change parameter to a
4884 bound_minimal_symbol.
4885 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4886 * parser-defs.h (write_exp_msymbol): Update.
4887 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4888 * symfile.c (simple_read_overlay_table): Use
4889 lookup_bound_minimal_symbol.
4890 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4891 (search_symbols): Likewise.
4892 (print_msymbol_info): Take a bound_minimal_symbol argument.
4893 (symtab_symbol_info, rbreak_command): Update.
4894 * symtab.h (struct symbol_search) <msymbol>: Change type
4895 to bound_minimal_symbol.
4896 * valops.c (find_function_in_inferior): Use
4897 lookup_bound_minimal_symbol.
4898 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4899
4900 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4901
4902 Code cleanup.
4903 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4904 to ...
4905 (async_cleanup_sigint_signal_handler): ... this.
4906 (initialize_sigint_signal_handler): Remove declaration.
4907 (handle_remote_sigint): Rename the declaration to ...
4908 (async_handle_remote_sigint): ... this.
4909 (handle_remote_sigint_twice): Rename the declaration to ...
4910 (async_handle_remote_sigint_twice): ... this.
4911 (async_remote_interrupt, async_remote_interrupt_twice)
4912 (remote_interrupt): Remove the declarations.
4913 (remote_interrupt_twice): Rename the declaration ...
4914 (sync_remote_interrupt_twice): ... this.
4915 (sigint_remote_twice_token): Rename the variable to ...
4916 (async_sigint_remote_twice_token): ... this.
4917 (sigint_remote_token): Rename the variable to ...
4918 (async_sigint_remote_token): ... this.
4919 (initialize_sigint_signal_handler): Rename the function to ...
4920 (async_initialize_sigint_signal_handler): ... this. Update the name
4921 inside.
4922 (handle_remote_sigint): Rename the function to ...
4923 (async_handle_remote_sigint): ... this. Update the names inside.
4924 (handle_remote_sigint_twice): Rename the function to ...
4925 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4926 (cleanup_sigint_signal_handler): Rename the function to ...
4927 (async_cleanup_sigint_signal_handler): ... this.
4928 (remote_interrupt): Rename the function to ...
4929 (sync_remote_interrupt): this. Update the names inside.
4930 (remote_interrupt_twice): Rename the function to ...
4931 (sync_remote_interrupt_twice): this. Update the names inside.
4932 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4933 (_initialize_remote): Update the names inside.
4934
4935 2013-08-02 Tom Tromey <tromey@redhat.com>
4936
4937 PR symtab/15719:
4938 * breakpoint.c (update_watchpoint, watchpoint_check)
4939 (watch_command_1): Update.
4940 * eval.c (fetch_subexp_value): Add "preserve_errors"
4941 parameter.
4942 * ppc-linux-nat.c (check_condition): Update.
4943 * value.h (fetch_subexp_value): Update.
4944
4945 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4946
4947 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4948 add_file_handler.
4949
4950 2013-08-01 Doug Evans <dje@google.com>
4951
4952 PR symtab/15691
4953 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4954 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4955 Add assert of sig_entry->dwo_unit == NULL.
4956 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4957 had already been read.
4958 (read_signatured_type): Set per_cu.tu_read.
4959
4960 PR symtab/15695
4961 * valops.c (value_struct_elt): Add missing call to check_typedef.
4962 (value_find_oload_method_list): Ditto.
4963
4964 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4965 effectively, struct symbol_search **.
4966 (make_cleanup_free_search_symbols): Change arg to struct
4967 symbol_search **. All callers updated.
4968 (compare_search_syms): Compare symtab file name and block as well.
4969 (search_symbols_equal): New function.
4970 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4971 New args new_head, new_tail. Result is now void. Remove dups after
4972 sorting the symbols.
4973 (search_symbols): Sort all found symbols once, after all have been
4974 found, and remove duplicates. Simplify cleanup tracking of result.
4975 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4976
4977 Further workarounds for binutils/15021.
4978 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4979 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4980 Watch for duplicate symtabs coming from type units.
4981 (compute_symtab_includes): Update call to
4982 recursively_compute_inclusions. Build vector of included symtabs
4983 instead of per_cus.
4984 * symtab.h (symtab_ptr): New typedef.
4985 (DEF_VEC_P (symtab_ptr)): New VEC type.
4986 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4987 instead.
4988
4989 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4990
4991 * cli/cli-script.c (script_from_file): Remove use of
4992 error_pre_print.
4993 * main.c (captured_main): Remove use of error_pre_print and
4994 quit_pre_print.
4995 * utils.c (error_pre_print, quit_pre_print): Remove.
4996 * utils.h (error_pre_print, quit_pre_print): Likewise.
4997
4998 2013-08-01 Yao Qi <yao@codesourcery.com>
4999
5000 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5001 with mi_getopt.
5002 (mi_cmd_stack_list_variables): Likewise.
5003
5004 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5005
5006 * exceptions.c (deprecated_throw_reason): Remove.
5007 * exceptions.h (deprecated_throw_reason): Remove.
5008
5009 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5010
5011 * remote-mips.c (mips_error): Replace use of
5012 deprecated_throw_reason with throw_verror. Use the error message
5013 passed to mips_error as the error message for throw_verror.
5014
5015 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5016
5017 * monitor.c (monitor_interrupt_query): Replace use of
5018 deprecated_throw_reason with quit.
5019 * nto-procfs.c (interrupt_query): Likewise.
5020 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5021 * remote-mips.c (mips_kill): Likewise.
5022 * remote.c (interrupt_query): Likewise.
5023
5024 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5025
5026 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5027 with call to fatal.
5028
5029 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5030 Yao Qi <yao@codesourcery.com>
5031
5032 * tracepoint.c (trace_dump_command): Select the current frame.
5033
5034 2013-07-30 Doug Evans <dje@google.com>
5035
5036 * dwarf2read.c (process_queue): Add type signature to debug output.
5037
5038 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5039
5040 * value.c (value_fetch_lazy): Mark optimized out values as such
5041 rather than raising an error.
5042
5043 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5044
5045 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5046 before checking which bits of the parent, not the child, value are
5047 valid.
5048
5049 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5050
5051 PR gdb/15715
5052 * top.c: Include "filenames.h".
5053 (set_history_filename): New function.
5054 (init_main): Install it as set hook of the "set history filename"
5055 command.
5056
5057 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5058
5059 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5060 attribute parameter.
5061 (dwarf2_const_value_data): Constify struct attribute parameter.
5062 (dwarf2_const_value): Constify struct attribute parameter.
5063 (dwarf2_const_value_attr): Constify struct attribute parameter.
5064 (lookup_die_type): Constify struct attribute parameter.
5065 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5066 (follow_die_ref_or_sig): Constify struct attribute parameter.
5067 (follow_die_ref): Constify struct attribute parameter.
5068 (follow_die_sig): Constify struct attribute parameter.
5069 (get_DW_AT_signature_type): Constify struct attribute parameter.
5070 (get_type_unit_group): Constify struct attribute parameter.
5071 (fill_in_loclist_baton): Constify struct attribute parameter.
5072 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5073 (type_unit_group): Constify struct attribute parameter.
5074
5075 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5076
5077 * dwarf2read.c (attr_form_is_block): Make argument const.
5078 (attr_form_is_section_offset): Make argument const.
5079 (attr_form_is_constant): Make argument const.
5080 (attr_form_is_ref): Make argument const.
5081
5082 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5083
5084 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5085 All uses updated.
5086 (attr_form_is_ref): Moved below attr_form_is_constant.
5087
5088 2013-07-29 Doug Evans <dje@google.com>
5089
5090 * main.c (captured_command_loop): Tweak comment.
5091
5092 * target.c (target_async_permitted_1): Fix comment.
5093
5094 * symtab.c (iterate_over_some_symtabs): Add comment.
5095
5096 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5097
5098 2013-07-27 Yao Qi <yao@codesourcery.com>
5099
5100 * NEWS: Mention that GDBserver now supports hardware
5101 watchpoints on the MIPS GNU/Linux target.
5102
5103 2013-07-27 Yao Qi <yao@codesourcery.com>
5104
5105 * Makefile.in (HFILES_NO_SRCDIR): Add
5106 common/mips-linux-watch.h.
5107 (mips-linux-watch.o): New rule.
5108 * common/mips-linux-watch.c: New.
5109 * common/mips-linux-watch.h: New.
5110 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5111 * mips-linux-nat.c: Include mips-linux-watch.h.
5112 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5113 to common/mips-linux-watch.h.
5114 (MAX_DEBUG_REGISTER): Likewise.
5115 (enum pt_watch_style): Likewise.
5116 (struct mips32_watch_regs): Likewise.
5117 (struct mips64_watch_regs): Likewise.
5118 (struct pt_watch_regs): Likewise.
5119 (struct mips_watchpoint): Likewise.
5120 (mips_linux_watch_get_irw_mask): Move to
5121 common/mips-linux-watch.c.
5122 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5123 (mips_linux_watch_get_watchlo): Likewise.
5124 (mips_linux_watch_set_watchlo): Likewise.
5125 (mips_linux_watch_get_watchhi): Likewise.
5126 (mips_linux_watch_set_watchhi): Likewise.
5127 (mips_linux_read_watch_registers): Likewise.
5128 (mips_linux_watch_type_to_irw): Likewise.
5129 (mips_linux_stopped_data_address, fill_mask): Likewise.
5130 (mips_linux_watch_try_one_watch): Likewise.
5131 (mips_linux_watch_populate_regs): Likewise.
5132
5133 2013-07-27 Yao Qi <yao@codesourcery.com>
5134
5135 * mips-linux-nat.c (get_irw_mask): Rename to ...
5136 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5137 'set' to 'n'. Update function comment. All callers changed.
5138 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5139 function comment. All callers changed.
5140 (get_num_valid): Rename to ...
5141 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5142 'set' to 'n'. Update function comment. All callers changed.
5143 (get_watchlo): Rename to ...
5144 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5145 'set' to 'n'. Update function comment. All callers changed.
5146 (set_watchlo): Rename to ...
5147 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5148 'set' to 'n'. Update function comment. All callers changed.
5149 (get_watchhi): Rename to ...
5150 (mips_linux_watch_get_watchhi): ... this. Update function
5151 comment. All callers changed.
5152 (set_watchhi): Rename to ...
5153 (mips_linux_watch_set_watchhi): ... this. Update function
5154 comment. All callers changed.
5155 (mips_linux_read_watch_registers): Update function comment.
5156 Add new parameters 'lwpid', 'watch_readback', and
5157 'watch_readback_valid'. Update.
5158 (type_to_irw): Rename to ...
5159 (mips_linux_watch_type_to_irw): ... this. Update function
5160 comment. All callers changed.
5161 (fill_mask): Update function comment.
5162 (try_one_watch): Rename to ...
5163 (mips_linux_watch_try_one_watch): ... this. Change the type
5164 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5165 (populate_regs_from_watches): Rename to ...
5166 (mips_linux_watch_populate_regs): ... this. Add parameter
5167 'current_watches'. All callers changed.
5168
5169 2013-07-27 Yao Qi <yao@codesourcery.com>
5170
5171 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5172 the code.
5173 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5174 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5175 (struct pt_watch_regs): Likewise.
5176 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5177 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5178 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5179 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5180 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5181
5182 2013-07-27 Yao Qi <yao@codesourcery.com>
5183
5184 * breakpoint.h: Include break-common.h.
5185 (enum target_hw_bp_type): Move to ...
5186 * common/break-common.h: ... here. New.
5187
5188 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5189
5190 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5191 process group regardless of having tty on stdin.
5192
5193 2013-07-25 Doug Evans <dje@google.com>
5194
5195 * linux-fork.h (detach_fork): Delete.
5196
5197 2013-07-25 Tom Tromey <tromey@redhat.com>
5198
5199 PR remote/15256, PR remote/15266:
5200 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5201 * monitor.c (monitor_detach): Use unpush_target.
5202 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5203 * remote-mips.c (mips_detach): Use unpush_target. Don't
5204 call mips_close.
5205 * remote-sim.c (gdbsim_detach): Use unpush_target.
5206 * target.c (pop_target): Remove.
5207 (pop_all_targets_above): Don't call target_close.
5208 (target_close): Assert that the target is unpushed.
5209 * target.h (pop_target): Don't declare.
5210 * tracepoint.c (tfile_open): Use unpush_target.
5211
5212 2013-07-25 Tom Tromey <tromey@redhat.com>
5213
5214 * linux-thread-db.c (init_thread_db_ops): Call
5215 complete_target_initialization.
5216 (_initialize_thread_db): Don't call add_target.
5217 * target.c (complete_target_initialization): New function.
5218 (add_target_with_completer): Call it.
5219 * target.h (complete_target_initialization): Declare.
5220
5221 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5222
5223 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5224 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5225 (HPPANBSD_SIZEOF_GREGS): New define.
5226 (hppaobsd_supply_gregset): Handle additional registers.
5227 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5228 we provide more registers now.
5229 (hppabsd_supply_gregset): Supply additional registers.
5230 (hppabsd_collect_gregset): Collect additional registers.
5231
5232 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5233
5234 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5235 (hppabsd_dwarf2_frame_init_reg): New function.
5236 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5237
5238 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5239
5240 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5241 'z' format code. Remove error for optimized out values, standard
5242 code will handle these fine.
5243
5244 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5245
5246 * NEWS: Mention new 'z' formatter.
5247 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5248 (_initialize_printcmd): Mention 'z' formatter in help text of the
5249 'x' command.
5250
5251 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5252
5253 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5254 formatting.
5255
5256 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5257
5258 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5259 interface can evaluate arguments. Fallback to the old mode if it
5260 cannot.
5261 (create_exception_master_breakpoint): Likewise.
5262 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5263 (struct sym_probe_fns elf_probe_fns): Export function above to the
5264 probe interface.
5265 * probe.c (can_evaluate_probe_arguments): New function.
5266 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5267 function pointer.
5268 (can_evaluate_probe_arguments): New function prototype.
5269 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5270 probe interface can evaluate arguments. Fallback to the old mode
5271 if it cannot.
5272 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5273 interface can evaluate arguments. Warning the user if it cannot.
5274 (stap_can_evaluate_probe_arguments): New function.
5275 (struct probe_ops stap_probe_ops): Export function above to the
5276 probe interface.
5277 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5278 New function pointer.
5279
5280 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5281
5282 * Makefile.in (SFILES): Add common/target-common.c.
5283 Add common/target-common.h to headers.
5284 (COMMON_OBS): Add target-common.o.
5285 (target-common.o): New target.
5286 * linux-nat.h (resume_kind): Move to common/target-common.h.
5287 * target.c (target_waitstatus_to_string): Move to
5288 common/target-common.c.
5289 * target.h: Include target-common.h.
5290 (target_waitkind): Move to common/target-common.h.
5291 (target_waitstatus): Likewise.
5292 (TARGET_WNOHANG): Likewise.
5293 * common/target-common.c: New file.
5294 * common/target-common.h: New file.
5295
5296 2013-07-24 Doug Evans <dje@google.com>
5297
5298 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5299 a warning.
5300
5301 2013-07-23 Yao Qi <yao@codesourcery.com>
5302
5303 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5304 parameter 'gdbarch'.
5305 (i386_stack_tramp_frame_sniffer): Caller update.
5306 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5307 parameter 'gdbarch' and 'target'.
5308 (i386_linux_core_read_description): Caller update.
5309 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5310 Likewise.
5311 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5312 declaration.
5313
5314 2013-07-23 Tom Tromey <tromey@redhat.com>
5315
5316 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5317 2013-07-22.
5318
5319 2013-07-22 Doug Evans <dje@google.com>
5320
5321 * exec.h (remove_target_sections): Delete arg abfd.
5322 * exec.c (exec_close): Update call to remove_target_sections.
5323 (remove_target_sections): Delete arg abfd.
5324 * solib.c (update_solib_list): Ditto.
5325 (reload_shared_libraries_1): Ditto.
5326 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5327 * target.h (struct target_section): Rename key to owner.
5328 All uses updated.
5329
5330 2013-07-22 Tom Tromey <tromey@redhat.com>
5331
5332 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5333
5334 2013-07-22 Tom Tromey <tromey@redhat.com>
5335
5336 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5337 Simplify cleanup handling.
5338
5339 2013-07-22 Tom Tromey <tromey@redhat.com>
5340
5341 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5342 on all return paths.
5343
5344 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5345
5346 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5347 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5348 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5349
5350 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5351
5352 * top.c (print_gdb_version): Add help, apropos description and
5353 url to online documentation.
5354
5355 2013-07-19 Hui Zhu <hui@codesourcery.com>
5356
5357 PR gdb/15692
5358 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5359
5360 2013-07-19 Yao Qi <yao@codesourcery.com>
5361
5362 * target.c (update_current_target): Change the default action
5363 of 'to_traceframe_info' from tcomplain to return_zero.
5364 * target.h (struct target_ops) <to_traceframe_info>: Add more
5365 comments.
5366 * valops.c (read_value_memory): Call
5367 traceframe_available_memory unconditionally.
5368
5369 2013-07-18 Yao Qi <yao@codesourcery.com>
5370
5371 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5372 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5373 symbol without prefix. If found, set its type to
5374 'mst_solib_trampoline'.
5375
5376 2013-07-17 Doug Evans <dje@google.com>
5377
5378 * NEWS: Mention "set print raw frame-arguments".
5379 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5380 * stack.c (print_raw_frame_arguments): New static global.
5381 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5382 (_initialize_stack): New command "set/show print raw frame-arguments".
5383 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5384 (set_print_raw, show_print_raw): New functions.
5385 (_initialize_valprint): New prefix command "set/show print raw".
5386 * valprint.h (value_print_options): Improve comments.
5387
5388 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5389 of all *list variables.
5390
5391 * gdbcmd.h (togglelist): Delete.
5392 * cli/cli-cmds.c (togglelist): Delete.
5393 (init_cmd_lists): Update.
5394 * cli/cli-cmds.h (togglelist): Delete.
5395
5396 2013-07-17 Tom Tromey <tromey@redhat.com>
5397
5398 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5399 dwarf2_per_objfile.
5400
5401 2013-07-16 Doug Evans <dje@google.com>
5402
5403 * nto-tdep.c (nto_relocate_section_addresses): Update,
5404 target_section.bfd deleted.
5405 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5406 * s390-tdep.c (s390_load): Ditto.
5407 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5408
5409 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5410
5411 * common/format.c (parse_format_string): Add checks for NULL
5412 character before calling strchr.
5413
5414 2013-07-16 Doug Evans <dje@google.com>
5415
5416 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5417 temp_pathname argument.
5418 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5419 when opening the file fails.
5420
5421 * target.h (struct target_section): Delete member bfd.
5422 All users updated to use the_bfd_section->owner instead.
5423 * exec.c (add_to_section_table): Assert bfd is expected value.
5424 Remove initialization of target_section.bfd.
5425 (remove_target_sections): Update.
5426 (section_table_available_memory): Update.
5427 (section_table_xfer_memory_partial): Update.
5428 (print_section_info): Update.
5429 (exec_set_section_address): Update.
5430 * record-full.c (record_full_core_xfer_partial): Update.
5431 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5432 * solib-target.c (solib_target_relocate_section_addresses): Update.
5433 * symfile.c (build_section_addr_info_from_section_table): Update.
5434 * target.c (memory_xfer_live_readonly_partial): Update.
5435 (memory_xfer_partial_1): Update.
5436
5437 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5438
5439 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5440 now available for embedded (BookE) and server (BookS) processors,
5441 correct mentions of 'booke' and adjust comments accordingly in order to
5442 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5443 (have_ptrace_booke_interface): Rename function and variable
5444 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5445 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5446 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5447 'hwdebug_point_cmp'. Update all uses.
5448 (booke_find_thread_points_by_tid): Rename function
5449 'booke_find_thread_points_by_tid' to
5450 'hwdebug_find_thread_points_by_tid'. Update all uses.
5451 (booke_insert_point): Rename function 'booke_insert_point' to
5452 'hwdebug_insert_point'. Update all uses.
5453 (booke_remove_point): Rename function 'booke_remove_point' to
5454 'hwdebug_remove_point'. Update all uses.
5455
5456 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5457
5458 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5459 numbers with enum values.
5460
5461 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5462
5463 PR threads/13217
5464 * thread.c (thread_apply_all_command): Check for valid threads
5465 and thread count.
5466 (thread_array_cleanup): New struct.
5467 (set_thread_refcount): New function.
5468
5469 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5470
5471 * infcmd.c (default_print_one_register_info): Reuse function
5472 print_hex_chars.
5473
5474 2013-07-10 Tom Tromey <tromey@redhat.com>
5475
5476 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5477 (ada-exp.o): New target.
5478
5479 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5480
5481 * mt-tdep.c (mt_registers_info): Call
5482 get_no_prettyformat_print_options instead of
5483 get_raw_print_options (regression by last patch from Doug
5484 Evans).
5485
5486 2013-07-09 Pedro Alves <palves@redhat.com>
5487
5488 Checked in by Joel Brobecker <brobecker@adacore.com>.
5489 * ada-lang.c (coerce_unspec_val_to_type): Use
5490 value_optimized_out_const.
5491 * value.c (value_optimized_out_const): New function.
5492 * value.h (value_optimized_out_const): New declaration.
5493
5494 2013-07-09 Doug Evans <dje@google.com>
5495
5496 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5497 Enum values rename as well. All uses updated.
5498 * valprint.h (value_print_options): Rename member pretty to
5499 pretty format. Rename member prettyprint_arrays to
5500 prettyformat_arrays. Rename member prettyprint_structs to
5501 prettyformat_structs. All uses updated.
5502 (get_no_prettyformat_print_options): Renamed from
5503 get_raw_print_options.
5504 * valprint.c (get_no_prettyformat_print_options): Renamed from
5505 get_raw_print_options. All callers updated.
5506 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5507 All callers updated.
5508 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5509 All callers updated.
5510 (_initialize_valprint): Improve help text for "set print pretty" and
5511 "set print arrays".
5512
5513 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5514
5515 * value.c (value_bits_valid): Revert previous change, and change
5516 by Pedro on 2013-07-04, due to regressions in
5517 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5518
5519 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5520 Pedro Alves <palves@redhat.com>
5521
5522 * value.c (value_bits_valid): If the value is not lval_computed
5523 or has no check validity handler then the answer is the
5524 optimized_out flag, otherwise defer to the handler.
5525
5526 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5527
5528 * top.c (print_gdb_configuration): Explain in output of
5529 --configuration what does "relocatable" mean.
5530
5531 * main.c (print_gdb_help): Regroup options in the --help text.
5532 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5533 the relevant discussions.
5534
5535 2013-07-06 Yao Qi <yao@codesourcery.com>
5536
5537 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5538 Remove parameter 'lsal'.
5539 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5540 to inner block. Caller update.
5541 (base_breakpoint_create_breakpoints_sal): Update.
5542 (bkpt_create_breakpoints_sal): Likewise.
5543 (tracepoint_create_breakpoints_sal): Likewise.
5544 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5545 element 0 of vector 'canonical->sals'.
5546
5547 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5548
5549 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5550 register number instead of the pseudo register one.
5551 (rs6000_dwarf2_reg_to_regnum): Likewise.
5552
5553 2013-07-04 Pedro Alves <palves@redhat.com>
5554
5555 * findvar.c (value_of_register): Use allocate_optimized_out_value
5556 if the register has been optimized out, instead of
5557 set_value_optimized_out.
5558 * frame-unwind.c (frame_unwind_got_optimized): Use
5559 allocate_optimized_out_value.
5560
5561 2013-07-04 Pedro Alves <palves@redhat.com>
5562
5563 * value.c (value_bits_valid): If the value is not lval_computed,
5564 or doesn't have a check_validity hook, assume the value is entirely
5565 valid.
5566
5567 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5568
5569 * stack.c (read_frame_arg): No longer fetch lazy values.
5570 * value.c (value_optimized_out): If the value is not already
5571 marked optimized out, and is lazy then fetch it.
5572 (value_primitive_field): Move optimized out check to later in the
5573 function, after we have loaded any lazy values.
5574 (value_fetch_lazy): Use optimized out flag directly rather than
5575 calling optimized_out method.
5576
5577 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5578
5579 * valops.c: Don't include "user-regs.h".
5580 (value_fetch_lazy): Moved to value.c.
5581 * value.c: Include "user-regs.h".
5582 (value_fetch_lazy): Moved from valops.c.
5583
5584 2013-07-04 Yao Qi <yao@codesourcery.com>
5585
5586 Revert:
5587 2013-06-27 Yao Qi <yao@codesourcery.com>
5588
5589 * common/create-version.sh: Update comments. Handle the case
5590 that TARGET_ALIAS is empty.
5591
5592 2013-07-03 Pedro Alves <palves@redhat.com>
5593
5594 * Makefile.in (config.status): Depend on development.sh.
5595 (aclocal_m4_deps): Add libmcheck.m4.
5596 * acinclude.m4: Include libmcheck.m4.
5597 * configure.ac: Source development.sh instead of setting
5598 'development' here. --enable-libmcheck/--disable-libmcheck code
5599 factored out to GDB_AC_LIBMCHECK. Run it.
5600 * development.sh: New file.
5601 * libmcheck.m4: New file.
5602 * configure: Regenerate.
5603
5604 2013-07-02 Tom Tromey <tromey@redhat.com>
5605
5606 * contrib/ari/update-web-ari.sh: Update for version.in change.
5607
5608 2013-07-02 Tom Tromey <tromey@redhat.com>
5609
5610 * common/ptid.h: Comment fixes.
5611
5612 2013-07-01 Tom Tromey <tromey@redhat.com>
5613
5614 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5615 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5616 (dwarf2_read_index, create_all_comp_units): Update.
5617
5618 2013-07-01 Tom Tromey <tromey@redhat.com>
5619
5620 * configure.ac (build_warnings): Add -Wold-style-definition.
5621 * configure: Rebuild.
5622 * machoread.c (_initialize_machoread): Use "(void)".
5623 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5624 use "(void)".
5625
5626 2013-07-01 Tom Tromey <tromey@redhat.com>
5627
5628 * configure.ac (build_warnings): Add -Wold-style-declaration.
5629 * configure: Rebuild.
5630 * dsrec.c (make_srec): Use "static const", not "const static".
5631 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5632 not "const static".
5633 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5634 Use "static const", not "const static".
5635 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5636 not "const static".
5637 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5638 not "const static".
5639 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5640 not "const static".
5641 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5642 not "const static".
5643 (v850_dbtrap_breakpoint_from_pc): Likewise.
5644 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5645 not "const static".
5646
5647 2013-07-01 Tom Tromey <tromey@redhat.com>
5648
5649 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5650 * configure: Rebuild.
5651
5652 2013-07-01 Pedro Alves <palves@redhat.com>
5653
5654 * defs.h: Include "pathmax.h".
5655 * utils.c: Don't include sys/param.h.
5656 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5657 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5658 instead of MAXPATHLEN.
5659 * solib-sunos.c: Don't include sys/param.h.
5660 * xcoffread.c: Don't include sys/param.h.
5661 * bsd-kvm.c: Don't include sys/param.h.
5662 * darwin-nat.c: Don't include sys/param.h.
5663 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5664 * darwin-nat-info.c: Don't include sys/param.h.
5665 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5666 MAXPATHLEN.
5667 * i386obsd-nat.c: Don't include sys/param.h.
5668 * inf-child.c: Don't include sys/param.h.
5669 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5670 * linux-fork.c: Don't include sys/param.h.
5671 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5672 * linux-nat.c: Don't include sys/param.h.
5673 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5674 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5675 * m68klinux-nat.c: Don't include sys/param.h.
5676 * nbsd-nat.c: Don't include sys/param.h.
5677 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5678 * ppc-linux-nat.c: Don't include sys/param.h.
5679 * rs6000-nat.c: Don't include sys/param.h.
5680 * spu-linux-nat.c. Don't include sys/param.h.
5681 * windows-nat.c: Don't include sys/param.h.
5682 * xtensa-linux-nat.c: Don't include sys/param.h.
5683 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5684
5685 2013-07-01 Pedro Alves <palves@redhat.com>
5686
5687 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5688 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5689 * gnulib/aclocal.m4: Regenerate.
5690 * gnulib/config.in: Regenerate.
5691 * gnulib/configure: Regenerate.
5692 * gnulib/import/pathmax.h: New file.
5693 * gnulib/import/Makefile.am: Regenerate.
5694 * gnulib/import/Makefile.in: Regenerate.
5695 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5696 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5697 * gnulib/import/m4/pathmax.m4: New file.
5698
5699 2013-07-01 Pedro Alves <palves@redhat.com>
5700
5701 * configure.ac (GDBINIT): Define, depending on host.
5702 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5703 * top.c (PATH_MAX): Delete fallback definition.
5704 (GDBINIT_FILENAME): Delete.
5705 (gdbinit): Reimplement as const char array set to the GDBINIT
5706 string constant.
5707 * top.h (gdbinit): Make const.
5708 * configure, config.in: Regenerate.
5709
5710 2013-07-01 Pedro Alves <palves@redhat.com>
5711
5712 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5713 * cli/cli-cmds.h (source_script): Likewise.
5714 * exceptions.c (catch_command_errors_const): New function.
5715 * exceptions.h (catch_command_errors_const): Declare.
5716 * main.c (get_init_files): Make parameters const, and adjust.
5717 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5718 'local_gdbinit' locals const. Adjust to use
5719 catch_command_errors_const.
5720 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5721 'local_gdbinit' locals const.
5722
5723 2013-07-01 Pedro Alves <palves@redhat.com>
5724
5725 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5726 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5727 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5728 <unistd.h>.
5729
5730 2013-07-01 Pedro Alves <palves@redhat.com>
5731
5732 Import the "unistd" gnulib module.
5733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5734 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5735 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5736 import/m4/unistd_h.m4.
5737 * gnulib/aclocal.m4: Renenerate.
5738 * gnulib/config.in: Renenerate.
5739 * gnulib/configure: Renenerate.
5740 * gnulib/import/Makefile.am: Renenerate.
5741 * gnulib/import/Makefile.in: Renenerate.
5742 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5743 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5744 * gnulib/import/m4/off_t.m4: New file.
5745 * gnulib/import/m4/ssize_t.m4: New file.
5746 * gnulib/import/m4/sys_types_h.m4: New file.
5747 * gnulib/import/m4/unistd_h.m4: New file.
5748 * gnulib/import/sys_types.in.h: New file.
5749 * gnulib/import/unistd.c: New file.
5750 * gnulib/import/unistd.in.h: New file.
5751
5752 2013-07-01 Pedro Alves <palves@redhat.com>
5753
5754 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5755 defined instead of checking HAVE_UNISTD_H.
5756
5757 2013-07-01 Pedro Alves <palves@redhat.com>
5758
5759 Reimport gnulib from scratch.
5760 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5761 import/m4/onceonly.m4.
5762 * gnulib/aclocal.m4: Renegerate.
5763 * gnulib/config.in: Renegerate.
5764 * gnulib/configure: Renegerate.
5765 * gnulib/import/Makefile.in: Renegerate.
5766 * gnulib/import/extra/update-copyright: Renegerate.
5767 * gnulib/import/m4/onceonly.m4: Delete.
5768
5769 2013-07-01 Pedro Alves <palves@redhat.com>
5770
5771 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5772
5773 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5774
5775 Code cleanup.
5776 * remote.c (async_remote_interrupt_twice): Make it static.
5777 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5778
5779 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5780
5781 * ia64-linux-tdep.c: Include <ctype.h>.
5782 (ia64_linux_stap_is_single_operand): New function.
5783 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5784
5785 2013-06-28 Tom Tromey <tromey@redhat.com>
5786
5787 * Makefile.in (version.c): Use version.in, not
5788 common/version.in.
5789 * common/create-version.sh: Likewise.
5790 * common/version.in: Move...
5791 * version.in: ...here.
5792
5793 2013-06-28 Pedro Alves <palves@redhat.com>
5794
5795 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5796 here.
5797 * utils.h (pagination_enabled): Declare.
5798
5799 2013-06-28 Pedro Alves <palves@redhat.com>
5800
5801 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5802 Move higher up in file.
5803
5804 2013-06-28 Tom Tromey <tromey@redhat.com>
5805
5806 * tracepoint.c (deprecated_readline_begin_hook)
5807 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5808 declare.
5809
5810 2013-06-28 Pedro Alves <palves@redhat.com>
5811
5812 PR tui/14880
5813 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5814 checking if they're available.
5815 * value.c (value_available_contents_eq): Change comment.
5816 * value.h (value_available_contents_eq): Expand comment.
5817
5818 2013-06-27 Tom Tromey <tromey@redhat.com>
5819
5820 * target.c (find_run_target): Remove.
5821 * target.h (find_run_target): Remove.
5822
5823 2013-06-27 Tom Tromey <tromey@redhat.com>
5824
5825 * corelow.c (core_gdbarch): Now static.
5826
5827 2013-06-27 Tom Tromey <tromey@redhat.com>
5828
5829 * target.c (target_struct_index): Remove.
5830
5831 2013-06-27 Pedro Alves <palves@redhat.com>
5832
5833 * infrun.c: Remove comment describing the 'stepping over runtime
5834 loader dynamic symbol resolution code' mechanism; moved to
5835 gdbint.texinfo.
5836
5837 2013-06-27 Pedro Alves <palves@redhat.com>
5838
5839 * exceptions.c (catch_command_errors): Remove spurious space.
5840 * exceptions.h (catch_command_errors): Second parameter is "arg",
5841 not "command".
5842
5843 2013-06-27 Yao Qi <yao@codesourcery.com>
5844
5845 * common/create-version.sh: Update comments. Handle the case
5846 that TARGET_ALIAS is empty.
5847
5848 2013-06-26 Pedro Alves <palves@redhat.com>
5849
5850 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5851 comment.
5852
5853 2013-06-26 Pedro Alves <palves@redhat.com>
5854
5855 * infrun.c: Update comments on stepping over runtime loader
5856 dynamic symbol resolution code.
5857
5858 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5859
5860 * ax-gdb.h (union exp_element): Forward declare.
5861 * parser-defs.h: Include expression.h.
5862
5863 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5864
5865 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5866
5867 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5868
5869 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5870
5871 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5872
5873 Fix trace-status to output proper start-time and stop-time.
5874 * tracepoint.c (trace_status_command): Fix type of printf arg to
5875 prevent improper type conversion.
5876 (trace_status_mi): Likewise.
5877
5878 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5879
5880 * mips-tdep.c (mips_next_pc): Fix a typo.
5881
5882 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5883
5884 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5885
5886 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5887 Yao Qi <yao@codesourcery.com>
5888
5889 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5890 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5891 * mi/mi-main.c (print_variable_or_computed): New function.
5892 (mi_cmd_trace_frame_collected): New function.
5893 * tracepoint.c (find_trace_state_variable_by_number): New.
5894 (struct traceframe_info): Move to tracepoint.h
5895 (struct collection_list): Likewise.
5896 (do_collect_symbol): Include locals and arguments in the
5897 collected variables list.
5898 (clear_collection_list): Clear wholly collected variables list
5899 and computed variables list.
5900 (append_exp): New function.
5901 (encode_actions_1): Include variables in the wholly
5902 collected variables list. Include memory ranges and
5903 full-fledged expressions in the computed expressions list.
5904 (encode_actions): Move some code to ...
5905 Return the cleanup chain.
5906 (encode_actions_rsp): ... here. New function.
5907 (get_traceframe_location, get_traceframe_info): Remove static.
5908 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5909 (struct collection_list): Moved from tracepoint.c. Add two
5910 new fields 'wholly_collected' and 'computed'.
5911 (find_trace_state_variable_by_number): Declare.
5912 (encode_actions): Adjust declaration.
5913 (encode_actions_rsp): Declare.
5914 (get_traceframe_info, get_traceframe_location): Declare.
5915
5916 * NEWS: Mention new MI command -trace-frame-collected.
5917
5918 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5919 Yao Qi <yao@codesourcery.com>
5920
5921 * ctf.c (ctf_traceframe_info): Push trace state variables
5922 present in the trace data into the traceframe info object.
5923 * breakpoint.c (DEF_VEC_I): Remove.
5924 * common/filestuff.c (DEF_VEC_I): Likewise.
5925 * dwarf2loc.c (DEF_VEC_I): Likewise.
5926 * mi/mi-main.c (DEF_VEC_I): Likewise.
5927 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5928 * features/traceframe-info.dtd: Add tvar element and its
5929 attributes.
5930 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5931 (build_traceframe_info): Push trace state variables present in
5932 the trace data into the traceframe info object.
5933 (traceframe_info_start_tvar): New function.
5934 (tvar_attributes): New.
5935 (traceframe_info_children): Add "tvar" element.
5936 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5937
5938 * NEWS: Mention the change in GDB and GDBserver.
5939
5940 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5941 Yao Qi <yao@codesourcery.com>
5942
5943 * tracepoint.c (trace_dump_command): Move code to ...
5944 (get_traceframe_location): ... here. New.
5945
5946 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5947 Yao Qi <yao@codesourcery.com>
5948
5949 * tracepoint.c (trace_dump_command): GDB emits an error
5950 instead of a warning when a traceframe is not selected.
5951
5952 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5953 Yao Qi <yao@codesourcery.com>
5954
5955 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5956 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5957 in collection_list.
5958 (do_clear_collection_list, init_collection_list): New.
5959 (encode_actions): Add local variables 'tracepoint_list' and
5960 'stepping_list'. Call init_collection_list and make cleanup
5961 which calls do_clear_collection_list. Don't call
5962 clear_collection_list.
5963 (_initialize_tracepoint): Delete references to
5964 'tracepoint_list' and 'stepping_list'.
5965
5966 2013-06-25 Tom Tromey <tromey@redhat.com>
5967
5968 * common/create-version.sh (date): Use "$", not "$$" in sed
5969 expression.
5970
5971 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5972
5973 * NEWS (New targets): Add entry for TI MSP430.
5974
5975 2013-06-25 Yao Qi <yao@codesourcery.com>
5976
5977 * remote.c (remote_start_remote): Move code to upload tsv
5978 earlier.
5979
5980 2013-06-25 Yao Qi <yao@codesourcery.com>
5981 Hui Zhu <hui@codesourcery.com>
5982 Pedro Alves <palves@redhat.com>
5983
5984 PR breakpoints/15075
5985 PR breakpoints/15434
5986 * breakpoint.c (bpstat_stop_status): Call
5987 b->ops->after_condition_true.
5988 (update_dprintf_command_list): Don't append "continue" command
5989 to the command list of dprintf breakpoint.
5990 (base_breakpoint_after_condition_true): New function.
5991 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5992 (dprintf_after_condition_true): New function.
5993 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5994 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5995
5996 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5997
5998 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5999 (ALLDEPFILES): Add msp430-tdep.c.
6000 * configure.tgt (msp430*-*-elf): New target.
6001 * msp430-tdep.c: New file.
6002
6003 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6004
6005 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6006 microMIPS synthetic symbols.
6007
6008 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6009
6010 * objfiles.h (pc_in_section): New prototype.
6011 (in_plt_section): Remove name argument, replace prototype with
6012 static inline function.
6013 * mips-tdep.h: Include "objfiles.h".
6014 (in_mips_stubs_section): New function.
6015 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6016 in_solib_call_trampoline member.
6017 (hppa_in_solib_call_trampoline): Remove name argument.
6018 * objfiles.c (pc_in_section): New function.
6019 (in_plt_section): Remove function.
6020 * mips-linux-tdep.c: Include "objfiles.h".
6021 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6022 name argument. Return 1 rather than the low 16-bit halfword of
6023 any instruction examined.
6024 (mips_linux_in_dynsym_resolve_code): Update
6025 mips_linux_in_dynsym_stub call accordingly.
6026 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6027 rather than an equivalent hand-coded sequence.
6028 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6029 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6030 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6031 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6032 in_opd_section.
6033 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6034 on call to tdep->in_solib_call_trampoline.
6035 (hppa_in_solib_call_trampoline): Remove name argument, update
6036 according to in_plt_section change.
6037 (hppa_skip_trampoline_code): Update according to in_plt_section
6038 change.
6039 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6040 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6041 Likewise.
6042 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6043 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6044 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6045 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6046 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6047 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6048 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6049 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6050 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6051 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6052 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6053 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6054 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6055
6056 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6057
6058 * common/create-version.sh: Fix expansion of $host_alias
6059 and $target_alias in generation of HOST_NAME and TARGET_NAME
6060 (resp.).
6061
6062 2013-06-24 Tom Tromey <tromey@redhat.com>
6063
6064 * common/create-version.sh: New file.
6065 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6066 create-version.sh.
6067 (HFILES_NO_SRCDIR): Use common/version.h.
6068 * version.in: Move to ...
6069 * common/version.in: ... here. Replace date with "DATE".
6070 * version.h: Move to ...
6071 * common/version.h: ... here.
6072
6073 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6074
6075 * gdb/gnulib/Makefile.in: Update date in copyright header.
6076 * gdb/gnulib/configure.ac: Ditto.
6077 * gdb/gnulib/update-gnulib.sh: Ditto.
6078
6079 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6080
6081 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6082 "gdb/gnulib/import".
6083
6084 2013-06-21 Will Newton <will.newton@linaro.org>
6085
6086 * doublest.c (ldfrexp): Remove function.
6087 (convert_doublest_to_floatformat): Call frexpl instead of
6088 ldfrexp.
6089
6090 2013-06-21 Will Newton <will.newton@linaro.org>
6091
6092 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6093 * gnulib/aclocal.m4: Regenerate.
6094 * gnulib/config.in: Regenerate.
6095 * gnulib/configure: Regenerate.
6096 * gnulib/import/Makefile.am: Update.
6097 * gnulib/import/Makefile.in: Update.
6098 * gnulib/import/m4/gnulib-cache.m4: Update.
6099 * gnulib/import/m4/gnulib-comp.m4: Update.
6100 * gnulib/import/float+.h: Import.
6101 * gnulib/import/float.c: Import.
6102 * gnulib/import/float.in.h: Import.
6103 * gnulib/import/fpucw.h: Import.
6104 * gnulib/import/frexp.c: Import.
6105 * gnulib/import/frexpl.c: Import.
6106 * gnulib/import/isnan.c: Import.
6107 * gnulib/import/isnand-nolibm.h: Import.
6108 * gnulib/import/isnand.c: Import.
6109 * gnulib/import/isnanl-nolibm.h: Import.
6110 * gnulib/import/isnanl.c: Import.
6111 * gnulib/import/itold.c: Import.
6112 * gnulib/import/m4/exponentd.m4: Import.
6113 * gnulib/import/m4/exponentl.m4: Import.
6114 * gnulib/import/m4/float_h.m4: Import.
6115 * gnulib/import/m4/fpieee.m4: Import.
6116 * gnulib/import/m4/frexp.m4: Import.
6117 * gnulib/import/m4/frexpl.m4: Import.
6118 * gnulib/import/m4/isnand.m4: Import.
6119 * gnulib/import/m4/isnanl.m4: Import.
6120 * gnulib/import/m4/math_h.m4: Import.
6121 * gnulib/import/math.c: Import.
6122 * gnulib/import/math.in.h: Import.
6123
6124 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6125
6126 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6127 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6128 signature_INTEL_edx comparisons.
6129
6130 2013-06-20 Doug Evans <dje@google.com>
6131
6132 symtab/15652
6133 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6134 All callers updated.
6135 (open_dwp_file): If we can't find the dwp file, search the basename
6136 in debug-file-directory.
6137
6138 * dwarf2read.c (struct dwp_file): Fix comment.
6139 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6140
6141 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6142 better.
6143
6144 2013-06-20 Yao Qi <yao@codesourcery.com>
6145
6146 * breakpoint.c (create_breakpoint): Fix code indentation.
6147
6148 2013-06-20 Yao Qi <yao@codesourcery.com>
6149
6150 * breakpoint.c (create_breakpoints_sal_default): Remove
6151 parameter 'lsal'. Update declaration.
6152 (bkpt_create_breakpoints_sal): Caller update.
6153 (tracepoint_create_breakpoints_sal): Likewise.
6154
6155 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6156 Yao Qi <yao@codesourcery.com>
6157
6158 * NEWS: Mention the new option '--skip-unavailable' of command
6159 -data-list-register-values.
6160 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6161 --skip-unavailable option. Adjust to use output_register.
6162 (output_register): Add new 'skip_unavailable' parameter.
6163 Handle it.
6164
6165 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6166
6167 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6168 common/i386-gcc-cpuid.h.
6169 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6170 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6171 Copy the latest version from upstream gcc.
6172 * common/linux-btrace.c: Include i386-cpuid.h.
6173 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6174 call to i386_cpuid.
6175 (cpu_supports_btrace): Likewise.
6176 * go32-nat.c: Include i386-cpuid.h.
6177 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6178
6179 2013-06-19 Doug Evans <dje@google.com>
6180
6181 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6182 (get_section_index): Ditto.
6183
6184 2013-06-19 Tom Tromey <tromey@redhat.com>
6185
6186 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6187 "dprintf" help.
6188
6189 2013-06-18 Doug Evans <dje@google.com>
6190
6191 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6192 before using it.
6193 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6194 Move test of cu_index closer to use. Print complaint if cu_index
6195 is bad.
6196
6197 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6198
6199 * machoread.c (oso_vector): Delete this global.
6200 (macho_register_oso): Add new parameter "oso_vector_ptr".
6201 Use it instead of the "oso_vector" global.
6202 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6203 (macho_symfile_read): Use a local oso_vector, to be free'ed
6204 at the end of this function, in place of the old "oso_vector"
6205 global. Update various function calls accordingly. Use one
6206 single cleanup chain for the entire function.
6207
6208 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6209
6210 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6211 DWARF2_PER_OBJFILE by uses of DATA instead.
6212
6213 2013-06-18 Tom Tromey <tromey@redhat.com>
6214
6215 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6216 argument.
6217 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6218 Special case signals other than GDB_SIGNAL_TRAP.
6219 (explains_signal_watchpoint): New function.
6220 (base_breakpoint_explains_signal): Add 'sig' argument.
6221 (initialize_breakpoint_ops): Set 'explains_signal' method for
6222 watchpoints.
6223 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6224 signal argument.
6225 (bpstat_explains_signal): Likewise.
6226 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6227
6228 2013-06-18 Tom Tromey <tromey@redhat.com>
6229
6230 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6231
6232 2013-06-18 Tom Tromey <tromey@redhat.com>
6233
6234 * python/python.c (finish_python_initialization): Decref
6235 'pythondir' on failure path as well.
6236
6237 2013-06-18 Tom Tromey <tromey@redhat.com>
6238
6239 PR symtab/15391:
6240 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6241 after taking bits_to_skip into account. Sign extend byte_offset.
6242 * utils.h (gdb_sign_extend): Declare.
6243 * utils.c (gdb_sign_extend): New function.
6244
6245 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6248
6249 2013-06-17 Pierre Muller <muller@sourceware.org>
6250
6251 * corelow.c (core_open): Print GDB signal name instead of target
6252 signal number.
6253
6254 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6255
6256 * .gitignore: Add /gcore.
6257
6258 2013-06-13 Doug Evans <dje@google.com>
6259
6260 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6261 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6262
6263 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6264
6265 * stack.c (backtrace_command_1): Fix indentation.
6266
6267 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6268
6269 * window-nat.c (thread_rec): Add missing empty line after
6270 local variable declaration.
6271
6272 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6273
6274 * windows-nat.c (thread_rec): Revert format used to print
6275 error code returned by SuspendThread from %d back to %u.
6276
6277 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6278
6279 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6280 ID in debug trace.
6281 (get_windows_debug_event): Likewise, for all debug traces.
6282
6283 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6284
6285 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6286 warning message.
6287
6288 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6289 Yao Qi <yao@codesourcery.com>
6290
6291 * mi/mi-main.c (get_register): Remove declaration.
6292 (output_register): Declare.
6293 (mi_cmd_data_list_register_values): Remove local variable
6294 'tuple_cleanup'. Move some code into output_register.
6295 (get_register): Renamed to ...
6296 (output_register): ... this. Output the register's
6297 "number" ui_out tuple here.
6298
6299 2013-06-07 Pedro Alves <palves@redhat.com>
6300
6301 * darwin-nat.c: Fix formating in copyright header.
6302 * darwin-nat.h: Likewise.
6303 * gnu-nat.c: Likewise.
6304 * machoread.c: Likewise.
6305
6306 2013-06-07 Pedro Alves <palves@redhat.com>
6307
6308 PR server/14823
6309 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6310 static. Output a global target description pointer.
6311 (init_registers_${name}): Adjust to initialize a
6312 target description structure.
6313
6314 2013-06-07 Will Newton <will.newton@linaro.org>
6315
6316 * printcmd.c (build_address_symbolic): Call
6317 gdbarch_addr_bits_remove for text minimal symbols.
6318
6319 2013-06-07 Will Newton <will.newton@linaro.org>
6320
6321 * MAINTAINERS: Add myself to Write After Approval.
6322
6323 2013-06-07 Yao Qi <yao@codesourcery.com>
6324
6325 * tracepoint.c (start_tracing): Move code to ...
6326 (trace_reset_local_state): ... here. New.
6327 (disconnect_tracing): Don't call set_current_traceframe,
6328 set_tracepoint_num, and set_traceframe_context. Call
6329 trace_reset_local_state instead.
6330 (tfile_close): Call trace_reset_local_state.
6331 * ctf.c (ctf_close): Likewise.
6332 * remote.c (remote_close): Likewise.
6333 * tracepoint.h (trace_reset_local_state): Declare.
6334
6335 2013-06-06 Doug Evans <dje@google.com>
6336
6337 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6338 and fix header docs.
6339
6340 2013-06-05 Doug Evans <dje@google.com>
6341 Keith Seitz <keiths@redhat.com>
6342
6343 PR 15519
6344 * cp-namespace.c (find_symbol_in_baseclass): Call
6345 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6346 Check result of call to lookup_symbol_static.
6347 Call lookup_static_symbol_aux unconditionally.
6348 Call check_typedef on base types before accessing them.
6349 (cp_lookup_nested_symbol): Fix comment.
6350
6351 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6352
6353 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6354 minimal symbols pointing to function descriptors.
6355
6356 2013-06-05 Tom Tromey <tromey@redhat.com>
6357
6358 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6359
6360 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6361 Pedro Alves <palves@redhat.com>
6362
6363 * remote.c (remote_wait_as): Restore signal handler before returning
6364 when GDB gets a notification.
6365
6366 2013-06-04 Gary Benson <gbenson@redhat.com>
6367
6368 PR 2328
6369 * breakpoint.h (handle_solib_event): Moved function declaration
6370 to solib.h.
6371 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6372 (bpstat_stop_status): Pass new argument to handle_solib_event.
6373 * solib.h (update_solib_breakpoints): New function declaration.
6374 (handle_solib_event): Moved function declaration from
6375 breakpoint.h.
6376 * solib.c (update_solib_breakpoints): New function.
6377 (handle_solib_event): Moved function from breakpoint.c.
6378 Updated to call solib_ops->handle_event if not NULL.
6379 * solist.h (target_so_ops): New fields "update_breakpoints" and
6380 "handle_event".
6381 * infrun.c (set_stop_on_solib_events): New function.
6382 (_initialize_infrun): Use the above for "set
6383 stop-on-solib-events".
6384 (handle_inferior_event): Pass new argument to handle_solib_event.
6385 * solib-svr4.c (probe.h): New include.
6386 (svr4_free_library_list): New forward declaration.
6387 (probe_action): New enum.
6388 (probe_info): New struct.
6389 (probe_info): New static variable.
6390 (NUM_PROBES): New definition.
6391 (svr4_info): New fields "using_xfer", "probes_table" and
6392 "solib_list".
6393 (free_probes_table): New function.
6394 (free_solib_list): New function.
6395 (svr4_pspace_data_cleanup): Free probes table and solib list.
6396 (svr4_copy_library_list): New function.
6397 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6398 (svr4_read_so_list): New parameter "prev_lm".
6399 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6400 (svr4_current_sos): New function.
6401 (probe_and_action): New struct.
6402 (hash_probe_and_action): New function.
6403 (equal_probe_and_action): Likewise.
6404 (register_solib_event_probe): Likewise.
6405 (solib_event_probe_at): Likewise.
6406 (solib_event_probe_action): Likewise.
6407 (solist_update_full): Likewise.
6408 (solist_update_incremental): Likewise.
6409 (disable_probes_interface_cleanup): Likewise.
6410 (svr4_handle_solib_event): Likewise.
6411 (svr4_update_solib_event_breakpoint): Likewise.
6412 (svr4_update_solib_event_breakpoints): Likewise.
6413 (svr4_create_solib_event_breakpoints): Likewise.
6414 (enable_break): Free probes table before creating breakpoints.
6415 Use svr4_create_solib_event_breakpoints to create breakpoints.
6416 (svr4_solib_create_inferior_hook): Free the solib list.
6417 (_initialize_svr4_solib): Initialise
6418 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6419
6420 2013-06-04 Gary Benson <gbenson@redhat.com>
6421
6422 * target.h (target_ops): New field
6423 "to_augmented_libraries_svr4_read".
6424 (target_augmented_libraries_svr4_read): New macro.
6425 * target.c (update_current_target): Handle
6426 to_augmented_libraries_svr4_read.
6427 * remote.c (remote_state): New field
6428 "augmented_libraries_svr4_read".
6429 (remote_augmented_libraries_svr4_read_feature): New function.
6430 (remote_protocol_features): Add entry for
6431 "augmented-libraries-svr4-read".
6432 (remote_augmented_libraries_svr4_read): New function.
6433 (init_remote_ops): Initialize
6434 remote_ops.to_augmented_libraries_svr4_read.
6435
6436 2013-06-04 Gary Benson <gbenson@redhat.com>
6437
6438 * NEWS: Update.
6439
6440 2013-06-04 Gary Benson <gbenson@redhat.com>
6441
6442 * objfiles.h (inhibit_section_map_updates): New function
6443 declaration.
6444 (resume_section_map_updates): Likewise.
6445 (resume_section_map_updates_cleanup): Likewise.
6446 * objfiles.c (objfile_pspace_info): Removed field
6447 "objfiles_changed_p". New fields "new_objfiles_available",
6448 "section_map_dirty" and "inhibit_updates".
6449 (allocate_objfile): Set new_objfiles_available.
6450 (free_objfile): Set section_map_dirty.
6451 (objfile_relocate1): Likewise.
6452 (in_plt_section): Likewise.
6453 (find_pc_section): Update the conditions under which the
6454 section map will be updated.
6455 (inhibit_section_map_updates): New function.
6456 (resume_section_map_updates): Likewise.
6457 (resume_section_map_updates_cleanup): Likewise.
6458
6459 2013-06-04 Gary Benson <gbenson@redhat.com>
6460
6461 * probe.h (get_probe_argument_count): New declaration.
6462 (evaluate_probe_argument): Likewise.
6463 * probe.c (get_probe_argument_count): New function.
6464 (evaluate_probe_argument): Likewise.
6465 (probe_safe_evaluate_at_pc): Use the above new functions.
6466
6467 2013-06-04 Alan Modra <amodra@gmail.com>
6468
6469 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6470 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6471 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6472 target mem reads on optional insns.
6473 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6474 ppc_insns_match_pattern calls.
6475 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6476 Add match for power7 thread safety insns, and new order of
6477 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6478 invocation in comment, and update rest of comment.
6479 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6480 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6481 (ppc64_standard_linkage2_target): Update insn offsets.
6482 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6483 stubs first. Update calls.
6484
6485 2013-06-04 Yao Qi <yao@codesourcery.com>
6486
6487 * solib.c (solib_find): Don't need dir separator if path has
6488 drive spec.
6489
6490 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6491
6492 Revert (indirectly causes a SIGSEGV):
6493 * machoread.c (macho_symfile_read): Assign first cleanup to
6494 'back_to'.
6495
6496 2013-06-03 Yao Qi <yao@codesourcery.com>
6497
6498 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6499 mi-parse.c. Make them static.
6500 (mi_all_values): Likewise.
6501 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6502 mi_parse_print_values. Make it external.
6503 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6504 Remove the declarations.
6505 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6506 * mi/mi-parse.h (mi_parse_print_values): Declare.
6507 * mi/mi-cmd-stack.c: Include mi-parse.h.
6508 (parse_print_values): Remove
6509 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6510 of parse_print_values.
6511 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6512
6513 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6514 Yao Qi <yao@codesourcery.com>
6515
6516 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6517 (encode_actions): Move code to ...
6518 (all_tracepoint_actions_and_cleanup): ... here. New.
6519 (trace_dump_command): Likewise.
6520
6521 2013-05-30 Tom Tromey <tromey@redhat.com>
6522
6523 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6524
6525 2013-05-30 Tom Tromey <tromey@redhat.com>
6526
6527 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6528 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6529 'old_chain' argument. Add 'parser_result' argument.
6530 (gdb_xml_create_parser_and_cleanup): Remove old version.
6531 (gdb_xml_parse_quick): Update.
6532 (xml_process_xincludes): Update.
6533 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6534 declare.
6535
6536 2013-05-30 Tom Tromey <tromey@redhat.com>
6537
6538 * probe.c (collect_probes): Check arguments for NULL before
6539 calling compile_rx_or_error.
6540 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6541 Remove NULL return.
6542
6543 2013-05-30 Tom Tromey <tromey@redhat.com>
6544
6545 * infrun.c (adjust_pc_after_break): Introduce an outer null
6546 cleanup.
6547
6548 2013-05-30 Tom Tromey <tromey@redhat.com>
6549
6550 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6551
6552 2013-05-30 Tom Tromey <tromey@redhat.com>
6553
6554 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6555 for 'old_chain'. Do not check 'head' before processing
6556 cleanups.
6557
6558 2013-05-30 Tom Tromey <tromey@redhat.com>
6559
6560 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6561 "cleanup_tuple".
6562
6563 2013-05-30 Tom Tromey <tromey@redhat.com>
6564
6565 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6566 inner scope. Unconditionally call do_cleanups.
6567
6568 2013-05-30 Tom Tromey <tromey@redhat.com>
6569
6570 * source.c (find_and_open_source): Call do_cleanups.
6571
6572 2013-05-30 Tom Tromey <tromey@redhat.com>
6573
6574 * linux-thread-db.c (thread_db_load_search): Unconditionally
6575 call do_cleanups.
6576
6577 2013-05-30 Tom Tromey <tromey@redhat.com>
6578
6579 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6580 for 'cleanup'; instead use a later one.
6581
6582 2013-05-30 Tom Tromey <tromey@redhat.com>
6583
6584 * python/py-breakpoint.c (bppy_get_commands): Use
6585 explicit, unconditional return.
6586 * python/py-frame.c (frapy_read_var): Likewise.
6587 * python/python.c (gdbpy_decode_line): Likewise.
6588
6589 2013-05-30 Tom Tromey <tromey@redhat.com>
6590
6591 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6592 do_cleanups on all return paths.
6593
6594 2013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6597
6598 2013-05-30 Tom Tromey <tromey@redhat.com>
6599
6600 * stabsread.c (read_struct_type): Call do_cleanups along
6601 all return paths.
6602
6603 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6604
6605 * mips-linux-tdep.c: Adjust formatting throughout.
6606
6607 2013-05-30 Tom Tromey <tromey@redhat.com>
6608
6609 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6610 along all return paths.
6611
6612 2013-05-30 Tom Tromey <tromey@redhat.com>
6613
6614 * symfile.c (find_separate_debug_file): Call do_cleanups
6615 along all return paths.
6616
6617 2013-05-30 Tom Tromey <tromey@redhat.com>
6618
6619 * symtab.c (search_symbols): Introduce a null cleanup for
6620 'retval_chain'.
6621
6622 2013-05-30 Tom Tromey <tromey@redhat.com>
6623
6624 * python/py-value.c (valpy_binop): Call do_cleanups before
6625 exiting loop.
6626
6627 2013-05-30 Tom Tromey <tromey@redhat.com>
6628
6629 * python/py-prettyprint.c (print_children): Remove extra
6630 do_cleanups call.
6631
6632 2013-05-30 Tom Tromey <tromey@redhat.com>
6633
6634 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6635 all return paths.
6636
6637 2013-05-30 Tom Tromey <tromey@redhat.com>
6638
6639 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6640 along all return paths.
6641
6642 2013-05-30 Tom Tromey <tromey@redhat.com>
6643
6644 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6645 call do_cleanups.
6646
6647 2013-05-30 Tom Tromey <tromey@redhat.com>
6648
6649 * varobj.c (c_value_of_root): Call do_cleanups along all
6650 return paths.
6651
6652 2013-05-30 Tom Tromey <tromey@redhat.com>
6653
6654 * tracepoint.c (trace_dump_command): Unconditionally call
6655 do_cleanups.
6656
6657 2013-05-30 Tom Tromey <tromey@redhat.com>
6658
6659 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6660 do_cleanups earlier.
6661
6662 2013-05-30 Tom Tromey <tromey@redhat.com>
6663
6664 * machoread.c (macho_symfile_read): Assign first cleanup to
6665 'back_to'.
6666
6667 2013-05-30 Tom Tromey <tromey@redhat.com>
6668
6669 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6670
6671 2013-05-30 Tom Tromey <tromey@redhat.com>
6672
6673 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6674
6675 2013-05-30 Tom Tromey <tromey@redhat.com>
6676
6677 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6678 call discard_cleanups.
6679 (inf_ptrace_attach): Likewise.
6680
6681 2013-05-30 Tom Tromey <tromey@redhat.com>
6682
6683 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6684 return paths.
6685 (mips_initialize): Likewise.
6686 (common_open): Call do_cleanups.
6687
6688 2013-05-30 Tom Tromey <tromey@redhat.com>
6689
6690 * utils.c (internal_vproblem): Call do_cleanups.
6691
6692 2013-05-30 Tom Tromey <tromey@redhat.com>
6693
6694 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6695
6696 2013-05-30 Tom Tromey <tromey@redhat.com>
6697
6698 * cli/cli-script.c (setup_user_args): Don't return after error.
6699
6700 2013-05-30 Tom Tromey <tromey@redhat.com>
6701
6702 * somread.c (som_symtab_read): Call do_cleanups.
6703
6704 2013-05-30 Tom Tromey <tromey@redhat.com>
6705
6706 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6707
6708 2013-05-30 Tom Tromey <tromey@redhat.com>
6709
6710 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6711 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6712 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6713 * source.c (show_substitute_path_command): Call do_cleanups.
6714 (unset_substitute_path_command, set_substitute_path_command):
6715 Likewise.
6716 * symfile.c (load_command): Call do_cleanups.
6717
6718 2013-05-30 Tom Tromey <tromey@redhat.com>
6719
6720 * contrib/cleanup_check.py: New file.
6721 * contrib/gcc-with-excheck: Add option parsing.
6722
6723 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6724
6725 * windows-nat.c (windows_delete_thread): Add missing space
6726 in cast expression.
6727
6728 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6729
6730 * inferior.c (top level): Include tilde.h.
6731 (add_inferior_command): Call tilde_expand on the value of 'exec'
6732 argument.
6733
6734 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6735 Yao Qi <yao@codesourcery.com>
6736
6737 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6738 Caller update.
6739 (encode_actions): Likewise.
6740 * remote.c (remote_download_tracepoint): Caller update.
6741 * tracepoint.h (encode_actions): Update declaration.
6742
6743 2013-05-30 Pedro Alves <palves@redhat.com>
6744
6745 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6746 pointer.
6747
6748 2013-05-30 Yao Qi <yao@codesourcery.com>
6749
6750 * remote.c (remote_check_symbols): Remove unused parameter
6751 'objfile'.
6752 Declaration update.
6753 (remote_start_remote, remote_new_objfile): Caller update.
6754
6755 2013-05-30 Yao Qi <yao@codesourcery.com>
6756
6757 * mi/mi-cmds.c (mi_cmds): Define MI command
6758 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6759 DEF_MI_CMD_CLI.
6760
6761 2013-05-29 Pedro Alves <palves@redhat.com>
6762
6763 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6764 (remote_insert_watchpoint, remote_remove_watchpoint)
6765 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6766 (remote_verify_memory, compare_sections_command)
6767 (remote_search_memory): Set the general process/thread on the
6768 remote side.
6769
6770 2013-05-29 Pedro Alves <palves@redhat.com>
6771
6772 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6773 (_initialize_aarch64_tdep): Don't call
6774 initialize_tdesc_aarch64_without_fpu.
6775 * features/Makefile (WHICH): Remove reference to
6776 aarch64-without-fpu.
6777 * features/aarch64-without-fpu.c: Delete file.
6778 * regformats/aarch64-without-fpu.dat: Delete file.
6779
6780 2013-05-28 Yao Qi <yao@codesourcery.com>
6781
6782 * tracepoint.c (stringify_collection_list): Remove parameter
6783 'string'.
6784 (encode_actions): Caller update. Remove local variables.
6785
6786 2013-05-24 Yao Qi <yao@codesourcery.com>
6787
6788 * tracepoint.c (TFILE_PID): Remove.
6789 (tfile_open): Don't add thread and inferior.
6790 (tfile_close): Don't set 'inferior_ptid'. Don't call
6791 exit_inferior_silent.
6792 (tfile_thread_alive): Remove.
6793 (init_tfile_ops): Don't set field 'to_thread_alive' of
6794 tfile_ops.
6795
6796 2013-05-23 Doug Evans <dje@google.com>
6797
6798 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6799
6800 2013-05-23 Pedro Alves <palves@redhat.com>
6801
6802 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6803 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6804 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6805 Only define if HAVE_SOCKETS is defined.
6806 * configure.ac: Check for sys/socket.h.
6807 * config.in, configure: Regenerate.
6808
6809 2013-05-23 Pedro Alves <palves@redhat.com>
6810
6811 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6812 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6813 printing uint32_t variables.
6814
6815 2013-05-23 Pedro Alves <palves@redhat.com>
6816
6817 * NEWS: Mention GDBserver range stepping support.
6818
6819 2013-05-23 Yao Qi <yao@codesourcery.com>
6820 Pedro Alves <palves@redhat.com>
6821
6822 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6823 field.
6824 * infcmd.c (step_once, until_next_command): Enable range stepping.
6825 * infrun.c (displaced_step_prepare): Disable range stepping.
6826 (resume): Disable range stepping if stepping over a breakpoint or
6827 we have software watchpoints. If range stepping is enabled,
6828 assert the thread is in the stepping range.
6829 (clear_proceed_status_thread): Clear may_range_step.
6830 (handle_inferior_event): Disable range stepping as soon as we know
6831 the thread that hit the event. Re-enable it whenever we're going
6832 to step with a step range.
6833 * remote.c (struct vCont_action_support) <r>: New field.
6834 (use_range_stepping): New global.
6835 (remote_vcont_probe): Handle 'r' action.
6836 (append_resumption): Append an 'r' action if the thread may range
6837 step.
6838 (show_range_stepping): New function.
6839 (set_range_stepping): New function.
6840 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6841 'set range-stepping' and 'show range-stepping' commands.
6842 * NEWS: Mention range stepping, the new vCont;r action, and the
6843 new "set/show range-stepping" commands.
6844
6845 2013-05-23 Yao Qi <yao@codesourcery.com>
6846 Pedro Alves <palves@redhat.com>
6847
6848 * remote.c (struct vCont_action_support): New struct.
6849 (struct remote_state) <support_vCont_t>: Remove field.
6850 <vCont_actions_support>: New field.
6851 (remote_vcont_probe, remote_stop_ns): Update.
6852
6853 2013-05-23 Yao Qi <yao@codesourcery.com>
6854 Pedro Alves <palves@redhat.com>
6855
6856 * gdbthread.h (pc_in_thread_step_range): New declaration.
6857 * thread.c (pc_in_thread_step_range): New function.
6858 * infrun.c (handle_inferior_event): Use it.
6859
6860 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6861
6862 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6863 of sprintf.
6864
6865 2013-05-22 Keith Seitz <keiths@redhat.com>
6866
6867 * ada-lang.c (is_known_support_routine): Add explicit free of
6868 'func_name' from find_frame_funname.
6869 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6870 for func_name from find_frame_funname.
6871 * python/py-frame.c (frapy_name): Add explicit free of
6872 'name' from find_frame_funname.
6873 * stack.c (find_frame_funname): Add comment explaining that
6874 funcp must be freed by the caller.
6875 Return copy of symbol names instead of pointers.
6876 (print_frame): Add a cleanup for 'funname' from
6877 find_frame_funname.
6878 * stack.h (find_frame_funname): Remove "const" from
6879 'funname' parameter.
6880
6881 2013-05-22 Tom Tromey <tromey@redhat.com>
6882
6883 PR c++/15401:
6884 * c-valprint.c (c_value_print): Use value_addr for
6885 references. Convert back to reference type with value_ref.
6886
6887 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6888
6889 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6890 unloaded DLL, it will be done by handle_solib_event. See
6891 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6892 details.
6893
6894 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6895
6896 * ui-out.c: Create typedef ui_out_level_p and define vector
6897 operations for that type.
6898 (struct ui_out): Use a vector instead of an array.
6899 (current_level): Return level from a vector.
6900 (push_level): Create a level in a vector.
6901 (pop_level): Delete a level in a vector.
6902 (ui_out_new): Create initial level zero level, and store in a
6903 vector.
6904 (ui_out_destroy): Add vector cleanup.
6905
6906 2013-05-22 Pedro Alves <palves@redhat.com>
6907
6908 * python/python-internal.h (gdb_Py_DECREF): Tag with
6909 "ARI: editCase function".
6910
6911 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6912
6913 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6914
6915 2013-05-21 Pedro Alves <palves@redhat.com>
6916
6917 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6918 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6919 * python/py-utils.c (py_decref): Don't check for NULL before
6920 calling Py_DECREF.
6921
6922 2013-05-21 Pedro Alves <palves@redhat.com>
6923
6924 * python/py-utils.c (py_decref): Remove extra braces.
6925 (gdb_pymodule_addobject): Remove extra braces.
6926 * python-internal.h (gdb_Py_DECREF): New static inline function.
6927 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6928
6929 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6930
6931 * breakpoints.c (detach_breakpoints): Do not
6932 detach breakpoints locations with loc_type bp_loc_other.
6933
6934 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6935
6936 Workaround Python 2.6.
6937 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6938 a block.
6939
6940 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6941
6942 Code cleanup: constification.
6943 * solib.c (solib_ops): Make return type and ops variable type const.
6944 (set_solib_ops): Make the new_ops parameter and ops variable const.
6945 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6946 (solib_add, solib_keep_data_in_core, clear_solib)
6947 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6948 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6949 const.
6950 * solib.h (set_solib_ops): Make the new_ops parameter const.
6951
6952 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6953
6954 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6955 variable.
6956 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6957 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6958 (SYSTEM_GDBINIT_FILES): New variables.
6959 (all): Add stamp-system-gdbinit.
6960 (stamp-system-gdbinit): New rule.
6961 (clean-system-gdbinit, install-system-gdbinit)
6962 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6963 (install-only): Add dependency on install-system-gdbinit.
6964 (uninstall): Add dependency on uninstall-system-gdbinit.
6965 (clean): Add dependency on clean-system-gdbinit.
6966 * system-gdbinit/elinos.py: New file.
6967 * system-gdbinit/wrs-linux.py: New file.
6968
6969 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6970
6971 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6972
6973 2013-05-21 Hui Zhu <hui@codesourcery.com>
6974
6975 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6976 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6977 * mi/mi-cmd-break.c (ctype.h): New include.
6978 (gdb_obstack.h): New include.
6979 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6980 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6981 (mi_cmd_dprintf_insert): New.
6982 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6983 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6984
6985 2013-05-20 Tom Tromey <tromey@redhat.com>
6986
6987 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6988
6989 2013-05-20 Tom Tromey <tromey@redhat.com>
6990
6991 * python/py-value.c (valpy_get_dynamic_type): Simplify
6992 dynamic_type assignment. Use Py_XINCREF.
6993
6994 2013-05-20 Tom Tromey <tromey@redhat.com>
6995
6996 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6997
6998 2013-05-20 Tom Tromey <tromey@redhat.com>
6999
7000 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7001 (gdbpy_selected_frame): Move object-construction code
7002 out of TRY_CATCH.
7003
7004 2013-05-20 Tom Tromey <tromey@redhat.com>
7005
7006 * python/py-arch.c (gdbpy_initialize_arch): Use
7007 gdb_pymodule_addobject.
7008 * python/py-block.c (gdbpy_initialize_blocks): Use
7009 gdb_pymodule_addobject.
7010 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7011 gdb_pymodule_addobject.
7012 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7013 gdb_pymodule_addobject.
7014 * python/py-event.c (gdbpy_initialize_event_generic): Use
7015 gdb_pymodule_addobject.
7016 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7017 gdb_pymodule_addobject.
7018 * python/py-evts.c (add_new_registry): Use
7019 gdb_pymodule_addobject.
7020 (gdbpy_initialize_py_events): Likewise.
7021 * python/py-finishbreakpoint.c
7022 (gdbpy_initialize_finishbreakpoints): Use
7023 gdb_pymodule_addobject.
7024 * python/py-frame.c (gdbpy_initialize_frames): Use
7025 gdb_pymodule_addobject.
7026 * python/py-function.c (gdbpy_initialize_functions): Use
7027 gdb_pymodule_addobject.
7028 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7029 gdb_pymodule_addobject.
7030 * python/py-infthread.c (gdbpy_initialize_thread): Use
7031 gdb_pymodule_addobject.
7032 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7033 gdb_pymodule_addobject.
7034 * python/py-param.c (gdbpy_initialize_parameters): Use
7035 gdb_pymodule_addobject.
7036 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7037 gdb_pymodule_addobject.
7038 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7039 gdb_pymodule_addobject.
7040 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7041 gdb_pymodule_addobject.
7042 * python/py-type.c (gdbpy_initialize_types): Use
7043 gdb_pymodule_addobject.
7044 * python/py-utils.c (gdb_pymodule_addobject): New function.
7045 * python/py-value.c (gdbpy_initialize_values): Use
7046 gdb_pymodule_addobject.
7047 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7048 * python/python.c (_initialize_python): Use
7049 gdb_pymodule_addobject.
7050
7051 2013-05-20 Tom Tromey <tromey@redhat.com>
7052
7053 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7054 * python/py-param.c (get_set_value, get_show_value): Use
7055 explicit decrefs.
7056 * python/python.c (start_type_printers, apply_type_printers):
7057 Use explicit decrefs.
7058
7059 2013-05-20 Tom Tromey <tromey@redhat.com>
7060
7061 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7062 incref the module.
7063
7064 2013-05-20 Tom Tromey <tromey@redhat.com>
7065
7066 * python/python.c (gdbpy_run_events): Decref the result
7067 of PyObject_CallObject.
7068
7069 2013-05-20 Tom Tromey <tromey@redhat.com>
7070
7071 * python/py-symtab.c (set_sal): Use
7072 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7073 (symtab_and_line_to_sal_object): Update.
7074
7075 2013-05-20 Tom Tromey <tromey@redhat.com>
7076
7077 * python/py-param.c (compute_enum_values): Decref 'item'.
7078
7079 2013-05-20 Tom Tromey <tromey@redhat.com>
7080
7081 * mi/mi-main.c: Include python-internal.h.
7082 (mi_cmd_list_features): Check gdb_python_initialized.
7083 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7084 (python_inferior_exit, python_new_objfile, add_thread_object)
7085 (delete_thread_object, py_free_inferior): Check
7086 gdb_python_initialized.
7087 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7088 gdb_python_initialized.
7089 * python/py-type.c (save_objfile_types): Check
7090 gdb_python_initialized.
7091 * python/python-internal.h (gdb_python_initialized): Declare.
7092 * python/python.c (ensure_python_env): Throw exception if
7093 Python not initialized.
7094 (before_prompt_hook, source_python_script_for_objfile)
7095 (start_type_printers, apply_type_printers,
7096 free_type_printers): Check gdb_python_initialized.
7097 * varobj.c (varobj_get_display_hint)
7098 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7099 (install_new_value_visualizer, varobj_set_visualizer)
7100 (value_get_print_value): Check gdb_python_initialized.
7101
7102 2013-05-20 Tom Tromey <tromey@redhat.com>
7103
7104 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7105 Check errors.
7106 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7107 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7108 Check errors.
7109 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7110 Check errors.
7111 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7112 Check errors.
7113 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7114 Check errors.
7115 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7116 init function to return 'int'.
7117 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7118 Return 'int'. Check errors.
7119 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7120 Check errors.
7121 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7122 Return 'int'. Check errors.
7123 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7124 Check errors.
7125 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7126 Check errors.
7127 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7128 Check errors.
7129 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7130 Check errors.
7131 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7132 Check errors.
7133 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7134 Check errors.
7135 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7136 Check errors.
7137 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7138 Check errors.
7139 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7140 Check errors.
7141 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7142 Check errors.
7143 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7144 Check errors.
7145 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7146 Check errors.
7147 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7148 Check errors.
7149 * python/python-internal.h (gdbpy_initialize_auto_load,
7150 gdbpy_initialize_values, gdbpy_initialize_frames,
7151 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7152 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7153 gdbpy_initialize_blocks, gdbpy_initialize_types,
7154 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7155 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7156 gdbpy_initialize_finishbreakpoints,
7157 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7158 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7159 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7160 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7161 gdbpy_initialize_signal_event,
7162 gdbpy_initialize_breakpoint_event,
7163 gdbpy_initialize_continue_event,
7164 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7165 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7166 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7167 * python/python.c (gdb_python_initialized): New global.
7168 (gdbpy_initialize_events): Return 'int'. Check errors.
7169 (_initialize_python): Check errors. Set
7170 gdb_python_initialized.
7171
7172 2013-05-20 Tom Tromey <tromey@redhat.com>
7173
7174 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7175 Decref the reslut of PyObject_CallMethod.
7176
7177 2013-05-20 Tom Tromey <tromey@redhat.com>
7178
7179 * python/py-event.c (gdbpy_initialize_event_generic): Return
7180 early if PyType_Ready fails.
7181
7182 2013-05-20 Tom Tromey <tromey@redhat.com>
7183
7184 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7185 as 'default' in the switch.
7186
7187 2013-05-20 Tom Tromey <tromey@redhat.com>
7188
7189 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7190 get_addr_from_python calls out of TRY_CATCH.
7191 (infpy_write_memory, infpy_search_memory): Likewise.
7192 * python/py-utils.c (get_addr_from_python): Return negative
7193 value on error. Use TRY_CATCH.
7194 * python/python-internal.h (get_addr_from_python): Use
7195 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7196
7197 2013-05-20 Tom Tromey <tromey@redhat.com>
7198
7199 * python/py-event.c (evpy_emit_event): Decref the
7200 result of PyObject_CallFunctionObjArgs.
7201
7202 2013-05-20 Tom Tromey <tromey@redhat.com>
7203
7204 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7205 Correctly decref.
7206
7207 2013-05-20 Tom Tromey <tromey@redhat.com>
7208
7209 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7210
7211 2013-05-20 Tom Tromey <tromey@redhat.com>
7212
7213 * python/py-event.h (gdbpy_initialize_event_generic): Use
7214 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7215 * python/py-evts.c (add_new_registry): Use
7216 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7217 * python/python-internal.h
7218 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7219
7220 2013-05-20 Tom Tromey <tromey@redhat.com>
7221
7222 * python/py-arch.c (archpy_disassemble): Update.
7223 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7224 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7225 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7226 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7227 macro.
7228 (GDB_PY_HANDLE_EXCEPTION): Update.
7229 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7230
7231 2013-05-20 Tom Tromey <tromey@redhat.com>
7232
7233 * python/python-internal.h (events_object_type): Remove.
7234
7235 2013-05-20 Tom Tromey <tromey@redhat.com>
7236
7237 * python/py-event.h (evpy_emit_event): Use
7238 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7239 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7240 New macro.
7241
7242 2013-05-20 Tom Tromey <tromey@redhat.com>
7243
7244 * py-evtregistry.c (create_event_object): Decref
7245 eventregistry_object if PyList_New fails.
7246
7247 2013-05-20 Tom Tromey <tromey@redhat.com>
7248
7249 * py-cmd.c (gdbpy_string_to_argv): Check result of
7250 PyList_New.
7251
7252 2013-05-20 Tom Tromey <tromey@redhat.com>
7253
7254 * python/python.c (before_prompt_hook): Add cleanup to
7255 decref 'hook'.
7256
7257 2013-05-20 Tom Tromey <tromey@redhat.com>
7258
7259 * python/py-function.c (fnpy_init): Decref result of
7260 PyObject_GetAttrString.
7261
7262 2013-05-20 Tom Tromey <tromey@redhat.com>
7263
7264 * python/py-threadevent.c (get_event_thread): Use
7265 CPYCHECKER_RETURNS_BORROWED_REF.
7266 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7267 New define.
7268 (pspace_to_pspace_object, objfile_to_objfile_object)
7269 (find_thread_object): Use it.
7270
7271 2013-05-20 Tom Tromey <tromey@redhat.com>
7272
7273 * python/py-arch.c (arch_object_type): Use
7274 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7275 * python/py-block.c (block_syms_iterator_object_type):
7276 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7277 * python/py-bpevent.c (breakpoint_event_object_type):
7278 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7279 * python/py-cmd.c (cmdpy_object_type): Use
7280 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7281 * python/py-continueevent.c (continue_event_object_type):
7282 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7283 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7284 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7285 * python/py-events.h (thread_event_object_type):
7286 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7287 * python/py-evtregistry.c (eventregistry_object_type): Use
7288 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7289 * python/py-exitedevent.c (exited_event_object_type):
7290 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7291 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7292 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7293 * python/py-function.c (fnpy_object_type): Use
7294 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7295 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7296 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7297 * python/py-infthread.c (thread_object_type): Use
7298 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7299 * python/py-lazy-string.c (lazy_string_object_type):
7300 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7301 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7302 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7303 * python/py-objfile.c (objfile_object_type): Use
7304 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7305 * python/py-param.c (parmpy_object_type):
7306 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7307 * python/py-progspace.c (pspace_object_type):
7308 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7309 * python/py-signalevent.c (signal_event_object_type):
7310 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7311 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7312 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7313 * python/py-type.c (type_object_type, field_object_type)
7314 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7315 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7316 define.
7317 (value_object_type, block_object_type, symbol_object_type)
7318 (event_object_type, stop_event_object_type, breakpoint_object_type)
7319 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7320
7321 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7322
7323 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7324 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7325
7326 2013-05-20 Doug Evans <dje@google.com>
7327
7328 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7329 For Fission.
7330 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7331 reading_dwo_directly.
7332 (struct signatured_type): New member dwo_unit.
7333 (struct die_reader_specs): New member comp_dir.
7334 (create_signatured_type_table_from_index): Use malloc for
7335 all_type_units instead of objfile's obstack.
7336 (create_all_type_units): Ditto.
7337 (fill_in_sig_entry_from_dwo_entry): New function.
7338 (add_type_unit): New function.
7339 (lookup_dwo_signatured_type): New function.
7340 (lookup_dwp_signatured_type): New function.
7341 (lookup_signatured_type): New arg cu. All callers updated.
7342 (init_cu_die_reader): Initialize comp_dir.
7343 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7344 Change assert of matching type signatures to call error on mismatch.
7345 (lookup_dwo_unit): Add assert.
7346 (init_tu_and_read_dwo_dies): New function.
7347 (init_cutu_and_read_dies): Call it.
7348 (build_type_unit_groups): Handle case of no type unit groups created.
7349 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7350 (lookup_dwo_cutu): Tweak complaint.
7351 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7352 (dwarf2_per_objfile_free): Free all_type_units.
7353
7354 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7355
7356 * windows-nat.c (handle_unload_dll): Add missing empty line.
7357
7358 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7359
7360 * dwarf2read.c (prototyped_function_p): New function.
7361 (read_subroutine_type): Use it.
7362
7363 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7364
7365 * rs6000-aix-tdep.c: De-indent some example code provided
7366 as a comment.
7367
7368 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7369
7370 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7371 region is ok for a hardware watchpoint using the new ptrace interface
7372 on Power servers.
7373
7374 2013-05-17 Doug Evans <dje@google.com>
7375
7376 * NEWS: Mention new maintenance commands check-symtabs, and
7377 expand-symtabs, and renamed check-psymtabs.
7378 * psymtab.c (maintenance_check_psymtabs): Renamed from
7379 maintenance_check_symtabs. Only process already-expanded symbol
7380 tables.
7381 (_initialize_psymtab): Update.
7382 * symmisc.c (maintenance_check_symtabs): New function.
7383 (maintenance_expand_name_matcher): New function
7384 (maintenance_expand_file_matcher): New function
7385 (maintenance_expand_symtabs): New function.
7386 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7387 commands.
7388
7389 2013-05-17 Tom Tromey <tromey@redhat.com>
7390
7391 * python/py-inferior.c (infpy_read_memory): Don't call
7392 PyErr_SetString if PyObject_New fails.
7393 * python/py-frame.c (frame_info_to_frame_object): Don't call
7394 PyErr_SetString if PyObject_New fails.
7395
7396 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7397
7398 * acinclude.m4: Add check for dlopen in libdl.
7399 * configure.ac: Ditto.
7400 * configure: Regenerate.
7401
7402 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7403
7404 * frame.c (frame_stash): Convert to htab.
7405 (frame_addr_hash): New function.
7406 (frame_addr_hash_eq): New function.
7407 (frame_stash_create): Convert function to create
7408 a hash table.
7409 (frame_stash_add): Convert function to add an entry to a hash
7410 table.
7411 (frame_stash_find): Convert function to search the hash table.
7412 (frame_stash_invalidate): Convert function to empty the hash
7413 table.
7414 (get_frame_id): Only add to stash if a frame_id is created.
7415 (_initialize_frame): Call frame_stash_create.
7416
7417 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7418
7419 * configure.ac: Ensure MIG is available when building for GNU Hurd
7420 hosts.
7421 * configure: Regenerate.
7422
7423 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7424
7425 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7426
7427 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7428
7429 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7430 all cleanups are done before returning from this function.
7431
7432 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7433
7434 * utils.h: #include "exceptions.h".
7435 (enum errors): Remove partial declaration.
7436
7437 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7438
7439 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7440 * gdbarch.h, gdbarch.c: Regenerate.
7441 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7442 handling.
7443
7444 * rs6000-aix-tdep.h: New file.
7445 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7446 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7447 "xml-utils.h".
7448 (struct field_info, struct ld_info_desc): New types.
7449 (ld_info32_desc, ld_info64_desc): New static constants.
7450 (struct ld_info): New type.
7451 (rs6000_aix_extract_ld_info): New function.
7452 (rs6000_aix_shared_library_to_xml): Likewise.
7453 (rs6000_aix_ld_info_to_xml): Likewise.
7454 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7455 (rs6000_aix_init_osabi): Add call to
7456 set_gdbarch_core_xfer_shared_libraries_aix.
7457 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7458 Remove "xml-utils.h" include.
7459 (LdInfo): Delete typedef.
7460 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7461 Delete macros.
7462 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7463 Adjust code accordingly.
7464 (rs6000_core_ldinfo): Delete, folded into
7465 rs6000_aix_core_xfer_shared_libraries_aix.
7466 (rs6000_xfer_shared_library): Delete.
7467 (rs6000_xfer_shared_libraries): Reimplement.
7468
7469 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7470
7471 * record.c (record_goto_cmdlist): New.
7472 (cmd_record_goto): Split into this ...
7473 (cmd_record_goto_begin): ... this
7474 (cmd_record_goto_end): ... and this.
7475 (_initialize_record): Change "record goto" to prefix command.
7476 Add commands for "record goto begin" and "record goto end".
7477 Add an alias for "record goto start" to "record goto begin".
7478
7479 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 * linespec.c (convert_linespec_to_sals): New comment for
7482 SOURCE_FILENAME assignment.
7483
7484 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7487 internal_warning.
7488
7489 2013-05-14 Tom Tromey <tromey@redhat.com>
7490
7491 * eval.c (parse_and_eval_long): Make 'exp' const.
7492 * value.h (parse_and_eval_long): Update.
7493
7494 2013-05-14 Tom Tromey <tromey@redhat.com>
7495
7496 * ui-file.c (gdb_fopen): Make arguments const.
7497 * ui-file.h (gdb_fopen): Make arguments const.
7498
7499 2013-05-14 Tom Tromey <tromey@redhat.com>
7500
7501 * remote.c (remote_set_trace_notes): Make arguments const.
7502 * target.c (update_current_target): Update cast.
7503 * target.h (to_set_trace_notes): Make arguments const.
7504
7505 2013-05-14 Tom Tromey <tromey@redhat.com>
7506
7507 * go32-nat.c (go32_terminal_info): Make 'args' const.
7508 * inferior.h (child_terminal_info): Update.
7509 * inflow.c (child_terminal_info): Make 'args' const.
7510 * target.c (default_terminal_info): Make 'args' const.
7511 (debug_to_terminal_save_ours): Likewise.
7512 * target.h (struct target_ops) <to_terminal_info>: Make argument
7513 const.
7514
7515 2013-05-13 Tom Tromey <tromey@redhat.com>
7516
7517 * gcore.c (create_gcore_bfd): Make 'filename' const.
7518 * gcore.h (create_gcore_bfd): Make 'filename' const.
7519 * record-full.c (record_full_save): Make 'recfilename' const.
7520 * target.c (target_save_record): Make 'filename' const.
7521 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7522 const.
7523 (target_save_record): Likewise.
7524
7525 2013-05-13 Tom Tromey <tromey@redhat.com>
7526
7527 PR gdb/15338:
7528 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7529 ranges section has been read.
7530
7531 2013-05-13 Tom Tromey <tromey@redhat.com>
7532
7533 PR exp/15364:
7534 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7535 STRUCTOP_PTR>: Return a not_lval value for
7536 EVAL_AVOID_SIDE_EFFECTS.
7537 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7538 for EVAL_AVOID_SIDE_EFFECTS.
7539
7540 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7541
7542 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7543 floating point registers to register type before storing
7544 value.
7545 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7546 Likewise.
7547
7548 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7549 Tom Tromey <tromey@redhat.com>
7550
7551 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7552 New functions.
7553 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7554 Declare.
7555 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7556 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7557 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7558 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7559
7560 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7561 Tom Tromey <tromey@redhat.com>
7562
7563 PR build/15414:
7564 * configure: Rebuild.
7565 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7566 with -Wno-format.
7567
7568 2013-05-10 Pedro Alves <palves@redhat.com>
7569
7570 * remote.c (_initialize_remote): Fix spelling of
7571 qXfer:traceframe-info:read packet in packet config command.
7572
7573 2013-05-10 David Taylor <dtaylor@emc.com>
7574
7575 PR remote/15455
7576
7577 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7578 "QTro" at start of packet.
7579
7580 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7581
7582 * solib-aix.c (solib_aix_relocate_section_addresses):
7583 For the .bss section action, apply the same offset as
7584 the .data section.
7585
7586 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7587
7588 * solib-aix.c (solib_aix_relocate_section_addresses):
7589 Remove FIXME comment.
7590
7591 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7592
7593 PR tdep/15420:
7594 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7595 New functions, directly copied from sparc-sol-thread.c.
7596 * sparc-sol-thread.c: Delete.
7597 * configure.ac: Remove code handling sparc-solaris-thread.c.
7598 * configure: Regenerate.
7599
7600 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7601
7602 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7603 filter logic.
7604 (backtrace_command): Add "no-filters" option parsing.
7605 (_initialize_stack): Alter help to reflect "no-filters" option.
7606 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7607 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7608 (py-frame.o): Add target
7609 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7610 filter files.
7611 * python/python.h: Add new frame filter constants, and flag enum.
7612 (apply_frame_filter): Add definition.
7613 * python/python.c (apply_frame_filter): New non-Python
7614 enabled function.
7615 * python/py-utils.c (py_xdecref): New function.
7616 (make_cleanup_py_xdecref): Ditto.
7617 * python/py-objfile.c: Declare frame_filters dictionary.
7618 (objfpy_dealloc): Add frame_filters dealloc.
7619 (objfpy_new): Initialize frame_filters attribute.
7620 (objfile_to_objfile_object): Ditto.
7621 (objfpy_get_frame_filters): New function.
7622 (objfpy_set_frame_filters): New function.
7623 * python/py-progspace.c: Declare frame_filters dictionary.
7624 (pspy_dealloc): Add frame_filters dealloc.
7625 (pspy_new): Initialize frame_filters attribute.
7626 (pspacee_to_pspace_object): Ditto.
7627 (pspy_get_frame_filters): New function.
7628 (pspy_set_frame_filters): New function.
7629 * python/py-framefilter.c: New file.
7630 * python/lib/gdb/command/frame_filters.py: New file.
7631 * python/lib/gdb/frames.py: New file.
7632 * python/lib/gdb/__init__.py: Initialize global frame_filters
7633 dictionary
7634 * python/lib/gdb/FrameDecorator.py: New file.
7635 * python/lib/gdb/FrameIterator.py: New file.
7636 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7637 * mi/mi-cmds.h: Declare.
7638 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7639 --no-frame-filter logic, and Python frame filter logic.
7640 (stack_enable_frame_filters): New function.
7641 (parse_no_frame_option): Ditto.
7642 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7643 filter logic.
7644 (mi_cmd_stack_list_locals): Ditto.
7645 (mi_cmd_stack_list_args): Ditto.
7646 (mi_cmd_stack_list_variables): Ditto.
7647 * NEWS: Add frame filter note.
7648
7649 2013-05-09 Doug Evans <dje@google.com>
7650
7651 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7652 All callers updated.
7653 (syms_from_objfile): Ditto. Make static.
7654 (symbol_file_add_with_addrs): Renamed from
7655 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7656 num_offsets. All callers updated.
7657 * symfile.h (syms_from_objfile): Delete.
7658
7659 * symfile.c (decrement_reading_symtab): Add assert.
7660 (increment_reading_symtab): Ditto.
7661
7662 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7663
7664 * source.c (forward_search_command): Replace call to getc
7665 by call to fgetc.
7666 (reverse_search_command): Likewise.
7667
7668 2013-05-08 Doug Evans <dje@google.com>
7669
7670 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7671 matching test.
7672
7673 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7674
7675 * sol-thread.c (info_cb): Factorize the code a little.
7676
7677 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7678
7679 * sol-thread.c (info_cb): Rework the output of the "maintenance
7680 info sol-threads" command a bit.
7681
7682 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7683
7684 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7685 Replace ti.ti_startfunc by ti.ti_pc.
7686
7687 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7688
7689 * solib-aix.c (solib_aix_free_library_list): New function
7690 for the case where HAVE_LIBEXPAT is not defined.
7691
7692 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7693
7694 PR breakpoints/15413:
7695 * breakpoint.c (condition_completer): Simplify the code to
7696 disconsider multiple locations of breakpoints when completing the
7697 "condition" command.
7698
7699 2013-05-07 Pierre Muller <muller@sourceware.org>
7700
7701 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7702 instead of <sys/wait.h>.
7703
7704 2013-05-07 Pierre Muller <muller@sourceware.org>
7705
7706 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7707 trailing new line from warning message.
7708
7709 2013-05-07 Pierre Muller <muller@sourceware.org>
7710
7711 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7712 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7713
7714 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7715
7716 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7717 error message (ARI fix).
7718
7719 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7720
7721 * features/library-list-aix.dtd: Replace library-list by
7722 library-list-aix.
7723 * rs6000-nat.c: Replace library-list by library-list-aix
7724 throughout.
7725 * solib-aix.c: Likewise.
7726
7727 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7728
7729 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7730 Renames TARGET_OBJECT_AIX_LIBRARIES.
7731 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7732 TARGET_OBJECT_LIBRARIES_AIX throughout.
7733 * solib-aix.c: Likwise.
7734
7735 2013-05-07 Yao Qi <yao@codesourcery.com>
7736
7737 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7738 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7739
7740 2013-05-07 Yao Qi <yao@codesourcery.com>
7741
7742 * solib-dsbt.c (enable_break): Declare.
7743 (dsbt_current_sos): Remove call to enable_break2.
7744 (enable_break2): Rename to enable_break. Set solib breakpoint
7745 on '_dl_debug_state'.
7746 (enable_break): Remove.
7747
7748 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7749
7750 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7751 debug state prior to replicating existing hardware watchpoints or
7752 breakpoints.
7753
7754 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7755
7756 * gcore.c (gcore_create_callback): Ignore sections with
7757 separate_debug_objfile_backlink != NULL.
7758
7759 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7760 Andrew Jenner <andrew@codesourcery.com>
7761 Chung-Lin Tang <cltang@codesourcery.com>
7762 Julian Brown <julian@codesourcery.com>
7763
7764 Based on the nios2-elf port from Altera Corporation.
7765
7766 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7767 nios2-linux-tdep.o.
7768 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7769 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7770 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7771 * nios2-tdep.h: New.
7772 * nios2-tdep.c: New.
7773 * nios2-linux-tdep.c: New.
7774 * features/Makefile (WHICH): Add nios2-linux.
7775 (nios2-linux-expedite): Set.
7776 * features/nios2-cpu.xml: New.
7777 * features/nios2.xml: New.
7778 * features/nios2-linux.xml: New.
7779 * features/nios2.c: New (autogenerated).
7780 * features/nios2-linux.c: New (autogenerated).
7781 * regformats/nios2-linux.dat: New (autogenerated).
7782 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7783 and commands.
7784
7785 2013-05-06 Doug Evans <dje@google.com>
7786
7787 * symfile.c: Whitespace cleanup.
7788
7789 * solist.h (struct target_so_ops): New member clear_so.
7790 * solib-svr4.c (svr4_clear_so): New function.
7791 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7792 * solib.c (clear_so): Renamed from free_so_symbols.
7793 All callers updated. Call target clear_so if it exists.
7794
7795 2013-05-06 Tom Tromey <tromey@redhat.com>
7796
7797 * ada-lang.c (ada_value_primitive_packed_val): Don't
7798 call value_incref.
7799 * value.c (set_value_parent): Incref the new parent and decref
7800 the old parent.
7801 (value_copy, value_primitive_field): Use set_value_parent.
7802
7803 2013-05-06 Tom Tromey <tromey@redhat.com>
7804
7805 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7806 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7807 if needed.
7808 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7809 * dwarf2read.c (write_constant_as_bytes)
7810 (dwarf2_fetch_constant_bytes): New functions.
7811
7812 2013-05-06 Tom Tromey <tromey@redhat.com>
7813
7814 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7815 parameters.
7816 (dwarf2_const_value_attr): Update.
7817
7818 2013-05-06 Tom Tromey <tromey@redhat.com>
7819
7820 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7821 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7822 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7823 Remove declaration.
7824
7825 2013-05-06 Tom Tromey <tromey@redhat.com>
7826
7827 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7828 objfile's obstack.
7829
7830 2013-05-06 Doug Evans <dje@google.com>
7831
7832 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7833 * stabsread.h (process_one_symbol): Update declaration.
7834 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7835 * elfread.c (elf_symfile_relocate_probe): Ditto.
7836 * psymtab.c (relocate_psymtabs): Ditto.
7837 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7838 (objfile_relocate): Ditto.
7839 * objfiles.h (objfile_relocate): Update declaration.
7840 * symfile.c (relative_addr_info_to_section_offsets): Constify
7841 addrs parameter.
7842 (default_symfile_offsets): Ditto.
7843 (syms_from_objfile_1): Constify offsets parameter.
7844 (syms_from_objfile): Ditto.
7845 (symbol_file_add_with_addrs_or_offsets): Ditto.
7846 (symfile_map_offsets_to_segments): Constify data parameter.
7847 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7848 delta parameters of member relocate.
7849 (struct sym_probe_fns): Constify new_offsets,
7850 delta parameters of member sym_relocate_probe.
7851 (struct sym_fns): Constify section_addr_info parameter of member
7852 sym_offsets.
7853 (relative_addr_info_to_section_offsets): Update declaration.
7854 (default_symfile_offsets): Ditto.
7855 (syms_from_objfile): Ditto.
7856 (symfile_map_offsets_to_segments): Ditto.
7857
7858 * symfile.c (syms_from_objfile_1): Use correct section count when
7859 objfile->sf == NULL.
7860
7861 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7862
7863 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7864
7865 2013-05-06 Doug Evans <dje@google.com>
7866
7867 * psympriv.h (struct partial_symtab): Augment comment for member
7868 section_offsets.
7869
7870 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7871
7872 Reimplement shared library support on ppc-aix...
7873 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7874 * features/library-list-aix.dtd: New file.
7875 * solib-aix.h, solib-aix.c: New file.
7876 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7877 (rs6000_find_toc_address_hook): Delete.
7878 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7879 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7880 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7881 "xml-utils.h".
7882 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7883 (vmap_symtab, fixup_breakpoints): Delete.
7884 (rs6000_xfer_shared_libraries): New function.
7885 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7886 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7887 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7888 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7889 (rs6000_xfer_shared_library): New function.
7890 (find_toc_address): Delete.
7891 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7892 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7893 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7894 before creating minimal symbol. Adjust function description
7895 accordingly.
7896 (scan_xcoff_symtab): Replace call to
7897 prim_record_minimal_symbol_and_info by call to
7898 record_minimal_symbol.
7899 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7900 around default_symfile_offsets.
7901 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7902 powerpc-aix targets.
7903 * config/rs6000/nm-rs6000.h: Delete.
7904 * config/powerpc/aix.mh (NAT_FILE): Delete.
7905 (NATDEPFILES): Remove xcoffsolib.o.
7906 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7907 (ALL_TARGET_OBS): Add solib-aix.o.
7908 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7909 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7910 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7911 * xcoffsolib.h, xcoffsolib.c: Delete.
7912
7913 * solib.c (reload_shared_libraries): Remove reference to
7914 SOLIB_CREATE_INFERIOR_HOOK.
7915 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7916 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7917 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7918 comment.
7919 * corelow.c (deprecated_core_resize_section_table): Delete.
7920 * exec.c: Remove include of xcoffsolib.h".
7921 (map_vmap, vmap): Delete.
7922 (exec_close_1): Remove references to vmap.
7923 (exec_file_attach): Remove vmap handling code, and reference
7924 to DEPRECATED_IBM6000_TARGET.
7925 (bfdsec_to_vmap): Delete.
7926 (exec_files_info): Remove block of code handling VMAP.
7927 * infcmd.c (post_create_inferior): Remove reference to
7928 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7929 * infrun.c (follow_exec): Remove reference to
7930 SOLIB_CREATE_INFERIOR_HOOK.
7931 * stack.c (print_frame): Remove reference to PC_SOLIB.
7932 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7933 (dsbt_relocate_main_executable): Likewise.
7934 * solib-frv.c (frv_current_sos): Likewise.
7935
7936 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7937
7938 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7939 to target_write_memory and target_read_memory.
7940
7941 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7942
7943 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7944 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7945
7946 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7947
7948 * darwin-nat.c: Replace all "%x" instances in format strings
7949 into "0x%x" throughout.
7950
7951 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7952
7953 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7954 gdb_assert by call to MACH_CHECK_ERROR.
7955 (darwin_attach_pid): Raise an error rather than a failed
7956 assertion when various system calls failed. Report a warning
7957 instead of raising a failed assertion when PREV_NOT is not NULL
7958 after call to mach_port_request_notification.
7959 (darwin_ptrace_me): Raise an error rather than a failed
7960 assertion when read returns nonzero.
7961
7962 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7963
7964 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7965
7966 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7969
7970 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7973 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7974 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7975 a stale cleanup. Fix double free of NAME.
7976
7977 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7978
7979 * windows-nat.c (windows_delete_thread): Accept an additional
7980 argument, the thread's exit code, and announce thread death when
7981 print_thread_events is non-zero and we are deleting a thread that
7982 is not the main thread.
7983 (get_windows_debug_event): Pass thread exit code to
7984 windows_delete_thread.
7985
7986 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7987
7988 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7989 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7990 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7991 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7992 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7993 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7994 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7995 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7996 (gdbarch_tdep): New struct.
7997 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7998 E_NUM_REGS.
7999 (v850e3v5_register_name): New function.
8000 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8001 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8002 code handling the struct return conventions for the RH850 ABI.
8003 Update all callers.
8004 (v850_eight_byte_align_p): New function.
8005 (v850_push_call_dummy): Push structs by value, not by reference
8006 for the RH850 ABI. Add support for eight byte alignment.
8007 (v850_dbtrap_breakpoint_from_pc): New function.
8008 (v850_gdbarch_init): Add ABI detection code. Register
8009 v850e3v5_register_name for the v850e3v5 architecture. Set the
8010 number of registers for v850e3v5. Register
8011 v850_dbtrap_breakpoint_from_pc as appropriate.
8012 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8013
8014 2013-05-03 Doug Evans <dje@google.com>
8015
8016 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8017 of bfd_count_sections.
8018 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8019 * symfile.c (default_symfile_offsets): Ditto.
8020 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8021 one entry, not bfd_count_sections entries.
8022
8023 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8024
8025 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8026 `save' and `restore' register groups. Don't include SPL
8027 or SPH in these groups.
8028 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8029 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8030 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8031 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8032 dwarf2_append_unwinders().
8033
8034 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8035
8036 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8037 ignore SIGINT and SIGTRAP in case these internal signals are
8038 caught explicitely.
8039
8040 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8041
8042 * darwin-nat.c (darwin_read_write_inferior): Change types
8043 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8044 of copy_count to "mach_msg_type_number_t".
8045 (darwin_read_dyld_info): Change type of parameter
8046 rdaddr to "gdb_byte *".
8047
8048 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8049
8050 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8051 of &info->load_map from "char *" to "gdb_byte *".
8052
8053 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8054
8055 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8056 from "char *" to "gdb_byte *".
8057 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8058
8059 2013-04-30 Doug Evans <dje@google.com>
8060
8061 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8062 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8063 DWO stub. If DWO isn't found, just use stub.
8064 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8065
8066 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8067 calling init_cutu_and_read_dies.
8068
8069 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8070
8071 * target-descriptions.c (maint_print_c_tdesc_cmd):
8072 Add case to parse structures as register types and
8073 bitfields.
8074
8075 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8076
8077 * MAINTAINERS (Write After Approval): Add myself to the list.
8078
8079 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8080
8081 * sol-thread.c (rw_common): Change type of parameter "buf"
8082 to "gdb_byte *".
8083 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8084 rw_common to "gdb_byte *" instead of "char *".
8085
8086 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8087
8088 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8089 of local variable msym to const struct bound_minimal_symbol.
8090 Adjust use accordingly.
8091 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8092
8093 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8094
8095 * i386gnu-nat.c (CREG_OFFSET): New macro.
8096 (creg_offset): New array.
8097 (CREG_ADDR): Use creg_offset instead of reg_offset.
8098
8099 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8100
8101 * mep-tdep.c (mep_write_pc): Delete.
8102 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8103 Add call to set_gdbarch_pc_regnum.
8104
8105 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8106
8107 * common/filestuff.c: Replace #include <dirent.h> by
8108 #include "gdb_dirent.h".
8109
8110 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8111
8112 * common/filestuff.c: Replace #include <sys/stat.h> by
8113 #include "gdb_stat.h".
8114
8115 2013-04-29 Pierre Muller <muller@sourceware.org>
8116
8117 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8118 editCase function rule.
8119 (get_DW_AT_signature_type): Likewise.
8120
8121 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8122
8123 * m32r-tdep.c (m32r_write_pc): Delete.
8124 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8125 Add call to set_gdbarch_pc_regnum.
8126
8127 2013-04-29 Pierre Muller <muller@sourceware.org>
8128
8129 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8130
8131 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8132
8133 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8134
8135 2013-04-28 Yao Qi <yao@codesourcery.com>
8136
8137 * solib-dsbt.c (fetch_loadmap): Re-indent.
8138 (displacement_from_map, enable_break2): Likewise.
8139 (dsbt_relocate_section_addresses): Likewise.
8140
8141 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8142
8143 GDB 7.6 released.
8144
8145 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8146
8147 PR corefiles/14983:
8148 * dwarf2read.c (process_full_comp_unit): Always create a static
8149 block.
8150
8151 2013-04-25 Hui Zhu <hui@codesourcery.com>
8152
8153 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8154 to loc->cmd_bytecode.
8155
8156 2013-04-24 Doug Evans <dje@google.com>
8157
8158 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8159
8160 2013-04-22 Keith Seitz <keiths@redhat.com>
8161
8162 * tracepoint.c (trace_save): Call the writer's start method.
8163
8164 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8165
8166 PR gdb/10462
8167 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8168 before argument.
8169
8170 2013-04-23 Tom Tromey <tromey@redhat.com>
8171
8172 * common/filestuff.c: Check USE_WIN32API before including
8173 sys/socket.h.
8174 (HAVE_F_GETFD): New define.
8175 (mark_cloexec): Check HAVE_F_GETFD.
8176 (gdb_open_cloexec): Change 'mode' to unsigned long.
8177 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8178 (gdb_pipe_cloexec): Check HAVE_PIPE.
8179 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8180 long.
8181
8182 2013-04-23 Hui Zhu <hui@codesourcery.com>
8183
8184 PR gdb/15293
8185 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8186
8187 2013-04-23 Hui Zhu <hui@codesourcery.com>
8188
8189 PR gdb/15165
8190 * breakpoint.c (dprintf_print_recreate): New.
8191 (save_breakpoints): Let it not save dprintf commands.
8192 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8193
8194 2013-04-22 Tom Tromey <tromey@redhat.com>
8195
8196 PR gdb/7912:
8197 * Makefile.in (SFILES): Add filestuff.c
8198 (COMMON_OBS): Add filestuff.o.
8199 (filestuff.o): New target.
8200 * auto-load.c (auto_load_objfile_script_1): Use
8201 gdb_fopen_cloexec.
8202 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8203 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8204 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8205 * common/agent.c (gdb_connect_sync_socket): Use
8206 gdb_socket_cloexec.
8207 * common/filestuff.c: New file.
8208 * common/filestuff.h: New file.
8209 * common/linux-osdata.c (linux_common_core_of_thread)
8210 (command_from_pid, commandline_from_pid, print_source_lines)
8211 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8212 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8213 gdb_fopen_cloexec.
8214 * common/linux-procfs.c (linux_proc_get_int)
8215 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8216 * config.in, configure: Rebuild.
8217 * configure.ac: Don't check for sys/socket.h. Check for
8218 fdwalk, pipe2.
8219 * corelow.c (core_open): Use gdb_open_cloexec.
8220 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8221 * fork-child.c (fork_inferior): Call close_most_fds.
8222 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8223 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8224 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8225 Use gdb_fopen_cloexec.
8226 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8227 gdb_open_cloexec.
8228 (linux_async_pipe): Use gdb_pipe_cloexec.
8229 * remote-fileio.c (remote_fileio_func_open): Use
8230 gdb_open_cloexec.
8231 * remote.c (remote_file_put, remote_file_get): Use
8232 gdb_fopen_cloexec.
8233 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8234 close_most_fds.
8235 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8236 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8237 * solib.c (solib_find): Use gdb_open_cloexec.
8238 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8239 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8240 (tfile_open): Use gdb_open_cloexec.
8241 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8242 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8243 * xml-support.c (xml_fetch_content_from_file): Use
8244 gdb_fopen_cloexec.
8245 * main.c (captured_main): Call notice_open_fds.
8246
8247 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8248
8249 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8250 'char *' to 'gdb_byte *'.
8251 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8252 'gdb_byte'.
8253
8254 2013-04-22 Yao Qi <yao@codesourcery.com>
8255
8256 * infrun.c: Fix typo in comment.
8257
8258 2013-04-22 Andrew Haley <aph@redhat.com>
8259
8260 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8261 instead of "long".
8262
8263 2013-04-20 Yao Qi <yao@codesourcery.com>
8264
8265 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8266 'char *' to 'gdb_byte *'. Cast the return value of
8267 'bt_ctf_get_char_array' to 'gdb_byte *'.
8268
8269 2013-04-19 Pedro Alves <palves@redhat.com>
8270
8271 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8272 -Wpointer-sign.
8273 * configure: Regenerate.
8274
8275 2013-04-19 Pedro Alves <palves@redhat.com>
8276
8277 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8278 'void *'.
8279
8280 2013-04-19 Pedro Alves <palves@redhat.com>
8281
8282 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8283 Change type of 'myaddr' parameter to gdb_byte pointer.
8284 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8285 to 'long long' pointer instead of to 'unsigned long long'.
8286 (monitor_write_memory_block, monitor_read_memory_single)
8287 (monitor_read_memory): Change type of 'myaddr' parameter to
8288 gdb_byte pointer.
8289
8290 2013-04-19 Pedro Alves <palves@redhat.com>
8291
8292 * record.c (validate_history_size): Make parameter 'setting'
8293 unsigned.
8294
8295 2013-04-19 Pedro Alves <palves@redhat.com>
8296
8297 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8298 to 'gdb_byte *'.
8299
8300 2013-04-19 Pedro Alves <palves@redhat.com>
8301
8302 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8303 local to int.
8304
8305 2013-04-19 Pedro Alves <palves@redhat.com>
8306
8307 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8308 * ada-tasks.c (read_fat_string_value): Likewise.
8309
8310 2013-04-19 Pedro Alves <palves@redhat.com>
8311
8312 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8313 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8314 'offset', and adjust.
8315
8316 2013-04-19 Pedro Alves <palves@redhat.com>
8317
8318 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8319 (read_index_from_section): Add cast to 'char *'.
8320
8321 2013-04-19 Pedro Alves <palves@redhat.com>
8322
8323 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8324
8325 2013-04-19 Pedro Alves <palves@redhat.com>
8326
8327 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8328
8329 2013-04-19 Pedro Alves <palves@redhat.com>
8330
8331 * record-full.c (record_full_get_bookmark): Change local 'ret'
8332 type to char * and add cast to gdb_byte *.
8333 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8334 string.
8335 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8336
8337 2013-04-19 Pedro Alves <palves@redhat.com>
8338
8339 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8340 * python/py-prettyprint.c (print_string_repr): Change type of
8341 'output' local to char *. Add cast to gdb_byte * in
8342 LA_PRINT_STRING call.
8343 (print_children): Change type of 'output' local to char *.
8344 * python/py-value.c (valpy_string): Add cast to const char * in
8345 PyUnicode_Decode call.
8346
8347 2013-04-19 Pedro Alves <palves@redhat.com>
8348
8349 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8350 and change its type to 'const char *'. Adjust.
8351 (mips_send_packet): Add cast to 'char *', and remove cast to
8352 'unsigned char *'.
8353 (mips_receive_packet): Remove cast to 'unsigned char *'.
8354 (mips_load_srec): Use bfd_byte.
8355 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8356 (pmon_checkset): Make 'value' parameter unsigned.
8357
8358 2013-04-19 Pedro Alves <palves@redhat.com>
8359
8360 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8361
8362 2013-04-19 Pedro Alves <palves@redhat.com>
8363
8364 * remote.c (remote_write_bytes_aux, compare_sections_command)
8365 (remote_read_qxfer)
8366 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8367 (remote_hostio_readlink, remote_bfd_iovec_pread)
8368 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8369 binary buffer, and char when buffer is used as string.
8370 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8371 (trace_save, tfile_open, traceframe_walk_blocks)
8372 (tfile_fetch_registers): Likewise.
8373
8374 2013-04-19 Pedro Alves <palves@redhat.com>
8375
8376 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8377 buffer and size_t size. Adjust.
8378 * ser-base.h (ser_base_write): Adjust.
8379 * ser-go32.c (cnts): Change type to size_t.
8380 (dos_write): Change prototype -- take 'void *'
8381 buffer and size_t size. Adjust.
8382 (dos_info): Print elements of 'cnts' as unsigned long.
8383 * serial.c (serial_write): Likewise.
8384 * serial.h (serial_write): Adjust.
8385 (struct serial_ops) <write>: Change prototype -- take 'void *'
8386 buffer and size_t size. Adjust.
8387
8388 2013-04-19 Pedro Alves <palves@redhat.com>
8389
8390 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8391 gdb_byte *.
8392 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8393
8394 2013-04-19 Pedro Alves <palves@redhat.com>
8395
8396 * alpha-tdep.c (alpha_extract_return_value): Use
8397 regcache_cooked_read_unsigned to read 'v0'.
8398
8399 2013-04-19 Pedro Alves <palves@redhat.com>
8400
8401 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8402 parameters 'at', 'as' and 'offset' to uint32_t.
8403
8404 2013-04-19 Pedro Alves <palves@redhat.com>
8405
8406 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8407 'is64' to signed 'int'.
8408
8409 2013-04-19 Pedro Alves <palves@redhat.com>
8410
8411 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8412 parameter to int *.
8413
8414 2013-04-19 Pedro Alves <palves@redhat.com>
8415
8416 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8417 'insnbuf' buffer type to unsigned int[].
8418
8419 2013-04-19 Pedro Alves <palves@redhat.com>
8420
8421 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8422
8423 2013-04-19 Pedro Alves <palves@redhat.com>
8424
8425 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8426 unsigned long *.
8427
8428 2013-04-19 Pedro Alves <palves@redhat.com>
8429
8430 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8431 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8432 UINT_MAX.
8433 * mips-tdep.c (heuristic_fence_post): Change type to int.
8434 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8435
8436 2013-04-19 Pedro Alves <palves@redhat.com>
8437
8438 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8439 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8440 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8441
8442 2013-04-19 Pedro Alves <palves@redhat.com>
8443
8444 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8445 it to get a string view of the byte buffer.
8446 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8447 type to gdb_byte *. Adjust.
8448 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8449 Change local to char *.
8450 * solib-darwin.c (find_program_interpreter): Change return type to
8451 char *. Adjust.
8452 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8453 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8454 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8455 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8456 * solib-svr4.c (find_program_interpreter): Change return type to
8457 char *. Adjust.
8458 (enable_break): Change local 'interp_name' to char *.
8459 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8460 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8461 (spu_pseudo_register_write_spu): Use char for string buffer.
8462 Adjust.
8463 (info_spu_event_command, info_spu_signal_command): Add casts to
8464 'char *'.
8465
8466 2013-04-19 Pedro Alves <palves@redhat.com>
8467
8468 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8469 gdb_byte[].
8470 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8471 * ada-lang.c (ada_value_assign): Use gdb_byte.
8472 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8473 (alphanbsd_sigtramp_offset): Use gdb_byte.
8474 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8475 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8476 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8477 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8478 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8479 * arm-tdep.c (arm_stub_unwind_sniffer)
8480 (arm_displaced_init_closure): Use gdb_byte.
8481 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8482 (arm_default_thumb_le_breakpoint)
8483 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8484 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8485 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8486 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8487 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8488 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8489 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8490 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8491 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8492 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8493 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8494 (cris_store_return_value, cris_extract_return_value): Use
8495 gdb_byte.
8496 (constraint): Change type of parameter to char * from signed
8497 char*. Use gdb_byte.
8498 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8499 of local buffer to gdb_byte *.
8500 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8501 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8502 (add_address_entry): Change type of local buffer to gdb_byte[].
8503 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8504 (frv_push_dummy_call): Use gdb_byte.
8505 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8506 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8507 (hppa_hpux_supply_save_state): Use gdb_byte.
8508 * hppa-tdep.c (hppa32_push_dummy_call)
8509 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8510 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8511 (slotN_contents, replace_slotN_contents): Change type of parameter
8512 to gdb_byte *.
8513 (fetch_instruction, ia64_pseudo_register_write)
8514 (ia64_register_to_value, ia64_value_to_register)
8515 (ia64_extract_return_value, ia64_store_return_value)
8516 (ia64_push_dummy_call): Use gdb_byte.
8517 * m32c-tdep.c (m32c_return_value): Remove cast.
8518 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8519 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8520 gdb_byte.
8521 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8522 * mn10300-tdep.c (mn10300_store_return_value)
8523 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8524 gdb_byte.
8525 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8526 (moxie_process_record): Remove casts.
8527 * ppc-ravenscar-thread.c (supply_register_at_address)
8528 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8529 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8530 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8531 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8532 * remote.c (compare_sections_command): Use gdb_byte.
8533 * score-tdep.c (score7_free_memblock): Change type of parameter to
8534 gdb_byte *.
8535 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8536 gdb_byte *. Use gdb_byte.
8537 (sh_push_dummy_call_fpu): Use gdb_byte.
8538 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8539 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8540 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8541 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8542 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8543 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8544 (sh64_store_return_value, sh64_register_convert_to_virtual):
8545 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8546 (sh64_pseudo_register_write): Use gdb_byte.
8547 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8548 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8549 buffer.
8550 (irix_current_sos): Use gdb_byte.
8551 * solib-som.c (som_current_sos): Use gdb_byte.
8552 * sparc-ravenscar-thread.c (supply_register_at_address)
8553 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8554 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8555 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8556 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8557 'gdb_byte *'.
8558 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8559 'gdb_byte *'.
8560 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8561 * xstormy16-tdep.c (xstormy16_extract_return_value)
8562 (xstormy16_store_return_value): Change parameter type to
8563 'gdb_byte *'. Adjust.
8564 (xstormy16_push_dummy_call): Use gdb_byte.
8565 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8566 (call0_analyze_prologue, execute_code): Use gdb_byte.
8567
8568 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8569 Pedro Alves <palves@redhat.com>
8570
8571 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8572 value contents.
8573
8574 2013-04-17 Doug Evans <dje@google.com>
8575
8576 * dwarf2read.c (struct signatured_type): New member type.
8577 (struct attribute): Replace member signatured_type with signature.
8578 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8579 (read_call_site_scope): Call follow_die_ref instead of
8580 follow_die_ref_or_sig.
8581 (read_structure_type): Rewrite handling of signatured types.
8582 (read_enumeration_type): Ditto.
8583 (read_attribute_value): Update.
8584 (build_error_marker_type): New function.
8585 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8586 Don't call error for bad types, just build an error marker type.
8587 (dump_die_shallow): Update.
8588 (follow_die_sig_1): Renamed from follow_die_sig.
8589 Don't call error for bad types, instead return NULL.
8590 (follow_die_sig): New function.
8591 (get_signatured_type, get_DW_AT_signature_type): New functions.
8592
8593 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8594
8595 * aarch64-tdep.c (aarch64_write_pc): Removed.
8596 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8597 function.
8598
8599 2013-04-17 Yao Qi <yao@codesourcery.com>
8600
8601 * top.c (print_gdb_configuration): Print configure-time
8602 parameter on using libbabeltrace or not.
8603
8604 2013-04-16 Pedro Alves <palves@redhat.com>
8605
8606 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8607
8608 2013-04-16 Pedro Alves <palves@redhat.com>
8609
8610 * common/glibc_thread_db.h: Update from upstream glibc
8611 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8612
8613 2013-04-16 Pedro Alves <palves@redhat.com>
8614
8615 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8616 * common/glibc_thread_db.h: ... this new file ...
8617 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8618
8619 2013-04-16 Will Newton <will.newton@gmail.com>
8620 Pedro Alves <palves@redhat.com>
8621
8622 PR build/11881
8623
8624 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8625 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8626 HAVE_THREAD_DB_H.
8627
8628 2013-04-16 Pedro Alves <palves@redhat.com>
8629 Eli Zaretskii <eliz@gnu.org>
8630
8631 * NEWS: Mention "set foo unlimited".
8632
8633 2013-04-15 Doug Evans <dje@google.com>
8634
8635 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8636 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8637 (create_dwo_cu_reader): Renamed from
8638 create_dwo_debug_info_hash_table_reader.
8639 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8640 Remove support for multiple CUs in a DWO file.
8641 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8642
8643 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8644 instead of phex.
8645 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8646 (create_dwo_in_dwp): Ditto.
8647
8648 2013-04-15 Tom Tromey <tromey@redhat.com>
8649
8650 * NEWS: Move recent entries into "since 7.6" section.
8651
8652 2013-04-15 Tom Tromey <tromey@redhat.com>
8653
8654 PR c++/13588:
8655 * NEWS: Update.
8656 * break-catch-throw.c (struct exception_catchpoint)
8657 <exception_rx, pattern>: New fields.
8658 (fetch_probe_arguments, dtor_exception_catchpoint)
8659 (check_status_exception_catchpoint)
8660 (print_one_detail_exception_catchpoint): New functions.
8661 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8662 Compile regular expression if needed.
8663 (extract_exception_regexp): New function.
8664 (catch_exception_command_1): Use extract_exception_regexp.
8665 (compute_exception): Use fetch_probe_arguments.
8666 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8667 and check_status fields.
8668 * cp-abi.c (cplus_typename_from_type_info): New function.
8669 * cp-abi.h (cplus_typename_from_type_info): Declare.
8670 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8671 * gdb_regex.h (compile_rx_or_error): Declare.
8672 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8673 comment.
8674 (init_gnuv3_ops): Set get_type_from_type_info field.
8675 * probe.c (compile_rx_or_error): Move...
8676 * utils.c (compile_rx_or_error): ... here.
8677
8678 2013-04-15 Tom Tromey <tromey@redhat.com>
8679
8680 PR c++/15176:
8681 * NEWS: Update.
8682 * break-catch-throw.c (compute_exception): New function.
8683 (exception_funcs): New global.
8684 (_initialize_break_catch_throw): Create $_exception.
8685 * cp-abi.c (cplus_type_from_type_info): New function.
8686 * cp-abi.h (cplus_type_from_type_info): Declare.
8687 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8688 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8689 (gnuv3_get_type_from_type_info): New functions.
8690 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8691
8692 2013-04-15 Tom Tromey <tromey@redhat.com>
8693
8694 * break-catch-throw.c (struct exception_names): New.
8695 (exception_functions): Change type.
8696 (re_set_exception_catchpoint): Look for SDT probes.
8697
8698 2013-04-15 Tom Tromey <tromey@redhat.com>
8699
8700 PR c++/10119:
8701 * break-catch-throw.c (exception_functions): New global.
8702 (gnu_v3_exception_catchpoint_ops): Move earlier.
8703 (struct exception_catchpoint): New.
8704 (classify_exception_breakpoint): Rewrite.
8705 (re_set_exception_catchpoint): New function.
8706 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8707 Allocate a struct exception_catchpoint.
8708 (catch_exception_command_1): Update.
8709 (initialize_throw_catchpoint_ops): Set 're_set' method.
8710
8711 2013-04-15 Tom Tromey <tromey@redhat.com>
8712
8713 * Makefile.in (SFILES): Add break-catch-throw.c
8714 (COMMON_OBS): Add break-catch-throw.o.
8715 * break-catch-throw.c: New file.
8716 * breakpoint.c: Move exception-catching code to new file.
8717 (ep_parse_optional_if_clause): No longer static.
8718 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8719
8720 2013-04-15 Tom Tromey <tromey@redhat.com>
8721
8722 PR c++/9065:
8723 * NEWS: Update.
8724 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8725 * c-exp.y (TYPEID): New token.
8726 (exp): Add new TYPEID productions.
8727 (ident_tokens): Add "typeid".
8728 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8729 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8730 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8731 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8732 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8733 case.
8734 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8735 (build_std_type_info_type, gnuv3_get_typeid_type)
8736 (gnuv3_get_typeid): New functions.
8737 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8738 new fields on ABI object.
8739 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8740 * std-operator.def (OP_TYPEID): New.
8741
8742 2013-04-15 Tom Tromey <tromey@redhat.com>
8743
8744 * elfread.c (elf_symtab_read): Install versioned symbol under
8745 unversioned name as well.
8746
8747 2013-04-15 Tom Tromey <tromey@redhat.com>
8748
8749 PR c++/11990:
8750 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8751 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8752 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8753 (gdb_demangle): New function.
8754 * cp-support.h (gdb_demangle): Declare.
8755 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8756 (dwarf2_name): Use gdb_demangle.
8757 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8758 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8759 suffixes from name.
8760 (gnuv3_print_method_ptr): Use gdb_demangle.
8761 * jv-lang.c (java_demangle): Use gdb_demangle.
8762 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8763 * language.c (unk_lang_demangle): Use gdb_demangle.
8764 * symtab.c (symbol_find_demangled_name)
8765 (demangle_for_lookup): Use gdb_demangle.
8766
8767 2013-04-15 Tom Tromey <tromey@redhat.com>
8768
8769 PR c++/12824:
8770 * NEWS: Update.
8771 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8772 New constant.
8773 (classify_exception_breakpoint): New function.
8774 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8775 (print_mention_exception_catchpoint)
8776 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8777 (catch_exception_command_1): Handle "rethrow" catchpoint.
8778 (catch_rethrow_command): New function.
8779 (_initialize_breakpoint): Add "catch rethrow" command.
8780
8781 2013-04-15 Pierre Muller <muller@sourceware.org>
8782
8783 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8784 set_gdbarch_write_pc as deprecated anymore.
8785
8786 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8787
8788 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8789 declarations.
8790
8791 2013-04-13 Yao Qi <yao@codesourcery.com>
8792
8793 * ctf.c (_initialize_ctf): Include "completer.h".
8794 Call add_target_with_completer instead of add_target.
8795
8796 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8797
8798 Fix GDB regression related to PR binutils/14813.
8799 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8800 * minidebug.c (lzma_close): Add return value comment.
8801 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8802 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8803 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8804
8805 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8806
8807 * config.in: Regenerate.
8808
8809 2013-04-12 Tom Tromey <tromey@redhat.com>
8810
8811 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8812 const.
8813 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8814 (struct die_reader_specs) <buffer>: Likewise.
8815 (die_reader_func_ftype): Make 'info_ptr' const.
8816 (struct line_header) <include_dirs, statement_program_start,
8817 statement_program_end>: Now const.
8818 (struct file_entry) <name>: Likewise.
8819 (struct partial_die_info) <sibling>: Likewise.
8820 (struct dwarf_block) <data>: Likewise.
8821 (dwarf2_read_section): Remove cast.
8822 (dwarf2_get_section_info): Make 'bufp' const.
8823 (read_index_from_section): Constify.
8824 (dw2_get_file_names_reader): Make 'info_ptr' const.
8825 (dw2_get_primary_filename_reader): Likewise.
8826 (read_comp_unit_head): Make 'info_ptr' and return type const.
8827 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8828 Likewise.
8829 (read_abbrev_offset): Constify.
8830 (dwarf2_create_include_psymtab): Make 'name' const.
8831 (create_debug_types_hash_table): Update.
8832 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8833 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8834 Constify.
8835 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8836 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8837 (read_comp_units_from_section): Constify.
8838 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8839 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8840 const.
8841 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8842 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8843 (create_dwp_hash_table, dwarf2_ranges_read)
8844 (dwarf2_record_block_ranges): Constify.
8845 (read_die_and_children, read_die_and_siblings_1)
8846 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8847 const.
8848 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8849 (abbrev_table_read_table): Constify.
8850 (load_partial_dies): Make 'info_ptr' const.
8851 (read_partial_die, read_attribute_value, read_attribute): Make
8852 'info_ptr' and return type const.
8853 (read_address, read_initial_length)
8854 (read_checked_initial_length_and_offset, read_offset)
8855 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8856 const.
8857 (read_direct_string): Make 'buf' and return type const.
8858 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8859 (read_indirect_string): Make return type const.
8860 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8861 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8862 'info_ptr' const.
8863 (read_str_index): Make return type const.
8864 (add_include_dir): Make 'include_dir' const.
8865 (add_file_name): Make 'name' const.
8866 (dwarf_decode_line_header): Constify.
8867 (psymtab_include_file_name): Make return type const.
8868 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8869 (dwarf2_start_subfile): Make 'filename' const.
8870 (dwarf2_const_value_attr): Make 'bytes' const.
8871 (read_signatured_type_reader): Make 'info_ptr' const.
8872 (decode_locdesc): Constify.
8873 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8874 const.
8875 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8876 'mac_end', and return type const.
8877 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8878 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8879 type const.
8880 (per_cu_header_read_in): Constify.
8881 * symfile.h (dwarf2_get_section_info): Update.
8882
8883 2013-04-12 Tom Tromey <tromey@redhat.com>
8884
8885 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8886
8887 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8888
8889 * NEWS: Mention "show configuration", --configuration.
8890 * top.c (print_gdb_configuration): New function, displays the
8891 details about GDB configure-time parameters.
8892 (print_gdb_version): Mention "show configuration".
8893 * cli/cli-cmds.c (show_configuration): New function.
8894 (_initialize_cli_cmds): Add the "show configuration" command.
8895 * main.c (captured_main) <print_configuration>: New static var.
8896 <long_options>: Use it.
8897 If --configuration was given, call print_gdb_configuration.
8898
8899 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8900 Pedro Alves <palves@redhat.com>
8901
8902 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8903 (generated_files): Add gcore.
8904 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8905 HAVE_NATIVE_GCORE_HOST.
8906 (gcore): New.
8907 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8908 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8909 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8910 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8911 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8912 Add HAVE_NATIVE_GCORE_HOST.
8913 * configure: Regenerate.
8914 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8915 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8916 AC_CONFIG_FILES for gcore.
8917 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8918 gdb_have_gcore.
8919 * gdb_gcore.sh: Rename to ...
8920 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8921 and GCORE_TRANSFORM_NAME substitutions.
8922
8923 Fix parsing tabs in ${gdb_target_obs}.
8924 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8925
8926 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8927
8928 * remote.c (unpush_and_perror): Add output message final dot.
8929
8930 2013-04-11 Yao Qi <yao@codesourcery.com>
8931
8932 * tracepoint.c (tfile_interp_line): Fit parameters line and
8933 utpp in one line.
8934
8935 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8936
8937 * solib.c (solib_map_sections): Remove code overwriting
8938 SO->SO_NAME with the bfd's filename.
8939
8940 2013-04-10 Pedro Alves <palves@redhat.com>
8941
8942 * cli/cli-decode.c (integer_unlimited_completer): New function.
8943 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8944 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8945 completer.
8946 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8947 (is_unlimited_literal): New function.
8948 (do_set_command): Handle literal "unlimited" arguments.
8949 * frame.c (_initialize_frame) <set backtrace limit>: Document
8950 "unlimited".
8951 * printcmd.c (_initialize_printcmd) <set print
8952 max-symbolic-offset>: Add help text.
8953 * record-full.c (_initialize_record_full) <set record full
8954 insn-number-max>: Likewise.
8955 * record.c (_initialize_record) <set record
8956 instruction-history-size, set record function-call-history-size>:
8957 Add help text.
8958 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8959 help text.
8960 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8961 Likewise.
8962 * source.c (_initialize_source) <set listsize>: Add help text.
8963 * utils.c (initialize_utils) <set height, set width>: Likewise.
8964 <set pagination>: Mention "set height unlimited".
8965 * valprint.c (_initialize_valprint) <set print elements, set print
8966 repeats>: Document "unlimited".
8967
8968 2013-04-10 Pedro Alves <palves@redhat.com>
8969
8970 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8971 instead of disconnect_tracing.
8972 * infcmd.c (detach_command, disconnect_command): Call
8973 query_if_trace_running. Adjust.
8974 * top.c: Include "tracepoint.h".
8975 (quit_target): Delete. Contents moved ...
8976 (quit_force): ... here. Wrap each stage of teardown in
8977 TRY_CATCH. Call disconnect_tracing before detaching.
8978
8979 2013-04-10 Hui Zhu <hui@codesourcery.com>
8980 Yao Qi <yao@codesourcery.com>
8981
8982 * configure.ac: Check libbabeltrace is installed.
8983 * config.in: Regenerate.
8984 * configure: Regenerate.
8985 * Makefile.in (LIBBABELTRACE): New.
8986 (CLIBS): Add LIBBABELTRACE.
8987 * ctf.c: Include "exec.h".
8988 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8989 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8990 (ctf_save_metadata_header): Define new type aliases in
8991 metadata.
8992 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8993 in metadata. Start a new faked packet for trace status.
8994 (ctf_write_status): Write trace status to CTF.
8995 (ctf_write_uploaded_tsv): Write TSV to CTF.
8996 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8997 (ctf_write_definition_end): End the faked packet.
8998
8999 (ctx, ctf_iter, trace_dirname): New.
9000 (start_pos): New variable.
9001 (ctf_destroy, ctf_open_dir, ctf_open): New.
9002 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9003 macros.
9004 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9005 (ctf_fetch_registers, ctf_xfer_partial): New.
9006 (ctf_get_trace_state_variable_value): New.
9007 (ctf_get_tpnum_from_frame_event): New.
9008 (ctf_get_traceframe_address): New.
9009 (ctf_trace_find, ctf_has_stack): New.
9010 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9011 (ctf_get_trace_status, ctf_read_status): New.
9012 (_initialize_ctf): New.
9013 * tracepoint.c (get_tracepoint_number): New
9014 (get_uploaded_tsv): Remove 'static'.
9015 (struct traceframe_info, trace_regblock_size): Move it to ...
9016 * tracepoint.h: ... here.
9017 (get_tracepoint_number): Declare it.
9018 (get_uploaded_tsv): Declare it.
9019
9020 * NEWS: Mention new configure option.
9021
9022 2013-04-10 Pedro Alves <palves@redhat.com>
9023 Hui Zhu <hui@codesourcery.com>
9024
9025 * breakpoint.c (dprintf_re_set): New.
9026 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9027 to dprintf_re_set.
9028
9029 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9030
9031 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9032 Remove solib-svr4.o from the list.
9033
9034 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9035
9036 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9037 Use gdb_assert_not_reached instead of invalid boolean expression.
9038
9039 2013-04-09 Pedro Alves <palves@redhat.com>
9040
9041 * remote.c (unpush_and_perror): New function.
9042 (readchar, remote_serial_write): Use it.
9043
9044 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9045
9046 * NEWS: Mention new btrace RSP packets.
9047
9048 2013-04-08 Tom Tromey <tromey@redhat.com>
9049
9050 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9051 long.
9052
9053 2013-04-08 Tom Tromey <tromey@redhat.com>
9054
9055 * maint.c (print_bfd_section_info): Print the section index.
9056 * symmisc.c (dump_msymbols): Print the section index.
9057
9058 2013-04-08 Tom Tromey <tromey@redhat.com>
9059
9060 PR symtab/8424:
9061 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9062 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9063 * breakpoint.c (resolve_sal_pc): Update.
9064 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9065 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9066 (minsym_lookup_iterator_cb): Use it.
9067 (default_read_var_value): Update.
9068 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9069 Update.
9070 * infcmd.c (jump_command): Update.
9071 * linespec.c (minsym_found): Update.
9072 * maint.c (maintenance_translate_address): Update.
9073 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9074 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9075 * parse.c (write_exp_msymbol): Update.
9076 * printcmd.c (address_info): Update.
9077 * psymtab.c (find_pc_sect_psymbol): Update.
9078 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9079 SYMBOL_OBJ_SECTION.
9080 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9081 Don't initialize SYMBOL_OBJ_SECTION.
9082 * spu-tdep.c (spu_catch_start): Update.
9083 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9084 * symmisc.c (dump_msymbols, print_symbol): Update.
9085 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9086 how fallback section is computed.
9087 (fixup_symbol_section): Update.
9088 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9089 Update.
9090 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9091 Initialize SYMBOL_SECTION.
9092 * symtab.h (struct general_symbol_info) <section>: Update comment.
9093 <obj_section>: Remove.
9094 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9095 (SYMBOL_OBJFILE): New macro.
9096
9097 2013-04-08 Tom Tromey <tromey@redhat.com>
9098
9099 * coffread.c (record_minimal_symbol): Update.
9100 * dbxread.c (record_minimal_symbol): Update.
9101 * elfread.c (record_minimal_symbol): Update.
9102 * machoread.c (macho_symtab_add_minsym): Update.
9103 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9104 Update.
9105 * minsyms.c (prim_record_minimal_symbol): Update.
9106 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9107 argument.
9108 (prim_record_minimal_symbol_and_info): Likewise.
9109 * minsyms.h (prim_record_minimal_symbol_full)
9110 (prim_record_minimal_symbol_and_info): Update.
9111 * symtab.c (allocate_symbol, initialize_symbol)
9112 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9113 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9114 Update.
9115
9116 2013-04-08 Tom Tromey <tromey@redhat.com>
9117
9118 PR symtab/8423:
9119 * solib-som.c (som_solib_section_offsets): Use BFD section
9120 indices. Set offsets for all sections.
9121 * somread.c (som_symtab_read): Compute BFD section for
9122 symbol. Use prim_record_minimal_symbol_and_info.
9123 (som_symfile_read): Fix comment.
9124 (struct find_section_offset_arg): New.
9125 (find_section_offset, set_section_index): New functions.
9126 (som_symfile_offsets): Use set_section_index to compute
9127 section indices.
9128
9129 2013-04-08 Tom Tromey <tromey@redhat.com>
9130
9131 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9132 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9133 gdb_bfd_section_index.
9134 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9135 New functions.
9136 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9137 Declare.
9138 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9139 Update.
9140 * objfiles.c (add_to_objfile_sections_full): New function.
9141 (add_to_objfile_sections): Use it.
9142 (build_section_table): Rewrite.
9143 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9144 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9145 (struct objfile) <sections>: Update comment.
9146 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9147 is NULL.
9148 (ALL_OBJSECTIONS): Use it.
9149 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9150 * solib-frv.c (frv_relocate_main_executable): Update.
9151 * solib-target.c (solib_target_relocate_section_addresses):
9152 Use gdb_bfd_section_index.
9153 * symfile.c (build_section_addr_info_from_section_table):
9154 Use gdb_bfd_section_index.
9155 (build_section_addr_info_from_bfd, place_section): Likewise.
9156 * symtab.c (fixup_section): Update.
9157 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9158
9159 2013-04-08 Tom Tromey <tromey@redhat.com>
9160
9161 * minsyms.h (struct bound_minimal_symbol): New.
9162 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9163 Remove objfile argument.
9164 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9165 Return bound_minimal_symbol.
9166 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9167 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9168 Return bound_minimal_symbol.
9169 (in_gnu_ifunc_stub): Update.
9170 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9171 Remove 'objfile_p' argument.
9172 (lookup_solib_trampoline_symbol_by_pc): Update.
9173 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9174 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9175 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9176 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9177 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9178 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9179 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9180 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9181 stack.c, symtab.c, tui/tui-disasm.c: Update.
9182
9183 2013-04-08 Tom Tromey <tromey@redhat.com>
9184
9185 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9186 Use symbol's obstack, not an objfile.
9187 * coffread.c (process_coff_symbol): Update.
9188 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9189 * jv-lang.c (add_class_symbol): Update.
9190 * mdebugread.c (new_symbol): Update.
9191 * minsyms.c (prim_record_minimal_symbol_full)
9192 (terminate_minimal_symbol_table): Update.
9193 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9194 * stabsread.c (define_symbol, read_enum_type): Update.
9195 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9196 Handle Ada specially.
9197 (symbol_set_language): Add 'obstack' argument.
9198 (symbol_set_names): Update.
9199 (symbol_natural_name, symbol_demangled_name): Always use
9200 ada_decode_symbol.
9201 * symtab.h (struct general_symbol_info)
9202 <language_specific::obstack>: New field.
9203 <ada_mangled>: New field.
9204 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9205 (symbol_set_language): Update.
9206
9207 2013-04-08 Tom Tromey <tromey@redhat.com>
9208
9209 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9210 Take an obstack, not an objfile.
9211 (symbol_set_names): Update.
9212 * symtab.h (symbol_set_demangled_name): Update.
9213
9214 2013-04-08 Tom Tromey <tromey@redhat.com>
9215
9216 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9217 allocate_symbol.
9218 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9219 (read_func_scope): Call allocate_template_symbol.
9220 (new_symbol_full): Call allocate_symbol.
9221 * jit.c (finalize_symtab): Call allocate_symbol.
9222 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9223 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9224 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9225 (common_block_end): Call allocate_symbol.
9226 * symtab.c (allocate_symbol, initialize_symbol)
9227 (allocate_template_symbol): New functions.
9228 * symtab.c (allocate_symbol, initialize_symbol)
9229 (allocate_template_symbol): Declare.
9230 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9231
9232 2013-04-08 Pedro Alves <palves@redhat.com>
9233 Keith Seitz <keiths@redhat.com>
9234
9235 * breakpoint.c (create_breakpoint): Rename
9236 "parse_condition_and_thread" parameter to "parse_arg". Update
9237 describing comment. If !PARSE_ARG, then error out if ARG is not
9238 the empty string after extracting the location.
9239 * breakpoint.h (create_breakpoint): Rename
9240 "parse_condition_and_thread" parameter to "parse_arg".
9241
9242 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9243
9244 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9245
9246 2013-04-07 Yao Qi <yao@codesourcery.com>
9247
9248 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9249 and 'addr2' to CORE_ADDR.
9250 * target.c (update_current_target): Update.
9251 * target.h (struct target_ops) <to_trace_find>: Change parameter
9252 type to CORE_ADDR.
9253 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9254 'addr2' to CORE_ADDR.
9255 (tfile_trace_find): Likewise.
9256 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9257 Change local variable 'addr' to type CORE_ADDR.
9258 * tracepoint.h (tfind_1): Update declaration.
9259
9260 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9261
9262 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9263 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9264 Include main.h.
9265
9266 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9267 here...
9268 * main.h (windows_get_absolute_argv0): ...to here.
9269
9270 2013-04-05 Doug Evans <dje@google.com>
9271
9272 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9273 (read_cutu_die_from_dwo): Add comments.
9274 (read_structure_type): Update comment.
9275 (read_enumeration_type, read_namespace_type): Update comment.
9276 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9277
9278 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9279
9280 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9281 * Makefile.in (gdb.z): Remove.
9282 (install-only): Remove $(man1dir) and gdb.1 installation.
9283 * gdb.1: Remove.
9284
9285 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9286
9287 Fix compatibility with Linux kernel 3.8.3.
9288 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9289 to more inner block. Remove parsing of NUMBER from outer block.
9290 Parse NUMBER only if KEYWORD has been identified.
9291
9292 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9293
9294 Fix variable name shadowing.
9295 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9296 filename to mapsfilename and update its uses.
9297
9298 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9299
9300 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9301 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9302 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9303 details of the problem.
9304
9305 2013-04-04 Pedro Alves <palves@redhat.com>
9306 Hui Zhu <hui@codesourcery.com>
9307
9308 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9309 tracepoint, reset its STEP_COUNT and call validate_actionline.
9310
9311 2013-04-03 Doug Evans <dje@google.com>
9312
9313 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9314 read_die_and_siblings.
9315 (read_die_and_siblings): New function.
9316 (read_cutu_die_from_dwo): Dump die if requested.
9317 (read_die_and_children): Call read_full_die_1 and
9318 read_die_and_siblings_1.
9319 (read_full_die): Dump die if requested.
9320
9321 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9322
9323 * dwarf2read.c (struct dwo_file): New member comp_dir.
9324 Rename member name to dwo_name. All uses updated.
9325 (hash_dwo_file): Include comp_dir in computation.
9326 (eq_dwo_file): Ditto.
9327 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9328 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9329
9330 * psymtab.c (read_psymtabs_with_fullname): Don't call
9331 psymtab_to_fullname if the basenames are different.
9332
9333 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9334
9335 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9336 New entry about "fullname" presence.
9337
9338 2013-04-03 Pedro Alves <palves@redhat.com>
9339
9340 * NEWS: Mention x86_64/Cygwin as new native configuration.
9341
9342 2013-04-02 Doug Evans <dje@google.com>
9343
9344 * dwarf2read.c (read_structure_type): Fix typo in comment.
9345
9346 2013-04-02 Pedro Alves <palves@redhat.com>
9347
9348 * NEWS: Mention "set/show debug aarch64", "set/show debug
9349 coff-pe-read" and "set/show debug mach-o".
9350
9351 2013-04-02 Pedro Alves <palves@redhat.com>
9352
9353 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9354
9355 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9356
9357 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9358 gdb_string.h is now in common/.
9359
9360 2013-04-02 Pedro Alves <palves@redhat.com>
9361
9362 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9363 under "New options".
9364
9365 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9366
9367 Revert this patch:
9368 PR gdb/15275
9369 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9370
9371 2013-04-02 Pedro Alves <palves@redhat.com>
9372
9373 PR gdb/15275
9374
9375 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9376 (remote_serial_write): New function.
9377 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9378
9379 2013-04-01 Jiong Wang <jiwang@tilera.com>
9380
9381 * NEWS: Mention TILE-Gx in "New native configurations" and
9382 "New targets" sections.
9383
9384 2013-04-01 Doug Evans <dje@google.com>
9385
9386 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9387 (process_enumeration_scope): Simplify.
9388
9389 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9390 type_unit_group ...
9391 (struct signatured_type): ... to here.
9392 (sig_type_ptr): New typedef.
9393 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9394 out of union 't'. All uses updated.
9395 (dw2_get_file_names_reader): Assert not called for a type unit.
9396 (dw2_get_file_names): Assert not called for a type unit or type
9397 unit group.
9398 (build_type_psymtabs_reader): Assert called for a type unit.
9399 (build_type_psymtab_dependencies): Assert called for a type unit group.
9400
9401 * dwarf2read.c (free_dwo_file): Add comment.
9402 (dwarf2_per_objfile_free): Unref dwp bfd.
9403
9404 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9405
9406 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9407 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9408 (read_pe_exported_syms): Remove unused 'exportix'.
9409 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9410 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9411 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9412
9413 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9414
9415 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9416 (print_it_watchpoint): Remove unused 'bl'.
9417 (say_where): Remove unused 'uiout'.
9418 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9419 (bkpt_breakpoint_hit): Remove unused 'b'.
9420 (internal_bkpt_print_it): Remove unused 'uiout'.
9421 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9422
9423 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9424
9425 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9426 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9427
9428 2013-03-29 Doug Evans <dje@google.com>
9429
9430 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9431 Delete arg is_dwp. All callers updated.
9432 (open_dwp_file): New function.
9433 (open_and_init_dwp_file): Call it.
9434 (get_dwp_file): New function.
9435 (lookup_dwo_cutu): Call it.
9436
9437 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9438 unnecessary, cleanup.
9439
9440 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9441
9442 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9443 (lookup_dwo_unit): New function.
9444 (init_cutu_and_read_dies): Move DWO handling to new functions.
9445
9446 * dwarf2read.c (struct signatured_type): Tweak comment.
9447 (struct dwo_unit): Tweak comment.
9448 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9449 (create_dwo_debug_info_hash_table): Tweak comment.
9450 (dwarf2_per_cu_offset_and_type): Tweak comment.
9451
9452 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9453 missing .debug_types section.
9454
9455 2013-03-29 Yao Qi <yao@codesourcery.com>
9456
9457 * corelow.c: Include "completer.h".
9458 (_initialize_corelow): Call add_target_with_completer with
9459 argument 'filename_completer'.
9460 * tracepoint.c: Likewise.
9461 * exec.c (_initialize_exec): Likewise.
9462 * target.c (add_target): Rename to ...
9463 (add_target_with_completer): ... this. Call set_cmd_completer
9464 if parameter completer is not NULL.
9465 (add_target): New.
9466 * target.h: Include "command.h".
9467 (add_target_with_completer): Declare it.
9468
9469 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9470
9471 * coffread.c (is_import_fixup_symbol): New function.
9472 (record_minimal_symbol): Use is_import_fixup_symbol to
9473 detect import fixup symbols, and discard them.
9474
9475 2013-03-28 Doug Evans <dje@google.com>
9476
9477 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9478 types hash table until we know we need it.
9479
9480 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9481 index numbers.
9482
9483 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9484 All callers updated.
9485 (dw2_print_stats): Print #read CUs too.
9486 (dump_die_shallow): Print signatured types better.
9487
9488 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9489 info_or_types_section to section. All uses updated.
9490 (struct dwo_unit): Ditto.
9491
9492 2013-03-28 Pedro Alves <palves@redhat.com>
9493
9494 * NEWS (New options): New section.
9495 (New options): Mention set/show remote trace-status-packet.
9496 * remote.c (PACKET_qTStatus): New enumeration value.
9497 (remote_get_trace_status): Skip sending qTStatus if the packet is
9498 disabled. Use packet_ok.
9499 (_initialize_remote): Register a configuration command for
9500 qTStatus packet.
9501
9502 2013-03-28 Doug Evans <dje@google.com>
9503
9504 * symfile.c (find_separate_debug_file): Add comment.
9505 (terminate_after_last_dir_separator): Tweak comment.
9506
9507 * dwarf2read.c (create_partial_symtab): Add forward decl.
9508 (create_partial_symtab): Move to be closer to other psymtab functions.
9509 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9510
9511 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9512 (compute_symtab_includes): Remove unnecessary forward declaration.
9513 (die_needs_namespace): Add comment marking group of functions for
9514 dwarf2 name computation.
9515
9516 * typeprint.c (_initialize_typeprint): Improve type help text.
9517
9518 * python/python.c (finish_python_initialization): Provide suggestion
9519 for how to tell gdb to find its python files.
9520
9521 2013-03-28 Pedro Alves <palves@redhat.com>
9522
9523 PR gdb/15294
9524
9525 * source.c (_initialize_source): Change back "set listsize" to an
9526 integer command.
9527
9528 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9529
9530 PR gdb/15275
9531 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9532
9533 2013-03-27 Pedro Alves <palves@redhat.com>
9534
9535 * top.c (history_size): Rename to ...
9536 (history_size_setshow_var): ... this. Add comment.
9537 (show_commands): Use readline's 'history_length' instead of
9538 computing the history length by calling history_get in a loop.
9539 (set_history_size_command): Error out for sizes over INT_MAX.
9540 Restore previous history size on invalid size.
9541 (init_history): If HISTSIZE is negative, leave the history size as
9542 zero. Add comments.
9543 (init_main): Adjust.
9544
9545 2013-03-27 Pedro Alves <palves@redhat.com>
9546
9547 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9548 coff_pe_read" command to "set debug coff-pe-read".
9549
9550 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9551
9552 * record.c (command_size_to_target_size): Fix size comparison.
9553 Change parameter type from pointer to integer to integer.
9554 Update all users.
9555
9556 2013-03-27 Pierre Muller <muller@sourceware.org>
9557
9558 * windows-nat.c (handle_output_debug_string): Avoid typecast
9559 from integer of different size warning.
9560
9561 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9562
9563 * windows-nat.c (handle_output_debug_string): Add empty line
9564 after local block variable definition.
9565
9566 2013-03-26 Pedro Alves <palves@redhat.com>
9567
9568 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9569 (net_open): Make 'polls' local unsigned.
9570
9571 2013-03-26 Pedro Alves <palves@redhat.com>
9572
9573 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9574 a zuinteger command instead of uinteger.
9575
9576 2013-03-26 Pedro Alves <palves@redhat.com>
9577
9578 * record-full.c (record_full_insn_num): Make it unsigned.
9579 (record_full_check_insn_num, record_full_message)
9580 (record_full_registers_change, record_full_xfer_partial): Remove
9581 record_full_insn_max_num check (it's always != 0).
9582 (record_full_info, record_full_restore): Use %u as format string.
9583 (): Use %u as format string.
9584 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9585 check (it's always != 0).
9586
9587 2013-03-26 Pedro Alves <palves@redhat.com>
9588
9589 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9590 and "set dcache size" commands zuinteger instead of uinteger.
9591
9592 2013-03-26 Pedro Alves <palves@redhat.com>
9593
9594 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9595 command zuinteger instead of uinteger.
9596
9597 2013-03-26 Pedro Alves <palves@redhat.com>
9598
9599 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9600 zuinteger instead of uinteger.
9601
9602 2013-03-26 Pedro Alves <palves@redhat.com>
9603
9604 * record.c (record_insn_history_size_setshow_var)
9605 (record_call_history_size_setshow_var): New globals.
9606 (command_size_to_target_size): New function.
9607 (cmd_record_insn_history, cmd_record_call_history): Use
9608 command_size_to_target_size instead of cast.
9609 (validate_history_size, set_record_insn_history_size)
9610 (set_record_call_history_size): New functions.
9611 (_initialize_record): Install set_record_insn_history_size and
9612 set_record_call_history_size as "set" hooks of "set record
9613 instruction-history-size" and "set record
9614 function-call-history-size".
9615
9616 2013-03-26 Pedro Alves <palves@redhat.com>
9617
9618 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9619 use with history_max_entries use. Remove FIXME note.
9620
9621 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9622
9623 * record-btrace.c (record_btrace_close): Call
9624 record_btrace_auto_disable.
9625
9626 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9627
9628 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9629
9630 2013-03-25 Doug Evans <dje@google.com>
9631
9632 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9633
9634 2013-03-25 Tom Tromey <tromey@redhat.com>
9635
9636 PR symtab/11462:
9637 * c-exp.y (exp): Add new productions for destructors after '.' and
9638 '->'.
9639 (write_destructor_name): New function.
9640
9641 2013-03-25 Tom Tromey <tromey@redhat.com>
9642
9643 PR c++/9197:
9644 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9645 value_struct_elt, not lookup_struct_elt_type.
9646 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9647 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9648 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9649
9650 2013-03-25 Yao Qi <yao@codesourcery.com>
9651
9652 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9653 instead of '_mkdir'.
9654
9655 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9656
9657 * windows-nat.c (windows_get_absolute_argv0): New function.
9658 * windows-nat.h: Add its prototype.
9659
9660 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9661 Use IS_DIR_SEPARATOR instead of looking for a character inside
9662 SLASH_STRING. Include filenames.h.
9663 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9664 relocate_gdb_directory works when passed gdb_program_name.
9665 Include windows-nat.h.
9666
9667 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9668
9669 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9670 * remote.c (trace_error): Remove the special handling of '2'.
9671 (readchar) <SERIAL_EOF>
9672 (readchar) <SERIAL_ERROR>
9673 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9674 (remote_get_trace_status): Call throw_exception if EX is
9675 TARGET_CLOSE_ERROR.
9676 * utils.c (perror_with_name): Rename to ...
9677 (throw_perror_with_name): ... here. New parameter errcode, describe it
9678 in the function comment.
9679 (perror_with_name): New function wrapper.
9680 * utils.h (enum errors): New stub declaration.
9681 (throw_perror_with_name): New declaration.
9682
9683 2013-03-22 Pedro Alves <palves@redhat.com>
9684 Yao Qi <yao@codesourcery.com>
9685 Mark Kettenis <kettenis@gnu.org>
9686
9687 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9688 Don't let the user set the value to UINT_MAX directly.
9689 <var_integer>: Don't let the user set the value to INT_MAX
9690 directly.
9691
9692 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9693
9694 * remote.c (remote_unpush_target): New function.
9695 (remote_open_1): Remove two pop_target calls, update one comment, add
9696 comment to target_preopen call. Replace pop_target call by
9697 remote_unpush_target call.
9698 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9699 pop_target calls by remote_unpush_target calls.
9700
9701 2013-03-22 Pedro Alves <palves@redhat.com>
9702
9703 * linux-nat.c (linux_child_follow_fork): Don't call
9704 linux_enable_event_reporting.
9705 (linux_handle_extended_wait): Don't call
9706 linux_enable_event_reporting.
9707
9708 2013-03-22 Pedro Alves <palves@redhat.com>
9709
9710 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9711 use it to rewrite the trampoline buffers with type gdb_byte[], and
9712 undefine the macro. Remove char* cast.
9713
9714 2013-03-21 Doug Evans <dje@google.com>
9715
9716 New commands "mt set per-command {space,time,symtab} {on,off}".
9717 * NEWS: Add entry.
9718 * event-top.c: #include "maint.h".
9719 * main.c: #include "maint.h".
9720 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9721 timeval-utils.h, maint.h, cli/cli-setshow.h.
9722 (per_command_time, per_command_space): New static globals.
9723 (per_command_symtab): New static global.
9724 (per_command_setlist, per_command_showlist): New static globals.
9725 (struct cmd_stats): Move here from utils.c.
9726 (set_per_command_time): Renamed from set_display_time in utils.c
9727 and moved here. All callers updated.
9728 (set_per_command_space): Renamed from set_display_space in utils.c
9729 and moved here. All callers updated.
9730 (count_symtabs_and_blocks): New function.
9731 (report_command_stats): Moved here from utils.c. Add support for
9732 printing symtab stats. Only print data if enabled before command
9733 executed.
9734 (make_command_stats_cleanup): Ditto.
9735 (sert_per_command_cmd, show_per_command_cmd): New functions.
9736 (_initialize_maint_cmds): Add new commands
9737 mt set per-command {space,time,symtab} {on,off}.
9738 * maint.h: New file.
9739 * top.c: #include "maint.h".
9740 * utils.c (reset_prompt_for_continue_wait_time): New function.
9741 (get_prompt_for_continue_wait_time): New function.
9742 * utils.h (reset_prompt_for_continue_wait_time): Declare
9743 (get_prompt_for_continue_wait_time): Declare.
9744 (make_command_stats_cleanup): Moved to maint.h.
9745 (set_display_time, set_display_space): Moved to maint.h and renamed
9746 to set_per_command_time, set_per_command_space.
9747 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9748 parse_binary_operation and made non-static. Don't call error,
9749 just return an error marker. All callers updated.
9750 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9751
9752 2013-03-21 Tom Tromey <tromey@redhat.com>
9753
9754 * symfile.c (alloc_section_addr_info): Update header. Don't set
9755 'num_sections' field.
9756 (build_section_addr_info_from_section_table): Set 'num_sections'.
9757 (build_section_addr_info_from_bfd): Likewise.
9758 (build_section_addr_info_from_objfile): Remove dead loop
9759 condition.
9760 (free_section_addr_info): Unconditionally call xfree.
9761 (relative_addr_info_to_section_offsets, addrs_section_sort)
9762 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9763 condition.
9764 (syms_from_objfile_1): Remove dead 'if' condition. Check
9765 'num_sections'.
9766 (add_symbol_file_command): Set 'num_sections'.
9767 * symfile-mem.c (symbol_file_add_from_memory): Set
9768 'num_sections'.
9769 * somread.c (som_symfile_offsets): Remove dead loop condition.
9770 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9771 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9772
9773 2013-03-21 Tom Tromey <tromey@redhat.com>
9774
9775 * tracepoint.h (decode_agent_options): Add 'trace_string'
9776 argument.
9777 * tracepoint.c (decode_agent_options): Add 'trace_string'
9778 argument.
9779 (validate_actionline): Update.
9780 (collect_symbol): Add 'trace_string' argument.
9781 (struct add_local_symbols_data) <trace_string>: New field.
9782 (do_collect_symbol): Update.
9783 (add_local_symbols): Add 'trace_string' argument.
9784 (encode_actions_1): Update.
9785 (trace_dump_actions): Update.
9786 * dwarf2loc.c (access_memory): Update.
9787 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9788 * ax-general.c (new_agent_expr): Update.
9789 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9790 (gen_trace_for_return_address): Add argument.
9791 (trace_kludge, trace_string_kludge): Remove.
9792 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9793 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9794 (gen_trace_for_var): Add 'trace_string' argument.
9795 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9796 (gen_printf, agent_eval_command_one): Update.
9797
9798 2013-03-21 Tom Tromey <tromey@redhat.com>
9799
9800 PR exp/15109:
9801 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9802 Handle FILENAME token.
9803
9804 2013-03-21 Tom Tromey <tromey@redhat.com>
9805
9806 * c-exp.y (YYPRINT): Define.
9807 (c_print_token): New function.
9808
9809 2013-03-21 Tom Tromey <tromey@redhat.com>
9810
9811 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9812
9813 2013-03-21 Yao Qi <yao@codesourcery.com>
9814
9815 * ctf.c: Include "gdb_stat.h".
9816 [USE_WIN32API]: New macro 'mkdir'.
9817 (ctf_start): Use permission bits macros if they are defined.
9818
9819 2013-03-20 Keith Seitz <keiths@redhat.com>
9820
9821 * breakpoint.h (struct breakpoint): Add comment to
9822 extra_string indicating that this member is mallod'd.
9823 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9824
9825 2013-03-20 Pedro Alves <palves@redhat.com>
9826
9827 PR gdb/15289
9828
9829 * cli/cli-setshow.c (do_set_command)
9830 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9831 the result of parsing the command argument. Throw error if the
9832 value is greater than UINT_MAX. Print the invalid value with
9833 plongest.
9834 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9835 result of parsing the command argument. Throw error if the value
9836 is greater than INT_MAX, not greater or equal. Also throw error
9837 if the value is less than INT_MIN. Print the invalid value with
9838 plongest.
9839 <var_zuinteger_unlimited>: Throw error if the value is greater
9840 than INT_MAX, not greater or equal.
9841 (do_show_command) <var_integer, var_zinteger,
9842 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9843
9844 2013-03-20 Tom Tromey <tromey@redhat.com>
9845
9846 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9847 if possible.
9848 * dwarf2read.c (read_func_scope): Remove old FIXME.
9849 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9850 not LOC_COMPUTED.
9851 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9852 Unconditionally call via computed ops, if possible.
9853 * printcmd.c (address_info): Unconditionally call via computed ops,
9854 if possible.
9855 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9856 if possible.
9857 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9858 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9859 if possible.
9860
9861 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9862 Tom Tromey <tromey@redhat.com>
9863
9864 PR symtab/8421:
9865 * coffread.c (coff_register_index): New global.
9866 (process_coff_symbol, coff_read_enum_type): Set
9867 SYMBOL_ACLASS_INDEX.
9868 (_initialize_coffread): Initialize new global.
9869 * dwarf2loc.c (locexpr_find_frame_base_location)
9870 (dwarf2_block_frame_base_locexpr_funcs)
9871 (loclist_find_frame_base_location)
9872 (dwarf2_block_frame_base_loclist_funcs): New.
9873 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9874 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9875 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9876 (dwarf2_block_frame_base_loclist_funcs): New.
9877 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9878 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9879 globals.
9880 (read_func_scope): Update.
9881 (fixup_go_packaging, mark_common_block_symbol_computed)
9882 (var_decode_location, new_symbol_full, dwarf2_const_value):
9883 Set SYMBOL_ACLASS_INDEX.
9884 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9885 (_initialize_dwarf2_read): Initialize new globals.
9886 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9887 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9888 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9889 globals.
9890 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9891 (_initialize_mdebugread): Initialize new globals.
9892 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9893 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9894 (stab_register_index, stab_regparm_index): New globals.
9895 (define_symbol, read_enum_type, common_block_end): Set
9896 SYMBOL_ACLASS_INDEX.
9897 (_initialize_stabsread): Initialize new globals.
9898 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9899 globals.
9900 (MAX_SYMBOL_IMPLS): New define.
9901 (register_symbol_computed_impl, register_symbol_block_impl)
9902 (register_symbol_register_impl)
9903 (initialize_ordinary_address_classes): New functions.
9904 (_initialize_symtab): Call initialize_ordinary_address_classes.
9905 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9906 (struct symbol_impl): New.
9907 (SYMBOL_ACLASS_BITS): New define.
9908 (struct symbol) <aclass, ops>: Remove fields.
9909 <aclass_index>: New field.
9910 (symbol_impls): Declare.
9911 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9912 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9913 (register_symbol_computed_impl, register_symbol_block_impl)
9914 (register_symbol_register_impl): Declare.
9915 (struct symbol_computed_ops): Add location_has_loclist.
9916 (struct symbol_block_ops): New.
9917 (SYMBOL_BLOCK_OPS): New.
9918 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9919
9920 2013-03-20 Tom Tromey <tromey@redhat.com>
9921
9922 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9923 (print_partial_symbols, recursively_search_psymtabs): Use
9924 PSYMBOL_CLASS.
9925
9926 2013-03-20 Pierre Muller <muller@sourceware.org>
9927
9928 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9929 addtion, subtraction, multiplication and division binary operator.
9930
9931 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9932
9933 Code cleanup.
9934 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9935 * bsd-kvm.c (bsd_kvm_close): Likewise.
9936 * bsd-uthread.c (bsd_uthread_close): Likewise.
9937 * corelow.c (core_close): Likewise.
9938 (core_close_cleanup): Remove parameter quitting from a caller.
9939 * event-top.c (async_disconnect): Likewise.
9940 * exec.c (exec_close_1): Remove parameter quitting.
9941 * go32-nat.c (go32_close): Likewise.
9942 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9943 parameter quitting from a caller.
9944 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9945 variable.
9946 (mips_linux_close): Remove parameter quitting. Remove parameter
9947 quitting from a caller.
9948 * monitor.c (monitor_close): Remove parameter quitting.
9949 * monitor.h (monitor_close): Likewise.
9950 * record-btrace.c (record_btrace_close): Likewise.
9951 * record-full.c (record_full_close): Likewise.
9952 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9953 it also from fprintf_unfiltered.
9954 * remote-mips.c (mips_close): Remove parameter quitting.
9955 (mips_detach): Remove parameter quitting from a caller.
9956 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9957 (gdbsim_close): Remove duplicate function comment. Remove parameter
9958 quitting and remove it also from printf_filtered.
9959 * remote.c (remote_close): Remove parameter quitting.
9960 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9961 * target.c (update_current_target): Remove parameter int from to_close
9962 de_fault.
9963 (push_target, unpush_target, pop_target): Remove parameter quitting from
9964 a caller.
9965 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9966 Remove parameter quitting from a caller.
9967 (target_preopen): Remove parameter quitting from a caller.
9968 (target_close): Remove parameter quitting. Remove parameter quitting
9969 from a caller two times. Remove parameter quitting also from
9970 fprintf_unfiltered.
9971 * target.h (struct target_ops): Remove parameter quitting and as int
9972 from fields to_xclose and to_close.
9973 (extern struct target_ops current_target):
9974 (target_close, pop_all_targets): Remove parameter quitting. Update the
9975 comment.
9976 (pop_all_targets_above): Remove parameter quitting.
9977 * top.c (quit_target): Remove parameter quitting from a caller.
9978 * tracepoint.c (tfile_close): Remove parameter quitting.
9979 * windows-nat.c (windows_close): Remove parameter quitting.
9980
9981 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9982
9983 * windows-nat.c (handle_output_debug_string): Replace call
9984 to string_to_core_addr with call to strtoull.
9985
9986 2013-03-20 Yao Qi <yao@codesourcery.com>
9987
9988 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9989 and write it to CTF metadata.
9990
9991 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9992
9993 * windows-nat.c (handle_output_debug_string): Change type of n to
9994 SIZE_T to avoid crash on 64 bit systems.
9995
9996 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9997
9998 * python/python-internal.h (HAVE_SNPRINTF)
9999 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10000 about redefinition of snprintf by pyerrors.h.
10001
10002 2013-03-15 Steve Ellcey <sellcey@mips.com>
10003
10004 * remote-sim.c (sim_command_completer): Make char arguments const.
10005
10006 2013-03-15 Tom Tromey <tromey@redhat.com>
10007
10008 PR c++/15116:
10009 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10010
10011 2013-03-14 Tom Tromey <tromey@redhat.com>
10012
10013 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10014 New fields.
10015 (get_file_crc): Move from symfile.c.
10016 (gdb_bfd_crc): New function.
10017 * gdb_bfd.h (gdb_bfd_crc): Declare.
10018 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10019 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10020 (separate_debug_file_exists): Use gdb_bfd_crc.
10021
10022 2013-03-14 Tom Tromey <tromey@redhat.com>
10023
10024 * symfile.c (get_debug_link_info): Remove.
10025 (find_separate_debug_file_by_debuglink): Use
10026 bfd_get_debug_link_info.
10027
10028 2013-03-14 Tom Tromey <tromey@redhat.com>
10029
10030 * symtab.c (error_in_psymtab_expansion): New function.
10031 (lookup_symbol_aux_quick)
10032 (basic_lookup_transparent_type_quick): Remove "last resort"
10033 code. Use error_in_psymtab_expansion.
10034
10035 2013-03-14 Doug Evans <dje@google.com>
10036 Jan Kratochvil <jan.kratochvil@redhat.com>
10037
10038 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10039 any successful compare_filenames_for_search or FILENAME_CMP.
10040 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10041 * symtab.c (iterate_over_some_symtabs): Likewise.
10042
10043 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10044
10045 * source.c (print_source_lines_base): Make a local copy of
10046 symtab_to_fullname.
10047
10048 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10049 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 * source.c (print_source_lines_base): Suppress "file" for TUI.
10052
10053 2013-03-14 Keith Seitz <keiths@redhat.com>
10054 Alan Matsuoka <alanm@redhat.com>
10055
10056 PR c++/15203
10057 PR c++/15210
10058 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10059 TYPE_CODE_METHOD.
10060 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10061 symbols.
10062
10063 2013-03-14 Yao Qi <yao@codesourcery.com>
10064
10065 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10066 status to tfile if trace is stopped by command 'tstop'.
10067
10068 2013-03-14 Yao Qi <yao@codesourcery.com>
10069
10070 * tracepoint.c (tfile_write_status): Write trace notes and user
10071 name into tfile if they are not NULL.
10072
10073 2013-03-14 Hui Zhu <hui@codesourcery.com>
10074 Yao Qi <yao@codesourcery.com>
10075
10076 * Makefile.in (REMOTE_OBS): Add ctf.o.
10077 (SFILES): Add ctf.c.
10078 (HFILES_NO_SRCDIR): Add ctf.h.
10079 * ctf.c, ctf.h: New files.
10080 * tracepoint.c: Include 'ctf.h'.
10081 (collect_pseudocommand): Remove static.
10082 (trace_save_command): Parse option "-ctf".
10083 Produce different trace file writers per option.
10084 Adjust output message.
10085 (trace_save_tfile, trace_save_ctf): New.
10086 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10087 * mi/mi-main.c: Include 'ctf.h'.
10088 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10089 trace_save_tfile or trace_save_ctf.
10090 * NEWS: Mention these changes.
10091
10092 2013-03-14 Yao Qi <yao@codesourcery.com>
10093
10094 * tracepoint.c (trace_file_writer_xfree): New.
10095 (struct tfile_writer_data): New.
10096 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10097 (tfile_write_header, tfile_write_regblock_type): New.
10098 (tfile_write_status, tfile_write_uploaded_tsv): New.
10099 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10100 (tfile_write_raw_data, (tfile_end): New.
10101 (tfile_write_ops): New global variable.
10102 (TRACE_WRITE_R_BLOCK): New macro.
10103 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10104 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10105 (TRACE_WRITE_V_BLOCK): New macro.
10106 (trace_save): Add extra one parameter WRITER. Make it static.
10107 Use WRITER to writer trace.
10108 (tfile_trace_file_writer_new): New.
10109 (trace_save_command): Caller update.
10110 (trace_save_tfile): Write trace data in TFILE format.
10111 * tracepoint.h (struct trace_frame_write_ops): New.
10112 (struct trace_file_write_ops): New.
10113 (struct trace_file_writer): New.
10114 (trace_save): Remove its declaration.
10115 (trace_save_tfile): Declare it.
10116 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10117 instead of trace_save.
10118
10119 2013-03-13 Pedro Alves <palves@redhat.com>
10120
10121 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10122
10123 2013-03-13 Pedro Alves <palves@redhat.com>
10124
10125 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10126 commented out code.
10127 * demangle.c (current_demangling_style_string): Make it const.
10128 (set_demangling_command): Assert the demangling style is known.
10129 Remove all handling of unknown styles. Set
10130 'current_demangling_style_string' to an element of the
10131 demangling_style_names array.
10132 (set_demangling_style): Delete.
10133 (_initialize_demangler): Set current_demangling_style_string to the
10134 element of the demangling_style_names array that corresponds to
10135 the default demangling style. Remove FIXME note. Don't call
10136 set_demangling_style.
10137 * gdb-demangle.h (set_demangling_style): Remove declaration.
10138
10139 2013-03-13 Pedro Alves <palves@redhat.com>
10140
10141 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10142 fields const.
10143 (ada_make_symbol_completion_list): Make "text0" parameter const.
10144 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10145 * breakpoint.c (condition_completer): Make "text" and "word"
10146 parameters const. Adjust.
10147 (check_tracepoint_command): Adjust to validate_actionline
10148 prototype change.
10149 (catch_syscall_completer): Make "text" and "word" parameters
10150 const.
10151 * cli/cli-cmds.c (show_user): Make "comname" local const.
10152 (valid_command_p): Make "command" parameter const.
10153 (alias_command): Make "alias_prefix" and "command_prefix" locals
10154 const.
10155 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10156 (add_alias_cmd): Make "name" and "oldname" parameters const.
10157 Adjust. No longer make copy of OLDNAME.
10158 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10159 (add_setshow_cmd_full, add_setshow_enum_cmd)
10160 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10161 (add_setshow_filename_cmd, add_setshow_string_cmd)
10162 (add_setshow_string_noescape_cmd)
10163 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10164 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10165 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10166 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10167 Make "name" parameter const.
10168 (help_cmd): Rename "command" parameter to "arg". New const local
10169 "command".
10170 (find_cmd): Make "command" parameter const.
10171 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10172 deprecated_cmd_warning prototype change.
10173 (undef_cmd_error): Make "cmdtype" parameter const.
10174 (lookup_cmd): Make "line" parameter const.
10175 (deprecated_cmd_warning): Change type of "text" parameter to
10176 pointer to const char, from pointer to pointer to char. Adjust.
10177 (lookup_cmd_composition): Make "text" parameter const.
10178 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10179 parameters const.
10180 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10181 const.
10182 * cli/cli-script.c (validate_comname): Make "tem" local const.
10183 (define_command): New const local "tem_c". Use it in calls to
10184 lookup_cmd.
10185 (document_command): Make "tem" and "comfull" locals const.
10186 (show_user_1): Make "prefix" and "name" parameters const.
10187 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10188 const.
10189 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10190 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10191 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10192 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10193 (complete_on_enum, add_setshow_enum_cmd)
10194 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10195 (add_setshow_filename_cmd, add_setshow_string_cmd)
10196 (add_setshow_string_noescape_cmd)
10197 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10198 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10199 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10200 Change prototypes, constifying strings.
10201 * completer.c (noop_completer, filename_completer): Make "text"
10202 and "prefix" parameters const.
10203 (location_completer, expression_completer)
10204 (complete_line_internal): Make "text" and "prefix" parameters
10205 const and adjust.
10206 (command_completer, signal_completer): Make "text" and "prefix"
10207 parameters const.
10208 * completer.h (noop_completer, filename_completer)
10209 (expression_completer, location_completer, command_completer)
10210 (signal_completer): Change prototypes.
10211 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10212 parameters const.
10213 * cp-abi.c (cp_abi_completer): Likewise.
10214 * expression.h (parse_expression_for_completion): Change
10215 prototype.
10216 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10217 parameters const.
10218 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10219 * infrun.c (handle_completer): Make "text" and "word" parameters
10220 const.
10221 * interps.c (interpreter_completer): Make "text" and "word"
10222 parameters const.
10223 * language.h (struct language_defn)
10224 <la_make_symbol_completion_list>: Make "text" and "word"
10225 parameters const.
10226 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10227 (parse_exp_in_context): Rename to ...
10228 (parse_exp_in_context_1): ... this.
10229 (parse_exp_in_context): Reimplement, with const hack from
10230 parse_exp_1.
10231 (parse_expression_for_completion): Make "string" parameter const.
10232 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10233 to pointer to const char. Adjust.
10234 (print_command_1): Make "exp" parameter const.
10235 (output_command): Rename to ...
10236 (output_command_const): ... this. Make "exp" parameter const.
10237 (output_command): Reimplement.
10238 (x_command): Adjust.
10239 (display_command): Rename "exp" parameter to "arg". New "exp"
10240 local, const version of "arg".
10241 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10242 "cmd_name" local const.
10243 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10244 call.
10245 (cmdpy_completer): Make "text" and "word" parameters const.
10246 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10247 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10248 const.
10249 * remote.c (_initialize_remote): Make "cmd_name" local const.
10250 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10251 parameters const. Adjust.
10252 (completion_list_add_fields): Make "sym_text", "text" and "word"
10253 parameters const.
10254 (struct add_name_data) <sym_text, text, word>: Make fields const.
10255 (default_make_symbol_completion_list_break_on): Make "text" and
10256 "word" parameters const. Adjust locals.
10257 (default_make_symbol_completion_list)
10258 (make_symbol_completion_list, make_symbol_completion_type)
10259 (make_symbol_completion_list_fn): Make "text" and "word"
10260 parameters const.
10261 (make_file_symbol_completion_list): Make "text", "word" and
10262 "srcfile" parameters const. Adjust locals.
10263 (add_filename_to_list): Make "text" and "word" parameters const.
10264 (struct add_partial_filename_data) <text, word>: Make fields
10265 const.
10266 (make_source_files_completion_list): Make "text" and "word"
10267 parameters const.
10268 * symtab.h (default_make_symbol_completion_list_break_on)
10269 (default_make_symbol_completion_list, make_symbol_completion_list)
10270 (make_symbol_completion_type enum type_code)
10271 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10272 (make_source_files_completion_list): Change prototype.
10273 * top.c (execute_command): Adjust to pass pointer to pointer to
10274 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10275 change.
10276 (set_verbose): Make "cmdname" local const.
10277 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10278 and adjust.
10279 (validate_actionline): Make "line" parameter a pointer to const
10280 char, and adjust.
10281 (encode_actions_1): Make "action_exp" local const, and adjust.
10282 (encode_actions): Adjust.
10283 (replace_comma): Delete.
10284 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10285 const, and adjust. Don't frob the action string while splitting
10286 it at commas. Instead, make a copy of each split substring in
10287 turn.
10288 (trace_dump_command): Adjust to validate_actionline prototype
10289 change.
10290 * tracepoint.h (decode_agent_options, decode_agent_options)
10291 (encode_actions, validate_actionline): Change prototypes.
10292 * valprint.h (output_command): Delete declaration.
10293 (output_command_const): Declare.
10294 * value.c (function_destroyer): Cast const away in xfree call.
10295
10296 2013-03-13 Pedro Alves <palves@redhat.com>
10297
10298 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10299 rather than casting 'const char * const *' to 'const char **'.
10300 * ada-lex.l (processInt): Make "trailer" local const. Remove
10301 'const char **' cast.
10302 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10303 locals, and use those as strtol output pointer, instead than doing
10304 invalid casts to from 'const char **' to 'char **'.
10305 (_initialize_demangle): Remove cast.
10306 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10307 locals, and use those as strtol output pointer, instead than doing
10308 invalid casts to from 'const char **' to 'char **'.
10309 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10310 casts.
10311 * stap-probe.c (stap_parse_register_operand)
10312 (stap_parse_single_operand): Likewise.
10313
10314 2013-03-13 Yao Qi <yao@codesourcery.com>
10315
10316 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10317 the last matched 'V' blcok in trace frame.
10318
10319 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10320
10321 * NEWS: Create a new section for the next release branch.
10322 Rename the section of the current branch, now that it has
10323 been cut.
10324
10325 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10326
10327 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10328 * version.in: Bump version to 7.6.50.20130312-cvs.
10329
10330 2013-03-12 Keith Seitz <keiths@redhat.com>
10331
10332 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10333 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10334 Remove temporary copy of input string.
10335 (mi_execute_command_wrapper): Make "cmd" const.
10336 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10337 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10338 Use const strings.
10339 (mi_parse): Make "cmd" const.
10340 Use const strings.
10341 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10342
10343 2013-03-12 Keith Seitz <keiths@redhat.com>
10344
10345 * ada-lang.c (ada_read_renaming_var_value): Pass const
10346 pointer to expression string to parse_exp_1.
10347 (create_excep_cond_exprs): Likewise.
10348 * ax-gdb.c (agent_eval_command_one): Likewise.
10349 (maint_agent_printf_command): Likewise.
10350 Constify much of the string handling/parsing.
10351 * breakpoint.c (set_breakpoint_condition): Pass const
10352 pointer to expression string to parse_exp_1.
10353 (update_watchpoint): Likewise.
10354 (parse_cmd_to_aexpr): Constify string handling.
10355 Pass const pointer to parse_exp_1.
10356 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10357 (find_condition_and_thread): Likewise.
10358 Make TOK const.
10359 (watch_command_1): Make "arg" const.
10360 Constify string handling.
10361 Copy the expression string instead of changing the input
10362 string.
10363 (update_breakpoint_location): Pass const pointer to
10364 parse_exp_1.
10365 * eval.c (parse_and_eval_address): Make "exp" const.
10366 (parse_to_comma_and_eval): Make "expp" const.
10367 (parse_and_eval): Make "exp" const.
10368 * expression.h (parse_expression): Make argument const.
10369 (parse_exp_1): Make first argument const.
10370 * findcmd.c (parse_find_args): Treat "args" as const.
10371 * linespec.c (parse_linespec): Pass const pointer to
10372 linespec_expression_to_pc.
10373 (linespec_expression_to_pc): Make "exp_ptr" const.
10374 * parse.c (parse_exp_1): Make "stringptr" const.
10375 Make a copy of the expression to pass to parse_exp_in_context until
10376 this whole interface can be constified.
10377 (parse_expression): Make "string" const.
10378 * printcmd.c (ui_printf): Treat "arg" as const.
10379 Handle const strings.
10380 * tracepoint.c (validate_actionline): Pass const pointer to
10381 all calls to parse_exp_1.
10382 (encode_actions_1): Likewise.
10383 * value.h (parse_to_comma_and_eval): Make argument const.
10384 (parse_and_eval_address): Likewise.
10385 (parse_and_eval): Likewise.
10386 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10387 (varobj_set_value): Likewise.
10388 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10389 constify string handling.
10390 Pass const pointers to parse_and_eval_address and
10391 parse_to_comman_and_eval.
10392 * cli/cli-utils.c (skip_to_space): Rename to ...
10393 (skip_to_space_const): ... this. Handle const strings.
10394 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10395 skip_to_space_const.
10396 (skip_to_space_const): Declare.
10397 * common/format.c (parse_format_string): Make "arg" const.
10398 Handle const strings.
10399 * common/format.h (parse_format_string): Make "arg" const.
10400 * gdbserver/ax.c (ax_printf): Make "format" const.
10401 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10402 of the expression string.
10403
10404 2013-03-12 Hui Zhu <hui@codesourcery.com>
10405
10406 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10407
10408 2013-03-12 Yao Qi <yao@codesourcery.com>
10409 Hui Zhu <hui@codesourcery.com>
10410
10411 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10412 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10413 DW_OP_deref_size.
10414
10415 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10416
10417 * ada-lex.l (rules): Only recognize 'thread' as a
10418 delimiter when followed by numerals, as for c-exp.y.
10419 Use new rewind_to_char function to rewind the input for
10420 expression-delimiting tokens.
10421 (rewind_to_char): New function.
10422
10423 2013-03-11 Pedro Alves <palves@redhat.com>
10424 Jan Kratochvil <jan.kratochvil@redhat.com>
10425
10426 * configure: Regenerate.
10427 * configure.ac (check dynamic export flag): Link python test with
10428 $PYTHON_LIBS.
10429
10430 2013-03-11 Doug Evans <dje@google.com>
10431 Keith Seitz <keiths@redhat.com>
10432
10433 * linespec.c (find_linespec_symbols): Call find_function_symbols
10434 first, and then call lookup_prefix_sym/find_method.
10435
10436 2013-03-11 Pedro Alves <palves@redhat.com>
10437
10438 * charset.c (convert_between_encodings): Don't cast between
10439 different pointer to pointer types. Instead, make the 'inp' local
10440 be of the type iconv expects.
10441 (wchar_iterate): Don't cast between different pointer to pointer
10442 types. Instead, use new pointer local of the type iconv expects.
10443 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10444 Add new local of type char pointer, and use it to get a
10445 char/string view of the byte buffer, instead of casting between
10446 pointer to pointer types.
10447
10448 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10449
10450 * remote.c (remote_set_trace_buffer_size): Move != operator
10451 to the start of next line to fix an ARI warning.
10452
10453 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10454
10455 * NEWS: Add record changes.
10456
10457 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10458
10459 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10460 the instruction history disassembly.
10461 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10462 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10463
10464 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10465
10466 * Makefile.in (SFILES): Add record-btrace.c
10467 (COMMON_OBS): Add record-btrace.o
10468 * record-btrace.c: New.
10469 * objfiles.c: Include btrace.h.
10470 (free_objfile): call btrace_free_objfile.
10471
10472 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10473
10474 * target.c (target_call_history, target_call_history_from,
10475 target_call_history_range): New.
10476 * target.h (target_ops) <to_call_history, to_call_history_from,
10477 to_call_history_range>: New fields.
10478 (target_call_history, target_call_history_from,
10479 target_call_history_range): New declaration.
10480 * record.c (get_call_history_modifiers, cmd_record_call_history,
10481 record_call_history_size): New.
10482 (_initialize_record): Add the "record function-call-history" command.
10483 Add "set/show record function-call-history-size" commands.
10484 * record.h (record_print_flag): New.
10485
10486 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10487
10488 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10489 to_insn_history_range>: New fields.
10490 (target_insn_history): New.
10491 (target_insn_history_from): New.
10492 (target_insn_history_range): New.
10493 * target.c (target_insn_history): New.
10494 (target_insn_history_from): New.
10495 (target_insn_history_range): New.
10496 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10497 (record_insn_history_size): New.
10498 (get_insn_number): New.
10499 (get_context_size): New.
10500 (no_chunk): New.
10501 (get_insn_history_modifiers): New.
10502 (cmd_record_insn_history): New.
10503 (_initialize_record): Add "set/show record instruction-history-size"
10504 command. Add "record instruction-history" command.
10505
10506 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10507
10508 * record.h (record_disconnect): New.
10509 (record_detach): New.
10510 (record_mourn_inferior): New.
10511 (record_kill): New.
10512 * record-full.c (record_disconnect, record_detach,
10513 record_mourn_inferior, record_kill): Move to...
10514 * record.c: ...here.
10515 (DEBUG): New.
10516 (record_stop): New.
10517 (record_unpush): New.
10518 (cmd_record_stop): Call record_stop. Replace unpush_target
10519 call with record_unpush call.
10520 (record_disconnect, record_detach): Assert that the target
10521 is of record stratum. Call record_unpush, record_stop, and
10522 DEBUG.
10523 (record_mourn_inferior, record_kill): Assert that the target
10524 is of record stratum. Call record_unpush and DEBUG.
10525
10526 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10527
10528 * record-full.h, record-full.c (record_memory_query): Rename
10529 to ...
10530 (record_full_memory_query): ...this. Update all users.
10531 (record_arch_list_add_reg): Rename to ...
10532 (record_full_arch_list_add_reg): ...this. Update all users.
10533 (record_arch_list_add_mem): Rename to ...
10534 (record_full_arch_list_add_mem): ...this. Update all users.
10535 (record_arch_list_add_end): Rename to ...
10536 (record_full_arch_list_add_end): ...this. Update all users.
10537 (record_gdb_operation_disable_set): Rename to ...
10538 (record_full_gdb_operation_disable_set): ...this.
10539 Update all users.
10540
10541 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10542
10543 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10544 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10545 (RECORD_IS_REPLAY): Renamed to ...
10546 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10547 (RECORD_FILE_MAGIC): Renamed to ...
10548 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10549 (record_mem_entry): Renamed to ...
10550 (record_full_mem_entry): ... this. Updated all users.
10551 (record_reg_entry): Renamed to ...
10552 (record_full_reg_entry): ... this. Updated all users.
10553 (record_end_entry): Renamed to ...
10554 (record_full_end_entry): ... this. Updated all users.
10555 (record_type) <record_end, record_reg, record_mem>: Renamed
10556 to ...
10557 (record_full_type) <record_full_end, record_full_reg,
10558 record_full_mem>: ... this. Updated all users.
10559 (record_entry): Renamed to ...
10560 (record_full_entry): ... this. Updated all users.
10561 (record_core_buf_entry): Renamed to ...
10562 (record_full_core_buf_entry): ... this. Updated all users.
10563 (record_core_regbuf): Renamed to ...
10564 (record_full_core_regbuf): ... this. Updated all users.
10565 (record_core_start): Renamed to ...
10566 (record_full_core_start): ... this. Updated all users.
10567 (record_core_end): Renamed to ...
10568 (record_full_core_end): ... this. Updated all users.
10569 (record_core_buf_list): Renamed to ...
10570 (record_full_core_buf_list): ... this. Updated all users.
10571 (record_first): Renamed to ...
10572 (record_full_first): ... this. Updated all users.
10573 (record_list): Renamed to ...
10574 (record_full_list): ... this. Updated all users.
10575 (record_arch_list_head): Renamed to ...
10576 (record_full_arch_list_head): ... this. Updated all users.
10577 (record_arch_list_tail): Renamed to ...
10578 (record_full_arch_list_tail): ... this. Updated all users.
10579 (record_stop_at_limit): Renamed to ...
10580 (record_full_stop_at_limit): ... this. Updated all users.
10581 (record_insn_max_num): Renamed to ...
10582 (record_full_insn_max_num): ... this. Updated all users.
10583 (record_insn_num): Renamed to ...
10584 (record_full_insn_num): ... this. Updated all users.
10585 (record_insn_count): Renamed to ...
10586 (record_full_insn_count): ... this. Updated all users.
10587 (record_ops): Renamed to ...
10588 (record_full_ops): ... this. Updated all users.
10589 (record_core_ops): Renamed to ...
10590 (record_full_core_ops): ... this. Updated all users.
10591 (set_record_cmdlist): Renamed to ...
10592 (set_record_full_cmdlist): ... this. Updated all users.
10593 (show_record_cmdlist): Renamed to ...
10594 (show_record_full_cmdlist): ... this. Updated all users.
10595 (record_cmdlist): Renamed to ...
10596 (record_full_cmdlist): ... this. Updated all users.
10597 (record_beneath_to_resume_ops): Renamed to ...
10598 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10599 (record_beneath_to_resume): Renamed to ...
10600 (record_full_beneath_to_resume): ... this. Updated all users.
10601 (record_beneath_to_wait_ops): Renamed to ...
10602 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10603 (record_beneath_to_wait): Renamed to ...
10604 (record_full_beneath_to_wait): ... this. Updated all users.
10605 (record_beneath_to_store_registers_ops): Renamed to ...
10606 (record_full_beneath_to_store_registers_ops): ... this.
10607 Updated all users.
10608 (record_beneath_to_store_registers): Renamed to ...
10609 (record_full_beneath_to_store_registers): ... this.
10610 Updated all users.
10611 (record_beneath_to_xfer_partial_ops): Renamed to ...
10612 (record_full_beneath_to_xfer_partial_ops): ... this.
10613 Updated all users.
10614 (record_beneath_to_xfer_partial): Renamed to ...
10615 (record_full_beneath_to_xfer_partial): ... this.
10616 Updated all users.
10617 (record_beneath_to_insert_breakpoint): Renamed to ...
10618 (record_full_beneath_to_insert_breakpoint): ... this.
10619 Updated all users.
10620 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10621 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10622 Updated all users.
10623 (record_beneath_to_stopped_data_address): Renamed to ...
10624 (record_full_beneath_to_stopped_data_address): ... this.
10625 Updated all users.
10626 (record_beneath_to_async): Renamed to ...
10627 (record_full_beneath_to_async): ... this. Updated all users.
10628 (record_goto_insn): Renamed to ...
10629 (record_full_goto_insn): ... this. Updated all users.
10630 (record_save): Renamed to ...
10631 (record_full_save): ... this. Updated all users.
10632 (record_reg_alloc): Renamed to ...
10633 (record_full_reg_alloc): ... this. Updated all users.
10634 (record_reg_release): Renamed to ...
10635 (record_full_reg_release): ... this. Updated all users.
10636 (record_mem_alloc): Renamed to ...
10637 (record_full_mem_alloc): ... this. Updated all users.
10638 (record_mem_release): Renamed to ...
10639 (record_full_mem_release): ... this. Updated all users.
10640 (record_end_alloc): Renamed to ...
10641 (record_full_end_alloc): ... this. Updated all users.
10642 (record_end_release): Renamed to ...
10643 (record_full_end_release): ... this. Updated all users.
10644 (record_entry_release): Renamed to ...
10645 (record_full_entry_release): ... this. Updated all users.
10646 (record_list_release): Renamed to ...
10647 (record_full_list_release): ... this. Updated all users.
10648 (record_list_release_following): Renamed to ...
10649 (record_full_list_release_following): ... this.
10650 Updated all users.
10651 (record_list_release_first): Renamed to ...
10652 (record_full_list_release_first): ... this. Updated all users.
10653 (record_arch_list_add): Renamed to ...
10654 (record_full_arch_list_add): ... this. Updated all users.
10655 (record_get_loc): Renamed to ...
10656 (record_full_get_loc): ... this. Updated all users.
10657 (record_check_insn_num): Renamed to ...
10658 (record_full_check_insn_num): ... this. Updated all users.
10659 (record_arch_list_cleanups): Renamed to ...
10660 (record_full_arch_list_cleanups): ... this. Updated all users.
10661 (record_message): Renamed to ...
10662 (record_full_message): ... this. Updated all users.
10663 (record_message_wrapper): Renamed to ...
10664 (record_full_message_wrapper): ... this. Updated all users.
10665 (record_message_wrapper_safe): Renamed to ...
10666 (record_full_message_wrapper_safe): ... this. Updated all users.
10667 (record_gdb_operation_disable): Renamed to ...
10668 (record_full_gdb_operation_disable): ... this. Updated all users.
10669 (record_hw_watchpoint): Renamed to ...
10670 (record_full_hw_watchpoint): ... this. Updated all users.
10671 (record_exec_insn): Renamed to ...
10672 (record_full_exec_insn): ... this. Updated all users.
10673 (record_restore): Renamed to ...
10674 (record_full_restore): ... this. Updated all users.
10675 (record_async_inferior_event_token): Renamed to ...
10676 (record_full_async_inferior_event_token): ... this.
10677 Updated all users.
10678 (record_async_inferior_event_handler): Renamed to ...
10679 (record_full_async_inferior_event_handler): ... this.
10680 Updated all users.
10681 (record_core_open_1): Renamed to ...
10682 (record_full_core_open_1): ... this. Updated all users.
10683 (record_open_1): Renamed to ...
10684 (record_full_open_1): ... this. Updated all users.
10685 (record_open): Renamed to ...
10686 (record_full_open): ... this. Updated all users.
10687 (record_close): Renamed to ...
10688 (record_full_close): ... this. Updated all users.
10689 (record_resume_step): Renamed to ...
10690 (record_full_resume_step): ... this. Updated all users.
10691 (record_resumed): Renamed to ...
10692 (record_full_resumed): ... this. Updated all users.
10693 (record_execution_dir): Renamed to ...
10694 (record_full_execution_dir): ... this. Updated all users.
10695 (record_resume): Renamed to ...
10696 (record_full_resume): ... this. Updated all users.
10697 (record_get_sig): Renamed to ...
10698 (record_full_get_sig): ... this. Updated all users.
10699 (record_sig_handler): Renamed to ...
10700 (record_full_sig_handler): ... this. Updated all users.
10701 (record_wait_cleanups): Renamed to ...
10702 (record_full_wait_cleanups): ... this. Updated all users.
10703 (record_wait_1): Renamed to ...
10704 (record_full_wait_1): ... this. Updated all users.
10705 (record_wait): Renamed to ...
10706 (record_full_wait): ... this. Updated all users.
10707 (record_stopped_by_watchpoint): Renamed to ...
10708 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10709 (record_disconnect): Renamed to ...
10710 (record_full_disconnect): ... this. Updated all users.
10711 (record_detach): Renamed to ...
10712 (record_full_detach): ... this. Updated all users.
10713 (record_mourn_inferior): Renamed to ...
10714 (record_full_mourn_inferior): ... this. Updated all users.
10715 (record_kill): Renamed to ...
10716 (record_full_kill): ... this. Updated all users.
10717 (record_stopped_data_address): Renamed to ...
10718 (record_full_stopped_data_address): ... this. Updated all users.
10719 (record_registers_change): Renamed to ...
10720 (record_full_registers_change): ... this. Updated all users.
10721 (record_store_registers): Renamed to ...
10722 (record_full_store_registers): ... this. Updated all users.
10723 (record_xfer_partial): Renamed to ...
10724 (record_full_xfer_partial): ... this. Updated all users.
10725 (record_breakpoint): Renamed to ...
10726 (record_full_breakpoint): ... this. Updated all users.
10727 (record_breakpoint_p): Renamed to ...
10728 (record_full_breakpoint_p): ... this. Updated all users.
10729 (record_breakpoints): Renamed to ...
10730 (record_full_breakpoints): ... this. Updated all users.
10731 (record_sync_record_breakpoints): Renamed to ...
10732 (record_full_sync_record_breakpoints): ... this.
10733 Updated all users.
10734 (record_init_record_breakpoints): Renamed to ...
10735 (record_full_init_record_breakpoints): ... this.
10736 Updated all users.
10737 (record_insert_breakpoint): Renamed to ...
10738 (record_full_insert_breakpoint): ... this. Updated all users.
10739 (record_remove_breakpoint): Renamed to ...
10740 (record_full_remove_breakpoint): ... this. Updated all users.
10741 (record_can_execute_reverse): Renamed to ...
10742 (record_full_can_execute_reverse): ... this. Updated all users.
10743 (record_get_bookmark): Renamed to ...
10744 (record_full_get_bookmark): ... this. Updated all users.
10745 (record_goto_bookmark): Renamed to ...
10746 (record_full_goto_bookmark): ... this. Updated all users.
10747 (record_async): Renamed to ...
10748 (record_full_async): ... this. Updated all users.
10749 (record_can_async_p): Renamed to ...
10750 (record_full_can_async_p): ... this. Updated all users.
10751 (record_is_async_p): Renamed to ...
10752 (record_full_is_async_p): ... this. Updated all users.
10753 (record_execution_direction): Renamed to ...
10754 (record_full_execution_direction): ... this. Updated all users.
10755 (record_info): Renamed to ...
10756 (record_full_info): ... this. Updated all users.
10757 (record_delete): Renamed to ...
10758 (record_full_delete): ... this. Updated all users.
10759 (record_is_replaying): Renamed to ...
10760 (record_full_is_replaying): ... this. Updated all users.
10761 (record_goto_entry): Renamed to ...
10762 (record_full_goto_entry): ... this. Updated all users.
10763 (record_goto_begin): Renamed to ...
10764 (record_full_goto_begin): ... this. Updated all users.
10765 (record_goto_end): Renamed to ...
10766 (record_full_goto_end): ... this. Updated all users.
10767 (record_goto): Renamed to ...
10768 (record_full_goto): ... this. Updated all users.
10769 (init_record_ops): Renamed to ...
10770 (init_record_full_ops): ... this. Updated all users.
10771 (record_core_resume): Renamed to ...
10772 (record_full_core_resume): ... this. Updated all users.
10773 (record_core_kill): Renamed to ...
10774 (record_full_core_kill): ... this. Updated all users.
10775 (record_core_fetch_registers): Renamed to ...
10776 (record_full_core_fetch_registers): ... this. Updated all users.
10777 (record_core_prepare_to_store): Renamed to ...
10778 (record_full_core_prepare_to_store): ... this. Updated all users.
10779 (record_core_store_registers): Renamed to ...
10780 (record_full_core_store_registers): ... this. Updated all users.
10781 (record_core_xfer_partial): Renamed to ...
10782 (record_full_core_xfer_partial): ... this. Updated all users.
10783 (record_core_insert_breakpoint): Renamed to ...
10784 (record_full_core_insert_breakpoint): ... this. Updated all users.
10785 (record_core_remove_breakpoint): Renamed to ...
10786 (record_full_core_remove_breakpoint): ... this. Updated all users.
10787 (record_core_has_execution): Renamed to ...
10788 (record_full_core_has_execution): ... this. Updated all users.
10789 (init_record_core_ops): Renamed to ...
10790 (init_record_full_core_ops): ... this. Updated all users.
10791 (cmd_record_restore): Renamed to ...
10792 (cmd_record_full_restore): ... this. Updated all users.
10793 (record_save_cleanups): Renamed to ...
10794 (record_full_save_cleanups): ... this. Updated all users.
10795 (cmd_record_start): Renamed to ...
10796 (cmd_record_full_start): ... this. Updated all users.
10797 (set_record_insn_max_num): Renamed to ...
10798 (set_record_full_insn_max_num): ... this. Updated all users.
10799 (set_record_command): Renamed to ...
10800 (set_record_full_command): ... this. Updated all users.
10801 (show_record_command): Renamed to ...
10802 (show_record_full_command): ... this. Updated all users.
10803 (_initialize_record): Renamed to ...
10804 (_initialize_record_full): ... this. Updated all users.
10805
10806 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10807
10808 * record.h: Split into this and ...
10809 * record-full.h: ... this.
10810 * record.c: Split into this and ...
10811 * record-full.c: ... this.
10812 * target.h (target_ops): Add new fields to_info_record,
10813 to_save_record, to_delete_record, to_record_is_replaying,
10814 to_goto_record_begin, to_goto_record_end, to_goto_record.
10815 (target_info_record): New.
10816 (target_save_record): New.
10817 (target_supports_delete_record): New.
10818 (target_delete_record): New.
10819 (target_record_is_replaying): New.
10820 (target_goto_record_begin): New.
10821 (target_goto_record_end): New.
10822 (target_goto_record): New.
10823 * target.c (target_info_record): New.
10824 (target_save_record): New.
10825 (target_supports_delete_record): New.
10826 (target_delete_record): New.
10827 (target_record_is_replaying): New.
10828 (target_goto_record_begin): New.
10829 (target_goto_record_end): New.
10830 (target_goto_record): New.
10831 * record.h: Declare struct cmd_list_element.
10832 (record_cmdlist): New declaration.
10833 (set_record_cmdlist): New declaration.
10834 (show_record_cmdlist): New declaration.
10835 (info_record_cmdlist): New declaration.
10836 (cmd_record_goto): New declaration.
10837 * record.c: Remove unnecessary includes.
10838 Include inferior.h.
10839 (cmd_record_goto): Remove declaration.
10840 (record_cmdlist): Now extern. Initialize.
10841 (set_record_cmdlist): Now extern. Initialize.
10842 (show_record_cmdlist): Now extern. Initialize.
10843 (info_record_cmdlist): Now extern. Initialize.
10844 (find_record_target): New.
10845 (require_record_target): New.
10846 (cmd_record_start): Update.
10847 (cmd_record_delete): Remove target-specific code.
10848 Call target_delete_record.
10849 (cmd_record_stop): Unpush any record target.
10850 (set_record_insn_max_num): Move to record-full.c
10851 (set_record_command): Add comment.
10852 (show_record_command): Add comment.
10853 (info_record_command): Update comment.
10854 Remove target-specific code.
10855 Call the record target's to_info_record.
10856 (cmd_record_start): New.
10857 (cmd_record_goto): Now extern.
10858 Remove target-specific code.
10859 Call target_goto_begin, target_goto_end, or target_goto.
10860 (_initialize_record): Move record target ops initialization to
10861 record-full.c.
10862 Change "record" command help text.
10863 Move "record restore", "record set", and "record show" commands to
10864 record-full.c.
10865 * Makefile.in (SFILES): Add record-full.c.
10866 (HFILES_NO_SRCDIR): Add record-full.h.
10867 (COMMON_OBS): Add record-full.o.
10868 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10869 * arm-tdep.c: Include record-full.h.
10870 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10871 * i386-tdep.c: Include record-full.h.
10872 * infrun.c: Include record-full.h.
10873 * linux-record.c: Include record-full.h.
10874 * moxie-tdep.c: Include record-full.h.
10875 * record-full.c: Include record-full.h.
10876 Change module comment.
10877 (set_record_full_cmdlist): New.
10878 (show_record_full_cmdlist): New.
10879 (record_full_cmdlist): New.
10880 (record_goto_insn): New declaration.
10881 (record_save): New declaration.
10882 (record_check_insn_num): Change query string.
10883 (record_info): New.
10884 (record_delete): New.
10885 (record_is_replaying): New.
10886 (record_goto_entry): New.
10887 (record_goto_begin): New.
10888 (record_goto_end): New.
10889 (record_goto): New.
10890 (init_record_ops): Update.
10891 (init_record_core_ops): Update.
10892 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10893 (cmd_record_start): New.
10894 (set_record_insn_max_num): Moved from record.c
10895 (set_record_full_command): New.
10896 (show_record_full_command): New.
10897 (_initialize_record_full): New.
10898
10899 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10900
10901 * target.h (add_deprecated_target_alias): New.
10902 * target.c (add_deprecated_target_alias): New.
10903
10904 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10905
10906 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10907 and signal.h.
10908 (linux_supports_btrace): Add kernel and
10909 cpuid check.
10910 (kernel_supports_btrace): New function.
10911 (cpu_supports_btrace): New function.
10912 (intel_supports_btrace): New function.
10913
10914 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10915
10916 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10917 * remote.c: Include btrace.h.
10918 (struct btrace_target_info): New struct.
10919 (remote_supports_btrace): New function.
10920 (send_Qbtrace): New function.
10921 (remote_enable_btrace): New function.
10922 (remote_disable_btrace): New function.
10923 (remote_teardown_btrace): New function.
10924 (remote_read_btrace): New function.
10925 (init_remote_ops): Add btrace ops.
10926 (enum <unnamed>): Add btrace packets.
10927 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10928 (_initialize_remote): Add packet configuration for branch tracing.
10929
10930 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10931
10932 * features/btrace.dtd: New file.
10933 * Makefile.in (XMLFILES): Add btrace.dtd.
10934 * btrace.h (parse_xml_btrace): New declaration.
10935 * btrace.c: Include xml-support.h.
10936 (parse_xml_btrace): New function.
10937 (parse_xml_btrace_block): New function.
10938 (block_attributes): New struct.
10939 (btrace_attributes): New struct.
10940 (btrace_children): New struct.
10941 (btrace_elements): New struct.
10942
10943 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10944
10945 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10946 (amd64_linux_enable_btrace): New.
10947 (amd64_linux_disable_btrace): New.
10948 (amd64_linux_teardown_btrace): New.
10949 (_initialize_amd64_linux_nat): Initialize btrace ops.
10950 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10951 (i386_linux_enable_btrace): New.
10952 (i386_linux_disable_btrace): New.
10953 (i386_linux_teardown_btrace): New.
10954 (_initialize_i386_linux_nat): Initialize btrace ops.
10955 * config/i386/linux.mh: Add linux-btrace.o.
10956 * config/i386/linux64.mh: Add linux-btrace.o.
10957
10958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10959
10960 * common/linux_btrace.h: New file.
10961 * common/linux_btrace.c: New file.
10962 * Makefile.in (SFILES): Add btrace.c.
10963 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10964 (COMMON_OBS): Add btrace.o.
10965 (linux-btrace.o): New rule.
10966
10967 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * target.h: Include btrace.h.
10970 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10971 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10972 * target.c (target_supports_btrace): New function.
10973 (target_enable_btrace): New function.
10974 (target_disable_btrace): New function.
10975 (target_teardown_btrace): New function.
10976 (target_read_btrace): New function.
10977 * btrace.h: New file.
10978 * btrace.c: New file.
10979 * Makefile.in: Add btrace.c.
10980 * gdbthread.h: Include btrace.h.
10981 (struct thread_info): Add btrace field.
10982 * thread.c: Include btrace.h.
10983 (clear_thread_inferior_resources): Call target_teardown_btrace.
10984 * common/btrace-common.h: New file.
10985
10986 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10987
10988 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10989 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10990 kill_status to outer block.
10991
10992 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 Fix entry-values if the callee called a noreturn function.
10995 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10996 get_frame_address_in_block. Add new comment.
10997
10998 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10999
11000 Fix entry-values in C++ across CUs.
11001 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11002 lookup_minimal_symbol. Add a comment.
11003 * dwarf2read.c
11004 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11005 DW_AT_linkage_name.
11006
11007 2013-03-08 Yao Qi <yao@codesourcery.com>
11008
11009 * tracepoint.c (_initialize_tracepoint): Indent the code.
11010
11011 2013-03-08 Pedro Alves <palves@redhat.com>
11012
11013 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11014 (parse_find_args, find_command): Change type of pattern buffer
11015 locals to 'gdb_byte *'.
11016
11017 2013-03-08 Stan Shebs <stan@codesourcery.com>
11018 Hafiz Abid Qadeer <abidh@codesourcery.com>
11019
11020 * NEWS: Mention set and show trace-buffer-size commands.
11021 Mention new packet.
11022 * target.h (struct target_ops): New method
11023 to_set_trace_buffer_size.
11024 (target_set_trace_buffer_size): New macro.
11025 * target.c (update_current_target): Set up new method.
11026 * tracepoint.c (trace_buffer_size): New global.
11027 (start_tracing): Send it to the target.
11028 (set_trace_buffer_size): New function.
11029 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11030 * remote.c (remote_set_trace_buffer_size): New function.
11031 (_initialize_remote): Use it.
11032 (QTBuffer:size) New remote command.
11033 (PACKET_QTBuffer_size): New enum.
11034 (remote_protocol_features): Add an entry for
11035 PACKET_QTBuffer_size.
11036
11037 2013-03-08 Tom Tromey <tromey@redhat.com>
11038
11039 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11040 variable.
11041
11042 2013-03-07 Pedro Alves <palves@redhat.com>
11043
11044 * target.c (target_read_stralloc, target_fileio_read_alloc):
11045 *Cast pointer to 'gdb_byte *' in target call.
11046
11047 2013-03-07 Pedro Alves <palves@redhat.com>
11048
11049 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11050 call.
11051
11052 2013-03-07 Keith Seitz <keiths@redhat.com>
11053
11054 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11055 (trace_pass_command): Likewise.
11056 * cli/cli-cmds.c: Include cli/cli-utils.h.
11057 (source_command): Use skip-spaces.
11058 (disassemble_command): Likewise.
11059 * findcmd.c: Include cli/cli-utils.h.
11060 (parse_find_args): Use skip_spaces.
11061 * go32-nat.c: Include cli/cli-utils.h.
11062 (go32_sldt): Use skip_spaces.
11063 (go32_sgdt): Likewise.
11064 (go32_sidt): Likewise.
11065 (go32_pde): Likewise.
11066 (go32_pte): Likewise.
11067 (go32_pte_for_address): Likewise.
11068 * infcmd.c: Include cli/cli-utils.h.
11069 (registers_info): Use skip_spaces.
11070 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11071 (linux_info_proc): Likewise.
11072 * linux-thread-db.c: Include cli/cli-utils.h.
11073 (info_auto_load_libthread_db): Use skip_spaces_const.
11074 * m32r-rom.c: Include cli/cli-utils.h.
11075 (m32r_upload_command): Use skip_spaces.
11076 * maint.c: Include cli/cli-utils.h.
11077 (maintenance_translate_address): Use skip_spaces.
11078 * mi/mi-parse.c: Include cli/cli-utils.h.
11079 (mi_parse_argv): Use skip_spaces.
11080 (mi_parse): Likewise.
11081 * minsyms.c: Include cli/cli-utils.h.
11082 (msymbol_hash_iw): Use skip_spaces_const.
11083 * objc-lang.c: Include cli/cli-utils.h.
11084 (parse_selector): Use skip_spaces.
11085 (parse_method): Likewise.
11086 * python/python.c: Include cli/cli-utils.h.
11087 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11088 (python_command)[HAVE_PYTHON]: Likewise.
11089 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11090 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11091 (m32r_load): Use skip_spaces.
11092 * serial.c: Include cli/cli-utils.h.
11093 (serial_open): Use skip_spaces_const.
11094 * stack.c: Include cli/cli-utils.h.
11095 (parse_frame_specification_1): Use skip_spaces_const.
11096 * symfile.c: Include cli/cli-utils.h.
11097 (set_ext_lang_command): Use skip_spaces.
11098 * symtab.c: Include cli/cli-utils.h.
11099 (rbreak_command): Use skip_spaces.
11100 * thread.c (thread_name_command): Use skip_spaces.
11101 * tracepoint.c (validate_actionline): Use skip_spaces.
11102 (encode_actions_1): Likewise.
11103 (trace_find_range_command): Likewise.
11104 (trace_find_outside_command): Likewise.
11105 (trace_dump_actions): Likewise.
11106
11107 2013-03-07 Pedro Alves <palves@redhat.com>
11108
11109 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11110 * expprint.c (print_subexp_standard): Likewise.
11111 * utils.c (host_char_to_target): Likewise.
11112 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11113 * varobj.c (value_get_print_value): Change type of local to char*.
11114 Cast it gdb_byte * in call to language printer.
11115
11116 2013-03-07 Pedro Alves <palves@redhat.com>
11117
11118 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11119 gdb_byte *'.
11120 (make_wchar_iterator): Remove cast to char*.
11121 (wchar_iterate): Change type of local.
11122
11123 2013-03-07 Pedro Alves <palves@redhat.com>
11124
11125 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11126 for 'regcache->register_status'.
11127
11128 2013-03-07 Pedro Alves <palves@redhat.com>
11129
11130 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11131 int.
11132
11133 2013-03-07 Pedro Alves <palves@redhat.com>
11134
11135 * stap-probe.c (handle_stap_probe): Add cast to char*.
11136
11137 2013-03-07 Pedro Alves <palves@redhat.com>
11138
11139 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11140 RECORD_MSGRCV>: Pass a signed variable to
11141 regcache_raw_read_signed, instead of an unsigned one.
11142
11143 2013-03-07 Pedro Alves <palves@redhat.com>
11144
11145 * remote-notif.c (notif_debug): Change type to int.
11146 * remote-notif.h (notif_debug): Likewise.
11147
11148 2013-03-07 Pedro Alves <palves@redhat.com>
11149
11150 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11151
11152 2013-03-07 Pedro Alves <palves@redhat.com>
11153
11154 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11155 * remote.h (hex2bin, bin2hex): ... here.
11156 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11157
11158 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11159
11160 * utils.c (initialize_utils): Improve doc strings of "set/show
11161 width", "set/show height", and "set/show pagination".
11162
11163 2013-03-06 Keith Seitz <keiths@redhat.com>
11164
11165 * ax-gdb.c (gen_printf): Make FORMAT const.
11166 * ax-gdb.h (gen_printf): Likewise.
11167 * ax-general.c (ax_string): Make STR const.
11168 * ax.h (ax_string): Likewise.
11169
11170 2013-03-06 Doug Evans <dje@google.com>
11171
11172 * elfread.c (elf_symfile_read): Move debugging printf to more
11173 logical location.
11174
11175 2013-03-06 Pedro Alves <palves@redhat.com>
11176
11177 * python/py-utils.c (target_string_to_unicode): Delete function.
11178 * python/python-internal.h (target_string_to_unicode): Delete
11179 declaration.
11180
11181 2013-03-06 Pierre Muller <muller@sourceware.org>
11182
11183 * linespec.c (get_current_search_block): ARI fix, use (void)
11184 for empty parameter list.
11185
11186 2013-03-05 Doug Evans <dje@google.com>
11187
11188 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11189 of old ada_lookup_symbol_list. In !full_search case, don't
11190 search superblocks.
11191 (ada_lookup_symbol_list): Delete arg full_search, all callers
11192 updated. Call ada_lookup_symbol_list_worker.
11193 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11194 * ada-lang.h (ada_lookup_symbol_list): Update.
11195 * language.h (language_defn): Update comment for
11196 la_iterate_over_symbols.
11197 * linespec.c (iterate_over_file_blocks): New function.
11198 (iterate_over_all_matching_symtabs): Call it.
11199 (lookup_prefix_sym): Ditto.
11200 (get_current_search_block): New function.
11201 (get_search_block): Delete.
11202 (find_label_symbols): Call get_current_search_block.
11203 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11204 * symtab.c (iterate_over_symbols): Don't search superblocks.
11205
11206 2013-03-05 Yao Qi <yao@codesourcery.com>
11207
11208 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11209 parameter VAR's type from "unsigned int" to "int".
11210 * command.h (var_zuinteger_unlimited): Update its comments.
11211 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11212
11213 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11214
11215 * NEWS: Mention new target x86_64-*-cygwin*.
11216
11217 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11218
11219 * configure.host: Add x86_64-*-cygwin* as host.
11220 * configure.tgt: Add x86_64-*-cygwin* as target.
11221 * config/i386/cygwin64.mh: New file.
11222
11223 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11224
11225 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11226
11227 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11228
11229 * linespec.c (struct linespec_canonical_name): New.
11230 (struct linespec_state): Change canonical_names type to it.
11231 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11232 xrealloc element size. Initialize the different CANONICAL fields.
11233 (canonical_to_fullform): New.
11234 (filter_results): Use it. Add variables canonical, fullform and
11235 cleanup.
11236 (struct decode_line_2_item, decode_line_2_compare_items): New.
11237 (decode_line_2): Remove variables iter and item_names, add variables
11238 items and items_count. Modify the code for these new variables.
11239
11240 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11241
11242 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11243 calling do_cleanup.
11244
11245 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11246
11247 * tracepoint.c (build_traceframe_info): Add code for byte order.
11248
11249 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11250
11251 * v850-tdep.c: (v850e2_register_name): Revise system register
11252 names to match current V850E2M architecture specifications.
11253 Update register number enum comments too.
11254
11255 2013-03-01 Jiong Wang <jiwang@tilera.com>
11256 Pedro Alves <palves@redhat.com>
11257
11258 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11259 to END_ADDR.
11260 (tilegx_skip_prologue): Limit prologue analysis to section end.
11261
11262 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11263
11264 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11265 use it.
11266
11267 2013-03-01 Pedro Alves <palves@redhat.com>
11268
11269 Use gdb_byte for bytes from the program being debugged.
11270
11271 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11272 Change type of local 'buf' to gdb_byte.
11273 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11274 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11275 * cris-tdep.c (cris_sigcontext_addr)
11276 (cris_sigtramp_frame_unwind_cache): Likewise.
11277 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11278 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11279 Likewise.
11280 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11281 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11282 (hppa32_hpux_search_dummy_call_sequence)
11283 (hppa_hpux_supply_save_state): Likewise.
11284 * hppa-linux-tdep.c (insns_match_pattern)
11285 (hppa_linux_find_global_pointer): Likewise.
11286 * hppa-tdep.c (hppa_in_function_epilogue_p)
11287 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11288 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11289 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11290 (i386fbsd_collect_uthread): Likewise.
11291 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11292 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11293 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11294 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11295 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11296 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11297 (ia64_libunwind_frame_prev_register)
11298 (ia64_libunwind_sigtramp_frame_this_id)
11299 (ia64_find_global_pointer_from_dynamic_section)
11300 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11301 (ia64_unwind_pc): Likewise.
11302 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11303 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11304 (m68hc11_extract_return_value): Likewise.
11305 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11306 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11307 (mep_get_insn, mep_push_dummy_call): Likewise.
11308 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11309 (mips_linux_in_dynsym_stub): Likewise.
11310 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11311 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11312 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11313 to gdb_byte.
11314 * remote-mips.c (mips_set_register): Likewise.
11315 * remote-sim.c (gdbsim_fetch_register): Likewise.
11316 * score-tdep.c (score7_fetch_inst): Change type of parameter
11317 'memblock' and local 'buf' to gdb_byte.
11318 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11319 Change type of local 'buf' to gdb_byte. Adjust.
11320 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11321 to gdb_byte**.
11322 (score7_analyze_prologue): Change type of 'memblock' and
11323 'memblock_ptr' locals to gdb_byte*.
11324 * sh64-tdep.c (sh64_extract_return_value)
11325 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11326 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11327 * solib-pa64.c (pa64_solib_create_inferior_hook)
11328 (pa64_open_symbol_file_object): Remove local 'buf'.
11329 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11330 (som_open_symbol_file_object): Likewise.
11331 * solib-spu.c (spu_current_sos): Likewise.
11332 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11333 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11334 (spu_store_registers): Likewise.
11335 * target.c (debug_print_register): Likewise.
11336 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11337 * xstormy16-tdep.c (xstormy16_store_return_value)
11338 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11339 (xstormy16_find_jmp_table_entry): Likewise.
11340
11341 2013-03-01 Jiong Wang <jiwang@tilera.com>
11342
11343 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11344 (tilegx_gdbarch_init): Install it.
11345
11346 2013-02-28 Tom Tromey <tromey@redhat.com>
11347
11348 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11349 PyLong_Check.
11350
11351 2013-02-28 Doug Evans <dje@google.com>
11352
11353 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11354 * python/python.c (gdbpy_find_pc_line): Ditto.
11355
11356 2013-02-28 Tom Tromey <tromey@redhat.com>
11357
11358 * contrib/excheck.py: New file.
11359 * contrib/exsummary.py: New file.
11360 * contrib/gcc-with-excheck: New file.
11361
11362 2013-02-28 Tom Tromey <tromey@redhat.com>
11363
11364 * python/python.c (gdbpy_print_stack): Call begin_line and
11365 fprintf_filtered inside TRY_CATCH.
11366
11367 2013-02-28 Tom Tromey <tromey@redhat.com>
11368
11369 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11370 inside TRY_CATCH.
11371
11372 2013-02-28 Tom Tromey <tromey@redhat.com>
11373
11374 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11375 frame_object_to_frame_info inside TRY_CATCH.
11376
11377 2013-02-28 Tom Tromey <tromey@redhat.com>
11378
11379 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11380 TRY_CATCH.
11381
11382 2013-02-28 Tom Tromey <tromey@redhat.com>
11383
11384 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11385
11386 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11387
11388 * windows-nat.c: Throughout, fix format strings and casts of
11389 printf-like functions to avoid type related warnings on all
11390 platforms.
11391 (handle_output_debug_string): Fetch context information address
11392 from debug string using string_to_core_addr.
11393
11394 2013-02-27 Jiong Wang <jiwang@tilera.com>
11395
11396 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11397 * regformats/reg-tilegx32.dat: New.
11398
11399 2013-02-27 Jiong Wang <jiwang@tilera.com>
11400
11401 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11402
11403 2013-02-27 Jiong Wang <jiwang@tilera.com>
11404
11405 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11406
11407 2013-02-27 Yao Qi <yao@codesourcery.com>
11408 Pedro Alves <palves@redhat.com>
11409
11410 * tracepoint.c (tfile_trace_find): For tfind
11411 pc/tp/range/outside, look for the next trace frame instead of
11412 always starting from frame 0.
11413
11414 2013-02-26 Anthony Green <green@moxielogic.com>
11415
11416 * configure.tgt: Add support for moxie-*-rtems* target.
11417
11418 2013-02-25 Pedro Alves <palves@redhat.com>
11419
11420 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11421 warning text.
11422
11423 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11424
11425 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11426 if $fp is used as the virtual frame pointer.
11427
11428 2013-02-23 Alan Modra <amodra@gmail.com>
11429
11430 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11431 symbol size.
11432 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11433 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11434 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11435 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11436
11437 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11438
11439 Code cleanup.
11440 * elfread.c (build_id_bfd_get): Make the return type const.
11441 (build_id_verify): Make the check parameter const.
11442 (build_id_to_debug_filename): Make the build_id parameter and variable
11443 data const.
11444 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11445
11446 2013-02-21 Alan Modra <amodra@gmail.com>
11447
11448 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11449
11450 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11451
11452 Add a new method 'disassemble' to gdb.Architecture class.
11453 * python/py-arch.c (archpy_disassmble): Implementation of the
11454 new method gdb.Architecture.disassemble.
11455 (arch_object_methods): Add entry for the new method.
11456
11457 2013-02-20 Jiong Wang <jiwang@tilera.com>
11458
11459 * MAINTAINERS (Write After Approval): Add myself to the list.
11460
11461 2013-02-19 Pedro Alves <palves@redhat.com>
11462
11463 Garbage collect 'struct monitor_ops'::load_routine.
11464
11465 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11466 * monitor.c (monitor_load): No longer call
11467 current_monitor->load_routine.
11468 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11469 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11470 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11471
11472 2013-02-19 Pedro Alves <palves@redhat.com>
11473
11474 PR gdb/15161
11475
11476 Harmonize with generic_load.
11477
11478 * monitor.c: Include "readline/readline.h".
11479 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11480 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11481 long/strtol for the 'load_offset' local. Error out if no argument
11482 is given or if too many arguments are given. Tilde expand the
11483 passed in file name.
11484
11485 2013-02-19 Kai Tietz <ktietz@redhat.com>
11486
11487 PR gdb/15161
11488 * symfile.c (load_section_data): Change type of load_offset
11489 to CORE_ADDR.
11490 (generic_load): User strtoulst instead of strtoul for conversion
11491 of load_offset.
11492
11493 2013-02-19 Jiong Wang <jiwang@tilera.com>
11494
11495 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11496 for return address, "lr" register, saved on stack.
11497 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11498 after we invoke tilegx_analyze_prologue.
11499
11500 2013-02-19 Jiong Wang <jiwang@tilera.com>
11501
11502 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11503
11504 2013-02-19 Jiong Wang <jiwang@tilera.com>
11505
11506 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11507
11508 2013-02-19 Jiong Wang <jiwang@tilera.com>
11509
11510 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11511 (tilegx_write_pc): New function.
11512 (tilegx_cannot_reference_register): Return zero if REGNO
11513 is TILEGX_FAULTNUM_REGNUM.
11514 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11515 (tilegx_register_name): Add handling of "faultnum" register.
11516 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11517 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11518 handling of TILEGX_FAULTNUM_REGNUM.
11519 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11520
11521 2013-02-19 Jiong Wang <jiwang@tilera.com>
11522
11523 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11524 should be aligned to 64bit.
11525
11526 2013-02-19 Kai Tietz <ktietz@redhat.com>
11527
11528 * windows-nat.c (windows_xfer_memory): Fix debug-output
11529 for LLP64.
11530
11531 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11532
11533 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11534 Don't check DSP register number if HAVE_DSP is not set.
11535
11536 2013-02-19 Alan Modra <amodra@gmail.com>
11537
11538 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11539 throughout file instead.
11540 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11541 Don't xmalloc return value.
11542 (build_id_verify): Similarly. Don't xfree.
11543 (build_id_to_debug_filename): Update.
11544 (find_separate_debug_file_by_buildid): Update, don't xfree.
11545
11546 2013-02-18 Tom Tromey <tromey@redhat.com>
11547
11548 PR gdb/15102:
11549 * dwarf2read.c (read_subrange_type): Use result of
11550 'check_typedef'.
11551
11552 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11553
11554 * frame.c: Remove one extra white space after #include
11555 directive.
11556
11557 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11558
11559 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11560
11561 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11562
11563 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11564 and dir commands into an if block.
11565
11566 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11567
11568 * python/py-breakpoint (struct pybp_code): Use int instead of
11569 enum type_code.
11570
11571 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11572 Hafiz Abid Qadeer <abidh@codesourcery.com>
11573
11574 * NEWS: Mention new field "trace-file".
11575 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11576 (tfile_open): Record the trace file's filename in the trace
11577 status.
11578 (tfile_files_info): Mention the name of the trace file.
11579 Check the "filename" field explicitely.
11580 (trace_status_command): Explicitely check "filename" field.
11581 (trace_find_command): Ditto.
11582 (trace_find_pc_command): Ditto.
11583 (trace_find_tracepoint_command): Ditto.
11584 (trace_find_line_command): Ditto.
11585 (trace_find_range_command): Ditto.
11586 (trace_find_outside_command): Ditto.
11587 * tracepoint.h (struct trace_status) <from_file>: Rename it
11588 to "filename" and make it hold the trace file's filename
11589 instead of a boolean.
11590 * remote.c (remote_get_trace_status): Initialize "filename"
11591 field with NULL instead of 0.
11592
11593 2013-02-15 Yao Qi <yao@codesourcery.com>
11594
11595 * remote.c: Fix a typo.
11596
11597 2013-02-14 Pierre Muller <muller@sourceware.org>
11598
11599 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11600
11601 2013-02-14 Pedro Alves <palves@redhat.com>
11602
11603 * utils.c (savestring): Don't #undef it. Move function to
11604 common/common-utils.c.
11605 * common/common-utils.c: Include gdb_string.h.
11606 (savestring): Move here from utils.c.
11607 * common/common-utils.h (savestring): Declare.
11608
11609 2013-02-14 Pedro Alves <palves@redhat.com>
11610
11611 * utils.c (savestring): Rename parameter 'size' to 'len'.
11612
11613 2013-02-14 Pedro Alves <palves@redhat.com>
11614 Yufeng Zhang <yufeng.zhang@arm.com>
11615
11616 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11617 (aarch64_inferior_data, struct aarch64_inferior_data):
11618 Delete.
11619 (struct aarch64_process_info): New.
11620 (aarch64_process_list): New global.
11621 (aarch64_find_process_pid, aarch64_add_process)
11622 (aarch64_process_info_get): New functions.
11623 (aarch64_inferior_data_get): Delete.
11624 (aarch64_process_info_get): New function.
11625 (aarch64_forget_process): New function.
11626 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11627 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11628 aarch64_get_debug_reg_state.
11629 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11630 instead of linux_nat_iterate_watchpoint_lwps.
11631 (aarch64_linux_new_fork): New function.
11632 (aarch64_linux_child_post_startup_inferior): Use
11633 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11634 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11635 (aarch64_linux_remove_hw_breakpoint)
11636 (aarch64_handle_aligned_watchpoint)
11637 (aarch64_handle_unaligned_watchpoint)
11638 (aarch64_linux_insert_watchpoint)
11639 (aarch64_linux_remove_watchpoint)
11640 (aarch64_linux_stopped_data_address): Adjust to pass the current
11641 process id to aarch64_debug_reg_state.
11642 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11643 linux_nat_new_fork hook, and aarch64_forget_process as
11644 linux_nat_forget_process hook; remove the call to
11645 register_inferior_data_with_cleanup.
11646
11647 2013-02-14 Pedro Alves <palves@redhat.com>
11648
11649 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11650 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11651 lval_memory.
11652
11653 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11654 Hafiz Abid Qadeer <abidh@codesourcery.com>
11655
11656 * tracepoint.h (validate_trace_state_variable_name): Declare.
11657 * tracepoint.c (validate_trace_state_variable_name): New.
11658 (trace_variable_command): Parse the trace state variable's name
11659 without using parse_expression. Do several validations.
11660 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11661 trace state variable's name with parse_expression. Validate it.
11662
11663 2013-02-14 Yao Qi <yao@codesourcery.com>
11664
11665 * infcmd.c (breakpoint_proceeded): Remove it.
11666
11667 2013-02-14 Yao Qi <yao@codesourcery.com>
11668
11669 * tracepoint.c (end_actions_pseudocommand): Make it static.
11670 (while_stepping_pseudocommand): Likewise.
11671 * tracepoint.h (end_actions_pseudocommand): Remove the
11672 declaration.
11673 (while_stepping_pseudocommand): Likewise.
11674
11675 2013-02-14 Yao Qi <yao@codesourcery.com>
11676
11677 * cli/cli-decode.c (help_cmd): Remove the declaration of
11678 "cmdlist".
11679 (help_all): Likewise.
11680
11681 2013-02-13 Pedro Alves <palves@redhat.com>
11682
11683 * amd64-linux-nat.c (update_debug_registers_callback):
11684 Update comment.
11685 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11686 iterate_over_lwps.
11687 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11688 i386_debug_reg_state.
11689 (amd64_linux_new_fork): New function.
11690 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11691 linux_nat_new_fork hook, and i386_forget_process as
11692 linux_nat_forget_process hook.
11693 * i386-linux-nat.c (update_debug_registers_callback):
11694 Update comment.
11695 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11696 iterate_over_lwps.
11697 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11698 i386_debug_reg_state.
11699 (i386_linux_new_fork): New function.
11700 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11701 linux_nat_new_fork hook, and i386_forget_process as
11702 linux_nat_forget_process hook.
11703 * i386-nat.c (i386_init_dregs): Delete.
11704 (i386_inferior_data, struct i386_inferior_data):
11705 Delete.
11706 (struct i386_process_info): New.
11707 (i386_process_list): New global.
11708 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11709 New functions.
11710 (i386_inferior_data_get): Delete.
11711 (i386_process_info_get): New function.
11712 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11713 (i386_forget_process): New function.
11714 (i386_cleanup_dregs): Rewrite.
11715 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11716 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11717 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11718 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11719 to i386_debug_reg_state.
11720 (i386_use_watchpoints): Don't register inferior data.
11721 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11722 adjust comment.
11723 (i386_forget_process): Declare.
11724 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11725 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11726 New static globals.
11727 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11728 (add_initial_lwp): New, factored out from ...
11729 (add_lwp): ... this. Don't check the number of lwps before
11730 calling linux_nat_new_thread.
11731 (linux_nat_iterate_watchpoint_lwps): Delete.
11732 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11733 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11734 forks and vforks.
11735 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11736 initial lwp.
11737 (linux_nat_kill, linux_nat_mourn_inferior): Call
11738 linux_nat_forget_process.
11739 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11740 (linux_nat_forget_process): New functions.
11741 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11742 type.
11743 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11744 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11745 types.
11746 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11747 (linux_nat_forget_process): New declarations.
11748
11749 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11750 (amd64fbsd_mourn_inferior): New function.
11751 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11752 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11753
11754 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11755
11756 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11757 Adding _().
11758
11759 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11760
11761 * aarch64-linux-nat.c (debug_reg_change_callback)
11762 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11763 %s and phex().
11764
11765 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11766
11767 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11768 with LONGEST.
11769
11770 2013-02-13 Pedro Alves <palves@redhat.com>
11771 Hafiz Abid Qadeer <abidh@codesourcery.com>
11772
11773 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11774
11775 2013-02-12 Tom Tromey <tromey@redhat.com>
11776
11777 PR symtab/11464:
11778 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11779 NAME return.
11780 (classify_inner_name): Remove 'first_name' argument, add
11781 'context'. Remove unused variable.
11782 (yylex): Explicitly maintain the context type. Exit loop earlier
11783 if NAME result is seen.
11784
11785 2013-02-12 Pedro Alves <palves@redhat.com>
11786
11787 * amd64-darwin-tdep.c: Add (C) after Copyright.
11788 * cli/cli-cmds.h: Ditto.
11789 * cli/cli-decode.c: Ditto.
11790 * cli/cli-decode.h: Ditto.
11791 * cli/cli-dump.c: Ditto.
11792 * cli/cli-dump.h: Ditto.
11793 * cli/cli-interp.c: Ditto.
11794 * cli/cli-logging.c: Ditto.
11795 * cli/cli-script.c: Ditto.
11796 * cli/cli-script.h: Ditto.
11797 * cli/cli-setshow.c: Ditto.
11798 * cli/cli-setshow.h: Ditto.
11799 * cli/cli-utils.c: Ditto.
11800 * cli/cli-utils.h: Ditto.
11801 * config/alpha/nm-osf3.h: Ditto.
11802 * config/djgpp/djconfig.sh: Ditto.
11803 * config/i386/nm-fbsd.h: Ditto.
11804 * config/i386/nm-i386gnu.h: Ditto.
11805 * config/nm-linux.h: Ditto.
11806 * config/nm-nto.h: Ditto.
11807 * config/rs6000/nm-rs6000.h: Ditto.
11808 * config/sparc/nm-sol2.h: Ditto.
11809 * darwin-nat-info.c: Ditto.
11810 * dfp.c: Ditto.
11811 * dfp.h: Ditto.
11812 * gdb-demangle.h: Ditto.
11813 * i386-darwin-nat.c: Ditto.
11814 * i386-darwin-tdep.c: Ditto.
11815 * linux-fork.h: Ditto.
11816 * m32c-tdep.c: Ditto.
11817 * microblaze-linux-tdep.c: Ditto.
11818 * microblaze-rom.c: Ditto.
11819 * microblaze-tdep.c: Ditto.
11820 * microblaze-tdep.h: Ditto.
11821 * mips-linux-tdep.h: Ditto.
11822 * ppc-ravenscar-thread.c: Ditto.
11823 * ppc-ravenscar-thread.h: Ditto.
11824 * prologue-value.c: Ditto.
11825 * prologue-value.h: Ditto.
11826 * ravenscar-thread.c: Ditto.
11827 * ravenscar-thread.h: Ditto.
11828 * sparc-ravenscar-thread.c: Ditto.
11829 * sparc-ravenscar-thread.h: Ditto.
11830 * tilegx-linux-tdep.c: Ditto.
11831 * unwind_stop_reasons.def: Ditto.
11832 * windows-nat.h: Ditto.
11833 * xtensa-linux-tdep.c: Ditto.
11834 * xtensa-xtregs.c: Ditto.
11835 * regformats/regdat.sh: Ditto.
11836 * regformats/regdef.h: Ditto.
11837
11838 2013-02-12 Pedro Alves <palves@redhat.com>
11839
11840 * break-catch-sig.c: Update copyright years.
11841
11842 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11843
11844 Add support for a destructor for ui_out data and use it to
11845 provide a ui_out destructor.
11846 * ui-out.h: Declare the new ui_out destructor.
11847 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11848 * ui-out.c (default_data_destroy): Add a default data destructor
11849 which does nothing.
11850 (default_ui_out_impl): Set the new data_destroy field to
11851 default_data_destroy
11852 (uo_data_destroy): Local function which invokes the data
11853 destructor if present.
11854 (clear_table): Local function which clears the table data of a
11855 ui_out object.
11856 (ui_out_destroy): Public function which frees a ui_out object.
11857 (ui_out_table_end): Use the new clear_table function.
11858 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11859 NULL.
11860 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11861 to NULL.
11862
11863 2013-02-11 Doug Evans <dje@google.com>
11864
11865 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11866 (printf_decfloat): New function. Broken out from ui_printf.
11867 Remove unnecessary code to shift the entire format string down.
11868 (printf_pointer): New function.
11869 (ui_printf): Code to print C strings, wide C strings, decfloats,
11870 and pointers moved to separate functions.
11871
11872 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11873
11874 * valops.c (value_assign): Handling bitfield offset in
11875 `lval_internalvar_component' case.
11876
11877 2013-02-08 Doug Evans <dje@google.com>
11878
11879 * common/format.c (parse_format_string): Fix whitespace.
11880
11881 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11882
11883 * stack.c (return_command): Work around uninitialized variable
11884 warning.
11885
11886 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11887
11888 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11889 number of the registers from 36 to 34.
11890
11891 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11892
11893 * NEWS: Mention new AArch64 native and target support.
11894
11895 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11896
11897 * MAINTAINERS (Write After Approval): Add myself.
11898
11899 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11900 Marcus Shawcroft <marcus.shawcroft@arm.com>
11901 Nigel Stephens <nigel.stephens@arm.com>
11902 Yufeng Zhang <yufeng.zhang@arm.com>
11903
11904 * aarch64-linux-nat.c: New file.
11905 * config/aarch64/linux.mh: New file.
11906 * configure.host: Add AArch64.
11907 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11908
11909 2013-02-07 Doug Evans <dje@google.com>
11910
11911 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11912 disassemble command.
11913
11914 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11915
11916 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11917 set_gdbarch_fetch_tls_load_module_address.
11918
11919 2013-02-06 David S. Miller <davem@davemloft.net>
11920
11921 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11922 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11923 * value.c (struct_return_convention): New function.
11924 (using_struct_return): Implement in terms of struct_return_convention.
11925 * value.h (struct_return_convention): Declare.
11926 * stack.c (return_command): Allow successful overriding of the return
11927 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11928
11929 2013-02-06 Tom Tromey <tromey@redhat.com>
11930
11931 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11932 outside of TRY_CATCH.
11933
11934 2013-02-06 Yao Qi <yao@codesourcery.com>
11935
11936 * mi/mi-interp.c: Include "tracepoint.h".
11937 (mi_tsv_modified): Declare.
11938 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11939 (mi_interpreter_init): Call observer_attach_tsv_modified.
11940 (mi_tsv_modified): New.
11941 (mi_tsv_created, mi_tsv_deleted): Update.
11942 * tracepoint.c (trace_variable_command): Call
11943 observer_notify_tsv_modified if the initial value of tsv is
11944 changed.
11945 (delete_trace_state_variable): Call
11946 observer_notify_tsv_deleted earlier.
11947 (trace_variable_command): Caller update.
11948 (create_tsv_from_upload): Likewise.
11949 * observer.sh: Declare "struct trace_state_variable".
11950
11951 * NEWS: Mention the new MI notification "=tsv-modified".
11952
11953 2013-02-05 Doug Evans <dje@google.com>
11954
11955 * completer.c (location_completer): Fix typo in comment.
11956
11957 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11958
11959 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11960 ADDRESS sorted.
11961
11962 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11963
11964 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11965 Refactor if statement to avoid trailing || operator.
11966
11967 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11968
11969 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11970
11971 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11972
11973 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11974 * configure.host: Add powerpc*-*-freebsd* target.
11975 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11976 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11977 * config/powerpc/fbsd.mh: New file.
11978
11979 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11980 Denys Vlasenko <dvlasenk@redhat.com>
11981 Pedro Alves <palves@redhat.com>
11982
11983 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11984 (struct elf_internal_linux_prpsinfo): Forward declare.
11985 * gdbarch.h, gdbarch.c: Regenerate.
11986 * linux-tdep.c: Include `cli/cli-utils.h'.
11987 (linux_fill_prpsinfo): New function.
11988 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11989 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11990 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11991 depending on gdbarch pointer bitness.
11992 * ppc-linux-tdep.c: Include elf-bfd.h.
11993 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11994 on 32-bit.
11995
11996 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11997 Marcus Shawcroft <marcus.shawcroft@arm.com>
11998 Nigel Stephens <nigel.stephens@arm.com>
11999 Yufeng Zhang <yufeng.zhang@arm.com>
12000
12001 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12002
12003 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12004 Marcus Shawcroft <marcus.shawcroft@arm.com>
12005 Nigel Stephens <nigel.stephens@arm.com>
12006 Yufeng Zhang <yufeng.zhang@arm.com>
12007
12008 * aarch64-newlib-tdep.c: New file.
12009 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12010 aarch64*-*-elf.
12011 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12012 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12013 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12014 * osabi.c (gdb_osabi_names): Add "Newlib".
12015
12016 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12017 Marcus Shawcroft <marcus.shawcroft@arm.com>
12018 Nigel Stephens <nigel.stephens@arm.com>
12019 Yufeng Zhang <yufeng.zhang@arm.com>
12020
12021 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12022 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12023 * aarch64-linux-tdep.c: New file.
12024 * aarch64-linux-tdep.h: New file.
12025 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12026 * configure.tgt: Add aarch64-none-linux-gnu.
12027
12028 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12029 Marcus Shawcroft <marcus.shawcroft@arm.com>
12030 Nigel Stephens <nigel.stephens@arm.com>
12031 Yufeng Zhang <yufeng.zhang@arm.com>
12032
12033 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12034 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12035 (ALLDEPFILES): Add aarch64-tdep.c.
12036 * aarch64-tdep.c: New file.
12037 * aarch64-tdep.h: New file.
12038 * configure.tgt: Add AArch64.
12039 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12040 (aarch64-expedite): New definition.
12041 * features/aarch64-core.xml: New file.
12042 * features/aarch64-fpu.xml: New file.
12043 * features/aarch64-without-fpu.c: New file (generated).
12044 * features/aarch64-without-fpu.xml: New file.
12045 * features/aarch64.c: New file (generated).
12046 * features/aarch64.xml: New file.
12047 * regformats/aarch64-without-fpu.dat: New file (generated).
12048 * regformats/aarch64.dat: New file (generated).
12049
12050 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12051
12052 * contrib/expect-read1.c: New file.
12053 * contrib/expect-read1.sh: New file.
12054
12055 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 * dwarf2read.c (file_file_name): New function with code from
12058 file_full_name.
12059 (file_full_name): Move most of the code to file_file_name.
12060 (macro_start_file): Rename variable full_name to file_name and use
12061 file_file_name for it. Add comp_dir parameter to new_macro_table.
12062 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12063 macro_source_file->filename access by macro_source_fullname call.
12064 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12065 caller.
12066 * macrotab.c (struct macro_table): New field comp_dir.
12067 (macro_include): New variables link_fullname and source_fullname.
12068 Replace any macro_source_file->filename access by macro_source_fullname
12069 call.
12070 (macro_lookup_inclusion): Remove the partial filenames checking code.
12071 (check_for_redefinition): New variables source_fullname and
12072 found_key_fullname. Replace any macro_source_file->filename access by
12073 macro_source_fullname call.
12074 (macro_undef): New variables source_fullname and key_fullname. Replace
12075 any macro_source_file->filename access by macro_source_fullname call.
12076 (macro_lookup_definition): New variables retval and source_fullname.
12077 Replace any macro_source_file->filename access by macro_source_fullname
12078 call.
12079 (foreach_macro): New variable key_fullname. Replace any
12080 macro_source_file->filename access by macro_source_fullname call.
12081 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12082 macro_source_file->filename access by macro_source_fullname call.
12083 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12084 (macro_source_fullname): New function.
12085 * macrotab.h (struct macro_source_file): Extent the filename field
12086 comment.
12087 (new_macro_table): New parameter comp_dir, add a comment for it.
12088 (macro_source_fullname): new declaration.
12089
12090 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12091
12092 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12093 this_real_name to outer block. Use it also for
12094 compare_filenames_for_search.
12095 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12096 with dw2_get_real_path for file_matcher, considering also
12097 BASENAMES_MAY_DIFFER.
12098 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12099
12100 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12101
12102 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12103 to the file_matcher parameter. Pass 0 to it.
12104 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12105 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12106 NULL psymtab_to_fullname result.
12107 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12108 an expected filename instead.
12109 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12110 file_matcher parameter. Call also psymtab_to_fullname, after newly
12111 considering BASENAMES_MAY_DIFFER.
12112 * source.c (rewrite_source_path): Remove static.
12113 * source.h (rewrite_source_path): New declaration.
12114 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12115 the expand_symtabs_matching field. Comment it.
12116 * symtab.c (file_matches): New function comment. Add parameter
12117 basenames, implement it.
12118 (search_symbols_file_matches): Add basenames parameter. Update the
12119 file_matches caller.
12120 (search_symbols): Match FILES also against symtab_to_fullname.
12121 Optimize it for BASENAMES_MAY_DIFFER.
12122
12123 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12124
12125 * source.c (print_source_lines_base): Print for TUI also "fullname".
12126 * tui/tui-data.c (init_content_element): Change tui_locator_element
12127 field to full_name.
12128 * tui/tui-data.h (struct tui_locator_element): Likewise.
12129 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12130 tui_update_locator_filename calls to tui_update_locator_fullname.
12131 Replace symtab->filename refererence by symtab_to_fullname call.
12132 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12133 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12134 field to full_name. Replace symtab->filename refererence by
12135 symtab_to_fullname call.
12136 (tui_show_symtab_source): Rename parameter to fullname. Change
12137 tui_locator_element field to full_name.
12138 * tui/tui-stack.c: Include source.h.
12139 (tui_set_locator_filename): Rename the declaration to ...
12140 (tui_set_locator_fullname): ... here. Rename its parameter to
12141 fullname, updates its comment.
12142 (tui_set_locator_info): Rename its parameter to fullname.
12143 (tui_set_locator_filename): Rename the definition to ...
12144 (tui_set_locator_fullname): ... here. Rename its parameter to
12145 fullname, updates its comment. Change tui_locator_element field to
12146 full_name.
12147 (tui_set_locator_info): Rename its parameter to fullname.
12148 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12149 (tui_update_locator_filename): Rename to ...
12150 (tui_update_locator_fullname): ... here. Rename callee to
12151 tui_set_locator_fullname.
12152 (tui_show_frame_info): Replace symtab->filename refererence by
12153 symtab_to_fullname call.
12154 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12155 (tui_update_locator_fullname): ... here.
12156 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12157 tui_update_locator_fullname. Replace symtab->filename refererence by
12158 symtab_to_fullname call.
12159 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12160 Rename the callee to tui_update_locator_fullname.
12161 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12162
12163 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12164
12165 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12166 by symtab_to_filename_for_display calls.
12167 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12168 (clear_command): New variable sal_fullname, initialize it. Replace
12169 compare_filenames_for_search by filename_cmp with sal_fullname.
12170 (say_where, update_static_tracepoint): Replace symtab->filename
12171 refererences by symtab_to_filename_for_display calls.
12172 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12173 Likewise.
12174 * dwarf2read.c: Include source.h.
12175 (fixup_go_packaging): Replace symtab->filename refererences by
12176 symtab_to_filename_for_display calls.
12177 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12178 Replace symtab->filename refererences by symtab_to_filename_for_display
12179 calls.
12180 (create_sals_line_offset, convert_linespec_to_sals): New variable
12181 fullname, initialize it, replace symtab->filename reference by the
12182 variable.
12183 * linux-fork.c: Include source.h.
12184 (info_checkpoints_command): Replace symtab->filename refererences by
12185 symtab_to_filename_for_display calls.
12186 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12187 by symtab_to_filename_for_display calls.
12188 * mdebugread.c: Include source.h.
12189 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12190 symtab_to_filename_for_display calls.
12191 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12192 (mi_cmd_file_list_exec_source_files): Likewise.
12193 * printcmd.c: Include source.h.
12194 (build_address_symbolic): Replace symtab->filename refererences by
12195 symtab_to_filename_for_display calls.
12196 * psymtab.c (partial_map_symtabs_matching_filename)
12197 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12198 with psymtab_to_fullname.
12199 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12200 by symtab_to_filename_for_display calls.
12201 (stpy_get_filename): New variable filename, initialize it, use instead
12202 of symtab->filename refererences.
12203 (salpy_str): Make variable filename const char *. Replace
12204 symtab->filename refererences by symtab_to_filename_for_display calls.
12205 * skip.c: Include source.h and filenames.h.
12206 (skip_file_command): Remove const from the symtab variable. Replace
12207 symtab->filename refererences by symtab_to_fullname call.
12208 (function_name_is_marked_for_skip): New variables searched_for_fullname
12209 and fullname. Use them to search also with symtab's fullname.
12210 * source.c (find_source_lines): Replace symtab->filename refererences
12211 by symtab_to_filename_for_display calls.
12212 (print_source_lines_base): New variable filename, use it instead of
12213 symtab->filename. Replace symtab->filename refererences by
12214 symtab_to_filename_for_display calls.
12215 (line_info, forward_search_command): Replace symtab->filename
12216 refererences by symtab_to_filename_for_display calls.
12217 (reverse_search_command): Replace symtab->filename refererences by
12218 symtab_to_filename_for_display calls. New variable filename for it.
12219 * stack.c (frame_info): Likewise.
12220 * symmisc.c: Include source.h.
12221 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12222 (maintenance_info_symtabs): Replace symtab->filename refererences by
12223 symtab_to_filename_for_display calls.
12224 * symtab.c (iterate_over_some_symtabs): Call
12225 compare_filenames_for_search also with symtab_to_fullname.
12226 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12227 symtab->filename refererences by symtab_to_filename_for_display calls.
12228 (find_line_symtab): Replace symtab->filename refererences by
12229 symtab_to_filename_for_display calls.
12230 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12231 (print_symbol_info): Make the last parameter const char *. New
12232 variable s_filename. Use it in the function.
12233 (symtab_symbol_info): Make the last_filename variable const char *.
12234 Replace symtab->filename refererences by symtab_to_filename_for_display
12235 calls.
12236 (rbreak_command): New variable fullname. Use it. Replace
12237 symtab->filename refererence by symtab_to_filename_for_display call.
12238 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12239 (print_one_static_tracepoint_marker): Replace symtab->filename
12240 refererences by symtab_to_filename_for_display calls.
12241 * tui/tui-source.c (tui_set_source_content): New variables filename and
12242 s_filename. Replace symtab->filename refererences by this variable.
12243 Replace other symtab->filename refererences by
12244 symtab_to_filename_for_display calls.
12245
12246 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12247 Jan Kratochvil <jan.kratochvil@redhat.com>
12248
12249 Add a new variable that controls a way in which filenames are
12250 displayed.
12251 * NEWS (set filename-display): New entry.
12252 * source.c (filename_display_basename, filename_display_relative)
12253 (filename_display_absolute, filename_display_kind_names)
12254 (filename_display_string, show_filename_display_string)
12255 (symtab_to_filename_for_display): New.
12256 (_initialize_source): Added initialization of 'filename-display'
12257 variable.
12258 * source.h (symtab_to_filename_for_display): Added declaration.
12259 * stack.c (print_frame): Added new variable and calling of a new
12260 function and condition with this variable. Changed third argument of
12261 calling of a function.
12262
12263 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12264
12265 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12266 Rename field reference filename to fullname.
12267 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12268 fullname. New comment for it.
12269 * tui/tui-source.c (tui_set_source_content): Rename field reference
12270 filename to fullname. Initialize field by symtab_to_fullname now.
12271 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12272 reference filename to fullname. Use symtab_to_fullname during
12273 comparison.
12274
12275 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12276
12277 Code cleanup.
12278 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12279 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12280 filename to fullname. Rename variable this_name to this_fullname.
12281 Lowercase FILENAME_CMP call.
12282 (dw2_find_symbol_file): New comment for the returned string.
12283 (dwarf2_gdb_index_functions): Rename the function to
12284 dw2_expand_symtabs_with_fullname.
12285 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12286 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12287 fullname.
12288 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12289 * symfile.h (struct quick_symbol_functions): Rename field
12290 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12291 parameter filename to fullname. Document returned string meaning for
12292 find_symbol_file.
12293 * symtab.c (find_line_symtab): Rename the called function to
12294 expand_symtabs_with_fullname.
12295
12296 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12297
12298 Code cleanup.
12299 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12300 call of filename_cmp with compare_filenames_for_search.
12301 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12302 is_abs, unify the call of FILENAME_CMP with
12303 compare_filenames_for_search. New gdb_asserts for real_path and name.
12304 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12305 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12306 * symfile.h (struct quick_symbol_functions): Extend the comment for
12307 map_symtabs_matching_filename.
12308 * symtab.c (compare_filenames_for_search): Remove the function comment
12309 relative path requirement. Handle absolute filenames, with a comment.
12310 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12311 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12312 real_path and name. Unify the call of compare_filenames_for_search
12313 with FILENAME_CMP.
12314 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12315
12316 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12317
12318 Code cleanup.
12319 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12320 source_file references by symtab field references. Remove variables
12321 sal and fullname.
12322 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12323 (clear_command, say_where): Replace bp_location field source_file
12324 references by symtab field references.
12325 (bp_location_dtor): Remove the source_file reference.
12326 (update_static_tracepoint): Replace bp_location field source_file
12327 references by symtab field references.
12328 (breakpoint_free_objfile): New function.
12329 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12330 Replace the field source_file by field symtab, extend its comment.
12331 (breakpoint_free_objfile): New declaration.
12332 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12333 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12334 field source_file references by symtab field references.
12335
12336 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12337
12338 Replace xfullpath calls by gdb_realpath calls.
12339 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12340 function comment.
12341 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12342 Remove it from the iterate_over_some_symtabs call.
12343 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12344 Remove it from the dw2_map_expand_apply calls, remove a block handling
12345 it.
12346 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12347 Remove it from the iterate_over_some_symtabs call.
12348 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12349 Remove it from the partial_map_expand_apply calls, remove a block
12350 handling it. Drop gdb_realpath call and cleanups from the real_path
12351 handling.
12352 * source.c (openp): Drop the comment part about xfullpath. Replace
12353 xfullpath calls by gdb_realpath calls.
12354 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12355 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12356 from method map_symtabs_matching_filename and its comment.
12357 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12358 gdb_realpath call.
12359 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12360 remove it also from the function comment, remove a block handling it.
12361 Drop gdb_realpath call and cleanups from the real_path handling.
12362 (iterate_over_symtabs): Drop variable full_path and its use.
12363 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12364 * utils.c (xfullpath): Remove.
12365 * utils.h (xfullpath): Remove.
12366
12367 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12368
12369 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12370 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12371 (ALLDEPFILES): Add ppc64-tdep.c.
12372 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12373 ppc64-tdep.o to gdb_target_obs.
12374 * ppc64-tdep.h: New file.
12375 * ppc64-tdep.c: New file.
12376 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12377 ppc-linux-tdep.c to here.
12378 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12379 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12380 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12381 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12382 from ppc-linux-tdep.c to here.
12383 (ppc64_convert_from_func_ptr_addr): Rename from
12384 ppc64_linux_convert_from_func_ptr_addr to
12385 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12386 here.
12387 * rs6000-tdep.c:
12388 (read_insn): Move from ppc-linux-tdep.c to here.
12389 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12390 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12391 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12392 Removed above functions.
12393 (ppc_linux_init_abi): Adjust.
12394
12395 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12396
12397 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12398
12399 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12400
12401 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12402
12403 2013-02-01 Pedro Alves <palves@redhat.com>
12404
12405 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12406 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12407
12408 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12409
12410 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12411 files with no separate debug info.
12412 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12413 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12414 only for files with no separate debug info.
12415
12416 2013-01-31 Tom Tromey <tromey@redhat.com>
12417
12418 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12419 change type.
12420 (struct jit_program_space_data): Rename from jit_inferior_data.
12421 Update comments.
12422 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12423 Change return type. Attach data to program space.
12424 (jit_program_space_data_cleanup): Rename from
12425 jit_inferior_data_cleanup; change argument type.
12426 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12427 change type.
12428 (jit_register_code): Update.
12429 (jit_update_inferior_cache): Remove.
12430 (jit_breakpoint_deleted): Get jit data from the location's program
12431 space.
12432 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12433 'ps_data', change type.
12434 (jit_inferior_init, jit_breakpoint_re_set_internal)
12435 (jit_event_handler): Update.
12436 (free_objfile_data): Get data from objfile's program space.
12437 (_initialize_jit): Update.
12438
12439 2013-01-31 Tom Tromey <tromey@redhat.com>
12440
12441 PR gdb/13987:
12442 * jit.c (struct jit_inferior_data) <cached_code_address,
12443 jit_breakpoint>: New fields.
12444 (jit_breakpoint_re_set_internal): Fix logging. Only create
12445 breakpoint if cached address has changed.
12446 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12447 functions.
12448 (_initialize_jit): Register breakpoint deleted observer.
12449
12450 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12451
12452 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12453 (save_infcall_suspend_state): Ifdef out unused inf.
12454 (restore_infcall_suspend_state): Ifdef out unused inf.
12455 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12456 (jit_frame_sniffer): Remove unused inf_data.
12457
12458 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12459
12460 * c-exp.y (classify_inner_name): Remove unused type.
12461 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12462 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12463 need_escape.
12464 (c_get_string): Remove unused kind.
12465 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12466
12467 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12468
12469 * charset.c (intermediate_encoding): Remove unused i.
12470 * completer.c (signal_completer): Remove unused i.
12471 * continuations.c (discard_my_continuations_1): Remove unused
12472 continuation_ptr.
12473 * corelow.c (core_close): Remove unuseD name.
12474 (get_core_siginfo): Remove unused pid.
12475 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12476 i, cps.
12477 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12478 (loclist_describe_location): Remove unused first.
12479 * event-top.c (command_line_handler): Remove unused got_eof.
12480 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12481 (resize_section_table): Remove unused old_value.
12482 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12483 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12484 * i386-tdep.c (i386_process_record): Remove unused rex.
12485 * infcmd.c (get_return_value): Remove unused uiout.
12486 * jv-lang.c (type_from_class): Remove unused is_array.
12487 * jv-valprint.c (java_val_print): Remove unused i.
12488 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12489 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12490 * m2-typeprint.c (m2_print_type): Remove unused code.
12491 * macroexp.c (get_character_constant): Remove unused body_start.
12492 (macro_stringify): Remove unused result.
12493 * objc-lang.c (find_methods): Remove unused gdbarch.
12494 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12495 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12496 * stack.c (print_frame_args): Remove unused summary.
12497 * thread.c (thread_apply_command): Remove unused p.
12498 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12499 * valops.c (search_struct_method): Remove unused skip.
12500 * valprint.c (generic_val_print): Remove unused byte_order.
12501 * varobj.c (varobj_update): Remove unused changed.
12502 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12503 (alias_command): Remove unused c.
12504 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12505 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12506 format.
12507 (mi_cmd_data_write_memory): Remove unused word_format.
12508 (mi_cmd_data_write_memory_bytes): Remove unused r.
12509 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12510 p_start, p_end.
12511 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12512 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12513 line_width.
12514
12515 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12516
12517 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12518 * symtab.c (iterate_over_symtabs): Remove unused s.
12519 (find_pc_sect_symtab): Remove unused pspAce.
12520 (find_pc_sect_line): Remove unused alt_symtab.
12521 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12522 (completion_list_add_name): Remove unused newsize.
12523
12524 2013-01-31 Tom Tromey <tromey@redhat.com>
12525
12526 PR c++/14998:
12527 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12528 TYPE_CODE_FUNC.
12529
12530 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12531
12532 * target.c (target_read_string): Remove unused origlen.
12533
12534 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12535
12536 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12537 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12538 * ax-general.c (ax_print): Remove unused is_float.
12539 * blockframe.c (block_innermost_frame): Remove unused start, end.
12540 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12541
12542 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12543
12544 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12545 (svr4_read_so_list): Remove unused lmo.
12546 * solib-target.c (solib_target_relocate_section_addresses): Remove
12547 unused flags.
12548
12549 2013-01-30 Tom Tromey <tromey@redhat.com>
12550
12551 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12552
12553 2013-01-30 Tom Tromey <tromey@redhat.com>
12554
12555 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12556 * utils.c (gnu_debuglink_crc32): Remove.
12557 * utils.h (gnu_debuglink_crc32): Don't declare.
12558
12559 2013-01-30 Tom Tromey <tromey@redhat.com>
12560
12561 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12562 (read_structure_type, read_enumeration_type): Remove cast.
12563
12564 2013-01-30 Tom Tromey <tromey@redhat.com>
12565
12566 * dwarf2read.c (read_namespace_type): Remove cast.
12567 (read_typedef): Likewise.
12568
12569 2013-01-29 Tom Tromey <tromey@redhat.com>
12570
12571 * dwarf2read.c (free_dwo_file): Remove assert.
12572
12573 2013-01-29 Tom Tromey <tromey@redhat.com>
12574
12575 * value.c (deprecated_set_value_modifiable): Remove.
12576 * value.h (deprecated_set_value_modifiable): Remove.
12577
12578 2013-01-28 Doug Evans <dje@google.com>
12579
12580 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12581 to addresses from dwo files.
12582
12583 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12584
12585 * valops.c (find_overload_match): Remove unused argument 'lax'.
12586 * value.h: Remove unused argument 'lax' from the declaration of
12587 find_overload_match.
12588 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12589 to find_overload_match.
12590 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12591 argument to find_overload_match.
12592
12593 2013-01-25 Tom Tromey <tromey@redhat.com>
12594
12595 * dwarf2read.c (processing_has_namespace_info): Remove.
12596 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12597 (process_die, read_func_scope, dwarf2_start_symtab)
12598 (new_symbol_full): Update.
12599
12600 2013-01-25 Tom Tromey <tromey@redhat.com>
12601
12602 * cp-namespace.c (cp_set_block_scope): Remove.
12603 * cp-support.h (cp_set_block_scope): Remove.
12604 * dbxread.c: Include block.h.
12605 (cp_set_block_scope): New function.
12606 (process_one_symbol): Update.
12607 * dwarf2read.c (read_func_scope): Use block_set_scope.
12608
12609 2013-01-25 Pedro Alves <palves@redhat.com>
12610
12611 * remote.c (add_current_inferior_and_thread): Tweak comment.
12612
12613 2013-01-25 Tom Tromey <tromey@redhat.com>
12614
12615 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12616 (cp_add_using_directive): Add 'copy_names' argument.
12617 * cp-support.h (cp_add_using_directive): Update.
12618 (struct using_direct) <import_src, import_dest, alias,
12619 declaration>: Now const.
12620 * dwarf2read.c (read_import_statement): Use obconcat.
12621 Don't copy names passed to cp_add_using_directive.
12622
12623 2013-01-25 Tom Tromey <tromey@redhat.com>
12624
12625 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12626
12627 2013-01-25 Pedro Alves <palves@redhat.com>
12628
12629 * remote.c (stop_reply_extract_thread): New.
12630 (add_current_inferior_and_thread): New parameter 'wait_status'.
12631 Handle it.
12632 (remote_start_remote): Pass wait status to
12633 add_current_inferior_and_thread.
12634 (extended_remote_run): Update comment.
12635 (extended_remote_create_inferior_1): Pass wait status to
12636 add_current_inferior_and_thread.
12637
12638 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12639 Ulrich Weigand <uweigand@de.ibm.com>
12640
12641 * valarith.c (value_vector_widen): New function for replicating a
12642 scalar into a vector.
12643 (value_binop): Use value_vector_widen to widen scalar to vector
12644 rather than casting, this better matches gcc C behaviour.
12645 * valops.c (value_casst): Update logic for casting between vector
12646 types, and for casting from scalar to vector, try to match gcc C
12647 behaviour.
12648 * value.h (value_vector_widen): Declare.
12649 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12650 function, handle special case for casting scalar to vector.
12651 (opencl_relop): Use opencl_value_cast.
12652 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12653 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12654 in order to use opencl_value_cast.
12655
12656 2013-01-25 Yao Qi <yao@codesourcery.com>
12657
12658 * event-loop.c: Include "queue.h".
12659 (gdb_event_p): New typedef.
12660 (DECLARE_QUEUE_P): Use.
12661 (DEFINE_QUEUE_P): Use.
12662 (async_queue_event): Remove.
12663 (gdb_event_xfree): New.
12664 (initialize_event_loop): New.
12665 (process_event): Use QUEUE macros.
12666 (event_queue): Remove.
12667 (gdb_wait_for_event): Caller update.
12668 (check_async_event_handlers): Likewise.
12669 (poll_timers): Likewise.
12670 * event-loop.h (initialize_event_loop): Declare.
12671 * event-loop.c (gdb_event_xfree): New.
12672 * top.c (gdb_init): Call initialize_event_loop.
12673
12674 2013-01-25 Yao Qi <yao@codesourcery.com>
12675
12676 * event-loop.c (async_queue_event): Remove one parameter
12677 'position'. Remove code handling 'position' == TAIL.
12678 (gdb_wait_for_event): Caller update.
12679 (check_async_event_handlers): Caller update.
12680 (poll_timers): Caller update.
12681 * event-loop.h (enum queue_position): Remove.
12682
12683 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12684
12685 * MAINTAINERS: Update my email.
12686
12687 2013-01-25 Yao Qi <yao@codesourcery.com>
12688
12689 * main.c (print_gdb_help): Remove "--epoch" from the help
12690 message.
12691
12692 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12693
12694 * symtab.c (skip_prologue_using_sal): Consider a file
12695 change the same as an increased line number
12696
12697 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12698
12699 * MAINTAINERS (Write After Approval): Add myself to the list.
12700
12701 2013-01-24 Tom Tromey <tromey@redhat.com>
12702
12703 * ada-lang.h (ada_decode_symbol): Make return type const.
12704 * ada-lang.c (ada_decode_symbol): Likewise.
12705
12706 2013-01-23 Doug Evans <dje@google.com>
12707
12708 * linespec.c (find_linespec_symbols): Make static.
12709
12710 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12711
12712 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12713 type on float conversion for complex type.
12714
12715 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12716
12717 Add a new class gdb.Architecture which exposes GDB's
12718 internal representation of architecture via GDB Python API.
12719 * Makefile.in: Add entries corresponding to the new file
12720 python/py-arch.c.
12721 * NEWS (Python Scripting): Add entries for the new class
12722 gdb.Architecture and the new method gdb.Frame.architecture.
12723 * python/py-arch.c: Implement gdb.Architecture class.
12724 * python/py-frame.c (frapy_arch): Implement the method
12725 gdb.Frame.architecture().
12726 (frame_object_methods): Add 'architecture' to the method table.
12727 * python/python-internal.h: Add declarations of new utility
12728 functions.
12729 * python/python.c (_initialize_python): Initialize
12730 gdb.Architecture class.
12731
12732 2013-01-23 Doug Evans <dje@google.com>
12733
12734 Work around binutils/15021.
12735 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12736 type_unit_group out of union s. All uses updated.
12737 (read_index_from_section): Watch for index version 8.
12738 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12739 an imported symtab.
12740 (write_psymtabs_to_index): Increment version number to 8.
12741
12742 2013-01-22 Pedro Alves <palves@redhat.com>
12743
12744 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12745 user-visible.
12746
12747 2013-01-22 Pedro Alves <palves@redhat.com>
12748
12749 * annotate.c (annotate_breakpoints_changed): Rename to ...
12750 (annotate_breakpoints_invalid): ... this. Make static.
12751 (breakpoint_changed): Adjust.
12752 (_initialize_annotate): Always install the observers. Install a
12753 "breakpoint_created" observer.
12754 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12755 * breakpoint.c (set_breakpoint_condition)
12756 (breakpoint_set_commands, do_map_commands_command)
12757 (init_raw_breakpoint, clear_command, set_ignore_count)
12758 (enable_breakpoint_disp): No longer call
12759 annotate_breakpoints_changed.
12760
12761 2013-01-22 Pedro Alves <palves@redhat.com>
12762
12763 * annotate.c: Include "inferior.h".
12764 (frames_invalid_emitted)
12765 (breakpoints_invalid_emitted): New globals.
12766 (async_background_execution_p): New function.
12767 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12768 emitting the annotation if it has already been emitted.
12769 (annotate_display_prompt): New function.
12770 * annotate.h (annotate_display_prompt): New declaration.
12771 * event-top.c: Include annotate.h.
12772 (display_gdb_prompt): Call annotate_display_prompt.
12773
12774 2013-01-22 Pedro Alves <palves@redhat.com>
12775
12776 * annotate.c (ignore_count_changed): Delete.
12777 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12778 (annotate_ignore_count_change): Delete.
12779 (annotate_stopped): Don't emit a delayed breakpoints-changed
12780 annotation.
12781 * annotate.h (annotate_ignore_count_change): Delete.
12782 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12783 annotate_ignore_count_change.
12784
12785 2013-01-22 Tom Tromey <tromey@redhat.com>
12786
12787 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12788 require_rvalue for a register location.
12789
12790 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12791
12792 * breakpoint.c (print_one_breakpoint_location): Add MI
12793 field 'thread-groups' when printing a breakpoint.
12794 (output_thread_groups): New function.
12795
12796 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12797
12798 * python/lib/gdb/commands/explore.py
12799 (CompoundExplorer.explore_expr): Correct the name of a method
12800 being invoked.
12801 (ExploreTypeCommand.invoke): Add a missing 'return'.
12802
12803 2013-01-21 Tom Tromey <tromey@redhat.com>
12804
12805 * gdb_obstack.h (obconcat): Move declaration here, from...
12806 * symfile.h (obconcat): ... here.
12807 * gdb_obstack.c: New file.
12808 (obconcat): Move from...
12809 * symfile.c (obconcat): ... here.
12810 * Makefile.in (SFILES): Add gdb_obstack.c.
12811 (COMMON_OBS): Add gdb_obstack.o.
12812
12813 2013-01-21 Tom Tromey <tromey@redhat.com>
12814
12815 * symfile.h (obsavestring): Don't declare.
12816 * symfile.c (obsavestring): Remove.
12817 * ada-exp.y: Use obstack_copy0, not obsavestring.
12818 * ada-lang.c: Use obstack_copy0, not obsavestring.
12819 * coffread.c: Use obstack_copy0, not obsavestring.
12820 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12821 * dbxread.c: Use obstack_copy0, not obsavestring.
12822 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12823 * jit.c: Use obstack_copy0, not obsavestring.
12824 * mdebugread.c: Use obstack_copy0, not obsavestring.
12825 * psymtab.c: Use obstack_copy0, not obsavestring.
12826 * stabsread.c: Use obstack_copy0, not obsavestring.
12827 * xcoffread.c: Use obstack_copy0, not obsavestring.
12828
12829 2013-01-21 Tom Tromey <tromey@redhat.com>
12830
12831 * dwarf2read.c (fixup_go_packaging): Save package name
12832 on objfile obstack.
12833 * gdbtypes.c (init_type): Don't copy name.
12834
12835 2013-01-21 Tom Tromey <tromey@redhat.com>
12836
12837 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12838 const.
12839 (struct attribute) <u.str>: Now const.
12840 (struct fnfieldlist) <name>: Now const.
12841 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12842 (partial_die_parent_scope): Make return type const.
12843 (partial_die_full_name, add_partial_symbol): Update.
12844 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12845 'name' const.
12846 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12847 (read_file_scope, read_func_scope, dwarf2_add_field)
12848 (dwarf2_add_member_fn, read_structure_type)
12849 (process_enumeration_scope, read_array_type, read_module_type)
12850 (read_base_type, read_subrange_type): Update.
12851 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12852 (new_symbol_full, guess_full_die_structure_name): Update.
12853 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12854 (dwarf2_name): Return const type.
12855 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12856 const.
12857
12858 2013-01-21 Tom Tromey <tromey@redhat.com>
12859
12860 * gdbtypes.c (init_type): Make 'name' const.
12861 * gdbtypes.h (init_type): Update.
12862
12863 2013-01-21 Tom Tromey <tromey@redhat.com>
12864
12865 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12866 (start_symtab): Make 'name' and 'dirname' const. Use
12867 set_last_source_file.
12868 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12869 (last_source_file): Define. Now static.
12870 (set_last_source_file, get_last_source_file): New functions.
12871 * buildsym.h (last_source_file): Don't declare.
12872 (start_symtab): Update.
12873 (set_last_source_file, get_last_source_file): Declare.
12874 * coffread.c (complete_symtab): Use set_last_source_file.
12875 (coff_end_symtab): Likewise.
12876 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12877 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12878 set_last_source_file.
12879 (process_one_symbol): Use get_last_source_file.
12880 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12881 (psymtab_to_symtab_1): Use get_last_source_file.
12882 * xcoffread.c (process_linenos): Use get_last_source_file.
12883 (complete_symtab): Use set_last_source_file.
12884 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12885 (scan_xcoff_symtab): Use set_last_source_file.
12886
12887 2013-01-21 Tom Tromey <tromey@redhat.com>
12888
12889 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12890 (symbol_set_names): Remove casts. Handle field const-ness.
12891
12892 2013-01-21 Tom Tromey <tromey@redhat.com>
12893
12894 * dwarf2read.c (new_symbol_full): Remove cast.
12895 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12896 * symtab.h (symbol_set_demangled_name): Update.
12897
12898 2013-01-21 Tom Tromey <tromey@redhat.com>
12899
12900 * main.c (captured_main): Call bfd_init.
12901
12902 2013-01-21 Tom Tromey <tromey@redhat.com>
12903
12904 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12905 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12906 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12907 * NEWS: Update.
12908
12909 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12910
12911 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12912
12913 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12914
12915 Fix gdb.fortran/common-block.exp crash in PIE mode.
12916 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12917 LOC_COMMON_BLOCK.
12918 * f-valprint.c (info_common_command_for_block): Expect
12919 LOC_COMMON_BLOCK in gdb_assert.
12920 * symtab.h (struct general_symbol_info): Update comment for the
12921 common_block member.
12922 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12923 (enum address_class): New member LOC_COMMON_BLOCK.
12924
12925 2013-01-18 David Blaikie <dblaikie@gmail.com>
12926
12927 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12928
12929 2013-01-18 Tom Tromey <tromey@redhat.com>
12930
12931 PR c++/14999:
12932 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12933 Call require_rvalue.
12934
12935 2013-01-18 Yao Qi <yao@codesourcery.com>
12936
12937 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12938 (dbx_read_symtab): New declaration.
12939 (dbx_psymtab_to_symtab): Delete.
12940 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12941 Rename parameter PST to SELF. Exchanged two parameters.
12942 (start_psymtab): Caller update.
12943 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12944 (dwarf2_read_symtab): New declaration.
12945 (dwarf2_psymtab_to_symtab): Delete.
12946 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12947 Rename parameter PST to SELF. Exchanged two parameters.
12948 (create_partial_symtab): Caller update.
12949 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12950 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12951 Rename parameter PST to SELF. Exchanged two parameters.
12952 (parse_partial_symbols, new_psymtab): Caller update.
12953 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12954 two parameters.
12955 * psymtab.c (psymtab_to_symtab): Caller update.
12956 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12957 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12958 Rename parameter PST to SELF. Exchanged two parameters.
12959 (xcoff_start_psymtab): Caller update.
12960
12961 2013-01-18 Yao Qi <yao@codesourcery.com>
12962
12963 * infrun.c (proceed): Rename local variable 'oneproc' to
12964 'force_step'.
12965
12966 2013-01-17 Doug Evans <dje@google.com>
12967
12968 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12969 (dw2_build_type_unit_groups): Delete. All uses updated.
12970
12971 * symtab.h (struct symbol_search): Add comment.
12972
12973 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12974
12975 * symtab.c (compare_filenames_for_search): New comment for
12976 HAS_DRIVE_SPEC.
12977
12978 2013-01-17 Tom Tromey <tromey@redhat.com>
12979
12980 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12981
12982 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12983
12984 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12985 initialize it by existing make_cleanup. Call new do_cleanups.
12986
12987 2013-01-17 Tom Tromey <tromey@redhat.com>
12988
12989 * cp-abi.c (cp_abi_completer): New function.
12990 (_initialize_cp_abi): Set completer for "set cp-abi".
12991
12992 2013-01-17 Tom Tromey <tromey@redhat.com>
12993
12994 * mem-break.c: Remove obsolete comment.
12995 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12996
12997 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12998
12999 * jit.c (jit_reader_load_command): Interpret the jit reader name
13000 as an absolute path if it begins with a forward slash.
13001
13002 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13003
13004 PR gdb/14550
13005
13006 * jit.c (finalize_symtab): Ensure that only the global block has a
13007 NULL superblock.
13008
13009 2013-01-17 Pedro Alves <palves@redhat.com>
13010
13011 * acinclude.m4: Include ../config/plugins.m4,
13012 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13013 * Makefile.in (aclocal_m4_deps): Update.
13014 * aclocal.m4: Renegerate.
13015
13016 2013-01-16 Doug Evans <dje@google.com>
13017
13018 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13019
13020 2013-01-16 Pedro Alves <palves@redhat.com>
13021 Tom Tromey <tromey@redhat.com>
13022
13023 PR cli/7221:
13024 * NEWS: Add "catch signal".
13025 * breakpoint.c (base_breakpoint_ops): No longer static.
13026 (bpstat_explains_signal): New function.
13027 (init_catchpoint): No longer static.
13028 (base_breakpoint_explains_signal): New function.
13029 (base_breakpoint_ops): Initialize new field.
13030 * breakpoint.h (enum bpstat_signal_value): New.
13031 (struct breakpoint_ops) <explains_signal>: New field.
13032 (bpstat_explains_signal): Remove macro, declare as function.
13033 (base_breakpoint_ops, init_catchpoint): Declare.
13034 * break-catch-sig.c: New file.
13035 * inferior.h (signal_catch_update): Declare.
13036 * infrun.c (signal_catch): New global.
13037 (handle_syscall_event): Update for change to
13038 bpstat_explains_signal.
13039 (handle_inferior_event): Likewise. Always handle random signals
13040 via bpstats.
13041 (signal_cache_update): Check signal_catch.
13042 (signal_catch_update): New function.
13043 (_initialize_infrun): Initialize signal_catch.
13044 * Makefile.in (SFILES): Add break-catch-sig.c.
13045 (COMMON_OBS): Add break-catch-sig.o.
13046
13047 2013-01-16 Tom Tromey <tromey@redhat.com>
13048
13049 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13050 (print_one_catch_solib, print_one_catch_syscall)
13051 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13052 "catch-type".
13053
13054 2013-01-16 Yao Qi <yao@codesourcery.com>
13055
13056 * printcmd.c (current_display_number): Make it static.
13057
13058 2013-01-16 Yao Qi <yao@codesourcery.com>
13059
13060 * infcmd.c (step_once): Don't check '!single_inst' as it was
13061 checked before.
13062
13063 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13064
13065 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13066
13067 2013-01-14 Tom Tromey <tromey@redhat.com>
13068
13069 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13070 set command.
13071 * command.h (add_setshow_string_noescape_cmd): Update.
13072 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13073 (complete_set_gnutarget): New function.
13074 (_initialize_core): Set the "set gnutarget" completer.
13075
13076 2013-01-14 Tom Tromey <tromey@redhat.com>
13077
13078 PR symtab/14442:
13079 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13080 (c_type_print_modifier): Likewise.
13081 * dwarf2read.c (read_tag_restrict_type): New function.
13082 (read_type_die_1): Handle DW_TAG_restrict_type.
13083 * gdbtypes.c (make_restrict_type): New function.
13084 (recursive_dump_type): Handle TYPE_RESTRICT.
13085 * gdbtypes.h (enum type_flag_values): Renumber.
13086 (enum type_instance_flag_value): Add
13087 TYPE_INSTANCE_FLAG_RESTRICT.
13088 (TYPE_RESTRICT): New macro.
13089 (make_restrict_type): Declare.
13090
13091 2013-01-14 Tom Tromey <tromey@redhat.com>
13092
13093 PR symtab/14931:
13094 * psymtab.c (struct psymtab_state): New.
13095 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13096 functions.
13097 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13098 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13099
13100 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13101 Pedro Alves <palves@redhat.com>
13102
13103 PR remote/14786
13104
13105 * remote.c (remote_threads_info): Make a copy of the reply from
13106 qfThreadInfo and use that instead of rs->buf.
13107
13108 2013-01-14 Yao Qi <yao@codesourcery.com>
13109
13110 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13111 (dbx_psymtab_to_symtab): Likewise.
13112 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13113 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13114 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13115
13116 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13117
13118 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13119 make_cleanup_restore_current_language. Call set_language. Move
13120 OLD_CHAIN and INNER_CHAIN cleanups.
13121 * utils.c (do_restore_current_language)
13122 (make_cleanup_restore_current_language): New functions.
13123 * utils.h (make_cleanup_restore_current_language): New declaration.
13124
13125 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13126
13127 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13128 non-existing files.
13129
13130 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13131 non-existing files if FILENAME is already absolute.
13132
13133 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13134
13135 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13136 fputs_filtered. Append trailing newline.
13137
13138 2013-01-11 Yao Qi <yao@codesourcery.com>
13139 Stan Shebs <stan@codesourcery.com>
13140
13141 * psymtab.c (init_psymbol_list): Clarify the comment.
13142
13143 2013-01-11 Yao Qi <yao@codesourcery.com>
13144
13145 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13146 (update_dprintf_command_list): Assert that 'printf_line' is
13147 non-null. Remove condition check.
13148
13149 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13150
13151 Code cleanup.
13152 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13153 type const char *.
13154 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13155 const char *.
13156 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13157
13158 2013-01-09 Anthony Green <green@moxielogic.com>
13159
13160 * cp-abi.c (cplus_print_vtable): Don't return value from void
13161 function.
13162 * ada-lang.c (re_set_catch_assert): Ditto.
13163
13164 2013-01-09 Doug Evans <dje@google.com>
13165
13166 * symfile.h (quick_symbol_functions): Delete member
13167 pre_expand_symtabs_matching. All uses removed.
13168 * dwarf2read.c (dw2_lookup_symbol): Implement.
13169 (dw2_do_expand_symtabs_matching): Delete.
13170 (dw2_pre_expand_symtabs_matching): Delete.
13171 (struct dw2_symtab_iterator): New type.
13172 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13173 (dw2_expand_symtabs_for_function): Rewrite.
13174 (dwarf2_gdb_index_functions): Update.
13175 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13176 (psym_functions): Update.
13177
13178 2013-01-09 Tom Tromey <tromey@redhat.com>
13179
13180 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13181 * configure: Rebuild.
13182 * configure.ac: Add somread.o to the build if BFD has SOM
13183 support.
13184 * somread.c: Include som/aout.h, not syms.h.
13185 (som_symtab_read): Use som_external_symbol_dictionary_record.
13186 Unpack records manually.
13187 (_initialize_somread): Declare.
13188
13189 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13190
13191 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13192 Cast return_address to 64bits.
13193
13194 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13195
13196 * printcmd.c: Remove define of function output_command.
13197 * tracepoint.c: Remove extern of function output_command.
13198 * valprint.h: (output_command): New extern.
13199
13200 2013-01-07 Tom Tromey <tromey@redhat.com>
13201
13202 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13203 Remove.
13204 (objc_language_defn): Use c_printchar, c_printstr,
13205 c_emit_char.
13206
13207 2013-01-07 Tom Tromey <tromey@redhat.com>
13208
13209 PR cli/7719:
13210 * NEWS: Update.
13211 * ada-valprint.c (printstr, print_field_values): Remove
13212 "inspect_it" code.
13213 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13214 code.
13215 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13216 code.
13217 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13218 * main.c (captured_main): Remove "epoch" argument.
13219 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13220 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13221 * p-valprint.c (pascal_object_print_value_fields): Remove
13222 "inspect_it" code.
13223 * printcmd.c (print_command_1): Remove 'inspect' argument.
13224 (print_command, call_command): Update.
13225 (inspect_command): Remove.
13226 (_initialize_printcmd): Make "inspect" an alias for "print".
13227 * top.c (epoch_interface): Remove.
13228 * top.h (epoch_interface): Remove.
13229 * valprint.c (user_print_options): Update.
13230 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13231 * valprint.h (struct value_print_options) <inspect_it>: Remove
13232 field.
13233
13234 2013-01-04 Tom Tromey <tromey@redhat.com>
13235
13236 * valprint.h (read_string): Add 'extern'.
13237
13238 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13239
13240 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13241 used to decide whether to define darwin_read_dyld_info or not.
13242
13243 2013-01-03 Pierre Muller <muller@sourceware.org>
13244
13245 * main.c (relocate_gdb_directory): Avoid calling stat function
13246 if DIR is empty.
13247
13248 2013-01-03 Yao Qi <yao@codesourcery.com>
13249
13250 * psymtab.c (fixup_psymbol_section): Update declaration.
13251 (fixup_psymbol_section): Remove code returning value.
13252
13253 2013-01-03 Yao Qi <yao@codesourcery.com>
13254
13255 * symtab.h: Remove some out of date comments.
13256 (enum exception_event_kind): Move it ...
13257 * breakpoint.c: ... here.
13258
13259 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13260
13261 PR gdb/14405
13262 * darwin-nat.c (darwin_read_dyld_info): Only build if
13263 TASK_DYLD_INFO_COUNT is defined.
13264 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13265 TASK_DYLD_INFO_COUNT is defined.
13266
13267 2013-01-02 Tom Tromey <tromey@redhat.com>
13268
13269 * symfile.h (struct ecoff_debug_hack): Remove.
13270 * objfiles.c: Don't include mdebugread.h.
13271
13272 2013-01-02 Tom Tromey <tromey@redhat.com>
13273
13274 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13275 * configure.ac: Check for Mach-O support in BFD. Update
13276 CONFIG_OBS.
13277 * configure: Rebuild.
13278
13279 2013-01-02 Tom Tromey <tromey@redhat.com>
13280
13281 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13282 * configure.ac: Use GDB_AC_CHECK_BFD.
13283 * configure: Rebuild.
13284
13285 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13286
13287 * MAINTAINERS: Update my email.
13288
13289 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13290
13291 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13292
13293 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13294
13295 * rs6000-nat.c (bss_data_overlap): New function.
13296 (vmap_symtab): Use it to adjust the .bss section's offset.
13297
13298 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13299
13300 Update year range in copyright notice of all files.
13301
13302 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13303
13304 * top.c (print_gdb_version): Update copyright year.
13305
13306 For older changes see ChangeLog-2012.
13307 \f
13308 Local Variables:
13309 mode: change-log
13310 left-margin: 8
13311 fill-column: 74
13312 version-control: never
13313 coding: utf-8
13314 End:
This page took 0.566242 seconds and 4 git commands to generate.