Properly decode MODRM byte for 64-bit
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR gdb/16304
4         * i386-tdep.c (i386_record_lea_modrm_addr): Don't use 16-bit
5         address in 64-bit mode.
6
7 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
8
9         PR gdb/16304
10         * i386-tdep.c (i386_record_lea_modrm_addr): Zero-extend 32-bit
11         address to 64-bit in 64-bit mode.
12
13 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
14
15         PR gdb/16304
16         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Handle x32
17         system calls.
18         (amd64_x32_linux_record_tdep): New.
19         (amd64_linux_syscall_record_common): New function.
20         (amd64_linux_syscall_record): Call
21         amd64_linux_syscall_record_common with amd64_linux_record_tdep.
22         (amd64_x32_linux_syscall_record): Call
23         amd64_linux_syscall_record_common with
24         amd64_x32_linux_record_tdep.
25         (amd64_linux_init_abi_common): Move amd64_linux_record_tdep
26         initialization and tdep->i386_syscall_record setup to ...
27         (amd64_linux_init_abi): Here.
28         (amd64_x32_linux_init_abi): Initialize
29         amd64_x32_linux_record_tdep.  Set tdep->i386_syscall_record to
30         amd64_x32_linux_syscall_record.
31         * amd64-linux-tdep.h (amd64_x32_syscall): New enum.
32
33 2013-12-19  Sergio Durigan Junior  <sergiodj@redhat.com>
34
35         * amd64-tdep.c (amd64_init_abi): Declare SystemTap SDT probe
36         argument prefixes and suffixes.  Initialize gdbarch with them.
37         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
38         * gdbarch.c: Regenerate.
39         * gdbarch.h: Regenerate.
40         * gdbarch.sh (stap_integer_prefix, stap_integer_suffix)
41         (stap_register_prefix, stap_register_suffix)
42         (stap_register_indirection_prefix)
43         (stap_register_indirection_suffix): Declare as "const char *const
44         *" instead of "const char *".  Adjust printing function.  Rename
45         all of the variables to the plural.
46         (pstring_list): New function.
47         * i386-tdep.c (i386_elf_init_abi): Declare SystemTap SDT probe
48         argument prefixes and suffixes.  Initialize gdbarch with them.
49         * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
50         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
51         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
52         * stap-probe.c (stap_is_generic_prefix): New function.
53         (stap_is_register_prefix): Likewise.
54         (stap_is_register_indirection_prefix): Likewise.
55         (stap_is_integer_prefix): Likewise.
56         (stap_generic_check_suffix): Likewise.
57         (stap_check_integer_suffix): Likewise.
58         (stap_check_register_suffix): Likewise.
59         (stap_check_register_indirection_suffix): Likewise.
60         (stap_parse_register_operand): Remove unecessary declarations for
61         variables holding prefix and suffix information.  Use the new
62         functions listed above for checking for prefixes and suffixes.
63         (stap_parse_single_operand): Likewise.
64
65 2013-12-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
66
67         PR breakpoints/16297
68         * breakpoint.c (breakpoint_hit_catch_syscall): Return immediately
69         when expected syscall is hit.
70
71 2013-12-19  Tom Tromey  <tromey@redhat.com>
72
73         * ser-unix.c (hardwire_ops): New global.
74         (_initialize_ser_hardwire): Use it.
75         * ser-tcp.c (tcp_ops): New global.
76         (_initialize_ser_tcp): Use it.
77         * ser-pipe.c (pipe_ops): New global.
78         (_initialize_ser_pipe): Use it.
79         * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): New
80         globals.
81         (_initialize_ser_windows): Use them.
82
83 2013-12-19  Tom Tromey  <tromey@redhat.com>
84
85         * serial.c (serial_ops_p): New typedef.
86         (serial_ops_list): Now a VEC.
87         (serial_interface_lookup): Return const.  Use VEC_iterate.
88         (serial_add_interface): Make parameter const.
89         (serial_open): Update.
90         (serial_fdopen_ops): Make 'ops' const.
91         (serial_pipe): Update.
92         * ser-tcp.c (_initialize_ser_tcp): Update.
93         * ser-pipe.c (_initialize_ser_pipe): Update.
94         * ser-unix.c (_initialize_ser_hardwire): Update.
95         * ser-mingw.c (_initialize_ser_windows): Update.
96         * ser-go32.c (dos_ops): Now const.  Update.
97         * serial.h (struct serial) <ops>: Now const.
98         (struct serial_ops) <next>: Remove.
99         (serial_add_interface): Make parameter const.
100
101 2013-12-18  Yufeng Zhang  <yufeng.zhang@arm.com>
102
103         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set
104         iov.iov_len with the real length in use.
105
106 2013-12-18  Yao Qi  <yao@codesourcery.com>
107
108         * target.h (target_xfer_partial_ftype): New typedef.
109         (target_xfer_partial): Update declaration.
110         * auxv.h (memory_xfer_auxv): Likewise.
111         * ia64-hpux-nat.c (super_xfer_partial): Likewise.
112         * ia64-linux-nat.c (super_xfer_partial): Likewise.
113         * linux-nat.c (super_xfer_partial): Likewise.
114         * procfs.c (procfs_xfer_partial): Likewise.
115         * record-full.c (record_full_beneath_to_xfer_partial):
116         (tmp_to_xfer_partial): Likewise.
117         * sparc-nat.c (inf_ptrace_xfer_partial): Likewise.
118         * target.c (default_xfer_partial): Likewise.
119         (current_xfer_partial): Likewise.
120         (target_xfer_partial): Change parameter type to 'gdb_byte *'.
121
122 2013-12-18  Yao Qi  <yao@codesourcery.com>
123
124         * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
125         of sprintf.
126         (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
127         (linux_proc_pending_signals): Likewise.
128
129 2013-12-18  Joel Brobecker  <brobecker@adacore.com>
130
131         * value.c (value_entirely_unavailable): ARI fix: Move trailing
132         binary operator to the next line.  No actual code change.
133
134 2013-12-17  Pedro Alves  <palves@redhat.com>
135
136         * frame.h (enum frame_id_stack_status): New enum.
137         (struct frame_id) <stack_addr>: Adjust comment.
138         <stack_addr_p>: Delete field, replaced with ...
139         <stack_status>: ... this new field.
140         (frame_id_build_unavailable_stack): Declare.
141         * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
142         (frame_id_build_special): Adjust.
143         (frame_id_build_unavailable_stack): New function.
144         (frame_id_build, frame_id_build_wild): Adjust.
145         (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
146         account frames with unavailable stack.
147
148         * amd64-tdep.c (amd64_frame_this_id)
149         (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
150         frame_id_build_unavailable_stack.
151         * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
152         * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
153         (i386_sigtramp_frame_this_id):  Likewise.
154
155 2013-12-17  Andrew Burgess  <aburgess@broadcom.com>
156
157         * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
158         unavailable, use correct bit length.
159         * value.c (struct value): Extend comment on unavailable to
160         indicate that it is bit based.
161         (value_bits_available): New function.
162         (value_bytes_available): Call value_bits_available.
163         (value_entirely_available): Check against the bit length, not byte
164         length.
165         (mark_value_bits_unavailable): New function.
166         (mark_value_bytes_unavailable): Move contents to
167         mark_value_bits_unavailable, call to same.
168         (memcmp_with_bit_offsets): New function.
169         (value_available_contents_bits_eq): New function, takes the
170         functionality from value_available_contents_eq but uses
171         memcmp_with_bit_offsets now, and is bit not byte based.
172         (value_available_contents_eq): Move implementation into
173         value_available_contents_bits_eq, call to same.
174         (value_contents_copy_raw): Work on bits, not bytes.
175         (unpack_value_bits_as_long_1): Check availability in bits, not
176         bytes.
177         * value.h (value_bits_available): Declare new function.
178         (mark_value_bits_unavailable): Declare new function.
179
180 2013-12-16  Pierre Muller  <muller@sourceware.org>
181
182         Fix compilation error for cygwin native build.
183         * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
184         Call wcstombs.
185
186 2013-12-16  Pedro Alves  <palves@redhat.com>
187
188         PR 16329
189         * sol-thread.c (check_for_thread_db): If the target can't run or
190         isn't a core, return without pushing.
191
192 2013-12-15  Joel Brobecker  <brobecker@adacore.com>
193
194         Revert the following commit:
195         * solib.c (solib_map_sections): Remove code overwriting
196         SO->SO_NAME with the bfd's filename.
197
198         Make the following changes required after the revert above:
199         * solib-aix.c (solib_aix_bfd_open): Set the filename of the
200         returned bfd to a copy of the synthetic pathname.
201         * solib-darwin.c (darwin_bfd_open): Set the filename of the
202         returned bfd to a copy of PATHNAME.
203
204 2013-12-13  Joel Brobecker  <brobecker@adacore.com>
205
206         * ada-lang.c (ada_array_bound_from_type): Move the declaration
207         and assignment of variable "elt_type" inside the else block
208         where it is used.  Add two missing check_typedef calls.
209         Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
210         we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
211
212 2013-12-13  Joel Brobecker  <brobecker@adacore.com>
213
214         * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
215         between 'struct type *' and 'arr_type'.
216
217 2013-12-12  Siva Chandra Reddy  <sivachandra@google.com>
218
219         PR python/16113
220         * NEWS (Python Scripting): Add entry for the new feature and the
221         new attribute of gdb.Field objects.
222         * python/py-type.c (gdbpy_is_field): New function
223         (convert_field): Add 'parent_type' attribute to gdb.Field
224         objects.
225         * python/py-value.c (valpy_getitem): Allow subscript value to be
226         a gdb.Field object.
227         (value_has_field): New function
228         (get_field_flag): New function
229         * python/python-internal.h (gdbpy_is_field): Add declaration.
230
231 2013-12-12  Pedro Alves  <palves@redhat.com>
232
233         * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
234         const, and remove casts.
235
236 2013-12-12  Pedro Alves  <palves@redhat.com>
237
238         * cli/cli-cmds.c (source_script_from_stream) Use have_python
239         instead of catching UNSUPPORTED_ERROR.
240         * exceptions.h (UNSUPPORTED_ERROR): Delete.
241         * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
242         error if called.
243         * python/python.h (have_python): New static inline function.
244
245 2013-12-11  Doug Evans  <dje@google.com>
246
247         * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
248         "can't find DWO" warning.
249
250 2013-12-11  Sergio Durigan Junior  <sergiodj@redhat.com>
251
252         * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
253         to get_probe_argument_count and evaluate_probe_argument.
254         * probe.c (get_probe_argument_count): Adjust declaration to accept
255         frame.  Pass frame to probe_ops's get_probe_argument_count.
256         (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
257         (probe_safe_evaluate_at_pc): Pass frame to
258         get_probe_argument_count and evaluate_probe_argument.
259         * probe.h (struct probe_ops) <get_probe_argument_count,
260         evaluate_probe_argument>: Adjust declarations to accept frame.
261         (get_probe_argument_count, evaluate_probe_argument): Likewise.
262         * solib-svr4.c (solib_event_probe_action): Get current frame.
263         Pass it to get_probe_argument_count.
264         (svr4_handle_solib_event): Get current frame.  Pass it to
265         get_probe_argument_count and evaluate_probe_argument.
266         * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
267         accept gdbarch.  Do not obtain it from the probe's objfile.
268         (stap_get_probe_argument_count): Adjust declaration to accept
269         frame.  Obtain gdbarch from the frame.  Call generic
270         can_evaluate_probe_arguments.  Pass gdbarch to
271         stap_parse_probe_arguments.
272         (stap_get_arg): Adjust declaration to accept gdbarch.  Pass it to
273         stap_parse_probe_arguments.
274         (stap_evaluate_probe_argument): Adjust declaration to accept
275         frame.  Obtain gdbarch from the frame.  Pass gdbarch to
276         stap_get_arg.
277         (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
278         (compute_probe_arg): Obtain gdbarch from frame.  Pass frame to
279         get_probe_argument_count and evaluate_probe_argument.
280
281 2013-12-10  Doug Evans  <dje@google.com>
282
283         PR 16286
284         * c-lang.c (c_get_string): Ignore the declared size of the object
285         if a specific length is requested.
286
287 2013-12-10  Doug Evans  <dje@google.com>
288
289         * interps.h (interp_exec_p): Delete.
290         * interps.c (interp_exec_p): Delete.
291         (interp_exec): Update.  Assert interp->procs->exec_proc != NULL.
292         * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
293
294 2013-12-10  Yao Qi  <yao@codesourcery.com>
295
296         * amd64-tdep.c (amd64_analyze_stack_align): Call
297         target_read_code instead of target_read_memory.
298         (amd64_analyze_prologue): Call read_code_unsigned_integer
299         instead of read_memory_unsigned_integer.  Call read_code
300         instead of read_memory.
301         (amd64_skip_xmm_prologue): Likewise.
302
303 2013-12-10  Yao Qi  <yao@codesourcery.com>
304
305         * corefile.c (read_code): New function.
306         (read_code_integer): New function.
307         (read_code_unsigned_integer): New function.
308         * gdbcore.h (read_code): Declare.
309         (read_code_integer): Declare.
310         (read_code_unsigned_integer): Declare.
311         * i386-tdep.c (i386_follow_jump): Call target_read_code instead
312         of target_read_memory.  Call read_code_unsigned_integer instead
313         of read_memory_unsigned_integer.
314         (i386_analyze_struct_return): Likewise.
315         (i386_skip_probe): Likewise.
316         (i386_analyze_stack_align): Likewise.
317         (i386_match_pattern): Likewise.
318         (i386_skip_noop): Likewise.
319         (i386_analyze_frame_setup): Likewise.
320         (i386_analyze_register_saves): Likewise.
321         (i386_skip_prologue): Likewise.
322         (i386_skip_main_prologue): Likewise.
323         (i386_frame_cache_1): Likewise.
324
325 2013-12-10  Yao Qi  <yao@codesourcery.com>
326
327         * infrun.c: Include "target-dcache.h".
328         (prepare_for_detach): Call target_dcache_invalidate.
329         (wait_for_inferior): Likewise.
330         (fetch_inferior_event): Likewise.
331         (infrun_thread_stop_requested_callback): Likewise.  Set
332         overlay_cache_invalid to 1.
333
334 2013-12-10  Joel Brobecker  <brobecker@adacore.com>
335
336         * symtab.c (symbol_find_demangled_name): Add handling of
337         Ada symbols.
338
339 2013-12-10  Joel Brobecker  <brobecker@adacore.com>
340
341         * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
342         * NEWS: Expand the entry documenting the new -exec-run --start
343         option to mention the corresponding new entry in the output of
344         "-list-features".
345
346 2013-12-10  Joel Brobecker  <brobecker@adacore.com>
347
348         * windows-nat.c (handle_load_dll): Add comments.
349         (windows_ensure_ntdll_loaded): New function.
350         (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
351         Add FIXME comment.
352
353 2013-12-08  Joel Brobecker  <brobecker@adacore.com>
354
355         GDB 7.6.2 released.
356
357 2013-12-08  Yao Qi  <yao@codesourcery.com>
358
359         * stack.c (frame_info): Initialize variable caller_pc.
360
361 2013-12-06  Pedro Alves  <palves@redhat.com>
362
363         * frame.c (enum cached_copy_status): New enum.
364         (struct frame_info) <prev_pc.p>: Change type to enum
365         cached_copy_status.
366         (fprint_frame): Handle not saved and unavailable prev_pc values.
367         (frame_unwind_pc_if_available): Delete and merge contents into ...
368         (frame_unwind_pc): ... here.  Handle OPTIMIZED_OUT_ERROR.  Adjust
369         to use enum cached_copy_status.
370         (frame_unwind_caller_pc_if_available): Delete.
371         (create_new_frame): Adjust.
372         * frame.h (frame_unwind_caller_pc_if_available): Delete
373         declaration.
374         * stack.c (frame_info): Use frame_unwind_caller_pc instead of
375         frame_unwind_caller_pc_if_available, and handle
376         NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
377         * valprint.c (val_print_optimized_out): Use val_print_not_saved.
378         (val_print_not_saved): New function.
379         * valprint.h (val_print_not_saved): Declare.
380
381 2013-12-06  Andrew Burgess  <aburgess@broadcom.com>
382             Pedro Alves  <palves@redhat.com>
383
384         * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
385         * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
386         * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
387         * spu-tdep.c (spu_software_single_step): Throw
388         OPTIMIZED_OUT_ERROR.
389         * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
390
391 2013-12-06  Tom Tromey  <tromey@redhat.com>
392
393         * objfiles.c (free_objfile): Update comment.
394
395 2013-12-06  Tom Tromey  <tromey@redhat.com>
396
397         * objfiles.h (objfile_to_front): Remove.
398         * objfiles.c (objfile_to_front): Remove.
399
400 2013-12-06  Tom Tromey  <tromey@redhat.com>
401
402         * minsyms.c (get_symbol_leading_char): Remove unnecessary
403         declaration.
404
405 2013-12-06  Tom Tromey  <tromey@redhat.com>
406
407         * psympriv.h (struct partial_symtab) <user>: Move earlier.
408
409 2013-12-06  Tom Tromey  <tromey@redhat.com>
410
411         * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
412         (list_command): Likewise.
413
414 2013-12-06  Tom Tromey  <tromey@redhat.com>
415
416         * psymtab.c (allocate_psymtab): Put the filename in the filename
417         bcache.
418
419 2013-12-06  Tom Tromey  <tromey@redhat.com>
420
421         * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
422         * symtab.h (struct symtab) <dirname>: Now const.
423
424 2013-12-06  Tom Tromey  <tromey@redhat.com>
425
426         * symfile.c (allocate_symtab): Remove cast.
427         * symtab.h (struct symtab) <filename>: Now const.
428
429 2013-12-06  Tom Tromey  <tromey@redhat.com>
430
431         * break-catch-throw.c (fetch_probe_arguments): Use
432         get_probe_argument_count and evaluate_probe_argument.
433         * elfread.c (elf_get_probe_argument_count)
434         (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
435         (elf_compile_to_ax): Remove.
436         (elf_probe_fns): Update.
437         * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
438         (evaluate_probe_argument): Call method on probe, not via sym
439         functions.
440         * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
441         evaluate_probe_argument.
442         (compile_probe_arg): Use get_probe_argument_count.  Call method on
443         probe, not via sym functions.
444         * symfile-debug.c (debug_sym_get_probe_argument_count)
445         (debug_can_evaluate_probe_arguments)
446         (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
447         Remove.
448         (debug_sym_probe_fns): Remove.
449         * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
450         can_evaluate_probe_arguments, sym_evaluate_probe_argument,
451         sym_compile_to_ax>: Remove fields.
452
453 2013-12-06  Pierre Muller  <muller@sourceware.org>
454
455         Fix completion for pascal language.
456         * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
457         (exp : field_exp name COMPLETE): New rule.
458         (exp : SIZEOF): Set correct current_type.
459         (last_was_structop): Remove static variable.
460         (yylex): Remove saw_structop local variable.
461         Adapt code to removal of variables above.
462
463 2013-12-06  Joel Brobecker  <brobecker@adacore.com>
464
465         * frame.c (get_prev_frame_1): Delete variable "this_id".
466         Replace its use by a call to get_frame_id.
467
468 2013-12-05  Anthony Green  <green@moxielogic.com>
469
470         * moxie-tdep.c (moxie_software_single_step): New function.
471         (INST2OFFSET): New helper macro.
472         (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
473         (moxie_process_readu): Move this up in the file.
474
475 2013-12-05  Doug Evans  <xdje42@gmail.com>
476
477         * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
478
479 2013-12-05  Joel Brobecker  <brobecker@adacore.com>
480             Tristan Gingold  <gingold@adacore.com>
481
482         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
483         Accept version 2.  Ignore operations using opcode 6.
484
485 2013-12-05  Joel Brobecker  <brobecker@adacore.com>
486
487         * ada-lex.l (find_dot_all): Fix coding style violations.
488
489 2013-12-03  Walfred Tedeschi  <walfred.tedeschi@intel.com>
490
491         * NEWS:  Add section for Intel(R) Architecture Instructions
492         Extesions mentioning MPX.
493
494 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
495
496         * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
497
498 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
499
500         * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
501         when parse_exp_1 threw an error.  Add comment.
502
503 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
504
505         * NEWS: Mention "-list-features" in the entry documenting
506         the support for the "--language" option.
507
508 2013-12-03  Tom Tromey  <tromey@redhat.com>
509             Jan Kratochvil  <jan.kratochvil@redhat.com>
510             Doug Evans  <dje@google.com>
511             Samuel Bronson  <naesten@gmail.com>
512
513         Bring back gdb-add-index as a contrib script.
514         * contrib/gdb-add-index.sh: New file.
515         * NEWS: Note the addition.
516
517 2013-12-03  Samuel Bronson  <naesten@gmail.com>
518
519         * MAINTAINERS (Write After Approval): Add myself to the list.
520
521 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
522
523         * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
524
525 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
526
527         * mi/mi-main.c: Remove trailing spaces throughout.
528
529 2013-12-03  Pedro Alves  <palves@redhat.com>
530             Joel Brobecker  <brobecker@adacore.com>
531
532         * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
533         * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
534         of a regular error when the GDB/MI command does not exist.
535         * mi/mi-main.c (mi_cmd_list_features): Add
536         "undefined-command-error-code".
537         (mi_print_exception): Print an "undefined-command"
538         error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
539         * NEWS: Add entry documenting the new "code" variable in
540         "^error" result records.
541
542 2013-12-03  Joel Brobecker  <brobecker@adacore.com>
543
544         * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
545         * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
546         * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
547         * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
548         field to output of "-list-features".
549
550         * NEWS: Add entry for new -info-gdb-mi-command.
551
552 2013-12-02  Doug Evans  <dje@google.com>
553             Jan Kratochvil  <jan.kratochvil@redhat.com>
554
555         * objfiles.c (allocate_objfile): Save original_name as an absolute
556         path.
557         * objfiles.h (struct objfile): Expand comment on original_name.
558         * source.c (openp): Call gdb_abspath.
559         * utils.c (gdb_abspath): New function.
560         * utils.h (gdb_abspath): Declare.
561
562 2013-12-02  Pedro Alves  <palves@redhat.com>
563
564         * dcache.c (dcache_read_line): Use target_read_raw_memory.
565         * target.c (target_read_raw_memory): New function.
566         (target_read_stack, target_write_memory, target_write_raw_memory):
567         Update comment.
568         (target_read_code): Add comment.
569         * target.h (target_read_raw_memory): Declare.
570
571 2013-12-02  Pedro Alves  <palves@redhat.com>
572
573         * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
574         unconditionally.
575
576 2013-12-02  Pedro Alves  <pedro@codesourcery.com>
577             Maciej W. Rozycki  <macro@codesourcery.com>
578
579         * remote.c (putpkt_for_catch_errors): Remove function.
580         (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
581         gracefully.
582
583 2013-12-02  Pedro Alves  <palves@redhat.com>
584
585         PR remote/15974
586         * remote-notif.c (handle_notification): Return early if no
587         notification is found.
588
589 2013-12-02  Joel Brobecker  <brobecker@adacore.com>
590
591         * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
592         preprocessor check.
593
594 2013-12-02  Joel Brobecker  <brobecker@adacore.com>
595
596         * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
597
598 2013-12-02  Joel Brobecker  <brobecker@adacore.com>
599
600         * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
601         * ctf.c (ctf_start): Remove obsolete comment.
602
603 2013-12-02  Joel Brobecker  <brobecker@adacore.com>
604
605         * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
606
607 2013-11-30  Doug Evans  <xdje42@gmail.com>
608
609         * auto-load.h (script_language): New members name, auto_load_enabled.
610         Add missing comments on struct members.
611         (auto_load_objfile_script): Delete.
612         * auto-load.c: #include "cli/cli-cmds.h".
613         (auto_load_gdb_scripts_enabled): New function.
614         (script_language_gdb): Update, add new members.
615         (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
616         and call to maybe_add_script moved to caller.
617         (auto_load_objfile_script_1): Auto-load safe-checking and
618         call to maybe_add_script moved here.
619         (auto_load_objfile_script): Make static.  Early exit if support for
620         scripting language hasn't been compiled in, or auto-loading has been
621         disabled.
622         (source_section_scripts): Argument "source_name" renamed to
623         "section_name".  All uses updated.  Replace uses of AUTO_SECTION_NAME
624         with section_name.  Skip loading script if support for scripting
625         language hasn't been compiled in, or auto-loading has been disabled.
626         Call language->source_script_for_objfile instead of calling
627         source_python_script_for_objfile directly.
628         (load_auto_scripts_for_objfile): Update.
629         * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
630         (gdbpy_load_auto_script_for_objfile): Delete.
631         (auto_load_python_scripts_enabled): New function.
632         (script_language_python): Update, add new members.
633         (gdbpy_script_language_defn): New function.
634         * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
635         (gdbpy_script_language_defn): Declare.
636
637         * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
638         py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
639         (source_section_scripts): Moved here from py-auto-load.c.
640         (auto_load_section_scripts): Ditto.
641         * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
642         auto-load.c, renamed AUTO_SECTION_NAME.
643         (source_section_scripts, auto_load_section_scripts): Moved to
644         auto-load.c.
645
646 2013-11-30  Yao Qi  <yao@codesourcery.com>
647
648         * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
649
650 2013-11-29  Sergio Durigan Junior  <sergiodj@redhat.com>
651
652         * gdbarch.sh: Remove include of "gdb_string.h", replace by
653         <string.h>.
654
655 2013-11-29  Doug Evans  <xdje42@gmail.com>
656
657         * python/py-auto-load.c (source_section_scripts): Move comment to
658         more relevant location.
659
660         Whitespace cleanup.
661         * python/py-breakpoint.c: Remove trailing whitespace.
662         * python/py-cmd.c: Ditto.
663         * python/py-evts.c: Ditto.
664         * python/py-finishbreakpoint.c: Ditto.
665         * python/py-frame.c: Ditto.
666         * python/py-function.c: Ditto.
667         * python/py-inferior.c: Ditto.
668         * python/py-infthread.c: Ditto.
669         * python/py-param.c: Ditto.
670         * python/py-prettyprint.c: Ditto.
671         * python/py-symbol.c: Ditto.
672         * python/py-type.c: Ditto.
673         * python/py-utils.c: Ditto.
674         * python/py-value.c: Ditto.
675         * python/python-internal.h: Ditto.
676         * python/python.c: Ditto.
677
678 2013-11-29  Pedro Alves  <palves@redhat.com>
679
680         * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
681
682 2013-11-29  Pedro Alves  <palves@redhat.com>
683
684         * breakpoint.c (build_target_condition_list): Release previous
685         conditions.
686         (build_target_command_list): Release previous commands.
687         (bp_location_dtor): Release target conditions and commands.
688         * remote.c (remote_add_target_side_condition): Don't release
689         conditions.
690         (remote_add_target_side_commands): Don't release commands.
691
692 2013-11-29  Yao Qi  <yao@codesourcery.com>
693             Pedro Alves  <palves@redhat.com>
694
695         * dcache.c (dcache_read_line): Use current_target.beneath
696         instead of &current_target.
697         * target.c (memory_xfer_partial_1): Factor code out to ...
698         (raw_memory_xfer_partial): ... it.  New function.
699         (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
700         is TARGET_OBJECT_RAW_MEMORY.
701
702 2013-11-28  Doug Evans  <xdje42@gmail.com>
703
704         * breakpoint.h (gdbpy_breakpoint_object): Renamed from
705         breakpoint_object.  All uses updated.
706         * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
707         breakpoint_object.  All uses updated.
708         * python.c (*): All uses of breakpoint_object updated.
709         * python.h (*): All uses of breakpoint_object updated.
710         * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
711         * python/py-finishbreakpoint.c (*): Ditto.
712
713 2013-11-28  Doug Evans  <xdje42@gmail.com>
714
715         * configure.ac: Add comments delineating libpython and libmcheck.
716         * configure: Regenerate.
717
718 2013-11-28  Andrew Burgess  <aburgess@broadcom.com>
719             Pedro Alves  <palves@redhat.com>
720
721         * valprint.c (value_check_printable): If the value is entirely
722         unavailable, print a single "<unavailable>" instead of printing
723         all subfields.
724
725 2013-11-28  Pedro Alves  <palves@redhat.com>
726
727         * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
728         Add "set debug frame" output.
729         (frame_stop_reason_symbol_string): New function.
730
731 2013-11-28  Pedro Alves  <palves@redhat.com>
732
733         * frame-unwind.c (default_frame_unwind_stop_reason): Return
734         UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
735         * frame.c (get_prev_frame_1): Remove outer_frame_id check.
736
737 2013-11-28  Pedro Alves  <palves@redhat.com>
738
739         * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
740         set the unwind stop reason to UNWIND_OUTERMOST, not
741         UNWIND_NULL_ID.  Remove explicit check for sentinel frame.
742
743 2013-11-28  Pedro Alves  <palves@redhat.com>
744
745         * frame.c (frame_unwind_register): Say the register was "not
746         saved" instead of "optimized out".
747
748 2013-11-27  Steffen Sledz  <sledz@dresearch-fe.de>
749
750         PR 16152
751         * configure: Rebuild.
752         * configure.ac: Tighten cygwin detection check.
753
754 2013-11-27  Pedro Alves  <palves@redhat.com>
755
756         * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
757         register in the previous frame's arch.
758
759 2013-11-27  Pedro Alves  <palves@redhat.com>
760
761         * frame-unwind.c (frame_unwind_got_optimized): Return
762         an lval_register value instead of a not_lval value.
763
764 2013-11-27  Andrew Burgess  <aburgess@broadcom.com>
765
766         * frame.c: Include "valprint.h".
767         (frame_unwind_register_value): Use value_optimized_out.
768         * value.c (value_fetch_lazy): Likewise.
769
770 2013-11-26  Andrew Burgess  <aburgess@broadcom.com>
771
772         * value.c (allocate_optimized_out_value): Mark value as non-lazy.
773
774 2013-11-26  Tom Tromey  <tromey@redhat.com>
775
776         * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
777         2013-11-22.
778
779 2013-11-26  Walfred Tedeschi  <walfred.tedeschi@intel.com>
780
781         * i386-xstate.h (I386_XSTATE_MPX): New Macro.
782         (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
783         (HAS_MPX): New macro.
784         (HAS_AVX): New macro.
785         (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
786
787 2013-11-25  Keith Seitz  <keiths@redhat.com>
788
789         PR c++/14819
790         * c-exp.y (classify_inner_name): If no matching symbol was
791         found, try looking up the token as a base class.
792         Likewise if a constructor was found.
793         * cp-namespace.c (find_type_baseclass_by_name): New function.
794         * cp-support.h (find_type_baseclass_by_name): Declare.
795         * valops.c (value_struct_elt_for_reference): If we get
796         a non-static field, try to get a value based on the
797         current instance, if any.
798
799 2013-11-24  Yao Qi  <yao@codesourcery.com>
800
801         * disasm.c (dis_asm_read_memory): Call target_read_code
802         instead of target_read_memory.
803
804 2013-11-24  Yao Qi  <yao@codesourcery.com>
805
806         * NEWS: Add note on new "set code-cache" option.
807         * target-dcache.c (code_cache_enabled_1): New variable.
808         (code_cache_enabled): New variable.
809         (show_code_cache, set_code_cache): New function.
810         (code_cache_enabled_p): New function.
811         (_initialize_target_dcache): Register command.
812         * target-dcache.h (code_cache_enabled_p): Declare.
813         * target.c (memory_xfer_partial_1):Handle
814         TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
815         (target_read_code): New function.
816         * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
817         New.
818         (target_read_code): Declare.
819
820 2013-11-24  Yao Qi  <yao@codesourcery.com>
821
822         * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
823         (stack_cache_enabled_1): ... this.  New variable.
824         (stack_cache_enabled_p): Rename to ...
825         (stack_cache_enabled): ... this.  New variable.
826         (set_stack_cache_enabled_p): Rename to ...
827         (set_stack_cache): ... this.  Update caller.
828         (show_stack_cache_enabled_p): Rename to ...
829         (show_stack_cache): ... this.  Update caller.
830         (stack_cache_enabled): Rename to ...
831         (stack_cache_enabled_p): ... this.  Update caller.
832         (_initialize_target_dcache): Replace "data cache" with
833         "target memory cache".
834         * target-dcache.h (stack_cache_enabled): Remove declaration.
835         (stack_cache_enabled_p): Add declaration.
836
837 2013-11-23  Doug Evans  <xdje42@gmail.com>
838
839         * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
840         superfluous.
841
842 2013-11-23  Doug Evans  <xdje42@gmail.com>
843
844         * python/py-frame.c (frapy_block): Fix error message text.
845
846 2013-11-23  Doug Evans  <xdje42@gmail.com>
847
848         * cli/cli-script.c (multi_line_command_p): New function.
849         (recurse_read_control_structure, read_command_lines_1): Call it.
850         (execute_control_command): Consistently have a blank line between
851         each case.
852
853 2013-11-22  Sterling Augustine  <saugustine@google.com>
854
855         PR gdb/16196:
856         * valprint.c (read_string): Set new variable fetchlen based on
857         fetchlimit and size.  Use it in call to partial_memory_read.
858         Update comment.
859
860 2013-11-22  Tom Tromey  <tromey@redhat.com>
861
862         PR backtrace/16155:
863         * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
864         the return address column is unspecified.
865
866 2013-11-22  Tom Tromey  <tromey@redhat.com>
867             Pedro Alves  <palves@redhat.com>
868
869         PR backtrace/16155
870         * value.c (value_fetch_lazy): Internal error if
871         get_frame_register_value returns the same register.
872
873 2013-11-22  Pedro Alves  <palves@redhat.com>
874             Tom Tromey  <tromey@redhat.com>
875
876         * frame.c (frame_stash_add): Now returns whether a frame with the
877         same ID was already known.
878         (compute_frame_id): New function, factored out from get_frame_id.
879         (get_frame_id): No longer lazilly compute the frame id here.
880         (get_prev_frame_if_no_cycle): New function.  Detects wider stack
881         cycles.
882         (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
883         and checking for stack cycles here.
884
885 2013-11-22  Pedro Alves  <palves@redhat.com>
886
887         PR 16155
888         * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
889         this frame and the new previous frame, not between this frame and
890         the next frame.
891
892 2013-11-22  Pedro Alves  <palves@redhat.com>
893
894         PR 16155
895         * dwarf2-frame.c (struct dwarf2_frame_cache)
896         <checked_tailcall_bottom, entry_cfa_sp_offset,
897         entry_cfa_sp_offset_p>: New fields.
898         (dwarf2_frame_cache): Adjust to use the new cache fields instead
899         of locals.  Don't call dwarf2_tailcall_sniffer_first here.
900         (dwarf2_frame_prev_register): Call it here, but only once.
901
902 2013-11-21  Doug Evans  <xdje42@gmail.com>
903
904         * gdbtypes.c: #include bcache.h, dwarf2loc.h.
905         (type_equality_entry): Move here from python/py-type.c.
906         (type_equality_entry_d): Ditto.
907         (compare_maybe_null_strings, check_types_equal): Ditto.
908         (check_types_worklist, types_deeply_equal): Ditto.
909         * gdbtypes.h (types_deeply_equal): Declare.
910         * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
911         (typy_richcompare): Update.
912
913 2013-11-20  Joel Brobecker  <brobecker@adacore.com>
914
915         * python/py-value.c (is_intlike): Delete.
916         (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
917         by use of is_integral_type.
918         (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
919         by use of is_integral_type and check for TYPE_CODE_PTR.
920
921 2013-11-20  Tom Tromey  <tromey@redhat.com>
922
923         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
924         strerror module.
925         * gnulib/aclocal.m4: Update.
926         * gnulib/config.in: Update.
927         * gnulib/configure: Update.
928         * gnulib/import/Makefile.am: Update.
929         * gnulib/import/Makefile.in: Update.
930         * gnulib/import/errno.in.h: Remove.
931         * gnulib/import/intprops.h: Remove.
932         * gnulib/import/m4/errno_h.m4: Remove.
933         * gnulib/import/m4/gnulib-cache.m4: Update.
934         * gnulib/import/m4/gnulib-comp.m4: Update.
935         * gnulib/import/m4/strerror.m4: Remove.
936         * gnulib/import/m4/sys_socket_h.m4: Remove.
937         * gnulib/import/strerror-override.c: Remove.
938         * gnulib/import/strerror-override.h: Remove.
939         * gnulib/import/strerror.c: Remove.
940         * gnulib/update-gnulib.sh: Update.
941
942 2013-11-20  Yao Qi  <yao@codesourcery.com>
943
944         * target-dcache.c (target_dcache_get_or_init): Call
945         set_address_space_data if 'dcache' is NULL.
946
947 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
948
949         * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
950
951 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
952
953         * python/lib/gdb/command/bound_register.py: New file.
954         * data-directory/Makefile.in: Copy bond_register.py to the right path
955         to be initialized at gdb startup.
956
957 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
958
959         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
960         Add MPX registers.
961         (amd64_linux_read_description): Add initialization for MPX and
962         AVX independently.
963         * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
964         (amd64_linux_gregset_reg_offset): Add MPX registers.
965         (amd64_linux_core_read_description): Add initialization for MPX
966         registers.
967         (_initialize_amd64_linux_tdep): Initialize MPX targets.
968         * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
969         register on the list.
970         (tdesc_amd64_mpx_linux) Add new target  for MPX.
971         * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
972         (amd64_mpx_names): MPX register names.
973         (amd64_init_abi): Add MPX register while initializing the ABI.
974         (_initialize_amd64_tdep): Initialize MPX targets.
975         * amd64-tdep.h (amd64_regnum): Add MPX registers.
976         (AMD64_NUM_REGS): Set number of registers taking MPX into account.
977
978 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
979
980         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
981         registers on the range of registers to be read from
982         xsave buffer.
983         (i386_linux_read_description): Add case for MPX.
984         * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
985         (i386_linux_gregset_reg_offset): Add MPX registers.
986         (i386_linux_core_read_description): Initialize also MPX.
987         (_initialize_i386_linux_tdep): Add mpx initialization.
988         * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
989         mpx_register_names.
990         (i386_regnum): Add MPX registers.
991         (I386_MPX_NUM_REGS): New macro.
992         (i386_bnd_regnum_p): New function.
993         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
994         number of registers to be the number of BNDSTATUS.
995         (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
996         * i386-tdep.c: Include features/i386/i386-mpx.c.
997         (i386_mpx_names): Add MPX register names array.
998         (i386_bnd_names): Add bnd pseudo register names array.
999         (i386_bndr_regnum_p): Lookup register numbers for bnd raw
1000         registers.
1001         (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
1002         (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
1003         registers.
1004         (i386_bnd_type): New function.
1005         (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
1006         register types.
1007         (i386_pseudo_register_read_into_value): Add bnd case.
1008         (i386_pseudo_register_write): Add bnd pseudo registers.
1009         (i386_register_reggroup_p): Add MPX register to the group all.
1010         (i386_validate_tdesc_p): Add MPX to the target  description
1011         validation.
1012         (i386_pseudo_register_name): Add bnd pseudo registers.
1013         (i386_gdbarch_init): Add MPX for architecture initialization.
1014         (_initia_initialize_i386_tdep): Add mpx initialization.
1015         * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
1016         XSAVE buffer.
1017         (XSAVE_MPX_ADDR): New macro.
1018         (i387_supply_xsave): Add MPX case.
1019         (i387_collect_xsave): Add MPX case.
1020         * i387-tdep.h (I387_BND0R_REGNUM): New macro.
1021         (I387_BNDCFGU_REGNUM): New macro.
1022         (I387_NUM_MPX_REGS): New macro.
1023         (I387_NUM_BND_REGS): New macro.
1024         (I387_NUM_MPX_CTRL_REGS): New macro.
1025         (I387_MPXEND_REGNUM): New macro.
1026         * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
1027         (I386_XSTATE_BNDCFG): Likewise.
1028         (I386_XSTATE_MPX_MASK): Likewise.
1029         (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
1030         (I386_XSTATE_BNDREGS_SIZE): New macro.
1031         (I386_XSTATE_BNDCFG_SIZE): Likewise.
1032         (I386_XSTATE_SIZE): Adapt for MPX.
1033         (I386_XSTATE_MAX_SIZE): Likewise.
1034
1035 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1036
1037         * features/i386/Makefile: Adapts for using MPX registers.
1038         * features/i386/32bit-mpx.xml: New file.
1039         * features/i386/64bit-mpx.xml: Likewise.
1040         * features/i386/amd64-mpx-linux.c: Likewise.
1041         * features/i386/amd64-mpx-linux.xml: Likewise.
1042         * features/i386/amd64-mpx.c: Likewise.
1043         * features/i386/amd64-mpx.xml: Likewise.
1044         * features/i386/i386-mpx-linux.c: Likewise.
1045         * features/i386/i386-mpx-linux.xml: Likewise.
1046         * features/i386/i386-mpx.c: Likewise.
1047         * features/i386/i386-mpx.xml: Likewise.
1048         * regformats/i386/amd64-mpx-linux.dat: New file.
1049         * regformats/i386/amd64-mpx.dat: Likewise.
1050         * regformats/i386/i386-mpx-linux.dat: Likewise.
1051         * regformats/i386/i386-mpx.dat: Likewise.
1052
1053 2013-11-20  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1054
1055         * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
1056         Modified logic of creating a bitfield to be in sync with
1057         tdesc_gdb_type.
1058
1059 2013-11-20  Will Newton  <will.newton@linaro.org>
1060
1061         * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
1062         error message.
1063
1064 2013-11-20  Yao Qi  <yao@codesourcery.com>
1065
1066         * progspace.h (struct address_space_data): Declare.
1067         * target-dcache.c: Include "progspace.h".
1068         (target_dache): Remove.
1069         (target_dcache_aspace_key): New.
1070         (target_dcache_cleanup): New function.
1071         (target_dcache_init_p): Get data through
1072         target_dcache_aspace_key.
1073         (target_dcache_invalidate): Likewise.
1074         (target_dcache_get): Likewise.
1075         (target_dcache_get_or_init): Likewise.
1076         (_initialize_target_dcache): Initialize
1077         target_dcache_aspace_key.
1078
1079 2013-11-20  Yao Qi  <yao@codesourcery.com>
1080
1081         * progspace.c (struct address_space): Update comments.
1082         <REGISTRY_FIELDS>: New fields.
1083         DEFINE_REGISTRY for address_space.
1084         (new_address_space): Call address_space_alloc_data.
1085         (free_address_space): Call address_space_free_data.
1086         * progspace.h: Use DECLARE_REGISTRY.
1087
1088 2013-11-20  Yao Qi  <yao@codesourcery.com>
1089
1090         * Makefile.in (SFILES):Add target-dcache.c.
1091         (HFILES_NO_SRCDIR): Add target-dcache.h.
1092         (COMMON_OBS): Add target-dcache.o.
1093         * dcache.c: Remove inclusion to "target.h".  Include
1094         "target-dcache.h".
1095         * memattr.c: Include "target-dcache.h".
1096         * top.c: Likewise.
1097         * tracepoint.c: Likewise.
1098         * target.c: (stack_cache_enabled_p_1): Move to
1099         target-dcache.c.
1100         (stack_cache_enabled_p): Likewise.
1101         (set_stack_cache_enabled_p): Likewise.
1102         (show_stack_cache_enabled_p): Likewise.
1103         (target_dcache, target_dcache_init_p): Likewise.
1104         (target_dcache_invalidate): Likewise.
1105         (target_dcache_get, target_dcache_get_or_init): Likewise.
1106         (memory_xfer_partial_1): Call function stack_cache_enabled.
1107         (initialize_target): Move code to target-dcache.c.
1108         * target.h (target_dcache_invalidate): Move to
1109         target-dcache.h.
1110         (target_dcache_get): Likewise.
1111         * target-dcache.c: New.
1112         * target-dcache.h: New.
1113
1114 2013-11-20  Yao Qi  <yao@codesourcery.com>
1115
1116         * target.c (memory_xfer_partial_1): Update 'target_dcache' if
1117         it is initialized.
1118
1119 2013-11-20  Yao Qi  <yao@codesourcery.com>
1120
1121         * dcache.c (last_cache): Remove.
1122         (dcache_free, dcache_init): Update.
1123         (dcache_update):
1124         (dcache_print_line): Add parameter 'dcache'.  Replace
1125         'target_dcache' with 'dcache'.
1126         (dcache_info): Move code to dcache_info_1. Call
1127         'dcache_info_1'.
1128         (dcache_info_1): New function.
1129         (set_dcache_size): Call target_dcache_invalidate.
1130         (set_dcache_line_size): Call target_dcache_invalidate.
1131         * target.c (target_dcache_init_p): New function.
1132         (target_dcache_invalidate): Check target_dcache_init_p first.
1133         (target_dcache_get, target_dcache_get_or_init): New function.
1134         (memory_xfer_partial_1): Adjust.
1135         (initialize_target): Don't initialize 'target_dcache'.
1136         * target.h (struct dcache_struct): Declare.
1137         (target_dcache_get): Declare.
1138
1139 2013-11-19  Yao Qi  <yao@codesourcery.com>
1140
1141         * varobj.c (varobj_get_type): Fix typo.
1142
1143 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
1144
1145         * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1146
1147 2013-11-19  Joel Brobecker  <brobecker@adacore.com>
1148
1149         * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1150         "stat.h".
1151
1152 2013-11-18  Tom Tromey  <tromey@redhat.com>
1153
1154         * common/gdb_stat.h: Remove.
1155         * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1156         * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1157         * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1158         * corefile.c: Use sys/stat.h, not gdb_stat.h.
1159         * ctf.c: Use sys/stat.h, not gdb_stat.h.
1160         * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1161         * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1162         * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1163         * exec.c: Use sys/stat.h, not gdb_stat.h.
1164         * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1165         * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1166         * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1167         * jit.c: Use sys/stat.h, not gdb_stat.h.
1168         * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1169         * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1170         * main.c: Use sys/stat.h, not gdb_stat.h.
1171         * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1172         * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1173         * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1174         * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1175         * procfs.c: Use sys/stat.h, not gdb_stat.h.
1176         * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1177         * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1178         * remote.c: Use sys/stat.h, not gdb_stat.h.
1179         * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1180         * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1181         * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1182         * source.c: Use sys/stat.h, not gdb_stat.h.
1183         * symfile.c: Use sys/stat.h, not gdb_stat.h.
1184         * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1185         * symtab.c: Use sys/stat.h, not gdb_stat.h.
1186         * top.c: Use sys/stat.h, not gdb_stat.h.
1187         * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1188
1189 2013-11-18  Tom Tromey  <tromey@redhat.com>
1190
1191         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1192         sys_stat.
1193         * gnulib/aclocal.m4: Update.
1194         * gnulib/config.in: Update.
1195         * gnulib/configure: Update.
1196         * gnulib/import/Makefile.am: Update.
1197         * gnulib/import/Makefile.in: Update.
1198         * gnulib/import/m4/gnulib-cache.m4: Update.
1199         * gnulib/import/m4/gnulib-comp.m4: Update.
1200         * gnulib/import/m4/sys_stat_h.m4: New.
1201         * gnulib/import/m4/time_h.m4: New.
1202         * gnulib/import/sys_stat.in.h: New.
1203         * gnulib/import/time.in.h: New.
1204
1205 2013-11-18  Tom Tromey  <tromey@redhat.com>
1206
1207         * configure: Rebuild.
1208         * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1209
1210 2013-11-18  Tom Tromey  <tromey@redhat.com>
1211
1212         * configure: Rebuild.
1213         * configure.ac: Don't check for unistd.h.
1214
1215 2013-11-18  Tom Tromey  <tromey@redhat.com>
1216
1217         * configure: Rebuild.
1218         * configure.ac: Don't check for stdlib.h
1219         * defs.h: Include stdlib.h unconditionally.
1220
1221 2013-11-18  Tom Tromey  <tromey@redhat.com>
1222
1223         * config.in: Rebuild.
1224         * configure: Rebuild.
1225         * configure.ac: Don't check for stddef.h.
1226         * defs.h: Unconditionally include stddef.h.  Remove duplicate
1227         inclusion.
1228
1229 2013-11-18  Tom Tromey  <tromey@redhat.com>
1230
1231         * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1232         * common/gdb_dirent.h: Remove.
1233         * common/filestuff.c: Use dirent.h.
1234         * common/linux-osdata.c: Use dirent.h.
1235         (NAMELEN): Define.
1236         * config.in: Rebuild.
1237         * configure: Rebuild.
1238         * configure.ac: Don't use AC_HEADER_DIRENT.
1239         * linux-fork.c: Use dirent.h
1240         * linux-nat.c: Use dirent.h.
1241         * nto-procfs.c: Use dirent.h.
1242         * procfs.c: Use dirent.h.
1243
1244 2013-11-18  Tom Tromey  <tromey@redhat.com>
1245
1246         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1247         * gnulib/aclocal.m4: Update.
1248         * gnulib/config.in: Update.
1249         * gnulib/configure: Update.
1250         * gnulib/import/Makefile.am: Update.
1251         * gnulib/import/Makefile.in: Update.
1252         * gnulib/import/dirent.in.h: New.
1253         * gnulib/import/m4/dirent_h.m4: New.
1254         * gnulib/import/m4/gnulib-cache.m4: Update.
1255         * gnulib/import/m4/gnulib-comp.m4: Update.
1256
1257 2013-11-18  Tom Tromey  <tromey@redhat.com>
1258
1259         * configure: Rebuild.
1260         * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1261         strings.h.
1262
1263 2013-11-18  Tom Tromey  <tromey@redhat.com>
1264
1265         * common/gdb_string.h: Remove.
1266         * aarch64-tdep.c: Use string.h, not gdb_string.h.
1267         * ada-exp.y: Use string.h, not gdb_string.h.
1268         * ada-lang.c: Use string.h, not gdb_string.h.
1269         * ada-lex.l: Use string.h, not gdb_string.h.
1270         * ada-typeprint.c: Use string.h, not gdb_string.h.
1271         * ada-valprint.c: Use string.h, not gdb_string.h.
1272         * aix-thread.c: Use string.h, not gdb_string.h.
1273         * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1274         * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1275         * alpha-nat.c: Use string.h, not gdb_string.h.
1276         * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1277         * alpha-tdep.c: Use string.h, not gdb_string.h.
1278         * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1279         * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1280         * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1281         * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1282         * amd64-nat.c: Use string.h, not gdb_string.h.
1283         * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1284         * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1285         * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1286         * arch-utils.c: Use string.h, not gdb_string.h.
1287         * arm-linux-nat.c: Use string.h, not gdb_string.h.
1288         * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1289         * arm-tdep.c: Use string.h, not gdb_string.h.
1290         * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1291         * armbsd-tdep.c: Use string.h, not gdb_string.h.
1292         * armnbsd-nat.c: Use string.h, not gdb_string.h.
1293         * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1294         * armobsd-tdep.c: Use string.h, not gdb_string.h.
1295         * avr-tdep.c: Use string.h, not gdb_string.h.
1296         * ax-gdb.c: Use string.h, not gdb_string.h.
1297         * ax-general.c: Use string.h, not gdb_string.h.
1298         * bcache.c: Use string.h, not gdb_string.h.
1299         * bfin-tdep.c: Use string.h, not gdb_string.h.
1300         * breakpoint.c: Use string.h, not gdb_string.h.
1301         * build-id.c: Use string.h, not gdb_string.h.
1302         * buildsym.c: Use string.h, not gdb_string.h.
1303         * c-exp.y: Use string.h, not gdb_string.h.
1304         * c-lang.c: Use string.h, not gdb_string.h.
1305         * c-typeprint.c: Use string.h, not gdb_string.h.
1306         * c-valprint.c: Use string.h, not gdb_string.h.
1307         * charset.c: Use string.h, not gdb_string.h.
1308         * cli-out.c: Use string.h, not gdb_string.h.
1309         * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1310         * cli/cli-decode.c: Use string.h, not gdb_string.h.
1311         * cli/cli-dump.c: Use string.h, not gdb_string.h.
1312         * cli/cli-interp.c: Use string.h, not gdb_string.h.
1313         * cli/cli-logging.c: Use string.h, not gdb_string.h.
1314         * cli/cli-script.c: Use string.h, not gdb_string.h.
1315         * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1316         * cli/cli-utils.c: Use string.h, not gdb_string.h.
1317         * coffread.c: Use string.h, not gdb_string.h.
1318         * common/common-utils.c: Use string.h, not gdb_string.h.
1319         * common/filestuff.c: Use string.h, not gdb_string.h.
1320         * common/linux-procfs.c: Use string.h, not gdb_string.h.
1321         * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1322         * common/signals.c: Use string.h, not gdb_string.h.
1323         * common/vec.h: Use string.h, not gdb_string.h.
1324         * core-regset.c: Use string.h, not gdb_string.h.
1325         * corefile.c: Use string.h, not gdb_string.h.
1326         * corelow.c: Use string.h, not gdb_string.h.
1327         * cp-abi.c: Use string.h, not gdb_string.h.
1328         * cp-support.c: Use string.h, not gdb_string.h.
1329         * cp-valprint.c: Use string.h, not gdb_string.h.
1330         * cris-tdep.c: Use string.h, not gdb_string.h.
1331         * d-lang.c: Use string.h, not gdb_string.h.
1332         * dbxread.c: Use string.h, not gdb_string.h.
1333         * dcache.c: Use string.h, not gdb_string.h.
1334         * demangle.c: Use string.h, not gdb_string.h.
1335         * dicos-tdep.c: Use string.h, not gdb_string.h.
1336         * disasm.c: Use string.h, not gdb_string.h.
1337         * doublest.c: Use string.h, not gdb_string.h.
1338         * dsrec.c: Use string.h, not gdb_string.h.
1339         * dummy-frame.c: Use string.h, not gdb_string.h.
1340         * dwarf2-frame.c: Use string.h, not gdb_string.h.
1341         * dwarf2loc.c: Use string.h, not gdb_string.h.
1342         * dwarf2read.c: Use string.h, not gdb_string.h.
1343         * elfread.c: Use string.h, not gdb_string.h.
1344         * environ.c: Use string.h, not gdb_string.h.
1345         * eval.c: Use string.h, not gdb_string.h.
1346         * event-loop.c: Use string.h, not gdb_string.h.
1347         * exceptions.c: Use string.h, not gdb_string.h.
1348         * exec.c: Use string.h, not gdb_string.h.
1349         * expprint.c: Use string.h, not gdb_string.h.
1350         * f-exp.y: Use string.h, not gdb_string.h.
1351         * f-lang.c: Use string.h, not gdb_string.h.
1352         * f-typeprint.c: Use string.h, not gdb_string.h.
1353         * f-valprint.c: Use string.h, not gdb_string.h.
1354         * fbsd-nat.c: Use string.h, not gdb_string.h.
1355         * findcmd.c: Use string.h, not gdb_string.h.
1356         * findvar.c: Use string.h, not gdb_string.h.
1357         * fork-child.c: Use string.h, not gdb_string.h.
1358         * frame.c: Use string.h, not gdb_string.h.
1359         * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1360         * frv-tdep.c: Use string.h, not gdb_string.h.
1361         * gdb.c: Use string.h, not gdb_string.h.
1362         * gdb_bfd.c: Use string.h, not gdb_string.h.
1363         * gdbarch.c: Use string.h, not gdb_string.h.
1364         * gdbtypes.c: Use string.h, not gdb_string.h.
1365         * gnu-nat.c: Use string.h, not gdb_string.h.
1366         * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1367         * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1368         * go-exp.y: Use string.h, not gdb_string.h.
1369         * go-lang.c: Use string.h, not gdb_string.h.
1370         * go32-nat.c: Use string.h, not gdb_string.h.
1371         * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1372         * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1373         * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1374         * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1375         * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1376         * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1377         * i386-linux-nat.c: Use string.h, not gdb_string.h.
1378         * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1379         * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1380         * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1381         * i386-tdep.c: Use string.h, not gdb_string.h.
1382         * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1383         * i386gnu-nat.c: Use string.h, not gdb_string.h.
1384         * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1385         * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1386         * i387-tdep.c: Use string.h, not gdb_string.h.
1387         * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1388         * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1389         * inf-child.c: Use string.h, not gdb_string.h.
1390         * inf-ptrace.c: Use string.h, not gdb_string.h.
1391         * inf-ttrace.c: Use string.h, not gdb_string.h.
1392         * infcall.c: Use string.h, not gdb_string.h.
1393         * infcmd.c: Use string.h, not gdb_string.h.
1394         * inflow.c: Use string.h, not gdb_string.h.
1395         * infrun.c: Use string.h, not gdb_string.h.
1396         * interps.c: Use string.h, not gdb_string.h.
1397         * iq2000-tdep.c: Use string.h, not gdb_string.h.
1398         * irix5-nat.c: Use string.h, not gdb_string.h.
1399         * jv-exp.y: Use string.h, not gdb_string.h.
1400         * jv-lang.c: Use string.h, not gdb_string.h.
1401         * jv-typeprint.c: Use string.h, not gdb_string.h.
1402         * jv-valprint.c: Use string.h, not gdb_string.h.
1403         * language.c: Use string.h, not gdb_string.h.
1404         * linux-fork.c: Use string.h, not gdb_string.h.
1405         * linux-nat.c: Use string.h, not gdb_string.h.
1406         * lm32-tdep.c: Use string.h, not gdb_string.h.
1407         * m2-exp.y: Use string.h, not gdb_string.h.
1408         * m2-typeprint.c: Use string.h, not gdb_string.h.
1409         * m32c-tdep.c: Use string.h, not gdb_string.h.
1410         * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1411         * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1412         * m32r-rom.c: Use string.h, not gdb_string.h.
1413         * m32r-tdep.c: Use string.h, not gdb_string.h.
1414         * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1415         * m68k-tdep.c: Use string.h, not gdb_string.h.
1416         * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1417         * m68klinux-nat.c: Use string.h, not gdb_string.h.
1418         * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1419         * m88k-tdep.c: Use string.h, not gdb_string.h.
1420         * macrocmd.c: Use string.h, not gdb_string.h.
1421         * main.c: Use string.h, not gdb_string.h.
1422         * mdebugread.c: Use string.h, not gdb_string.h.
1423         * mem-break.c: Use string.h, not gdb_string.h.
1424         * memattr.c: Use string.h, not gdb_string.h.
1425         * memory-map.c: Use string.h, not gdb_string.h.
1426         * mep-tdep.c: Use string.h, not gdb_string.h.
1427         * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1428         * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1429         * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1430         * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1431         * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1432         * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1433         * mi/mi-console.c: Use string.h, not gdb_string.h.
1434         * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1435         * mi/mi-interp.c: Use string.h, not gdb_string.h.
1436         * mi/mi-main.c: Use string.h, not gdb_string.h.
1437         * mi/mi-parse.c: Use string.h, not gdb_string.h.
1438         * microblaze-rom.c: Use string.h, not gdb_string.h.
1439         * microblaze-tdep.c: Use string.h, not gdb_string.h.
1440         * mingw-hdep.c: Use string.h, not gdb_string.h.
1441         * minidebug.c: Use string.h, not gdb_string.h.
1442         * minsyms.c: Use string.h, not gdb_string.h.
1443         * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1444         * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1445         * mips-tdep.c: Use string.h, not gdb_string.h.
1446         * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1447         * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1448         * mipsread.c: Use string.h, not gdb_string.h.
1449         * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1450         * mn10300-tdep.c: Use string.h, not gdb_string.h.
1451         * monitor.c: Use string.h, not gdb_string.h.
1452         * moxie-tdep.c: Use string.h, not gdb_string.h.
1453         * mt-tdep.c: Use string.h, not gdb_string.h.
1454         * nbsd-tdep.c: Use string.h, not gdb_string.h.
1455         * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1456         * nto-procfs.c: Use string.h, not gdb_string.h.
1457         * nto-tdep.c: Use string.h, not gdb_string.h.
1458         * objc-lang.c: Use string.h, not gdb_string.h.
1459         * objfiles.c: Use string.h, not gdb_string.h.
1460         * opencl-lang.c: Use string.h, not gdb_string.h.
1461         * osabi.c: Use string.h, not gdb_string.h.
1462         * osdata.c: Use string.h, not gdb_string.h.
1463         * p-exp.y: Use string.h, not gdb_string.h.
1464         * p-lang.c: Use string.h, not gdb_string.h.
1465         * p-typeprint.c: Use string.h, not gdb_string.h.
1466         * parse.c: Use string.h, not gdb_string.h.
1467         * posix-hdep.c: Use string.h, not gdb_string.h.
1468         * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1469         * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1470         * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1471         * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1472         * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1473         * printcmd.c: Use string.h, not gdb_string.h.
1474         * procfs.c: Use string.h, not gdb_string.h.
1475         * prologue-value.c: Use string.h, not gdb_string.h.
1476         * python/py-auto-load.c: Use string.h, not gdb_string.h.
1477         * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1478         * ravenscar-thread.c: Use string.h, not gdb_string.h.
1479         * regcache.c: Use string.h, not gdb_string.h.
1480         * registry.c: Use string.h, not gdb_string.h.
1481         * remote-fileio.c: Use string.h, not gdb_string.h.
1482         * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1483         * remote-mips.c: Use string.h, not gdb_string.h.
1484         * remote-sim.c: Use string.h, not gdb_string.h.
1485         * remote.c: Use string.h, not gdb_string.h.
1486         * reverse.c: Use string.h, not gdb_string.h.
1487         * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1488         * ser-base.c: Use string.h, not gdb_string.h.
1489         * ser-go32.c: Use string.h, not gdb_string.h.
1490         * ser-mingw.c: Use string.h, not gdb_string.h.
1491         * ser-pipe.c: Use string.h, not gdb_string.h.
1492         * ser-tcp.c: Use string.h, not gdb_string.h.
1493         * ser-unix.c: Use string.h, not gdb_string.h.
1494         * serial.c: Use string.h, not gdb_string.h.
1495         * sh-tdep.c: Use string.h, not gdb_string.h.
1496         * sh64-tdep.c: Use string.h, not gdb_string.h.
1497         * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1498         * skip.c: Use string.h, not gdb_string.h.
1499         * sol-thread.c: Use string.h, not gdb_string.h.
1500         * solib-dsbt.c: Use string.h, not gdb_string.h.
1501         * solib-frv.c: Use string.h, not gdb_string.h.
1502         * solib-osf.c: Use string.h, not gdb_string.h.
1503         * solib-spu.c: Use string.h, not gdb_string.h.
1504         * solib-target.c: Use string.h, not gdb_string.h.
1505         * solib.c: Use string.h, not gdb_string.h.
1506         * somread.c: Use string.h, not gdb_string.h.
1507         * source.c: Use string.h, not gdb_string.h.
1508         * sparc-nat.c: Use string.h, not gdb_string.h.
1509         * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1510         * sparc-tdep.c: Use string.h, not gdb_string.h.
1511         * sparc64-tdep.c: Use string.h, not gdb_string.h.
1512         * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1513         * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1514         * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1515         * spu-linux-nat.c: Use string.h, not gdb_string.h.
1516         * spu-multiarch.c: Use string.h, not gdb_string.h.
1517         * spu-tdep.c: Use string.h, not gdb_string.h.
1518         * stabsread.c: Use string.h, not gdb_string.h.
1519         * stack.c: Use string.h, not gdb_string.h.
1520         * std-regs.c: Use string.h, not gdb_string.h.
1521         * symfile.c: Use string.h, not gdb_string.h.
1522         * symmisc.c: Use string.h, not gdb_string.h.
1523         * symtab.c: Use string.h, not gdb_string.h.
1524         * target.c: Use string.h, not gdb_string.h.
1525         * thread.c: Use string.h, not gdb_string.h.
1526         * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1527         * tilegx-tdep.c: Use string.h, not gdb_string.h.
1528         * top.c: Use string.h, not gdb_string.h.
1529         * tracepoint.c: Use string.h, not gdb_string.h.
1530         * tui/tui-command.c: Use string.h, not gdb_string.h.
1531         * tui/tui-data.c: Use string.h, not gdb_string.h.
1532         * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1533         * tui/tui-file.c: Use string.h, not gdb_string.h.
1534         * tui/tui-layout.c: Use string.h, not gdb_string.h.
1535         * tui/tui-out.c: Use string.h, not gdb_string.h.
1536         * tui/tui-regs.c: Use string.h, not gdb_string.h.
1537         * tui/tui-source.c: Use string.h, not gdb_string.h.
1538         * tui/tui-stack.c: Use string.h, not gdb_string.h.
1539         * tui/tui-win.c: Use string.h, not gdb_string.h.
1540         * tui/tui-windata.c: Use string.h, not gdb_string.h.
1541         * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1542         * typeprint.c: Use string.h, not gdb_string.h.
1543         * ui-file.c: Use string.h, not gdb_string.h.
1544         * ui-out.c: Use string.h, not gdb_string.h.
1545         * user-regs.c: Use string.h, not gdb_string.h.
1546         * utils.c: Use string.h, not gdb_string.h.
1547         * v850-tdep.c: Use string.h, not gdb_string.h.
1548         * valarith.c: Use string.h, not gdb_string.h.
1549         * valops.c: Use string.h, not gdb_string.h.
1550         * valprint.c: Use string.h, not gdb_string.h.
1551         * value.c: Use string.h, not gdb_string.h.
1552         * varobj.c: Use string.h, not gdb_string.h.
1553         * vax-tdep.c: Use string.h, not gdb_string.h.
1554         * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1555         * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1556         * windows-nat.c: Use string.h, not gdb_string.h.
1557         * xcoffread.c: Use string.h, not gdb_string.h.
1558         * xml-support.c: Use string.h, not gdb_string.h.
1559         * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1560         * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1561
1562 2013-11-18  Tom Tromey  <tromey@redhat.com>
1563
1564         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1565         and strstr.
1566         * gnulib/aclocal.m4: Update.
1567         * gnulib/config.in: Update.
1568         * gnulib/configure: Update.
1569         * gnulib/import/Makefile.am: Update.
1570         * gnulib/import/Makefile.in: Update.
1571         * gnulib/import/errno.in.h: New.
1572         * gnulib/import/intprops.h: New.
1573         * gnulib/import/m4/errno_h.m4: New.
1574         * gnulib/import/m4/gnulib-cache.m4: Update.
1575         * gnulib/import/m4/gnulib-comp.m4: Update.
1576         * gnulib/import/m4/strerror.m4: New.
1577         * gnulib/import/m4/strstr.m4: New.
1578         * gnulib/import/m4/sys_socket_h.m4: New.
1579         * gnulib/import/strerror-override.c: New.
1580         * gnulib/import/strerror-override.h: New.
1581         * gnulib/import/strerror.c: New.
1582         * gnulib/import/strstr.c: New.
1583
1584 2013-11-18  Tom Tromey  <tromey@redhat.com>
1585
1586         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1587         multiple lines.
1588
1589 2013-11-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
1590
1591         * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1592         * sparc-tdep.h: And its prototype.
1593
1594         * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1595         function.
1596         (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1597
1598 2013-11-18  Pedro Alves  <palves@redhat.com>
1599
1600         * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1601         use unpack_pointer.
1602
1603 2013-11-18  Joel Brobecker  <brobecker@adacore.com>
1604
1605         * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1606         to -list-features output.
1607
1608 2013-11-17  Joel Brobecker  <brobecker@adacore.com>
1609
1610         * dwarf2expr.h (struct dwarf_expr_context_funcs)
1611         <read_addr_from_reg>: Renames "read_reg".
1612         * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1613         Adjust comment.
1614         (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1615         Use read_addr_from_reg in place of read_reg.
1616         * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1617         in place of read_reg.
1618         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1619         dwarf_expr_read_reg.
1620         (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1621         with dwarf_expr_read_addr_from_reg.
1622         (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1623         (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1624         needs_frame_read_addr_from_reg.
1625
1626 2013-11-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1627
1628         * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1629
1630 2013-11-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1631
1632         * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1633         NULL.
1634
1635 2013-11-15  Tom Tromey  <tromey@redhat.com>
1636
1637         PR c++/16117:
1638         * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1639         (classify_name): Likewise.  Prefer a field of "this" over a
1640         filename.
1641         (classify_inner_name, yylex): Update.
1642
1643 2013-11-15  Joel Brobecker  <brobecker@adacore.com>
1644
1645         * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1646         Extend the documentation a bit.
1647         <get_reg_value>: New field.
1648         * dwarf2loc.c (dwarf_expr_get_reg_value)
1649         (needs_frame_get_reg_value): New functions.
1650         (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1651         callback.
1652         * dwarf2-frame.c (get_reg_value): New function.
1653         (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1654         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1655         Use new callback to compute result_val.
1656
1657 2013-11-15  Alan Modra  <amodra@gmail.com>
1658
1659         * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1660         (ppc64_desc_entry_point): ..this.  Update comments here and at
1661         call points.
1662         (ppc64_standard_linkage1, ppc64_standard_linkage2,
1663         ppc64_standard_linkage3): Update comments.
1664         (ppc64_standard_linkage4, ppc64_standard_linkage5,
1665         (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1666         patterns.
1667         (ppc64_standard_linkage4_target): New function.
1668         (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1669         * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup.  Correct
1670         nop match.  Fix comment wrap.
1671
1672 2013-11-14  Pedro Alves  <palves@redhat.com>
1673
1674         * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1675         STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1676
1677 2013-11-14  Pedro Alves  <palves@redhat.com>
1678
1679         * infrun.c (struct execution_control_state)
1680         <stepped_after_stopped_by_watchpoint>: New field.
1681         (get_inferior_stop_soon): New function.
1682         (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1683         moved to struct execution_control_state -- adjust.  Use
1684         get_inferior_stop_soon.  Split TARGET_WAITKIND_STOPPED handling to
1685         new function.
1686         (handle_signal_stop): New function, factored out from
1687         handle_inferior_event.
1688
1689 2013-11-14  Pedro Alves  <palves@redhat.com>
1690
1691         * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1692         return a boolean.
1693         * breakpoint.c (bpstat_explains_signal): Adjust to return a
1694         boolean.
1695         (explains_signal_watchpoint, base_breakpoint_explains_signal):
1696         Adjust to return a boolean.
1697         * breakpoint.h (enum bpstat_signal_value): Delete.
1698         (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1699         (bpstat_explains_signal): Likewise.
1700         * infrun.c (handle_inferior_event) <random signal checks>:
1701         bpstat_explains_signal now returns a boolean - adjust.  No longer
1702         consider hiding signals.
1703
1704 2013-11-14  Pedro Alves  <palves@redhat.com>
1705
1706         * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1707         Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1708         (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1709         BPSTAT_SIGNAL_HIDE.
1710         (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1711         instead of BPSTAT_SIGNAL_HIDE.
1712         * infrun.c (handle_inferior_event): Rework random signal checks.
1713
1714 2013-11-14  Pedro Alves  <palves@redhat.com>
1715
1716         * infrun.c (struct execution_control_state): Remove
1717         'random_signal' field.
1718         (handle_syscall_event): Use bpstat_causes_stop instead of
1719         bpstat_explains_signal.  Don't set ecs->random_signal.
1720         (handle_inferior_event): New 'random_signal' local.
1721         <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1722         TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1723         bpstat_explains_signal.  Don't set ecs->random_signal.
1724         <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1725         ecs->random_signal.
1726
1727 2013-11-14  Pedro Alves  <palves@redhat.com>
1728
1729         * infrun.c (handle_inferior_event): Move comment from the
1730         function's body to the function's description, adjusted.
1731
1732 2013-11-14  Pedro Alves  <palves@redhat.com>
1733
1734         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1735         Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1736         Assert we never fall through out of the TARGET_WAITKIND_LOADED
1737         case.
1738
1739 2013-11-14  Tom Tromey  <tromey@redhat.com>
1740
1741         * python/py-linetable.c (ltpy_has_line)
1742         (ltpy_get_all_source_lines): Fix loop termination condition.
1743
1744 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
1745
1746         * mi/mi-parse.h (struct mi_parse) <language>: New field.
1747         * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1748         PARSE->LANGUAGE during command execution, if set.
1749         * mi/mi-parse.c: Add "language.h" #include.
1750         (mi_parse): Add parsing of "--language" command option.
1751
1752         * NEWS: Add entry mentioning the new "--language" command option.
1753
1754 2013-11-14  Pedro Alves  <palves@redhat.com>
1755             Joel Brobecker  <brobecker@adacore.com>
1756
1757         * cli/cli-utils.h (extract_arg_const): Add declaration.
1758         * cli/cli-utils.c (extract_arg_const): New function.
1759         (extract_arg): Reimplement using extract_arg_const.
1760
1761 2013-11-14  Joel Brobecker  <brobecker@adacore.com>
1762
1763         * language.h: Add "symtab.h" #include.
1764
1765 2013-11-13  Doug Evans  <xdje42@gmail.com>
1766
1767         * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1768         specific breakpoints, don't evaluate breakpoint condition if
1769         different thread.
1770
1771 2013-11-13  Keith Seitz  <keiths@redhat.com>
1772
1773         PR c++/7935
1774         PR c++/10541
1775         * cp-support.c (insepct_type): Add support for substituting
1776         namespace aliases, too.
1777         * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1778         for DW_TAG_imported_declaration.
1779         (add_partial_symbol): Likewise.
1780         (process_die): Handle namespace aliases with
1781         read_namespace_alias.
1782         (die_needs_namespace): Add DW_TAG_imported_declaration.
1783         (read_namespace_alias): New function.
1784         (load_partial_dies): Load DW_TAG_imported_declaration, too.
1785         (new_symbol_full): Handle DW_TAG_imported_declaration.
1786
1787 2013-11-13  Keith Seitz  <keiths@redhat.com>
1788
1789         * p-exp.y (uptok): Make first parameter const.
1790         (yylex): Make `tokstart' and `tokptr' const.
1791         Don't copy the lexer input to a temporary buffer.
1792         Make `p' const.
1793         Remove const workaround for parse_escape.
1794         Create a temporary buffer for a convenience variable instead
1795         of doing in-place modification of the input.
1796         If a match is found with a different case from the input,
1797         do not change the input at all.
1798         Use `tmp' to construct the resultant stoken instead of
1799         `tokstart'.
1800
1801 2013-11-13  Doug Evans  <xdje42@gmail.com>
1802
1803         * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1804
1805 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1806
1807         * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1808         entry with "ada-exceptions".
1809
1810 2013-11-13  Joel Brobecker  <brobecker@adacore.com>
1811
1812         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1813         after re-initialization of OBJFILE's obstack.
1814
1815 2013-11-12  Doug Evans  <xdje42@gmail.com>
1816
1817         * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1818         bs->stop != 0 on entry.  Update function comment.  Simplify early
1819         exit for frame mismatch.  Reindent rest of function.
1820
1821 2013-11-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1822
1823         * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1824         NULL.
1825
1826 2013-11-12  Doug Evans  <dje@google.com>
1827
1828         Work around gold/15646.
1829         * dwarf2read.c (read_index_from_section): Update comment.
1830         (struct dw2_symtab_iterator): New member global_seen.
1831         (dw2_symtab_iter_init): Initialize it.
1832         (dw2_symtab_iter_next): Skip duplicate global symbols.
1833         (dw2_expand_symtabs_matching): Ditto.
1834
1835 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1836
1837         * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1838         * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1839         command.
1840         * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1841         (mi_cmd_info_ada_exceptions): New function.
1842         * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1843
1844 2013-11-12  Joel Brobecker  <brobecker@adacore.com>
1845
1846         * ada-lang.h: #include "vec.h".
1847         (struct ada_exc_info): New.
1848         (ada_exc_info): New typedef.
1849         (DEF_VEC_O(ada_exc_info)): New vector.
1850         (ada_exceptions_list): Add declaration.
1851         * ada-lang.c (ada_is_exception_sym)
1852         (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1853         (sort_remove_dups_ada_exceptions_list)
1854         (ada_exc_search_name_matches, ada_add_standard_exceptions)
1855         (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1856         (ada_exceptions_list_1, ada_exceptions_list)
1857         (info_exceptions_command): New function.
1858         (_initialize_ada_language): Add "info exception" command.
1859
1860 2013-11-11  Phil Muldoon  <pmuldoon@redhat.com>
1861
1862         PR python/15629
1863         * NEWS: Add linetable feature.
1864         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1865         * python/py-linetable.c: New file.
1866         * python/py-symtab.c (stpy_get_linetable): New function.
1867         * python/python-internal.h (symtab_to_linetable_object): Declare.
1868         (gdbpy_initialize_linetable): Ditto.
1869         * python/python.c (_initialize_python): Call
1870         gdbpy_initialize_linetable.
1871
1872 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1873
1874         * ada-lang.c (create_ada_exception_catchpoint): Enhance
1875         the documentation of fields "except_string" and "condition".
1876         * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1877         CONDITION on the heap before passing it to
1878         create_ada_exception_catchpoint.
1879         (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1880         CONDITION.
1881
1882 2013-11-11  Tom Tromey  <tromey@redhat.com>
1883
1884         * config.in, configure: Rebuild.
1885         * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1886
1887 2013-11-11  Joel Brobecker  <brobecker@adacore.com>
1888
1889         * remote-sim.c (gdbsim_detach): Break declaration into
1890         shorter lines.  No code change.
1891
1892 2013-11-11  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1893
1894         * remote-sim.c (gdbsim_detach): Fix prototype.
1895
1896 2013-11-08  Doug Evans  <dje@google.com>
1897
1898         * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1899         (create_debug_types_hash_table): Only print debugging messages for
1900         each TU if dwarf2-read >= 2.
1901         (process_queue): Ditto.
1902         (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1903         Update doc string.
1904
1905 2013-11-08  Tom Tromey  <tromey@redhat.com>
1906
1907         * configure: Rebuild.
1908         * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1909
1910 2013-11-08  Tom Tromey  <tromey@redhat.com>
1911
1912         * configure, config.in: Rebuild.
1913         * configure.ac: Remove unused configury.
1914
1915 2013-11-08  Tom Tromey  <tromey@redhat.com>
1916
1917         * m32c-tdep.c: Use gdb_string.h.
1918
1919 2013-11-08  Tom Tromey  <tromey@redhat.com>
1920
1921         * configure, config.in: Rebuild.
1922         * configure.ac: Remove all link.h-related checks.
1923
1924 2013-11-08  Tom Tromey  <tromey@redhat.com>
1925
1926         * acinclude.m4: Include common.m4.
1927         * common/common.m4: New file.
1928         * configure, config.in: Rebuild.
1929         * configure.ac: Use GDB_AC_COMMON.
1930
1931 2013-11-08  Doug Evans  <dje@google.com>
1932
1933         * NEWS: Mention that "set debug symtab-create" now accepts a
1934         verbosity level.
1935         * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1936         to set the symtab's primary flag.
1937         * jit.c (finalize_symtab): Ditto.
1938         * mdebugread.c (psymtab_to_symtab_1): Ditto.
1939         * symfile.c (allocate_symtab): Only print debugging messages for
1940         symtab_create_debug levels 2 and higher.
1941         * symtab.c (symtab_create_debug): Change type to unsigned int.
1942         (set_symtab_primary): New function.
1943         (_initialize_symtab): Change "set debug symtab-create" to a
1944         zuinteger option.
1945         * symtab.h (set_symtab_primary): Declare.
1946         (symtab_create_debug): Update decl.
1947
1948 2013-11-08  Tom Tromey  <tromey@redhat.com>
1949
1950         * aix-thread.c (aix_thread_detach): Update.
1951         * corelow.c (core_detach): Update.
1952         * darwin-nat.c (darwin_detach): Update.
1953         * dec-thread.c (dec_thread_detach): Update.
1954         * gnu-nat.c (gnu_detach): Update.
1955         * go32-nat.c (go32_detach): Update.
1956         * inf-ptrace.c (inf_ptrace_detach): Update.
1957         * inf-ttrace.c (inf_ttrace_detach): Update.
1958         * linux-fork.c (linux_fork_detach): Update.
1959         * linux-fork.h (linux_fork_detach): Update.
1960         * linux-nat.c (linux_nat_detach): Update.  Introduce "tem"
1961         local for const-correctness.
1962         * linux-thread-db.c (thread_db_detach): Update.
1963         * monitor.c (monitor_detach): Update.
1964         * nto-procfs.c (procfs_detach): Update.
1965         * procfs.c (procfs_detach): Update.
1966         * record.c (record_detach): Update.
1967         * record.h (record_detach): Update.
1968         * remote-m32r-sdi.c (m32r_detach): Update.
1969         * remote-mips.c (mips_detach): Update.
1970         * remote-sim.c (gdbsim_detach): Update.
1971         * remote.c (remote_detach_1, remote_detach)
1972         (extended_remote_detach): Update.
1973         * sol-thread.c (sol_thread_detach): Update.
1974         * target.c (target_detach): Make "args" const.
1975         (init_dummy_target): Update.
1976         * target.h (struct target_ops) <to_detach>: Make argument const.
1977         (target_detach): Likewise.
1978         * windows-nat.c (windows_detach): Update.
1979
1980 2013-11-07  Doug Evans  <dje@google.com>
1981
1982         PR 11786
1983         *  solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1984         and align fields for PT_GNU_RELRO segments.
1985
1986 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1987
1988         PR python/15747
1989         * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1990
1991 2013-11-07  Phil Muldoon  <pmuldoon@redhat.com>
1992
1993         * NEWS: Document Python temporary breakpoint support.
1994         * python/py-breakpoint.c (bppy_get_temporary): New function.
1995         (bppy_init): New keyword: temporary. Parse it and set breakpoint
1996         to temporary if True.
1997
1998 2013-11-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
1999
2000         * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
2001         removed to allow analyzing unconditional branch instructions
2002         with PC-relative offsets of zero.
2003
2004 2013-11-07  Yao Qi  <yao@codesourcery.com>
2005
2006         * mi/mi-cmd-var.c: Include "language.h".
2007         (mi_cmd_var_info_expression): Get language name from
2008         language_defn.
2009         * varobj.c (varobj_language_string): Remove.
2010         (variable_language): Remove declaration.
2011         (languages): Remove.
2012         (varobj_get_language): Change the type of return value.
2013         (variable_language): Remove.
2014         * varobj.h (enum varobj_languages): Remove.
2015         (varobj_language_string): Remove declaration.
2016         (varobj_get_language): Update declaration.
2017
2018 2013-11-07  Yao Qi  <yao@codesourcery.com>
2019
2020         * language.h (struct language_defn) <la_natural_name>: New
2021         field.
2022         * ada-lang.c (ada_language_defn): Initialize field
2023         'la_natural_name'.
2024         * c-lang.c (c_language_defn): Likewise.
2025         (cplus_language_defn, asm_language_defn): Likewise.
2026         * d-lang.c (d_language_defn): Likewise.
2027         * f-lang.c (f_language_defn): Likewise.
2028         * go-lang.c (go_language_defn): Likewise.
2029         * jv-lang.c (java_language_defn): Likewise.
2030         * language.c (unknown_language_defn ): Likewise.
2031         (auto_language_defn): Likewise.
2032         * m2-lang.c (m2_language_defn): Likewise.
2033         * objc-lang.c (objc_language_defn): Likewise.
2034         * opencl-lang.c (opencl_language_defn): Likewise.
2035         * p-lang.c (pascal_language_defn): Likewise.
2036
2037 2013-11-07  Yao Qi  <yao@codesourcery.com>
2038
2039         * language.c (language_str): Return const char *.
2040         (add_language): Add const to 'language_names'
2041         * language.h (struct language_defn) <la_name>: Add const.
2042         (language_str: Update declaration.
2043
2044 2013-11-06  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2045
2046         * s390-linux-nat.c (s390_read_description): Consider the TE field
2047         in the HWCAP for determining 'have_regset_tdb'.
2048
2049 2013-11-06  Will Newton  <will.newton@linaro.org>
2050
2051         PR gdb/12866
2052         * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
2053         values.  (read_partial_die): Likewise.
2054
2055 2013-11-06  Muhammad Bilal  <mbilal@codesourcery.com>
2056
2057         PR cli/16122
2058         * top.c (command_line_input): Unify interactivity tests to use
2059         input_from_terminal_p.
2060         * event-top.c (command_line_handler): Likewise.
2061
2062 2013-11-06  Yao Qi  <yao@codesourcery.com>
2063
2064         * Makefile.in (check-perf): New target.
2065
2066 2013-11-05  Will Newton  <will.newton@linaro.org>
2067
2068         PR gdb/7670
2069         * arm-tdep.c (print_fpu_flags): Use filtered output routines.
2070         (arm_print_float_info): Likewise.
2071
2072 2013-11-04  Anton Blanchard  <anton@samba.org>
2073
2074         * target.c (memory_xfer_partial): Cap write to 4KB.
2075
2076 2013-11-01  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2077
2078         * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
2079         probe scan even when the arch provides no get_longjmp_target.
2080
2081 2013-10-31  Pedro Alves  <palves@redhat.com>
2082
2083         * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
2084         (handle_inferior_event) <TARGET_WAITKIND_FORKED,
2085         TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
2086         GDB_SIGNAL_TRAP, or clear it.  Pass GDB_SIGNAL_0 to
2087         bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
2088         <bpstat handling>: If the bpstat chain wants the signal to be
2089         hidden, then set stop_signal to GDB_SIGNAL_0 instead of
2090         GDB_SIGNAL_TRAP.
2091
2092 2013-10-31  Andrew Burgess  <aburgess@broadcom.com>
2093
2094         * breakpoint.c (update_watchpoint): Update error message and add
2095         an additional error message.
2096
2097 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2098
2099         * s390-tdep.h: Rename to...
2100         * s390-linux-tdep.h: ...here.
2101         * s390-tdep.c: Rename to...
2102         * s390-linux-tdep.c: ...here.  Adjust #include.
2103         * s390-nat.c: Rename to...
2104         * s390-linux-nat.c: ...here.  Adjust #include.
2105         * config/s390/s390.mh: Rename to...
2106         * config/s390/linux.mh: ...here.  Reflect rename s390-nat.o ->
2107         s390-linux-nat.o.
2108         * configure.host: Reflect host rename "s390" -> "linux".
2109         * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
2110         * Makefile.in (ALL_TARGET_OBS): Likewise.
2111         (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
2112         s390-linux-tdep.h.
2113         (ALLDEPFILES): Reflect rename of .c files.
2114
2115 2013-10-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2116
2117         * s390-nat.c: Whitespace cleanup.
2118         * s390-tdep.c: Likewise.
2119         * s390-tdep.h: Remove empty line at end of file.
2120
2121 2013-10-30  Maciej W. Rozycki  <macro@codesourcery.com>
2122
2123         * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2124         siginfo_size.
2125
2126 2013-10-29  Tom Tromey  <tromey@redhat.com>
2127
2128         * utils.c (reg): Move undefinition...
2129         * gdb_curses.h: ... here.  Update comment to mention AIX.
2130
2131 2013-10-29  Nicolas Blanc  <nicolas.blanc@intel.com>
2132
2133         * exec.h (add_target_sections_of_objfile): New declaration.
2134         * exec.c (add_target_sections_of_objfile): New function.
2135         * symfile.c (add_symbol_file_command): Update current target sections.
2136         (remove_symbol_file_command): New command.
2137         (symfile_free_objfile): New function.
2138         (_initialize_symfile): Register observer for free_objfile events.
2139         * NEWS: Add description of the remove-symbol-file command.
2140         * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2141         * objfiles.c (free_objfile): Notify free_objfile.
2142         (is_addr_in_objfile): New function.
2143         * objfiles.h (is_addr_in_objfile): New declaration.
2144         * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2145         events instead of solib_unloaded events.
2146         (_initialize_printcmd): Register observer for free_objfile instead
2147         of solib_unloaded notifications.
2148         * solib.c (remove_user_added_objfile): New function.
2149         (_initialize_symfile): Add remove-symbol-file.
2150
2151 2013-10-29  Andrew Burgess  <aburgess@broadcom.com>
2152
2153         * infcmd.c (default_print_one_register_info): Use val_print to
2154         print all values even optimized out or unavailable ones.  Don't
2155         try to print a raw form of optimized out or unavailable values.
2156
2157 2013-10-29  Yao Qi  <yao@codesourcery.com>
2158
2159         * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2160         parameter 'arg' instead of from program_space_data.
2161         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2162         * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2163         * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2164         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2165         * inflow.c (inflow_inferior_data_cleanup): Get data from
2166         parameter 'arg' instead of inferior_data.
2167         * registry.h: Add comments.
2168
2169 2013-10-28  Pedro Alves  <palves@redhat.com>
2170
2171         * breakpoint.c (watchpoints_triggered)
2172         <!target_stopped_data_address>: Hardcode return 1.
2173
2174 2013-10-28  Pedro Alves  <palves@redhat.com>
2175
2176         * infrun.c (process_event_stop_test): Remove unnecessary scoping
2177         level and reindent.
2178
2179 2013-10-28  Pedro Alves  <palves@redhat.com>
2180
2181         * infrun.c (process_event_stop_test): New function, factored out
2182         from handle_inferior_event.
2183         (handle_inferior_event): 'process_event_stop_test' is now a
2184         function instead of a goto label -- adjust.
2185
2186 2013-10-28  Pedro Alves  <palves@redhat.com>
2187
2188         * infrun.c (handle_inferior_event): Move process_event_stop_test
2189         goto label to the else branch of the ecs->random_signal check,
2190         along with FRAME and GDBARCH re-fetching.
2191
2192 2013-10-28  Pedro Alves  <palves@redhat.com>
2193
2194         * infrun.c (switch_back_to_stepped_thread): New function, factored
2195         out from handle_inferior_event.
2196         (handle_inferior_event): Adjust to call
2197         switch_back_to_stepped_thread.  Call it also at the tail of the
2198         random signal handling, and return, instead of also handling
2199         random signals just before the stepping tests.
2200
2201 2013-10-28  Pedro Alves  <palves@redhat.com>
2202
2203         * infrun.c (clear_stop_func): Delete.
2204         (handle_inferior_event): Don't call clear_stop_func and don't
2205         clear 'ecs->random_signal'.
2206
2207 2013-10-27  Yao Qi  <yao@codesourcery.com>
2208
2209         * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2210         (varobj_create, varobj_get_path_expr): Update.
2211         (varobj_value_has_mutated, varobj_update): Likewise.
2212         (create_child_with_value, new_root_variable): Likewise.
2213         (number_of_children, name_of_variable): Likewise.
2214         (value_of_child, my_value_of_variable): Likewise.
2215         (varobj_value_is_changeable_p): Likewise.
2216
2217 2013-10-25  Yao Qi  <yao@codesourcery.com>
2218
2219         * language.h (struct lang_varobj_ops): Declare.
2220         (struct language_defn) <la_varobj_ops>: New field.
2221         * ada-lang.c: Include "varobj.h"
2222         (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2223         ada_varobj_ops.
2224         * c-lang.c: Include "varobj.h"
2225         (c_language_defn): Initialize field 'la_varobj_ops' with
2226         c_varobj_ops.
2227         (cplus_language_defn): Initialize field 'la_varobj_ops' with
2228         cplus_varobj_ops.
2229         (asm_language_defn): Initialize field 'la_varobj_ops' with
2230         default_varobj_ops.
2231         (minimal_language_defn): Likewise.
2232         * d-lang.c (d_language_defn): Likewise.
2233         * f-lang.c (f_language_defn): Likewise.
2234         * go-lang.c (go_language_defn): Likewise.
2235         * m2-lang.c (m2_language_defn): Likewise.
2236         * objc-lang.c (objc_language_defn): Likewise.
2237         * opencl-lang.c (opencl_language_defn): Likewise.
2238         * p-lang.c (pascal_language_defn): Likewise.
2239         * language.c (unknown_language_defn): Likewise.
2240         (auto_language_defn): Likewise.
2241         (local_language_defn): Likewise.
2242         * jv-lang.c (java_language_defn): Initialize field
2243         'la_varobj_ops' with java_varobj_ops.
2244         * varobj.c (varobj_create): Update.
2245         * varobj.h (default_varobj_ops): Define macro.
2246
2247 2013-10-25  Pedro Alves  <palves@redhat.com>
2248
2249         * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2250         static field value.
2251         (cp_print_static_field): If the value is entirely optimized out,
2252         print <optimized out> here.
2253         * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2254         static field value.
2255         * p-valprint.c (pascal_object_print_static_field): If the value is
2256         entirely optimized out, print <optimized out> here.
2257         * valops.c (do_search_struct_field)
2258         (value_struct_elt_for_reference): No longer handle a NULL static
2259         field value.
2260         * value.c (value_static_field): Return an optimized out value
2261         instead of NULL.
2262
2263 2013-10-25  Yao Qi  <yao@codesourcery.com>
2264
2265         * remote.c (remote_traceframe_info): Return early if
2266         traceframe is not selected.
2267
2268 2013-10-25  Yao Qi  <yao@codesourcery.com>
2269
2270         * tracepoint.c (traceframe_fun): Remove.
2271         (traceframe_sal): Remove.
2272         (set_traceframe_context): Add local variables.
2273
2274 2013-10-25  Joel Brobecker  <brobecker@adacore.com>
2275
2276         * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2277         and parameter name.
2278
2279 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
2280
2281         * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2282         failure from register information collection.
2283
2284 2013-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
2285
2286         * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2287         member.
2288         (linux_corefile_thread_callback): Update accordingly.
2289         (linux_make_corefile_notes): Likewise.
2290
2291 2013-10-24  Pedro Alves   <palves@redhat.com>
2292
2293         * NEWS (New options): Mention set/show startup-with-shell.
2294         * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2295         instead of 3.
2296         * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2297         startup-with-shell'.
2298         (show_startup_with_shell): New function.
2299         (_initialize_fork_child): Register the set/show startup-with-shell
2300         commands.
2301         * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2302         * inf-ttrace.c (inf_ttrace_him): Remove comment.
2303         * procfs.c (procfs_init_inferior): Remove comment.
2304         * infcmd.c (startup_with_shell): New global.
2305         * inferior.h (startup_with_shell): Declare global.
2306         (STARTUP_WITH_SHELL): Delete.
2307         (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2308
2309 2013-10-23  Pedro Alves  <palves@redhat.com>
2310
2311         * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2312         * common/signals.c: Include "gdb_assert.h".
2313         (signals): New field 'symbol'.
2314         (SET): Use the 'symbol' parameter.
2315         (gdb_signal_to_symbol_string): New function.
2316         * infrun.c (handle_inferior_event) <random signal>: In debug
2317         output, print the random signal enum as string in addition to its
2318         number.
2319         * target/waitstatus.c (target_waitstatus_to_string): Print the
2320         signal's enum value as string instead of the (POSIX) signal name.
2321
2322 2013-10-23  Gary Benson  <gbenson@redhat.com>
2323
2324         PR 16013
2325         * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2326         from 32 to 18.  Adjusted fscanf format string accordingly.
2327         (Avoids leaving cmd unterminated.)
2328         (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2329         trun, retn or extra.  (Avoids leaving extra unterminated.)  Check
2330         that local_address and remote_address will not overflow.
2331         (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2332         leaving dependencies unterminated.  Parse size as "%u" to match
2333         definition.
2334
2335 2013-10-22  Pedro Alves  <palves@redhat.com>
2336
2337         * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2338         set ecs->random signal.
2339
2340 2013-10-22  Pedro Alves  <palves@redhat.com>
2341
2342         * infrun.c (keep_going): Update comments.
2343
2344 2013-10-22  Pedro Alves  <palves@redhat.com>
2345
2346         * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2347         invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2348
2349 2013-10-22  Pedro Alves  <palves@redhat.com>
2350
2351         * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2352         GDB_EXC_BAD_ACCESS.
2353         (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2354         (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2355         (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2356         (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2357         (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2358         (GDB_SIGNAL_LAST): Change description string.
2359         * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2360         Adjust to signal renaming.
2361         * darwin-nat.c (darwin_decode_message): Likewise.
2362
2363 2013-10-22  Jose E. Marchesi  <jose.marchesi@oracle.com>
2364
2365         * MAINTAINERS (Write After Approval): Add myself to the list.
2366
2367 2013-10-18  Andrew Burgess  <aburgess@broadcom.com>
2368
2369         * breakpoint.c (update_watchpoint): If hardware watchpoints are
2370         forced off, downgrade them to software watchpoints if possible,
2371         and error out if not possible.
2372         (watch_command_1): Move watchpoint type selection closer to
2373         watchpoint creation, and extend the comments.
2374
2375 2013-10-18  Pedro Alves  <palves@redhat.com>
2376
2377         PR gdb/16062
2378         * infrun.c (handle_inferior_event): Keep going if we got a random
2379         signal we should not stop for, instead of falling through to the
2380         step tests.
2381
2382 2013-10-18  Yao Qi  <yao@codesourcery.com>
2383
2384         * c-varobj.c (cplus_number_of_children): Fix indentation.
2385
2386 2013-10-17  Tom Tromey  <tromey@redhat.com>
2387
2388         PR gdb/15995:
2389         * printcmd.c (printcmd): Call gdb_flush.
2390
2391 2013-10-17  Tom Tromey  <tromey@redhat.com>
2392
2393         * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2394         (elf_locate_sections): Update.
2395
2396 2013-10-17  Yao Qi  <yao@codesourcery.com>
2397
2398         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2399         * ada-varobj.c: Remove the include of ada-varobj.h.
2400         (ada_varobj_get_number_of_children): Declare.
2401         (ada_varobj_get_name_of_child): Make it static.
2402         (ada_varobj_get_path_expr_of_child): Likewise.
2403         (ada_varobj_get_value_of_child): Likewise.
2404         (ada_varobj_get_type_of_child): Likewise.
2405         (ada_varobj_get_value_of_array_variable): Likewise.
2406         * ada-varobj.h: Remove.
2407
2408 2013-10-17  Yao Qi  <yao@codesourcery.com>
2409
2410         * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2411         (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2412         * ada-varobj.c: Include "varobj.h".
2413         (ada_number_of_children): New.  Moved from varobj.c.
2414         (ada_name_of_variable, ada_name_of_child): Likewise.
2415         (ada_path_expr_of_child, ada_value_of_child): Likewise.
2416         (ada_type_of_child, ada_value_of_variable): Likewise.
2417         (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2418         (ada_varobj_ops): New.
2419         * c-varobj.c, jv-varobj.c: New file.  Moved from varobj.c.
2420         * gdbtypes.c (get_target_type): New.  Moved from varobj.c.
2421         * gdbtypes.h (get_target_type): Declare.
2422         * varobj.c: Remove the inclusion of "ada-varobj.h" and
2423         "ada-lang.h".
2424         (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2425         (ANONYMOUS_UNION_NAME): Likewise.
2426         (get_type, get_value_type, get_target_type): Remove declarations.
2427         (value_get_print_value, varobj_value_get_print_value): Likewise.
2428         (c_number_of_children, c_name_of_variable): Likewise.
2429         (c_name_of_child, c_path_expr_of_child): Likewise.
2430         (c_value_of_child, c_type_of_child): Likewise.
2431         (c_value_of_variable, cplus_number_of_children): Likewise.
2432         (cplus_class_num_children, cplus_name_of_variable): Likewise.
2433         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2434         (cplus_value_of_child, cplus_type_of_child): Likewise.
2435         (cplus_value_of_variable, java_number_of_children): Likewise.
2436         (java_name_of_variable, java_name_of_child): Likewise.
2437         (java_path_expr_of_child, java_value_of_child): Likewise.
2438         (java_type_of_child, java_value_of_variable): Likewise.
2439         (ada_number_of_children, ada_name_of_variable): Likewise.
2440         (ada_name_of_child, ada_path_expr_of_child): Likewise.
2441         (ada_value_of_child, ada_type_of_child): Likewise.
2442         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2443         (ada_value_has_mutated): Likewise.
2444         (struct language_specific): Move it to varobj.h.
2445         (CPLUS_FAKE_CHILD): Move it to varobj.h.
2446         (restrict_range): Rename it varobj_restrict_range.  Make it extern.
2447         Callers update.
2448         (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2449         Make it extern.
2450         (is_anonymous_child): Move it to c-varobj.c and rename to
2451         varobj_is_anonymous_child.  Caller update.
2452         (get_type): Move it to c-varobj.c.
2453         (get_value_type): Rename it varobj_get_value_type.  Make it
2454         extern.
2455         (get_target_type): Move it gdbtypes.c.
2456         (varobj_formatted_print_options): New function.
2457         (value_get_print_value): Rename it to
2458         varobj_value_get_print_value and make it extern.
2459         (varobj_value_is_changeable_p): Make it extern.
2460         (adjust_value_for_child_access): Move it to c-varobj.c.
2461         (default_value_is_changeable_p): Rename it to
2462         varobj_default_value_is_changeable_p.  Make it extern.
2463         (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2464         (c_name_of_child, c_path_expr_of_child): Likewise.
2465         (c_value_of_child, c_type_of_child): Likewise.
2466         (c_value_of_variable, cplus_number_of_children): Likewise.
2467         (cplus_class_num_children, cplus_name_of_variable): Likewise.
2468         (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2469         (cplus_value_of_child, cplus_type_of_child): Likewise.
2470         (cplus_value_of_variable): Likewise.
2471         (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2472         (java_name_of_child, java_path_expr_of_child): Likewise.
2473         (java_value_of_child, java_type_of_child): Likewise.
2474         (java_value_of_variable): Likewise.
2475         (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2476         (ada_name_of_child, ada_path_expr_of_child): Likewise.
2477         (ada_value_of_child, ada_type_of_child): Likewise.
2478         (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2479         (ada_value_has_mutated): Likewise.
2480         * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2481         (struct lang_varobj_ops): New.  Renamed by 'struct language_specific'.
2482         (c_varobj_ops, cplus_varobj_ops): Declare.
2483         (java_varobj_ops, ada_varobj_ops): Declare.
2484         (varobj_default_value_is_changeable_p): Declare.
2485         (varobj_value_is_changeable_p): Declare.
2486         (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2487         (varobj_get_path_expr_parent): Declare.
2488         (varobj_value_get_print_value): Declare.
2489         (varobj_formatted_print_options): Declare.
2490         (varobj_restrict_range): Declare.
2491
2492 2013-10-17  Luis Machado  <lgustavo@codesourcery.com>
2493
2494         * target/waitstatus.h (target_waitkind): Remove spurious
2495         character from the comments.
2496
2497 2013-10-17  Joel Brobecker  <brobecker@adacore.com>
2498
2499         * gdbarch.sh (get_longjmp_target): Add method documentation.
2500         * gdbarch.h: Regenerate.
2501
2502 2013-10-16  Tom Tromey  <tromey@redhat.com>
2503
2504         * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2505         label.
2506
2507 2013-10-16  Luis Machado  <lgustavo@codesourcery.com>
2508
2509         * gcore.in: Call GDB using the full path to the gcore script.
2510         Error out if the GDB binary is not found.
2511
2512 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2513
2514         PR gdb/16014
2515         * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2516         sizeof.
2517
2518 2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2519
2520         PR gdb/16042
2521         * target.c (target_disable_btrace): Fix invalid return value for
2522         void function.
2523         (target_teardown_btrace): Likewise.
2524
2525 2013-10-14  Yao Qi  <yao@codesourcery.com>
2526
2527         * varobj.c (struct varobj): Move most of the fields to
2528         varobj.h.
2529         (struct varobj_dynamic): New struct.
2530         (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2531         (varobj_has_more): Likewise.
2532         (dynamic_varobj_has_child_method): Likewise.
2533         (update_dynamic_varobj_children): Likewise.
2534         (varobj_get_num_children): Likewise.
2535         (varobj_list_children, varobj_pretty_printed_p): Likewise.
2536         (install_new_value_visualizer): Likewise.
2537         (install_new_value_visualizer, install_new_value): Likewise.
2538         (varobj_update, new_variable, free_variable): Likewise.
2539         (my_value_of_variable, value_get_print_value): Likewise.
2540         (install_visualizer): Change the type of parameter 'var' to
2541         'struct varobjd_dynamic *'.  Callers update.
2542         * varobj.h (struct varobj): Moved from varobj.c.
2543         (struct varobj) <dynamic>: New field.
2544
2545 2013-10-13  Sandra Loosemore  <sandra@codesourcery.com>
2546
2547         * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2548         as the preferred name of r30.
2549         * nios2-linux-tdep.c (reg_offsets): Likewise.
2550         * features/nios2-cpu.xml: Likewise.
2551         * features/nios2-linux.c: Regenerated.
2552         * features/nios2.c: Regenerated.
2553         * regformats/nios2-linux.dat: Regenerated.
2554
2555 2013-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2556
2557         Canonicalize directories for EXEC_FILENAME.
2558         * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2559         exec_filename.
2560         * utils.c (gdb_realpath_keepfile): New function.
2561         * utils.h (gdb_realpath_keepfile): New declaration.
2562
2563 2013-10-11  Doug Evans  <dje@google.com>
2564
2565         * Makefile.in (GDBFLAGS): New variable.
2566         (run): New rule.
2567
2568 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2569
2570         * NEWS: Add entry documenting the new "-catch-assert" and
2571         "-catch-exception" GDB/MI commands.
2572
2573 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2574
2575         * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2576         "enabled".
2577         * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2578         "enabled".  Set B->ENABLE_STATE accordingly.
2579         * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2580         ada-lang.c.
2581         (create_ada_exception_catchpoint): Add declaration.
2582         * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2583         (create_ada_exception_catchpoint): Make non-static. Add new
2584         parameter "disabled". Use it in call to
2585         init_ada_exception_breakpoint.
2586         (catch_ada_exception_command): Add parameter "enabled" in call
2587         to create_ada_exception_catchpoint.
2588         (catch_assert_command): Likewise.
2589
2590         * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2591         Add declarations.
2592         * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2593         "catch-exception" commands.
2594         * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2595         (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2596
2597 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2598
2599         * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2600         "enum exception_catchpoint_kind".  Replace the "ex_" prefix
2601         of all its enumerates with "ada_".  Update the rest of this
2602         file throughout.
2603
2604 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2605
2606         * ada-lang.c (ada_decode_exception_location): Delete.
2607         (create_ada_exception_catchpoint): Remove arguments "sal",
2608         "addr_string" and "ops".  Add argument "ex_kind" instead.
2609         Adjust implementation accordingly, calling ada_exception_sal
2610         to get the entities it no longer gets passed as arguments.
2611         Document the function's arguments.
2612         (catch_ada_exception_command): Use catch_ada_exception_command_split
2613         instead of ada_decode_exception_location, and update call to
2614         create_ada_exception_catchpoint.
2615         (catch_ada_assert_command_split): Renames
2616         ada_decode_assert_location.  Remove parameters "addr_string" and
2617         "ops", and now returns void.  Adjust implementation accordingly.
2618         Update the function documentation.
2619         (catch_assert_command): Use catch_ada_assert_command_split
2620         instead of ada_decode_assert_location.  Update call to
2621         create_ada_exception_catchpoint.
2622
2623 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2624
2625         * utils.h (perror_warning_with_name): Add declaration.
2626         * utils.c (perror_warning_with_name): New function.
2627         * cli/cli-cmds.c (source_script_with_search): Add call to
2628         perror_warning_with_name if from_tty is nul.
2629
2630 2013-10-11  Joel Brobecker  <brobecker@adacore.com>
2631
2632         * utils.c (perror_string): New function, extracted out of
2633         throw_perror_with_name.
2634         (throw_perror_with_name): Rework to use perror_string.
2635
2636 2013-10-11  Yao Qi  <yao@codesourcery.com>
2637
2638         * remote.c (discard_pending_stop_replies_in_queue): Update
2639         declaration.
2640         (struct stop_reply) <rs>: New field.
2641         (remove_stop_reply_of_remote_state): New function.
2642         (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2643         Callers update.  Pass remove_stop_reply_of_remote_state to
2644         QUEUE_iterate.
2645         (remote_parse_stop_reply): Initialize field 'rs'.
2646
2647 2013-10-10  Will Newton  <will.newton@linaro.org>
2648
2649         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2650         linux_init_abi.
2651
2652 2013-10-10  Joel Brobecker  <brobecker@adacore.com>
2653
2654         * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2655         serial_baud_show_cmd.
2656         (_initialize_cli_cmds): Delete the code creating the
2657         "set/show remotebaud" commands.
2658         * serial.c (baud_rate): Move here from top.c.
2659         (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2660         (_initialize_serial): Create "set/show serial baud" commands.
2661         Add "set/show remotebaud" command aliases.
2662         * top.c (baud_rate): Moved to serial.c.
2663         * NEWS: Document the new "set/show serial baud" commands,
2664         replacing "set/show remotebaud".
2665
2666 2013-10-09  Pedro Alves  <palves@redhat.com>
2667
2668         * breakpoint.c (insert_bp_location): Use memory_error_message to
2669         build the memory error string.
2670         * c-lang.c: Include "gdbcore.h".
2671         (c_get_string): Use memory_error to throw error.
2672         (target_xfer_memory_error): Delete.
2673         (memory_error_message): New, factored out from
2674         target_xfer_memory_error.
2675         (memory_error): Change parameter type to target_xfer_error.
2676         Rewrite.
2677         (read_memory): Use memory_error instead of
2678         target_xfer_memory_error.
2679         * gdbcore.h: Include "target.h".
2680         (memory_error): Change parameter type to target_xfer_error.
2681         (memory_error_message): Declare function.
2682         * target.c (target_read_memory, target_read_stack)
2683         (target_write_memory, target_write_raw_memory): Return
2684         TARGET_XFER_E_IO on error.  Adjust comments.
2685         (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2686         instead of EIO.
2687         * target.h (target_read, target_insert_breakpoint)
2688         (target_remove_breakpoint): Adjust comments.
2689         * valprint.c (partial_memory_read): Rename parameter, and adjust
2690         comment.
2691         (val_print_string): Use memory_error_message to build the memory
2692         error string.
2693
2694 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2695
2696         * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2697         result variable.  Rename variable fopen_e_ever_failed to
2698         fopen_e_ever_failed_einval.  Retry fopen only for errno EINVAL.
2699
2700 2013-10-09  Pedro Alves  <palves@redhat.com>
2701
2702         * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2703         (monitor_write_memory_longlongs, monitor_write_memory_block):
2704         Constify 'myaddr' parameter.
2705         (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2706         helper.
2707         (monitor_xfer_partial): New function.
2708         (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2709         hook.  Install a to_xfer_partial hook.
2710
2711 2013-10-09  Tom Tromey  <tromey@redhat.com>
2712
2713         * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2714         bfd_get_alt_debug_link_info.
2715
2716 2013-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2717
2718         New flag OBJF_NOT_FILENAME.
2719         * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2720         * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2721         allocate_objfile.
2722         (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2723         symbol_file_add_from_bfd.
2724         * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2725         allocate_objfile.
2726         * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2727         NULL.
2728         * objfiles.h (OBJF_NOT_FILENAME): New.
2729
2730 2013-10-08  Tom Tromey  <tromey@redhat.com>
2731
2732         * Makefile.in (SFILES): Add build-id.c.
2733         (HFILES_NO_SRCDIR): Add build-id.h.
2734         * build-id.c: New file, largely from elfread.c.  Modified
2735         most functions.
2736         * build-id.h: New file.
2737         * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2738         bfd_get_alt_debug_link_info.  Verify dwz file's build-id.
2739         Search for dwz file using build-id.
2740         * elfread.c (build_id_bfd_get, build_id_verify)
2741         (build_id_to_debug_filename, find_separate_debug_file): Remove.
2742
2743 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
2744
2745         * ada-lang.c (compare_names_with_case): Renamed from
2746         compare_names, adding a new parameter "casing" and its handling.
2747         New function documentation.
2748         (compare_names): New function, implemented using
2749         compare_names_with_case.
2750
2751 2013-10-08  Joel Brobecker  <brobecker@adacore.com>
2752
2753         * ada-lang.c (ada_exception_sal): Remove advance declaration.
2754
2755 2013-10-07  Tom Tromey  <tromey@redhat.com>
2756
2757         * objfiles.c (free_objfile_per_bfd_storage): Delete the
2758         demangled_names_hash.
2759         (free_objfile): Don't delete the demangled_names_hash.
2760         * objfiles.h (struct objfile_per_bfd_storage)
2761         <demangled_names_hash>: New field.
2762         (struct objfile) <demangled_names_hash>: Move to
2763         objfile_per_bfd_storage.
2764         * symfile.c (reread_symbols): Don't delete the
2765         demangled_names_hash.
2766         * symtab.c (create_demangled_names_hash): Update.
2767         (symbol_set_names): Update.
2768
2769 2013-10-07  Tom Tromey  <tromey@redhat.com>
2770
2771         * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2772         needs_relocations>: New fields.
2773         (gdb_bfd_requires_relocations): New function.
2774         * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2775         * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2776         the BFD needs relocations applied.
2777
2778 2013-10-07  Pedro Alves  <palves@redhat.com>
2779
2780         PR breakpoints/11568
2781         * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2782         the thread list" instead of "gone".
2783
2784 2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
2785
2786         * NEWS: Mention new convenience variable $_exitsignal.
2787         * corelow.c (core_open): Reset exit convenience variables.  Set
2788         $_exitsignal to the uncaught signal which generated the corefile.
2789         * infrun.c (handle_inferior_event): Reset exit convenience
2790         variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2791         (clear_exit_convenience_vars): New function.
2792         * inferior.h (clear_exit_convenience_vars): New prototype.
2793
2794 2013-10-06  Yao Qi  <yao@codesourcery.com>
2795
2796         * varobj.h: Add comments to enum varobj_languages.
2797
2798 2013-10-04  Doug Evans  <dje@google.com>
2799
2800         Add support for DWP file format version 2.
2801         * NEWS: Mention support for DWP file format version 2.
2802         * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2803         union of asection, containing_section.  New fields virtual_offset
2804         and is_virtual.  Change type of readin filed from int to char.
2805         (dwo_sections, dwo_file): Tweak comments.
2806         (dwp_v2_section_ids): New enum.
2807         (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2808         str_offsets, types.
2809         (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2810         All uses updated.
2811         (virtual_v2_dwo_sections): New struct.
2812         (dwp_hash_table): New fields version, nr_columns.  Change type of
2813         section_pool field to a union.
2814         (dwp_file): New field version.
2815         (dwarf2_has_info): Check for virtual sections.
2816         (get_containing_section): New function.
2817         (get_section_bfd_owner, get_section_bfd_section): Call it.
2818         (dwarf2_locate_sections): Update.
2819         (dwarf2_section_empty_p): Update.
2820         (dwarf2_read_section): Handle virtual sections.
2821         (locate_dwz_sections): Update.
2822         (create_dwp_hash_table): Document and handle V2 format.
2823         (locate_v1_virtual_dwo_sections): Renamed from
2824         locate_virtual_dwo_sections and update.  All callers updated.
2825         (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2826         Delete arg htab.  Rename arg section_index to unit_index.
2827         All callers updated.
2828         (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2829         All uses updated.
2830         (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2831         (lookup_dwo_unit_in_dwp): Add V2 support.
2832         (dwarf2_locate_dwo_sections): Update.
2833         (dwarf2_locate_common_dwp_sections): Renamed from
2834         dwarf2_locate_dwp_sections and update.  All callers updated.
2835         (dwarf2_locate_v2_dwp_sections): New function.
2836         (open_and_init_dwp_file): Add V2 support.
2837         (read_str_index): New locals str_section, str_offsets_section.
2838
2839 2013-10-04  Pedro Alves  <palves@redhat.com>
2840
2841         * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2842         (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2843         (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2844         describing comments with references to ptid.h.
2845         * common/ptid.h: Remove intro description of constructors,
2846         accessors and predicates.
2847         (struct ptid): Reformat.
2848         (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2849         (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2850         describing comments.
2851
2852 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2853
2854         * aix-thread.c (sync_threadlists): Add missing ')' in call
2855         to ptid_build.
2856
2857 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2858
2859         * procfs.c (procfs_init_inferior): Fix typo causing the build
2860         to fail.
2861
2862 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2863
2864         * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2865
2866 2013-10-04  Joel Brobecker  <brobecker@adacore.com>
2867
2868         * mi/mi-main.c (run_one_inferior): Add function description.
2869         Make ARG a pointer to an integer whose value determines whether
2870         we should "run" or "start" the program.
2871         (mi_cmd_exec_run): Add handling of the "--start" option.
2872         Reject all other command-line options.
2873         * NEWS: Add entry for "-exec-run"'s new "--start" option.
2874
2875 2013-10-04  Yao Qi  <yao@codesourcery.com>
2876
2877         * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2878         (struct notif_client) <pending_event>: Moved
2879         to struct remote_notif_state.
2880         <id>: New field.
2881         (struct remote_notif_state) <pending_event>: New field.
2882         (notif_event_xfree): Declare.
2883         * remote-notif.c (handle_notification): Adjust.
2884         (notif_event_xfree): New function.
2885         (do_notif_event_xfree): Call notif_event_xfree.
2886         (remote_notif_state_xfree): Call notif_event_xfree to free
2887         each element in field pending_event.
2888         * remote.c (discard_pending_stop_replies): Remove declaration.
2889         (discard_pending_stop_replies_in_queue): Declare.
2890         (remote_close): Call discard_pending_stop_replies_in_queue
2891         instead of discard_pending_stop_replies.
2892         (remote_start_remote): Adjust.
2893         (stop_reply_xfree): Call notif_event_xfree.
2894         (notif_client_stop): Adjust initialization.
2895         (remote_notif_remove_all): Rename it to ...
2896         (remove_stop_reply_for_inferior): ... this.  Update comments.
2897         Don't check INF is NULL.
2898         (discard_pending_stop_replies): Return early if notif_state is
2899         NULL.  Adjust.  Don't check INF is NULL.
2900         (remote_notif_get_pending_events): Adjust.
2901         (discard_pending_stop_replies_in_queue): New function.
2902         (remote_wait_ns): Likewise.
2903
2904 2013-10-04  Yao Qi  <yao@codesourcery.com>
2905
2906         * remote-notif.c (DECLARE_QUEUE_P): Remove.
2907         (notif_queue): Remove.
2908         (remote_notif_process): Add one parameter 'notif_queue'.
2909         Update comments.  Callers update.
2910         (remote_async_get_pending_events_token): Remove.
2911         (remote_notif_register_async_event_handler): Remove.
2912         (remote_notif_unregister_async_event_handler): Remove.
2913         (handle_notification): Add parameter 'notif_queue'.  Update
2914         comments.  Callers update.
2915         (notif_xfree): Remove.
2916         (remote_notif_state_allocate): New function.
2917         (remote_notif_state_xfree): New function.
2918         (_initialize_notif): Remove code to allocate queue.
2919         * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2920         (struct remote_notif_state): New.
2921         (handle_notification): Update declaration.
2922         (remote_notif_process): Likewise.
2923         (remote_notif_register_async_event_handler): Remove.
2924         (remote_notif_unregister_async_event_handler): Remove.
2925         (remote_notif_state_allocate): Declare.
2926         (remote_notif_state_xfree): Declare.
2927         * remote.c (struct remote_state) <notif_state>: New field.
2928         (remote_close): Don't call
2929         remote_notif_unregister_async_event_handler.  Call
2930         remote_notif_state_xfree.
2931         (remote_open_1): Don't call
2932         remote_notif_register_async_event_handler.  Call
2933         remote_notif_state_allocate.
2934
2935 2013-10-04  Yao Qi  <yao@codesourcery.com>
2936
2937         * varobj.c (create_child_with_value): Remove 'const' from the
2938         type of parameter 'name'.
2939         (varobj_add_child): Likewise.
2940         (install_dynamic_child): Remove 'const' from the type of
2941         parameter 'name'.
2942         (varobj_add_child): Likewise.
2943         (create_child_with_value): Likewise.  Update comments.  Don't
2944         duplicate 'name'.
2945         (update_dynamic_varobj_children): Duplicate 'name'
2946         and pass it to install_dynamic_child.
2947
2948 2013-10-03  Phil Muldoon  <pmuldoon@redhat.com>
2949
2950         * python/py-value.c (convert_value_from_python): Move PyInt_Check
2951         conversion logic to occur after PyLong_Check.  Comment on order
2952         change significance.
2953         * python/py-arch.c (archpy_disassemble): Comment on order of
2954         conversion for integers and longs.
2955
2956 2013-10-03  Pedro Alves  <palves@redhat.com>
2957
2958         * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2959         the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2960         functions.  Always test for PTRACE_O_TRACESYSGOOD even if
2961         PTRACE_O_TRACEFORK is not supported.
2962         (linux_test_for_tracesysgood): New function.
2963         (linux_test_for_tracefork): New function, factored out from
2964         linux_check_ptrace_features, and also don't kill child_pid here.
2965
2966 2013-10-03  Tristan Gingold  <gingold@adacore.com>
2967
2968         * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2969         Remove verbose error reporting.  Use detected state to
2970         thread_set_state call.
2971         (i386_darwin_dr_get): Fix return type.  Remove verbose error
2972         report.
2973         Remove trailing spaces.
2974
2975 2013-10-02  Pedro Alves  <palves@redhat.com>
2976
2977         * cp-valprint.c (cp_print_value_fields): Adjust calls to
2978         val_print_optimized_out.
2979         * jv-valprint.c (java_print_value_fields): Likewise.
2980         * p-valprint.c (pascal_object_print_value_fields): Likewise.
2981         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2982         <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2983         new optimized out value.
2984         * findvar.c (address_from_register): Likewise.
2985         * frame.c (put_frame_register): Tweak error string to say the
2986         register was not saved, rather than optimized out.
2987         * infcmd.c (default_print_one_register_info): Adjust call to
2988         val_print_optimized_out.  Use value_of_register instead of
2989         get_frame_register_value.
2990         * mi/mi-main.c (output_register): Use value_of_register instead of
2991         get_frame_register_value.
2992         * valprint.c (valprint_check_validity): Likewise.
2993         (val_print_optimized_out): New value parameter.  If the value is
2994         lval_register, print <not saved> instead.
2995         (value_check_printable, val_print_scalar_formatted): Adjust calls
2996         to val_print_optimized_out.
2997         * valprint.h (val_print_optimized_out): New value parameter.
2998         * value.c (struct value) <optimized_out>: Extend comment.
2999         (error_value_optimized_out): New function.
3000         (require_not_optimized_out): Use it.  Use a different string for
3001         lval_register values.
3002         * value.h (error_value_optimized_out): New declaration.
3003         * NEWS: Mention <not saved>.
3004
3005 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
3006
3007         * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
3008         strcmp to compare two symtab filenames.
3009
3010 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
3011
3012         * symtab.c (search_symbols_equal): Delete.
3013         (sort_search_symbols_remove_dups): Replace call to
3014         search_symbols_equal by call to compare_search_syms,
3015         adjusting as necessary.
3016
3017 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
3018
3019         PR python/15579
3020         * python/python.c: Document gdb.execute command in Python help.
3021
3022 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
3023
3024         * python/py-frame.c (frame_info_to_frame_object): Use
3025         gdbpy_convert_exception. Clean up Python object on failure.
3026
3027 2013-10-02  Phil Muldoon  <pmuldoon@redhat.com>
3028
3029         * python/lib/gdb/command/frame_filters.py
3030         (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
3031         (ShowFrameFilterPriority.invoke): Ditto.
3032
3033 2013-10-01  Keith Seitz  <keiths@redhat.com>
3034
3035         * linespec.c (struct ls_parser): Make 'saved_arg' const.
3036         (parse_linespec): Make 'argptr' const.
3037         Remove temporary cast of 'argptr' to const char **.
3038         (decode_line_full): Pass const pointer to parse_linespec.
3039         (decode_line_1): Likewise.
3040         (decode_objc): Make local variable 'new_argptr' const.
3041         (find_function_symbols): Remove temporary cast to char *
3042         to find_imps.
3043         * objc-lang.c (find_imps): Make argument 'method' const.
3044         Return const.
3045         * objc-lang.h (find_imps): Likewise.
3046
3047 2013-10-01  Keith Seitz  <keiths@redhat.com>
3048
3049         * completer.c (skip_quoted_chars): Make all arguments const.
3050         Return const.
3051         (skip_quoted): Likewise.
3052         * completer.h (skip_quoted_chars): Likewise.
3053         (skip_quoted): Likewise.
3054         * defs.h (skip_quoted): Remove duplicate declaration.
3055         * jv-exp.y: Include completer.h.
3056         (yylex): Remove unneccessary cast to char * fro skip_quoted.
3057         * p-exp.y: Include completer.h.
3058
3059 2013-10-01  Keith Seitz  <keiths@redhat.com>
3060
3061         * c-exp.y (parse_number): Make first argument const.
3062         Make a copy of the input to manipulate.
3063         (c_parse_escape): Make first argument const.
3064         Make local variable 'tokptr' const.
3065         (parse_string_or_char): Make first two arguments const.
3066         (macro_original_text): Make const.
3067         (lex_one_token): Make local variable 'tokstart' const.
3068         Likewise for local variables named 'p'.
3069         Cast away const for struct stoken (temporary).
3070         * c-lang.h (c_parse_escpae): Make first argument const.
3071         * cli/cli-cmds.c (echo_command): Make local variable 'p'
3072         const.
3073         * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
3074         var_string case.
3075         * f-exp.y (parse_number): Make first argument const.
3076         (match_string_literal): Make local variable 'tokstart'
3077         const.
3078         (yylex): Make local variable 'p' const.
3079         Cast away const for struct stoken (temporary).
3080         * go-exp.y (parse_number): Make first argument const.
3081         (parse_string_or_char): Likewise.
3082         Make local variable 'tokstart' const.
3083         (lex_one_token): Likewise for numerous locals called 'p'.
3084         Cast away const for struct stoken (temporary).
3085         * jv-exp.y (parse_number): Make first argument const.
3086         Make local variables 'tokstart' and 'tokptr' const.
3087         Cast away const for call to skip_quoted (temporary).
3088         (yylex): Make local variable 'p' const.
3089         Cast away const for struct stoken (temporary).
3090         * m2-exp.y (parse_number): Make local variable 'p' const.
3091         (yylex): Likewise for 'tokstart'.
3092         Cast away const for struct stoken (temporary).
3093         Make local variable 'p' const.
3094         * macroexp.c (get_character_constant): Pass a const string
3095         to c_parse_escape.
3096         (get_string_literal): Likewise.
3097         (macro_expand_next): Make first argument const.
3098         Cast away const for init_shared_buffer.
3099         * macroexp.h (macro_expand_next): Make first argument const.
3100         * p-exp.y (yylex): Make a local copy of 'lexptr'.
3101         Pass a const string to c_parse_escape.
3102         Make local variables 'p' and 'namestart' const.
3103         * parse.c (lexptr): Make const.
3104         (prev_lexptr): Likewise.
3105         (find_template_name_end): Return const.
3106         Make argument const, too.
3107         (parse_exp_in_context): Make first argument const.
3108         Remove the entire const_hack.
3109         (parse_exp_in_context_1): Make first argument const.
3110         * parser-defs.h (find_template_name_end): Return const.
3111         Make argument const, too.
3112         (lexptr): Make const.
3113         (prev_lexptr): Likewise.
3114         * utils.c (parse_escape): Make second argument const.
3115         * utils.h (parse_escape): Likewise.
3116
3117 2013-10-01  Keith Seitz  <keiths@redhat.com>
3118
3119         * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
3120         is now const.
3121         (block_lookup): Make 'raw_name' and 'name' const.
3122         * ada-lex.l (processString): Update for struct stoken.ptr.
3123         * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3124         (operator_stoken): Likewise.
3125         (lex_one_token): Remove temporary cast to char * for
3126         'yylval.sval.ptr'.
3127         * f-exp.y (yylex): Likewise.
3128         * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3129         * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3130         * go-exp.y (lex_one_token): Remove temporary cast to char * for
3131         'yylval.sval.ptr'.
3132         * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3133         (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3134         * linespec.c (struct ls_parser): Make 'stream' const.
3135         (find_parameter_list_end): Make argument 'input' and local
3136         variable 'p' const.
3137         (linespec_lexer_lex_string): Make local variables 'start' and
3138         'p' const.
3139         Use skip_spaces_const instead of skip_spaces.
3140         (linespec_lexer_peek_token): Make local variable 'saved_stream'
3141         const.
3142         (parse_linespec): Temporarily cast 'argptr' to const for
3143         'parser->lexer.stream'.
3144         * m2-exp.y (yylex): Remove temporary cast to char * for
3145         'yylval.sval.ptr'.
3146         * objc-lang.c (add_msglist): Make local variable 'p' const.
3147         * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3148         (exp : STRING): Make 'sp' const.
3149         (parse_number): Make argument 'p' const.
3150         * parser-defs.h (struct stoken): Make 'ptr' const.
3151
3152 2013-10-01  Doug Evans  <dje@google.com>
3153
3154         * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3155
3156 2013-10-01  Yao Qi  <yao@codesourcery.com>
3157
3158         * varobj.c (c_value_of_root): Remove declaration.
3159         (cplus_value_of_root, java_value_of_root): Likewise.
3160         (ada_value_of_root): Likewise.
3161         (struct language_specific) <value_of_root>: Remove.
3162         (languages): Update initialization.
3163         (check_scope): Move earlier.
3164         (c_value_of_root): Move earlier and rename to ...
3165         (value_of_root_1): ... this.
3166         (value_of_root): Caller update.
3167         (cplus_value_of_root, java_value_of_root): Remove.
3168         (ada_value_of_root): Remove.
3169
3170 2013-10-01  Yao Qi  <yao@codesourcery.com>
3171
3172         * varobj.c (varobj_format_string): Remove "unknown".
3173         (languages): Remove the first element.
3174         * varobj.h (enum varobj_languages): Remove vlang_c.
3175
3176 2013-10-01  Yao Qi  <yao@codesourcery.com>
3177
3178         * varobj.c (struct language_specific) <language>: Remove.
3179         (languages): Update the initialization.
3180
3181 2013-10-01  Yao Qi  <yao@codesourcery.com>
3182
3183         * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3184         "solib-target.h".  Include "windows-tdep.h".
3185         (arm_wince_init_abi): Call windows_init_abi.  Remove call to
3186         set_solib_ops and set_gdbarch_has_dos_based_file_system.
3187         * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3188         windows-tdep.o to gdb_target_obs.
3189
3190 2013-10-01  Yao Qi  <yao@codesourcery.com>
3191
3192         * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3193         "solib-target.h".
3194         (amd64_windows_init_abi): Don't call set_solib_ops and
3195         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
3196         windows_init_abi instead.
3197         * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3198         "solib-target.h".
3199         (i386_cygwin_init_abi): Don't call set_solib_ops,
3200         set_gdbarch_has_dos_based_file_system and
3201         set_gdbarch_iterate_over_objfiles_in_search_order.  Call
3202         windows_init_abi instead.
3203         * windows-tdep.c: Include "solib.h" and "solib-target.h".
3204         (windows_init_abi): New function.
3205         (windows_iterate_over_objfiles_in_search_order): Make it
3206         static.
3207         * windows-tdep.h (windows_init_abi): Declare.
3208         (windows_iterate_over_objfiles_in_search_order): Remove
3209         declaration.
3210
3211 2013-10-01  Jerome Guitton  <guitton@adacore.com>
3212
3213         Checked in by Joel Brobecker  <brobecker@adacore.com>
3214         * system-gdbinit/elinos.py (get_elinos_environment): Return an
3215         incomplete dictionnary instead of None in case of missing
3216         environment variables.
3217         (elinos_init): in case of an incomplete environment, best
3218         effort to load system libraries instead of abort.
3219
3220 2013-10-01  Joel Brobecker  <brobecker@adacore.com>
3221
3222         * ada-lang.c (ada_has_this_exception_support): Ignore
3223         mst_solib_trampoline minimal symbols.
3224
3225 2013-09-30  Tristan Gingold  <gingold@adacore.com>
3226
3227         * i386-darwin-nat.c (darwin_complete_target): Install methods for
3228         hardware watchpoint.
3229         (i386_darwin_dr_set): Support 32 and 64 bit states.
3230         (i386_darwin_dr_get): Likewise.
3231         (i386_darwin_dr_set_control): Make static.
3232         (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3233         (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3234
3235 2013-09-30  Luis Machado  <lgustavo@codesourcery.com>
3236
3237         * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3238         Replace TIDGET with ptid_get_lwp.
3239         Replace GET_LWP with ptid_get_lwp.
3240         * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3241         Replace BUILD_THREAD with ptid_build.
3242         Replace BUILD_LWP with ptid_build.
3243         Replace PIDGET with ptid_get_pid.
3244         Replace TIDGET with ptid_get_lwp.
3245         * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3246         * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3247         Replace TIDGET with ptid_get_lwp.
3248         * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3249         * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3250         Replace TIDGET with ptid_get_lwp.
3251         Replace GET_LWP with ptid_get_lwp.
3252         * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3253         * auxv.c: Likewise.
3254         * breakpoint.c: Likewise.
3255         * common/ptid.c (ptid_is_pid): Condense check for
3256         null_ptid and minus_one_ptid.
3257         (ptid_lwp_p): New function.
3258         (ptid_tid_p): New function.
3259         * common/ptid.h: Update comments for accessors.
3260         (ptid_lwp_p): New prototype.
3261         (ptid_tid_p): New prototype.
3262         * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3263         * gcore.c: Replace PIDGET with ptid_get_pid.
3264         * gdbthread.h: Likewise.
3265         * gnu-nat.c: Likewise.
3266         * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3267         Replace TIDGET with ptid_get_lwp.
3268         * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3269         * hppanbsd-nat.c: Likewise.
3270         * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3271         Replace TIDGET with ptid_get_lwp.
3272         * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3273         * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3274         * infcmd.c: Likewise.
3275         * inferior.h: Likewise.
3276         * inflow.c: Likewise.
3277         * infrun.c: Likewise.
3278         * linux-fork.c: Likewise.
3279         * linux-nat.c: Replace PIDGET with ptid_get_pid.
3280         Replace GET_PID with ptid_get_pid.
3281         Replace is_lwp with ptid_lwp_p.
3282         Replace GET_LWP with ptid_get_lwp.
3283         Replace BUILD_LWP with ptid_build.
3284
3285 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
3286
3287         * common/linux-btrace.c: Move sys/syscall.h out of the
3288         HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3289         Also check for SYS_perf_event_open before attempting to buid.
3290
3291 2013-09-27  Doug Evans  <dje@google.com>
3292
3293         * dwarf2read.c (dwarf2_section_info): Add comment.
3294         (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3295         All uses updated.
3296         (dwarf2_section_empty_p): Rename arg from "info" to "section".
3297         (dwarf2_read_section): Delete unused local "header".  Add section
3298         name to error message.
3299         (create_dwo_in_dwp): Tweak comment.
3300         (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3301
3302         * dwarf2read.c (die_reader_specs): Tweak comment.
3303         (get_section_bfd_owner, get_section_bfd_section): New functions.
3304         (get_section_name, get_section_file_name): New functions.
3305         (get_section_id, get_section_flags): New functions.
3306         (*): Use new functions to access section fields.
3307
3308         * dwarf2read.c (struct dwo_file): Add/tweak comments.
3309         (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp.  Remove
3310         arg "htab".  All callers updated.
3311         (create_debug_types_hash_table): Remove redundant copy of
3312         abbrev_section.
3313         (create_dwo_in_dwp): Tweak comments.
3314         (read_str_index): Tweak comment.  Record dwarf form name in static
3315         local.
3316
3317 2013-09-27  Pedro Alves  <palves@redhat.com>
3318
3319         * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3320         (remote_filename_p): Add comment.
3321         * remote.c (remote_filename_p): Adjust to use
3322         REMOTE_SYSROOT_PREFIX.
3323         * solib.c (solib_find): When deciding whether we need to add a
3324         directory separator, check whether the sysroot is "remote:"
3325         instead of checking whether the patch has a drive spec.  Add
3326         comments.
3327
3328 2013-09-27  Pedro Alves  <palves@redhat.com>
3329
3330         * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3331         Delete fields.
3332         (remote_parse_stop_reply): Adjust, setting event->ws.kind
3333         directly.
3334
3335 2013-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3336
3337         Fix set debug frame output.
3338         * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry.  Move
3339         SENTINEL_FRAME entry lower to match enum frame_type order.
3340
3341 2013-09-26  Pierre Muller  <muller@sourceware.org>
3342
3343         Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3344         AMD64_R15_REGNUM when a register index is expected.
3345         * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3346         Substitute in array.
3347         * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3348         (amd64_push_arguments): Substitute in integer_regnum array.
3349
3350 2013-09-25  Doug Evans  <dje@google.com>
3351
3352         * objfiles.c (allocate_objfile): Move comment to better place.
3353
3354         New option "set debug symfile on".
3355         * NEWS: Mention "set debug symfile".
3356         * Makefile.in (SFILES): Add symfile-debug.c.
3357         (COMMON_OBS): Add symfile-debug.o.
3358         * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3359         objfile's symbol functions.
3360         * objfiles.h (objfile_set_sym_fns): Declare.
3361         * symfile-debug.c: New file.
3362         * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3363         objfile's symbol functions.
3364         (reread_symbols): Ditto.
3365
3366         * symfile.h (struct sym_fns): Delete member "sym_flavour".
3367         All uses updated.
3368         (add_symtab_fns): Update prototype.
3369         * symfile.c (sym_fns_ptr): Delete.  Replace with ...
3370         (registered_sym_fns): ... this.
3371         (symtab_fns): Update.
3372         (add_symtab_fns): New arg "flavour".  All callers updated.
3373         (find_sym_fns): Rewrite to use new sym_fns registry.
3374
3375         * symfile.h (struct sym_fns): Add "objfile" argument to
3376         sym_read_linetable.  All uses updated.
3377
3378         * symtab.c (domain_name, search_domain_name): New functions.
3379         * symtab.h (domain_name, search_domain_name): Declare.
3380
3381         * symfile.h (struct quick_symbol_functions): Reorg arg list of
3382         map_matching_symbols so objfile is first.  All uses updated.
3383         * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3384         * psymtab.c (map_matching_symbols_psymtab): Update signature.
3385
3386 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3387
3388         PR shlibs/8882
3389         * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3390         link map entries.
3391
3392 2013-09-24  Doug Evans  <dje@google.com>
3393
3394         * objfiles.c (free_objfile): Move comment.
3395
3396 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
3397
3398         * ada-exp.y (string_to_operator): Delete.
3399         (dummy_string_to_ada_operator): Delete.
3400
3401 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
3402
3403         Revert:
3404         * i386-tdep.h (enum amd64_reg_class): New, moved here from
3405         amd64-tdep.c.
3406         (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3407         call_dummy_integer_regs, and classify.
3408         * amd64-tdep.h (amd64_classify): Add declaration.
3409         * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3410         (amd64_reg_class): Delete, moved to i386-tdep.h.
3411         (amd64_classify): Make non-static.  Move declaration to amd64-tdep.h.
3412         Replace call to amd64_classify by call to tdep->classify.
3413         (amd64_push_arguments): Get the list of registers to use for
3414         passing integer parameters from the gdbarch tdep structure,
3415         rather than using a hardcoded one.  Replace calls to amd64_classify
3416         by calls to tdep->classify.
3417         (amd64_push_dummy_call): Get the register number used for
3418         the "hidden" argument from tdep->call_dummy_integer_regs.
3419         (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3420         and tdep->call_dummy_integer_regs.  Set tdep->classify.
3421
3422 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
3423
3424         Revert:
3425         * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3426         * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3427         where tdep->memory_args_by_pointer is non-zero.
3428
3429 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
3430
3431         Revert:
3432         * i386-tdep.h (struct gdbarch_tdep): Add new field
3433         integer_param_regs_saved_in_caller_frame.
3434         * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3435         stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3436
3437 2013-09-24  Joel Brobecker  <brobecker@adacore.com>
3438
3439         * amd64-windows-tdep.c: #include "value.h"
3440         (amd64_windows_classify): Delete.
3441         (amd64_windows_passed_by_integer_register)
3442         (amd64_windows_passed_by_xmm_register)
3443         (amd64_windows_passed_by_pointer)
3444         (amd64_windows_adjust_args_passed_by_pointer)
3445         (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3446         (amd64_windows_push_dummy_call): New functions.
3447         (amd64_windows_init_abi): Remove setting of
3448         tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3449         tdep->classify, tdep->memory_args_by_pointer and
3450         tdep->integer_param_regs_saved_in_caller_frame.
3451         Add call to set_gdbarch_push_dummy_call.
3452
3453 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3454
3455         * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3456         objfile->original_name.
3457
3458 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3459
3460         Pass down original filename for objfile.
3461         * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3462         * elfread.c (elf_symfile_read): Likewise.
3463         * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3464         longer set ORIGINAL_NAME.
3465         (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3466         * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3467         * machoread.c (macho_add_oso_symfile): Add parameter name.  Update
3468         symbol_file_add_from_bfd call.
3469         (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3470         (macho_check_dsym): Add parameter filenamep.  Change function comment.
3471         Set *filenamep.
3472         (macho_symfile_read): New variable dsym_filename.  Update
3473         macho_check_dsym call.  Use it for symbol_file_add_separate.
3474         * objfiles.c (allocate_objfile): Add parameter name.  New comment for
3475         it.  Use it for objfile->original_name.
3476         (objfile_name): Return OBFD's filename, if available.
3477         * objfiles.h (allocate_objfile): Add new parameter name.
3478         * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3479         * symfile-mem.c (symbol_file_add_from_memory): Update
3480         symbol_file_add_from_bfd call.
3481         * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3482         comment for it.
3483         (symbol_file_add_with_addrs): New parameter name, add function comment
3484         for it.  Remove variable name.  Update allocate_objfile call.
3485         (symbol_file_add_separate): New parameter name, add function comment
3486         for it.  Update symbol_file_add_with_addrs call.
3487         (symbol_file_add_from_bfd): New parameter name.  Update
3488         symbol_file_add_with_addrs call.
3489         (symbol_file_add): Update symbol_file_add_from_bfd call.
3490         (reread_symbols): New variable original_name.  Save
3491         objfile->original_name by it.
3492         * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3493         second parameter.
3494
3495 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3496
3497         Code cleanup: Add objfile_name accessor function.
3498         * ada-lang.c (is_known_support_routine): Use objfile_name.
3499         * auto-load.c (source_gdb_script_for_objfile)
3500         (auto_load_objfile_script): Likewise.
3501         * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3502         * dbxread.c (dbx_symfile_read): Likewise.
3503         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3504         * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3505         * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3506         (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3507         (lookup_dwp_signatured_type, lookup_dwo_unit)
3508         (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3509         (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3510         (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3511         (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3512         (dwarf2_record_block_ranges, read_common_block, read_typedef)
3513         (read_subrange_type, load_partial_dies, read_partial_die)
3514         (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3515         (die_containing_type, build_error_marker_type, lookup_die_type)
3516         (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3517         (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3518         (get_DW_AT_signature_type, write_psymtabs_to_index)
3519         (save_gdb_index_command): Likewise.
3520         * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3521         Likewise.
3522         * expprint.c (dump_subexp_body_standard): Likewise.
3523         * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3524         * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3525         original_name.
3526         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3527         obj_name, use objfile_name for it, use the variable.
3528         (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3529         Use objfile_name.
3530         * machoread.c (macho_symtab_read, macho_check_dsym)
3531         (macho_symfile_relocate): Likewise.
3532         * maint.c (maintenance_translate_address): Likewise.
3533         * minidebug.c (find_separate_debug_file_in_section): Likewise.
3534         * minsyms.c (install_minimal_symbols): Likewise.
3535         * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3536         original_name.
3537         (filter_overlapping_sections): Use objfile_name.
3538         (objfile_name): New function.
3539         * objfiles.h (struct objfile): Rename field name to original_name.
3540         (objfile_name): New prototype.
3541         * printcmd.c (sym_info, address_info): Use objfile_name.
3542         * probe.c (parse_probes, collect_probes, compare_probes)
3543         (info_probes_for_ops): Likewise.
3544         * progspace.c (clone_program_space): Likewise.
3545         * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3546         (maintenance_info_psymtabs): Likewise.
3547         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3548         (source_section_scripts): Likewise.
3549         * python/py-objfile.c (objfpy_get_filename): Likewise.
3550         * python/py-progspace.c (pspy_get_filename): Likewise.
3551         * solib-aix.c (solib_aix_get_toc_value): Likewise.
3552         * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3553         * solib.c (solib_read_symbols): Likewise.
3554         * stabsread.c (scan_file_globals): Likewise.
3555         * stap-probe.c (handle_stap_probe): Likewise.
3556         * symfile.c (symbol_file_clear, separate_debug_file_exists)
3557         (find_separate_debug_file_by_debuglink): Likewise.
3558         (reread_symbols): Likewise.  Use the objfile field name renamed to
3559         original_name.
3560         (allocate_symtab): Use objfile_name.
3561         * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3562         (dump_objfile, dump_msymbols, dump_symtab_1)
3563         (maintenance_print_msymbols, maintenance_print_objfiles)
3564         (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3565         * target.c (target_translate_tls_address, target_info): Likewise.
3566         * xcoffread.c (xcoff_initial_scan): Make variable name const.  Use
3567         objfile_name.
3568
3569 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3570
3571         Code cleanup.
3572         * probe.c (parse_probes): Rename variable objfile_name to
3573         objfile_namestr.
3574
3575 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3576
3577         Remove solib-sunos.c.
3578         * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3579         * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3580         * objfiles.c (rt_common_objfile): Remove.
3581         (free_objfile): Remove rt_common_objfile comparison.
3582         * objfiles.h (rt_common_objfile): Remove.
3583         * solib-sunos.c: Remove.
3584         * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3585
3586 2013-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3587
3588         Remove a.out NetBSD and OpenBSD hosts.
3589         * NEWS (Removed native configurations): New.
3590         * config/arm/nbsdaout.mh: Remove.
3591         * config/i386/nbsdaout.mh: Remove.
3592         * config/i386/obsdaout.mh: Remove.
3593         * config/m68k/nbsdaout.mh: Remove.
3594         * config/sparc/nbsdaout.mh: Remove.
3595         * config/vax/nbsdaout.mh: Remove.
3596         * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3597         (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3598         (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3599         error.
3600         (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3601         (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3602         (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3603
3604 2013-09-23  Tom Tromey  <tromey@redhat.com>
3605
3606         * linespec.c (struct minsym_and_objfile): Remove.
3607         (minsym_and_objfile_d): Remove.
3608         (struct linespec, struct collect_info, linespec_parse_basic)
3609         (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3610         (compare_msymbols, find_method, find_function_symbols)
3611         (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3612         (add_minsym, search_minsyms_for_name): Update.
3613
3614 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
3615
3616         * regcache.c: Add include of valprint.h.
3617         (dump_endian_bytes): Delete.
3618         (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3619
3620 2013-09-23  Andrew Burgess  <aburgess@broadcom.com>
3621
3622         * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3623
3624 2013-09-19  Pedro Alves  <palves@redhat.com>
3625
3626         * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3627         breakpoints.
3628
3629 2013-09-19  Pedro Alves  <palves@redhat.com>
3630             Thomas Schwinge  <thomas@codesourcery.com>
3631             Yue Lu  <hacklu.newborn@gmail.com>
3632
3633         * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3634         Take a gdb_byte pointer instead of a char pointer.
3635
3636         * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3637         gnu_xfer_partial helper.
3638         (gnu_xfer_partial): New function.
3639         (gnu_target): Don't install a deprecated_xfer_memory hook.
3640         Install a to_xfer_partial hook.
3641
3642 2013-09-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3643
3644         Constification.
3645         * main.c (captured_main): Replace catch_command_errors by
3646         catch_command_errors_const.  Twice.
3647         * symfile.c (symbol_file_add_main_1): Make args parameter const.
3648         (symbol_file_add): Make name parameter const.
3649         (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3650         (symfile_bfd_open): Make name parameter const, rename it to cname.  Add
3651         variable name.  Change their usage accordingly.
3652         * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3653         const.
3654         (symbol_file_add_main): Make args parameter const.
3655
3656 2013-09-18  Raunaq Bathija  <raunaq12@in.ibm.com>
3657             Ulrich Weigand  <uweigand@de.ibm.com>
3658
3659         * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3660         of c_value member.
3661         (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3662
3663 2013-09-18  Pedro Alves  <palves@redhat.com>
3664             Yue Lu  <hacklu.newborn@gmail.com>
3665
3666         * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3667         (gnu_create_inferior)
3668         (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3669         (set_sig_thread_cmd): Use the lwpid field of ptids to
3670         store/extract thread ids instead of the tid field.
3671         * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3672
3673 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
3674
3675         * infcmd.c (default_print_one_register_info): Add detection of
3676         optimized out values.
3677         (default_print_registers_info): Switch to using
3678         get_frame_register_value.
3679
3680 2013-09-18  Markus Metzger  <markus.t.metzger@intel.com>
3681
3682         * infrun.c (handle_inferior_event): Check if we know the
3683         function start address before setting a resume breakpoint.
3684
3685 2013-09-18  Pedro Alves  <palves@redhat.com>
3686
3687         * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3688         minus_one_ptid instead of looking at the ptid's tid field and
3689         comparing that to -1.
3690
3691 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
3692
3693         * main.h (get_gdb_program_name): Remove extra whitespace.
3694
3695 2013-09-18  Andrew Burgess  <aburgess@broadcom.com>
3696
3697         * main.h (get_gdb_program_name): Add declaration.
3698         * main.c (get_gdb_program_name): Add definition.
3699
3700 2013-09-17  Doug Evans  <dje@google.com>
3701
3702         * dwarf2read.c: Move definitions of complaint functions to after
3703         forward declarations of local functions.
3704
3705 2013-09-17  Muhammad Waqas <mwaqas@codesourcery.com>
3706             Pedro Alves  <palves@redhat.com>
3707
3708         PR gdb/11568
3709         * breakpoint.c (remove_threaded_breakpoints): New function.
3710         (_initialize_breakpoint): Attach remove_threaded_breakpoints
3711         as thread_exit observer.
3712
3713 2013-09-17  Pedro Alves  <palves@redhat.com>
3714
3715         PR gdb/15911
3716         * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3717         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3718         * corelow.c (core_open):
3719         * frame.h (print_stack_frame, print_frame_info): New
3720         'set_current_sal' parameter.
3721         * infcmd.c (finish_command, kill_command): Adjust call to
3722         print_stack_frame.
3723         * inferior.c (inferior_command): Likewise.
3724         * infrun.c (normal_stop): Likewise.
3725         * linux-fork.c (linux_fork_context): Likewise.
3726         * record-full.c (record_full_goto_entry, record_full_restore):
3727         Likewise.
3728         * remote-mips.c (common_open): Likewise.
3729         * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3730         Use it.
3731         (print_frame_info): New 'set_current_sal' parameter.  Set the last
3732         displayed sal depending on the new paremeter instead of looking at
3733         print_what.
3734         (backtrace_command_1, select_and_print_frame, frame_command)
3735         (current_frame_command, up_command, down_command): Adjust call to
3736         print_stack_frame.
3737         * thread.c (print_thread_info, restore_selected_frame)
3738         (do_captured_thread_select): Adjust call to print_stack_frame.
3739         * tracepoint.c (tfind_1): Likewise.
3740         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3741         (mi_cmd_stack_info_frame): Likewise.
3742         * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3743         * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3744
3745 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3746
3747         * value.c (isvoid_internal_fn): Replace "parameter" with
3748         "argument".
3749
3750 2013-09-16  Stan Shebs  <stan@codesourcery.com>
3751
3752         * README: Update references to writing code for GDB.
3753         * configure.ac (build_warnings): Remove obsolete comment.
3754         * configure: Regenerate.
3755         * gdbarch.sh: Remove references to gdbint.texinfo.
3756         * gdbarch.h: Regenerate.
3757         * gdbtypes.c (objfile_type): Remove comments referencing internals
3758         manual and D10V.
3759
3760 2013-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3761
3762         * NEWS: Mention new convenience function $_isvoid.
3763         * value.c (isvoid_internal_fn): New function.
3764         (_initialize_values): Add new convenience function $_isvoid.
3765
3766 2013-09-16  Pierre Muller  <muller@sourceware.org>
3767
3768         * arm-linux-tdep.c: Add "elf/common.h" header.
3769         Remove AT_HWCAP macro definintion as it is provided in
3770         added include file.
3771         * s390-tdep.c: Remove system header <elf.h>
3772         Add "elf/common.h" header for AT_HWCAP definition.
3773         (s390_core_read_description): Use correct CORE_ADDR
3774         for hwcap local variable used as third parameter
3775         of function target_auxv_search.
3776
3777 2013-09-14  Pierre Muller  <muller@sourceware.org>
3778             Tom Tromey  <tromey@redhat.com>
3779             Pedro Alves  <palves@redhat.com>
3780
3781         * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3782         mode if operating system doesn't know O_CLOEXEC.
3783
3784 2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3785
3786         Code cleanup.
3787         * symfile.c (reread_symbols): Move variable obfd_filename to a more
3788         inner block.
3789
3790 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3791
3792         * NEWS: Mention TDB support.
3793         * features/s390-tdb.xml: New file.
3794         * features/s390-te-linux64.xml: New file.
3795         * features/s390x-te-linux64.xml: New file.
3796         * features/Makefile (WHICH): Add new tdescs above.
3797         (s390-te-linux64-expedite): Set.
3798         (s390x-te-linux64-expedite): Set.
3799         * features/s390-te-linux64.c: New file (generated).
3800         * features/s390x-te-linux64.c: New file (generated).
3801         * regformats/s390-te-linux64.dat: New file (generated).
3802         * regformats/s390x-te-linux64.dat: New file (generated).
3803         * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3804         (HWCAP_S390_TE): Likewise.
3805         (S390_TDB_DWORD0_REGNUM): Likewise.
3806         (S390_TDB_DWORD0_REGNUM): Likewise.
3807         (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3808         (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3809         (S390_TDB_ATIA_REGNUM): Likewise.
3810         (S390_TDB_R0_REGNUM): Likewise.
3811         (S390_TDB_R1_REGNUM): Likewise.
3812         (S390_TDB_R2_REGNUM): Likewise.
3813         (S390_TDB_R3_REGNUM): Likewise.
3814         (S390_TDB_R4_REGNUM): Likewise.
3815         (S390_TDB_R5_REGNUM): Likewise.
3816         (S390_TDB_R6_REGNUM): Likewise.
3817         (S390_TDB_R7_REGNUM): Likewise.
3818         (S390_TDB_R8_REGNUM): Likewise.
3819         (S390_TDB_R9_REGNUM): Likewise.
3820         (S390_TDB_R10_REGNUM): Likewise.
3821         (S390_TDB_R11_REGNUM): Likewise.
3822         (S390_TDB_R12_REGNUM): Likewise.
3823         (S390_TDB_R13_REGNUM): Likewise.
3824         (S390_TDB_R14_REGNUM): Likewise.
3825         (S390_TDB_R15_REGNUM): Likewise.
3826         (S390_NUM_REGS): Increase.
3827         (S390_IS_TDBREGSET_REGNUM): New macro.
3828         (s390_regmap_tdb): Declare.
3829         (s390_sizeof_tdbregset): Define.
3830         (tdesc_s390_te_linux64): Declare.
3831         (tdesc_s390x_te_linux64): Likewise.
3832         * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3833         "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3834         (s390_regmap_tdb): New regmap.
3835         (s390_supply_tdb_regset): New function.
3836         (s390_tdb_regset): New regset.
3837         (s390_linux64v2_regset_sections): Add TDB regset to list.
3838         (s390x_linux64v2_regset_sections): Likewise.
3839         (s390_regset_from_core_section): Recognize TDB core note section.
3840         (s390_core_read_description): If HWCAP indicates TE support,
3841         select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3842         (s390_gdbarch_init): Handle TDB regset.
3843         (_initialize_s390_tdep): Initialize new tdescs.
3844         * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3845         (have_regset_tdb): New variable.
3846         (s390_native_supply): Support register invalidation.
3847         (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3848         (check_regset): Treat ENODATA as "regset exists".
3849         (s390_linux_fetch_inferior_registers): Add TDB.
3850         (s390_read_description): Check for TDB existence and select
3851         appropriate tdesc.
3852         * gdbserver/Makefile.in (clean): Add removal of new makefile
3853         targets.
3854         (s390-te-linux64.c): New makefile target.
3855         (s390x-te-linux64.c): Likewise.
3856         * gdbserver/configure.srv (srv_regobj): Append new objects
3857         s390-te-linux64.o and s390x-te-linux64.o.
3858         (srv_xmlfiles): Append new files s390-te-linux64.xml,
3859         s390x-te-linux64.xml, and s390-tdb.xml.
3860         * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3861         declaration.
3862         (tdesc_s390_te_linux64): Likewise.
3863         (init_registers_s390x_te_linux64): Likewise.
3864         (tdesc_s390x_te_linux64): Likewise.
3865         (s390_check_regset): Treat ENODATA as "regset exists".
3866         (s390_arch_setup): Add TDB regset support.
3867         (initialize_low_arch): Initialize registers for new tdescs.
3868
3869 2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3870
3871         * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3872         (S390_IS_FPREGSET_REGNUM): New macro.
3873         * s390-tdep.c (s390_dwarf_regmap): Make const.
3874         (regnum_is_gpr_full): New function for replacing repeated code.
3875         (s390_pseudo_register_name): Use it.
3876         (s390_pseudo_register_type): Likewise.
3877         (s390_pseudo_register_read): Likewise.
3878         (s390_pseudo_register_write): Likewise.
3879         (s390_unwind_pseudo_register): Likewise.
3880         (s390_regmap_gregset): New format for regmap.
3881         (s390x_regmap_gregset): Likewise.
3882         (s390_regmap_fpregset): Likewise.
3883         (s390_regmap_upper): Likewise.
3884         (s390_regmap_last_break): Likewise.
3885         (s390_regmap_system_call): Likewise.
3886         (s390_supply_regset): Adjust to new regmap format.
3887         (s390_collect_regset): Likewise.
3888         * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3889         (s390_native_collect): Likewise.
3890         (supply_gregset): Likewise.
3891         (fill_gregset): Likewise.
3892         (supply_fpregset): Likewise.
3893         (fill_fpregset): Likewise.
3894         (fetch_regset): Likewise.
3895         (store_regset): Likewise.
3896         (s390_linux_fetch_inferior_registers): Likewise.
3897         (s390_linux_fetch_inferior_registers): Likewise.
3898
3899 2013-09-12  Andrew Pinski  <apinski@cavium.com>
3900
3901         * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3902
3903 2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3904
3905         * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3906
3907 2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
3908
3909         * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3910
3911 2013-09-06  Pedro Alves <palves@redhat.com>
3912
3913         * remote-sim.c (dump_mem, gdbsim_fetch_register)
3914         (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3915         (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3916         (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3917         (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3918         gdb_stdlog.
3919
3920 2013-09-06  Pedro Alves  <palves@redhat.com>
3921
3922         * remote-sim.c (dump_mem): Constify buf parameter.
3923         gdbsim_xfer_inferior_memory): Rename to ...
3924         (gdbsim_xfer_memory): ... this.  Adjust interface as
3925         target_xfer_partial helper.
3926         (gdbsim_xfer_partial): New function.
3927         (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3928         Install a to_xfer_partial hook.  Send output to gdb_stdlog.
3929
3930 2013-09-06  Pedro Alves  <palves@redhat.com>
3931
3932         * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3933         host_address_to_string, and send debug output to gdb_stdlog.
3934
3935 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3936
3937         * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3938         * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3939         gdb_target_obs for cris target.
3940         * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3941         (cris_gdbarch_init): Move calls to
3942         set_gdbarch_fetch_tls_load_module_address and
3943         set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3944         Add call to gdbarch_init_osabi.
3945         * cris-linux-tdep.c: New file.
3946         * cris-tdep.h: New file.
3947
3948 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3949
3950         * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3951         to deprecated_init_ui_hook.
3952
3953 2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
3954
3955         * cli/cli-interp.c (_initialize_cli_interp): Add a
3956         command_loop_proc to interp_procs.
3957         * event-top.c (cli_command_loop): Change signature to match
3958         interp_command_loop_ftype.
3959         * event-top.h (cli_command_loop): Same.
3960         * interps.c (interp_new): Require every interpreter to have a
3961         command_loop_proc.
3962         (current_interp_command_loop): Just call the command_loop_proc on
3963         the current interpreter.
3964         * tui/tui-interp.c (_initialize_tui_interp): Add a
3965         command_loop_proc to interp_procs.
3966
3967 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3968
3969         * cris-tdep.c (cris_gdbarch_init): Add call to
3970         get_gdbarch_fetch_tls_load_module_address.
3971
3972 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3973
3974         * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3975         (cris_elf_gregset_t): Rename from elf_gregset_t.
3976         (crisv32_elf_gregset_t): Adjust.
3977         (cris_supply_gregset, fetch_core_registers): Adjust.
3978
3979 2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
3980
3981         * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3982
3983 2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
3984
3985         * defs.h (deprecated_command_loop_hook): Remove, including
3986         references in comments.
3987         * interps.c (current_interp_command_loop): No longer use
3988         deprecated_command_loop_hook.
3989         (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3990         setup.
3991         * top.c (deprecated_command_loop_hook): Remove.
3992
3993 2013-09-05  Pedro Alves  <palves@redhat.com>
3994
3995         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3996         local is now int instead of ULONGEST.  Print it with %d
3997         instead of paddress.
3998
3999 2013-09-05  Tristan Gingold  <gingold@adacore.com>
4000
4001         * MAINTAINERS: Remove avr maintainership.
4002
4003 2013-09-05  Pedro Alves  <palves@redhat.com>
4004
4005         * findvar.c (value_of_register): Rework in terms of
4006         value_of_register_lazy.
4007
4008 2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
4009
4010         * symfile.c (add_symbol_file_command): Remove trailing
4011          whitespaces and blank line after comment.
4012
4013 2013-09-05  Pedro Alves  <palves@redhat.com>
4014
4015         * tui/tui-regs.c (tui_register_format): Don't look at the
4016         register's name here.  Return string representing register
4017         value instead of storing it in the data element.
4018         (tui_get_register): Compare register string representations
4019         instead of register value states and contents.
4020
4021 2013-09-05  Pedro Alves  <palves@redhat.com>
4022
4023         PR tui/15933
4024         * tui/tui-regs.c (tui_show_registers): Show registers of the
4025         selected frame, not the current frame.
4026
4027 2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
4028
4029         * MAINTAINERS (Write After Approval): Add myself to the list.
4030
4031 2013-09-04  Doug Evans  <dje@google.com>
4032
4033         * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
4034         (queue_and_load_dwo_tu): New function.
4035         (lookup_dwo_signatured_type): Set per_cu.tu_read.
4036         (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
4037         Make dependent_cu optional.
4038         (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
4039         and an older .gdb_index is in use, queue and load all its TUs too.
4040
4041 2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4042
4043         Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
4044         * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
4045         variable search_flags.
4046         * defs.h (OPF_DISABLE_REALPATH): Rename to ...
4047         (OPF_RETURN_REALPATH): ... here.
4048         * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
4049         * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
4050         call.  Twice.
4051         * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
4052         openp call.
4053         * solib.c (solib_find): Likewise.  Four times.
4054         * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
4055         in the function comment and for the realpath_fptr variable.
4056         (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
4057         (find_and_open_source): Likewise.  Twice.
4058         * symfile.c (symfile_bfd_open): Likewise, also twice.
4059
4060 2013-09-04  Doug Evans  <dje@google.com>
4061
4062         * progspace.c (save_current_space_and_thread): Remove unnecessary
4063         call to save_current_inferior.
4064
4065 2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
4066
4067         * sh64-tdep.c (sh64_do_register): Return after printing message
4068         about unavailable register contents.
4069
4070 2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
4071             Pedro Alves  <palves@redhat.com>
4072
4073         * symfile.c (add_symbol_file_command): Error out on unknown
4074         option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
4075         options and collapse into single conditional branch.
4076
4077 2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
4078
4079         * inf-child.c (inf_child_follow_fork): New parameter
4080         detach_fork.
4081         * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
4082         * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
4083         * inferior.h (detach_fork): Remove.
4084         * infrun.c (detach_fork): Adjust comment and make it
4085         static.
4086         (follow_fork): Pass detach_fork parameter to
4087         target_follow_fork.
4088         * linux-nat.c (linux_child_follow_fork): New parameter
4089         detach_fork.
4090         * target.c (target_follow_fork): New parameter detach_fork.
4091         Pass detach_fork as parameter and print its value.
4092         * target.h (struct target_ops) <to_follow_fork>: New int
4093         parameter.
4094         (target_follow_fork): New parameter detach_fork.
4095
4096 2013-09-03  Joel Brobecker  <brobecker@adacore.com>
4097
4098         * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
4099         Replace sec->bfd by sec->the_bfd_section->owner.
4100
4101 2013-09-03  Yao Qi  <yao@codesourcery.com>
4102
4103         * linux-tdep.c (linux_is_uclinux): New function.  Code moved
4104         from linux_has_shared_address_space.
4105         (linux_has_shared_address_space): Call linux_is_uclinux.
4106         * linux-tdep.h (linux_is_uclinux): Declare.
4107         * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
4108         linux_is_uclinux.
4109
4110 2013-09-03  Yao Qi  <yao@codesourcery.com>
4111
4112         * config/djgpp/fnchange.lst: Remove entry of
4113         i386-interix-nat.c and i386-interix-tdep.c.
4114         * configure.ac: Remove '*-*-interix*'.
4115         * configure: Re-generated.
4116         * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
4117         * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
4118         obsolete comments.
4119         * osabi.c (gdb_osabi_names): Remove "Interix".
4120
4121 2013-09-03  Yao Qi  <yao@codesourcery.com>
4122
4123         * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4124
4125 2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
4126
4127         * record.h (record_print_flag) <record_print_src_line,
4128         record_print_insn_range>: Rename into ...
4129         (record_print_flag) <record_print_src_line,
4130         record_print_insn_range>: ... this.  Update all users.
4131
4132 2013-09-02  Pierre Muller  <muller@sourceware.org>
4133
4134         * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4135         error code.
4136
4137 2013-09-02  Pierre Muller  <muller@sourceware.org>
4138
4139         * windows-nat.c (windows_xfer_memory): Fix compilation failure
4140         by use of plongest function.
4141
4142 2013-09-02  Tristan Gingold  <gingold@adacore.com>
4143
4144         * NEWS: Add entry mentioning support for native Windows x64
4145         SEH data.
4146
4147         * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4148         "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4149         (struct amd64_windows_frame_cache): New struct.
4150         (amd64_windows_w2gdb_regnum): New global.
4151         (pc_in_range, amd64_windows_frame_decode_epilogue)
4152         (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4153         (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4154         (amd64_windows_frame_this_id): New functions.
4155         (amd64_windows_frame_unwind): New static global.
4156         (amd64_windows_skip_prologue): New function.
4157         (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4158         with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4159         with amd64_windows_skip_prologue.
4160
4161 2013-08-30  Joel Brobecker  <brobecker@adacore.com>
4162
4163         GDB 7.6.1 released.
4164
4165 2013-08-30  Pedro Alves  <palves@redhat.com>
4166
4167         * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4168         SRC_AND_LOC.
4169
4170 2013-08-30  Pedro Alves  <palves@redhat.com>
4171
4172         * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4173         warning text.
4174
4175 2013-08-30  Pedro Alves  <palves@redhat.com>
4176
4177         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4178         Adjust arguments to print_stack_frame.
4179
4180 2013-08-30  Pedro Alves  <palves@redhat.com>
4181
4182         * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4183
4184 2013-08-30  Pedro Alves  <palves@redhat.com>
4185
4186         * frame.h (show_and_print_stack_frame): Delete declaration.
4187
4188 2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
4189
4190         PR python/15461
4191         * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4192         (archpy_name): Check for valid architecture.
4193         (archpy_disassemble): Ditto.
4194
4195 2013-08-29  Joel Brobecker  <brobecker@adacore.com>
4196
4197         * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4198         instead of "long long" in call to ptrace64.
4199
4200 2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
4201
4202         * mi/mi-interp.c (mi_command_loop): Change signature to match
4203         interp_command_loop_ftype.
4204         (mi1_command_loop): Remove.
4205         (mi2_command_loop): Remove.
4206         (mi3_command_loop): Remove.
4207         (mi_interpreter_resume): Remove setting of
4208         deprecated_command_loop_hook.
4209         (_initialize_mi_interp): Set mi_command_loop as the command loop
4210         callback.
4211
4212 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
4213
4214         * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4215         value_type.
4216
4217 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
4218
4219         * value.c (allocate_value_contents): Make static.
4220         * value.h (allocate_value_contents): Remove prototype.
4221
4222 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
4223
4224         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4225         of assembling value via allocate_value_lazy and attribute setter.
4226         * findvar.c (default_read_var_value): Use value_at_lazy instead of
4227         assembling value via allocate_value_lazy and attribute setter.
4228         * valops.c (do_search_struct_field): Use value_at_lazy instead of
4229         assembling value via allocate_value_lazy and attribute setter.
4230
4231 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
4232
4233         * value.c (value_from_contents_and_address): Replace allocate_value and
4234         memcpy with value_from_contents.
4235
4236 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
4237
4238         * python/py-framefilter.c (py_print_frame): Remove usage of
4239         PyString_AsString.  Use python_string_to_host_string instead.
4240         Refactor function to work with a string as a new allocation
4241         instead of a pointer.
4242         (py_print_frame): Ditto.
4243         * python/lib/gdb/frames.py (return_list): Cain iterators together
4244         instead of adding them as a list.
4245         (_sort_list): Call return_list, and remove duplicate code.
4246         (execute_frame_filters): Convert iterator to a list with list().
4247         * python/lib/gdb/command/frame_filters.py
4248         (SetFrameFilterPriority._set_filter_priority): Convert priority
4249         attribute to an integer.
4250         * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4251         wrapper function __next__.
4252         * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4253         define as "str".
4254
4255 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
4256
4257         PR python/15752
4258         * python/py-framefilter.c (apply_frame_filter): Check
4259         gdb_python_initialized.  Exit if the Python frame-filter code
4260         cannot be initialized.
4261
4262 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
4263
4264         PR cli/15842
4265         * top.c (print_gdb_version): Remove erroneous newline after help
4266         text.
4267
4268 2013-08-29  Yao Qi  <yao@codesourcery.com>
4269
4270         * varobj.c (install_dynamic_child): Remove trailing space.
4271         Add one blank line after variable declaration.
4272
4273 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4274
4275         PR gdb/15415
4276         * corefile.c (get_exec_file): Use exec_filename.
4277         * defs.h (OPF_DISABLE_REALPATH): New definition.  Add new comment.
4278         * exec.c (exec_close): Free EXEC_FILENAME.
4279         (exec_file_attach): New variable canonical_pathname.  Use
4280         OPF_DISABLE_REALPATH.  Call gdb_realpath explicitly.  Set
4281         EXEC_FILENAME.
4282         * exec.h (exec_filename): New.
4283         * inferior.c (print_inferior, inferior_command): Use
4284         PSPACE_EXEC_FILENAME.
4285         * mi/mi-main.c (print_one_inferior): Likewise.
4286         * progspace.c (clone_program_space, print_program_space): Likewise.
4287         * progspace.h (struct program_space): New field pspace_exec_filename.
4288         * source.c (openp): Describe OPF_DISABLE_REALPATH.  New variable
4289         realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4290
4291 2013-08-28  Will Newton  <will.newton@linaro.org>
4292
4293         * common/linux-ptrace.c: Include stdint.h unconditionally.
4294
4295 2013-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4296
4297         Code cleanup.
4298         * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4299
4300 2013-08-28  Yao Qi  <yao@codesourcery.com>
4301             Pedro Alves  <palves@redhat.com>
4302
4303         * event-top.c (gdb_setup_readline): Call stderr_fileopen
4304         instead of stdio_fileopen.
4305         * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4306         .Call stderr_fileopen instead of stdio_fileopen.
4307         * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4308         [__MINGW32__] (stderr_file_fputs): New function.
4309         (stderr_fileopen): New function.
4310         * ui-file.h (stderr_fileopen): Declare.
4311
4312 2013-08-27  Doug Evans  <dje@google.com>
4313
4314         * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4315         (struct dwarf2_per_cu_data): Ditto.
4316         (maybe_queue_comp_unit): Delete forward decl.  Add comment.
4317         (process_imported_unit_die): Ditto.
4318         (follow_die_sig_1): Simplify assert.
4319
4320 2013-08-27  Pedro Alves  <palves@redhat.com>
4321
4322         * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4323         xfer_partial's interface.  Return TARGET_XFER_E_IO on error.
4324         (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4325         windows_xfer_memory directly.
4326         (init_windows_ops): Don't install a deprecated_xfer_memory method.
4327
4328 2013-08-27  Pedro Alves  <palves@redhat.com>
4329
4330         * darwin-nat.c (darwin_xfer_memory): Delete.
4331         (_initialize_darwin_inferior): Don't install a
4332         deprecated_xfer_memory method.
4333
4334 2013-08-27  Pedro Alves  <pedro@codesourcery.com>
4335             Yao Qi  <yao@codesourcery.com>
4336
4337         * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4338         (parse_no_frames_option): Remove.
4339         (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4340         (mi_cmd_stack_list_args): Adjust.
4341         (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4342         (list_arg_or_local): Add new parameter 'skip_unavailable'.  Return
4343         early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4344         Caller update.
4345         (list_args_or_locals): New parameter 'skip_unavailable'.
4346         Handle it.
4347         * valprint.c (scalar_type_p): Rename to ...
4348         (val_print_scalar_type_p): ... this.  Make extern.
4349         (val_print, value_check_printable): Adjust.
4350         * valprint.h (val_print_scalar_type_p): Declare.
4351         * value.c (value_entirely_unavailable): New function.
4352         * value.h (value_entirely_unavailable): Declare.
4353
4354         * NEWS: Mention the new option "--skip-unavailable" to MI
4355         commands '-stack-list-locals', '-stack-list-arguments' and
4356         '-stack-list-variables'.
4357
4358 2013-08-27  Yao Qi  <yao@codesourcery.com>
4359
4360         * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4361         (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4362         options.
4363         * mi/mi-getopt.c (mi_getopt): Remove.
4364         (mi_getopt_1): Renamed from mi_getopt.  Add one parameter
4365         'error_on_unknown'.
4366         (mi_getopt): Call mi_getopt_1.
4367         (mi_getopt_silent): New.
4368         * mi/mi-getopt.h (mi_getopt_silent): Declare.
4369
4370 2013-08-26  Doug Evans  <dje@google.com>
4371
4372         PR symtab/15885
4373         * dwarf2read.c (dw2_dump): Print some minimal information indicating
4374         .gdb_index is in use.
4375         * symfile.c (reread_symbols): Reset objfile->sf.
4376
4377         * NEWS: Document "mt print objfiles" now takes optional regexp.
4378         * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4379         regexp of objfiles to print.
4380         (_initialize_symmisc): Update doc string for "mt print objfiles".
4381
4382         * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4383         missing debug info checks.
4384
4385 2013-08-26  Raunaq Bathija  <raunaq12@in.ibm.com>
4386             Ulrich Weigand  <uweigand@de.ibm.com>
4387
4388         * xcoffread.c (arrange_linetable): Add fix to correctly handle
4389         line tables generated by XLC compiled binaries.
4390
4391 2013-08-23  Doug Evans  <dje@google.com>
4392
4393         * symmisc.c (dump_symtab): Delete prototype.
4394         (dump_msymbols, dump_objfile): Ditto.
4395         (maintenance_info_symtabs): Mark as dont_repeat.
4396         (_initialize_symmisc): Improve doc string for "mt info symtabs".
4397
4398         * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4399         debugging printf to better location.
4400
4401 2013-08-23  Pedro Alves  <palves@redhat.com>
4402
4403         * target.c (target_read_live_memory): Change type of 'ret' local
4404         to LONGEST.
4405
4406 2013-08-23  Pedro Alves  <palves@redhat.com>
4407
4408         * remote.c (remote_write_bytes_aux, remote_write_bytes)
4409         (remote_read_bytes): Change return type to LONGEST, and adjust to
4410         return a target_xfer_error on error.
4411         (remote_xfer_memory): Delete.
4412         (remote_flash_write): Change type of 'ret' local to LONGEST.
4413         (remote_xfer_partial, remote_xfer_partial): Adjust.
4414         (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4415
4416 2013-08-23  Pierre Muller  <muller@sourceware.org>
4417
4418         ARI fix: Push # directives to start of line.
4419         * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4420
4421 2013-08-12  Muhammad Waqas  <mwaqas@codesourcery.com>
4422
4423         PR gdb/15501
4424         * breakpoint.c (enable_command, disable_command): Iterate over
4425         all specified breakpoint locations.
4426
4427 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
4428
4429         * common/linux-ptrace.c (linux_fork_to_function): Push #
4430         directives to the start of the line.
4431         (linux_check_ptrace_features): Fix warning message to use
4432         the "_" markup.
4433
4434 2013-08-22  Luis Machado  <lgustavo@codesourcery.com>
4435
4436         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4437         nat/linux-waitpid.h.
4438         (linux-waitpid.o): New object file rule.
4439         * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4440         (current_ptrace_options): Moved from linux-nat.c.
4441         (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4442         parameters.
4443         (linux_fork_to_function): New function.
4444         (linux_grandchild_function): Likewise.
4445         (linux_child_function): Likewise.
4446         (linux_check_ptrace_features): New function, heavily
4447         based on linux-nat.c:linux_test_for_tracefork.
4448         (linux_enable_event_reporting): New function.
4449         (ptrace_supports_feature): Likewise.
4450         (linux_supports_tracefork): Likewise.
4451         (linux_supports_traceclone): Likewise.
4452         (linux_supports_tracevforkdone): Likewise.
4453         (linux_supports_tracesysgood): Likewise.
4454         * common/linux-ptrace.h (HAS_NOMMU): Moved from
4455         gdbserver/linux-low.c.
4456         (linux_enable_event_reporting): New declaration.
4457         (linux_supports_tracefork): Likewise.
4458         (linux_supports_traceclone): Likewise.
4459         (linux_supports_tracevforkdone): Likewise.
4460         (linux_supports_tracesysgood): Likewise.
4461         * config.in (PTRACE_TYPE_ARG4): Regenerate.
4462         * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4463         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4464         * config/arm/linux.mh (NATDEPFILES): Likewise.
4465         * config/i386/linux.mh (NATDEPFILES): Likewise.
4466         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4467         * config/ia64/linux.mh (NATDEPFILES): Likewise.
4468         * config/m32r/linux.mh (NATDEPFILES): Likewise.
4469         * config/m68k/linux.mh (NATDEPFILES): Likewise.
4470         * config/mips/linux.mh (NATDEPFILES): Likewise.
4471         * config/pa/linux.mh (NATDEPFILES): Likewise..
4472         * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4473         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4474         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4475         * config/sparc/linux.mh (NATDEPFILES): Likewise.
4476         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4477         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4478         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4479         * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4480         ptrace's 4th argument's types.
4481         Check the type of PTRACE_TYPE_ARG4.
4482         * configure: Regenerate.
4483         * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4484         (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4485         (linux_supports_tracefork_flag): Remove.
4486         (linux_supports_tracesysgood_flag): Likewise.
4487         (linux_supports_tracevforkdone_flag): Likewise.
4488         (current_ptrace_options): Moved to
4489         common/linux-ptrace.c.
4490         (linux_tracefork_child): Remove.
4491         (my_waitpid): Remove.
4492         (linux_test_for_tracefork): Renamed to
4493         linux_check_ptrace_features and moved to common/linux-ptrace.c.
4494         (linux_test_for_tracesysgood): Remove.
4495         (linux_supports_tracesysgood): Remove.
4496         (linux_supports_tracefork): Remove.
4497         (linux_supports_tracevforkdone): Remove.
4498         (linux_enable_tracesysgood): Remove.
4499         (linux_enable_event_reporting): Remove.
4500         (linux_init_ptrace): New function.
4501         (linux_child_post_attach): Call linux_init_ptrace.
4502         (linux_child_post_startup_inferior): Call linux_init_ptrace.
4503         (linux_child_follow_fork): Call linux_supports_tracefork
4504         and linux_supports_tracevforkdone.
4505         (linux_child_insert_fork_catchpoint): Call
4506         linux_supports_tracefork.
4507         (linux_child_insert_vfork_catchpoint): Likewise.
4508         (linux_child_set_syscall_catchpoint): Call
4509         linux_supports_tracesysgood.
4510         (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4511         * nat/linux-nat.h: New file.
4512         * nat/linux-waitpid.c: New file.
4513         * nat/linux-waitpid.h: New file.
4514
4515 2013-08-22  Samuel Bronson  <naesten@gmail.com>
4516
4517         ARM Linux support for `catch syscall'.
4518         * syscalls/arm-linux.py: New file.
4519         * syscalls/arm-linux.xml: Likewise.
4520         * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4521         (arm_linux_init_abi): Register the new function and syscall xml file.
4522         * data-directory/Makefile.in: Install the new syscall xml file.
4523         * NEWS: Brag about this.
4524
4525 2013-08-22  Pedro Alves  <palves@redhat.com>
4526
4527         PR gdb/15871
4528         * corefile.c (target_xfer_memory_error): New function.
4529         (memory_error): Defer EIO to target_memory_error.
4530         (read_memory): Use target_xfer_partial, and handle finer-grained
4531         target xfer errors.
4532         * target.c (target_xfer_error_to_string): New function.
4533         (memory_xfer_partial_1): If memory is known to be
4534         unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4535         (target_xfer_partial): Make extern.
4536         * target.h (enum target_xfer_error): New enum.
4537         (target_xfer_error_to_string): Declare function.
4538         (target_xfer_partial): Declare function.
4539         (struct target_ops) <xfer_partial>: Adjust describing comment.
4540
4541 2013-08-22  Alan Modra  <amodra@gmail.com>
4542
4543         * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4544         * configure.tgt: Likewise as targets.
4545
4546 2013-08-20  Doug Evans  <dje@google.com>
4547
4548         * buildsym.c (subfile_stack): Move here from buildsym.h.
4549         (pending_macros): Ditto.
4550         (get_macro_table): New function.
4551         (buildsym_init): Initialize subfile_stack.
4552         * coffread.c (type_vector,type_vector_length): Moved here from
4553         buildsym.h.
4554         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4555         (coff_symtab_read): Use it.
4556         * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4557         * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4558         with call to get_macro_table.
4559         * stabsread.c (type_vector,type_vector_length): Moved here from
4560         buildsym.h.
4561         (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4562         * buildsym.h (get_macro_table): Declare.
4563
4564 2013-08-20  Tom Tromey  <tromey@redhat.com>
4565
4566         * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4567         Update.
4568         (read_dbx_dynamic_symtab): Make 'name' const.  Remove casts.
4569
4570 2013-08-20  Doug Evans  <dje@google.com>
4571
4572         * blockframe.c: Remove #include "psymtab.h".
4573         * cp-support.c: Ditto.
4574         * source.c: Ditto.
4575         * stack.c: Ditto.
4576
4577 2013-08-20  Tom Tromey  <tromey@redhat.com>
4578
4579         PR python/15816:
4580         * exceptions.h (return_mask): Now an enum.
4581         (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4582         enum constants.
4583
4584 2013-08-20  Tom Tromey  <tromey@redhat.com>
4585
4586         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4587         get_objfile_arch.
4588         * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4589         (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4590         * jit.c (jit_object_close_impl): Update.
4591         * jv-lang.c (get_dynamics_objfile): Update.
4592         * linespec.c (add_minsym): Use get_dynamics_objfile.
4593         * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4594         (allocate_objfile): Don't initialize 'gdbarch' field.
4595         (get_objfile_arch): Update.
4596         * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4597         moved from...
4598         (struct objfile) <gdbarch>: ... here.  Remove.
4599         * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4600         get_objfile_arch.
4601         * symfile.c (init_entry_point_info): Use get_objfile_arch.
4602
4603 2013-08-20  Alan Modra  <amodra@gmail.com>
4604
4605         * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4606         for IBM long double nan and inf.
4607         (floatformat_is_negative, floatformat_classify,
4608         floatformat_mantissa): Similarly.
4609         (floatformat_ieee_single, floatformat_ieee_double,
4610         floatformat_ieee_quad, floatformat_arm_ext,
4611         floatformat_ia64_spill): Delete unused vars.
4612         (_initialize_doublest): Delete unused function.
4613         * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4614         little-endian variants of floatformat_ibm_long_double.
4615
4616 2013-08-19  Luis Machado  <lgustavo@codesourcery.com>
4617
4618         * Makefile.in (SFILES): Remove common/target-common.c and
4619         add target/waitstatus.c.
4620         (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4621         target/resume.h, target/wait.h and target/waitstatus.h.
4622         (COMMON_OBS): Remove target-common.o and add
4623         waitstatus.o.
4624         (target-common.o): Remove.
4625         (waitstatus.o): New target object file.
4626         * common/target-common.c: Move contents to
4627         target/waitstatus.c and remove.
4628         * common/target-common.h: Move contents to other files and
4629         remove.
4630         (enum resume_kind: Move to target/resume.h.
4631         (TARGET_WNOHANG): Move to target/wait.h.
4632         (enum target_waitkind): Move to target/waitstatus.h.
4633         (struct target_waitstatus): Likewise.
4634         * target.h: Do not include target-common.h and
4635         include target/resume.h, target/wait.h and
4636         target/waitstatus.h.
4637         * target/resume.h: New file.
4638         * target/wait.h: New file.
4639         * target/waitstatus.h: New file.
4640         * target/waitstatus.c: New file.
4641
4642 2013-08-19  Pedro Alves  <palves@redhat.com>
4643
4644         * linux-nat.c (linux_test_for_tracefork)
4645         (linux_test_for_tracesysgood, linux_child_follow_fork)
4646         (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4647         (linux_nat_wait_1): Extend comment.
4648         (linux_async_pipe): Add comment.
4649
4650 2013-08-15  Kevin Buettner  <kevinb@redhat.com>
4651
4652         * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4653         (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4654         (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4655         Update to account for fact that PC is now a pseudo-register.
4656         (rl78_pseudo_register_write, rl78_pseudo_register_read):  Add
4657         cases for RL78_PC_REGNUM.
4658
4659 2013-08-15  Muhammad Bilal  <mbilal@codesourcery.com>
4660
4661         PR cli/15841
4662         * top.c (quit_force): Skip writing history file
4663         if input is not from terminal.
4664
4665 2013-08-14  Tom Tromey  <tromey@redhat.com>
4666
4667         * remote.c (struct remote_state) <echo_nextthread, nextthread,
4668         resultthreadlist>: New fields.
4669         (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4670         (remote_get_threadlist, remote_threadlist_iterator): Use
4671         new fields.  Remove static variables.
4672
4673 2013-08-14  Tom Tromey  <tromey@redhat.com>
4674
4675         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4676         remote_watch_data_address>: New fields.
4677         (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4678         (process_stop_reply, remote_wait_as)
4679         (remote_check_watch_resources, remote_stopped_data_address): Update.
4680
4681 2013-08-14  Tom Tromey  <tromey@redhat.com>
4682
4683         * remote.c (struct remote_state) <async_client_callback,
4684         async_client_context>: New fields.
4685         (async_client_callback, async_client_context): Remove.
4686         (remote_async_serial_handler, remote_async): Update.
4687
4688 2013-08-14  Tom Tromey  <tromey@redhat.com>
4689
4690         * remote.c (sizeof_pkt): Remove.
4691         (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4692
4693 2013-08-14  Tom Tromey  <tromey@redhat.com>
4694
4695         * remote.c (struct remote_state) <use_threadinfo_query,
4696         use_threadextra_query>: New fields.
4697         (remote_threads_info, remote_threads_extra_info)
4698         (remote_open_1): Update.
4699
4700 2013-08-14  Tom Tromey  <tromey@redhat.com>
4701
4702         * remote.c (struct remote_state) <finished_object,
4703         finished_annex, finished_offset>: New fields.
4704         (remote_read_qxfer): Use remote_state fields; remove static
4705         variables.
4706
4707 2013-08-14  Tom Tromey  <tromey@redhat.com>
4708
4709         * remote.c (struct remote_state) <last_sent_step>:
4710         New field.
4711         (last_sent_step): Remove.
4712         (remote_resume, remote_wait_as): Update.
4713
4714 2013-08-14  Tom Tromey  <tromey@redhat.com>
4715
4716         * remote.c (struct remote_state) <last_sent_signal>:
4717         New field.
4718         (last_sent_signal): Remove.
4719         (new_remote_state, remote_resume, remote_wait_as): Update.
4720
4721 2013-08-14  Tom Tromey  <tromey@redhat.com>
4722
4723         * remote.c (struct remote_state) <last_program_signals_packet>:
4724         New field.
4725         (last_program_signals_packet): Remove.
4726         (remote_program_signals, remote_open_1): Update.
4727
4728 2013-08-14  Tom Tromey  <tromey@redhat.com>
4729
4730         * remote.c (struct remote_state) <last_pass_packet>:
4731         New field.
4732         (last_pass_packet): Remove.
4733         (remote_pass_signals, remote_open_1): Update.
4734
4735 2013-08-14  Tom Tromey  <tromey@redhat.com>
4736
4737         * remote.c (struct remote_state) <remote_traceframe_number>:
4738         New field.
4739         (remote_traceframe_number): Remove.
4740         (new_remote_state, remote_open_1, set_remote_traceframe)
4741         (remote_trace_find): Update.
4742
4743 2013-08-14  Tom Tromey  <tromey@redhat.com>
4744
4745         * remote.c (struct remote_state) <general_thread, continue_thread>:
4746         New fields.
4747         (general_thread, continue_thread): Remove.
4748         (record_currthread, set_thread, set_general_process)
4749         (remote_open_1, extended_remote_attach_1, remote_wait_as)
4750         (extended_remote_mourn_1): Update.
4751
4752 2013-08-14  Tom Tromey  <tromey@redhat.com>
4753
4754         * remote.c (struct remote_state) <remote_desc>: New field.
4755         (remote_desc): Remove.
4756         (remote_threads_info, remote_threads_extra_info, remote_close)
4757         (send_interrupt_sequence, remote_start_remote, remote_open_1)
4758         (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4759         (remote_hostio_send_command, remote_file_put, remote_file_get)
4760         (remote_file_delete, remote_can_async_p, remote_is_async_p)
4761         (remote_async, remote_new_objfile, set_range_stepping): Update.
4762
4763 2013-08-14  Tom Tromey  <tromey@redhat.com>
4764
4765         * remote.c (remote_state): Now a pointer.
4766         (get_remote_state_raw): Update.
4767         (new_remote_state): New function.
4768         (_initialize_remote): Use new_remote_state.
4769
4770 2013-08-14  Tom Tromey  <tromey@redhat.com>
4771
4772         * remote.c (remote_protocol_features): Now const.
4773
4774 2013-08-14  Tom Tromey  <tromey@redhat.com>
4775
4776         * remote.c (crc32_table, crc32): Remove.
4777         (remote_verify_memory): Use xcrc32.
4778
4779 2013-08-13  Sergio Durigan Junior  <sergiodj@redhat.com>
4780
4781         * value.h (create_internalvar_type_lazy): Adjust prototype
4782         declaration.
4783
4784 2013-08-13  Andrew Burgess  <aburgess@broadcom.com>
4785
4786         * common/format.c (parse_format_string): Don't allow '#' flag for
4787         pointer arguments in format string.
4788
4789 2013-08-13  Pierre Muller  <muller@sourceware.org>
4790
4791         * utils.c (init_page_info): Only call tgetnum function
4792         if rl_get_screen_size did not return useful values.
4793
4794 2013-08-12  Ali Anwar  <ali_anwar@codesourcery.com>
4795
4796         PR breakpoints/15117
4797         * linespec.c (linespec_parse_basic): Check for convenience
4798         variable or history value while parsing.
4799
4800 2013-08-12  Sergio Durigan Junior  <sergiodj@redhat.com>
4801
4802         Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4803         AVR.
4804         * avr-tdep.c: Remove include of "linux-tdep.h".  Remove enum with
4805         different signals between the generic Linux kernel implementation
4806         and AVR's.
4807         (avr_linux_gdb_signal_from_target): Delete.
4808         (avr_linux_gdb_signal_to_target): Delete.
4809         (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4810
4811 2013-08-09  Doug Evans  <dje@google.com>
4812
4813         * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4814         entries.
4815
4816 2013-08-09  Sergio Durigan Junior  <sergiodj@redhat.com>
4817
4818         * linux-tdep.c: Define enum with generic signal numbers.
4819         (linux_gdb_signal_from_target): New function.
4820         (linux_gdb_signal_to_target): Likewise.
4821         (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4822         methods to the functions above.
4823         * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4824         (linux_gdb_signal_to_target): Likewise.
4825         * alpha-linux-tdep.c: Define new enum with signals different
4826         from generic Linux kernel.
4827         (alpha_linux_gdb_signal_from_target): New function.
4828         (alpha_linux_gdb_signal_to_target): Likewise.
4829         (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4830         with the functions mentioned above.
4831         * avr-tdep.c: Define enum with differences between Linux kernel
4832         and AVR signals.
4833         (avr_linux_gdb_signal_from_target): New function.
4834         (avr_linux_gdb_signal_to_target): Likewise.
4835         (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4836         the functions mentioned above.
4837         * sparc-linux-tdep.c: Define enum with differences between SPARC
4838         and generic Linux kernel signal numbers.
4839         (sparc32_linux_gdb_signal_from_target): New function.
4840         (sparc32_linux_gdb_signal_to_target): Likewise.
4841         (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4842         to the functions defined above.
4843         * xtensa-linux-tdep.c: Define enum with differences between
4844         Xtensa and Linux kernel generic signals.
4845         (xtensa_linux_gdb_signal_from_target): New function.
4846         (xtensa_linux_gdb_signal_to_target): Likewise.
4847         (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4848         to the functions defined above.
4849         * mips-linux-tdep.c: Define enum with differences between
4850         signals in MIPS and Linux kernel generic ones.
4851         (mips_gdb_signal_to_target): New function.
4852         (mips_gdb_signal_from_target): Redefine to use new enum, handle
4853         only different signals from the Linux kernel generic.
4854         (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4855         the functions defined above.
4856         * mips-linux-tdep.h (enum mips_signals): Remove.
4857
4858 2013-08-09  Pedro Alves  <palves@redhat.com>
4859
4860         * avr-tdep.c (XMALLOC): Delete macro.
4861         * cli/cli-dump.c (XMALLOC): Delete macro.
4862
4863 2013-08-09  Pedro Alves  <palves@redhat.com>
4864
4865         * cli/cli-dump.c: Don't include cli/cli-dump.h.
4866         (scan_expression_with_cleanup, scan_filename_with_cleanup)
4867         (fopen_with_cleanup, add_dump_command): Make static.
4868         * cli/cli-dump.h: Delete file.
4869         * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4870         cli/cli-dump.h.
4871
4872 2013-08-09  Pedro Alves  <palves@redhat.com>
4873
4874         * tracepoint.c (tfile_start): Show tilde-expanded filename in
4875         error message.
4876
4877 2013-08-09  Pedro Alves  <palves@redhat.com>
4878
4879         * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4880         error message.
4881
4882 2013-08-09  Pedro Alves  <palves@redhat.com>
4883
4884         * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4885         (gcore_command): Use tilde_expand here, and when showing the
4886         filename to the user, show the expanded version.
4887
4888 2013-08-09  Yao Qi  <yao@codesourcery.com>
4889
4890         * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4891         'entryval' is set.
4892
4893 2013-08-08  Azat Khuzhin  <a3at.mail@gmail.com>  (tiny change)
4894
4895         * gcore.c (create_gcore_bfd): Use tilde_expand.
4896
4897 2013-08-08  Yao Qi  <yao@codesourcery.com>
4898
4899         * frame.h (read_frame_local): Declare.
4900         * mi/mi-cmd-stack.c (list_args_or_locals): Call
4901         read_frame_local.
4902         * stack.c (read_frame_local): New.
4903
4904 2013-08-08  Yao Qi  <yao@codesourcery.com>
4905
4906         * mi/mi-cmd-stack.c: Update comments to function
4907         list_args_or_locals.
4908
4909 2013-08-07  Tom Tromey  <tromey@redhat.com>
4910
4911         PR symtab/15028:
4912         * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4913         (process_psymtab_comp_unit_reader): Use it.
4914         (process_psymtab_comp_unit): Update.  Add "pretend_language"
4915         argument.
4916         (dwarf2_build_psymtabs_hard): Update.
4917         (scan_partial_symbols): Pass CU's language to
4918         process_psymtab_comp_unit.
4919
4920 2013-08-07  Tom Tromey  <tromey@redhat.com>
4921
4922         * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4923         (dwarf2_gdb_index_functions): Update.
4924         * psymtab.c (find_symbol_file_from_partial): Remove.
4925         (psym_functions): Update.
4926         * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4927         Remove.
4928
4929 2013-08-07  Tom Tromey  <tromey@redhat.com>
4930
4931         * symfile.c (set_initial_language): Look up "main" symbol
4932         and use its language.
4933         * symtab.c (find_main_filename): Remove.
4934         * symtab.h (find_main_filename): Remove.
4935
4936 2013-08-07  Tom Tromey  <tromey@redhat.com>
4937
4938         * dwarf2read.c (recursively_compute_inclusions): Add
4939         "immediate_parent" argument.  Set symtab's "user" field
4940         if not set.
4941         (compute_symtab_includes): Update.
4942
4943 2013-08-07  Tom Tromey  <tromey@redhat.com>
4944
4945         * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4946         when adding label symbols.
4947
4948 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4949             Ulrich Weigand  <uweigand@de.ibm.com>
4950
4951         * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4952         * configure.host (powerpc64-*-aix*): Likewise.
4953
4954 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4955             Ulrich Weigand  <uweigand@de.ibm.com>
4956
4957         * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4958         is defined.
4959         * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4960         (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4961         (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4962         * configure.ac: Check for ptrace64.
4963         * configure, config.in: Regenerate.
4964
4965 2013-08-07  Raunaq Bathija  <raunaq12@in.ibm.com>
4966             Ulrich Weigand  <uweigand@de.ibm.com>
4967
4968         * aixthread.c: Call ptrace64 instead of ptracex if defined.
4969         Call ptrace64 instead of ptrace if defined.
4970         Add macro addr_ptr to take care of ptrace address argument.
4971         (pdc_read_regs): Likewise.
4972         (pdc_write_regs): Likewise.
4973         (aix_thread_resume): Likewise.
4974         (fetch_regs_kernel_thread): Likewise.
4975         (store_regs_kernel_thread): Likewise.
4976
4977 2013-08-07  Anton Blanchard  <anton@samba.org>
4978
4979         * MAINTAINERS: Add myself to Write After Approval.
4980
4981 2013-08-05  Tom Tromey  <tromey@redhat.com>
4982
4983         * aix-thread.c (_initialize_aix_thread): Use
4984         complete_target_initialization.
4985         * bsd-uthread.c (_initialize_bsd_uthread): Use
4986         complete_target_initialization.
4987         * dec-thread.c (_initialize_dec_thread): Use
4988         complete_target_initialization.
4989         * ravenscar-thread.c (_initialize_ravenscar): Use
4990         complete_target_initialization.
4991         * sol-thread.c (_initialize_sol_thread): Use
4992         complete_target_initialization.
4993         * spu-multiarch.c (_initialize_spu_multiarch): Use
4994         complete_target_initialization.
4995
4996 2013-08-05  Tom Tromey  <tromey@redhat.com>
4997
4998         * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4999         * ada-lang.c (ada_lookup_simple_minsym): Return
5000         bound_minimal_symbol.
5001         * ada-lang.h (ada_lookup_simple_minsym): Update.
5002         * c-exp.y (variable): Use lookup_bound_minimal_symbol.
5003         * f-exp.y (variable): Use lookup_bound_minimal_symbol.
5004         * go-exp.y (variable): Use lookup_bound_minimal_symbol.
5005         * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
5006         * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
5007         * minsyms.c (msymbol_objfile): Remove.
5008         (lookup_minimal_symbol_internal): New function, from
5009         lookup_minimal_symbol.
5010         (lookup_minimal_symbol): Rewrite using
5011         lookup_minimal_symbol_internal.
5012         (lookup_bound_minimal_symbol): New function.
5013         * minsyms.h (msymbol_objfile): Remove.
5014         (lookup_bound_minimal_symbol): Declare.
5015         * p-exp.y (variable): Use lookup_bound_minimal_symbol.
5016         * parse.c (write_exp_msymbol): Change parameter to a
5017         bound_minimal_symbol.
5018         (write_dollar_variable): Use lookup_bound_minimal_symbol.
5019         * parser-defs.h (write_exp_msymbol): Update.
5020         * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
5021         * symfile.c (simple_read_overlay_table): Use
5022         lookup_bound_minimal_symbol.
5023         * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
5024         (search_symbols): Likewise.
5025         (print_msymbol_info): Take a bound_minimal_symbol argument.
5026         (symtab_symbol_info, rbreak_command): Update.
5027         * symtab.h (struct symbol_search) <msymbol>: Change type
5028         to bound_minimal_symbol.
5029         * valops.c (find_function_in_inferior): Use
5030         lookup_bound_minimal_symbol.
5031         * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
5032
5033 2013-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5034
5035         Code cleanup.
5036         * remote.c (cleanup_sigint_signal_handler): Rename the declaration
5037         to ...
5038         (async_cleanup_sigint_signal_handler): ... this.
5039         (initialize_sigint_signal_handler): Remove declaration.
5040         (handle_remote_sigint): Rename the declaration to ...
5041         (async_handle_remote_sigint): ... this.
5042         (handle_remote_sigint_twice): Rename the declaration to ...
5043         (async_handle_remote_sigint_twice): ... this.
5044         (async_remote_interrupt, async_remote_interrupt_twice)
5045         (remote_interrupt): Remove the declarations.
5046         (remote_interrupt_twice): Rename the declaration ...
5047         (sync_remote_interrupt_twice): ... this.
5048         (sigint_remote_twice_token): Rename the variable to ...
5049         (async_sigint_remote_twice_token): ... this.
5050         (sigint_remote_token): Rename the variable to ...
5051         (async_sigint_remote_token): ... this.
5052         (initialize_sigint_signal_handler): Rename the function to ...
5053         (async_initialize_sigint_signal_handler): ... this.  Update the name
5054         inside.
5055         (handle_remote_sigint): Rename the function to ...
5056         (async_handle_remote_sigint): ... this.  Update the names inside.
5057         (handle_remote_sigint_twice): Rename the function to ...
5058         (async_handle_remote_sigint_twice): ... this.  Update the names inside.
5059         (cleanup_sigint_signal_handler): Rename the function to ...
5060         (async_cleanup_sigint_signal_handler): ... this.
5061         (remote_interrupt): Rename the function to ...
5062         (sync_remote_interrupt): this.  Update the names inside.
5063         (remote_interrupt_twice): Rename the function to ...
5064         (sync_remote_interrupt_twice): this.  Update the names inside.
5065         (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
5066         (_initialize_remote): Update the names inside.
5067
5068 2013-08-02  Tom Tromey  <tromey@redhat.com>
5069
5070         PR symtab/15719:
5071         * breakpoint.c (update_watchpoint, watchpoint_check)
5072         (watch_command_1): Update.
5073         * eval.c (fetch_subexp_value): Add "preserve_errors"
5074         parameter.
5075         * ppc-linux-nat.c (check_condition): Update.
5076         * value.h (fetch_subexp_value): Update.
5077
5078 2013-08-02  Andrew Burgess  <aburgess@broadcom.com>
5079
5080         * mi/mi-interp.c (mi_interpreter_resume): Remove call to
5081         add_file_handler.
5082
5083 2013-08-01  Doug Evans  <dje@google.com>
5084
5085         PR symtab/15691
5086         * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
5087         (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
5088         Add assert of sig_entry->dwo_unit == NULL.
5089         (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
5090         had already been read.
5091         (read_signatured_type): Set per_cu.tu_read.
5092
5093         PR symtab/15695
5094         * valops.c (value_struct_elt): Add missing call to check_typedef.
5095         (value_find_oload_method_list): Ditto.
5096
5097         * symtab.c (do_free_search_symbols_cleanup): Change arg to,
5098         effectively, struct symbol_search **.
5099         (make_cleanup_free_search_symbols): Change arg to struct
5100         symbol_search **.  All callers updated.
5101         (compare_search_syms): Compare symtab file name and block as well.
5102         (search_symbols_equal): New function.
5103         (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
5104         New args new_head, new_tail.  Result is now void.  Remove dups after
5105         sorting the symbols.
5106         (search_symbols): Sort all found symbols once, after all have been
5107         found, and remove duplicates.  Simplify cleanup tracking of result.
5108         * symtab.h (make_cleanup_free_search_symbols): Update prototype.
5109
5110         Further workarounds for binutils/15021.
5111         * dwarf2read.c (recursively_compute_inclusions): Change type of result
5112         parameter to VEC (symtab_ptr) **.  New parameter all_type_symtabs.
5113         Watch for duplicate symtabs coming from type units.
5114         (compute_symtab_includes): Update call to
5115         recursively_compute_inclusions. Build vector of included symtabs
5116         instead of per_cus.
5117         * symtab.h (symtab_ptr): New typedef.
5118         (DEF_VEC_P (symtab_ptr)): New VEC type.
5119         * linespec.c (symtab_p): Delete.  All uses updated to use symtab_ptr
5120         instead.
5121
5122 2013-08-01  Andrew Burgess  <aburgess@broadcom.com>
5123
5124         * cli/cli-script.c (script_from_file): Remove use of
5125         error_pre_print.
5126         * main.c (captured_main): Remove use of error_pre_print and
5127         quit_pre_print.
5128         * utils.c (error_pre_print, quit_pre_print): Remove.
5129         * utils.h (error_pre_print, quit_pre_print): Likewise.
5130
5131 2013-08-01  Yao Qi  <yao@codesourcery.com>
5132
5133         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5134         with mi_getopt.
5135         (mi_cmd_stack_list_variables): Likewise.
5136
5137 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
5138
5139         * exceptions.c (deprecated_throw_reason): Remove.
5140         * exceptions.h (deprecated_throw_reason): Remove.
5141
5142 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
5143
5144         * remote-mips.c (mips_error): Replace use of
5145         deprecated_throw_reason with throw_verror.  Use the error message
5146         passed to mips_error as the error message for throw_verror.
5147
5148 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
5149
5150         * monitor.c (monitor_interrupt_query): Replace use of
5151         deprecated_throw_reason with quit.
5152         * nto-procfs.c (interrupt_query): Likewise.
5153         * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5154         * remote-mips.c (mips_kill): Likewise.
5155         * remote.c (interrupt_query): Likewise.
5156
5157 2013-07-31  Andrew Burgess  <aburgess@broadcom.com>
5158
5159         * utils.c (internal_verror): Replace use of deprecated_throw_reason
5160         with call to fatal.
5161
5162 2013-07-31  Pedro Alves  <pedro@codesourcery.com>
5163             Yao Qi  <yao@codesourcery.com>
5164
5165         * tracepoint.c (trace_dump_command): Select the current frame.
5166
5167 2013-07-30  Doug Evans  <dje@google.com>
5168
5169         * dwarf2read.c (process_queue): Add type signature to debug output.
5170
5171 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
5172
5173         * value.c (value_fetch_lazy): Mark optimized out values as such
5174         rather than raising an error.
5175
5176 2013-07-30  Andrew Burgess  <aburgess@broadcom.com>
5177
5178         * value.c (value_fetch_lazy): Ensure parent value is not lazy
5179         before checking which bits of the parent, not the child, value are
5180         valid.
5181
5182 2013-07-30  Muhammad Bilal  <mbilal@codesorcery.com>
5183
5184         PR gdb/15715
5185         * top.c: Include "filenames.h".
5186         (set_history_filename): New function.
5187         (init_main): Install it as set hook of the "set history filename"
5188         command.
5189
5190 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
5191
5192         * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5193         attribute parameter.
5194         (dwarf2_const_value_data): Constify struct attribute parameter.
5195         (dwarf2_const_value): Constify struct attribute parameter.
5196         (dwarf2_const_value_attr): Constify struct attribute parameter.
5197         (lookup_die_type): Constify struct attribute parameter.
5198         (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5199         (follow_die_ref_or_sig): Constify struct attribute parameter.
5200         (follow_die_ref): Constify struct attribute parameter.
5201         (follow_die_sig): Constify struct attribute parameter.
5202         (get_DW_AT_signature_type): Constify struct attribute parameter.
5203         (get_type_unit_group): Constify struct attribute parameter.
5204         (fill_in_loclist_baton): Constify struct attribute parameter.
5205         (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5206         (type_unit_group): Constify struct attribute parameter.
5207
5208 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
5209
5210         * dwarf2read.c (attr_form_is_block): Make argument const.
5211         (attr_form_is_section_offset): Make argument const.
5212         (attr_form_is_constant): Make argument const.
5213         (attr_form_is_ref): Make argument const.
5214
5215 2013-07-30  Sanimir Agovic  <sanimir.agovic@intel.com>
5216
5217         * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5218         All uses updated.
5219         (attr_form_is_ref): Moved below attr_form_is_constant.
5220
5221 2013-07-29  Doug Evans  <dje@google.com>
5222
5223         * main.c (captured_command_loop): Tweak comment.
5224
5225         * target.c (target_async_permitted_1): Fix comment.
5226
5227         * symtab.c (iterate_over_some_symtabs): Add comment.
5228
5229         * symtab.c (iterate_over_some_symtabs): Fix indentation.
5230
5231 2013-07-27  Yao Qi  <yao@codesourcery.com>
5232
5233         * NEWS: Mention that GDBserver now supports hardware
5234         watchpoints on the MIPS GNU/Linux target.
5235
5236 2013-07-27  Yao Qi  <yao@codesourcery.com>
5237
5238         * Makefile.in (HFILES_NO_SRCDIR): Add
5239         common/mips-linux-watch.h.
5240         (mips-linux-watch.o): New rule.
5241         * common/mips-linux-watch.c: New.
5242         * common/mips-linux-watch.h: New.
5243         * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5244         * mips-linux-nat.c: Include mips-linux-watch.h.
5245         (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5246         to common/mips-linux-watch.h.
5247         (MAX_DEBUG_REGISTER): Likewise.
5248         (enum pt_watch_style): Likewise.
5249         (struct mips32_watch_regs): Likewise.
5250         (struct mips64_watch_regs): Likewise.
5251         (struct pt_watch_regs): Likewise.
5252         (struct mips_watchpoint): Likewise.
5253         (mips_linux_watch_get_irw_mask): Move to
5254         common/mips-linux-watch.c.
5255         (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5256         (mips_linux_watch_get_watchlo): Likewise.
5257         (mips_linux_watch_set_watchlo): Likewise.
5258         (mips_linux_watch_get_watchhi): Likewise.
5259         (mips_linux_watch_set_watchhi): Likewise.
5260         (mips_linux_read_watch_registers): Likewise.
5261         (mips_linux_watch_type_to_irw): Likewise.
5262         (mips_linux_stopped_data_address, fill_mask): Likewise.
5263         (mips_linux_watch_try_one_watch): Likewise.
5264         (mips_linux_watch_populate_regs): Likewise.
5265
5266 2013-07-27  Yao Qi  <yao@codesourcery.com>
5267
5268         * mips-linux-nat.c (get_irw_mask): Rename to ...
5269         (mips_linux_watch_get_irw_mask): ... this.  Rename parameter
5270         'set' to 'n'.  Update function comment.  All callers changed.
5271         (get_reg_mask): Rename parameter 'set' to 'n'.  Update
5272         function comment.  All callers changed.
5273         (get_num_valid): Rename to ...
5274         (mips_linux_watch_get_num_valid): ... this.  Rename parameter
5275         'set' to 'n'.  Update function comment.  All callers changed.
5276         (get_watchlo): Rename to ...
5277         (mips_linux_watch_get_watchlo): ... this.  Rename parameter
5278         'set' to 'n'.  Update function comment.  All callers changed.
5279         (set_watchlo): Rename to ...
5280         (mips_linux_watch_set_watchlo): ... this.  Rename parameter
5281         'set' to 'n'.  Update function comment.  All callers changed.
5282         (get_watchhi): Rename to ...
5283         (mips_linux_watch_get_watchhi): ... this.  Update function
5284         comment.  All callers changed.
5285         (set_watchhi): Rename to ...
5286         (mips_linux_watch_set_watchhi): ... this.  Update function
5287         comment.  All callers changed.
5288         (mips_linux_read_watch_registers): Update function comment.
5289         Add new parameters 'lwpid', 'watch_readback', and
5290         'watch_readback_valid'.  Update.
5291         (type_to_irw): Rename to ...
5292         (mips_linux_watch_type_to_irw): ... this.  Update function
5293         comment.  All callers changed.
5294         (fill_mask): Update function comment.
5295         (try_one_watch): Rename to ...
5296         (mips_linux_watch_try_one_watch): ... this.  Change the type
5297         of parameter 'irw' from 'unsigned' to 'uint32_t'.
5298         (populate_regs_from_watches): Rename to ...
5299         (mips_linux_watch_populate_regs): ... this.  Add parameter
5300         'current_watches'.  All callers changed.
5301
5302 2013-07-27  Yao Qi  <yao@codesourcery.com>
5303
5304         * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5305         the code.
5306         (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5307         (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5308         (struct pt_watch_regs): Likewise.
5309         [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5310         [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5311         [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5312         [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5313         [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5314
5315 2013-07-27  Yao Qi  <yao@codesourcery.com>
5316
5317         * breakpoint.h: Include break-common.h.
5318         (enum target_hw_bp_type): Move to ...
5319         * common/break-common.h: ... here.  New.
5320
5321 2013-07-26  Cyril Nikolaev  <cyril@nichtverstehen.de>
5322
5323         * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5324         process group regardless of having tty on stdin.
5325
5326 2013-07-25  Doug Evans  <dje@google.com>
5327
5328         * linux-fork.h (detach_fork): Delete.
5329
5330 2013-07-25  Tom Tromey  <tromey@redhat.com>
5331
5332         PR remote/15256, PR remote/15266:
5333         * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5334         * monitor.c (monitor_detach): Use unpush_target.
5335         * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5336         * remote-mips.c (mips_detach): Use unpush_target.  Don't
5337         call mips_close.
5338         * remote-sim.c (gdbsim_detach): Use unpush_target.
5339         * target.c (pop_target): Remove.
5340         (pop_all_targets_above): Don't call target_close.
5341         (target_close): Assert that the target is unpushed.
5342         * target.h (pop_target): Don't declare.
5343         * tracepoint.c (tfile_open): Use unpush_target.
5344
5345 2013-07-25  Tom Tromey  <tromey@redhat.com>
5346
5347         * linux-thread-db.c (init_thread_db_ops): Call
5348         complete_target_initialization.
5349         (_initialize_thread_db): Don't call add_target.
5350         * target.c (complete_target_initialization): New function.
5351         (add_target_with_completer): Call it.
5352         * target.h (complete_target_initialization): Declare.
5353
5354 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
5355
5356         * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5357         * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5358         (HPPANBSD_SIZEOF_GREGS): New define.
5359         (hppaobsd_supply_gregset): Handle additional registers.
5360         * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5361         we provide more registers now.
5362         (hppabsd_supply_gregset): Supply additional registers.
5363         (hppabsd_collect_gregset): Collect additional registers.
5364
5365 2013-07-25  Mark Kettenis  <kettenis@gnu.org>
5366
5367         * hppabsd-tdep.c: Include "dwarf2-frame.h".
5368         (hppabsd_dwarf2_frame_init_reg): New function.
5369         (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5370
5371 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
5372
5373         * mi/mi-main.c (output_register): Make MI 'r' format use standard
5374         'z' format code.  Remove error for optimized out values, standard
5375         code will handle these fine.
5376
5377 2013-07-25  Andrew Burgess  <aburgess@broadcom.com>
5378
5379         * NEWS: Mention new 'z' formatter.
5380         * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5381         (_initialize_printcmd): Mention 'z' formatter in help text of the
5382         'x' command.
5383
5384 2013-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
5385
5386         * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5387         formatting.
5388
5389 2013-07-24  Sergio Durigan Junior  <sergiodj@redhat.com>
5390
5391         * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5392         interface can evaluate arguments.  Fallback to the old mode if it
5393         cannot.
5394         (create_exception_master_breakpoint): Likewise.
5395         * elfread.c (elf_can_evaluate_probe_arguments): New function.
5396         (struct sym_probe_fns elf_probe_fns): Export function above to the
5397         probe interface.
5398         * probe.c (can_evaluate_probe_arguments): New function.
5399         * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5400         function pointer.
5401         (can_evaluate_probe_arguments): New function prototype.
5402         * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5403         probe interface can evaluate arguments.  Fallback to the old mode
5404         if it cannot.
5405         * stap-probe.c (stap_get_probe_argument_count): Check if probe
5406         interface can evaluate arguments.  Warning the user if it cannot.
5407         (stap_can_evaluate_probe_arguments): New function.
5408         (struct probe_ops stap_probe_ops): Export function above to the
5409         probe interface.
5410         * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5411         New function pointer.
5412
5413 2013-07-24  Luis Machado  <lgustavo@codesourcery.com>
5414
5415         * Makefile.in (SFILES): Add common/target-common.c.
5416         Add common/target-common.h to headers.
5417         (COMMON_OBS): Add target-common.o.
5418         (target-common.o): New target.
5419         * linux-nat.h (resume_kind): Move to common/target-common.h.
5420         * target.c (target_waitstatus_to_string): Move to
5421         common/target-common.c.
5422         * target.h: Include target-common.h.
5423         (target_waitkind): Move to common/target-common.h.
5424         (target_waitstatus): Likewise.
5425         (TARGET_WNOHANG): Likewise.
5426         * common/target-common.c: New file.
5427         * common/target-common.h: New file.
5428
5429 2013-07-24  Doug Evans  <dje@google.com>
5430
5431         * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5432         a warning.
5433
5434 2013-07-23  Yao Qi  <yao@codesourcery.com>
5435
5436         * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5437         parameter 'gdbarch'.
5438         (i386_stack_tramp_frame_sniffer): Caller update.
5439         * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5440         parameter 'gdbarch' and 'target'.
5441         (i386_linux_core_read_description): Caller update.
5442         * amd64-linux-tdep.c (amd64_linux_core_read_description):
5443         Likewise.
5444         * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5445         declaration.
5446
5447 2013-07-23  Tom Tromey  <tromey@redhat.com>
5448
5449         * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5450         2013-07-22.
5451
5452 2013-07-22  Doug Evans  <dje@google.com>
5453
5454         * exec.h (remove_target_sections): Delete arg abfd.
5455         * exec.c (exec_close): Update call to remove_target_sections.
5456         (remove_target_sections): Delete arg abfd.
5457         * solib.c (update_solib_list): Ditto.
5458         (reload_shared_libraries_1): Ditto.
5459         (clear_solib): Ditto, and unconditionally call remove_target_sections.
5460         * target.h (struct target_section): Rename key to owner.
5461         All uses updated.
5462
5463 2013-07-22  Tom Tromey  <tromey@redhat.com>
5464
5465         * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5466
5467 2013-07-22  Tom Tromey  <tromey@redhat.com>
5468
5469         * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5470         Simplify cleanup handling.
5471
5472 2013-07-22  Tom Tromey  <tromey@redhat.com>
5473
5474         * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5475         on all return paths.
5476
5477 2013-07-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5478
5479         * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5480         (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5481         DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5482
5483 2013-07-22  Phil Muldoon  <pmuldoon@redhat.com>
5484
5485         * top.c (print_gdb_version): Add help, apropos description and
5486         url to online documentation.
5487
5488 2013-07-19  Hui Zhu  <hui@codesourcery.com>
5489
5490         PR gdb/15692
5491         * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5492
5493 2013-07-19  Yao Qi  <yao@codesourcery.com>
5494
5495         * target.c (update_current_target): Change the default action
5496         of 'to_traceframe_info' from tcomplain to return_zero.
5497         * target.h (struct target_ops) <to_traceframe_info>: Add more
5498         comments.
5499         * valops.c (read_value_memory): Call
5500         traceframe_available_memory unconditionally.
5501
5502 2013-07-18  Yao Qi  <yao@codesourcery.com>
5503
5504         * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5505         if the name is prefixed by "__imp_" or "_imp_", look for minimal
5506         symbol without prefix.  If found, set its type to
5507         'mst_solib_trampoline'.
5508
5509 2013-07-17  Doug Evans  <dje@google.com>
5510
5511         * NEWS: Mention "set print raw frame-arguments".
5512         * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5513         * stack.c (print_raw_frame_arguments): New static global.
5514         (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5515         (_initialize_stack): New command "set/show print raw frame-arguments".
5516         * valprint.c (setprintrawlist, showprintrawlist): New globals.
5517         (set_print_raw, show_print_raw): New functions.
5518         (_initialize_valprint): New prefix command "set/show print raw".
5519         * valprint.h (value_print_options): Improve comments.
5520
5521         * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5522         of all *list variables.
5523
5524         * gdbcmd.h (togglelist): Delete.
5525         * cli/cli-cmds.c (togglelist): Delete.
5526         (init_cmd_lists): Update.
5527         * cli/cli-cmds.h (togglelist): Delete.
5528
5529 2013-07-17  Tom Tromey  <tromey@redhat.com>
5530
5531         * dwarf2read.c (dwarf2_per_objfile_free): Clear
5532         dwarf2_per_objfile.
5533
5534 2013-07-16  Doug Evans  <dje@google.com>
5535
5536         * nto-tdep.c (nto_relocate_section_addresses): Update,
5537         target_section.bfd deleted.
5538         * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5539         * s390-tdep.c (s390_load): Ditto.
5540         * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5541
5542 2013-07-16  Andrew Burgess  <aburgess@broadcom.com>
5543
5544         * common/format.c (parse_format_string): Add checks for NULL
5545         character before calling strchr.
5546
5547 2013-07-16  Doug Evans  <dje@google.com>
5548
5549         * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5550         temp_pathname argument.
5551         * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5552         when opening the file fails.
5553
5554         * target.h (struct target_section): Delete member bfd.
5555         All users updated to use the_bfd_section->owner instead.
5556         * exec.c (add_to_section_table): Assert bfd is expected value.
5557         Remove initialization of target_section.bfd.
5558         (remove_target_sections): Update.
5559         (section_table_available_memory): Update.
5560         (section_table_xfer_memory_partial): Update.
5561         (print_section_info): Update.
5562         (exec_set_section_address): Update.
5563         * record-full.c (record_full_core_xfer_partial): Update.
5564         * solib-svr4.c (svr4_relocate_section_addresses): Update.
5565         * solib-target.c (solib_target_relocate_section_addresses): Update.
5566         * symfile.c (build_section_addr_info_from_section_table): Update.
5567         * target.c (memory_xfer_live_readonly_partial): Update.
5568         (memory_xfer_partial_1): Update.
5569
5570 2013-07-15  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5571
5572         * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5573         now available for embedded (BookE) and server (BookS) processors,
5574         correct mentions of 'booke' and adjust comments accordingly in order to
5575         avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5576         (have_ptrace_booke_interface): Rename function and variable
5577         'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5578         Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5579         (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5580         'hwdebug_point_cmp'. Update all uses.
5581         (booke_find_thread_points_by_tid): Rename function
5582         'booke_find_thread_points_by_tid' to
5583         'hwdebug_find_thread_points_by_tid'. Update all uses.
5584         (booke_insert_point): Rename function 'booke_insert_point' to
5585         'hwdebug_insert_point'. Update all uses.
5586         (booke_remove_point): Rename function 'booke_remove_point' to
5587         'hwdebug_remove_point'. Update all uses.
5588
5589 2013-07-15  Maciej W. Rozycki  <macro@codesourcery.com>
5590
5591         * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5592         numbers with enum values.
5593
5594 2013-07-15  Ali Anwar  <ali_anwar@codesourcery.com>
5595
5596         PR threads/13217
5597         * thread.c (thread_apply_all_command): Check for valid threads
5598         and thread count.
5599         (thread_array_cleanup): New struct.
5600         (set_thread_refcount): New function.
5601
5602 2013-07-11  Andrew Burgess  <aburgess@broadcom.com>
5603
5604         * infcmd.c (default_print_one_register_info): Reuse function
5605         print_hex_chars.
5606
5607 2013-07-10  Tom Tromey  <tromey@redhat.com>
5608
5609         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5610         (ada-exp.o): New target.
5611
5612 2013-07-10  Sergio Durigan Junior  <sergiodj@redhat.com>
5613
5614         * mt-tdep.c (mt_registers_info): Call
5615         get_no_prettyformat_print_options instead of
5616         get_raw_print_options (regression by last patch from Doug
5617         Evans).
5618
5619 2013-07-09  Pedro Alves  <palves@redhat.com>
5620
5621         Checked in by Joel Brobecker  <brobecker@adacore.com>.
5622         * ada-lang.c (coerce_unspec_val_to_type): Use
5623         value_optimized_out_const.
5624         * value.c (value_optimized_out_const): New function.
5625         * value.h (value_optimized_out_const): New declaration.
5626
5627 2013-07-09  Doug Evans  <dje@google.com>
5628
5629         * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5630         Enum values rename as well.  All uses updated.
5631         * valprint.h (value_print_options): Rename member pretty to
5632         pretty format.  Rename member prettyprint_arrays to
5633         prettyformat_arrays.  Rename member prettyprint_structs to
5634         prettyformat_structs.  All uses updated.
5635         (get_no_prettyformat_print_options): Renamed from
5636         get_raw_print_options.
5637         * valprint.c (get_no_prettyformat_print_options): Renamed from
5638         get_raw_print_options.  All callers updated.
5639         (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5640         All callers updated.
5641         (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5642         All callers updated.
5643         (_initialize_valprint): Improve help text for "set print pretty" and
5644         "set print arrays".
5645
5646 2013-07-09  Andrew Burgess  <aburgess@broadcom.com>
5647
5648         * value.c (value_bits_valid): Revert previous change, and change
5649         by Pedro on 2013-07-04, due to regressions in
5650         gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5651
5652 2013-07-08  Andrew Burgess  <aburgess@broadcom.com>
5653             Pedro Alves  <palves@redhat.com>
5654
5655         * value.c (value_bits_valid): If the value is not lval_computed
5656         or has no check validity handler then the answer is the
5657         optimized_out flag, otherwise defer to the handler.
5658
5659 2013-07-06  Eli Zaretskii  <eliz@gnu.org>
5660
5661         * top.c (print_gdb_configuration): Explain in output of
5662         --configuration what does "relocatable" mean.
5663
5664         * main.c (print_gdb_help): Regroup options in the --help text.
5665         See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5666         the relevant discussions.
5667
5668 2013-07-06  Yao Qi  <yao@codesourcery.com>
5669
5670         * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5671         Remove parameter 'lsal'.
5672         * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5673         to inner block.  Caller update.
5674         (base_breakpoint_create_breakpoints_sal): Update.
5675         (bkpt_create_breakpoints_sal): Likewise.
5676         (tracepoint_create_breakpoints_sal): Likewise.
5677         (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5678         element 0 of vector 'canonical->sals'.
5679
5680 2013-07-05  Luis Machado  <lgustavo@codesourcery.com>
5681
5682         * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5683         register number instead of the pseudo register one.
5684         (rs6000_dwarf2_reg_to_regnum): Likewise.
5685
5686 2013-07-04  Pedro Alves  <palves@redhat.com>
5687
5688         * findvar.c (value_of_register): Use allocate_optimized_out_value
5689         if the register has been optimized out, instead of
5690         set_value_optimized_out.
5691         * frame-unwind.c (frame_unwind_got_optimized): Use
5692         allocate_optimized_out_value.
5693
5694 2013-07-04  Pedro Alves  <palves@redhat.com>
5695
5696         * value.c (value_bits_valid): If the value is not lval_computed,
5697         or doesn't have a check_validity hook, assume the value is entirely
5698         valid.
5699
5700 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
5701
5702         * stack.c (read_frame_arg): No longer fetch lazy values.
5703         * value.c (value_optimized_out): If the value is not already
5704         marked optimized out, and is lazy then fetch it.
5705         (value_primitive_field): Move optimized out check to later in the
5706         function, after we have loaded any lazy values.
5707         (value_fetch_lazy): Use optimized out flag directly rather than
5708         calling optimized_out method.
5709
5710 2013-07-04  Andrew Burgess  <aburgess@broadcom.com>
5711
5712         * valops.c: Don't include "user-regs.h".
5713         (value_fetch_lazy): Moved to value.c.
5714         * value.c: Include "user-regs.h".
5715         (value_fetch_lazy): Moved from valops.c.
5716
5717 2013-07-04  Yao Qi  <yao@codesourcery.com>
5718
5719         Revert:
5720         2013-06-27  Yao Qi  <yao@codesourcery.com>
5721
5722         * common/create-version.sh: Update comments.  Handle the case
5723         that TARGET_ALIAS is empty.
5724
5725 2013-07-03  Pedro Alves  <palves@redhat.com>
5726
5727         * Makefile.in (config.status): Depend on development.sh.
5728         (aclocal_m4_deps): Add libmcheck.m4.
5729         * acinclude.m4: Include libmcheck.m4.
5730         * configure.ac: Source development.sh instead of setting
5731         'development' here.  --enable-libmcheck/--disable-libmcheck code
5732         factored out to GDB_AC_LIBMCHECK.  Run it.
5733         * development.sh: New file.
5734         * libmcheck.m4: New file.
5735         * configure: Regenerate.
5736
5737 2013-07-02  Tom Tromey  <tromey@redhat.com>
5738
5739         * contrib/ari/update-web-ari.sh: Update for version.in change.
5740
5741 2013-07-02  Tom Tromey  <tromey@redhat.com>
5742
5743         * common/ptid.h: Comment fixes.
5744
5745 2013-07-01  Tom Tromey  <tromey@redhat.com>
5746
5747         * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5748         .gnu_debugaltlink not found.  Use bfd_get_alt_debug_link_info.
5749         (dwarf2_read_index, create_all_comp_units): Update.
5750
5751 2013-07-01  Tom Tromey  <tromey@redhat.com>
5752
5753         * configure.ac (build_warnings): Add -Wold-style-definition.
5754         * configure: Rebuild.
5755         * machoread.c (_initialize_machoread): Use "(void)".
5756         * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5757         use "(void)".
5758
5759 2013-07-01  Tom Tromey  <tromey@redhat.com>
5760
5761         * configure.ac (build_warnings): Add -Wold-style-declaration.
5762         * configure: Rebuild.
5763         * dsrec.c (make_srec): Use "static const", not "const static".
5764         * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5765         not "const static".
5766         * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5767         Use "static const", not "const static".
5768         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5769         not "const static".
5770         * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5771         not "const static".
5772         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5773         not "const static".
5774         * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5775         not "const static".
5776         (v850_dbtrap_breakpoint_from_pc): Likewise.
5777         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5778         not "const static".
5779
5780 2013-07-01  Tom Tromey  <tromey@redhat.com>
5781
5782         * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5783         * configure: Rebuild.
5784
5785 2013-07-01  Pedro Alves  <palves@redhat.com>
5786
5787         * defs.h: Include "pathmax.h".
5788         * utils.c: Don't include sys/param.h.
5789         (gdb_realpath): Remove code that checks for MAXPATHLEN.
5790         * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5791         instead of MAXPATHLEN.
5792         * solib-sunos.c: Don't include sys/param.h.
5793         * xcoffread.c: Don't include sys/param.h.
5794         * bsd-kvm.c: Don't include sys/param.h.
5795         * darwin-nat.c: Don't include sys/param.h.
5796         (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5797         * darwin-nat-info.c: Don't include sys/param.h.
5798         * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5799         MAXPATHLEN.
5800         * i386obsd-nat.c: Don't include sys/param.h.
5801         * inf-child.c: Don't include sys/param.h.
5802         (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5803         * linux-fork.c: Don't include sys/param.h.
5804         (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5805         * linux-nat.c: Don't include sys/param.h.
5806         (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5807         (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5808         * m68klinux-nat.c: Don't include sys/param.h.
5809         * nbsd-nat.c: Don't include sys/param.h.
5810         (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5811         * ppc-linux-nat.c: Don't include sys/param.h.
5812         * rs6000-nat.c: Don't include sys/param.h.
5813         * spu-linux-nat.c. Don't include sys/param.h.
5814         * windows-nat.c: Don't include sys/param.h.
5815         * xtensa-linux-nat.c: Don't include sys/param.h.
5816         * config/i386/nm-fbsd.h: Don't include sys/param.h.
5817
5818 2013-07-01  Pedro Alves  <palves@redhat.com>
5819
5820         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5821         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5822         * gnulib/aclocal.m4: Regenerate.
5823         * gnulib/config.in: Regenerate.
5824         * gnulib/configure: Regenerate.
5825         * gnulib/import/pathmax.h: New file.
5826         * gnulib/import/Makefile.am: Regenerate.
5827         * gnulib/import/Makefile.in: Regenerate.
5828         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5829         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5830         * gnulib/import/m4/pathmax.m4: New file.
5831
5832 2013-07-01  Pedro Alves  <palves@redhat.com>
5833
5834         * configure.ac (GDBINIT): Define, depending on host.
5835         * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5836         * top.c (PATH_MAX): Delete fallback definition.
5837         (GDBINIT_FILENAME): Delete.
5838         (gdbinit): Reimplement as const char array set to the GDBINIT
5839         string constant.
5840         * top.h (gdbinit): Make const.
5841         * configure, config.in: Regenerate.
5842
5843 2013-07-01  Pedro Alves  <palves@redhat.com>
5844
5845         * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5846         * cli/cli-cmds.h (source_script): Likewise.
5847         * exceptions.c (catch_command_errors_const): New function.
5848         * exceptions.h (catch_command_errors_const): Declare.
5849         * main.c (get_init_files): Make parameters const, and adjust.
5850         (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5851         'local_gdbinit' locals const.  Adjust to use
5852         catch_command_errors_const.
5853         (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5854         'local_gdbinit' locals const.
5855
5856 2013-07-01  Pedro Alves  <palves@redhat.com>
5857
5858         * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5859         (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5860         * tracepoint.c: Don't check HAVE_UNISTD_H before including
5861         <unistd.h>.
5862
5863 2013-07-01  Pedro Alves  <palves@redhat.com>
5864
5865         Import the "unistd" gnulib module.
5866         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5867         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5868         import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5869         import/m4/unistd_h.m4.
5870         * gnulib/aclocal.m4: Renenerate.
5871         * gnulib/config.in: Renenerate.
5872         * gnulib/configure: Renenerate.
5873         * gnulib/import/Makefile.am: Renenerate.
5874         * gnulib/import/Makefile.in: Renenerate.
5875         * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5876         * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5877         * gnulib/import/m4/off_t.m4: New file.
5878         * gnulib/import/m4/ssize_t.m4: New file.
5879         * gnulib/import/m4/sys_types_h.m4: New file.
5880         * gnulib/import/m4/unistd_h.m4: New file.
5881         * gnulib/import/sys_types.in.h: New file.
5882         * gnulib/import/unistd.c: New file.
5883         * gnulib/import/unistd.in.h: New file.
5884
5885 2013-07-01  Pedro Alves  <palves@redhat.com>
5886
5887         * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5888         defined instead of checking HAVE_UNISTD_H.
5889
5890 2013-07-01  Pedro Alves  <palves@redhat.com>
5891
5892         Reimport gnulib from scratch.
5893         * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5894         import/m4/onceonly.m4.
5895         * gnulib/aclocal.m4: Renegerate.
5896         * gnulib/config.in: Renegerate.
5897         * gnulib/configure: Renegerate.
5898         * gnulib/import/Makefile.in: Renegerate.
5899         * gnulib/import/extra/update-copyright: Renegerate.
5900         * gnulib/import/m4/onceonly.m4: Delete.
5901
5902 2013-07-01  Pedro Alves  <palves@redhat.com>
5903
5904         * tui/tui-regs.c (pagination_enabled): Delete declaration.
5905
5906 2013-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
5907
5908         Code cleanup.
5909         * remote.c (async_remote_interrupt_twice): Make it static.
5910         * remote.h (async_remote_interrupt_twice): Remove the declaration.
5911
5912 2013-06-29  Sergio Durigan Junior  <sergiodj@redhat.com>
5913
5914         * ia64-linux-tdep.c: Include <ctype.h>.
5915         (ia64_linux_stap_is_single_operand): New function.
5916         (ia64_linux_init_abi): Initialize SystemTap related attributes.
5917
5918 2013-06-28  Tom Tromey  <tromey@redhat.com>
5919
5920         * Makefile.in (version.c): Use version.in, not
5921         common/version.in.
5922         * common/create-version.sh: Likewise.
5923         * common/version.in: Move...
5924         * version.in: ...here.
5925
5926 2013-06-28  Pedro Alves  <palves@redhat.com>
5927
5928         * infrun.c (set_observer_mode): Don't declare pagination_enabled
5929         here.
5930         * utils.h (pagination_enabled): Declare.
5931
5932 2013-06-28  Pedro Alves  <palves@redhat.com>
5933
5934         * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5935         Move higher up in file.
5936
5937 2013-06-28  Tom Tromey  <tromey@redhat.com>
5938
5939         * tracepoint.c (deprecated_readline_begin_hook)
5940         (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5941         declare.
5942
5943 2013-06-28  Pedro Alves  <palves@redhat.com>
5944
5945         PR tui/14880
5946         * tui/tui-regs.c (tui_get_register): Fetch value contents before
5947         checking if they're available.
5948         * value.c (value_available_contents_eq): Change comment.
5949         * value.h (value_available_contents_eq): Expand comment.
5950
5951 2013-06-27  Tom Tromey  <tromey@redhat.com>
5952
5953         * target.c (find_run_target): Remove.
5954         * target.h (find_run_target): Remove.
5955
5956 2013-06-27  Tom Tromey  <tromey@redhat.com>
5957
5958         * corelow.c (core_gdbarch): Now static.
5959
5960 2013-06-27  Tom Tromey  <tromey@redhat.com>
5961
5962         * target.c (target_struct_index): Remove.
5963
5964 2013-06-27  Pedro Alves  <palves@redhat.com>
5965
5966         * infrun.c: Remove comment describing the 'stepping over runtime
5967         loader dynamic symbol resolution code' mechanism; moved to
5968         gdbint.texinfo.
5969
5970 2013-06-27  Pedro Alves  <palves@redhat.com>
5971
5972         * exceptions.c (catch_command_errors): Remove spurious space.
5973         * exceptions.h (catch_command_errors): Second parameter is "arg",
5974         not "command".
5975
5976 2013-06-27  Yao Qi  <yao@codesourcery.com>
5977
5978         * common/create-version.sh: Update comments.  Handle the case
5979         that TARGET_ALIAS is empty.
5980
5981 2013-06-26  Pedro Alves  <palves@redhat.com>
5982
5983         * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5984         comment.
5985
5986 2013-06-26  Pedro Alves  <palves@redhat.com>
5987
5988         * infrun.c: Update comments on stepping over runtime loader
5989         dynamic symbol resolution code.
5990
5991 2013-06-26  Sergio Durigan Junior  <sergiodj@redhat.com>
5992
5993         * ax-gdb.h (union exp_element): Forward declare.
5994         * parser-defs.h: Include expression.h.
5995
5996 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
5997
5998         * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5999
6000 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
6001
6002         * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
6003
6004 2013-06-26  Dmitry Kozlov <ddk@codesourcery.com>
6005
6006         Fix trace-status to output proper start-time and stop-time.
6007         * tracepoint.c (trace_status_command): Fix type of printf arg to
6008         prevent improper type conversion.
6009         (trace_status_mi): Likewise.
6010
6011 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6012
6013         * mips-tdep.c (mips_next_pc): Fix a typo.
6014
6015 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
6016
6017         * mips-tdep.c (micromips_scan_prologue): Fix a typo.
6018
6019 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
6020             Yao Qi  <yao@codesourcery.com>
6021
6022         * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
6023         * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
6024         * mi/mi-main.c (print_variable_or_computed): New function.
6025         (mi_cmd_trace_frame_collected): New function.
6026         * tracepoint.c (find_trace_state_variable_by_number): New.
6027         (struct traceframe_info): Move to tracepoint.h
6028         (struct collection_list): Likewise.
6029         (do_collect_symbol): Include locals and arguments in the
6030         collected variables list.
6031         (clear_collection_list): Clear wholly collected variables list
6032         and computed variables list.
6033         (append_exp): New function.
6034         (encode_actions_1): Include variables in the wholly
6035         collected variables list.  Include memory ranges and
6036         full-fledged expressions in the computed expressions list.
6037         (encode_actions): Move some code to ...
6038         Return the cleanup chain.
6039         (encode_actions_rsp): ... here.  New function.
6040         (get_traceframe_location, get_traceframe_info): Remove static.
6041         * tracepoint.h (struct memrange): Moved from tracepoint.c.
6042         (struct collection_list): Moved from tracepoint.c.  Add two
6043         new fields 'wholly_collected' and 'computed'.
6044         (find_trace_state_variable_by_number): Declare.
6045         (encode_actions): Adjust declaration.
6046         (encode_actions_rsp): Declare.
6047         (get_traceframe_info, get_traceframe_location): Declare.
6048
6049         * NEWS: Mention new MI command -trace-frame-collected.
6050
6051 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
6052             Yao Qi  <yao@codesourcery.com>
6053
6054         * ctf.c (ctf_traceframe_info): Push trace state variables
6055         present in the trace data into the traceframe info object.
6056         * breakpoint.c (DEF_VEC_I): Remove.
6057         * common/filestuff.c (DEF_VEC_I): Likewise.
6058         * dwarf2loc.c (DEF_VEC_I): Likewise.
6059         * mi/mi-main.c (DEF_VEC_I): Likewise.
6060         * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
6061         * features/traceframe-info.dtd: Add tvar element and its
6062         attributes.
6063         * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
6064         (build_traceframe_info): Push trace state variables present in
6065         the trace data into the traceframe info object.
6066         (traceframe_info_start_tvar): New function.
6067         (tvar_attributes): New.
6068         (traceframe_info_children): Add "tvar" element.
6069         * tracepoint.h (struct traceframe_info) <tvars>: New field.
6070
6071         * NEWS: Mention the change in GDB and GDBserver.
6072
6073 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
6074             Yao Qi  <yao@codesourcery.com>
6075
6076         * tracepoint.c (trace_dump_command): Move code to ...
6077         (get_traceframe_location): ... here.  New.
6078
6079 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
6080             Yao Qi  <yao@codesourcery.com>
6081
6082         * tracepoint.c (trace_dump_command): GDB emits an error
6083          instead of a warning when a traceframe is not selected.
6084
6085 2013-06-26  Pedro Alves  <pedro@codesourcery.com>
6086             Yao Qi  <yao@codesourcery.com>
6087
6088         * tracepoint.c (tracepoint_list, stepping_list): Remove.
6089         (clear_collection_list): Free fields 'aexpre_list' and 'list'
6090         in collection_list.
6091         (do_clear_collection_list, init_collection_list): New.
6092         (encode_actions): Add local variables 'tracepoint_list' and
6093         'stepping_list'.  Call init_collection_list and make cleanup
6094         which calls do_clear_collection_list.  Don't call
6095         clear_collection_list.
6096         (_initialize_tracepoint): Delete references to
6097         'tracepoint_list' and 'stepping_list'.
6098
6099 2013-06-25  Tom Tromey  <tromey@redhat.com>
6100
6101         * common/create-version.sh (date): Use "$", not "$$" in sed
6102         expression.
6103
6104 2013-06-25  Kevin Buettner  <kevinb@redhat.com>
6105
6106         * NEWS (New targets): Add entry for TI MSP430.
6107
6108 2013-06-25  Yao Qi  <yao@codesourcery.com>
6109
6110         * remote.c (remote_start_remote): Move code to upload tsv
6111         earlier.
6112
6113 2013-06-25  Yao Qi  <yao@codesourcery.com>
6114             Hui Zhu  <hui@codesourcery.com>
6115             Pedro Alves  <palves@redhat.com>
6116
6117         PR breakpoints/15075
6118         PR breakpoints/15434
6119         * breakpoint.c (bpstat_stop_status): Call
6120         b->ops->after_condition_true.
6121         (update_dprintf_command_list): Don't append "continue" command
6122         to the command list of dprintf breakpoint.
6123         (base_breakpoint_after_condition_true): New function.
6124         (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6125         (dprintf_after_condition_true): New function.
6126         (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6127         * breakpoint.h (breakpoint_ops): Add after_condition_true.
6128
6129 2013-06-24  Kevin Buettner  <kevinb@redhat.com>
6130
6131         * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6132         (ALLDEPFILES): Add msp430-tdep.c.
6133         * configure.tgt (msp430*-*-elf): New target.
6134         * msp430-tdep.c: New file.
6135
6136 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
6137
6138         * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6139         microMIPS synthetic symbols.
6140
6141 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
6142
6143         * objfiles.h (pc_in_section): New prototype.
6144         (in_plt_section): Remove name argument, replace prototype with
6145         static inline function.
6146         * mips-tdep.h: Include "objfiles.h".
6147         (in_mips_stubs_section): New function.
6148         * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6149         in_solib_call_trampoline member.
6150         (hppa_in_solib_call_trampoline): Remove name argument.
6151         * objfiles.c (pc_in_section): New function.
6152         (in_plt_section): Remove function.
6153         * mips-linux-tdep.c: Include "objfiles.h".
6154         (mips_linux_in_dynsym_stub): Call in_mips_stubs_section.  Remove
6155         name argument.  Return 1 rather than the low 16-bit halfword of
6156         any instruction examined.
6157         (mips_linux_in_dynsym_resolve_code): Update
6158         mips_linux_in_dynsym_stub call accordingly.
6159         * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6160         rather than an equivalent hand-coded sequence.
6161         * hppa-hpux-tdep.c (in_opd_section): Remove function.
6162         (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6163         (hppa64_hpux_in_solib_call_trampoline): Likewise.
6164         (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6165         in_opd_section.
6166         * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6167         on call to tdep->in_solib_call_trampoline.
6168         (hppa_in_solib_call_trampoline): Remove name argument, update
6169         according to in_plt_section change.
6170         (hppa_skip_trampoline_code): Update according to in_plt_section
6171         change.
6172         * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6173         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6174         Likewise.
6175         * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6176         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6177         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6178         * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6179         * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6180         * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6181         * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6182         * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6183         * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6184         * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6185         * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6186         * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6187         * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6188
6189 2013-06-24  Joel Brobecker  <brobecker@adacore.com>
6190
6191         * common/create-version.sh: Fix expansion of $host_alias
6192         and $target_alias in generation of HOST_NAME and TARGET_NAME
6193         (resp.).
6194
6195 2013-06-24  Tom Tromey  <tromey@redhat.com>
6196
6197         * common/create-version.sh: New file.
6198         * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6199         create-version.sh.
6200         (HFILES_NO_SRCDIR): Use common/version.h.
6201         * version.in: Move to ...
6202         * common/version.in: ... here.  Replace date with "DATE".
6203         * version.h: Move to ...
6204         * common/version.h: ... here.
6205
6206 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
6207
6208         * gdb/gnulib/Makefile.in: Update date in copyright header.
6209         * gdb/gnulib/configure.ac: Ditto.
6210         * gdb/gnulib/update-gnulib.sh: Ditto.
6211
6212 2013-06-21  Joel Brobecker  <brobecker@adacore.com>
6213
6214         * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6215         "gdb/gnulib/import".
6216
6217 2013-06-21  Will Newton  <will.newton@linaro.org>
6218
6219         * doublest.c (ldfrexp): Remove function.
6220         (convert_doublest_to_floatformat): Call frexpl instead of
6221         ldfrexp.
6222
6223 2013-06-21  Will Newton  <will.newton@linaro.org>
6224
6225         * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6226         * gnulib/aclocal.m4: Regenerate.
6227         * gnulib/config.in: Regenerate.
6228         * gnulib/configure: Regenerate.
6229         * gnulib/import/Makefile.am: Update.
6230         * gnulib/import/Makefile.in: Update.
6231         * gnulib/import/m4/gnulib-cache.m4: Update.
6232         * gnulib/import/m4/gnulib-comp.m4: Update.
6233         * gnulib/import/float+.h: Import.
6234         * gnulib/import/float.c: Import.
6235         * gnulib/import/float.in.h: Import.
6236         * gnulib/import/fpucw.h: Import.
6237         * gnulib/import/frexp.c: Import.
6238         * gnulib/import/frexpl.c: Import.
6239         * gnulib/import/isnan.c: Import.
6240         * gnulib/import/isnand-nolibm.h: Import.
6241         * gnulib/import/isnand.c: Import.
6242         * gnulib/import/isnanl-nolibm.h: Import.
6243         * gnulib/import/isnanl.c: Import.
6244         * gnulib/import/itold.c: Import.
6245         * gnulib/import/m4/exponentd.m4: Import.
6246         * gnulib/import/m4/exponentl.m4: Import.
6247         * gnulib/import/m4/float_h.m4: Import.
6248         * gnulib/import/m4/fpieee.m4: Import.
6249         * gnulib/import/m4/frexp.m4: Import.
6250         * gnulib/import/m4/frexpl.m4: Import.
6251         * gnulib/import/m4/isnand.m4: Import.
6252         * gnulib/import/m4/isnanl.m4: Import.
6253         * gnulib/import/m4/math_h.m4: Import.
6254         * gnulib/import/math.c: Import.
6255         * gnulib/import/math.in.h: Import.
6256
6257 2013-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6258
6259         * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6260         replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6261         signature_INTEL_edx comparisons.
6262
6263 2013-06-20  Doug Evans  <dje@google.com>
6264
6265         symtab/15652
6266         * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6267         All callers updated.
6268         (open_dwp_file): If we can't find the dwp file, search the basename
6269         in debug-file-directory.
6270
6271         * dwarf2read.c (struct dwp_file): Fix comment.
6272         (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6273
6274         * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6275         better.
6276
6277 2013-06-20  Yao Qi  <yao@codesourcery.com>
6278
6279         * breakpoint.c (create_breakpoint): Fix code indentation.
6280
6281 2013-06-20  Yao Qi  <yao@codesourcery.com>
6282
6283         * breakpoint.c (create_breakpoints_sal_default): Remove
6284         parameter 'lsal'.  Update declaration.
6285         (bkpt_create_breakpoints_sal): Caller update.
6286         (tracepoint_create_breakpoints_sal): Likewise.
6287
6288 2013-06-20  Pedro Alves  <pedro@codesourcery.com>
6289             Yao Qi  <yao@codesourcery.com>
6290
6291         * NEWS: Mention the new option '--skip-unavailable' of command
6292         -data-list-register-values.
6293         * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6294         --skip-unavailable option.  Adjust to use output_register.
6295         (output_register): Add new 'skip_unavailable' parameter.
6296         Handle it.
6297
6298 2013-06-19  Mike Frysinger  <vapier@gentoo.org>
6299
6300         * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6301         common/i386-gcc-cpuid.h.
6302         * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6303         * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6304         Copy the latest version from upstream gcc.
6305         * common/linux-btrace.c: Include i386-cpuid.h.
6306         (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6307         call to i386_cpuid.
6308         (cpu_supports_btrace): Likewise.
6309         * go32-nat.c: Include i386-cpuid.h.
6310         (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6311
6312 2013-06-19  Doug Evans  <dje@google.com>
6313
6314         * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6315         (get_section_index): Ditto.
6316
6317 2013-06-19  Tom Tromey  <tromey@redhat.com>
6318
6319         * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6320         "dprintf" help.
6321
6322 2013-06-18  Doug Evans  <dje@google.com>
6323
6324         * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6325         before using it.
6326         (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6327         Move test of cu_index closer to use.  Print complaint if cu_index
6328         is bad.
6329
6330 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
6331
6332         * machoread.c (oso_vector): Delete this global.
6333         (macho_register_oso): Add new parameter "oso_vector_ptr".
6334         Use it instead of the "oso_vector" global.
6335         (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6336         (macho_symfile_read): Use a local oso_vector, to be free'ed
6337         at the end of this function, in place of the old "oso_vector"
6338         global.  Update various function calls accordingly.  Use one
6339         single cleanup chain for the entire function.
6340
6341 2013-06-18  Joel Brobecker  <brobecker@adacore.com>
6342
6343         * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6344         DWARF2_PER_OBJFILE by uses of DATA instead.
6345
6346 2013-06-18  Tom Tromey  <tromey@redhat.com>
6347
6348         * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6349         argument.
6350         * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6351         Special case signals other than GDB_SIGNAL_TRAP.
6352         (explains_signal_watchpoint): New function.
6353         (base_breakpoint_explains_signal): Add 'sig' argument.
6354         (initialize_breakpoint_ops): Set 'explains_signal' method for
6355         watchpoints.
6356         * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6357         signal argument.
6358         (bpstat_explains_signal): Likewise.
6359         * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6360
6361 2013-06-18  Tom Tromey  <tromey@redhat.com>
6362
6363         * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6364
6365 2013-06-18  Tom Tromey  <tromey@redhat.com>
6366
6367         * python/python.c (finish_python_initialization): Decref
6368         'pythondir' on failure path as well.
6369
6370 2013-06-18  Tom Tromey  <tromey@redhat.com>
6371
6372         PR symtab/15391:
6373         * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6374         after taking bits_to_skip into account.  Sign extend byte_offset.
6375         * utils.h (gdb_sign_extend): Declare.
6376         * utils.c (gdb_sign_extend): New function.
6377
6378 2013-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6379
6380         * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6381
6382 2013-06-17  Pierre Muller  <muller@sourceware.org>
6383
6384         * corelow.c (core_open): Print GDB signal name instead of target
6385         signal number.
6386
6387 2013-06-17  Mike Frysinger  <vapier@gentoo.org>
6388
6389         * .gitignore: Add /gcore.
6390
6391 2013-06-13  Doug Evans  <dje@google.com>
6392
6393         * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6394         OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6395
6396 2013-06-12  Phil Muldoon  <pmuldoon@redhat.com>
6397
6398         * stack.c (backtrace_command_1): Fix indentation.
6399
6400 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
6401
6402         * window-nat.c (thread_rec): Add missing empty line after
6403         local variable declaration.
6404
6405 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
6406
6407         * windows-nat.c (thread_rec): Revert format used to print
6408         error code returned by SuspendThread from %d back to %u.
6409
6410 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
6411
6412         * windows-nat.c (windows_continue): Add "0x" prefix for thread
6413         ID in debug trace.
6414         (get_windows_debug_event): Likewise, for all debug traces.
6415
6416 2013-06-11  Joel Brobecker  <brobecker@adacore.com>
6417
6418         * window-nat.c (thread_rec): Add thread ID in SuspendThread
6419         warning message.
6420
6421 2013-06-08  Pedro Alves  <pedro@codesourcery.com>
6422             Yao Qi  <yao@codesourcery.com>
6423
6424         * mi/mi-main.c (get_register): Remove declaration.
6425         (output_register): Declare.
6426         (mi_cmd_data_list_register_values): Remove local variable
6427         'tuple_cleanup'.  Move some code into output_register.
6428         (get_register): Renamed to ...
6429         (output_register): ... this.  Output the register's
6430         "number" ui_out tuple here.
6431
6432 2013-06-07  Pedro Alves  <palves@redhat.com>
6433
6434         * darwin-nat.c: Fix formating in copyright header.
6435         * darwin-nat.h: Likewise.
6436         * gnu-nat.c: Likewise.
6437         * machoread.c: Likewise.
6438
6439 2013-06-07  Pedro Alves  <palves@redhat.com>
6440
6441         PR server/14823
6442         * regformats/regdat.sh: Output #include tdesc.h.  Make globals
6443         static.  Output a global target description pointer.
6444         (init_registers_${name}): Adjust to initialize a
6445         target description structure.
6446
6447 2013-06-07  Will Newton  <will.newton@linaro.org>
6448
6449         * printcmd.c (build_address_symbolic): Call
6450         gdbarch_addr_bits_remove for text minimal symbols.
6451
6452 2013-06-07  Will Newton  <will.newton@linaro.org>
6453
6454         * MAINTAINERS: Add myself to Write After Approval.
6455
6456 2013-06-07  Yao Qi  <yao@codesourcery.com>
6457
6458         * tracepoint.c (start_tracing): Move code to ...
6459         (trace_reset_local_state): ... here.  New.
6460         (disconnect_tracing): Don't call set_current_traceframe,
6461         set_tracepoint_num, and set_traceframe_context. Call
6462         trace_reset_local_state instead.
6463         (tfile_close): Call trace_reset_local_state.
6464         * ctf.c (ctf_close): Likewise.
6465         * remote.c (remote_close): Likewise.
6466         * tracepoint.h (trace_reset_local_state): Declare.
6467
6468 2013-06-06  Doug Evans  <dje@google.com>
6469
6470         * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6471         and fix header docs.
6472
6473 2013-06-05  Doug Evans  <dje@google.com>
6474             Keith Seitz  <keiths@redhat.com>
6475
6476         PR 15519
6477         * cp-namespace.c (find_symbol_in_baseclass): Call
6478         cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6479         Check result of call to lookup_symbol_static.
6480         Call lookup_static_symbol_aux unconditionally.
6481         Call check_typedef on base types before accessing them.
6482         (cp_lookup_nested_symbol): Fix comment.
6483
6484 2013-06-05  Luis Machado  <lgustavo@codesourcery.com>
6485
6486         * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6487         minimal symbols pointing to function descriptors.
6488
6489 2013-06-05  Tom Tromey  <tromey@redhat.com>
6490
6491         * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6492
6493 2013-06-04  Sergio Durigan Junior  <sergiodj@redhat.com>
6494             Pedro Alves  <palves@redhat.com>
6495
6496         * remote.c (remote_wait_as): Restore signal handler before returning
6497         when GDB gets a notification.
6498
6499 2013-06-04  Gary Benson  <gbenson@redhat.com>
6500
6501         PR 2328
6502         * breakpoint.h (handle_solib_event): Moved function declaration
6503         to solib.h.
6504         * breakpoint.c (handle_solib_event): Moved function to solib.c.
6505         (bpstat_stop_status): Pass new argument to handle_solib_event.
6506         * solib.h (update_solib_breakpoints): New function declaration.
6507         (handle_solib_event): Moved function declaration from
6508         breakpoint.h.
6509         * solib.c (update_solib_breakpoints): New function.
6510         (handle_solib_event): Moved function from breakpoint.c.
6511         Updated to call solib_ops->handle_event if not NULL.
6512         * solist.h (target_so_ops): New fields "update_breakpoints" and
6513         "handle_event".
6514         * infrun.c (set_stop_on_solib_events): New function.
6515         (_initialize_infrun): Use the above for "set
6516         stop-on-solib-events".
6517         (handle_inferior_event): Pass new argument to handle_solib_event.
6518         * solib-svr4.c (probe.h): New include.
6519         (svr4_free_library_list): New forward declaration.
6520         (probe_action): New enum.
6521         (probe_info): New struct.
6522         (probe_info): New static variable.
6523         (NUM_PROBES): New definition.
6524         (svr4_info): New fields "using_xfer", "probes_table" and
6525         "solib_list".
6526         (free_probes_table): New function.
6527         (free_solib_list): New function.
6528         (svr4_pspace_data_cleanup): Free probes table and solib list.
6529         (svr4_copy_library_list): New function.
6530         (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6531         (svr4_read_so_list): New parameter "prev_lm".
6532         (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6533         (svr4_current_sos): New function.
6534         (probe_and_action): New struct.
6535         (hash_probe_and_action): New function.
6536         (equal_probe_and_action): Likewise.
6537         (register_solib_event_probe): Likewise.
6538         (solib_event_probe_at): Likewise.
6539         (solib_event_probe_action): Likewise.
6540         (solist_update_full): Likewise.
6541         (solist_update_incremental): Likewise.
6542         (disable_probes_interface_cleanup): Likewise.
6543         (svr4_handle_solib_event): Likewise.
6544         (svr4_update_solib_event_breakpoint): Likewise.
6545         (svr4_update_solib_event_breakpoints): Likewise.
6546         (svr4_create_solib_event_breakpoints): Likewise.
6547         (enable_break): Free probes table before creating breakpoints.
6548         Use svr4_create_solib_event_breakpoints to create breakpoints.
6549         (svr4_solib_create_inferior_hook): Free the solib list.
6550         (_initialize_svr4_solib): Initialise
6551         svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6552
6553 2013-06-04  Gary Benson  <gbenson@redhat.com>
6554
6555         * target.h (target_ops): New field
6556         "to_augmented_libraries_svr4_read".
6557         (target_augmented_libraries_svr4_read): New macro.
6558         * target.c (update_current_target): Handle
6559         to_augmented_libraries_svr4_read.
6560         * remote.c (remote_state): New field
6561         "augmented_libraries_svr4_read".
6562         (remote_augmented_libraries_svr4_read_feature): New function.
6563         (remote_protocol_features): Add entry for
6564         "augmented-libraries-svr4-read".
6565         (remote_augmented_libraries_svr4_read): New function.
6566         (init_remote_ops): Initialize
6567         remote_ops.to_augmented_libraries_svr4_read.
6568
6569 2013-06-04  Gary Benson  <gbenson@redhat.com>
6570
6571         * NEWS: Update.
6572
6573 2013-06-04  Gary Benson  <gbenson@redhat.com>
6574
6575         * objfiles.h (inhibit_section_map_updates): New function
6576         declaration.
6577         (resume_section_map_updates): Likewise.
6578         (resume_section_map_updates_cleanup): Likewise.
6579         * objfiles.c (objfile_pspace_info): Removed field
6580         "objfiles_changed_p".  New fields "new_objfiles_available",
6581         "section_map_dirty" and "inhibit_updates".
6582         (allocate_objfile): Set new_objfiles_available.
6583         (free_objfile): Set section_map_dirty.
6584         (objfile_relocate1): Likewise.
6585         (in_plt_section): Likewise.
6586         (find_pc_section): Update the conditions under which the
6587         section map will be updated.
6588         (inhibit_section_map_updates): New function.
6589         (resume_section_map_updates): Likewise.
6590         (resume_section_map_updates_cleanup): Likewise.
6591
6592 2013-06-04  Gary Benson  <gbenson@redhat.com>
6593
6594         * probe.h (get_probe_argument_count): New declaration.
6595         (evaluate_probe_argument): Likewise.
6596         * probe.c (get_probe_argument_count): New function.
6597         (evaluate_probe_argument): Likewise.
6598         (probe_safe_evaluate_at_pc): Use the above new functions.
6599
6600 2013-06-04  Alan Modra  <amodra@gmail.com>
6601
6602         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6603         * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6604         (ppc_insns_match_pattern): Add frame param.  Avoid multiple
6605         target mem reads on optional insns.
6606         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6607         ppc_insns_match_pattern calls.
6608         * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6609         Add match for power7 thread safety insns, and new order of
6610         std 2,40(1) insn.  Correct code shown for _dl_runtime_resolve
6611         invocation in comment, and update rest of comment.
6612         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6613         PPC64_STANDARD_LINKAGE3_LEN): Delete.
6614         (ppc64_standard_linkage2_target): Update insn offsets.
6615         (ppc64_skip_trampoline_code): Use a single insn buffer.  Match newer
6616         stubs first.  Update calls.
6617
6618 2013-06-04  Yao Qi  <yao@codesourcery.com>
6619
6620         * solib.c (solib_find): Don't need dir separator if path has
6621         drive spec.
6622
6623 2013-06-03  Joel Brobecker  <brobecker@adacore.com>
6624
6625         Revert (indirectly causes a SIGSEGV):
6626         * machoread.c (macho_symfile_read): Assign first cleanup to
6627         'back_to'.
6628
6629 2013-06-03  Yao Qi  <yao@codesourcery.com>
6630
6631         * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6632         mi-parse.c.  Make them static.
6633         (mi_all_values): Likewise.
6634         (mi_parse_values_option): Move to mi-parse.c.  Rename it to
6635         mi_parse_print_values.  Make it external.
6636         * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6637         Remove the declarations.
6638         * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6639         * mi/mi-parse.h (mi_parse_print_values): Declare.
6640         * mi/mi-cmd-stack.c: Include mi-parse.h.
6641         (parse_print_values): Remove
6642         (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6643         of parse_print_values.
6644         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6645
6646 2013-05-31  Pedro Alves  <pedro@codesourcery.com>
6647             Yao Qi  <yao@codesourcery.com>
6648
6649         * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6650         (encode_actions): Move code to ...
6651         (all_tracepoint_actions_and_cleanup): ... here.  New.
6652         (trace_dump_command): Likewise.
6653
6654 2013-05-30  Tom Tromey  <tromey@redhat.com>
6655
6656         * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6657
6658 2013-05-30  Tom Tromey  <tromey@redhat.com>
6659
6660         * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6661         gdb_xml_create_parser_and_cleanup_1.  Return a cleanup.  Remove
6662         'old_chain' argument.  Add 'parser_result' argument.
6663         (gdb_xml_create_parser_and_cleanup): Remove old version.
6664         (gdb_xml_parse_quick): Update.
6665         (xml_process_xincludes): Update.
6666         * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6667         declare.
6668
6669 2013-05-30  Tom Tromey  <tromey@redhat.com>
6670
6671         * probe.c (collect_probes): Check arguments for NULL before
6672         calling compile_rx_or_error.
6673         * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6674         Remove NULL return.
6675
6676 2013-05-30  Tom Tromey  <tromey@redhat.com>
6677
6678         * infrun.c (adjust_pc_after_break): Introduce an outer null
6679         cleanup.
6680
6681 2013-05-30  Tom Tromey  <tromey@redhat.com>
6682
6683         * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6684
6685 2013-05-30  Tom Tromey  <tromey@redhat.com>
6686
6687         * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6688         for 'old_chain'.  Do not check 'head' before processing
6689         cleanups.
6690
6691 2013-05-30  Tom Tromey  <tromey@redhat.com>
6692
6693         * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6694         "cleanup_tuple".
6695
6696 2013-05-30  Tom Tromey  <tromey@redhat.com>
6697
6698         * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6699         inner scope.  Unconditionally call do_cleanups.
6700
6701 2013-05-30  Tom Tromey  <tromey@redhat.com>
6702
6703         * source.c (find_and_open_source): Call do_cleanups.
6704
6705 2013-05-30  Tom Tromey  <tromey@redhat.com>
6706
6707         * linux-thread-db.c (thread_db_load_search): Unconditionally
6708         call do_cleanups.
6709
6710 2013-05-30  Tom Tromey  <tromey@redhat.com>
6711
6712         * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6713         for 'cleanup'; instead use a later one.
6714
6715 2013-05-30  Tom Tromey  <tromey@redhat.com>
6716
6717         * python/py-breakpoint.c (bppy_get_commands): Use
6718         explicit, unconditional return.
6719         * python/py-frame.c (frapy_read_var): Likewise.
6720         * python/python.c (gdbpy_decode_line): Likewise.
6721
6722 2013-05-30  Tom Tromey  <tromey@redhat.com>
6723
6724         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6725         do_cleanups on all return paths.
6726
6727 2013-05-30  Tom Tromey  <tromey@redhat.com>
6728
6729         * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6730
6731 2013-05-30  Tom Tromey  <tromey@redhat.com>
6732
6733         * stabsread.c (read_struct_type): Call do_cleanups along
6734         all return paths.
6735
6736 2013-05-30  Maciej W. Rozycki  <macro@codesourcery.com>
6737
6738         * mips-linux-tdep.c: Adjust formatting throughout.
6739
6740 2013-05-30  Tom Tromey  <tromey@redhat.com>
6741
6742         * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6743         along all return paths.
6744
6745 2013-05-30  Tom Tromey  <tromey@redhat.com>
6746
6747         * symfile.c (find_separate_debug_file): Call do_cleanups
6748         along all return paths.
6749
6750 2013-05-30  Tom Tromey  <tromey@redhat.com>
6751
6752         * symtab.c (search_symbols): Introduce a null cleanup for
6753         'retval_chain'.
6754
6755 2013-05-30  Tom Tromey  <tromey@redhat.com>
6756
6757         * python/py-value.c (valpy_binop): Call do_cleanups before
6758         exiting loop.
6759
6760 2013-05-30  Tom Tromey  <tromey@redhat.com>
6761
6762         * python/py-prettyprint.c (print_children): Remove extra
6763         do_cleanups call.
6764
6765 2013-05-30  Tom Tromey  <tromey@redhat.com>
6766
6767         * python/py-frame.c (frapy_read_var): Call do_cleanups along
6768         all return paths.
6769
6770 2013-05-30  Tom Tromey  <tromey@redhat.com>
6771
6772         * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6773         along all return paths.
6774
6775 2013-05-30  Tom Tromey  <tromey@redhat.com>
6776
6777         * cli/cli-logging.c (set_logging_redirect): Unconditionally
6778         call do_cleanups.
6779
6780 2013-05-30  Tom Tromey  <tromey@redhat.com>
6781
6782         * varobj.c (c_value_of_root): Call do_cleanups along all
6783         return paths.
6784
6785 2013-05-30  Tom Tromey  <tromey@redhat.com>
6786
6787         * tracepoint.c (trace_dump_command): Unconditionally call
6788         do_cleanups.
6789
6790 2013-05-30  Tom Tromey  <tromey@redhat.com>
6791
6792         * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6793         do_cleanups earlier.
6794
6795 2013-05-30  Tom Tromey  <tromey@redhat.com>
6796
6797         * machoread.c (macho_symfile_read): Assign first cleanup to
6798         'back_to'.
6799
6800 2013-05-30  Tom Tromey  <tromey@redhat.com>
6801
6802         * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6803
6804 2013-05-30  Tom Tromey  <tromey@redhat.com>
6805
6806         * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6807
6808 2013-05-30  Tom Tromey  <tromey@redhat.com>
6809
6810         * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6811         call discard_cleanups.
6812         (inf_ptrace_attach): Likewise.
6813
6814 2013-05-30  Tom Tromey  <tromey@redhat.com>
6815
6816         * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6817         return paths.
6818         (mips_initialize): Likewise.
6819         (common_open): Call do_cleanups.
6820
6821 2013-05-30  Tom Tromey  <tromey@redhat.com>
6822
6823         * utils.c (internal_vproblem): Call do_cleanups.
6824
6825 2013-05-30  Tom Tromey  <tromey@redhat.com>
6826
6827         * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6828
6829 2013-05-30  Tom Tromey  <tromey@redhat.com>
6830
6831         * cli/cli-script.c (setup_user_args): Don't return after error.
6832
6833 2013-05-30  Tom Tromey  <tromey@redhat.com>
6834
6835         * somread.c (som_symtab_read): Call do_cleanups.
6836
6837 2013-05-30  Tom Tromey  <tromey@redhat.com>
6838
6839         * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6840
6841 2013-05-30  Tom Tromey  <tromey@redhat.com>
6842
6843         * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6844         * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6845         * interps.c (interpreter_exec_cmd): Call do_cleanups.
6846         * source.c (show_substitute_path_command): Call do_cleanups.
6847         (unset_substitute_path_command, set_substitute_path_command):
6848         Likewise.
6849         * symfile.c (load_command): Call do_cleanups.
6850
6851 2013-05-30  Tom Tromey  <tromey@redhat.com>
6852
6853         * contrib/cleanup_check.py: New file.
6854         * contrib/gcc-with-excheck: Add option parsing.
6855
6856 2013-05-30  Joel Brobecker  <brobecker@adacore.com>
6857
6858         * windows-nat.c (windows_delete_thread): Add missing space
6859         in cast expression.
6860
6861 2013-05-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6862
6863         * inferior.c (top level): Include tilde.h.
6864         (add_inferior_command): Call tilde_expand on the value of 'exec'
6865         argument.
6866
6867 2013-05-30  Pedro Alves  <pedro@codesourcery.com>
6868             Yao Qi  <yao@codesourcery.com>
6869
6870         * tracepoint.c (encode_actions_1): Remove parameter 't'.
6871         Caller update.
6872         (encode_actions): Likewise.
6873         * remote.c (remote_download_tracepoint): Caller update.
6874         * tracepoint.h (encode_actions): Update declaration.
6875
6876 2013-05-30  Pedro Alves  <palves@redhat.com>
6877
6878         * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6879         pointer.
6880
6881 2013-05-30  Yao Qi  <yao@codesourcery.com>
6882
6883         * remote.c (remote_check_symbols): Remove unused parameter
6884         'objfile'.
6885         Declaration update.
6886         (remote_start_remote, remote_new_objfile): Caller update.
6887
6888 2013-05-30  Yao Qi  <yao@codesourcery.com>
6889
6890         * mi/mi-cmds.c (mi_cmds): Define MI command
6891         '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6892         DEF_MI_CMD_CLI.
6893
6894 2013-05-29  Pedro Alves  <palves@redhat.com>
6895
6896         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6897         (remote_insert_watchpoint, remote_remove_watchpoint)
6898         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6899         (remote_verify_memory, compare_sections_command)
6900         (remote_search_memory): Set the general process/thread on the
6901         remote side.
6902
6903 2013-05-29  Pedro Alves  <palves@redhat.com>
6904
6905         * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6906         (_initialize_aarch64_tdep): Don't call
6907         initialize_tdesc_aarch64_without_fpu.
6908         * features/Makefile (WHICH): Remove reference to
6909         aarch64-without-fpu.
6910         * features/aarch64-without-fpu.c: Delete file.
6911         * regformats/aarch64-without-fpu.dat: Delete file.
6912
6913 2013-05-28  Yao Qi  <yao@codesourcery.com>
6914
6915         * tracepoint.c (stringify_collection_list): Remove parameter
6916         'string'.
6917         (encode_actions): Caller update.  Remove local variables.
6918
6919 2013-05-24  Yao Qi  <yao@codesourcery.com>
6920
6921         * tracepoint.c (TFILE_PID): Remove.
6922         (tfile_open): Don't add thread and inferior.
6923         (tfile_close): Don't set 'inferior_ptid'.  Don't call
6924         exit_inferior_silent.
6925         (tfile_thread_alive): Remove.
6926         (init_tfile_ops): Don't set field 'to_thread_alive' of
6927         tfile_ops.
6928
6929 2013-05-23  Doug Evans  <dje@google.com>
6930
6931         * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6932
6933 2013-05-23  Pedro Alves  <palves@redhat.com>
6934
6935         * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6936         [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6937         (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6938         Only define if HAVE_SOCKETS is defined.
6939         * configure.ac: Check for sys/socket.h.
6940         * config.in, configure: Regenerate.
6941
6942 2013-05-23  Pedro Alves  <palves@redhat.com>
6943
6944         * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6945         (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6946         printing uint32_t variables.
6947
6948 2013-05-23  Pedro Alves  <palves@redhat.com>
6949
6950         * NEWS: Mention GDBserver range stepping support.
6951
6952 2013-05-23  Yao Qi  <yao@codesourcery.com>
6953             Pedro Alves  <palves@redhat.com>
6954
6955         * gdbthread.h (struct thread_control_state) <may_range_step>: New
6956         field.
6957         * infcmd.c (step_once, until_next_command): Enable range stepping.
6958         * infrun.c (displaced_step_prepare): Disable range stepping.
6959         (resume): Disable range stepping if stepping over a breakpoint or
6960         we have software watchpoints.  If range stepping is enabled,
6961         assert the thread is in the stepping range.
6962         (clear_proceed_status_thread): Clear may_range_step.
6963         (handle_inferior_event): Disable range stepping as soon as we know
6964         the thread that hit the event.  Re-enable it whenever we're going
6965         to step with a step range.
6966         * remote.c (struct vCont_action_support) <r>: New field.
6967         (use_range_stepping): New global.
6968         (remote_vcont_probe): Handle 'r' action.
6969         (append_resumption): Append an 'r' action if the thread may range
6970         step.
6971         (show_range_stepping): New function.
6972         (set_range_stepping): New function.
6973         (_initialize_remote): Call add_setshow_boolean_cmd to register the
6974         'set range-stepping' and 'show range-stepping' commands.
6975         * NEWS: Mention range stepping, the new vCont;r action, and the
6976         new "set/show range-stepping" commands.
6977
6978 2013-05-23  Yao Qi  <yao@codesourcery.com>
6979             Pedro Alves  <palves@redhat.com>
6980
6981         * remote.c (struct vCont_action_support): New struct.
6982         (struct remote_state) <support_vCont_t>: Remove field.
6983         <vCont_actions_support>: New field.
6984         (remote_vcont_probe, remote_stop_ns): Update.
6985
6986 2013-05-23  Yao Qi  <yao@codesourcery.com>
6987             Pedro Alves  <palves@redhat.com>
6988
6989         * gdbthread.h (pc_in_thread_step_range): New declaration.
6990         * thread.c (pc_in_thread_step_range): New function.
6991         * infrun.c (handle_inferior_event): Use it.
6992
6993 2013-05-23  Joel Brobecker  <brobecker@adacore.com>
6994
6995         * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6996         of sprintf.
6997
6998 2013-05-22  Keith Seitz  <keiths@redhat.com>
6999
7000         * ada-lang.c (is_known_support_routine): Add explicit free of
7001         'func_name' from find_frame_funname.
7002         (ada_unhandled_exception_name_addr_from_raise): Add cleanups
7003         for func_name from find_frame_funname.
7004         * python/py-frame.c (frapy_name): Add explicit free of
7005         'name' from find_frame_funname.
7006         * stack.c (find_frame_funname): Add comment explaining that
7007         funcp must be freed by the caller.
7008         Return copy of symbol names instead of pointers.
7009         (print_frame): Add a cleanup for 'funname' from
7010         find_frame_funname.
7011         * stack.h (find_frame_funname): Remove "const" from
7012         'funname' parameter.
7013
7014 2013-05-22  Tom Tromey  <tromey@redhat.com>
7015
7016         PR c++/15401:
7017         * c-valprint.c (c_value_print): Use value_addr for
7018         references.  Convert back to reference type with value_ref.
7019
7020 2013-05-22  Eli Zaretskii  <eliz@gnu.org>
7021
7022         * windows-nat.c (handle_unload_dll): Don't call solib_add for the
7023         unloaded DLL, it will be done by handle_solib_event.  See
7024         http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
7025         details.
7026
7027 2013-05-22  Phil Muldoon  <pmuldoon@redhat.com>
7028
7029         * ui-out.c: Create typedef ui_out_level_p and define vector
7030         operations for that type.
7031         (struct ui_out): Use a vector instead of an array.
7032         (current_level): Return level from a vector.
7033         (push_level): Create a level in a vector.
7034         (pop_level): Delete a level in a vector.
7035         (ui_out_new): Create initial level zero level, and store in a
7036         vector.
7037         (ui_out_destroy): Add vector cleanup.
7038
7039 2013-05-22  Pedro Alves  <palves@redhat.com>
7040
7041         * python/python-internal.h (gdb_Py_DECREF): Tag with
7042         "ARI: editCase function".
7043
7044 2013-05-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
7045
7046         * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
7047
7048 2013-05-21  Pedro Alves  <palves@redhat.com>
7049
7050         * python/py-prettyprint.c (apply_val_pretty_printer): Check
7051         whether PRINTER is NULL before installing a Py_DECREF cleanup.
7052         * python/py-utils.c (py_decref): Don't check for NULL before
7053         calling Py_DECREF.
7054
7055 2013-05-21  Pedro Alves  <palves@redhat.com>
7056
7057         * python/py-utils.c (py_decref): Remove extra braces.
7058         (gdb_pymodule_addobject): Remove extra braces.
7059         * python-internal.h (gdb_Py_DECREF): New static inline function.
7060         (Py_DECREF): Redefine as calling gdb_Py_DECREF.
7061
7062 2013-05-21  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7063
7064         * breakpoints.c (detach_breakpoints): Do not
7065         detach breakpoints locations with loc_type bp_loc_other.
7066
7067 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7068
7069         Workaround Python 2.6.
7070         * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
7071         a block.
7072
7073 2013-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7074
7075         Code cleanup: constification.
7076         * solib.c (solib_ops): Make return type and ops variable type const.
7077         (set_solib_ops): Make the new_ops parameter and ops variable const.
7078         (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
7079         (solib_add, solib_keep_data_in_core, clear_solib)
7080         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
7081         (reload_shared_libraries, solib_global_lookup): Make the ops variable
7082         const.
7083         * solib.h (set_solib_ops): Make the new_ops parameter const.
7084
7085 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
7086
7087         * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
7088         variable.
7089         (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
7090         (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
7091         (SYSTEM_GDBINIT_FILES): New variables.
7092         (all): Add stamp-system-gdbinit.
7093         (stamp-system-gdbinit): New rule.
7094         (clean-system-gdbinit, install-system-gdbinit)
7095         (uninstall-system-gdbinit): New rules.  Make them .PHONY.
7096         (install-only): Add dependency on install-system-gdbinit.
7097         (uninstall): Add dependency on uninstall-system-gdbinit.
7098         (clean): Add dependency on clean-system-gdbinit.
7099         * system-gdbinit/elinos.py: New file.
7100         * system-gdbinit/wrs-linux.py: New file.
7101
7102 2013-05-21  Joel Brobecker  <brobecker@adacore.com>
7103
7104         * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
7105
7106 2013-05-21  Hui Zhu  <hui@codesourcery.com>
7107
7108         * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
7109         * breakpoint.h (dprintf_breakpoint_ops): Add extern.
7110         * mi/mi-cmd-break.c (ctype.h): New include.
7111         (gdb_obstack.h): New include.
7112         (mi_argv_to_format, mi_cmd_break_insert_1): New.
7113         (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
7114         (mi_cmd_dprintf_insert): New.
7115         * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
7116         * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
7117
7118 2013-05-20  Tom Tromey  <tromey@redhat.com>
7119
7120         * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7121
7122 2013-05-20  Tom Tromey  <tromey@redhat.com>
7123
7124         * python/py-value.c (valpy_get_dynamic_type): Simplify
7125         dynamic_type assignment.  Use Py_XINCREF.
7126
7127 2013-05-20  Tom Tromey  <tromey@redhat.com>
7128
7129         * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7130
7131 2013-05-20  Tom Tromey  <tromey@redhat.com>
7132
7133         * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7134         (gdbpy_selected_frame): Move object-construction code
7135         out of TRY_CATCH.
7136
7137 2013-05-20  Tom Tromey  <tromey@redhat.com>
7138
7139         * python/py-arch.c (gdbpy_initialize_arch): Use
7140         gdb_pymodule_addobject.
7141         * python/py-block.c (gdbpy_initialize_blocks): Use
7142         gdb_pymodule_addobject.
7143         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7144         gdb_pymodule_addobject.
7145         * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7146         gdb_pymodule_addobject.
7147         * python/py-event.c (gdbpy_initialize_event_generic): Use
7148         gdb_pymodule_addobject.
7149         * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7150         gdb_pymodule_addobject.
7151         * python/py-evts.c (add_new_registry): Use
7152         gdb_pymodule_addobject.
7153         (gdbpy_initialize_py_events): Likewise.
7154         * python/py-finishbreakpoint.c
7155         (gdbpy_initialize_finishbreakpoints): Use
7156         gdb_pymodule_addobject.
7157         * python/py-frame.c (gdbpy_initialize_frames): Use
7158         gdb_pymodule_addobject.
7159         * python/py-function.c (gdbpy_initialize_functions): Use
7160         gdb_pymodule_addobject.
7161         * python/py-inferior.c (gdbpy_initialize_inferior): Use
7162         gdb_pymodule_addobject.
7163         * python/py-infthread.c (gdbpy_initialize_thread): Use
7164         gdb_pymodule_addobject.
7165         * python/py-objfile.c (gdbpy_initialize_objfile): Use
7166         gdb_pymodule_addobject.
7167         * python/py-param.c (gdbpy_initialize_parameters): Use
7168         gdb_pymodule_addobject.
7169         * python/py-progspace.c (gdbpy_initialize_pspace): Use
7170         gdb_pymodule_addobject.
7171         * python/py-symbol.c (gdbpy_initialize_symbols): Use
7172         gdb_pymodule_addobject.
7173         * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7174         gdb_pymodule_addobject.
7175         * python/py-type.c (gdbpy_initialize_types): Use
7176         gdb_pymodule_addobject.
7177         * python/py-utils.c (gdb_pymodule_addobject): New function.
7178         * python/py-value.c (gdbpy_initialize_values): Use
7179         gdb_pymodule_addobject.
7180         * python/python-internal.h (gdb_pymodule_addobject): Declare.
7181         * python/python.c (_initialize_python): Use
7182         gdb_pymodule_addobject.
7183
7184 2013-05-20  Tom Tromey  <tromey@redhat.com>
7185
7186         * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7187         * python/py-param.c (get_set_value, get_show_value): Use
7188         explicit decrefs.
7189         * python/python.c (start_type_printers, apply_type_printers):
7190         Use explicit decrefs.
7191
7192 2013-05-20  Tom Tromey  <tromey@redhat.com>
7193
7194         * python/py-evts.c (gdbpy_initialize_py_events): Don't
7195         incref the module.
7196
7197 2013-05-20  Tom Tromey  <tromey@redhat.com>
7198
7199         * python/python.c (gdbpy_run_events): Decref the result
7200         of PyObject_CallObject.
7201
7202 2013-05-20  Tom Tromey  <tromey@redhat.com>
7203
7204         * python/py-symtab.c (set_sal): Use
7205         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.  Return -1 on error.
7206         (symtab_and_line_to_sal_object): Update.
7207
7208 2013-05-20  Tom Tromey  <tromey@redhat.com>
7209
7210         * python/py-param.c (compute_enum_values): Decref 'item'.
7211
7212 2013-05-20  Tom Tromey  <tromey@redhat.com>
7213
7214         * mi/mi-main.c: Include python-internal.h.
7215         (mi_cmd_list_features): Check gdb_python_initialized.
7216         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7217         (python_inferior_exit, python_new_objfile, add_thread_object)
7218         (delete_thread_object, py_free_inferior): Check
7219         gdb_python_initialized.
7220         * python/py-prettyprint.c (apply_val_pretty_printer): Check
7221         gdb_python_initialized.
7222         * python/py-type.c (save_objfile_types): Check
7223         gdb_python_initialized.
7224         * python/python-internal.h (gdb_python_initialized): Declare.
7225         * python/python.c (ensure_python_env): Throw exception if
7226         Python not initialized.
7227         (before_prompt_hook, source_python_script_for_objfile)
7228         (start_type_printers, apply_type_printers,
7229         free_type_printers): Check gdb_python_initialized.
7230         * varobj.c (varobj_get_display_hint)
7231         (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7232         (install_new_value_visualizer, varobj_set_visualizer)
7233         (value_get_print_value): Check gdb_python_initialized.
7234
7235 2013-05-20  Tom Tromey  <tromey@redhat.com>
7236
7237         * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7238         Check errors.
7239         * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7240         * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7241         Check errors.
7242         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7243         Check errors.
7244         * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7245         Check errors.
7246         * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7247         Check errors.
7248         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7249         init function to return 'int'.
7250         * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7251         Return 'int'.  Check errors.
7252         * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7253         Check errors.
7254         * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7255         Return 'int'.  Check errors.
7256         * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7257         Check errors.
7258         * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7259         Check errors.
7260         * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7261         Check errors.
7262         * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7263         Check errors.
7264         * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7265         Check errors.
7266         * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7267         Check errors.
7268         * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7269         Check errors.
7270         * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7271         Check errors.
7272         * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7273         Check errors.
7274         * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7275         Check errors.
7276         * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7277         Check errors.
7278         * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7279         Check errors.
7280         * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7281         Check errors.
7282         * python/python-internal.h (gdbpy_initialize_auto_load,
7283         gdbpy_initialize_values, gdbpy_initialize_frames,
7284         gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7285         gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7286         gdbpy_initialize_blocks, gdbpy_initialize_types,
7287         gdbpy_initialize_functions, gdbpy_initialize_pspace,
7288         gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7289         gdbpy_initialize_finishbreakpoints,
7290         gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7291         gdbpy_initialize_thread, gdbpy_initialize_inferior,
7292         gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7293         gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7294         gdbpy_initialize_signal_event,
7295         gdbpy_initialize_breakpoint_event,
7296         gdbpy_initialize_continue_event,
7297         gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7298         gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7299         Update.  Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7300         * python/python.c (gdb_python_initialized): New global.
7301         (gdbpy_initialize_events): Return 'int'.  Check errors.
7302         (_initialize_python): Check errors.  Set
7303         gdb_python_initialized.
7304
7305 2013-05-20  Tom Tromey  <tromey@redhat.com>
7306
7307         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7308         Decref the reslut of PyObject_CallMethod.
7309
7310 2013-05-20  Tom Tromey  <tromey@redhat.com>
7311
7312         * python/py-event.c (gdbpy_initialize_event_generic): Return
7313         early if PyType_Ready fails.
7314
7315 2013-05-20  Tom Tromey  <tromey@redhat.com>
7316
7317         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7318         as 'default' in the switch.
7319
7320 2013-05-20  Tom Tromey  <tromey@redhat.com>
7321
7322         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
7323         get_addr_from_python calls out of TRY_CATCH.
7324         (infpy_write_memory, infpy_search_memory): Likewise.
7325         * python/py-utils.c (get_addr_from_python): Return negative
7326         value on error.  Use TRY_CATCH.
7327         * python/python-internal.h (get_addr_from_python): Use
7328         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7329
7330 2013-05-20  Tom Tromey  <tromey@redhat.com>
7331
7332         * python/py-event.c (evpy_emit_event): Decref the
7333         result of PyObject_CallFunctionObjArgs.
7334
7335 2013-05-20  Tom Tromey  <tromey@redhat.com>
7336
7337         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7338         Correctly decref.
7339
7340 2013-05-20  Tom Tromey  <tromey@redhat.com>
7341
7342         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7343
7344 2013-05-20  Tom Tromey  <tromey@redhat.com>
7345
7346         * python/py-event.h (gdbpy_initialize_event_generic): Use
7347         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7348         * python/py-evts.c (add_new_registry): Use
7349         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7350         * python/python-internal.h
7351         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7352
7353 2013-05-20  Tom Tromey  <tromey@redhat.com>
7354
7355         * python/py-arch.c (archpy_disassemble): Update.
7356         * python/py-type.c (typy_get_composite, typy_lookup_typename)
7357         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7358         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7359         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7360         macro.
7361         (GDB_PY_HANDLE_EXCEPTION): Update.
7362         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
7363
7364 2013-05-20  Tom Tromey  <tromey@redhat.com>
7365
7366         * python/python-internal.h (events_object_type): Remove.
7367
7368 2013-05-20  Tom Tromey  <tromey@redhat.com>
7369
7370         * python/py-event.h (evpy_emit_event): Use
7371         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7372         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7373         New macro.
7374
7375 2013-05-20  Tom Tromey  <tromey@redhat.com>
7376
7377         * py-evtregistry.c (create_event_object): Decref
7378         eventregistry_object if PyList_New fails.
7379
7380 2013-05-20  Tom Tromey  <tromey@redhat.com>
7381
7382         * py-cmd.c (gdbpy_string_to_argv): Check result of
7383         PyList_New.
7384
7385 2013-05-20  Tom Tromey  <tromey@redhat.com>
7386
7387         * python/python.c (before_prompt_hook): Add cleanup to
7388         decref 'hook'.
7389
7390 2013-05-20  Tom Tromey  <tromey@redhat.com>
7391
7392         * python/py-function.c (fnpy_init): Decref result of
7393         PyObject_GetAttrString.
7394
7395 2013-05-20  Tom Tromey  <tromey@redhat.com>
7396
7397         * python/py-threadevent.c (get_event_thread): Use
7398         CPYCHECKER_RETURNS_BORROWED_REF.
7399         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7400         New define.
7401         (pspace_to_pspace_object, objfile_to_objfile_object)
7402         (find_thread_object): Use it.
7403
7404 2013-05-20  Tom Tromey  <tromey@redhat.com>
7405
7406         * python/py-arch.c (arch_object_type): Use
7407         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7408         * python/py-block.c (block_syms_iterator_object_type):
7409         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7410         * python/py-bpevent.c (breakpoint_event_object_type):
7411         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7412         * python/py-cmd.c (cmdpy_object_type): Use
7413         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7414         * python/py-continueevent.c (continue_event_object_type):
7415         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7416         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7417         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7418         * python/py-events.h (thread_event_object_type):
7419         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7420         * python/py-evtregistry.c (eventregistry_object_type): Use
7421         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7422         * python/py-exitedevent.c (exited_event_object_type):
7423         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7424         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7425         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7426         * python/py-function.c (fnpy_object_type): Use
7427         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7428         * python/py-inferior.c (inferior_object_type, membuf_object_type):
7429         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7430         * python/py-infthread.c (thread_object_type): Use
7431         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7432         * python/py-lazy-string.c (lazy_string_object_type):
7433         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7434         * python/py-newobjfileevent.c (new_objfile_event_object_type):
7435         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7436         * python/py-objfile.c (objfile_object_type): Use
7437         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7438         * python/py-param.c (parmpy_object_type):
7439         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7440         * python/py-progspace.c (pspace_object_type):
7441         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7442         * python/py-signalevent.c (signal_event_object_type):
7443         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7444         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7445         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7446         * python/py-type.c (type_object_type, field_object_type)
7447         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7448         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7449         define.
7450         (value_object_type, block_object_type, symbol_object_type)
7451         (event_object_type, stop_event_object_type, breakpoint_object_type)
7452         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7453
7454 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
7455
7456         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7457         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7458
7459 2013-05-20  Doug Evans  <dje@google.com>
7460
7461         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
7462         For Fission.
7463         * dwarf2read.c (struct dwarf2_per_cu_data): New member
7464         reading_dwo_directly.
7465         (struct signatured_type): New member dwo_unit.
7466         (struct die_reader_specs): New member comp_dir.
7467         (create_signatured_type_table_from_index): Use malloc for
7468         all_type_units instead of objfile's obstack.
7469         (create_all_type_units): Ditto.
7470         (fill_in_sig_entry_from_dwo_entry): New function.
7471         (add_type_unit): New function.
7472         (lookup_dwo_signatured_type): New function.
7473         (lookup_dwp_signatured_type): New function.
7474         (lookup_signatured_type): New arg cu.  All callers updated.
7475         (init_cu_die_reader): Initialize comp_dir.
7476         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
7477         Change assert of matching type signatures to call error on mismatch.
7478         (lookup_dwo_unit): Add assert.
7479         (init_tu_and_read_dwo_dies): New function.
7480         (init_cutu_and_read_dies): Call it.
7481         (build_type_unit_groups): Handle case of no type unit groups created.
7482         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7483         (lookup_dwo_cutu): Tweak complaint.
7484         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7485         (dwarf2_per_objfile_free): Free all_type_units.
7486
7487 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
7488
7489         * windows-nat.c (handle_unload_dll): Add missing empty line.
7490
7491 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
7492
7493         * dwarf2read.c (prototyped_function_p): New function.
7494         (read_subroutine_type): Use it.
7495
7496 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
7497
7498         * rs6000-aix-tdep.c: De-indent some example code provided
7499         as a comment.
7500
7501 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
7502
7503         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7504         region is ok for a hardware watchpoint using the new ptrace interface
7505         on Power servers.
7506
7507 2013-05-17  Doug Evans  <dje@google.com>
7508
7509         * NEWS: Mention new maintenance commands check-symtabs, and
7510         expand-symtabs, and renamed check-psymtabs.
7511         * psymtab.c (maintenance_check_psymtabs): Renamed from
7512         maintenance_check_symtabs.  Only process already-expanded symbol
7513         tables.
7514         (_initialize_psymtab): Update.
7515         * symmisc.c (maintenance_check_symtabs): New function.
7516         (maintenance_expand_name_matcher): New function
7517         (maintenance_expand_file_matcher): New function
7518         (maintenance_expand_symtabs): New function.
7519         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7520         commands.
7521
7522 2013-05-17  Tom Tromey  <tromey@redhat.com>
7523
7524         * python/py-inferior.c (infpy_read_memory): Don't call
7525         PyErr_SetString if PyObject_New fails.
7526         * python/py-frame.c (frame_info_to_frame_object): Don't call
7527         PyErr_SetString if PyObject_New fails.
7528
7529 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
7530
7531         * acinclude.m4: Add check for dlopen in libdl.
7532         * configure.ac: Ditto.
7533         * configure: Regenerate.
7534
7535 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
7536
7537         * frame.c (frame_stash): Convert to htab.
7538         (frame_addr_hash): New function.
7539         (frame_addr_hash_eq): New function.
7540         (frame_stash_create): Convert function to create
7541         a hash table.
7542         (frame_stash_add): Convert function to add an entry to a hash
7543         table.
7544         (frame_stash_find): Convert function to search the hash table.
7545         (frame_stash_invalidate): Convert function to empty the hash
7546         table.
7547         (get_frame_id): Only add to stash if a frame_id is created.
7548         (_initialize_frame): Call frame_stash_create.
7549
7550 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
7551
7552         * configure.ac: Ensure MIG is available when building for GNU Hurd
7553         hosts.
7554         * configure: Regenerate.
7555
7556 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
7557
7558         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7559
7560 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
7561
7562         * ada-lang.c (ada_make_symbol_completion_list): Make sure
7563         all cleanups are done before returning from this function.
7564
7565 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
7566
7567         * utils.h: #include "exceptions.h".
7568         (enum errors): Remove partial declaration.
7569
7570 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
7571
7572         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7573         * gdbarch.h, gdbarch.c: Regenerate.
7574         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7575         handling.
7576
7577         * rs6000-aix-tdep.h: New file.
7578         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7579         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7580         "xml-utils.h".
7581         (struct field_info, struct ld_info_desc): New types.
7582         (ld_info32_desc, ld_info64_desc): New static constants.
7583         (struct ld_info): New type.
7584         (rs6000_aix_extract_ld_info): New function.
7585         (rs6000_aix_shared_library_to_xml): Likewise.
7586         (rs6000_aix_ld_info_to_xml): Likewise.
7587         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7588         (rs6000_aix_init_osabi): Add call to
7589         set_gdbarch_core_xfer_shared_libraries_aix.
7590         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7591         Remove "xml-utils.h" include.
7592         (LdInfo): Delete typedef.
7593         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7594         Delete macros.
7595         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7596         Adjust code accordingly.
7597         (rs6000_core_ldinfo): Delete, folded into
7598         rs6000_aix_core_xfer_shared_libraries_aix.
7599         (rs6000_xfer_shared_library): Delete.
7600         (rs6000_xfer_shared_libraries): Reimplement.
7601
7602 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
7603
7604         * record.c (record_goto_cmdlist): New.
7605         (cmd_record_goto): Split into this ...
7606         (cmd_record_goto_begin): ... this
7607         (cmd_record_goto_end): ... and this.
7608         (_initialize_record): Change "record goto" to prefix command.
7609         Add commands for "record goto begin" and "record goto end".
7610         Add an alias for "record goto start" to "record goto begin".
7611
7612 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7613
7614         * linespec.c (convert_linespec_to_sals): New comment for
7615         SOURCE_FILENAME assignment.
7616
7617 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7618
7619         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7620         internal_warning.
7621
7622 2013-05-14  Tom Tromey  <tromey@redhat.com>
7623
7624         * eval.c (parse_and_eval_long): Make 'exp' const.
7625         * value.h (parse_and_eval_long): Update.
7626
7627 2013-05-14  Tom Tromey  <tromey@redhat.com>
7628
7629         * ui-file.c (gdb_fopen): Make arguments const.
7630         * ui-file.h (gdb_fopen): Make arguments const.
7631
7632 2013-05-14  Tom Tromey  <tromey@redhat.com>
7633
7634         * remote.c (remote_set_trace_notes): Make arguments const.
7635         * target.c (update_current_target): Update cast.
7636         * target.h (to_set_trace_notes): Make arguments const.
7637
7638 2013-05-14  Tom Tromey  <tromey@redhat.com>
7639
7640         * go32-nat.c (go32_terminal_info): Make 'args' const.
7641         * inferior.h (child_terminal_info): Update.
7642         * inflow.c (child_terminal_info): Make 'args' const.
7643         * target.c (default_terminal_info): Make 'args' const.
7644         (debug_to_terminal_save_ours): Likewise.
7645         * target.h (struct target_ops) <to_terminal_info>: Make argument
7646         const.
7647
7648 2013-05-13  Tom Tromey  <tromey@redhat.com>
7649
7650         * gcore.c (create_gcore_bfd): Make 'filename' const.
7651         * gcore.h (create_gcore_bfd): Make 'filename' const.
7652         * record-full.c (record_full_save): Make 'recfilename' const.
7653         * target.c (target_save_record): Make 'filename' const.
7654         * target.h (struct target_ops) <to_save_record>: Make 'filename'
7655         const.
7656         (target_save_record): Likewise.
7657
7658 2013-05-13  Tom Tromey  <tromey@redhat.com>
7659
7660         PR gdb/15338:
7661         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7662         ranges section has been read.
7663
7664 2013-05-13  Tom Tromey  <tromey@redhat.com>
7665
7666         PR exp/15364:
7667         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7668         STRUCTOP_PTR>: Return a not_lval value for
7669         EVAL_AVOID_SIDE_EFFECTS.
7670         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7671         for EVAL_AVOID_SIDE_EFFECTS.
7672
7673 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
7674
7675         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7676         floating point registers to register type before storing
7677         value.
7678         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7679         Likewise.
7680
7681 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7682             Tom Tromey  <tromey@redhat.com>
7683
7684         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7685         New functions.
7686         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7687         Declare.
7688         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7689         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7690         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7691         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7692
7693 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
7694             Tom Tromey  <tromey@redhat.com>
7695
7696         PR build/15414:
7697         * configure: Rebuild.
7698         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7699         with -Wno-format.
7700
7701 2013-05-10  Pedro Alves  <palves@redhat.com>
7702
7703         * remote.c (_initialize_remote): Fix spelling of
7704         qXfer:traceframe-info:read packet in packet config command.
7705
7706 2013-05-10  David Taylor  <dtaylor@emc.com>
7707
7708         PR remote/15455
7709
7710         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7711         "QTro" at start of packet.
7712
7713 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7714
7715         * solib-aix.c (solib_aix_relocate_section_addresses):
7716         For the .bss section action, apply the same offset as
7717         the .data section.
7718
7719 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7720
7721         * solib-aix.c (solib_aix_relocate_section_addresses):
7722         Remove FIXME comment.
7723
7724 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
7725
7726         PR tdep/15420:
7727         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7728         New functions, directly copied from sparc-sol-thread.c.
7729         * sparc-sol-thread.c: Delete.
7730         * configure.ac: Remove code handling sparc-solaris-thread.c.
7731         * configure: Regenerate.
7732
7733 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
7734
7735         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7736         filter logic.
7737         (backtrace_command): Add "no-filters" option parsing.
7738         (_initialize_stack): Alter help to reflect "no-filters" option.
7739         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7740         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7741         (py-frame.o): Add target
7742         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7743         filter files.
7744         * python/python.h: Add new frame filter constants, and flag enum.
7745         (apply_frame_filter): Add definition.
7746         * python/python.c (apply_frame_filter): New non-Python
7747         enabled function.
7748         * python/py-utils.c (py_xdecref): New function.
7749         (make_cleanup_py_xdecref): Ditto.
7750         * python/py-objfile.c: Declare frame_filters dictionary.
7751         (objfpy_dealloc): Add frame_filters dealloc.
7752         (objfpy_new): Initialize frame_filters attribute.
7753         (objfile_to_objfile_object): Ditto.
7754         (objfpy_get_frame_filters): New function.
7755         (objfpy_set_frame_filters): New function.
7756         * python/py-progspace.c: Declare frame_filters dictionary.
7757         (pspy_dealloc): Add frame_filters dealloc.
7758         (pspy_new): Initialize frame_filters attribute.
7759         (pspacee_to_pspace_object): Ditto.
7760         (pspy_get_frame_filters): New function.
7761         (pspy_set_frame_filters): New function.
7762         * python/py-framefilter.c: New file.
7763         * python/lib/gdb/command/frame_filters.py: New file.
7764         * python/lib/gdb/frames.py: New file.
7765         * python/lib/gdb/__init__.py: Initialize global frame_filters
7766         dictionary
7767         * python/lib/gdb/FrameDecorator.py: New file.
7768         * python/lib/gdb/FrameIterator.py: New file.
7769         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7770         * mi/mi-cmds.h: Declare.
7771         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7772         --no-frame-filter logic, and Python frame filter logic.
7773         (stack_enable_frame_filters): New function.
7774         (parse_no_frame_option): Ditto.
7775         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7776         filter logic.
7777         (mi_cmd_stack_list_locals): Ditto.
7778         (mi_cmd_stack_list_args): Ditto.
7779         (mi_cmd_stack_list_variables): Ditto.
7780         * NEWS: Add frame filter note.
7781
7782 2013-05-09  Doug Evans  <dje@google.com>
7783
7784         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7785         All callers updated.
7786         (syms_from_objfile): Ditto.  Make static.
7787         (symbol_file_add_with_addrs): Renamed from
7788         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
7789         num_offsets.  All callers updated.
7790         * symfile.h (syms_from_objfile): Delete.
7791
7792         * symfile.c (decrement_reading_symtab): Add assert.
7793         (increment_reading_symtab): Ditto.
7794
7795 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
7796
7797         * source.c (forward_search_command): Replace call to getc
7798         by call to fgetc.
7799         (reverse_search_command): Likewise.
7800
7801 2013-05-08  Doug Evans  <dje@google.com>
7802
7803         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7804         matching test.
7805
7806 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7807
7808         * sol-thread.c (info_cb): Factorize the code a little.
7809
7810 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7811
7812         * sol-thread.c (info_cb): Rework the output of the "maintenance
7813         info sol-threads" command a bit.
7814
7815 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7816
7817         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7818         Replace ti.ti_startfunc by ti.ti_pc.
7819
7820 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
7821
7822         * solib-aix.c (solib_aix_free_library_list): New function
7823         for the case where HAVE_LIBEXPAT is not defined.
7824
7825 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7826
7827         PR breakpoints/15413:
7828         * breakpoint.c (condition_completer): Simplify the code to
7829         disconsider multiple locations of breakpoints when completing the
7830         "condition" command.
7831
7832 2013-05-07  Pierre Muller  <muller@sourceware.org>
7833
7834         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7835         instead of <sys/wait.h>.
7836
7837 2013-05-07  Pierre Muller  <muller@sourceware.org>
7838
7839         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7840         trailing new line from warning message.
7841
7842 2013-05-07  Pierre Muller  <muller@sourceware.org>
7843
7844         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7845         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7846
7847 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7848
7849         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7850         error message (ARI fix).
7851
7852 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7853
7854         * features/library-list-aix.dtd: Replace library-list by
7855         library-list-aix.
7856         * rs6000-nat.c: Replace library-list by library-list-aix
7857         throughout.
7858         * solib-aix.c: Likewise.
7859
7860 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
7861
7862         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7863         Renames TARGET_OBJECT_AIX_LIBRARIES.
7864         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7865         TARGET_OBJECT_LIBRARIES_AIX throughout.
7866         * solib-aix.c: Likwise.
7867
7868 2013-05-07  Yao Qi  <yao@codesourcery.com>
7869
7870         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7871         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7872
7873 2013-05-07  Yao Qi  <yao@codesourcery.com>
7874
7875         * solib-dsbt.c (enable_break): Declare.
7876         (dsbt_current_sos): Remove call to enable_break2.
7877         (enable_break2): Rename to enable_break.  Set solib breakpoint
7878         on '_dl_debug_state'.
7879         (enable_break): Remove.
7880
7881 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
7882
7883         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7884         debug state prior to replicating existing hardware watchpoints or
7885         breakpoints.
7886
7887 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
7888
7889         * gcore.c (gcore_create_callback): Ignore sections with
7890         separate_debug_objfile_backlink != NULL.
7891
7892 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7893             Andrew Jenner  <andrew@codesourcery.com>
7894             Chung-Lin Tang  <cltang@codesourcery.com>
7895             Julian Brown  <julian@codesourcery.com>
7896
7897         Based on the nios2-elf port from Altera Corporation.
7898
7899         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7900         nios2-linux-tdep.o.
7901         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7902         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7903         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7904         * nios2-tdep.h: New.
7905         * nios2-tdep.c: New.
7906         * nios2-linux-tdep.c: New.
7907         * features/Makefile (WHICH): Add nios2-linux.
7908         (nios2-linux-expedite): Set.
7909         * features/nios2-cpu.xml: New.
7910         * features/nios2.xml: New.
7911         * features/nios2-linux.xml: New.
7912         * features/nios2.c: New (autogenerated).
7913         * features/nios2-linux.c: New (autogenerated).
7914         * regformats/nios2-linux.dat: New (autogenerated).
7915         * NEWS (Changes since GDB 7.6): Add new Nios II targets
7916         and commands.
7917
7918 2013-05-06  Doug Evans  <dje@google.com>
7919
7920         * symfile.c: Whitespace cleanup.
7921
7922         * solist.h (struct target_so_ops): New member clear_so.
7923         * solib-svr4.c (svr4_clear_so): New function.
7924         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7925         * solib.c (clear_so): Renamed from free_so_symbols.
7926         All callers updated.  Call target clear_so if it exists.
7927
7928 2013-05-06  Tom Tromey  <tromey@redhat.com>
7929
7930         * ada-lang.c (ada_value_primitive_packed_val): Don't
7931         call value_incref.
7932         * value.c (set_value_parent): Incref the new parent and decref
7933         the old parent.
7934         (value_copy, value_primitive_field): Use set_value_parent.
7935
7936 2013-05-06  Tom Tromey  <tromey@redhat.com>
7937
7938         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7939         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7940         if needed.
7941         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7942         * dwarf2read.c (write_constant_as_bytes)
7943         (dwarf2_fetch_constant_bytes): New functions.
7944
7945 2013-05-06  Tom Tromey  <tromey@redhat.com>
7946
7947         * dwarf2read.c (dwarf2_const_value_data): Remove unused
7948         parameters.
7949         (dwarf2_const_value_attr): Update.
7950
7951 2013-05-06  Tom Tromey  <tromey@redhat.com>
7952
7953         * somread.c (som_symfile_offsets): Add 'const' to addrs.
7954         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7955         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7956         Remove declaration.
7957
7958 2013-05-06  Tom Tromey  <tromey@redhat.com>
7959
7960         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7961         objfile's obstack.
7962
7963 2013-05-06  Doug Evans  <dje@google.com>
7964
7965         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7966         * stabsread.h (process_one_symbol): Update declaration.
7967         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7968         * elfread.c (elf_symfile_relocate_probe): Ditto.
7969         * psymtab.c (relocate_psymtabs): Ditto.
7970         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7971         (objfile_relocate): Ditto.
7972         * objfiles.h (objfile_relocate): Update declaration.
7973         * symfile.c (relative_addr_info_to_section_offsets): Constify
7974         addrs parameter.
7975         (default_symfile_offsets): Ditto.
7976         (syms_from_objfile_1): Constify offsets parameter.
7977         (syms_from_objfile): Ditto.
7978         (symbol_file_add_with_addrs_or_offsets): Ditto.
7979         (symfile_map_offsets_to_segments): Constify data parameter.
7980         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7981         delta parameters of member relocate.
7982         (struct sym_probe_fns): Constify new_offsets,
7983         delta parameters of member sym_relocate_probe.
7984         (struct sym_fns): Constify section_addr_info parameter of member
7985         sym_offsets.
7986         (relative_addr_info_to_section_offsets): Update declaration.
7987         (default_symfile_offsets): Ditto.
7988         (syms_from_objfile): Ditto.
7989         (symfile_map_offsets_to_segments): Ditto.
7990
7991         * symfile.c (syms_from_objfile_1): Use correct section count when
7992         objfile->sf == NULL.
7993
7994 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
7995
7996         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7997
7998 2013-05-06  Doug Evans  <dje@google.com>
7999
8000         * psympriv.h (struct partial_symtab): Augment comment for member
8001         section_offsets.
8002
8003 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8004
8005         Reimplement shared library support on ppc-aix...
8006         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
8007         * features/library-list-aix.dtd: New file.
8008         * solib-aix.h, solib-aix.c: New file.
8009         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
8010         (rs6000_find_toc_address_hook): Delete.
8011         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
8012         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
8013         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
8014         "xml-utils.h".
8015         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
8016         (vmap_symtab, fixup_breakpoints): Delete.
8017         (rs6000_xfer_shared_libraries): New function.
8018         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
8019         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
8020         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
8021         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
8022         (rs6000_xfer_shared_library): New function.
8023         (find_toc_address): Delete.
8024         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
8025         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
8026         * xcoffread.c (record_minimal_symbol): Reloate symbol address
8027         before creating minimal symbol.  Adjust function description
8028         accordingly.
8029         (scan_xcoff_symtab): Replace call to
8030         prim_record_minimal_symbol_and_info by call to
8031         record_minimal_symbol.
8032         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
8033         around default_symfile_offsets.
8034         * configure.tgt: Add solib-aix.o to gdb_target_obs for
8035         powerpc-aix targets.
8036         * config/rs6000/nm-rs6000.h: Delete.
8037         * config/powerpc/aix.mh (NAT_FILE): Delete.
8038         (NATDEPFILES): Remove xcoffsolib.o.
8039         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
8040         (ALL_TARGET_OBS): Add solib-aix.o.
8041         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
8042         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
8043         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
8044         * xcoffsolib.h, xcoffsolib.c: Delete.
8045
8046         * solib.c (reload_shared_libraries): Remove reference to
8047         SOLIB_CREATE_INFERIOR_HOOK.
8048         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
8049         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
8050         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
8051         comment.
8052         * corelow.c (deprecated_core_resize_section_table): Delete.
8053         * exec.c: Remove include of xcoffsolib.h".
8054         (map_vmap, vmap): Delete.
8055         (exec_close_1): Remove references to vmap.
8056         (exec_file_attach): Remove vmap handling code, and reference
8057         to DEPRECATED_IBM6000_TARGET.
8058         (bfdsec_to_vmap): Delete.
8059         (exec_files_info): Remove block of code handling VMAP.
8060         * infcmd.c (post_create_inferior): Remove reference to
8061         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
8062         * infrun.c (follow_exec): Remove reference to
8063         SOLIB_CREATE_INFERIOR_HOOK.
8064         * stack.c (print_frame): Remove reference to PC_SOLIB.
8065         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
8066         (dsbt_relocate_main_executable): Likewise.
8067         * solib-frv.c (frv_current_sos): Likewise.
8068
8069 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8070
8071         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
8072         to target_write_memory and target_read_memory.
8073
8074 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8075
8076         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
8077         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
8078
8079 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8080
8081         * darwin-nat.c: Replace all "%x" instances in format strings
8082         into "0x%x" throughout.
8083
8084 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8085
8086         * darwin-nat.c (darwin_mourn_inferior): Replace call to
8087         gdb_assert by call to MACH_CHECK_ERROR.
8088         (darwin_attach_pid): Raise an error rather than a failed
8089         assertion when various system calls failed.  Report a warning
8090         instead of raising a failed assertion when PREV_NOT is not NULL
8091         after call to mach_port_request_notification.
8092         (darwin_ptrace_me): Raise an error rather than a failed
8093         assertion when read returns nonzero.
8094
8095 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
8096
8097         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
8098
8099 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8100
8101         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
8102
8103 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8104
8105         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
8106         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
8107         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
8108         a stale cleanup.  Fix double free of NAME.
8109
8110 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
8111
8112         * windows-nat.c (windows_delete_thread): Accept an additional
8113         argument, the thread's exit code, and announce thread death when
8114         print_thread_events is non-zero and we are deleting a thread that
8115         is not the main thread.
8116         (get_windows_debug_event): Pass thread exit code to
8117         windows_delete_thread.
8118
8119 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
8120
8121         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8122         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8123         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8124         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8125         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8126         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8127         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8128         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8129         (gdbarch_tdep): New struct.
8130         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8131         E_NUM_REGS.
8132         (v850e3v5_register_name): New function.
8133         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8134         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
8135         code handling the struct return conventions for the RH850 ABI.
8136         Update all callers.
8137         (v850_eight_byte_align_p): New function.
8138         (v850_push_call_dummy): Push structs by value, not by reference
8139         for the RH850 ABI.  Add support for eight byte alignment.
8140         (v850_dbtrap_breakpoint_from_pc): New function.
8141         (v850_gdbarch_init): Add ABI detection code.  Register
8142         v850e3v5_register_name for the v850e3v5 architecture.  Set the
8143         number of registers for v850e3v5.  Register
8144         v850_dbtrap_breakpoint_from_pc as appropriate.
8145         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8146
8147 2013-05-03  Doug Evans  <dje@google.com>
8148
8149         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8150         of bfd_count_sections.
8151         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8152         * symfile.c (default_symfile_offsets): Ditto.
8153         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
8154         one entry, not bfd_count_sections entries.
8155
8156 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
8157
8158         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8159         `save' and `restore' register groups.  Don't include SPL
8160         or SPH in these groups.
8161         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
8162         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
8163         RL78_ES_REGNUM, and RL78_CS_REGNUM.
8164         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
8165         dwarf2_append_unwinders().
8166
8167 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8168
8169         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8170         ignore SIGINT and SIGTRAP in case these internal signals are
8171         caught explicitely.
8172
8173 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
8174
8175         * darwin-nat.c (darwin_read_write_inferior): Change types
8176         of parameters rdaddr and wraddr to "gdb_byte *". Change type
8177         of copy_count to "mach_msg_type_number_t".
8178         (darwin_read_dyld_info): Change type of parameter
8179         rdaddr to "gdb_byte *".
8180
8181 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
8182
8183         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8184         of &info->load_map from "char *" to "gdb_byte *".
8185
8186 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
8187
8188         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8189         from "char *" to "gdb_byte *".
8190         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8191
8192 2013-04-30  Doug Evans  <dje@google.com>
8193
8194         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8195         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8196         DWO stub.  If DWO isn't found, just use stub.
8197         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8198
8199         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8200         calling init_cutu_and_read_dies.
8201
8202 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8203
8204         * target-descriptions.c (maint_print_c_tdesc_cmd):
8205         Add case to parse structures as register types and
8206         bitfields.
8207
8208 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
8209
8210         * MAINTAINERS (Write After Approval): Add myself to the list.
8211
8212 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
8213
8214         * sol-thread.c (rw_common): Change type of parameter "buf"
8215         to "gdb_byte *".
8216         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8217         rw_common to "gdb_byte *" instead of "char *".
8218
8219 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
8220
8221         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8222         of local variable msym to const struct bound_minimal_symbol.
8223         Adjust use accordingly.
8224         [ti.ti_state == TD_THR_SLEEP]: Likewise.
8225
8226 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
8227
8228         * i386gnu-nat.c (CREG_OFFSET): New macro.
8229         (creg_offset): New array.
8230         (CREG_ADDR): Use creg_offset instead of reg_offset.
8231
8232 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
8233
8234         * mep-tdep.c (mep_write_pc): Delete.
8235         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8236         Add call to set_gdbarch_pc_regnum.
8237
8238 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
8239
8240         * common/filestuff.c: Replace #include <dirent.h> by
8241         #include "gdb_dirent.h".
8242
8243 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
8244
8245         * common/filestuff.c: Replace #include <sys/stat.h> by
8246         #include "gdb_stat.h".
8247
8248 2013-04-29  Pierre Muller  <muller@sourceware.org>
8249
8250         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8251         editCase function rule.
8252         (get_DW_AT_signature_type): Likewise.
8253
8254 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
8255
8256         * m32r-tdep.c (m32r_write_pc): Delete.
8257         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8258         Add call to set_gdbarch_pc_regnum.
8259
8260 2013-04-29  Pierre Muller  <muller@sourceware.org>
8261
8262         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8263
8264 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
8265
8266         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8267
8268 2013-04-28  Yao Qi  <yao@codesourcery.com>
8269
8270         * solib-dsbt.c (fetch_loadmap): Re-indent.
8271         (displacement_from_map, enable_break2): Likewise.
8272         (dsbt_relocate_section_addresses): Likewise.
8273
8274 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
8275
8276         GDB 7.6 released.
8277
8278 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
8279
8280         PR corefiles/14983:
8281         * dwarf2read.c (process_full_comp_unit): Always create a static
8282         block.
8283
8284 2013-04-25  Hui Zhu  <hui@codesourcery.com>
8285
8286         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8287         to loc->cmd_bytecode.
8288
8289 2013-04-24  Doug Evans  <dje@google.com>
8290
8291         * dwarf2read.c (setup_type_unit_groups): Fix comment.
8292
8293 2013-04-22  Keith Seitz  <keiths@redhat.com>
8294
8295         * tracepoint.c (trace_save):  Call the writer's start method.
8296
8297 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
8298
8299         PR gdb/10462
8300         * cli/cli-decode.c (lookup_command): Show an error if there is no space
8301         before argument.
8302
8303 2013-04-23  Tom Tromey  <tromey@redhat.com>
8304
8305         * common/filestuff.c: Check USE_WIN32API before including
8306         sys/socket.h.
8307         (HAVE_F_GETFD): New define.
8308         (mark_cloexec): Check HAVE_F_GETFD.
8309         (gdb_open_cloexec): Change 'mode' to unsigned long.
8310         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8311         (gdb_pipe_cloexec): Check HAVE_PIPE.
8312         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8313         long.
8314
8315 2013-04-23  Hui Zhu  <hui@codesourcery.com>
8316
8317         PR gdb/15293
8318         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8319
8320 2013-04-23  Hui Zhu  <hui@codesourcery.com>
8321
8322         PR gdb/15165
8323         * breakpoint.c (dprintf_print_recreate): New.
8324         (save_breakpoints): Let it not save dprintf commands.
8325         (initialize_breakpoint_ops): Set dprintf_print_recreate.
8326
8327 2013-04-22  Tom Tromey  <tromey@redhat.com>
8328
8329         PR gdb/7912:
8330         * Makefile.in (SFILES): Add filestuff.c
8331         (COMMON_OBS): Add filestuff.o.
8332         (filestuff.o): New target.
8333         * auto-load.c (auto_load_objfile_script_1): Use
8334         gdb_fopen_cloexec.
8335         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8336         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8337         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8338         * common/agent.c (gdb_connect_sync_socket): Use
8339         gdb_socket_cloexec.
8340         * common/filestuff.c: New file.
8341         * common/filestuff.h: New file.
8342         * common/linux-osdata.c (linux_common_core_of_thread)
8343         (command_from_pid, commandline_from_pid, print_source_lines)
8344         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8345         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8346         gdb_fopen_cloexec.
8347         * common/linux-procfs.c (linux_proc_get_int)
8348         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8349         * config.in, configure: Rebuild.
8350         * configure.ac: Don't check for sys/socket.h.  Check for
8351         fdwalk, pipe2.
8352         * corelow.c (core_open): Use gdb_open_cloexec.
8353         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8354         * fork-child.c (fork_inferior): Call close_most_fds.
8355         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8356         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8357         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8358         Use gdb_fopen_cloexec.
8359         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8360         gdb_open_cloexec.
8361         (linux_async_pipe): Use gdb_pipe_cloexec.
8362         * remote-fileio.c (remote_fileio_func_open): Use
8363         gdb_open_cloexec.
8364         * remote.c (remote_file_put, remote_file_get): Use
8365         gdb_fopen_cloexec.
8366         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8367         close_most_fds.
8368         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8369         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8370         * solib.c (solib_find): Use gdb_open_cloexec.
8371         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8372         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8373         (tfile_open): Use gdb_open_cloexec.
8374         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8375         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8376         * xml-support.c (xml_fetch_content_from_file): Use
8377         gdb_fopen_cloexec.
8378         * main.c (captured_main): Call notice_open_fds.
8379
8380 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
8381
8382         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8383         'char *' to 'gdb_byte *'.
8384         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8385         'gdb_byte'.
8386
8387 2013-04-22  Yao Qi  <yao@codesourcery.com>
8388
8389         * infrun.c: Fix typo in comment.
8390
8391 2013-04-22  Andrew Haley  <aph@redhat.com>
8392
8393         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8394         instead of "long".
8395
8396 2013-04-20  Yao Qi  <yao@codesourcery.com>
8397
8398         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8399         'char *' to 'gdb_byte *'.  Cast the return value of
8400         'bt_ctf_get_char_array' to 'gdb_byte *'.
8401
8402 2013-04-19  Pedro Alves  <palves@redhat.com>
8403
8404         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8405         -Wpointer-sign.
8406         * configure: Regenerate.
8407
8408 2013-04-19  Pedro Alves  <palves@redhat.com>
8409
8410         * ser-tcp.c (net_read_prim): Cast second argument to recv to
8411         'void *'.
8412
8413 2013-04-19  Pedro Alves  <palves@redhat.com>
8414
8415         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8416         Change type of 'myaddr' parameter to gdb_byte pointer.
8417         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
8418         to 'long long' pointer instead of to 'unsigned long long'.
8419         (monitor_write_memory_block, monitor_read_memory_single)
8420         (monitor_read_memory): Change type of 'myaddr' parameter to
8421         gdb_byte pointer.
8422
8423 2013-04-19  Pedro Alves  <palves@redhat.com>
8424
8425         * record.c (validate_history_size): Make parameter 'setting'
8426         unsigned.
8427
8428 2013-04-19  Pedro Alves  <palves@redhat.com>
8429
8430         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8431         to 'gdb_byte *'.
8432
8433 2013-04-19  Pedro Alves  <palves@redhat.com>
8434
8435         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8436         local to int.
8437
8438 2013-04-19  Pedro Alves  <palves@redhat.com>
8439
8440         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8441         * ada-tasks.c (read_fat_string_value): Likewise.
8442
8443 2013-04-19  Pedro Alves  <palves@redhat.com>
8444
8445         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8446         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
8447         'offset', and adjust.
8448
8449 2013-04-19  Pedro Alves  <palves@redhat.com>
8450
8451         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8452         (read_index_from_section): Add cast to 'char *'.
8453
8454 2013-04-19  Pedro Alves  <palves@redhat.com>
8455
8456         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8457
8458 2013-04-19  Pedro Alves  <palves@redhat.com>
8459
8460         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8461
8462 2013-04-19  Pedro Alves  <palves@redhat.com>
8463
8464         * record-full.c (record_full_get_bookmark): Change local 'ret'
8465         type to char * and add cast to gdb_byte *.
8466         (record_full_goto_bookmark): Handle 'bookmark' argument as a
8467         string.
8468         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8469
8470 2013-04-19  Pedro Alves  <palves@redhat.com>
8471
8472         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8473         * python/py-prettyprint.c (print_string_repr): Change type of
8474         'output' local to char *.  Add cast to gdb_byte * in
8475         LA_PRINT_STRING call.
8476         (print_children): Change type of 'output' local to char *.
8477         * python/py-value.c (valpy_string): Add cast to const char * in
8478         PyUnicode_Decode call.
8479
8480 2013-04-19  Pedro Alves  <palves@redhat.com>
8481
8482         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8483         and change its type to 'const char *'.  Adjust.
8484         (mips_send_packet): Add cast to 'char *', and remove cast to
8485         'unsigned char *'.
8486         (mips_receive_packet): Remove cast to 'unsigned char *'.
8487         (mips_load_srec): Use bfd_byte.
8488         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8489         (pmon_checkset): Make 'value' parameter unsigned.
8490
8491 2013-04-19  Pedro Alves  <palves@redhat.com>
8492
8493         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8494
8495 2013-04-19  Pedro Alves  <palves@redhat.com>
8496
8497         * remote.c (remote_write_bytes_aux, compare_sections_command)
8498         (remote_read_qxfer)
8499         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8500         (remote_hostio_readlink, remote_bfd_iovec_pread)
8501         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8502         binary buffer, and char when buffer is used as string.
8503         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8504         (trace_save, tfile_open, traceframe_walk_blocks)
8505         (tfile_fetch_registers): Likewise.
8506
8507 2013-04-19  Pedro Alves  <palves@redhat.com>
8508
8509         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8510         buffer and size_t size.  Adjust.
8511         * ser-base.h (ser_base_write): Adjust.
8512         * ser-go32.c (cnts): Change type to size_t.
8513         (dos_write): Change prototype -- take 'void *'
8514         buffer and size_t size.  Adjust.
8515         (dos_info): Print elements of 'cnts' as unsigned long.
8516         * serial.c (serial_write): Likewise.
8517         * serial.h (serial_write): Adjust.
8518         (struct serial_ops) <write>: Change prototype -- take 'void *'
8519         buffer and size_t size.  Adjust.
8520
8521 2013-04-19  Pedro Alves  <palves@redhat.com>
8522
8523         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8524         gdb_byte *.
8525         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8526
8527 2013-04-19  Pedro Alves  <palves@redhat.com>
8528
8529         * alpha-tdep.c (alpha_extract_return_value): Use
8530         regcache_cooked_read_unsigned to read 'v0'.
8531
8532 2013-04-19  Pedro Alves  <palves@redhat.com>
8533
8534         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8535         parameters 'at', 'as' and 'offset' to uint32_t.
8536
8537 2013-04-19  Pedro Alves  <palves@redhat.com>
8538
8539         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8540         'is64' to signed 'int'.
8541
8542 2013-04-19  Pedro Alves  <palves@redhat.com>
8543
8544         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8545         parameter to int *.
8546
8547 2013-04-19  Pedro Alves  <palves@redhat.com>
8548
8549         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8550         'insnbuf' buffer type to unsigned int[].
8551
8552 2013-04-19  Pedro Alves  <palves@redhat.com>
8553
8554         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8555
8556 2013-04-19  Pedro Alves  <palves@redhat.com>
8557
8558         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8559         unsigned long *.
8560
8561 2013-04-19  Pedro Alves  <palves@redhat.com>
8562
8563         * alpha-tdep.c (heuristic_fence_post): Change type to int.
8564         (alpha_heuristic_proc_start): Adjust to check -1 instead of
8565         UINT_MAX.
8566         * mips-tdep.c (heuristic_fence_post): Change type to int.
8567         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8568
8569 2013-04-19  Pedro Alves  <palves@redhat.com>
8570
8571         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8572         (struct gdbarch_tdep) <cris_version>: Make unsigned.
8573         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8574
8575 2013-04-19  Pedro Alves  <palves@redhat.com>
8576
8577         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
8578         it to get a string view of the byte buffer.
8579         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8580         type to gdb_byte *.  Adjust.
8581         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8582         Change local to char *.
8583         * solib-darwin.c (find_program_interpreter): Change return type to
8584         char *.  Adjust.
8585         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8586         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8587         * solib-frv.c (enable_break2): Change local 'buf' to char *.
8588         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8589         * solib-svr4.c (find_program_interpreter): Change return type to
8590         char *.  Adjust.
8591         (enable_break): Change local 'interp_name' to char *.
8592         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8593         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8594         (spu_pseudo_register_write_spu): Use char for string buffer.
8595         Adjust.
8596         (info_spu_event_command, info_spu_signal_command): Add casts to
8597         'char *'.
8598
8599 2013-04-19  Pedro Alves  <palves@redhat.com>
8600
8601         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8602         gdb_byte[].
8603         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8604         * ada-lang.c (ada_value_assign): Use gdb_byte.
8605         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8606         (alphanbsd_sigtramp_offset): Use gdb_byte.
8607         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8608         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8609         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8610         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8611         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8612         * arm-tdep.c (arm_stub_unwind_sniffer)
8613         (arm_displaced_init_closure): Use gdb_byte.
8614         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8615         (arm_default_thumb_le_breakpoint)
8616         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8617         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8618         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8619         * arm-wince-tdep.c (arm_wince_le_breakpoint)
8620         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8621         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8622         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8623         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8624         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8625         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8626         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8627         (cris_store_return_value, cris_extract_return_value): Use
8628         gdb_byte.
8629         (constraint): Change type of parameter to char * from signed
8630         char*.  Use gdb_byte.
8631         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8632         of local buffer to gdb_byte *.
8633         * dwarf2read.c (read_index_from_section): Use gdb_byte.
8634         (create_dwp_hash_table): Change type of locals to gdb_byte *.
8635         (add_address_entry): Change type of local buffer to gdb_byte[].
8636         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8637         (frv_push_dummy_call): Use gdb_byte.
8638         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8639         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8640         (hppa_hpux_supply_save_state): Use gdb_byte.
8641         * hppa-tdep.c (hppa32_push_dummy_call)
8642         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8643         * ia64-tdep.c (extract_bit_field, replace_bit_field)
8644         (slotN_contents, replace_slotN_contents): Change type of parameter
8645         to gdb_byte *.
8646         (fetch_instruction, ia64_pseudo_register_write)
8647         (ia64_register_to_value, ia64_value_to_register)
8648         (ia64_extract_return_value, ia64_store_return_value)
8649         (ia64_push_dummy_call): Use gdb_byte.
8650         * m32c-tdep.c (m32c_return_value): Remove cast.
8651         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8652         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8653         gdb_byte.
8654         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8655         * mn10300-tdep.c (mn10300_store_return_value)
8656         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8657         gdb_byte.
8658         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8659         (moxie_process_record): Remove casts.
8660         * ppc-ravenscar-thread.c (supply_register_at_address)
8661         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8662         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8663         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8664         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8665         * remote.c (compare_sections_command): Use gdb_byte.
8666         * score-tdep.c (score7_free_memblock): Change type of parameter to
8667         gdb_byte *.
8668         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8669         gdb_byte *.  Use gdb_byte.
8670         (sh_push_dummy_call_fpu): Use gdb_byte.
8671         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8672         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8673         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8674         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
8675         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8676         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8677         (sh64_store_return_value, sh64_register_convert_to_virtual):
8678         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
8679         (sh64_pseudo_register_write): Use gdb_byte.
8680         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8681         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
8682         buffer.
8683         (irix_current_sos): Use gdb_byte.
8684         * solib-som.c (som_current_sos): Use gdb_byte.
8685         * sparc-ravenscar-thread.c (supply_register_at_address)
8686         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8687         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8688         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8689         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8690         'gdb_byte *'.
8691         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8692         'gdb_byte *'.
8693         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8694         * xstormy16-tdep.c (xstormy16_extract_return_value)
8695         (xstormy16_store_return_value): Change parameter type to
8696         'gdb_byte *'.  Adjust.
8697         (xstormy16_push_dummy_call): Use gdb_byte.
8698         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8699         (call0_analyze_prologue, execute_code): Use gdb_byte.
8700
8701 2013-04-19  Vladimir Kargov <kargov@gmail.com>
8702             Pedro Alves  <palves@redhat.com>
8703
8704         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8705         value contents.
8706
8707 2013-04-17  Doug Evans  <dje@google.com>
8708
8709         * dwarf2read.c (struct signatured_type): New member type.
8710         (struct attribute): Replace member signatured_type with signature.
8711         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8712         (read_call_site_scope): Call follow_die_ref instead of
8713         follow_die_ref_or_sig.
8714         (read_structure_type): Rewrite handling of signatured types.
8715         (read_enumeration_type): Ditto.
8716         (read_attribute_value): Update.
8717         (build_error_marker_type): New function.
8718         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
8719         Don't call error for bad types, just build an error marker type.
8720         (dump_die_shallow): Update.
8721         (follow_die_sig_1): Renamed from follow_die_sig.
8722         Don't call error for bad types, instead return NULL.
8723         (follow_die_sig): New function.
8724         (get_signatured_type, get_DW_AT_signature_type): New functions.
8725
8726 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
8727
8728         * aarch64-tdep.c (aarch64_write_pc): Removed.
8729         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8730         function.
8731
8732 2013-04-17  Yao Qi  <yao@codesourcery.com>
8733
8734         * top.c (print_gdb_configuration): Print configure-time
8735         parameter on using libbabeltrace or not.
8736
8737 2013-04-16  Pedro Alves  <palves@redhat.com>
8738
8739         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8740
8741 2013-04-16  Pedro Alves  <palves@redhat.com>
8742
8743         * common/glibc_thread_db.h: Update from upstream glibc
8744         (git 568035b7874a099087b77f7bba3e36a1173787b0).
8745
8746 2013-04-16  Pedro Alves  <palves@redhat.com>
8747
8748         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8749         * common/glibc_thread_db.h: ... this new file ...
8750         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8751
8752 2013-04-16  Will Newton  <will.newton@gmail.com>
8753             Pedro Alves  <palves@redhat.com>
8754
8755         PR build/11881
8756
8757         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8758         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8759         HAVE_THREAD_DB_H.
8760
8761 2013-04-16  Pedro Alves  <palves@redhat.com>
8762             Eli Zaretskii  <eliz@gnu.org>
8763
8764         * NEWS: Mention "set foo unlimited".
8765
8766 2013-04-15  Doug Evans  <dje@google.com>
8767
8768         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8769         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8770         (create_dwo_cu_reader): Renamed from
8771         create_dwo_debug_info_hash_table_reader.
8772         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8773         Remove support for multiple CUs in a DWO file.
8774         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8775
8776         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8777         instead of phex.
8778         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8779         (create_dwo_in_dwp): Ditto.
8780
8781 2013-04-15  Tom Tromey  <tromey@redhat.com>
8782
8783         * NEWS: Move recent entries into "since 7.6" section.
8784
8785 2013-04-15  Tom Tromey  <tromey@redhat.com>
8786
8787         PR c++/13588:
8788         * NEWS: Update.
8789         * break-catch-throw.c (struct exception_catchpoint)
8790         <exception_rx, pattern>: New fields.
8791         (fetch_probe_arguments, dtor_exception_catchpoint)
8792         (check_status_exception_catchpoint)
8793         (print_one_detail_exception_catchpoint): New functions.
8794         (handle_gnu_v3_exceptions): Add "except_rx" argument.
8795         Compile regular expression if needed.
8796         (extract_exception_regexp): New function.
8797         (catch_exception_command_1): Use extract_exception_regexp.
8798         (compute_exception): Use fetch_probe_arguments.
8799         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8800         and check_status fields.
8801         * cp-abi.c (cplus_typename_from_type_info): New function.
8802         * cp-abi.h (cplus_typename_from_type_info): Declare.
8803         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8804         * gdb_regex.h (compile_rx_or_error): Declare.
8805         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8806         comment.
8807         (init_gnuv3_ops): Set get_type_from_type_info field.
8808         * probe.c (compile_rx_or_error): Move...
8809         * utils.c (compile_rx_or_error): ... here.
8810
8811 2013-04-15  Tom Tromey  <tromey@redhat.com>
8812
8813         PR c++/15176:
8814         * NEWS: Update.
8815         * break-catch-throw.c (compute_exception): New function.
8816         (exception_funcs): New global.
8817         (_initialize_break_catch_throw): Create $_exception.
8818         * cp-abi.c (cplus_type_from_type_info): New function.
8819         * cp-abi.h (cplus_type_from_type_info): Declare.
8820         (struct cp_abi_ops) <get_type_from_type_info>: New field.
8821         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8822         (gnuv3_get_type_from_type_info): New functions.
8823         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8824
8825 2013-04-15  Tom Tromey  <tromey@redhat.com>
8826
8827         * break-catch-throw.c (struct exception_names): New.
8828         (exception_functions): Change type.
8829         (re_set_exception_catchpoint): Look for SDT probes.
8830
8831 2013-04-15  Tom Tromey  <tromey@redhat.com>
8832
8833         PR c++/10119:
8834         * break-catch-throw.c (exception_functions): New global.
8835         (gnu_v3_exception_catchpoint_ops): Move earlier.
8836         (struct exception_catchpoint): New.
8837         (classify_exception_breakpoint): Rewrite.
8838         (re_set_exception_catchpoint): New function.
8839         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
8840         Allocate a struct exception_catchpoint.
8841         (catch_exception_command_1): Update.
8842         (initialize_throw_catchpoint_ops): Set 're_set' method.
8843
8844 2013-04-15  Tom Tromey  <tromey@redhat.com>
8845
8846         * Makefile.in (SFILES): Add break-catch-throw.c
8847         (COMMON_OBS): Add break-catch-throw.o.
8848         * break-catch-throw.c: New file.
8849         * breakpoint.c: Move exception-catching code to new file.
8850         (ep_parse_optional_if_clause): No longer static.
8851         * breakpoint.h (ep_parse_optional_if_clause): Declare.
8852
8853 2013-04-15  Tom Tromey  <tromey@redhat.com>
8854
8855         PR c++/9065:
8856         * NEWS: Update.
8857         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8858         * c-exp.y (TYPEID): New token.
8859         (exp): Add new TYPEID productions.
8860         (ident_tokens): Add "typeid".
8861         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8862         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8863         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8864         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8865         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8866         case.
8867         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8868         (build_std_type_info_type, gnuv3_get_typeid_type)
8869         (gnuv3_get_typeid): New functions.
8870         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
8871         new fields on ABI object.
8872         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8873         * std-operator.def (OP_TYPEID): New.
8874
8875 2013-04-15  Tom Tromey  <tromey@redhat.com>
8876
8877         * elfread.c (elf_symtab_read): Install versioned symbol under
8878         unversioned name as well.
8879
8880 2013-04-15  Tom Tromey  <tromey@redhat.com>
8881
8882         PR c++/11990:
8883         * c-lang.c (cplus_language_defn): Use gdb_demangle.
8884         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8885         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8886         (gdb_demangle): New function.
8887         * cp-support.h (gdb_demangle): Declare.
8888         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8889         (dwarf2_name): Use gdb_demangle.
8890         * gdbtypes.c (check_stub_method): Use gdb_demangle.
8891         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8892         suffixes from name.
8893         (gnuv3_print_method_ptr): Use gdb_demangle.
8894         * jv-lang.c (java_demangle): Use gdb_demangle.
8895         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8896         * language.c (unk_lang_demangle): Use gdb_demangle.
8897         * symtab.c (symbol_find_demangled_name)
8898         (demangle_for_lookup): Use gdb_demangle.
8899
8900 2013-04-15  Tom Tromey  <tromey@redhat.com>
8901
8902         PR c++/12824:
8903         * NEWS: Update.
8904         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8905         New constant.
8906         (classify_exception_breakpoint): New function.
8907         (print_it_exception_catchpoint, print_one_exception_catchpoint)
8908         (print_mention_exception_catchpoint)
8909         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8910         (catch_exception_command_1): Handle "rethrow" catchpoint.
8911         (catch_rethrow_command): New function.
8912         (_initialize_breakpoint): Add "catch rethrow" command.
8913
8914 2013-04-15  Pierre Muller  <muller@sourceware.org>
8915
8916         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8917         set_gdbarch_write_pc as deprecated anymore.
8918
8919 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
8920
8921         * spu-tdep.c (spu_write_pc): Add empty line after local variable
8922         declarations.
8923
8924 2013-04-13  Yao Qi  <yao@codesourcery.com>
8925
8926         * ctf.c (_initialize_ctf): Include "completer.h".
8927         Call add_target_with_completer instead of add_target.
8928
8929 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8930
8931         Fix GDB regression related to PR binutils/14813.
8932         * jit.c (mem_bfd_iovec_close): Return 0 for success.
8933         * minidebug.c (lzma_close): Add return value comment.
8934         * remote.c (remote_bfd_iovec_close): Return 0 for success.
8935         * solib-spu.c (spu_bfd_iovec_close): Likewise.
8936         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8937
8938 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8939
8940         * config.in: Regenerate.
8941
8942 2013-04-12  Tom Tromey  <tromey@redhat.com>
8943
8944         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8945         const.
8946         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8947         (struct die_reader_specs) <buffer>: Likewise.
8948         (die_reader_func_ftype): Make 'info_ptr' const.
8949         (struct line_header) <include_dirs, statement_program_start,
8950         statement_program_end>: Now const.
8951         (struct file_entry) <name>: Likewise.
8952         (struct partial_die_info) <sibling>: Likewise.
8953         (struct dwarf_block) <data>: Likewise.
8954         (dwarf2_read_section): Remove cast.
8955         (dwarf2_get_section_info): Make 'bufp' const.
8956         (read_index_from_section): Constify.
8957         (dw2_get_file_names_reader): Make 'info_ptr' const.
8958         (dw2_get_primary_filename_reader): Likewise.
8959         (read_comp_unit_head): Make 'info_ptr' and return type const.
8960         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8961         Likewise.
8962         (read_abbrev_offset): Constify.
8963         (dwarf2_create_include_psymtab): Make 'name' const.
8964         (create_debug_types_hash_table): Update.
8965         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8966         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8967         Constify.
8968         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8969         (load_partial_comp_unit_reader): Make 'info_ptr' const.
8970         (read_comp_units_from_section): Constify.
8971         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8972         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8973         const.
8974         (dwarf2_compute_name, setup_type_unit_groups): Constify.
8975         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8976         (create_dwp_hash_table, dwarf2_ranges_read)
8977         (dwarf2_record_block_ranges): Constify.
8978         (read_die_and_children, read_die_and_siblings_1)
8979         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8980         const.
8981         (read_full_die_1, read_full_die): Make 'info_ptr' const.
8982         (abbrev_table_read_table): Constify.
8983         (load_partial_dies): Make 'info_ptr' const.
8984         (read_partial_die, read_attribute_value, read_attribute): Make
8985         'info_ptr' and return type const.
8986         (read_address, read_initial_length)
8987         (read_checked_initial_length_and_offset, read_offset)
8988         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8989         const.
8990         (read_direct_string): Make 'buf' and return type const.
8991         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8992         (read_indirect_string): Make return type const.
8993         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8994         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8995         'info_ptr' const.
8996         (read_str_index): Make return type const.
8997         (add_include_dir): Make 'include_dir' const.
8998         (add_file_name): Make 'name' const.
8999         (dwarf_decode_line_header): Constify.
9000         (psymtab_include_file_name): Make return type const.
9001         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
9002         (dwarf2_start_subfile): Make 'filename' const.
9003         (dwarf2_const_value_attr): Make 'bytes' const.
9004         (read_signatured_type_reader): Make 'info_ptr' const.
9005         (decode_locdesc): Constify.
9006         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
9007         const.
9008         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
9009         'mac_end', and return type const.
9010         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
9011         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
9012         type const.
9013         (per_cu_header_read_in): Constify.
9014         * symfile.h (dwarf2_get_section_info): Update.
9015
9016 2013-04-12  Tom Tromey  <tromey@redhat.com>
9017
9018         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
9019
9020 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
9021
9022         * NEWS: Mention "show configuration", --configuration.
9023         * top.c (print_gdb_configuration): New function, displays the
9024         details about GDB configure-time parameters.
9025         (print_gdb_version): Mention "show configuration".
9026         * cli/cli-cmds.c (show_configuration): New function.
9027         (_initialize_cli_cmds): Add the "show configuration" command.
9028         * main.c (captured_main) <print_configuration>: New static var.
9029         <long_options>: Use it.
9030         If --configuration was given, call print_gdb_configuration.
9031
9032 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9033             Pedro Alves  <palves@redhat.com>
9034
9035         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
9036         (generated_files): Add gcore.
9037         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
9038         HAVE_NATIVE_GCORE_HOST.
9039         (gcore): New.
9040         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
9041         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
9042         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
9043         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
9044         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
9045         Add HAVE_NATIVE_GCORE_HOST.
9046         * configure: Regenerate.
9047         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
9048         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
9049         AC_CONFIG_FILES for gcore.
9050         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
9051         gdb_have_gcore.
9052         * gdb_gcore.sh: Rename to ...
9053         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
9054         and GCORE_TRANSFORM_NAME substitutions.
9055
9056         Fix parsing tabs in ${gdb_target_obs}.
9057         * configure.tgt (gdb_have_gcore): Replace case with for and if.
9058
9059 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9060
9061         * remote.c (unpush_and_perror): Add output message final dot.
9062
9063 2013-04-11  Yao Qi  <yao@codesourcery.com>
9064
9065         * tracepoint.c (tfile_interp_line): Fit parameters line and
9066         utpp in one line.
9067
9068 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
9069
9070         * solib.c (solib_map_sections): Remove code overwriting
9071         SO->SO_NAME with the bfd's filename.
9072
9073 2013-04-10  Pedro Alves  <palves@redhat.com>
9074
9075         * cli/cli-decode.c (integer_unlimited_completer): New function.
9076         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
9077         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
9078         completer.
9079         * cli/cli-setshow.c: Include "cli/cli-utils.h".
9080         (is_unlimited_literal): New function.
9081         (do_set_command): Handle literal "unlimited" arguments.
9082         * frame.c (_initialize_frame) <set backtrace limit>: Document
9083         "unlimited".
9084         * printcmd.c (_initialize_printcmd) <set print
9085         max-symbolic-offset>: Add help text.
9086         * record-full.c (_initialize_record_full) <set record full
9087         insn-number-max>: Likewise.
9088         * record.c (_initialize_record) <set record
9089         instruction-history-size, set record function-call-history-size>:
9090         Add help text.
9091         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
9092         help text.
9093         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
9094         Likewise.
9095         * source.c (_initialize_source) <set listsize>: Add help text.
9096         * utils.c (initialize_utils) <set height, set width>: Likewise.
9097         <set pagination>: Mention "set height unlimited".
9098         * valprint.c (_initialize_valprint) <set print elements, set print
9099         repeats>: Document "unlimited".
9100
9101 2013-04-10  Pedro Alves  <palves@redhat.com>
9102
9103         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
9104         instead of disconnect_tracing.
9105         * infcmd.c (detach_command, disconnect_command): Call
9106         query_if_trace_running.  Adjust.
9107         * top.c: Include "tracepoint.h".
9108         (quit_target): Delete.  Contents moved ...
9109         (quit_force): ... here.  Wrap each stage of teardown in
9110         TRY_CATCH.  Call disconnect_tracing before detaching.
9111
9112 2013-04-10  Hui Zhu  <hui@codesourcery.com>
9113             Yao Qi  <yao@codesourcery.com>
9114
9115         * configure.ac: Check libbabeltrace is installed.
9116         * config.in: Regenerate.
9117         * configure: Regenerate.
9118         * Makefile.in (LIBBABELTRACE): New.
9119         (CLIBS): Add LIBBABELTRACE.
9120         * ctf.c: Include "exec.h".
9121         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9122         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9123         (ctf_save_metadata_header): Define new type aliases in
9124         metadata.
9125         (ctf_write_header): Define event type "tsv_def" and "tp_def"
9126         in metadata.  Start a new faked packet for trace status.
9127         (ctf_write_status): Write trace status to CTF.
9128         (ctf_write_uploaded_tsv): Write TSV to CTF.
9129         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9130         (ctf_write_definition_end): End the faked packet.
9131
9132         (ctx, ctf_iter, trace_dirname): New.
9133         (start_pos): New variable.
9134         (ctf_destroy, ctf_open_dir, ctf_open): New.
9135         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9136         macros.
9137         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9138         (ctf_fetch_registers, ctf_xfer_partial): New.
9139         (ctf_get_trace_state_variable_value): New.
9140         (ctf_get_tpnum_from_frame_event): New.
9141         (ctf_get_traceframe_address): New.
9142         (ctf_trace_find, ctf_has_stack): New.
9143         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9144         (ctf_get_trace_status, ctf_read_status): New.
9145         (_initialize_ctf): New.
9146         * tracepoint.c (get_tracepoint_number): New
9147         (get_uploaded_tsv): Remove 'static'.
9148         (struct traceframe_info, trace_regblock_size): Move it to ...
9149         * tracepoint.h: ... here.
9150         (get_tracepoint_number): Declare it.
9151         (get_uploaded_tsv): Declare it.
9152
9153         * NEWS: Mention new configure option.
9154
9155 2013-04-10  Pedro Alves  <palves@redhat.com>
9156             Hui Zhu  <hui@codesourcery.com>
9157
9158         * breakpoint.c (dprintf_re_set): New.
9159         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9160         to dprintf_re_set.
9161
9162 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
9163
9164         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9165         Remove solib-svr4.o from the list.
9166
9167 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
9168
9169         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9170         Use gdb_assert_not_reached instead of invalid boolean expression.
9171
9172 2013-04-09  Pedro Alves  <palves@redhat.com>
9173
9174         * remote.c (unpush_and_perror): New function.
9175         (readchar, remote_serial_write): Use it.
9176
9177 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
9178
9179         * NEWS: Mention new btrace RSP packets.
9180
9181 2013-04-08  Tom Tromey  <tromey@redhat.com>
9182
9183         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9184         long.
9185
9186 2013-04-08  Tom Tromey  <tromey@redhat.com>
9187
9188         * maint.c (print_bfd_section_info): Print the section index.
9189         * symmisc.c (dump_msymbols): Print the section index.
9190
9191 2013-04-08  Tom Tromey  <tromey@redhat.com>
9192
9193         PR symtab/8424:
9194         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9195         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9196         * breakpoint.c (resolve_sal_pc): Update.
9197         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9198         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9199         (minsym_lookup_iterator_cb): Use it.
9200         (default_read_var_value): Update.
9201         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9202         Update.
9203         * infcmd.c (jump_command): Update.
9204         * linespec.c (minsym_found): Update.
9205         * maint.c (maintenance_translate_address): Update.
9206         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9207         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9208         * parse.c (write_exp_msymbol): Update.
9209         * printcmd.c (address_info): Update.
9210         * psymtab.c (find_pc_sect_psymbol): Update.
9211         (fixup_psymbol_section): Check SYMBOL_SECTION, not
9212         SYMBOL_OBJ_SECTION.
9213         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9214         Don't initialize SYMBOL_OBJ_SECTION.
9215         * spu-tdep.c (spu_catch_start): Update.
9216         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9217         * symmisc.c (dump_msymbols, print_symbol): Update.
9218         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
9219         how fallback section is computed.
9220         (fixup_symbol_section): Update.
9221         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9222         Update.
9223         (allocate_symbol, initialize_symbol, allocate_template_symbol):
9224         Initialize SYMBOL_SECTION.
9225         * symtab.h (struct general_symbol_info) <section>: Update comment.
9226         <obj_section>: Remove.
9227         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
9228         (SYMBOL_OBJFILE): New macro.
9229
9230 2013-04-08  Tom Tromey  <tromey@redhat.com>
9231
9232         * coffread.c (record_minimal_symbol): Update.
9233         * dbxread.c (record_minimal_symbol): Update.
9234         * elfread.c (record_minimal_symbol): Update.
9235         * machoread.c (macho_symtab_add_minsym): Update.
9236         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9237         Update.
9238         * minsyms.c (prim_record_minimal_symbol): Update.
9239         (prim_record_minimal_symbol_full): Remove 'bfd_section'
9240         argument.
9241         (prim_record_minimal_symbol_and_info): Likewise.
9242         * minsyms.h (prim_record_minimal_symbol_full)
9243         (prim_record_minimal_symbol_and_info): Update.
9244         * symtab.c (allocate_symbol, initialize_symbol)
9245         (allocate_template_symbol): Initialize SYMBOL_SECTION.
9246         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9247         Update.
9248
9249 2013-04-08  Tom Tromey  <tromey@redhat.com>
9250
9251         PR symtab/8423:
9252         * solib-som.c (som_solib_section_offsets): Use BFD section
9253         indices.  Set offsets for all sections.
9254         * somread.c (som_symtab_read): Compute BFD section for
9255         symbol.  Use prim_record_minimal_symbol_and_info.
9256         (som_symfile_read): Fix comment.
9257         (struct find_section_offset_arg): New.
9258         (find_section_offset, set_section_index): New functions.
9259         (som_symfile_offsets): Use set_section_index to compute
9260         section indices.
9261
9262 2013-04-08  Tom Tromey  <tromey@redhat.com>
9263
9264         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9265         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9266         gdb_bfd_section_index.
9267         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9268         New functions.
9269         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9270         Declare.
9271         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9272         Update.
9273         * objfiles.c (add_to_objfile_sections_full): New function.
9274         (add_to_objfile_sections): Use it.
9275         (build_section_table): Rewrite.
9276         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
9277         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9278         (struct objfile) <sections>: Update comment.
9279         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9280         is NULL.
9281         (ALL_OBJSECTIONS): Use it.
9282         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9283         * solib-frv.c (frv_relocate_main_executable): Update.
9284         * solib-target.c (solib_target_relocate_section_addresses):
9285         Use gdb_bfd_section_index.
9286         * symfile.c (build_section_addr_info_from_section_table):
9287         Use gdb_bfd_section_index.
9288         (build_section_addr_info_from_bfd, place_section): Likewise.
9289         * symtab.c (fixup_section): Update.
9290         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9291
9292 2013-04-08  Tom Tromey  <tromey@redhat.com>
9293
9294         * minsyms.h (struct bound_minimal_symbol): New.
9295         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9296         Remove objfile argument.
9297         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9298         Return bound_minimal_symbol.
9299         * minsyms.c (lookup_minimal_symbol_by_pc_1)
9300         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9301         Return bound_minimal_symbol.
9302         (in_gnu_ifunc_stub): Update.
9303         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9304         Remove 'objfile_p' argument.
9305         (lookup_solib_trampoline_symbol_by_pc): Update.
9306         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9307         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9308         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9309         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9310         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9311         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9312         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9313         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9314         stack.c, symtab.c, tui/tui-disasm.c: Update.
9315
9316 2013-04-08  Tom Tromey  <tromey@redhat.com>
9317
9318         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9319         Use symbol's obstack, not an objfile.
9320         * coffread.c (process_coff_symbol): Update.
9321         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9322         * jv-lang.c (add_class_symbol): Update.
9323         * mdebugread.c (new_symbol): Update.
9324         * minsyms.c (prim_record_minimal_symbol_full)
9325         (terminate_minimal_symbol_table): Update.
9326         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
9327         * stabsread.c (define_symbol, read_enum_type): Update.
9328         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9329         Handle Ada specially.
9330         (symbol_set_language): Add 'obstack' argument.
9331         (symbol_set_names): Update.
9332         (symbol_natural_name, symbol_demangled_name): Always use
9333         ada_decode_symbol.
9334         * symtab.h (struct general_symbol_info)
9335         <language_specific::obstack>: New field.
9336         <ada_mangled>: New field.
9337         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9338         (symbol_set_language): Update.
9339
9340 2013-04-08  Tom Tromey  <tromey@redhat.com>
9341
9342         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9343         Take an obstack, not an objfile.
9344         (symbol_set_names): Update.
9345         * symtab.h (symbol_set_demangled_name): Update.
9346
9347 2013-04-08  Tom Tromey  <tromey@redhat.com>
9348
9349         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9350         allocate_symbol.
9351         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9352         (read_func_scope): Call allocate_template_symbol.
9353         (new_symbol_full): Call allocate_symbol.
9354         * jit.c (finalize_symtab): Call allocate_symbol.
9355         * jv-lang.c (add_class_symbol): Call allocate_symbol.
9356         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9357         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9358         (common_block_end): Call allocate_symbol.
9359         * symtab.c (allocate_symbol, initialize_symbol)
9360         (allocate_template_symbol): New functions.
9361         * symtab.c (allocate_symbol, initialize_symbol)
9362         (allocate_template_symbol): Declare.
9363         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9364
9365 2013-04-08  Pedro Alves  <palves@redhat.com>
9366             Keith Seitz  <keiths@redhat.com>
9367
9368         * breakpoint.c (create_breakpoint): Rename
9369         "parse_condition_and_thread" parameter to "parse_arg".  Update
9370         describing comment.  If !PARSE_ARG, then error out if ARG is not
9371         the empty string after extracting the location.
9372         * breakpoint.h (create_breakpoint): Rename
9373         "parse_condition_and_thread" parameter to "parse_arg".
9374
9375 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
9376
9377         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9378
9379 2013-04-07  Yao Qi  <yao@codesourcery.com>
9380
9381         * remote.c (remote_trace_find): Change type of parameters 'addr1'
9382         and 'addr2' to CORE_ADDR.
9383         * target.c (update_current_target): Update.
9384         * target.h (struct target_ops) <to_trace_find>: Change parameter
9385         type to CORE_ADDR.
9386         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9387         'addr2' to CORE_ADDR.
9388         (tfile_trace_find): Likewise.
9389         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9390         Change local variable 'addr' to type CORE_ADDR.
9391         * tracepoint.h (tfind_1): Update declaration.
9392
9393 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
9394
9395         * windows-nat.c (windows_get_absolute_argv0): Move from here...
9396         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9397         Include main.h.
9398
9399         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9400         here...
9401         * main.h (windows_get_absolute_argv0): ...to here.
9402
9403 2013-04-05  Doug Evans  <dje@google.com>
9404
9405         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9406         (read_cutu_die_from_dwo): Add comments.
9407         (read_structure_type): Update comment.
9408         (read_enumeration_type, read_namespace_type): Update comment.
9409         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9410
9411 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9412
9413         Convert man pages to texinfo, new gdbinit.5 texinfo page.
9414         * Makefile.in (gdb.z): Remove.
9415         (install-only): Remove $(man1dir) and gdb.1 installation.
9416         * gdb.1: Remove.
9417
9418 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9419
9420         Fix compatibility with Linux kernel 3.8.3.
9421         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9422         to more inner block.  Remove parsing of NUMBER from outer block.
9423         Parse NUMBER only if KEYWORD has been identified.
9424
9425 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9426
9427         Fix variable name shadowing.
9428         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9429         filename to mapsfilename and update its uses.
9430
9431 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
9432
9433         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9434         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9435         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9436         details of the problem.
9437
9438 2013-04-04  Pedro Alves  <palves@redhat.com>
9439             Hui Zhu  <hui@codesourcery.com>
9440
9441         * breakpoint.c (validate_commands_for_breakpoint): If validating a
9442         tracepoint, reset its STEP_COUNT and call validate_actionline.
9443
9444 2013-04-03  Doug Evans  <dje@google.com>
9445
9446         * dwarf2read.c (read_die_and_siblings_1): Renamed from
9447         read_die_and_siblings.
9448         (read_die_and_siblings): New function.
9449         (read_cutu_die_from_dwo): Dump die if requested.
9450         (read_die_and_children): Call read_full_die_1 and
9451         read_die_and_siblings_1.
9452         (read_full_die): Dump die if requested.
9453
9454         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9455
9456         * dwarf2read.c (struct dwo_file): New member comp_dir.
9457         Rename member name to dwo_name.  All uses updated.
9458         (hash_dwo_file): Include comp_dir in computation.
9459         (eq_dwo_file): Ditto.
9460         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
9461         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9462
9463         * psymtab.c (read_psymtabs_with_fullname): Don't call
9464         psymtab_to_fullname if the basenames are different.
9465
9466 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9467
9468         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9469         New entry about "fullname" presence.
9470
9471 2013-04-03  Pedro Alves  <palves@redhat.com>
9472
9473         * NEWS: Mention x86_64/Cygwin as new native configuration.
9474
9475 2013-04-02  Doug Evans  <dje@google.com>
9476
9477         * dwarf2read.c (read_structure_type): Fix typo in comment.
9478
9479 2013-04-02  Pedro Alves  <palves@redhat.com>
9480
9481         * NEWS: Mention "set/show debug aarch64", "set/show debug
9482         coff-pe-read" and "set/show debug mach-o".
9483
9484 2013-04-02  Pedro Alves  <palves@redhat.com>
9485
9486         * NEWS: Mention "set/show remote trace-buffer-size-packet".
9487
9488 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
9489
9490         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9491         gdb_string.h is now in common/.
9492
9493 2013-04-02  Pedro Alves  <palves@redhat.com>
9494
9495         * NEWS: Move "set debug notification" and "set trace-buffer-size"
9496         under "New options".
9497
9498 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9499
9500         Revert this patch:
9501         PR gdb/15275
9502         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9503
9504 2013-04-02  Pedro Alves  <palves@redhat.com>
9505
9506         PR gdb/15275
9507
9508         * remote.c (send_interrupt_sequence): Use remote_serial_write.
9509         (remote_serial_write): New function.
9510         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9511
9512 2013-04-01  Jiong Wang  <jiwang@tilera.com>
9513
9514         * NEWS: Mention TILE-Gx in "New native configurations" and
9515         "New targets" sections.
9516
9517 2013-04-01  Doug Evans  <dje@google.com>
9518
9519         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9520         (process_enumeration_scope): Simplify.
9521
9522         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9523         type_unit_group ...
9524         (struct signatured_type): ... to here.
9525         (sig_type_ptr): New typedef.
9526         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
9527         out of union 't'.  All uses updated.
9528         (dw2_get_file_names_reader): Assert not called for a type unit.
9529         (dw2_get_file_names): Assert not called for a type unit or type
9530         unit group.
9531         (build_type_psymtabs_reader): Assert called for a type unit.
9532         (build_type_psymtab_dependencies): Assert called for a type unit group.
9533
9534         * dwarf2read.c (free_dwo_file): Add comment.
9535         (dwarf2_per_objfile_free): Unref dwp bfd.
9536
9537 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
9538
9539         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9540         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9541         (read_pe_exported_syms): Remove unused 'exportix'.
9542         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9543         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9544         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9545
9546 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
9547
9548         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9549         (print_it_watchpoint): Remove unused 'bl'.
9550         (say_where): Remove unused 'uiout'.
9551         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9552         (bkpt_breakpoint_hit): Remove unused 'b'.
9553         (internal_bkpt_print_it): Remove unused 'uiout'.
9554         * buildsym.c (augment_type_symtab): Remove unused 'i'.
9555
9556 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
9557
9558         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9559         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9560
9561 2013-03-29  Doug Evans  <dje@google.com>
9562
9563         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9564         Delete arg is_dwp.  All callers updated.
9565         (open_dwp_file): New function.
9566         (open_and_init_dwp_file): Call it.
9567         (get_dwp_file): New function.
9568         (lookup_dwo_cutu): Call it.
9569
9570         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9571         unnecessary, cleanup.
9572
9573         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9574
9575         * dwarf2read.c (read_cutu_die_from_dwo): New function.
9576         (lookup_dwo_unit): New function.
9577         (init_cutu_and_read_dies): Move DWO handling to new functions.
9578
9579         * dwarf2read.c (struct signatured_type): Tweak comment.
9580         (struct dwo_unit): Tweak comment.
9581         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
9582         (create_dwo_debug_info_hash_table): Tweak comment.
9583         (dwarf2_per_cu_offset_and_type): Tweak comment.
9584
9585         * dwarf2read.c (lookup_signatured_type): Remove complaint about
9586         missing .debug_types section.
9587
9588 2013-03-29  Yao Qi  <yao@codesourcery.com>
9589
9590         * corelow.c: Include "completer.h".
9591         (_initialize_corelow): Call add_target_with_completer with
9592         argument 'filename_completer'.
9593         * tracepoint.c: Likewise.
9594         * exec.c (_initialize_exec): Likewise.
9595         * target.c (add_target): Rename to ...
9596         (add_target_with_completer): ... this.  Call set_cmd_completer
9597         if parameter completer is not NULL.
9598         (add_target): New.
9599         * target.h: Include "command.h".
9600         (add_target_with_completer): Declare it.
9601
9602 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
9603
9604         * coffread.c (is_import_fixup_symbol): New function.
9605         (record_minimal_symbol): Use is_import_fixup_symbol to
9606         detect import fixup symbols, and discard them.
9607
9608 2013-03-28  Doug Evans  <dje@google.com>
9609
9610         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9611         types hash table until we know we need it.
9612
9613         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9614         index numbers.
9615
9616         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9617         All callers updated.
9618         (dw2_print_stats): Print #read CUs too.
9619         (dump_die_shallow): Print signatured types better.
9620
9621         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9622         info_or_types_section to section.  All uses updated.
9623         (struct dwo_unit): Ditto.
9624
9625 2013-03-28  Pedro Alves  <palves@redhat.com>
9626
9627         * NEWS (New options): New section.
9628         (New options): Mention set/show remote trace-status-packet.
9629         * remote.c (PACKET_qTStatus): New enumeration value.
9630         (remote_get_trace_status): Skip sending qTStatus if the packet is
9631         disabled.  Use packet_ok.
9632         (_initialize_remote): Register a configuration command for
9633         qTStatus packet.
9634
9635 2013-03-28  Doug Evans  <dje@google.com>
9636
9637         * symfile.c (find_separate_debug_file): Add comment.
9638         (terminate_after_last_dir_separator): Tweak comment.
9639
9640         * dwarf2read.c (create_partial_symtab): Add forward decl.
9641         (create_partial_symtab): Move to be closer to other psymtab functions.
9642         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9643
9644         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9645         (compute_symtab_includes): Remove unnecessary forward declaration.
9646         (die_needs_namespace): Add comment marking group of functions for
9647         dwarf2 name computation.
9648
9649         * typeprint.c (_initialize_typeprint): Improve type help text.
9650
9651         * python/python.c (finish_python_initialization): Provide suggestion
9652         for how to tell gdb to find its python files.
9653
9654 2013-03-28  Pedro Alves  <palves@redhat.com>
9655
9656         PR gdb/15294
9657
9658         * source.c (_initialize_source): Change back "set listsize" to an
9659         integer command.
9660
9661 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
9662
9663         PR gdb/15275
9664         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9665
9666 2013-03-27  Pedro Alves  <palves@redhat.com>
9667
9668         * top.c (history_size): Rename to ...
9669         (history_size_setshow_var): ... this.  Add comment.
9670         (show_commands): Use readline's 'history_length' instead of
9671         computing the history length by calling history_get in a loop.
9672         (set_history_size_command): Error out for sizes over INT_MAX.
9673         Restore previous history size on invalid size.
9674         (init_history): If HISTSIZE is negative, leave the history size as
9675         zero.  Add comments.
9676         (init_main): Adjust.
9677
9678 2013-03-27  Pedro Alves  <palves@redhat.com>
9679
9680         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9681         coff_pe_read" command to "set debug coff-pe-read".
9682
9683 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
9684
9685         * record.c (command_size_to_target_size): Fix size comparison.
9686         Change parameter type from pointer to integer to integer.
9687         Update all users.
9688
9689 2013-03-27  Pierre Muller  <muller@sourceware.org>
9690
9691         * windows-nat.c (handle_output_debug_string): Avoid typecast
9692         from integer of different size warning.
9693
9694 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
9695
9696         * windows-nat.c (handle_output_debug_string): Add empty line
9697         after local block variable definition.
9698
9699 2013-03-26  Pedro Alves  <palves@redhat.com>
9700
9701         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9702         (net_open): Make 'polls' local unsigned.
9703
9704 2013-03-26  Pedro Alves  <palves@redhat.com>
9705
9706         * remote.c (_initialize_remote): Make "set remoteaddresssize"
9707         a zuinteger command instead of uinteger.
9708
9709 2013-03-26  Pedro Alves  <palves@redhat.com>
9710
9711         * record-full.c (record_full_insn_num): Make it unsigned.
9712         (record_full_check_insn_num, record_full_message)
9713         (record_full_registers_change, record_full_xfer_partial): Remove
9714         record_full_insn_max_num check (it's always != 0).
9715         (record_full_info, record_full_restore): Use %u as format string.
9716         (): Use %u as format string.
9717         (set_record_full_insn_max_num): Remove record_full_insn_max_num
9718         check (it's always != 0).
9719
9720 2013-03-26  Pedro Alves  <palves@redhat.com>
9721
9722         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9723         and "set dcache size" commands zuinteger instead of uinteger.
9724
9725 2013-03-26  Pedro Alves  <palves@redhat.com>
9726
9727         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9728         command zuinteger instead of uinteger.
9729
9730 2013-03-26  Pedro Alves  <palves@redhat.com>
9731
9732         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9733         zuinteger instead of uinteger.
9734
9735 2013-03-26  Pedro Alves  <palves@redhat.com>
9736
9737         * record.c (record_insn_history_size_setshow_var)
9738         (record_call_history_size_setshow_var): New globals.
9739         (command_size_to_target_size): New function.
9740         (cmd_record_insn_history, cmd_record_call_history): Use
9741         command_size_to_target_size instead of cast.
9742         (validate_history_size, set_record_insn_history_size)
9743         (set_record_call_history_size): New functions.
9744         (_initialize_record): Install set_record_insn_history_size and
9745         set_record_call_history_size as "set" hooks of "set record
9746         instruction-history-size" and "set record
9747         function-call-history-size".
9748
9749 2013-03-26  Pedro Alves  <palves@redhat.com>
9750
9751         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9752         use with history_max_entries use.  Remove FIXME note.
9753
9754 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
9755
9756         * record-btrace.c (record_btrace_close): Call
9757         record_btrace_auto_disable.
9758
9759 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
9760
9761         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9762
9763 2013-03-25  Doug Evans  <dje@google.com>
9764
9765         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9766
9767 2013-03-25  Tom Tromey  <tromey@redhat.com>
9768
9769         PR symtab/11462:
9770         * c-exp.y (exp): Add new productions for destructors after '.' and
9771         '->'.
9772         (write_destructor_name): New function.
9773
9774 2013-03-25  Tom Tromey  <tromey@redhat.com>
9775
9776         PR c++/9197:
9777         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9778         value_struct_elt, not lookup_struct_elt_type.
9779         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9780         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9781         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9782
9783 2013-03-25  Yao Qi  <yao@codesourcery.com>
9784
9785         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9786         instead of '_mkdir'.
9787
9788 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
9789
9790         * windows-nat.c (windows_get_absolute_argv0): New function.
9791         * windows-nat.h: Add its prototype.
9792
9793         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9794         Use IS_DIR_SEPARATOR instead of looking for a character inside
9795         SLASH_STRING.  Include filenames.h.
9796         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9797         relocate_gdb_directory works when passed gdb_program_name.
9798         Include windows-nat.h.
9799
9800 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9801
9802         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9803         * remote.c (trace_error): Remove the special handling of '2'.
9804         (readchar) <SERIAL_EOF>
9805         (readchar) <SERIAL_ERROR>
9806         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9807         (remote_get_trace_status): Call throw_exception if EX is
9808         TARGET_CLOSE_ERROR.
9809         * utils.c (perror_with_name): Rename to ...
9810         (throw_perror_with_name): ... here.  New parameter errcode, describe it
9811         in the function comment.
9812         (perror_with_name): New function wrapper.
9813         * utils.h (enum errors): New stub declaration.
9814         (throw_perror_with_name): New declaration.
9815
9816 2013-03-22  Pedro Alves  <palves@redhat.com>
9817             Yao Qi  <yao@codesourcery.com>
9818             Mark Kettenis  <kettenis@gnu.org>
9819
9820         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9821         Don't let the user set the value to UINT_MAX directly.
9822         <var_integer>: Don't let the user set the value to INT_MAX
9823         directly.
9824
9825 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
9826
9827         * remote.c (remote_unpush_target): New function.
9828         (remote_open_1): Remove two pop_target calls, update one comment, add
9829         comment to target_preopen call.  Replace pop_target call by
9830         remote_unpush_target call.
9831         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9832         pop_target calls by remote_unpush_target calls.
9833
9834 2013-03-22  Pedro Alves  <palves@redhat.com>
9835
9836         * linux-nat.c (linux_child_follow_fork): Don't call
9837         linux_enable_event_reporting.
9838         (linux_handle_extended_wait): Don't call
9839         linux_enable_event_reporting.
9840
9841 2013-03-22  Pedro Alves  <palves@redhat.com>
9842
9843         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9844         use it to rewrite the trampoline buffers with type gdb_byte[], and
9845         undefine the macro.  Remove char* cast.
9846
9847 2013-03-21  Doug Evans  <dje@google.com>
9848
9849         New commands "mt set per-command {space,time,symtab} {on,off}".
9850         * NEWS: Add entry.
9851         * event-top.c: #include "maint.h".
9852         * main.c: #include "maint.h".
9853         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9854         timeval-utils.h, maint.h, cli/cli-setshow.h.
9855         (per_command_time, per_command_space): New static globals.
9856         (per_command_symtab): New static global.
9857         (per_command_setlist, per_command_showlist): New static globals.
9858         (struct cmd_stats): Move here from utils.c.
9859         (set_per_command_time): Renamed from set_display_time in utils.c
9860         and moved here.  All callers updated.
9861         (set_per_command_space): Renamed from set_display_space in utils.c
9862         and moved here.  All callers updated.
9863         (count_symtabs_and_blocks): New function.
9864         (report_command_stats): Moved here from utils.c.  Add support for
9865         printing symtab stats.  Only print data if enabled before command
9866         executed.
9867         (make_command_stats_cleanup): Ditto.
9868         (sert_per_command_cmd, show_per_command_cmd): New functions.
9869         (_initialize_maint_cmds): Add new commands
9870         mt set per-command {space,time,symtab} {on,off}.
9871         * maint.h: New file.
9872         * top.c: #include "maint.h".
9873         * utils.c (reset_prompt_for_continue_wait_time): New function.
9874         (get_prompt_for_continue_wait_time): New function.
9875         * utils.h (reset_prompt_for_continue_wait_time): Declare
9876         (get_prompt_for_continue_wait_time): Declare.
9877         (make_command_stats_cleanup): Moved to maint.h.
9878         (set_display_time, set_display_space): Moved to maint.h and renamed
9879         to set_per_command_time, set_per_command_space.
9880         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9881         parse_binary_operation and made non-static.  Don't call error,
9882         just return an error marker.  All callers updated.
9883         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9884
9885 2013-03-21  Tom Tromey  <tromey@redhat.com>
9886
9887         * symfile.c (alloc_section_addr_info): Update header.  Don't set
9888         'num_sections' field.
9889         (build_section_addr_info_from_section_table): Set 'num_sections'.
9890         (build_section_addr_info_from_bfd): Likewise.
9891         (build_section_addr_info_from_objfile): Remove dead loop
9892         condition.
9893         (free_section_addr_info): Unconditionally call xfree.
9894         (relative_addr_info_to_section_offsets, addrs_section_sort)
9895         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9896         condition.
9897         (syms_from_objfile_1): Remove dead 'if' condition.  Check
9898         'num_sections'.
9899         (add_symbol_file_command): Set 'num_sections'.
9900         * symfile-mem.c (symbol_file_add_from_memory): Set
9901         'num_sections'.
9902         * somread.c (som_symfile_offsets): Remove dead loop condition.
9903         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9904         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9905
9906 2013-03-21  Tom Tromey  <tromey@redhat.com>
9907
9908         * tracepoint.h (decode_agent_options): Add 'trace_string'
9909         argument.
9910         * tracepoint.c (decode_agent_options): Add 'trace_string'
9911         argument.
9912         (validate_actionline): Update.
9913         (collect_symbol): Add 'trace_string' argument.
9914         (struct add_local_symbols_data) <trace_string>: New field.
9915         (do_collect_symbol): Update.
9916         (add_local_symbols): Add 'trace_string' argument.
9917         (encode_actions_1): Update.
9918         (trace_dump_actions): Update.
9919         * dwarf2loc.c (access_memory): Update.
9920         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9921         * ax-general.c (new_agent_expr): Update.
9922         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9923         (gen_trace_for_return_address): Add argument.
9924         (trace_kludge, trace_string_kludge): Remove.
9925         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9926         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9927         (gen_trace_for_var): Add 'trace_string' argument.
9928         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9929         (gen_printf, agent_eval_command_one): Update.
9930
9931 2013-03-21  Tom Tromey  <tromey@redhat.com>
9932
9933         PR exp/15109:
9934         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9935         Handle FILENAME token.
9936
9937 2013-03-21  Tom Tromey  <tromey@redhat.com>
9938
9939         * c-exp.y (YYPRINT): Define.
9940         (c_print_token): New function.
9941
9942 2013-03-21  Tom Tromey  <tromey@redhat.com>
9943
9944         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9945
9946 2013-03-21  Yao Qi  <yao@codesourcery.com>
9947
9948         * ctf.c: Include "gdb_stat.h".
9949         [USE_WIN32API]: New macro 'mkdir'.
9950         (ctf_start): Use permission bits macros if they are defined.
9951
9952 2013-03-20  Keith Seitz  <keiths@redhat.com>
9953
9954         * breakpoint.h (struct breakpoint): Add comment to
9955         extra_string indicating that this member is mallod'd.
9956         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9957
9958 2013-03-20  Pedro Alves  <palves@redhat.com>
9959
9960         PR gdb/15289
9961
9962         * cli/cli-setshow.c (do_set_command)
9963         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9964         the result of parsing the command argument.  Throw error if the
9965         value is greater than UINT_MAX.  Print the invalid value with
9966         plongest.
9967         <var_integer, var_zinteger>: Use LONGEST for variable holding the
9968         result of parsing the command argument.  Throw error if the value
9969         is greater than INT_MAX, not greater or equal.  Also throw error
9970         if the value is less than INT_MIN.  Print the invalid value with
9971         plongest.
9972         <var_zuinteger_unlimited>: Throw error if the value is greater
9973         than INT_MAX, not greater or equal.
9974         (do_show_command) <var_integer, var_zinteger,
9975         var_zuinteger_unlimited>: Use %d for printing int, not %u.
9976
9977 2013-03-20  Tom Tromey  <tromey@redhat.com>
9978
9979         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9980         if possible.
9981         * dwarf2read.c (read_func_scope): Remove old FIXME.
9982         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9983         not LOC_COMPUTED.
9984         * findvar.c (symbol_read_needs_frame, default_read_var_value):
9985         Unconditionally call via computed ops, if possible.
9986         * printcmd.c (address_info): Unconditionally call via computed ops,
9987         if possible.
9988         * stack.c (read_frame_arg): Unconditionally call via computed ops,
9989         if possible.
9990         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9991         * tracepoint.c (scope_info): Unconditionally call via computed ops,
9992         if possible.
9993
9994 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9995             Tom Tromey  <tromey@redhat.com>
9996
9997         PR symtab/8421:
9998         * coffread.c (coff_register_index): New global.
9999         (process_coff_symbol, coff_read_enum_type): Set
10000         SYMBOL_ACLASS_INDEX.
10001         (_initialize_coffread): Initialize new global.
10002         * dwarf2loc.c (locexpr_find_frame_base_location)
10003         (dwarf2_block_frame_base_locexpr_funcs)
10004         (loclist_find_frame_base_location)
10005         (dwarf2_block_frame_base_loclist_funcs): New.
10006         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
10007         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
10008         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
10009         (dwarf2_block_frame_base_loclist_funcs): New.
10010         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
10011         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
10012         globals.
10013         (read_func_scope): Update.
10014         (fixup_go_packaging, mark_common_block_symbol_computed)
10015         (var_decode_location, new_symbol_full, dwarf2_const_value):
10016         Set SYMBOL_ACLASS_INDEX.
10017         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
10018         (_initialize_dwarf2_read): Initialize new globals.
10019         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
10020         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
10021         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
10022         globals.
10023         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
10024         (_initialize_mdebugread): Initialize new globals.
10025         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
10026         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
10027         (stab_register_index, stab_regparm_index): New globals.
10028         (define_symbol, read_enum_type, common_block_end): Set
10029         SYMBOL_ACLASS_INDEX.
10030         (_initialize_stabsread): Initialize new globals.
10031         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
10032         globals.
10033         (MAX_SYMBOL_IMPLS): New define.
10034         (register_symbol_computed_impl, register_symbol_block_impl)
10035         (register_symbol_register_impl)
10036         (initialize_ordinary_address_classes): New functions.
10037         (_initialize_symtab): Call initialize_ordinary_address_classes.
10038         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
10039         (struct symbol_impl): New.
10040         (SYMBOL_ACLASS_BITS): New define.
10041         (struct symbol) <aclass, ops>: Remove fields.
10042         <aclass_index>: New field.
10043         (symbol_impls): Declare.
10044         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
10045         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
10046         (register_symbol_computed_impl, register_symbol_block_impl)
10047         (register_symbol_register_impl): Declare.
10048         (struct symbol_computed_ops): Add location_has_loclist.
10049         (struct symbol_block_ops): New.
10050         (SYMBOL_BLOCK_OPS): New.
10051         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
10052
10053 2013-03-20  Tom Tromey  <tromey@redhat.com>
10054
10055         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
10056         (print_partial_symbols, recursively_search_psymtabs): Use
10057         PSYMBOL_CLASS.
10058
10059 2013-03-20  Pierre Muller  <muller@sourceware.org>
10060
10061         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
10062         addtion, subtraction, multiplication and division binary operator.
10063
10064 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10065
10066         Code cleanup.
10067         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
10068         * bsd-kvm.c (bsd_kvm_close): Likewise.
10069         * bsd-uthread.c (bsd_uthread_close): Likewise.
10070         * corelow.c (core_close): Likewise.
10071         (core_close_cleanup): Remove parameter quitting from a caller.
10072         * event-top.c (async_disconnect): Likewise.
10073         * exec.c (exec_close_1): Remove parameter quitting.
10074         * go32-nat.c (go32_close): Likewise.
10075         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
10076         parameter quitting from a caller.
10077         * mips-linux-nat.c (super_close): Remove parameter quitting from the
10078         variable.
10079         (mips_linux_close): Remove parameter quitting.  Remove parameter
10080         quitting from a caller.
10081         * monitor.c (monitor_close): Remove parameter quitting.
10082         * monitor.h (monitor_close): Likewise.
10083         * record-btrace.c (record_btrace_close): Likewise.
10084         * record-full.c (record_full_close): Likewise.
10085         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
10086         it also from fprintf_unfiltered.
10087         * remote-mips.c (mips_close): Remove parameter quitting.
10088         (mips_detach): Remove parameter quitting from a caller.
10089         * remote-sim.c (gdbsim_close): Remove parameter quitting.
10090         (gdbsim_close): Remove duplicate function comment.  Remove parameter
10091         quitting and remove it also from printf_filtered.
10092         * remote.c (remote_close): Remove parameter quitting.
10093         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
10094         * target.c (update_current_target): Remove parameter int from to_close
10095         de_fault.
10096         (push_target, unpush_target, pop_target): Remove parameter quitting from
10097         a caller.
10098         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
10099         Remove parameter quitting from a caller.
10100         (target_preopen): Remove parameter quitting from a caller.
10101         (target_close): Remove parameter quitting.  Remove parameter quitting
10102         from a caller two times.  Remove parameter quitting also from
10103         fprintf_unfiltered.
10104         * target.h (struct target_ops): Remove parameter quitting and as int
10105         from fields to_xclose and to_close.
10106         (extern struct target_ops current_target):
10107         (target_close, pop_all_targets): Remove parameter quitting.  Update the
10108         comment.
10109         (pop_all_targets_above): Remove parameter quitting.
10110         * top.c (quit_target): Remove parameter quitting from a caller.
10111         * tracepoint.c (tfile_close): Remove parameter quitting.
10112         * windows-nat.c (windows_close): Remove parameter quitting.
10113
10114 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
10115
10116         * windows-nat.c (handle_output_debug_string): Replace call
10117         to string_to_core_addr with call to strtoull.
10118
10119 2013-03-20  Yao Qi  <yao@codesourcery.com>
10120
10121         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10122         and write it to CTF metadata.
10123
10124 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
10125
10126         * windows-nat.c (handle_output_debug_string): Change type of n to
10127         SIZE_T to avoid crash on 64 bit systems.
10128
10129 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
10130
10131         * python/python-internal.h (HAVE_SNPRINTF)
10132         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10133         about redefinition of snprintf by pyerrors.h.
10134
10135 2013-03-15  Steve Ellcey  <sellcey@mips.com>
10136
10137         * remote-sim.c (sim_command_completer): Make char arguments const.
10138
10139 2013-03-15  Tom Tromey  <tromey@redhat.com>
10140
10141         PR c++/15116:
10142         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10143
10144 2013-03-14  Tom Tromey  <tromey@redhat.com>
10145
10146         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10147         New fields.
10148         (get_file_crc): Move from symfile.c.
10149         (gdb_bfd_crc): New function.
10150         * gdb_bfd.h (gdb_bfd_crc): Declare.
10151         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10152         * symfile.c (get_file_crc): Move to gdb_bfd.c.
10153         (separate_debug_file_exists): Use gdb_bfd_crc.
10154
10155 2013-03-14  Tom Tromey  <tromey@redhat.com>
10156
10157         * symfile.c (get_debug_link_info): Remove.
10158         (find_separate_debug_file_by_debuglink): Use
10159         bfd_get_debug_link_info.
10160
10161 2013-03-14  Tom Tromey  <tromey@redhat.com>
10162
10163         * symtab.c (error_in_psymtab_expansion): New function.
10164         (lookup_symbol_aux_quick)
10165         (basic_lookup_transparent_type_quick): Remove "last resort"
10166         code.  Use error_in_psymtab_expansion.
10167
10168 2013-03-14  Doug Evans  <dje@google.com>
10169             Jan Kratochvil  <jan.kratochvil@redhat.com>
10170
10171         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10172         any successful compare_filenames_for_search or FILENAME_CMP.
10173         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10174         * symtab.c (iterate_over_some_symtabs): Likewise.
10175
10176 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10177
10178         * source.c (print_source_lines_base): Make a local copy of
10179         symtab_to_fullname.
10180
10181 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
10182             Jan Kratochvil  <jan.kratochvil@redhat.com>
10183
10184         * source.c (print_source_lines_base): Suppress "file" for TUI.
10185
10186 2013-03-14  Keith Seitz  <keiths@redhat.com>
10187             Alan Matsuoka  <alanm@redhat.com>
10188
10189         PR c++/15203
10190         PR c++/15210
10191         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10192         TYPE_CODE_METHOD.
10193         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10194         symbols.
10195
10196 2013-03-14  Yao Qi  <yao@codesourcery.com>
10197
10198         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10199         status to tfile if trace is stopped by command 'tstop'.
10200
10201 2013-03-14  Yao Qi  <yao@codesourcery.com>
10202
10203         * tracepoint.c (tfile_write_status): Write trace notes and user
10204         name into tfile if they are not NULL.
10205
10206 2013-03-14  Hui Zhu  <hui@codesourcery.com>
10207             Yao Qi  <yao@codesourcery.com>
10208
10209         * Makefile.in (REMOTE_OBS): Add ctf.o.
10210         (SFILES): Add ctf.c.
10211         (HFILES_NO_SRCDIR): Add ctf.h.
10212         * ctf.c, ctf.h: New files.
10213         * tracepoint.c: Include 'ctf.h'.
10214         (collect_pseudocommand): Remove static.
10215         (trace_save_command): Parse option "-ctf".
10216         Produce different trace file writers per option.
10217         Adjust output message.
10218         (trace_save_tfile, trace_save_ctf): New.
10219         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10220         * mi/mi-main.c: Include 'ctf.h'.
10221         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
10222         trace_save_tfile or trace_save_ctf.
10223         * NEWS: Mention these changes.
10224
10225 2013-03-14  Yao Qi  <yao@codesourcery.com>
10226
10227         * tracepoint.c (trace_file_writer_xfree): New.
10228         (struct tfile_writer_data): New.
10229         (tfile_dtor, tfile_can_target_save, tfile_start): New.
10230         (tfile_write_header, tfile_write_regblock_type): New.
10231         (tfile_write_status, tfile_write_uploaded_tsv): New.
10232         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10233         (tfile_write_raw_data, (tfile_end): New.
10234         (tfile_write_ops): New global variable.
10235         (TRACE_WRITE_R_BLOCK): New macro.
10236         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10237         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10238         (TRACE_WRITE_V_BLOCK): New macro.
10239         (trace_save): Add extra one parameter WRITER.  Make it static.
10240         Use WRITER to writer trace.
10241         (tfile_trace_file_writer_new): New.
10242         (trace_save_command): Caller update.
10243         (trace_save_tfile): Write trace data in TFILE format.
10244         * tracepoint.h (struct trace_frame_write_ops): New.
10245         (struct trace_file_write_ops): New.
10246         (struct trace_file_writer): New.
10247         (trace_save): Remove its declaration.
10248         (trace_save_tfile): Declare it.
10249         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10250         instead of trace_save.
10251
10252 2013-03-13  Pedro Alves  <palves@redhat.com>
10253
10254         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10255
10256 2013-03-13  Pedro Alves  <palves@redhat.com>
10257
10258         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10259         commented out code.
10260         * demangle.c (current_demangling_style_string): Make it const.
10261         (set_demangling_command): Assert the demangling style is known.
10262         Remove all handling of unknown styles.  Set
10263         'current_demangling_style_string' to an element of the
10264         demangling_style_names array.
10265         (set_demangling_style): Delete.
10266         (_initialize_demangler): Set current_demangling_style_string to the
10267         element of the demangling_style_names array that corresponds to
10268         the default demangling style.  Remove FIXME note.  Don't call
10269         set_demangling_style.
10270         * gdb-demangle.h (set_demangling_style): Remove declaration.
10271
10272 2013-03-13  Pedro Alves  <palves@redhat.com>
10273
10274         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10275         fields const.
10276         (ada_make_symbol_completion_list): Make "text0" parameter const.
10277         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10278         * breakpoint.c (condition_completer): Make "text" and "word"
10279         parameters const.  Adjust.
10280         (check_tracepoint_command): Adjust to validate_actionline
10281         prototype change.
10282         (catch_syscall_completer): Make "text" and "word" parameters
10283         const.
10284         * cli/cli-cmds.c (show_user): Make "comname" local const.
10285         (valid_command_p): Make "command" parameter const.
10286         (alias_command): Make "alias_prefix" and "command_prefix" locals
10287         const.
10288         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10289         (add_alias_cmd): Make "name" and "oldname" parameters const.
10290         Adjust.  No longer make copy of OLDNAME.
10291         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10292         (add_setshow_cmd_full, add_setshow_enum_cmd)
10293         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10294         (add_setshow_filename_cmd, add_setshow_string_cmd)
10295         (add_setshow_string_noescape_cmd)
10296         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10297         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10298         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10299         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10300         Make "name" parameter const.
10301         (help_cmd): Rename "command" parameter to "arg".  New const local
10302         "command".
10303         (find_cmd): Make "command" parameter const.
10304         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
10305         deprecated_cmd_warning prototype change.
10306         (undef_cmd_error): Make "cmdtype" parameter const.
10307         (lookup_cmd): Make "line" parameter const.
10308         (deprecated_cmd_warning): Change type of "text" parameter to
10309         pointer to const char, from pointer to pointer to char.  Adjust.
10310         (lookup_cmd_composition): Make "text" parameter const.
10311         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10312         parameters const.
10313         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10314         const.
10315         * cli/cli-script.c (validate_comname): Make "tem" local const.
10316         (define_command): New const local "tem_c".  Use it in calls to
10317         lookup_cmd.
10318         (document_command): Make "tem" and "comfull" locals const.
10319         (show_user_1): Make "prefix" and "name" parameters const.
10320         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10321         const.
10322         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10323         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10324         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10325         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10326         (complete_on_enum, add_setshow_enum_cmd)
10327         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10328         (add_setshow_filename_cmd, add_setshow_string_cmd)
10329         (add_setshow_string_noescape_cmd)
10330         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10331         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10332         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10333         Change prototypes, constifying strings.
10334         * completer.c (noop_completer, filename_completer): Make "text"
10335         and "prefix" parameters const.
10336         (location_completer, expression_completer)
10337         (complete_line_internal): Make "text" and "prefix" parameters
10338         const and adjust.
10339         (command_completer, signal_completer): Make "text" and "prefix"
10340         parameters const.
10341         * completer.h (noop_completer, filename_completer)
10342         (expression_completer, location_completer, command_completer)
10343         (signal_completer): Change prototypes.
10344         * corefile.c (complete_set_gnutarget): Make "text" and "word"
10345         parameters const.
10346         * cp-abi.c (cp_abi_completer): Likewise.
10347         * expression.h (parse_expression_for_completion): Change
10348         prototype.
10349         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10350         parameters const.
10351         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10352         * infrun.c (handle_completer): Make "text" and "word" parameters
10353         const.
10354         * interps.c (interpreter_completer): Make "text" and "word"
10355         parameters const.
10356         * language.h (struct language_defn)
10357         <la_make_symbol_completion_list>: Make "text" and "word"
10358         parameters const.
10359         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10360         (parse_exp_in_context): Rename to ...
10361         (parse_exp_in_context_1): ... this.
10362         (parse_exp_in_context): Reimplement, with const hack from
10363         parse_exp_1.
10364         (parse_expression_for_completion): Make "string" parameter const.
10365         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10366         to pointer to const char.  Adjust.
10367         (print_command_1): Make "exp" parameter const.
10368         (output_command): Rename to ...
10369         (output_command_const): ... this.  Make "exp" parameter const.
10370         (output_command): Reimplement.
10371         (x_command): Adjust.
10372         (display_command): Rename "exp" parameter to "arg".  New "exp"
10373         local, const version of "arg".
10374         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10375         "cmd_name" local const.
10376         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10377         call.
10378         (cmdpy_completer): Make "text" and "word" parameters const.
10379         (gdbpy_parse_command_name): Make "prefix_text2" local const.
10380         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10381         const.
10382         * remote.c (_initialize_remote): Make "cmd_name" local const.
10383         * symtab.c (language_search_unquoted_string): Make "text" and "p"
10384         parameters const.  Adjust.
10385         (completion_list_add_fields): Make "sym_text", "text" and "word"
10386         parameters const.
10387         (struct add_name_data) <sym_text, text, word>: Make fields const.
10388         (default_make_symbol_completion_list_break_on): Make "text" and
10389         "word" parameters const.  Adjust locals.
10390         (default_make_symbol_completion_list)
10391         (make_symbol_completion_list, make_symbol_completion_type)
10392         (make_symbol_completion_list_fn): Make "text" and "word"
10393         parameters const.
10394         (make_file_symbol_completion_list): Make "text", "word" and
10395         "srcfile" parameters const.  Adjust locals.
10396         (add_filename_to_list): Make "text" and "word" parameters const.
10397         (struct add_partial_filename_data) <text, word>: Make fields
10398         const.
10399         (make_source_files_completion_list): Make "text" and "word"
10400         parameters const.
10401         * symtab.h (default_make_symbol_completion_list_break_on)
10402         (default_make_symbol_completion_list, make_symbol_completion_list)
10403         (make_symbol_completion_type enum type_code)
10404         (make_symbol_completion_list_fn make_file_symbol_completion_list)
10405         (make_source_files_completion_list): Change prototype.
10406         * top.c (execute_command): Adjust to pass pointer to pointer to
10407         const char to lookup_cmd, and to deprecated_cmd_warning prototype
10408         change.
10409         (set_verbose): Make "cmdname" local const.
10410         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10411         and adjust.
10412         (validate_actionline): Make "line" parameter a pointer to const
10413         char, and adjust.
10414         (encode_actions_1): Make "action_exp" local const, and adjust.
10415         (encode_actions): Adjust.
10416         (replace_comma): Delete.
10417         (trace_dump_actions): Make "action_exp" and "next_comma" locals
10418         const, and adjust.  Don't frob the action string while splitting
10419         it at commas.  Instead, make a copy of each split substring in
10420         turn.
10421         (trace_dump_command): Adjust to validate_actionline prototype
10422         change.
10423         * tracepoint.h (decode_agent_options, decode_agent_options)
10424         (encode_actions, validate_actionline): Change prototypes.
10425         * valprint.h (output_command): Delete declaration.
10426         (output_command_const): Declare.
10427         * value.c (function_destroyer): Cast const away in xfree call.
10428
10429 2013-03-13  Pedro Alves  <palves@redhat.com>
10430
10431         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10432         rather than casting 'const char * const *' to 'const char **'.
10433         * ada-lex.l (processInt): Make "trailer" local const.  Remove
10434         'const char **' cast.
10435         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10436         locals, and use those as strtol output pointer, instead than doing
10437         invalid casts to from 'const char **' to 'char **'.
10438         (_initialize_demangle): Remove cast.
10439         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10440         locals, and use those as strtol output pointer, instead than doing
10441         invalid casts to from 'const char **' to 'char **'.
10442         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10443         casts.
10444         * stap-probe.c (stap_parse_register_operand)
10445         (stap_parse_single_operand): Likewise.
10446
10447 2013-03-13  Yao Qi  <yao@codesourcery.com>
10448
10449         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10450         the last matched 'V' blcok in trace frame.
10451
10452 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
10453
10454         * NEWS: Create a new section for the next release branch.
10455         Rename the section of the current branch, now that it has
10456         been cut.
10457
10458 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
10459
10460         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10461         * version.in: Bump version to 7.6.50.20130312-cvs.
10462
10463 2013-03-12  Keith Seitz  <keiths@redhat.com>
10464
10465         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10466         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10467         Remove temporary copy of input string.
10468         (mi_execute_command_wrapper): Make "cmd" const.
10469         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10470         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10471         Use const strings.
10472         (mi_parse): Make "cmd" const.
10473         Use const strings.
10474         * mi/mi-parse.h (mi_parse): Make "cmd" const.
10475
10476 2013-03-12  Keith Seitz  <keiths@redhat.com>
10477
10478         * ada-lang.c (ada_read_renaming_var_value): Pass const
10479         pointer to expression string to parse_exp_1.
10480         (create_excep_cond_exprs): Likewise.
10481         * ax-gdb.c (agent_eval_command_one): Likewise.
10482         (maint_agent_printf_command): Likewise.
10483         Constify much of the string handling/parsing.
10484         * breakpoint.c (set_breakpoint_condition): Pass const
10485         pointer to expression string to parse_exp_1.
10486         (update_watchpoint): Likewise.
10487         (parse_cmd_to_aexpr): Constify string handling.
10488         Pass const pointer to parse_exp_1.
10489         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10490         (find_condition_and_thread): Likewise.
10491         Make TOK const.
10492         (watch_command_1): Make "arg" const.
10493         Constify string handling.
10494         Copy the expression string instead of changing the input
10495         string.
10496         (update_breakpoint_location): Pass const pointer to
10497         parse_exp_1.
10498         * eval.c (parse_and_eval_address): Make "exp" const.
10499         (parse_to_comma_and_eval): Make "expp" const.
10500         (parse_and_eval): Make "exp" const.
10501         * expression.h (parse_expression): Make argument const.
10502         (parse_exp_1): Make first argument const.
10503         * findcmd.c (parse_find_args): Treat "args" as const.
10504         * linespec.c (parse_linespec): Pass const pointer to
10505         linespec_expression_to_pc.
10506         (linespec_expression_to_pc): Make "exp_ptr" const.
10507         * parse.c (parse_exp_1): Make "stringptr" const.
10508         Make a copy of the expression to pass to parse_exp_in_context until
10509         this whole interface can be constified.
10510         (parse_expression): Make "string" const.
10511         * printcmd.c (ui_printf): Treat "arg" as const.
10512         Handle const strings.
10513         * tracepoint.c (validate_actionline): Pass const pointer to
10514         all calls to parse_exp_1.
10515         (encode_actions_1): Likewise.
10516         * value.h (parse_to_comma_and_eval): Make argument const.
10517         (parse_and_eval_address): Likewise.
10518         (parse_and_eval): Likewise.
10519         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10520         (varobj_set_value): Likewise.
10521         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10522         constify string handling.
10523         Pass const pointers to parse_and_eval_address and
10524         parse_to_comman_and_eval.
10525         * cli/cli-utils.c (skip_to_space): Rename to ...
10526         (skip_to_space_const): ... this. Handle const strings.
10527         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10528         skip_to_space_const.
10529         (skip_to_space_const): Declare.
10530         * common/format.c (parse_format_string): Make "arg" const.
10531         Handle const strings.
10532         * common/format.h (parse_format_string): Make "arg" const.
10533         * gdbserver/ax.c (ax_printf): Make "format" const.
10534         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10535         of the expression string.
10536
10537 2013-03-12  Hui Zhu  <hui@codesourcery.com>
10538
10539         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10540
10541 2013-03-12  Yao Qi  <yao@codesourcery.com>
10542             Hui Zhu  <hui@codesourcery.com>
10543
10544         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10545         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10546         DW_OP_deref_size.
10547
10548 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
10549
10550         * ada-lex.l (rules): Only recognize 'thread' as a
10551         delimiter when followed by numerals, as for c-exp.y.
10552         Use new rewind_to_char function to rewind the input for
10553         expression-delimiting tokens.
10554         (rewind_to_char): New function.
10555
10556 2013-03-11  Pedro Alves  <palves@redhat.com>
10557             Jan Kratochvil  <jan.kratochvil@redhat.com>
10558
10559         * configure: Regenerate.
10560         * configure.ac (check dynamic export flag): Link python test with
10561         $PYTHON_LIBS.
10562
10563 2013-03-11  Doug Evans  <dje@google.com>
10564             Keith Seitz  <keiths@redhat.com>
10565
10566         * linespec.c (find_linespec_symbols): Call find_function_symbols
10567         first, and then call lookup_prefix_sym/find_method.
10568
10569 2013-03-11  Pedro Alves  <palves@redhat.com>
10570
10571         * charset.c (convert_between_encodings): Don't cast between
10572         different pointer to pointer types.  Instead, make the 'inp' local
10573         be of the type iconv expects.
10574         (wchar_iterate): Don't cast between different pointer to pointer
10575         types.  Instead, use new pointer local of the type iconv expects.
10576         * target.c (target_read_stralloc, target_fileio_read_stralloc):
10577         Add new local of type char pointer, and use it to get a
10578         char/string view of the byte buffer, instead of casting between
10579         pointer to pointer types.
10580
10581 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
10582
10583         * remote.c (remote_set_trace_buffer_size): Move != operator
10584         to the start of next line to fix an ARI warning.
10585
10586 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10587
10588         * NEWS: Add record changes.
10589
10590 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10591
10592         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10593         the instruction history disassembly.
10594         * disasm.c (dump_insns): Omit the pc prefix, if requested.
10595         * disasm.h (DISASSEMBLY_OMIT_PC): New.
10596
10597 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10598
10599         * Makefile.in (SFILES): Add record-btrace.c
10600         (COMMON_OBS): Add record-btrace.o
10601         * record-btrace.c: New.
10602         * objfiles.c: Include btrace.h.
10603         (free_objfile): call btrace_free_objfile.
10604
10605 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10606
10607         * target.c (target_call_history, target_call_history_from,
10608         target_call_history_range): New.
10609         * target.h (target_ops) <to_call_history, to_call_history_from,
10610         to_call_history_range>: New fields.
10611         (target_call_history, target_call_history_from,
10612         target_call_history_range): New declaration.
10613         * record.c (get_call_history_modifiers, cmd_record_call_history,
10614         record_call_history_size): New.
10615         (_initialize_record): Add the "record function-call-history" command.
10616         Add "set/show record function-call-history-size" commands.
10617         * record.h (record_print_flag): New.
10618
10619 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10620
10621         * target.h (target_ops) <to_insn_history, to_insn_history_from,
10622         to_insn_history_range>: New fields.
10623         (target_insn_history): New.
10624         (target_insn_history_from): New.
10625         (target_insn_history_range): New.
10626         * target.c (target_insn_history): New.
10627         (target_insn_history_from): New.
10628         (target_insn_history_range): New.
10629         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10630         (record_insn_history_size): New.
10631         (get_insn_number): New.
10632         (get_context_size): New.
10633         (no_chunk): New.
10634         (get_insn_history_modifiers): New.
10635         (cmd_record_insn_history): New.
10636         (_initialize_record): Add "set/show record instruction-history-size"
10637         command. Add "record instruction-history" command.
10638
10639 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10640
10641         * record.h (record_disconnect): New.
10642         (record_detach): New.
10643         (record_mourn_inferior): New.
10644         (record_kill): New.
10645         * record-full.c (record_disconnect, record_detach,
10646         record_mourn_inferior, record_kill): Move to...
10647         * record.c: ...here.
10648         (DEBUG): New.
10649         (record_stop): New.
10650         (record_unpush): New.
10651         (cmd_record_stop): Call record_stop. Replace unpush_target
10652         call with record_unpush call.
10653         (record_disconnect, record_detach): Assert that the target
10654         is of record stratum. Call record_unpush, record_stop, and
10655         DEBUG.
10656         (record_mourn_inferior, record_kill): Assert that the target
10657         is of record stratum. Call record_unpush and DEBUG.
10658
10659 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10660
10661         * record-full.h, record-full.c (record_memory_query): Rename
10662         to ...
10663         (record_full_memory_query): ...this. Update all users.
10664         (record_arch_list_add_reg): Rename to ...
10665         (record_full_arch_list_add_reg): ...this. Update all users.
10666         (record_arch_list_add_mem): Rename to ...
10667         (record_full_arch_list_add_mem): ...this. Update all users.
10668         (record_arch_list_add_end): Rename to ...
10669         (record_full_arch_list_add_end): ...this. Update all users.
10670         (record_gdb_operation_disable_set): Rename to ...
10671         (record_full_gdb_operation_disable_set): ...this.
10672         Update all users.
10673
10674 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10675
10676         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10677         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10678         (RECORD_IS_REPLAY): Renamed to ...
10679         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10680         (RECORD_FILE_MAGIC): Renamed to ...
10681         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10682         (record_mem_entry): Renamed to ...
10683         (record_full_mem_entry): ... this. Updated all users.
10684         (record_reg_entry): Renamed to ...
10685         (record_full_reg_entry): ... this. Updated all users.
10686         (record_end_entry): Renamed to ...
10687         (record_full_end_entry): ... this. Updated all users.
10688         (record_type) <record_end, record_reg, record_mem>: Renamed
10689         to ...
10690         (record_full_type) <record_full_end, record_full_reg,
10691         record_full_mem>: ... this. Updated all users.
10692         (record_entry): Renamed to ...
10693         (record_full_entry): ... this. Updated all users.
10694         (record_core_buf_entry): Renamed to ...
10695         (record_full_core_buf_entry): ... this. Updated all users.
10696         (record_core_regbuf): Renamed to ...
10697         (record_full_core_regbuf): ... this. Updated all users.
10698         (record_core_start): Renamed to ...
10699         (record_full_core_start): ... this. Updated all users.
10700         (record_core_end): Renamed to ...
10701         (record_full_core_end): ... this. Updated all users.
10702         (record_core_buf_list): Renamed to ...
10703         (record_full_core_buf_list): ... this. Updated all users.
10704         (record_first): Renamed to ...
10705         (record_full_first): ... this. Updated all users.
10706         (record_list): Renamed to ...
10707         (record_full_list): ... this. Updated all users.
10708         (record_arch_list_head): Renamed to ...
10709         (record_full_arch_list_head): ... this. Updated all users.
10710         (record_arch_list_tail): Renamed to ...
10711         (record_full_arch_list_tail): ... this. Updated all users.
10712         (record_stop_at_limit): Renamed to ...
10713         (record_full_stop_at_limit): ... this. Updated all users.
10714         (record_insn_max_num): Renamed to ...
10715         (record_full_insn_max_num): ... this. Updated all users.
10716         (record_insn_num): Renamed to ...
10717         (record_full_insn_num): ... this. Updated all users.
10718         (record_insn_count): Renamed to ...
10719         (record_full_insn_count): ... this. Updated all users.
10720         (record_ops): Renamed to ...
10721         (record_full_ops): ... this. Updated all users.
10722         (record_core_ops): Renamed to ...
10723         (record_full_core_ops): ... this. Updated all users.
10724         (set_record_cmdlist): Renamed to ...
10725         (set_record_full_cmdlist): ... this. Updated all users.
10726         (show_record_cmdlist): Renamed to ...
10727         (show_record_full_cmdlist): ... this. Updated all users.
10728         (record_cmdlist): Renamed to ...
10729         (record_full_cmdlist): ... this. Updated all users.
10730         (record_beneath_to_resume_ops): Renamed to ...
10731         (record_full_beneath_to_resume_ops): ... this. Updated all users.
10732         (record_beneath_to_resume): Renamed to ...
10733         (record_full_beneath_to_resume): ... this. Updated all users.
10734         (record_beneath_to_wait_ops): Renamed to ...
10735         (record_full_beneath_to_wait_ops): ... this. Updated all users.
10736         (record_beneath_to_wait): Renamed to ...
10737         (record_full_beneath_to_wait): ... this. Updated all users.
10738         (record_beneath_to_store_registers_ops): Renamed to ...
10739         (record_full_beneath_to_store_registers_ops): ... this.
10740         Updated all users.
10741         (record_beneath_to_store_registers): Renamed to ...
10742         (record_full_beneath_to_store_registers): ... this.
10743         Updated all users.
10744         (record_beneath_to_xfer_partial_ops): Renamed to ...
10745         (record_full_beneath_to_xfer_partial_ops): ... this.
10746         Updated all users.
10747         (record_beneath_to_xfer_partial): Renamed to ...
10748         (record_full_beneath_to_xfer_partial): ... this.
10749         Updated all users.
10750         (record_beneath_to_insert_breakpoint): Renamed to ...
10751         (record_full_beneath_to_insert_breakpoint): ... this.
10752         Updated all users.
10753         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10754         (record_full_beneath_to_stopped_by_watchpoint): ... this.
10755         Updated all users.
10756         (record_beneath_to_stopped_data_address): Renamed to ...
10757         (record_full_beneath_to_stopped_data_address): ... this.
10758         Updated all users.
10759         (record_beneath_to_async): Renamed to ...
10760         (record_full_beneath_to_async): ... this. Updated all users.
10761         (record_goto_insn): Renamed to ...
10762         (record_full_goto_insn): ... this. Updated all users.
10763         (record_save): Renamed to ...
10764         (record_full_save): ... this. Updated all users.
10765         (record_reg_alloc): Renamed to ...
10766         (record_full_reg_alloc): ... this. Updated all users.
10767         (record_reg_release): Renamed to ...
10768         (record_full_reg_release): ... this. Updated all users.
10769         (record_mem_alloc): Renamed to ...
10770         (record_full_mem_alloc): ... this. Updated all users.
10771         (record_mem_release): Renamed to ...
10772         (record_full_mem_release): ... this. Updated all users.
10773         (record_end_alloc): Renamed to ...
10774         (record_full_end_alloc): ... this. Updated all users.
10775         (record_end_release): Renamed to ...
10776         (record_full_end_release): ... this. Updated all users.
10777         (record_entry_release): Renamed to ...
10778         (record_full_entry_release): ... this. Updated all users.
10779         (record_list_release): Renamed to ...
10780         (record_full_list_release): ... this. Updated all users.
10781         (record_list_release_following): Renamed to ...
10782         (record_full_list_release_following): ... this.
10783         Updated all users.
10784         (record_list_release_first): Renamed to ...
10785         (record_full_list_release_first): ... this. Updated all users.
10786         (record_arch_list_add): Renamed to ...
10787         (record_full_arch_list_add): ... this. Updated all users.
10788         (record_get_loc): Renamed to ...
10789         (record_full_get_loc): ... this. Updated all users.
10790         (record_check_insn_num): Renamed to ...
10791         (record_full_check_insn_num): ... this. Updated all users.
10792         (record_arch_list_cleanups): Renamed to ...
10793         (record_full_arch_list_cleanups): ... this. Updated all users.
10794         (record_message): Renamed to ...
10795         (record_full_message): ... this. Updated all users.
10796         (record_message_wrapper): Renamed to ...
10797         (record_full_message_wrapper): ... this. Updated all users.
10798         (record_message_wrapper_safe): Renamed to ...
10799         (record_full_message_wrapper_safe): ... this. Updated all users.
10800         (record_gdb_operation_disable): Renamed to ...
10801         (record_full_gdb_operation_disable): ... this. Updated all users.
10802         (record_hw_watchpoint): Renamed to ...
10803         (record_full_hw_watchpoint): ... this. Updated all users.
10804         (record_exec_insn): Renamed to ...
10805         (record_full_exec_insn): ... this. Updated all users.
10806         (record_restore): Renamed to ...
10807         (record_full_restore): ... this. Updated all users.
10808         (record_async_inferior_event_token): Renamed to ...
10809         (record_full_async_inferior_event_token): ... this.
10810         Updated all users.
10811         (record_async_inferior_event_handler): Renamed to ...
10812         (record_full_async_inferior_event_handler): ... this.
10813         Updated all users.
10814         (record_core_open_1): Renamed to ...
10815         (record_full_core_open_1): ... this. Updated all users.
10816         (record_open_1): Renamed to ...
10817         (record_full_open_1): ... this. Updated all users.
10818         (record_open): Renamed to ...
10819         (record_full_open): ... this. Updated all users.
10820         (record_close): Renamed to ...
10821         (record_full_close): ... this. Updated all users.
10822         (record_resume_step): Renamed to ...
10823         (record_full_resume_step): ... this. Updated all users.
10824         (record_resumed): Renamed to ...
10825         (record_full_resumed): ... this. Updated all users.
10826         (record_execution_dir): Renamed to ...
10827         (record_full_execution_dir): ... this. Updated all users.
10828         (record_resume): Renamed to ...
10829         (record_full_resume): ... this. Updated all users.
10830         (record_get_sig): Renamed to ...
10831         (record_full_get_sig): ... this. Updated all users.
10832         (record_sig_handler): Renamed to ...
10833         (record_full_sig_handler): ... this. Updated all users.
10834         (record_wait_cleanups): Renamed to ...
10835         (record_full_wait_cleanups): ... this. Updated all users.
10836         (record_wait_1): Renamed to ...
10837         (record_full_wait_1): ... this. Updated all users.
10838         (record_wait): Renamed to ...
10839         (record_full_wait): ... this. Updated all users.
10840         (record_stopped_by_watchpoint): Renamed to ...
10841         (record_full_stopped_by_watchpoint): ... this. Updated all users.
10842         (record_disconnect): Renamed to ...
10843         (record_full_disconnect): ... this. Updated all users.
10844         (record_detach): Renamed to ...
10845         (record_full_detach): ... this. Updated all users.
10846         (record_mourn_inferior): Renamed to ...
10847         (record_full_mourn_inferior): ... this. Updated all users.
10848         (record_kill): Renamed to ...
10849         (record_full_kill): ... this. Updated all users.
10850         (record_stopped_data_address): Renamed to ...
10851         (record_full_stopped_data_address): ... this. Updated all users.
10852         (record_registers_change): Renamed to ...
10853         (record_full_registers_change): ... this. Updated all users.
10854         (record_store_registers): Renamed to ...
10855         (record_full_store_registers): ... this. Updated all users.
10856         (record_xfer_partial): Renamed to ...
10857         (record_full_xfer_partial): ... this. Updated all users.
10858         (record_breakpoint): Renamed to ...
10859         (record_full_breakpoint): ... this. Updated all users.
10860         (record_breakpoint_p): Renamed to ...
10861         (record_full_breakpoint_p): ... this. Updated all users.
10862         (record_breakpoints): Renamed to ...
10863         (record_full_breakpoints): ... this. Updated all users.
10864         (record_sync_record_breakpoints): Renamed to ...
10865         (record_full_sync_record_breakpoints): ... this.
10866         Updated all users.
10867         (record_init_record_breakpoints): Renamed to ...
10868         (record_full_init_record_breakpoints): ... this.
10869         Updated all users.
10870         (record_insert_breakpoint): Renamed to ...
10871         (record_full_insert_breakpoint): ... this. Updated all users.
10872         (record_remove_breakpoint): Renamed to ...
10873         (record_full_remove_breakpoint): ... this. Updated all users.
10874         (record_can_execute_reverse): Renamed to ...
10875         (record_full_can_execute_reverse): ... this. Updated all users.
10876         (record_get_bookmark): Renamed to ...
10877         (record_full_get_bookmark): ... this. Updated all users.
10878         (record_goto_bookmark): Renamed to ...
10879         (record_full_goto_bookmark): ... this. Updated all users.
10880         (record_async): Renamed to ...
10881         (record_full_async): ... this. Updated all users.
10882         (record_can_async_p): Renamed to ...
10883         (record_full_can_async_p): ... this. Updated all users.
10884         (record_is_async_p): Renamed to ...
10885         (record_full_is_async_p): ... this. Updated all users.
10886         (record_execution_direction): Renamed to ...
10887         (record_full_execution_direction): ... this. Updated all users.
10888         (record_info): Renamed to ...
10889         (record_full_info): ... this. Updated all users.
10890         (record_delete): Renamed to ...
10891         (record_full_delete): ... this. Updated all users.
10892         (record_is_replaying): Renamed to ...
10893         (record_full_is_replaying): ... this. Updated all users.
10894         (record_goto_entry): Renamed to ...
10895         (record_full_goto_entry): ... this. Updated all users.
10896         (record_goto_begin): Renamed to ...
10897         (record_full_goto_begin): ... this. Updated all users.
10898         (record_goto_end): Renamed to ...
10899         (record_full_goto_end): ... this. Updated all users.
10900         (record_goto): Renamed to ...
10901         (record_full_goto): ... this. Updated all users.
10902         (init_record_ops): Renamed to ...
10903         (init_record_full_ops): ... this. Updated all users.
10904         (record_core_resume): Renamed to ...
10905         (record_full_core_resume): ... this. Updated all users.
10906         (record_core_kill): Renamed to ...
10907         (record_full_core_kill): ... this. Updated all users.
10908         (record_core_fetch_registers): Renamed to ...
10909         (record_full_core_fetch_registers): ... this. Updated all users.
10910         (record_core_prepare_to_store): Renamed to ...
10911         (record_full_core_prepare_to_store): ... this. Updated all users.
10912         (record_core_store_registers): Renamed to ...
10913         (record_full_core_store_registers): ... this. Updated all users.
10914         (record_core_xfer_partial): Renamed to ...
10915         (record_full_core_xfer_partial): ... this. Updated all users.
10916         (record_core_insert_breakpoint): Renamed to ...
10917         (record_full_core_insert_breakpoint): ... this. Updated all users.
10918         (record_core_remove_breakpoint): Renamed to ...
10919         (record_full_core_remove_breakpoint): ... this. Updated all users.
10920         (record_core_has_execution): Renamed to ...
10921         (record_full_core_has_execution): ... this. Updated all users.
10922         (init_record_core_ops): Renamed to ...
10923         (init_record_full_core_ops): ... this. Updated all users.
10924         (cmd_record_restore): Renamed to ...
10925         (cmd_record_full_restore): ... this. Updated all users.
10926         (record_save_cleanups): Renamed to ...
10927         (record_full_save_cleanups): ... this. Updated all users.
10928         (cmd_record_start): Renamed to ...
10929         (cmd_record_full_start): ... this. Updated all users.
10930         (set_record_insn_max_num): Renamed to ...
10931         (set_record_full_insn_max_num): ... this. Updated all users.
10932         (set_record_command): Renamed to ...
10933         (set_record_full_command): ... this. Updated all users.
10934         (show_record_command): Renamed to ...
10935         (show_record_full_command): ... this. Updated all users.
10936         (_initialize_record): Renamed to ...
10937         (_initialize_record_full): ... this. Updated all users.
10938
10939 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
10940
10941         * record.h: Split into this and ...
10942         * record-full.h: ... this.
10943         * record.c: Split into this and ...
10944         * record-full.c: ... this.
10945         * target.h (target_ops): Add new fields to_info_record,
10946         to_save_record, to_delete_record, to_record_is_replaying,
10947         to_goto_record_begin, to_goto_record_end, to_goto_record.
10948         (target_info_record): New.
10949         (target_save_record): New.
10950         (target_supports_delete_record): New.
10951         (target_delete_record): New.
10952         (target_record_is_replaying): New.
10953         (target_goto_record_begin): New.
10954         (target_goto_record_end): New.
10955         (target_goto_record): New.
10956         * target.c (target_info_record): New.
10957         (target_save_record): New.
10958         (target_supports_delete_record): New.
10959         (target_delete_record): New.
10960         (target_record_is_replaying): New.
10961         (target_goto_record_begin): New.
10962         (target_goto_record_end): New.
10963         (target_goto_record): New.
10964         * record.h: Declare struct cmd_list_element.
10965         (record_cmdlist): New declaration.
10966         (set_record_cmdlist): New declaration.
10967         (show_record_cmdlist): New declaration.
10968         (info_record_cmdlist): New declaration.
10969         (cmd_record_goto): New declaration.
10970         * record.c: Remove unnecessary includes.
10971         Include inferior.h.
10972         (cmd_record_goto): Remove declaration.
10973         (record_cmdlist): Now extern. Initialize.
10974         (set_record_cmdlist): Now extern. Initialize.
10975         (show_record_cmdlist): Now extern. Initialize.
10976         (info_record_cmdlist): Now extern. Initialize.
10977         (find_record_target): New.
10978         (require_record_target): New.
10979         (cmd_record_start): Update.
10980         (cmd_record_delete): Remove target-specific code.
10981         Call target_delete_record.
10982         (cmd_record_stop): Unpush any record target.
10983         (set_record_insn_max_num): Move to record-full.c
10984         (set_record_command): Add comment.
10985         (show_record_command): Add comment.
10986         (info_record_command): Update comment.
10987         Remove target-specific code.
10988         Call the record target's to_info_record.
10989         (cmd_record_start): New.
10990         (cmd_record_goto): Now extern.
10991         Remove target-specific code.
10992         Call target_goto_begin,  target_goto_end, or target_goto.
10993         (_initialize_record): Move record target ops initialization to
10994         record-full.c.
10995         Change "record" command help text.
10996         Move "record restore", "record set", and "record show" commands to
10997         record-full.c.
10998         * Makefile.in (SFILES): Add record-full.c.
10999         (HFILES_NO_SRCDIR): Add record-full.h.
11000         (COMMON_OBS): Add record-full.o.
11001         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
11002         * arm-tdep.c: Include record-full.h.
11003         * i386-linux-tdep.c: Include record-full.h instead of record.h.
11004         * i386-tdep.c: Include record-full.h.
11005         * infrun.c: Include record-full.h.
11006         * linux-record.c: Include record-full.h.
11007         * moxie-tdep.c: Include record-full.h.
11008         * record-full.c: Include record-full.h.
11009         Change module comment.
11010         (set_record_full_cmdlist): New.
11011         (show_record_full_cmdlist): New.
11012         (record_full_cmdlist): New.
11013         (record_goto_insn): New declaration.
11014         (record_save): New declaration.
11015         (record_check_insn_num): Change query string.
11016         (record_info): New.
11017         (record_delete): New.
11018         (record_is_replaying): New.
11019         (record_goto_entry): New.
11020         (record_goto_begin): New.
11021         (record_goto_end): New.
11022         (record_goto): New.
11023         (init_record_ops): Update.
11024         (init_record_core_ops): Update.
11025         (cmd_record_save): Rename to record_save. Remove target and arg checks.
11026         (cmd_record_start): New.
11027         (set_record_insn_max_num): Moved from record.c
11028         (set_record_full_command): New.
11029         (show_record_full_command): New.
11030         (_initialize_record_full): New.
11031
11032 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11033
11034         * target.h (add_deprecated_target_alias): New.
11035         * target.c (add_deprecated_target_alias): New.
11036
11037 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11038
11039         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
11040         and signal.h.
11041         (linux_supports_btrace): Add kernel and
11042         cpuid check.
11043         (kernel_supports_btrace): New function.
11044         (cpu_supports_btrace): New function.
11045         (intel_supports_btrace): New function.
11046
11047 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11048
11049         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
11050         * remote.c: Include btrace.h.
11051         (struct btrace_target_info): New struct.
11052         (remote_supports_btrace): New function.
11053         (send_Qbtrace): New function.
11054         (remote_enable_btrace): New function.
11055         (remote_disable_btrace): New function.
11056         (remote_teardown_btrace): New function.
11057         (remote_read_btrace): New function.
11058         (init_remote_ops): Add btrace ops.
11059         (enum <unnamed>): Add btrace packets.
11060         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
11061         (_initialize_remote): Add packet configuration for branch tracing.
11062
11063 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11064
11065         * features/btrace.dtd: New file.
11066         * Makefile.in (XMLFILES): Add btrace.dtd.
11067         * btrace.h (parse_xml_btrace): New declaration.
11068         * btrace.c: Include xml-support.h.
11069         (parse_xml_btrace): New function.
11070         (parse_xml_btrace_block): New function.
11071         (block_attributes): New struct.
11072         (btrace_attributes): New struct.
11073         (btrace_children): New struct.
11074         (btrace_elements): New struct.
11075
11076 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11077
11078         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
11079         (amd64_linux_enable_btrace): New.
11080         (amd64_linux_disable_btrace): New.
11081         (amd64_linux_teardown_btrace): New.
11082         (_initialize_amd64_linux_nat): Initialize btrace ops.
11083         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
11084         (i386_linux_enable_btrace): New.
11085         (i386_linux_disable_btrace): New.
11086         (i386_linux_teardown_btrace): New.
11087         (_initialize_i386_linux_nat): Initialize btrace ops.
11088         * config/i386/linux.mh: Add linux-btrace.o.
11089         * config/i386/linux64.mh: Add linux-btrace.o.
11090
11091 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11092
11093         * common/linux_btrace.h: New file.
11094         * common/linux_btrace.c: New file.
11095         * Makefile.in (SFILES): Add btrace.c.
11096         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
11097         (COMMON_OBS): Add btrace.o.
11098         (linux-btrace.o): New rule.
11099
11100 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
11101
11102         * target.h: Include btrace.h.
11103         (struct target_ops) <to_supports_btrace, to_enable_btrace,
11104         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
11105         * target.c (target_supports_btrace): New function.
11106         (target_enable_btrace): New function.
11107         (target_disable_btrace): New function.
11108         (target_teardown_btrace): New function.
11109         (target_read_btrace): New function.
11110         * btrace.h: New file.
11111         * btrace.c: New file.
11112         * Makefile.in: Add btrace.c.
11113         * gdbthread.h: Include btrace.h.
11114         (struct thread_info): Add btrace field.
11115         * thread.c: Include btrace.h.
11116         (clear_thread_inferior_resources): Call target_teardown_btrace.
11117         * common/btrace-common.h: New file.
11118
11119 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11120
11121         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11122         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11123         kill_status to outer block.
11124
11125 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11126
11127         Fix entry-values if the callee called a noreturn function.
11128         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11129         get_frame_address_in_block.  Add new comment.
11130
11131 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11132
11133         Fix entry-values in C++ across CUs.
11134         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11135         lookup_minimal_symbol.  Add a comment.
11136         * dwarf2read.c
11137         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11138         DW_AT_linkage_name.
11139
11140 2013-03-08  Yao Qi  <yao@codesourcery.com>
11141
11142         * tracepoint.c (_initialize_tracepoint): Indent the code.
11143
11144 2013-03-08  Pedro Alves  <palves@redhat.com>
11145
11146         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11147         (parse_find_args, find_command): Change type of pattern buffer
11148         locals to 'gdb_byte *'.
11149
11150 2013-03-08  Stan Shebs  <stan@codesourcery.com>
11151             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11152
11153         * NEWS: Mention set and show trace-buffer-size commands.
11154         Mention new packet.
11155         * target.h (struct target_ops): New method
11156         to_set_trace_buffer_size.
11157         (target_set_trace_buffer_size): New macro.
11158         * target.c (update_current_target): Set up new method.
11159         * tracepoint.c (trace_buffer_size): New global.
11160         (start_tracing): Send it to the target.
11161         (set_trace_buffer_size): New function.
11162         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11163         * remote.c (remote_set_trace_buffer_size): New function.
11164         (_initialize_remote): Use it.
11165         (QTBuffer:size) New remote command.
11166         (PACKET_QTBuffer_size): New enum.
11167         (remote_protocol_features): Add an entry for
11168         PACKET_QTBuffer_size.
11169
11170 2013-03-08  Tom Tromey  <tromey@redhat.com>
11171
11172         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11173         variable.
11174
11175 2013-03-07  Pedro Alves  <palves@redhat.com>
11176
11177         * target.c (target_read_stralloc, target_fileio_read_alloc):
11178         *Cast pointer to 'gdb_byte *' in target call.
11179
11180 2013-03-07  Pedro Alves  <palves@redhat.com>
11181
11182         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11183         call.
11184
11185 2013-03-07  Keith Seitz  <keiths@redhat.com>
11186
11187         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11188         (trace_pass_command): Likewise.
11189         * cli/cli-cmds.c: Include cli/cli-utils.h.
11190         (source_command): Use skip-spaces.
11191         (disassemble_command): Likewise.
11192         * findcmd.c: Include cli/cli-utils.h.
11193         (parse_find_args): Use skip_spaces.
11194         * go32-nat.c: Include cli/cli-utils.h.
11195         (go32_sldt): Use skip_spaces.
11196         (go32_sgdt): Likewise.
11197         (go32_sidt): Likewise.
11198         (go32_pde): Likewise.
11199         (go32_pte): Likewise.
11200         (go32_pte_for_address): Likewise.
11201         * infcmd.c: Include cli/cli-utils.h.
11202         (registers_info): Use skip_spaces.
11203         * linux-tdep.c (read_mapping): Use skip_spaces_const.
11204         (linux_info_proc): Likewise.
11205         * linux-thread-db.c: Include cli/cli-utils.h.
11206         (info_auto_load_libthread_db): Use skip_spaces_const.
11207         * m32r-rom.c: Include cli/cli-utils.h.
11208         (m32r_upload_command): Use skip_spaces.
11209         * maint.c: Include cli/cli-utils.h.
11210         (maintenance_translate_address): Use skip_spaces.
11211         * mi/mi-parse.c: Include cli/cli-utils.h.
11212         (mi_parse_argv): Use skip_spaces.
11213         (mi_parse): Likewise.
11214         * minsyms.c: Include cli/cli-utils.h.
11215         (msymbol_hash_iw): Use skip_spaces_const.
11216         * objc-lang.c: Include cli/cli-utils.h.
11217         (parse_selector): Use skip_spaces.
11218         (parse_method): Likewise.
11219         * python/python.c: Include cli/cli-utils.h.
11220         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11221         (python_command)[HAVE_PYTHON]: Likewise.
11222         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11223         * remote-m32r-sdi.c: Include cli/cli-utils.h.
11224         (m32r_load): Use skip_spaces.
11225         * serial.c: Include cli/cli-utils.h.
11226         (serial_open): Use skip_spaces_const.
11227         * stack.c: Include cli/cli-utils.h.
11228         (parse_frame_specification_1): Use skip_spaces_const.
11229         * symfile.c: Include cli/cli-utils.h.
11230         (set_ext_lang_command): Use skip_spaces.
11231         * symtab.c: Include cli/cli-utils.h.
11232         (rbreak_command): Use skip_spaces.
11233         * thread.c (thread_name_command): Use skip_spaces.
11234         * tracepoint.c (validate_actionline): Use skip_spaces.
11235         (encode_actions_1): Likewise.
11236         (trace_find_range_command): Likewise.
11237         (trace_find_outside_command): Likewise.
11238         (trace_dump_actions): Likewise.
11239
11240 2013-03-07  Pedro Alves  <palves@redhat.com>
11241
11242         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11243         * expprint.c (print_subexp_standard): Likewise.
11244         * utils.c (host_char_to_target): Likewise.
11245         * valprint.c (generic_emit_char, generic_printstr): Likewise.
11246         * varobj.c (value_get_print_value): Change type of local to char*.
11247         Cast it gdb_byte * in call to language printer.
11248
11249 2013-03-07  Pedro Alves  <palves@redhat.com>
11250
11251         * charset.c (struct wchar_iterator) <input>: Change type to 'const
11252         gdb_byte *'.
11253         (make_wchar_iterator): Remove cast to char*.
11254         (wchar_iterate): Change type of local.
11255
11256 2013-03-07  Pedro Alves  <palves@redhat.com>
11257
11258         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11259         for 'regcache->register_status'.
11260
11261 2013-03-07  Pedro Alves  <palves@redhat.com>
11262
11263         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11264         int.
11265
11266 2013-03-07  Pedro Alves  <palves@redhat.com>
11267
11268         * stap-probe.c (handle_stap_probe): Add cast to char*.
11269
11270 2013-03-07  Pedro Alves  <palves@redhat.com>
11271
11272         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11273         RECORD_MSGRCV>: Pass a signed variable to
11274         regcache_raw_read_signed, instead of an unsigned one.
11275
11276 2013-03-07  Pedro Alves  <palves@redhat.com>
11277
11278         * remote-notif.c (notif_debug): Change type to int.
11279         * remote-notif.h (notif_debug): Likewise.
11280
11281 2013-03-07  Pedro Alves  <palves@redhat.com>
11282
11283         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11284
11285 2013-03-07  Pedro Alves  <palves@redhat.com>
11286
11287         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11288         * remote.h (hex2bin, bin2hex): ... here.
11289         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11290
11291 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
11292
11293         * utils.c (initialize_utils): Improve doc strings of "set/show
11294         width", "set/show height", and "set/show pagination".
11295
11296 2013-03-06  Keith Seitz  <keiths@redhat.com>
11297
11298         * ax-gdb.c (gen_printf): Make FORMAT const.
11299         * ax-gdb.h (gen_printf): Likewise.
11300         * ax-general.c (ax_string): Make STR const.
11301         * ax.h (ax_string): Likewise.
11302
11303 2013-03-06  Doug Evans  <dje@google.com>
11304
11305         * elfread.c (elf_symfile_read): Move debugging printf to more
11306         logical location.
11307
11308 2013-03-06  Pedro Alves  <palves@redhat.com>
11309
11310         * python/py-utils.c (target_string_to_unicode): Delete function.
11311         * python/python-internal.h (target_string_to_unicode): Delete
11312         declaration.
11313
11314 2013-03-06  Pierre Muller  <muller@sourceware.org>
11315
11316         * linespec.c (get_current_search_block): ARI fix, use (void)
11317         for empty parameter list.
11318
11319 2013-03-05  Doug Evans  <dje@google.com>
11320
11321         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11322         of old ada_lookup_symbol_list.  In !full_search case, don't
11323         search superblocks.
11324         (ada_lookup_symbol_list): Delete arg full_search, all callers
11325         updated.  Call ada_lookup_symbol_list_worker.
11326         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11327         * ada-lang.h (ada_lookup_symbol_list): Update.
11328         * language.h (language_defn): Update comment for
11329         la_iterate_over_symbols.
11330         * linespec.c (iterate_over_file_blocks): New function.
11331         (iterate_over_all_matching_symtabs): Call it.
11332         (lookup_prefix_sym): Ditto.
11333         (get_current_search_block): New function.
11334         (get_search_block): Delete.
11335         (find_label_symbols): Call get_current_search_block.
11336         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11337         * symtab.c (iterate_over_symbols): Don't search superblocks.
11338
11339 2013-03-05  Yao Qi  <yao@codesourcery.com>
11340
11341         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11342         parameter VAR's type from "unsigned int" to "int".
11343         * command.h (var_zuinteger_unlimited): Update its comments.
11344         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11345
11346 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
11347
11348         * NEWS: Mention new target x86_64-*-cygwin*.
11349
11350 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
11351
11352         * configure.host: Add x86_64-*-cygwin* as host.
11353         * configure.tgt: Add x86_64-*-cygwin* as target.
11354         * config/i386/cygwin64.mh: New file.
11355
11356 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11357
11358         * linespec.c (decode_line_2): Fix duplicate request off by two message.
11359
11360 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11361
11362         * linespec.c (struct linespec_canonical_name): New.
11363         (struct linespec_state): Change canonical_names type to it.
11364         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
11365         xrealloc element size.  Initialize the different CANONICAL fields.
11366         (canonical_to_fullform): New.
11367         (filter_results): Use it.  Add variables canonical, fullform and
11368         cleanup.
11369         (struct decode_line_2_item, decode_line_2_compare_items): New.
11370         (decode_line_2): Remove variables iter and item_names, add variables
11371         items and items_count.  Modify the code for these new variables.
11372
11373 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
11374
11375         * coff-pe-read.c (read_pe_exported_syms): Don't return without
11376         calling do_cleanup.
11377
11378 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
11379
11380         * tracepoint.c (build_traceframe_info): Add code for byte order.
11381
11382 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
11383
11384         * v850-tdep.c: (v850e2_register_name): Revise system register
11385         names to match current V850E2M architecture specifications.
11386         Update register number enum comments too.
11387
11388 2013-03-01  Jiong Wang  <jiwang@tilera.com>
11389             Pedro Alves  <palves@redhat.com>
11390
11391         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11392         to END_ADDR.
11393         (tilegx_skip_prologue): Limit prologue analysis to section end.
11394
11395 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11396
11397         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11398         use it.
11399
11400 2013-03-01  Pedro Alves  <palves@redhat.com>
11401
11402         Use gdb_byte for bytes from the program being debugged.
11403
11404         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11405         Change type of local 'buf' to gdb_byte.
11406         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11407         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11408         * cris-tdep.c (cris_sigcontext_addr)
11409         (cris_sigtramp_frame_unwind_cache): Likewise.
11410         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11411         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11412         Likewise.
11413         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11414         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11415         (hppa32_hpux_search_dummy_call_sequence)
11416         (hppa_hpux_supply_save_state): Likewise.
11417         * hppa-linux-tdep.c (insns_match_pattern)
11418         (hppa_linux_find_global_pointer): Likewise.
11419         * hppa-tdep.c (hppa_in_function_epilogue_p)
11420         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11421         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11422         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11423         (i386fbsd_collect_uthread): Likewise.
11424         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11425         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11426         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11427         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11428         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11429         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11430         (ia64_libunwind_frame_prev_register)
11431         (ia64_libunwind_sigtramp_frame_this_id)
11432         (ia64_find_global_pointer_from_dynamic_section)
11433         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11434         (ia64_unwind_pc): Likewise.
11435         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11436         * m68hc11-tdep.c (m68hc11_push_dummy_call)
11437         (m68hc11_extract_return_value): Likewise.
11438         * m68klinux-nat.c (fetch_register, store_register): Likewise.
11439         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11440         (mep_get_insn, mep_push_dummy_call): Likewise.
11441         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11442         (mips_linux_in_dynsym_stub): Likewise.
11443         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11444         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11445         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11446         to gdb_byte.
11447         * remote-mips.c (mips_set_register): Likewise.
11448         * remote-sim.c (gdbsim_fetch_register): Likewise.
11449         * score-tdep.c (score7_fetch_inst): Change type of parameter
11450         'memblock' and local 'buf' to gdb_byte.
11451         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11452         Change type of local 'buf' to gdb_byte.  Adjust.
11453         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11454         to gdb_byte**.
11455         (score7_analyze_prologue): Change type of 'memblock' and
11456         'memblock_ptr' locals to gdb_byte*.
11457         * sh64-tdep.c (sh64_extract_return_value)
11458         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11459         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11460         * solib-pa64.c (pa64_solib_create_inferior_hook)
11461         (pa64_open_symbol_file_object): Remove local 'buf'.
11462         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11463         (som_open_symbol_file_object): Likewise.
11464         * solib-spu.c (spu_current_sos): Likewise.
11465         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11466         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11467         (spu_store_registers): Likewise.
11468         * target.c (debug_print_register): Likewise.
11469         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11470         * xstormy16-tdep.c (xstormy16_store_return_value)
11471         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11472         (xstormy16_find_jmp_table_entry): Likewise.
11473
11474 2013-03-01  Jiong Wang  <jiwang@tilera.com>
11475
11476         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11477         (tilegx_gdbarch_init): Install it.
11478
11479 2013-02-28  Tom Tromey  <tromey@redhat.com>
11480
11481         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11482         PyLong_Check.
11483
11484 2013-02-28  Doug Evans  <dje@google.com>
11485
11486         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11487         * python/python.c (gdbpy_find_pc_line): Ditto.
11488
11489 2013-02-28  Tom Tromey  <tromey@redhat.com>
11490
11491         * contrib/excheck.py: New file.
11492         * contrib/exsummary.py: New file.
11493         * contrib/gcc-with-excheck: New file.
11494
11495 2013-02-28  Tom Tromey  <tromey@redhat.com>
11496
11497         * python/python.c (gdbpy_print_stack): Call begin_line and
11498         fprintf_filtered inside TRY_CATCH.
11499
11500 2013-02-28  Tom Tromey  <tromey@redhat.com>
11501
11502         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11503         inside TRY_CATCH.
11504
11505 2013-02-28  Tom Tromey  <tromey@redhat.com>
11506
11507         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11508         frame_object_to_frame_info inside TRY_CATCH.
11509
11510 2013-02-28  Tom Tromey  <tromey@redhat.com>
11511
11512         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11513         TRY_CATCH.
11514
11515 2013-02-28  Tom Tromey  <tromey@redhat.com>
11516
11517         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11518
11519 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
11520
11521         * windows-nat.c: Throughout, fix format strings and casts of
11522         printf-like functions to avoid type related warnings on all
11523         platforms.
11524         (handle_output_debug_string): Fetch context information address
11525         from debug string using string_to_core_addr.
11526
11527 2013-02-27  Jiong Wang  <jiwang@tilera.com>
11528
11529         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11530         * regformats/reg-tilegx32.dat: New.
11531
11532 2013-02-27  Jiong Wang  <jiwang@tilera.com>
11533
11534         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11535
11536 2013-02-27  Jiong Wang  <jiwang@tilera.com>
11537
11538         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11539
11540 2013-02-27  Yao Qi  <yao@codesourcery.com>
11541             Pedro Alves  <palves@redhat.com>
11542
11543         * tracepoint.c (tfile_trace_find): For tfind
11544         pc/tp/range/outside, look for the next trace frame instead of
11545         always starting from frame 0.
11546
11547 2013-02-26  Anthony Green  <green@moxielogic.com>
11548
11549         * configure.tgt: Add support for moxie-*-rtems* target.
11550
11551 2013-02-25  Pedro Alves  <palves@redhat.com>
11552
11553         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11554         warning text.
11555
11556 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
11557
11558         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11559         if $fp is used as the virtual frame pointer.
11560
11561 2013-02-23  Alan Modra  <amodra@gmail.com>
11562
11563         * elfread.c (elf_symtab_read): Do not use udata.p here to find
11564         symbol size.
11565         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11566         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11567         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11568         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11569
11570 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
11571
11572         Code cleanup.
11573         * elfread.c (build_id_bfd_get): Make the return type const.
11574         (build_id_verify): Make the check parameter const.
11575         (build_id_to_debug_filename): Make the build_id parameter and variable
11576         data const.
11577         (find_separate_debug_file_by_buildid): Make the variable build_id const.
11578
11579 2013-02-21  Alan Modra  <amodra@gmail.com>
11580
11581         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11582
11583 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
11584
11585         Add a new method 'disassemble' to gdb.Architecture class.
11586         * python/py-arch.c (archpy_disassmble): Implementation of the
11587         new method gdb.Architecture.disassemble.
11588         (arch_object_methods): Add entry for the new method.
11589
11590 2013-02-20  Jiong Wang  <jiwang@tilera.com>
11591
11592         * MAINTAINERS (Write After Approval): Add myself to the list.
11593
11594 2013-02-19  Pedro Alves  <palves@redhat.com>
11595
11596         Garbage collect 'struct monitor_ops'::load_routine.
11597
11598         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11599         * monitor.c (monitor_load): No longer call
11600         current_monitor->load_routine.
11601         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11602         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11603         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11604
11605 2013-02-19  Pedro Alves  <palves@redhat.com>
11606
11607         PR gdb/15161
11608
11609         Harmonize with generic_load.
11610
11611         * monitor.c: Include "readline/readline.h".
11612         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
11613         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
11614         long/strtol for the 'load_offset' local.  Error out if no argument
11615         is given or if too many arguments are given.  Tilde expand the
11616         passed in file name.
11617
11618 2013-02-19  Kai Tietz  <ktietz@redhat.com>
11619
11620         PR gdb/15161
11621         * symfile.c (load_section_data): Change type of load_offset
11622         to CORE_ADDR.
11623         (generic_load): User strtoulst instead of strtoul for conversion
11624         of load_offset.
11625
11626 2013-02-19  Jiong Wang  <jiwang@tilera.com>
11627
11628         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11629          for return address, "lr" register, saved on stack.
11630         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11631         after we invoke tilegx_analyze_prologue.
11632
11633 2013-02-19  Jiong Wang  <jiwang@tilera.com>
11634
11635         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11636
11637 2013-02-19  Jiong Wang  <jiwang@tilera.com>
11638
11639         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11640
11641 2013-02-19  Jiong Wang  <jiwang@tilera.com>
11642
11643         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11644         (tilegx_write_pc): New function.
11645         (tilegx_cannot_reference_register): Return zero if REGNO
11646         is TILEGX_FAULTNUM_REGNUM.
11647         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11648         (tilegx_register_name): Add handling of "faultnum" register.
11649         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11650         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11651         handling of TILEGX_FAULTNUM_REGNUM.
11652         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11653
11654 2013-02-19  Jiong Wang  <jiwang@tilera.com>
11655
11656         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11657         should be aligned to 64bit.
11658
11659 2013-02-19  Kai Tietz  <ktietz@redhat.com>
11660
11661         * windows-nat.c (windows_xfer_memory): Fix debug-output
11662         for LLP64.
11663
11664 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
11665
11666         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11667         Don't check DSP register number if HAVE_DSP is not set.
11668
11669 2013-02-19  Alan Modra  <amodra@gmail.com>
11670
11671         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
11672         throughout file instead.
11673         (build_id_bfd_get): Update to use new elf_tdata build_id field.
11674         Don't xmalloc return value.
11675         (build_id_verify): Similarly.  Don't xfree.
11676         (build_id_to_debug_filename): Update.
11677         (find_separate_debug_file_by_buildid): Update, don't xfree.
11678
11679 2013-02-18  Tom Tromey  <tromey@redhat.com>
11680
11681         PR gdb/15102:
11682         * dwarf2read.c (read_subrange_type): Use result of
11683         'check_typedef'.
11684
11685 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
11686
11687         * frame.c: Remove one extra white space after #include
11688         directive.
11689
11690 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11691
11692         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11693
11694 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
11695
11696         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11697         and dir commands into an if block.
11698
11699 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
11700
11701         * python/py-breakpoint (struct pybp_code):  Use int instead of
11702         enum type_code.
11703
11704 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
11705             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11706
11707         * NEWS: Mention new field "trace-file".
11708         * tracepoint.c (trace_status_mi): Output "trace-file" field.
11709         (tfile_open): Record the trace file's filename in the trace
11710         status.
11711         (tfile_files_info): Mention the name of the trace file.
11712         Check the "filename" field explicitely.
11713         (trace_status_command): Explicitely check "filename" field.
11714         (trace_find_command): Ditto.
11715         (trace_find_pc_command): Ditto.
11716         (trace_find_tracepoint_command): Ditto.
11717         (trace_find_line_command): Ditto.
11718         (trace_find_range_command): Ditto.
11719         (trace_find_outside_command): Ditto.
11720         * tracepoint.h (struct trace_status) <from_file>: Rename it
11721         to "filename" and make it hold the trace file's filename
11722         instead of a boolean.
11723         * remote.c (remote_get_trace_status): Initialize "filename"
11724         field with NULL instead of 0.
11725
11726 2013-02-15  Yao Qi  <yao@codesourcery.com>
11727
11728         * remote.c: Fix a typo.
11729
11730 2013-02-14  Pierre Muller  <muller@sourceware.org>
11731
11732         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11733
11734 2013-02-14  Pedro Alves  <palves@redhat.com>
11735
11736         * utils.c (savestring): Don't #undef it.  Move function to
11737         common/common-utils.c.
11738         * common/common-utils.c: Include gdb_string.h.
11739         (savestring): Move here from utils.c.
11740         * common/common-utils.h (savestring): Declare.
11741
11742 2013-02-14  Pedro Alves  <palves@redhat.com>
11743
11744         * utils.c (savestring): Rename parameter 'size' to 'len'.
11745
11746 2013-02-14  Pedro Alves  <palves@redhat.com>
11747             Yufeng Zhang  <yufeng.zhang@arm.com>
11748
11749         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11750         (aarch64_inferior_data, struct aarch64_inferior_data):
11751         Delete.
11752         (struct aarch64_process_info): New.
11753         (aarch64_process_list): New global.
11754         (aarch64_find_process_pid, aarch64_add_process)
11755         (aarch64_process_info_get): New functions.
11756         (aarch64_inferior_data_get): Delete.
11757         (aarch64_process_info_get): New function.
11758         (aarch64_forget_process): New function.
11759         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
11760         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11761         aarch64_get_debug_reg_state.
11762         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11763         instead of linux_nat_iterate_watchpoint_lwps.
11764         (aarch64_linux_new_fork): New function.
11765         (aarch64_linux_child_post_startup_inferior): Use
11766         aarch64_forget_process instead of aarch64_init_debug_reg_state.
11767         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11768         (aarch64_linux_remove_hw_breakpoint)
11769         (aarch64_handle_aligned_watchpoint)
11770         (aarch64_handle_unaligned_watchpoint)
11771         (aarch64_linux_insert_watchpoint)
11772         (aarch64_linux_remove_watchpoint)
11773         (aarch64_linux_stopped_data_address): Adjust to pass the current
11774         process id to aarch64_debug_reg_state.
11775         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11776         linux_nat_new_fork hook, and aarch64_forget_process as
11777         linux_nat_forget_process hook; remove the call to
11778         register_inferior_data_with_cleanup.
11779
11780 2013-02-14  Pedro Alves  <palves@redhat.com>
11781
11782         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11783         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11784         lval_memory.
11785
11786 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
11787             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11788
11789         * tracepoint.h (validate_trace_state_variable_name): Declare.
11790         * tracepoint.c (validate_trace_state_variable_name): New.
11791         (trace_variable_command): Parse the trace state variable's name
11792         without using parse_expression.  Do several validations.
11793         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11794         trace state variable's name with parse_expression.  Validate it.
11795
11796 2013-02-14  Yao Qi  <yao@codesourcery.com>
11797
11798         * infcmd.c (breakpoint_proceeded): Remove it.
11799
11800 2013-02-14  Yao Qi  <yao@codesourcery.com>
11801
11802         * tracepoint.c (end_actions_pseudocommand): Make it static.
11803         (while_stepping_pseudocommand): Likewise.
11804         * tracepoint.h (end_actions_pseudocommand): Remove the
11805         declaration.
11806         (while_stepping_pseudocommand): Likewise.
11807
11808 2013-02-14  Yao Qi  <yao@codesourcery.com>
11809
11810         * cli/cli-decode.c (help_cmd): Remove the declaration of
11811         "cmdlist".
11812         (help_all): Likewise.
11813
11814 2013-02-13  Pedro Alves  <palves@redhat.com>
11815
11816         * amd64-linux-nat.c (update_debug_registers_callback):
11817         Update comment.
11818         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11819         iterate_over_lwps.
11820         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11821         i386_debug_reg_state.
11822         (amd64_linux_new_fork): New function.
11823         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11824         linux_nat_new_fork hook, and i386_forget_process as
11825         linux_nat_forget_process hook.
11826         * i386-linux-nat.c (update_debug_registers_callback):
11827         Update comment.
11828         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11829         iterate_over_lwps.
11830         (i386_linux_prepare_to_resume): Pass the lwp's pid to
11831         i386_debug_reg_state.
11832         (i386_linux_new_fork): New function.
11833         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11834         linux_nat_new_fork hook, and i386_forget_process as
11835         linux_nat_forget_process hook.
11836         * i386-nat.c (i386_init_dregs): Delete.
11837         (i386_inferior_data, struct i386_inferior_data):
11838         Delete.
11839         (struct i386_process_info): New.
11840         (i386_process_list): New global.
11841         (i386_find_process_pid, i386_add_process, i386_process_info_get):
11842         New functions.
11843         (i386_inferior_data_get): Delete.
11844         (i386_process_info_get): New function.
11845         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
11846         (i386_forget_process): New function.
11847         (i386_cleanup_dregs): Rewrite.
11848         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11849         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11850         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11851         (i386_remove_hw_breakpoint): Adjust to pass the current process id
11852         to i386_debug_reg_state.
11853         (i386_use_watchpoints): Don't register inferior data.
11854         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11855         adjust comment.
11856         (i386_forget_process): Declare.
11857         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11858         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11859         New static globals.
11860         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11861         (add_initial_lwp): New, factored out from ...
11862         (add_lwp): ... this.  Don't check the number of lwps before
11863         calling linux_nat_new_thread.
11864         (linux_nat_iterate_watchpoint_lwps): Delete.
11865         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11866         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11867         forks and vforks.
11868         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11869         initial lwp.
11870         (linux_nat_kill, linux_nat_mourn_inferior): Call
11871         linux_nat_forget_process.
11872         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11873         (linux_nat_forget_process): New functions.
11874         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11875         type.
11876         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11877         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11878         types.
11879         (linux_nat_set_new_fork, linux_nat_set_forget_process)
11880         (linux_nat_forget_process): New declarations.
11881
11882         * amd64fbsd-nat.c (super_mourn_inferior): New global.
11883         (amd64fbsd_mourn_inferior): New function.
11884         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11885         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11886
11887 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11888
11889         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11890         Adding _().
11891
11892 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11893
11894         * aarch64-linux-nat.c (debug_reg_change_callback)
11895         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11896         %s and phex().
11897
11898 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11899
11900         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11901         with LONGEST.
11902
11903 2013-02-13  Pedro Alves  <palves@redhat.com>
11904             Hafiz Abid Qadeer  <abidh@codesourcery.com>
11905
11906         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11907
11908 2013-02-12  Tom Tromey  <tromey@redhat.com>
11909
11910         PR symtab/11464:
11911         * c-exp.y (lex_one_token): Initialize other fields of yylval on
11912         NAME return.
11913         (classify_inner_name): Remove 'first_name' argument, add
11914         'context'.  Remove unused variable.
11915         (yylex): Explicitly maintain the context type.  Exit loop earlier
11916         if NAME result is seen.
11917
11918 2013-02-12  Pedro Alves  <palves@redhat.com>
11919
11920         * amd64-darwin-tdep.c: Add (C) after Copyright.
11921         * cli/cli-cmds.h: Ditto.
11922         * cli/cli-decode.c: Ditto.
11923         * cli/cli-decode.h: Ditto.
11924         * cli/cli-dump.c: Ditto.
11925         * cli/cli-dump.h: Ditto.
11926         * cli/cli-interp.c: Ditto.
11927         * cli/cli-logging.c: Ditto.
11928         * cli/cli-script.c: Ditto.
11929         * cli/cli-script.h: Ditto.
11930         * cli/cli-setshow.c: Ditto.
11931         * cli/cli-setshow.h: Ditto.
11932         * cli/cli-utils.c: Ditto.
11933         * cli/cli-utils.h: Ditto.
11934         * config/alpha/nm-osf3.h: Ditto.
11935         * config/djgpp/djconfig.sh: Ditto.
11936         * config/i386/nm-fbsd.h: Ditto.
11937         * config/i386/nm-i386gnu.h: Ditto.
11938         * config/nm-linux.h: Ditto.
11939         * config/nm-nto.h: Ditto.
11940         * config/rs6000/nm-rs6000.h: Ditto.
11941         * config/sparc/nm-sol2.h: Ditto.
11942         * darwin-nat-info.c: Ditto.
11943         * dfp.c: Ditto.
11944         * dfp.h: Ditto.
11945         * gdb-demangle.h: Ditto.
11946         * i386-darwin-nat.c: Ditto.
11947         * i386-darwin-tdep.c: Ditto.
11948         * linux-fork.h: Ditto.
11949         * m32c-tdep.c: Ditto.
11950         * microblaze-linux-tdep.c: Ditto.
11951         * microblaze-rom.c: Ditto.
11952         * microblaze-tdep.c: Ditto.
11953         * microblaze-tdep.h: Ditto.
11954         * mips-linux-tdep.h: Ditto.
11955         * ppc-ravenscar-thread.c: Ditto.
11956         * ppc-ravenscar-thread.h: Ditto.
11957         * prologue-value.c: Ditto.
11958         * prologue-value.h: Ditto.
11959         * ravenscar-thread.c: Ditto.
11960         * ravenscar-thread.h: Ditto.
11961         * sparc-ravenscar-thread.c: Ditto.
11962         * sparc-ravenscar-thread.h: Ditto.
11963         * tilegx-linux-tdep.c: Ditto.
11964         * unwind_stop_reasons.def: Ditto.
11965         * windows-nat.h: Ditto.
11966         * xtensa-linux-tdep.c: Ditto.
11967         * xtensa-xtregs.c: Ditto.
11968         * regformats/regdat.sh: Ditto.
11969         * regformats/regdef.h: Ditto.
11970
11971 2013-02-12  Pedro Alves  <palves@redhat.com>
11972
11973         * break-catch-sig.c: Update copyright years.
11974
11975 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
11976
11977         Add support for a destructor for ui_out data and use it to
11978         provide a ui_out destructor.
11979         * ui-out.h: Declare the new ui_out destructor.
11980         (ui_out_impl): Add a field for data destructor in ui_out_impl.
11981         * ui-out.c (default_data_destroy): Add a default data destructor
11982         which does nothing.
11983         (default_ui_out_impl): Set the new data_destroy field to
11984         default_data_destroy
11985         (uo_data_destroy): Local function which invokes the data
11986         destructor if present.
11987         (clear_table): Local function which clears the table data of a
11988         ui_out object.
11989         (ui_out_destroy): Public function which frees a ui_out object.
11990         (ui_out_table_end): Use the new clear_table function.
11991         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11992         NULL.
11993         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11994         to NULL.
11995
11996 2013-02-11  Doug Evans  <dje@google.com>
11997
11998         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11999         (printf_decfloat): New function.  Broken out from ui_printf.
12000         Remove unnecessary code to shift the entire format string down.
12001         (printf_pointer): New function.
12002         (ui_printf): Code to print C strings, wide C strings, decfloats,
12003         and pointers moved to separate functions.
12004
12005 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
12006
12007         * valops.c (value_assign): Handling bitfield offset in
12008         `lval_internalvar_component' case.
12009
12010 2013-02-08  Doug Evans  <dje@google.com>
12011
12012         * common/format.c (parse_format_string): Fix whitespace.
12013
12014 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
12015
12016         * stack.c (return_command): Work around uninitialized variable
12017         warning.
12018
12019 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
12020
12021         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
12022         number of the registers from 36 to 34.
12023
12024 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12025
12026         * NEWS: Mention new AArch64 native and target support.
12027
12028 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12029
12030         * MAINTAINERS (Write After Approval): Add myself.
12031
12032 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
12033             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12034             Nigel Stephens  <nigel.stephens@arm.com>
12035             Yufeng Zhang  <yufeng.zhang@arm.com>
12036
12037         * aarch64-linux-nat.c: New file.
12038         * config/aarch64/linux.mh: New file.
12039         * configure.host: Add AArch64.
12040         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
12041
12042 2013-02-07  Doug Evans  <dje@google.com>
12043
12044         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
12045         disassemble command.
12046
12047 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12048
12049         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
12050         set_gdbarch_fetch_tls_load_module_address.
12051
12052 2013-02-06  David S. Miller  <davem@davemloft.net>
12053
12054         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
12055         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12056         * value.c (struct_return_convention): New function.
12057         (using_struct_return): Implement in terms of struct_return_convention.
12058         * value.h (struct_return_convention): Declare.
12059         * stack.c (return_command): Allow successful overriding of the return
12060         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
12061
12062 2013-02-06  Tom Tromey  <tromey@redhat.com>
12063
12064         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
12065         outside of TRY_CATCH.
12066
12067 2013-02-06  Yao Qi  <yao@codesourcery.com>
12068
12069         * mi/mi-interp.c: Include "tracepoint.h".
12070         (mi_tsv_modified): Declare.
12071         (mi_tsv_created, mi_tsv_deleted): Update declaration.
12072         (mi_interpreter_init): Call observer_attach_tsv_modified.
12073         (mi_tsv_modified): New.
12074         (mi_tsv_created, mi_tsv_deleted): Update.
12075         * tracepoint.c (trace_variable_command): Call
12076         observer_notify_tsv_modified if the initial value of tsv is
12077         changed.
12078         (delete_trace_state_variable): Call
12079         observer_notify_tsv_deleted earlier.
12080         (trace_variable_command): Caller update.
12081         (create_tsv_from_upload): Likewise.
12082         * observer.sh: Declare "struct trace_state_variable".
12083
12084         * NEWS: Mention the new MI notification "=tsv-modified".
12085
12086 2013-02-05  Doug Evans  <dje@google.com>
12087
12088         * completer.c (location_completer): Fix typo in comment.
12089
12090 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
12091
12092         * breakpoint.c (add_location_to_breakpoint): Insert the location with
12093         ADDRESS sorted.
12094
12095 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12096
12097         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
12098         Refactor if statement to avoid trailing || operator.
12099
12100 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
12101
12102         * NEWS: Add PowerPC FreeBSD as a new native configuration.
12103
12104 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
12105
12106         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
12107         * configure.host: Add powerpc*-*-freebsd* target.
12108         * configure.tgt: Add target info for powerpc*-*-freebsd*.
12109         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
12110         * config/powerpc/fbsd.mh: New file.
12111
12112 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
12113             Denys Vlasenko  <dvlasenk@redhat.com>
12114             Pedro Alves  <palves@redhat.com>
12115
12116         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
12117         (struct elf_internal_linux_prpsinfo): Forward declare.
12118         * gdbarch.h, gdbarch.c: Regenerate.
12119         * linux-tdep.c: Include `cli/cli-utils.h'.
12120         (linux_fill_prpsinfo): New function.
12121         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
12122         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12123         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12124         depending on gdbarch pointer bitness.
12125         * ppc-linux-tdep.c: Include elf-bfd.h.
12126         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12127         on 32-bit.
12128
12129 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
12130             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12131             Nigel Stephens  <nigel.stephens@arm.com>
12132             Yufeng Zhang  <yufeng.zhang@arm.com>
12133
12134         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12135
12136 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
12137             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12138             Nigel Stephens  <nigel.stephens@arm.com>
12139             Yufeng Zhang  <yufeng.zhang@arm.com>
12140
12141         * aarch64-newlib-tdep.c: New file.
12142         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12143         aarch64*-*-elf.
12144         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12145         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12146         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12147         * osabi.c (gdb_osabi_names): Add "Newlib".
12148
12149 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
12150             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12151             Nigel Stephens  <nigel.stephens@arm.com>
12152             Yufeng Zhang  <yufeng.zhang@arm.com>
12153
12154         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12155         (ALLDEPFILES): Add aarch64-linux-tdep.c.
12156         * aarch64-linux-tdep.c: New file.
12157         * aarch64-linux-tdep.h: New file.
12158         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12159         * configure.tgt: Add aarch64-none-linux-gnu.
12160
12161 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
12162             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12163             Nigel Stephens  <nigel.stephens@arm.com>
12164             Yufeng Zhang  <yufeng.zhang@arm.com>
12165
12166         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12167         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12168         (ALLDEPFILES): Add aarch64-tdep.c.
12169         * aarch64-tdep.c: New file.
12170         * aarch64-tdep.h: New file.
12171         * configure.tgt: Add AArch64.
12172         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12173         (aarch64-expedite): New definition.
12174         * features/aarch64-core.xml: New file.
12175         * features/aarch64-fpu.xml: New file.
12176         * features/aarch64-without-fpu.c: New file (generated).
12177         * features/aarch64-without-fpu.xml: New file.
12178         * features/aarch64.c: New file (generated).
12179         * features/aarch64.xml: New file.
12180         * regformats/aarch64-without-fpu.dat: New file (generated).
12181         * regformats/aarch64.dat: New file (generated).
12182
12183 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12184
12185         * contrib/expect-read1.c: New file.
12186         * contrib/expect-read1.sh: New file.
12187
12188 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12189
12190         * dwarf2read.c (file_file_name): New function with code from
12191         file_full_name.
12192         (file_full_name): Move most of the code to file_file_name.
12193         (macro_start_file): Rename variable full_name to file_name and use
12194         file_file_name for it.  Add comp_dir parameter to new_macro_table.
12195         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
12196         macro_source_file->filename access by macro_source_fullname call.
12197         * macroscope.c (_initialize_macroscope): Update the new_macro_table
12198         caller.
12199         * macrotab.c (struct macro_table): New field comp_dir.
12200         (macro_include): New variables link_fullname and source_fullname.
12201         Replace any macro_source_file->filename access by macro_source_fullname
12202         call.
12203         (macro_lookup_inclusion): Remove the partial filenames checking code.
12204         (check_for_redefinition): New variables source_fullname and
12205         found_key_fullname.  Replace any macro_source_file->filename access by
12206         macro_source_fullname call.
12207         (macro_undef): New variables source_fullname and key_fullname.  Replace
12208         any macro_source_file->filename access by macro_source_fullname call.
12209         (macro_lookup_definition): New variables retval and source_fullname.
12210         Replace any macro_source_file->filename access by macro_source_fullname
12211         call.
12212         (foreach_macro): New variable key_fullname.  Replace any
12213         macro_source_file->filename access by macro_source_fullname call.
12214         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
12215         macro_source_file->filename access by macro_source_fullname call.
12216         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
12217         (macro_source_fullname): New function.
12218         * macrotab.h (struct macro_source_file): Extent the filename field
12219         comment.
12220         (new_macro_table): New parameter comp_dir, add a comment for it.
12221         (macro_source_fullname): new declaration.
12222
12223 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12224
12225         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12226         this_real_name to outer block.  Use it also for
12227         compare_filenames_for_search.
12228         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
12229         with dw2_get_real_path for file_matcher, considering also
12230         BASENAMES_MAY_DIFFER.
12231         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12232
12233 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12234
12235         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12236         to the file_matcher parameter.  Pass 0 to it.
12237         (dwarf2_create_include_psymtab): Copy also DIRNAME.
12238         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12239         NULL psymtab_to_fullname result.
12240         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
12241         an expected filename instead.
12242         (expand_symtabs_matching_via_partial): Add basenames parameter to the
12243         file_matcher parameter.  Call also psymtab_to_fullname, after newly
12244         considering BASENAMES_MAY_DIFFER.
12245         * source.c (rewrite_source_path): Remove static.
12246         * source.h (rewrite_source_path): New declaration.
12247         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12248         the expand_symtabs_matching field.  Comment it.
12249         * symtab.c (file_matches): New function comment.  Add parameter
12250         basenames, implement it.
12251         (search_symbols_file_matches): Add basenames parameter.  Update the
12252         file_matches caller.
12253         (search_symbols): Match FILES also against symtab_to_fullname.
12254         Optimize it for BASENAMES_MAY_DIFFER.
12255
12256 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12257
12258         * source.c (print_source_lines_base): Print for TUI also "fullname".
12259         * tui/tui-data.c (init_content_element): Change tui_locator_element
12260         field to full_name.
12261         * tui/tui-data.h (struct tui_locator_element): Likewise.
12262         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12263         tui_update_locator_filename calls to tui_update_locator_fullname.
12264         Replace symtab->filename refererence by symtab_to_fullname call.
12265         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12266         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12267         field to full_name.  Replace symtab->filename refererence by
12268         symtab_to_fullname call.
12269         (tui_show_symtab_source): Rename parameter to fullname.  Change
12270         tui_locator_element field to full_name.
12271         * tui/tui-stack.c: Include source.h.
12272         (tui_set_locator_filename): Rename the declaration to ...
12273         (tui_set_locator_fullname): ... here.  Rename its parameter to
12274         fullname, updates its comment.
12275         (tui_set_locator_info): Rename its parameter to fullname.
12276         (tui_set_locator_filename): Rename the definition to ...
12277         (tui_set_locator_fullname): ... here.  Rename its parameter to
12278         fullname, updates its comment.  Change tui_locator_element field to
12279         full_name.
12280         (tui_set_locator_info): Rename its parameter to fullname.
12281         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12282         (tui_update_locator_filename): Rename to ...
12283         (tui_update_locator_fullname): ... here. Rename callee to
12284         tui_set_locator_fullname.
12285         (tui_show_frame_info): Replace symtab->filename refererence by
12286         symtab_to_fullname call.
12287         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12288         (tui_update_locator_fullname): ... here.
12289         * tui/tui-winsource.c (tui_display_main): Rename the callee to
12290         tui_update_locator_fullname.  Replace symtab->filename refererence by
12291         symtab_to_fullname call.
12292         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12293         Rename the callee to tui_update_locator_fullname.
12294         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12295
12296 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12297
12298         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12299         by symtab_to_filename_for_display calls.
12300         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12301         (clear_command): New variable sal_fullname, initialize it.  Replace
12302         compare_filenames_for_search by filename_cmp with sal_fullname.
12303         (say_where, update_static_tracepoint): Replace symtab->filename
12304         refererences by symtab_to_filename_for_display calls.
12305         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12306         Likewise.
12307         * dwarf2read.c: Include source.h.
12308         (fixup_go_packaging): Replace symtab->filename refererences by
12309         symtab_to_filename_for_display calls.
12310         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12311         Replace symtab->filename refererences by symtab_to_filename_for_display
12312         calls.
12313         (create_sals_line_offset, convert_linespec_to_sals): New variable
12314         fullname, initialize it, replace symtab->filename reference by the
12315         variable.
12316         * linux-fork.c: Include source.h.
12317         (info_checkpoints_command): Replace symtab->filename refererences by
12318         symtab_to_filename_for_display calls.
12319         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12320         by symtab_to_filename_for_display calls.
12321         * mdebugread.c: Include source.h.
12322         (psymtab_to_symtab_1): Replace symtab->filename refererences by
12323         symtab_to_filename_for_display calls.
12324         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12325         (mi_cmd_file_list_exec_source_files): Likewise.
12326         * printcmd.c: Include source.h.
12327         (build_address_symbolic): Replace symtab->filename refererences by
12328         symtab_to_filename_for_display calls.
12329         * psymtab.c (partial_map_symtabs_matching_filename)
12330         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12331         with psymtab_to_fullname.
12332         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12333         by symtab_to_filename_for_display calls.
12334         (stpy_get_filename): New variable filename, initialize it, use instead
12335         of symtab->filename refererences.
12336         (salpy_str): Make variable filename const char *.  Replace
12337         symtab->filename refererences by symtab_to_filename_for_display calls.
12338         * skip.c: Include source.h and filenames.h.
12339         (skip_file_command): Remove const from the symtab variable.  Replace
12340         symtab->filename refererences by symtab_to_fullname call.
12341         (function_name_is_marked_for_skip): New variables searched_for_fullname
12342         and fullname.  Use them to search also with symtab's fullname.
12343         * source.c (find_source_lines): Replace symtab->filename refererences
12344         by symtab_to_filename_for_display calls.
12345         (print_source_lines_base): New variable filename, use it instead of
12346         symtab->filename.  Replace symtab->filename refererences by
12347         symtab_to_filename_for_display calls.
12348         (line_info, forward_search_command): Replace symtab->filename
12349         refererences by symtab_to_filename_for_display calls.
12350         (reverse_search_command): Replace symtab->filename refererences by
12351         symtab_to_filename_for_display calls.  New variable filename for it.
12352         * stack.c (frame_info): Likewise.
12353         * symmisc.c: Include source.h.
12354         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12355         (maintenance_info_symtabs): Replace symtab->filename refererences by
12356         symtab_to_filename_for_display calls.
12357         * symtab.c (iterate_over_some_symtabs): Call
12358         compare_filenames_for_search also with symtab_to_fullname.
12359         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12360         symtab->filename refererences by symtab_to_filename_for_display calls.
12361         (find_line_symtab): Replace symtab->filename refererences by
12362         symtab_to_filename_for_display calls.
12363         (file_matches): Replace filename_cmp by compare_filenames_for_search.
12364         (print_symbol_info): Make the last parameter const char *.  New
12365         variable s_filename.  Use it in the function.
12366         (symtab_symbol_info): Make the last_filename variable const char *.
12367         Replace symtab->filename refererences by symtab_to_filename_for_display
12368         calls.
12369         (rbreak_command): New variable fullname.  Use it.  Replace
12370         symtab->filename refererence by symtab_to_filename_for_display call.
12371         * tracepoint.c (set_traceframe_context, trace_find_line_command)
12372         (print_one_static_tracepoint_marker): Replace symtab->filename
12373         refererences by symtab_to_filename_for_display calls.
12374         * tui/tui-source.c (tui_set_source_content): New variables filename and
12375         s_filename.  Replace symtab->filename refererences by this variable.
12376         Replace other symtab->filename refererences by
12377         symtab_to_filename_for_display calls.
12378
12379 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12380             Jan Kratochvil  <jan.kratochvil@redhat.com>
12381
12382         Add a new variable that controls a way in which filenames are
12383         displayed.
12384         * NEWS (set filename-display): New entry.
12385         * source.c (filename_display_basename, filename_display_relative)
12386         (filename_display_absolute, filename_display_kind_names)
12387         (filename_display_string, show_filename_display_string)
12388         (symtab_to_filename_for_display): New.
12389         (_initialize_source): Added initialization of 'filename-display'
12390         variable.
12391         * source.h (symtab_to_filename_for_display): Added declaration.
12392         * stack.c (print_frame): Added new variable and calling of a new
12393         function and condition with this variable. Changed third argument of
12394         calling of a function.
12395
12396 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12397
12398         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12399         Rename field reference filename to fullname.
12400         * tui/tui-data.h (struct tui_source_info): Rename field filename to
12401         fullname.  New comment for it.
12402         * tui/tui-source.c (tui_set_source_content): Rename field reference
12403         filename to fullname.  Initialize field by symtab_to_fullname now.
12404         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12405         reference filename to fullname.  Use symtab_to_fullname during
12406         comparison.
12407
12408 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12409
12410         Code cleanup.
12411         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12412         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
12413         filename to fullname.  Rename variable this_name to this_fullname.
12414         Lowercase FILENAME_CMP call.
12415         (dw2_find_symbol_file): New comment for the returned string.
12416         (dwarf2_gdb_index_functions): Rename the function to
12417         dw2_expand_symtabs_with_fullname.
12418         * psymtab.c (read_psymtabs_with_filename): Rename to ...
12419         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
12420         fullname.
12421         (psym_functions): Rename the function to read_psymtabs_with_fullname.
12422         * symfile.h (struct quick_symbol_functions): Rename field
12423         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12424         parameter filename to fullname.  Document returned string meaning for
12425         find_symbol_file.
12426         * symtab.c (find_line_symtab): Rename the called function to
12427         expand_symtabs_with_fullname.
12428
12429 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12430
12431         Code cleanup.
12432         * breakpoint.c (clear_command): Remove variable is_abs, unify the
12433         call of filename_cmp with compare_filenames_for_search.
12434         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12435         is_abs, unify the call of FILENAME_CMP with
12436         compare_filenames_for_search.  New gdb_asserts for real_path and name.
12437         Unify the call of compare_filenames_for_search with FILENAME_CMP.
12438         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12439         * symfile.h (struct quick_symbol_functions): Extend the comment for
12440         map_symtabs_matching_filename.
12441         * symtab.c (compare_filenames_for_search): Remove the function comment
12442         relative path requirement.  Handle absolute filenames, with a comment.
12443         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12444         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
12445         real_path and name.  Unify the call of compare_filenames_for_search
12446         with FILENAME_CMP.
12447         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12448
12449 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12450
12451         Code cleanup.
12452         * breakpoint.c (print_breakpoint_location): Replace bp_location field
12453         source_file references by symtab field references.  Remove variables
12454         sal and fullname.
12455         (momentary_breakpoint_from_master, add_location_to_breakpoint):
12456         (clear_command, say_where): Replace bp_location field source_file
12457         references by symtab field references.
12458         (bp_location_dtor): Remove the source_file reference.
12459         (update_static_tracepoint): Replace bp_location field source_file
12460         references by symtab field references.
12461         (breakpoint_free_objfile): New function.
12462         * breakpoint.h (struct bp_location): Extend the comment for line_number.
12463         Replace the field source_file by field symtab, extend its comment.
12464         (breakpoint_free_objfile): New declaration.
12465         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12466         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12467         field source_file references by symtab field references.
12468
12469 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12470
12471         Replace xfullpath calls by gdb_realpath calls.
12472         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12473         function comment.
12474         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12475         Remove it from the iterate_over_some_symtabs call.
12476         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12477         Remove it from the dw2_map_expand_apply calls, remove a block handling
12478         it.
12479         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12480         Remove it from the iterate_over_some_symtabs call.
12481         (partial_map_symtabs_matching_filename): Remove parameter full_path.
12482         Remove it from the partial_map_expand_apply calls, remove a block
12483         handling it.  Drop gdb_realpath call and cleanups from the real_path
12484         handling.
12485         * source.c (openp): Drop the comment part about xfullpath.  Replace
12486         xfullpath calls by gdb_realpath calls.
12487         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12488         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12489         from method map_symtabs_matching_filename and its comment.
12490         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12491         gdb_realpath call.
12492         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12493         remove it also from the function comment, remove a block handling it.
12494         Drop gdb_realpath call and cleanups from the real_path handling.
12495         (iterate_over_symtabs): Drop variable full_path and its use.
12496         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12497         * utils.c (xfullpath): Remove.
12498         * utils.h (xfullpath): Remove.
12499
12500 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
12501
12502         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12503         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12504         (ALLDEPFILES): Add ppc64-tdep.c.
12505         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12506         ppc64-tdep.o to gdb_target_obs.
12507         * ppc64-tdep.h: New file.
12508         * ppc64-tdep.c: New file.
12509         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12510         ppc-linux-tdep.c to here.
12511         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12512         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12513         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12514         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12515         from ppc-linux-tdep.c to here.
12516         (ppc64_convert_from_func_ptr_addr): Rename from
12517         ppc64_linux_convert_from_func_ptr_addr to
12518         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12519         here.
12520         * rs6000-tdep.c:
12521         (read_insn): Move from ppc-linux-tdep.c to here.
12522         (insns_match_pattern, insn_d_field, insn_ds_field): Move
12523         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12524         * ppc-linux-tdep.c: Include ppc64-tdep.h.
12525         Removed above functions.
12526         (ppc_linux_init_abi): Adjust.
12527
12528 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
12529
12530         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12531
12532 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
12533
12534         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12535
12536 2013-02-01  Pedro Alves  <palves@redhat.com>
12537
12538         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12539         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12540
12541 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
12542
12543         * elfread.c (elf_symfile_read): Limit separate debug info additions to
12544         files with no separate debug info.
12545         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12546         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12547         only for files with no separate debug info.
12548
12549 2013-01-31  Tom Tromey  <tromey@redhat.com>
12550
12551         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12552         change type.
12553         (struct jit_program_space_data): Rename from jit_inferior_data.
12554         Update comments.
12555         (get_jit_program_space_data): Rename from get_jit_inferior_data.
12556         Change return type.  Attach data to program space.
12557         (jit_program_space_data_cleanup): Rename from
12558         jit_inferior_data_cleanup; change argument type.
12559         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12560         change type.
12561         (jit_register_code): Update.
12562         (jit_update_inferior_cache): Remove.
12563         (jit_breakpoint_deleted): Get jit data from the location's program
12564         space.
12565         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12566         'ps_data', change type.
12567         (jit_inferior_init, jit_breakpoint_re_set_internal)
12568         (jit_event_handler): Update.
12569         (free_objfile_data): Get data from objfile's program space.
12570         (_initialize_jit): Update.
12571
12572 2013-01-31  Tom Tromey  <tromey@redhat.com>
12573
12574         PR gdb/13987:
12575         * jit.c (struct jit_inferior_data) <cached_code_address,
12576         jit_breakpoint>: New fields.
12577         (jit_breakpoint_re_set_internal): Fix logging.  Only create
12578         breakpoint if cached address has changed.
12579         (jit_update_inferior_cache, jit_breakpoint_deleted): New
12580         functions.
12581         (_initialize_jit): Register breakpoint deleted observer.
12582
12583 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12584
12585         * infrun.c (handle_syscall_event): Remove unused gdbarch.
12586         (save_infcall_suspend_state): Ifdef out unused inf.
12587         (restore_infcall_suspend_state): Ifdef out unused inf.
12588         * jit.c (jit_register_code): Remove unused i, b, inf_data.
12589         (jit_frame_sniffer): Remove unused inf_data.
12590
12591 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12592
12593         * c-exp.y (classify_inner_name): Remove unused type.
12594         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12595         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12596         need_escape.
12597         (c_get_string): Remove unused kind.
12598         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12599
12600 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12601
12602         * charset.c (intermediate_encoding): Remove unused i.
12603         * completer.c (signal_completer): Remove unused i.
12604         * continuations.c (discard_my_continuations_1): Remove unused
12605         continuation_ptr.
12606         * corelow.c (core_close): Remove unuseD name.
12607         (get_core_siginfo): Remove unused pid.
12608         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12609         i, cps.
12610         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12611         (loclist_describe_location): Remove unused first.
12612         * event-top.c (command_line_handler): Remove unused got_eof.
12613         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12614         (resize_section_table): Remove unused old_value.
12615         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12616         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12617         * i386-tdep.c (i386_process_record): Remove unused rex.
12618         * infcmd.c (get_return_value): Remove unused uiout.
12619         * jv-lang.c (type_from_class): Remove unused is_array.
12620         * jv-valprint.c (java_val_print): Remove unused i.
12621         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12622         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12623         * m2-typeprint.c (m2_print_type): Remove unused code.
12624         * macroexp.c (get_character_constant): Remove unused body_start.
12625         (macro_stringify): Remove unused result.
12626         * objc-lang.c (find_methods): Remove unused gdbarch.
12627         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12628         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12629         * stack.c (print_frame_args): Remove unused summary.
12630         * thread.c (thread_apply_command): Remove unused p.
12631         * valarith.c (value_x_unop): Remove unused mangle_ptr.
12632         * valops.c (search_struct_method): Remove unused skip.
12633         * valprint.c (generic_val_print): Remove unused byte_order.
12634         * varobj.c (varobj_update): Remove unused changed.
12635         * cli/cli-cmds.c (complete_command): Remove unused next_item.
12636         (alias_command): Remove unused c.
12637         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12638         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12639         format.
12640         (mi_cmd_data_write_memory): Remove unused word_format.
12641         (mi_cmd_data_write_memory_bytes): Remove unused r.
12642         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12643         p_start, p_end.
12644         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12645         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12646         line_width.
12647
12648 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12649
12650         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12651         * symtab.c (iterate_over_symtabs): Remove unused s.
12652         (find_pc_sect_symtab): Remove unused pspAce.
12653         (find_pc_sect_line): Remove unused alt_symtab.
12654         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12655         (completion_list_add_name): Remove unused newsize.
12656
12657 2013-01-31  Tom Tromey  <tromey@redhat.com>
12658
12659         PR c++/14998:
12660         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12661         TYPE_CODE_FUNC.
12662
12663 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12664
12665         * target.c (target_read_string): Remove unused origlen.
12666
12667 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12668
12669         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12670         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12671         * ax-general.c (ax_print): Remove unused is_float.
12672         * blockframe.c (block_innermost_frame): Remove unused start, end.
12673         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12674
12675 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
12676
12677         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12678         (svr4_read_so_list): Remove unused lmo.
12679         * solib-target.c (solib_target_relocate_section_addresses): Remove
12680         unused flags.
12681
12682 2013-01-30  Tom Tromey  <tromey@redhat.com>
12683
12684         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12685
12686 2013-01-30  Tom Tromey  <tromey@redhat.com>
12687
12688         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12689         * utils.c (gnu_debuglink_crc32): Remove.
12690         * utils.h (gnu_debuglink_crc32): Don't declare.
12691
12692 2013-01-30  Tom Tromey  <tromey@redhat.com>
12693
12694         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12695         (read_structure_type, read_enumeration_type): Remove cast.
12696
12697 2013-01-30  Tom Tromey  <tromey@redhat.com>
12698
12699         * dwarf2read.c (read_namespace_type): Remove cast.
12700         (read_typedef): Likewise.
12701
12702 2013-01-29  Tom Tromey  <tromey@redhat.com>
12703
12704         * dwarf2read.c (free_dwo_file): Remove assert.
12705
12706 2013-01-29  Tom Tromey  <tromey@redhat.com>
12707
12708         * value.c (deprecated_set_value_modifiable): Remove.
12709         * value.h (deprecated_set_value_modifiable): Remove.
12710
12711 2013-01-28  Doug Evans  <dje@google.com>
12712
12713         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12714         to addresses from dwo files.
12715
12716 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
12717
12718         * valops.c (find_overload_match): Remove unused argument 'lax'.
12719         * value.h: Remove unused argument 'lax' from the declaration of
12720         find_overload_match.
12721         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12722         to find_overload_match.
12723         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12724         argument to find_overload_match.
12725
12726 2013-01-25  Tom Tromey  <tromey@redhat.com>
12727
12728         * dwarf2read.c (processing_has_namespace_info): Remove.
12729         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12730         (process_die, read_func_scope, dwarf2_start_symtab)
12731         (new_symbol_full): Update.
12732
12733 2013-01-25  Tom Tromey  <tromey@redhat.com>
12734
12735         * cp-namespace.c (cp_set_block_scope): Remove.
12736         * cp-support.h (cp_set_block_scope): Remove.
12737         * dbxread.c: Include block.h.
12738         (cp_set_block_scope): New function.
12739         (process_one_symbol): Update.
12740         * dwarf2read.c (read_func_scope): Use block_set_scope.
12741
12742 2013-01-25  Pedro Alves  <palves@redhat.com>
12743
12744         * remote.c (add_current_inferior_and_thread): Tweak comment.
12745
12746 2013-01-25  Tom Tromey  <tromey@redhat.com>
12747
12748         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12749         (cp_add_using_directive): Add 'copy_names' argument.
12750         * cp-support.h (cp_add_using_directive): Update.
12751         (struct using_direct) <import_src, import_dest, alias,
12752         declaration>: Now const.
12753         * dwarf2read.c (read_import_statement): Use obconcat.
12754         Don't copy names passed to cp_add_using_directive.
12755
12756 2013-01-25  Tom Tromey  <tromey@redhat.com>
12757
12758         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12759
12760 2013-01-25  Pedro Alves  <palves@redhat.com>
12761
12762         * remote.c (stop_reply_extract_thread): New.
12763         (add_current_inferior_and_thread): New parameter 'wait_status'.
12764         Handle it.
12765         (remote_start_remote): Pass wait status to
12766         add_current_inferior_and_thread.
12767         (extended_remote_run): Update comment.
12768         (extended_remote_create_inferior_1): Pass wait status to
12769         add_current_inferior_and_thread.
12770
12771 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
12772             Ulrich Weigand  <uweigand@de.ibm.com>
12773
12774         * valarith.c (value_vector_widen): New function for replicating a
12775         scalar into a vector.
12776         (value_binop): Use value_vector_widen to widen scalar to vector
12777         rather than casting, this better matches gcc C behaviour.
12778         * valops.c (value_casst): Update logic for casting between vector
12779         types, and for casting from scalar to vector, try to match gcc C
12780         behaviour.
12781         * value.h (value_vector_widen): Declare.
12782         * opencl-lang.c (opencl_value_cast): New opencl specific casting
12783         function, handle special case for casting scalar to vector.
12784         (opencl_relop): Use opencl_value_cast.
12785         (evaluate_subexp_opencl): Use opencl_value_cast instead of
12786         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12787         in order to use opencl_value_cast.
12788
12789 2013-01-25  Yao Qi  <yao@codesourcery.com>
12790
12791         * event-loop.c: Include "queue.h".
12792         (gdb_event_p): New typedef.
12793         (DECLARE_QUEUE_P): Use.
12794         (DEFINE_QUEUE_P): Use.
12795         (async_queue_event): Remove.
12796         (gdb_event_xfree): New.
12797         (initialize_event_loop): New.
12798         (process_event): Use QUEUE macros.
12799         (event_queue): Remove.
12800         (gdb_wait_for_event): Caller update.
12801         (check_async_event_handlers): Likewise.
12802         (poll_timers): Likewise.
12803         * event-loop.h (initialize_event_loop): Declare.
12804         * event-loop.c (gdb_event_xfree): New.
12805         * top.c (gdb_init): Call initialize_event_loop.
12806
12807 2013-01-25  Yao Qi  <yao@codesourcery.com>
12808
12809         * event-loop.c (async_queue_event): Remove one parameter
12810         'position'.  Remove code handling 'position' == TAIL.
12811         (gdb_wait_for_event): Caller update.
12812         (check_async_event_handlers): Caller update.
12813         (poll_timers): Caller update.
12814         * event-loop.h (enum queue_position): Remove.
12815
12816 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
12817
12818         * MAINTAINERS: Update my email.
12819
12820 2013-01-25  Yao Qi  <yao@codesourcery.com>
12821
12822         * main.c (print_gdb_help): Remove "--epoch" from the help
12823         message.
12824
12825 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
12826
12827         * symtab.c (skip_prologue_using_sal): Consider a file
12828         change the same as an increased line number
12829
12830 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12831
12832         * MAINTAINERS (Write After Approval): Add myself to the list.
12833
12834 2013-01-24  Tom Tromey  <tromey@redhat.com>
12835
12836         * ada-lang.h (ada_decode_symbol): Make return type const.
12837         * ada-lang.c (ada_decode_symbol): Likewise.
12838
12839 2013-01-23  Doug Evans  <dje@google.com>
12840
12841         * linespec.c (find_linespec_symbols): Make static.
12842
12843 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12844
12845         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12846         type on float conversion for complex type.
12847
12848 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
12849
12850         Add a new class gdb.Architecture which exposes GDB's
12851         internal representation of architecture via GDB Python API.
12852         * Makefile.in: Add entries corresponding to the new file
12853         python/py-arch.c.
12854         * NEWS (Python Scripting): Add entries for the new class
12855         gdb.Architecture and the new method gdb.Frame.architecture.
12856         * python/py-arch.c: Implement gdb.Architecture class.
12857         * python/py-frame.c (frapy_arch): Implement the method
12858         gdb.Frame.architecture().
12859         (frame_object_methods): Add 'architecture' to the method table.
12860         * python/python-internal.h: Add declarations of new utility
12861         functions.
12862         * python/python.c (_initialize_python): Initialize
12863         gdb.Architecture class.
12864
12865 2013-01-23  Doug Evans  <dje@google.com>
12866
12867         Work around binutils/15021.
12868         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12869         type_unit_group out of union s.  All uses updated.
12870         (read_index_from_section): Watch for index version 8.
12871         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12872         an imported symtab.
12873         (write_psymtabs_to_index): Increment version number to 8.
12874
12875 2013-01-22  Pedro Alves  <palves@redhat.com>
12876
12877         * annotate.c (breakpoint_changed): Skip if breakpoint is not
12878         user-visible.
12879
12880 2013-01-22  Pedro Alves  <palves@redhat.com>
12881
12882         * annotate.c (annotate_breakpoints_changed): Rename to ...
12883         (annotate_breakpoints_invalid): ... this.  Make static.
12884         (breakpoint_changed): Adjust.
12885         (_initialize_annotate): Always install the observers.  Install a
12886         "breakpoint_created" observer.
12887         * annotate.h (annotate_breakpoints_changed): Delete declaration.
12888         * breakpoint.c (set_breakpoint_condition)
12889         (breakpoint_set_commands, do_map_commands_command)
12890         (init_raw_breakpoint, clear_command, set_ignore_count)
12891         (enable_breakpoint_disp): No longer call
12892         annotate_breakpoints_changed.
12893
12894 2013-01-22  Pedro Alves  <palves@redhat.com>
12895
12896         * annotate.c: Include "inferior.h".
12897         (frames_invalid_emitted)
12898         (breakpoints_invalid_emitted): New globals.
12899         (async_background_execution_p): New function.
12900         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12901         emitting the annotation if it has already been emitted.
12902         (annotate_display_prompt): New function.
12903         * annotate.h (annotate_display_prompt): New declaration.
12904         * event-top.c: Include annotate.h.
12905         (display_gdb_prompt): Call annotate_display_prompt.
12906
12907 2013-01-22  Pedro Alves  <palves@redhat.com>
12908
12909         * annotate.c (ignore_count_changed): Delete.
12910         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12911         (annotate_ignore_count_change): Delete.
12912         (annotate_stopped): Don't emit a delayed breakpoints-changed
12913         annotation.
12914         * annotate.h (annotate_ignore_count_change): Delete.
12915         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12916         annotate_ignore_count_change.
12917
12918 2013-01-22  Tom Tromey  <tromey@redhat.com>
12919
12920         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12921         require_rvalue for a register location.
12922
12923 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
12924
12925         * breakpoint.c (print_one_breakpoint_location): Add MI
12926         field 'thread-groups' when printing a breakpoint.
12927         (output_thread_groups): New function.
12928
12929 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
12930
12931         * python/lib/gdb/commands/explore.py
12932         (CompoundExplorer.explore_expr): Correct the name of a method
12933         being invoked.
12934         (ExploreTypeCommand.invoke): Add a missing 'return'.
12935
12936 2013-01-21  Tom Tromey  <tromey@redhat.com>
12937
12938         * gdb_obstack.h (obconcat): Move declaration here, from...
12939         * symfile.h (obconcat): ... here.
12940         * gdb_obstack.c: New file.
12941         (obconcat): Move from...
12942         * symfile.c (obconcat): ... here.
12943         * Makefile.in (SFILES): Add gdb_obstack.c.
12944         (COMMON_OBS): Add gdb_obstack.o.
12945
12946 2013-01-21  Tom Tromey  <tromey@redhat.com>
12947
12948         * symfile.h (obsavestring): Don't declare.
12949         * symfile.c (obsavestring): Remove.
12950         * ada-exp.y: Use obstack_copy0, not obsavestring.
12951         * ada-lang.c: Use obstack_copy0, not obsavestring.
12952         * coffread.c: Use obstack_copy0, not obsavestring.
12953         * cp-namespace.c: Use obstack_copy0, not obsavestring.
12954         * dbxread.c: Use obstack_copy0, not obsavestring.
12955         * dwarf2read.c: Use obstack_copy0, not obsavestring.
12956         * jit.c: Use obstack_copy0, not obsavestring.
12957         * mdebugread.c: Use obstack_copy0, not obsavestring.
12958         * psymtab.c: Use obstack_copy0, not obsavestring.
12959         * stabsread.c: Use obstack_copy0, not obsavestring.
12960         * xcoffread.c: Use obstack_copy0, not obsavestring.
12961
12962 2013-01-21  Tom Tromey  <tromey@redhat.com>
12963
12964         * dwarf2read.c (fixup_go_packaging): Save package name
12965         on objfile obstack.
12966         * gdbtypes.c (init_type): Don't copy name.
12967
12968 2013-01-21  Tom Tromey  <tromey@redhat.com>
12969
12970         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12971         const.
12972         (struct attribute) <u.str>: Now const.
12973         (struct fnfieldlist) <name>: Now const.
12974         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12975         (partial_die_parent_scope): Make return type const.
12976         (partial_die_full_name, add_partial_symbol): Update.
12977         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12978         'name' const.
12979         (find_file_and_directory): Make 'name' and 'comp_dir' const.
12980         (read_file_scope, read_func_scope, dwarf2_add_field)
12981         (dwarf2_add_member_fn, read_structure_type)
12982         (process_enumeration_scope, read_array_type, read_module_type)
12983         (read_base_type, read_subrange_type): Update.
12984         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12985         (new_symbol_full, guess_full_die_structure_name): Update.
12986         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
12987         (dwarf2_name): Return const type.
12988         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12989         const.
12990
12991 2013-01-21  Tom Tromey  <tromey@redhat.com>
12992
12993         * gdbtypes.c (init_type): Make 'name' const.
12994         * gdbtypes.h (init_type): Update.
12995
12996 2013-01-21  Tom Tromey  <tromey@redhat.com>
12997
12998         * buildsym.c (patch_subfile_names): Use set_last_source_file.
12999         (start_symtab): Make 'name' and 'dirname' const.  Use
13000         set_last_source_file.
13001         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
13002         (last_source_file): Define.  Now static.
13003         (set_last_source_file, get_last_source_file): New functions.
13004         * buildsym.h (last_source_file): Don't declare.
13005         (start_symtab): Update.
13006         (set_last_source_file, get_last_source_file): Declare.
13007         * coffread.c (complete_symtab): Use set_last_source_file.
13008         (coff_end_symtab): Likewise.
13009         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
13010         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
13011         set_last_source_file.
13012         (process_one_symbol): Use get_last_source_file.
13013         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
13014         (psymtab_to_symtab_1): Use get_last_source_file.
13015         * xcoffread.c (process_linenos): Use get_last_source_file.
13016         (complete_symtab): Use set_last_source_file.
13017         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
13018         (scan_xcoff_symtab): Use set_last_source_file.
13019
13020 2013-01-21  Tom Tromey  <tromey@redhat.com>
13021
13022         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
13023         (symbol_set_names): Remove casts.  Handle field const-ness.
13024
13025 2013-01-21  Tom Tromey  <tromey@redhat.com>
13026
13027         * dwarf2read.c (new_symbol_full): Remove cast.
13028         * symtab.c (symbol_set_demangled_name): Make 'name' const.
13029         * symtab.h (symbol_set_demangled_name): Update.
13030
13031 2013-01-21  Tom Tromey  <tromey@redhat.com>
13032
13033         * main.c (captured_main): Call bfd_init.
13034
13035 2013-01-21  Tom Tromey  <tromey@redhat.com>
13036
13037         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
13038         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
13039         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
13040         * NEWS: Update.
13041
13042 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13043
13044         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
13045
13046 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
13047
13048         Fix gdb.fortran/common-block.exp crash in PIE mode.
13049         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
13050         LOC_COMMON_BLOCK.
13051         * f-valprint.c (info_common_command_for_block): Expect
13052         LOC_COMMON_BLOCK in gdb_assert.
13053         * symtab.h (struct general_symbol_info): Update comment for the
13054         common_block member.
13055         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
13056         (enum address_class): New member LOC_COMMON_BLOCK.
13057
13058 2013-01-18  David Blaikie  <dblaikie@gmail.com>
13059
13060         * MAINTAINERS (Write After Approval): Add "David Blaikie".
13061
13062 2013-01-18  Tom Tromey  <tromey@redhat.com>
13063
13064         PR c++/14999:
13065         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
13066         Call require_rvalue.
13067
13068 2013-01-18  Yao Qi  <yao@codesourcery.com>
13069
13070         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
13071         (dbx_read_symtab): New declaration.
13072         (dbx_psymtab_to_symtab): Delete.
13073         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
13074         Rename parameter PST to SELF.  Exchanged two parameters.
13075         (start_psymtab): Caller update.
13076         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
13077         (dwarf2_read_symtab): New declaration.
13078         (dwarf2_psymtab_to_symtab): Delete.
13079         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
13080         Rename parameter PST to SELF.  Exchanged two parameters.
13081         (create_partial_symtab): Caller update.
13082         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
13083         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
13084         Rename parameter PST to SELF.  Exchanged two parameters.
13085         (parse_partial_symbols, new_psymtab): Caller update.
13086         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
13087         two parameters.
13088         * psymtab.c (psymtab_to_symtab): Caller update.
13089         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
13090         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
13091         Rename parameter PST to SELF.  Exchanged two parameters.
13092         (xcoff_start_psymtab): Caller update.
13093
13094 2013-01-18  Yao Qi  <yao@codesourcery.com>
13095
13096         * infrun.c (proceed): Rename local variable 'oneproc' to
13097         'force_step'.
13098
13099 2013-01-17  Doug Evans  <dje@google.com>
13100
13101         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
13102         (dw2_build_type_unit_groups): Delete.  All uses updated.
13103
13104         * symtab.h (struct symbol_search): Add comment.
13105
13106 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
13107
13108         * symtab.c (compare_filenames_for_search): New comment for
13109         HAS_DRIVE_SPEC.
13110
13111 2013-01-17  Tom Tromey  <tromey@redhat.com>
13112
13113         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
13114
13115 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
13116
13117         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
13118         initialize it by existing make_cleanup.  Call new do_cleanups.
13119
13120 2013-01-17  Tom Tromey  <tromey@redhat.com>
13121
13122         * cp-abi.c (cp_abi_completer): New function.
13123         (_initialize_cp_abi): Set completer for "set cp-abi".
13124
13125 2013-01-17  Tom Tromey  <tromey@redhat.com>
13126
13127         * mem-break.c: Remove obsolete comment.
13128         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13129
13130 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
13131
13132         * jit.c (jit_reader_load_command): Interpret the jit reader name
13133         as an absolute path if it begins with a forward slash.
13134
13135 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
13136
13137         PR gdb/14550
13138
13139         * jit.c (finalize_symtab): Ensure that only the global block has a
13140         NULL superblock.
13141
13142 2013-01-17  Pedro Alves  <palves@redhat.com>
13143
13144         * acinclude.m4: Include ../config/plugins.m4,
13145         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
13146         * Makefile.in (aclocal_m4_deps): Update.
13147         * aclocal.m4: Renegerate.
13148
13149 2013-01-16  Doug Evans  <dje@google.com>
13150
13151         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13152
13153 2013-01-16  Pedro Alves  <palves@redhat.com>
13154             Tom Tromey  <tromey@redhat.com>
13155
13156         PR cli/7221:
13157         * NEWS: Add "catch signal".
13158         * breakpoint.c (base_breakpoint_ops): No longer static.
13159         (bpstat_explains_signal): New function.
13160         (init_catchpoint): No longer static.
13161         (base_breakpoint_explains_signal): New function.
13162         (base_breakpoint_ops): Initialize new field.
13163         * breakpoint.h (enum bpstat_signal_value): New.
13164         (struct breakpoint_ops) <explains_signal>: New field.
13165         (bpstat_explains_signal): Remove macro, declare as function.
13166         (base_breakpoint_ops, init_catchpoint): Declare.
13167         * break-catch-sig.c: New file.
13168         * inferior.h (signal_catch_update): Declare.
13169         * infrun.c (signal_catch): New global.
13170         (handle_syscall_event): Update for change to
13171         bpstat_explains_signal.
13172         (handle_inferior_event): Likewise.  Always handle random signals
13173         via bpstats.
13174         (signal_cache_update): Check signal_catch.
13175         (signal_catch_update): New function.
13176         (_initialize_infrun): Initialize signal_catch.
13177         * Makefile.in (SFILES): Add break-catch-sig.c.
13178         (COMMON_OBS): Add break-catch-sig.o.
13179
13180 2013-01-16  Tom Tromey  <tromey@redhat.com>
13181
13182         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13183         (print_one_catch_solib, print_one_catch_syscall)
13184         (print_one_catch_exec, print_one_exception_catchpoint): Emit
13185         "catch-type".
13186
13187 2013-01-16  Yao Qi  <yao@codesourcery.com>
13188
13189         * printcmd.c (current_display_number): Make it static.
13190
13191 2013-01-16  Yao Qi  <yao@codesourcery.com>
13192
13193         * infcmd.c (step_once): Don't check '!single_inst' as it was
13194         checked before.
13195
13196 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
13197
13198         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13199
13200 2013-01-14  Tom Tromey  <tromey@redhat.com>
13201
13202         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13203         set command.
13204         * command.h (add_setshow_string_noescape_cmd): Update.
13205         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13206         (complete_set_gnutarget): New function.
13207         (_initialize_core): Set the "set gnutarget" completer.
13208
13209 2013-01-14  Tom Tromey  <tromey@redhat.com>
13210
13211         PR symtab/14442:
13212         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13213         (c_type_print_modifier): Likewise.
13214         * dwarf2read.c (read_tag_restrict_type): New function.
13215         (read_type_die_1): Handle DW_TAG_restrict_type.
13216         * gdbtypes.c (make_restrict_type): New function.
13217         (recursive_dump_type): Handle TYPE_RESTRICT.
13218         * gdbtypes.h (enum type_flag_values): Renumber.
13219         (enum type_instance_flag_value): Add
13220         TYPE_INSTANCE_FLAG_RESTRICT.
13221         (TYPE_RESTRICT): New macro.
13222         (make_restrict_type): Declare.
13223
13224 2013-01-14  Tom Tromey  <tromey@redhat.com>
13225
13226         PR symtab/14931:
13227         * psymtab.c (struct psymtab_state): New.
13228         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13229         functions.
13230         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13231         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13232
13233 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
13234             Pedro Alves  <palves@redhat.com>
13235
13236         PR remote/14786
13237
13238         * remote.c (remote_threads_info): Make a copy of the reply from
13239         qfThreadInfo and use that instead of rs->buf.
13240
13241 2013-01-14  Yao Qi  <yao@codesourcery.com>
13242
13243         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13244         (dbx_psymtab_to_symtab): Likewise.
13245         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13246         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13247         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13248
13249 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13250
13251         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
13252         make_cleanup_restore_current_language.  Call set_language.  Move
13253         OLD_CHAIN and INNER_CHAIN cleanups.
13254         * utils.c (do_restore_current_language)
13255         (make_cleanup_restore_current_language): New functions.
13256         * utils.h (make_cleanup_restore_current_language): New declaration.
13257
13258 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
13259
13260         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13261         non-existing files.
13262
13263         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13264         non-existing files if FILENAME is already absolute.
13265
13266 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
13267
13268         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13269         fputs_filtered.  Append trailing newline.
13270
13271 2013-01-11  Yao Qi  <yao@codesourcery.com>
13272             Stan Shebs  <stan@codesourcery.com>
13273
13274         * psymtab.c (init_psymbol_list): Clarify the comment.
13275
13276 2013-01-11  Yao Qi  <yao@codesourcery.com>
13277
13278         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13279         (update_dprintf_command_list): Assert that 'printf_line' is
13280         non-null.  Remove condition check.
13281
13282 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
13283
13284         Code cleanup.
13285         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13286         type const char *.
13287         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13288         const char *.
13289         * tui/tui-source.h (tui_source_is_displayed): Likewise.
13290
13291 2013-01-09  Anthony Green  <green@moxielogic.com>
13292
13293         * cp-abi.c (cplus_print_vtable): Don't return value from void
13294         function.
13295         * ada-lang.c (re_set_catch_assert): Ditto.
13296
13297 2013-01-09  Doug Evans  <dje@google.com>
13298
13299         * symfile.h (quick_symbol_functions): Delete member
13300         pre_expand_symtabs_matching.  All uses removed.
13301         * dwarf2read.c (dw2_lookup_symbol): Implement.
13302         (dw2_do_expand_symtabs_matching): Delete.
13303         (dw2_pre_expand_symtabs_matching): Delete.
13304         (struct dw2_symtab_iterator): New type.
13305         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13306         (dw2_expand_symtabs_for_function): Rewrite.
13307         (dwarf2_gdb_index_functions): Update.
13308         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13309         (psym_functions): Update.
13310
13311 2013-01-09  Tom Tromey  <tromey@redhat.com>
13312
13313         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13314         * configure: Rebuild.
13315         * configure.ac: Add somread.o to the build if BFD has SOM
13316         support.
13317         * somread.c: Include som/aout.h, not syms.h.
13318         (som_symtab_read): Use som_external_symbol_dictionary_record.
13319         Unpack records manually.
13320         (_initialize_somread): Declare.
13321
13322 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
13323
13324         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13325         Cast return_address to 64bits.
13326
13327 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
13328
13329         * printcmd.c: Remove define of function output_command.
13330         * tracepoint.c: Remove extern of function output_command.
13331         * valprint.h: (output_command): New extern.
13332
13333 2013-01-07  Tom Tromey  <tromey@redhat.com>
13334
13335         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13336         Remove.
13337         (objc_language_defn): Use c_printchar, c_printstr,
13338         c_emit_char.
13339
13340 2013-01-07  Tom Tromey  <tromey@redhat.com>
13341
13342         PR cli/7719:
13343         * NEWS: Update.
13344         * ada-valprint.c (printstr, print_field_values): Remove
13345         "inspect_it" code.
13346         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13347         code.
13348         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13349         code.
13350         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13351         * main.c (captured_main): Remove "epoch" argument.
13352         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13353         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13354         * p-valprint.c (pascal_object_print_value_fields): Remove
13355         "inspect_it" code.
13356         * printcmd.c (print_command_1): Remove 'inspect' argument.
13357         (print_command, call_command): Update.
13358         (inspect_command): Remove.
13359         (_initialize_printcmd): Make "inspect" an alias for "print".
13360         * top.c (epoch_interface): Remove.
13361         * top.h (epoch_interface): Remove.
13362         * valprint.c (user_print_options): Update.
13363         (print_converted_chars_to_obstack): Remove "inspect_it" code.
13364         * valprint.h (struct value_print_options) <inspect_it>: Remove
13365         field.
13366
13367 2013-01-04  Tom Tromey  <tromey@redhat.com>
13368
13369         * valprint.h (read_string): Add 'extern'.
13370
13371 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
13372
13373         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13374         used to decide whether to define darwin_read_dyld_info or not.
13375
13376 2013-01-03  Pierre Muller  <muller@sourceware.org>
13377
13378         * main.c (relocate_gdb_directory): Avoid calling stat function
13379         if DIR is empty.
13380
13381 2013-01-03  Yao Qi  <yao@codesourcery.com>
13382
13383         * psymtab.c (fixup_psymbol_section): Update declaration.
13384         (fixup_psymbol_section): Remove code returning value.
13385
13386 2013-01-03  Yao Qi  <yao@codesourcery.com>
13387
13388         * symtab.h: Remove some out of date comments.
13389          (enum exception_event_kind): Move it ...
13390         * breakpoint.c: ... here.
13391
13392 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
13393
13394         PR gdb/14405
13395         * darwin-nat.c (darwin_read_dyld_info): Only build if
13396         TASK_DYLD_INFO_COUNT is defined.
13397         (darwin_xfer_partial): Call darwin_read_dyld_info only if
13398         TASK_DYLD_INFO_COUNT is defined.
13399
13400 2013-01-02  Tom Tromey  <tromey@redhat.com>
13401
13402         * symfile.h (struct ecoff_debug_hack): Remove.
13403         * objfiles.c: Don't include mdebugread.h.
13404
13405 2013-01-02  Tom Tromey  <tromey@redhat.com>
13406
13407         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13408         * configure.ac: Check for Mach-O support in BFD.  Update
13409         CONFIG_OBS.
13410         * configure: Rebuild.
13411
13412 2013-01-02  Tom Tromey  <tromey@redhat.com>
13413
13414         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13415         * configure.ac: Use GDB_AC_CHECK_BFD.
13416         * configure: Rebuild.
13417
13418 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
13419
13420         * MAINTAINERS: Update my email.
13421
13422 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
13423
13424         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13425
13426 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
13427
13428         * rs6000-nat.c (bss_data_overlap): New function.
13429         (vmap_symtab): Use it to adjust the .bss section's offset.
13430
13431 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
13432
13433         Update year range in copyright notice of all files.
13434
13435 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
13436
13437         * top.c (print_gdb_version): Update copyright year.
13438
13439 For older changes see ChangeLog-2012.
13440 \f
13441 Local Variables:
13442 mode: change-log
13443 left-margin: 8
13444 fill-column: 74
13445 version-control: never
13446 coding: utf-8
13447 End: