5103cbc540059c32dec93a79fe3032d44e6d98f7
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2013-05-20  Tom Tromey  <tromey@redhat.com>
2
3         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
4         Decref the reslut of PyObject_CallMethod.
5
6 2013-05-20  Tom Tromey  <tromey@redhat.com>
7
8         * python/py-event.c (gdbpy_initialize_event_generic): Return
9         early if PyType_Ready fails.
10
11 2013-05-20  Tom Tromey  <tromey@redhat.com>
12
13         * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
14         as 'default' in the switch.
15
16 2013-05-20  Tom Tromey  <tromey@redhat.com>
17
18         * python/py-inferior.c (gdbpy_inferiors): Update.  Hoist
19         get_addr_from_python calls out of TRY_CATCH.
20         (infpy_write_memory, infpy_search_memory): Likewise.
21         * python/py-utils.c (get_addr_from_python): Return negative
22         value on error.  Use TRY_CATCH.
23         * python/python-internal.h (get_addr_from_python): Use
24         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
25
26 2013-05-20  Tom Tromey  <tromey@redhat.com>
27
28         * python/py-event.c (evpy_emit_event): Decref the
29         result of PyObject_CallFunctionObjArgs.
30
31 2013-05-20  Tom Tromey  <tromey@redhat.com>
32
33         * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
34         Correctly decref.
35
36 2013-05-20  Tom Tromey  <tromey@redhat.com>
37
38         * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
39
40 2013-05-20  Tom Tromey  <tromey@redhat.com>
41
42         * python/py-event.h (gdbpy_initialize_event_generic): Use
43         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
44         * python/py-evts.c (add_new_registry): Use
45         CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
46         * python/python-internal.h
47         (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
48
49 2013-05-20  Tom Tromey  <tromey@redhat.com>
50
51         * python/py-arch.c (archpy_disassemble): Update.
52         * python/py-type.c (typy_get_composite, typy_lookup_typename)
53         (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
54         * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
55         * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
56         macro.
57         (GDB_PY_HANDLE_EXCEPTION): Update.
58         (gdbpy_convert_exception): Update.  Use CPYCHECKER_SETS_EXCEPTION.
59
60 2013-05-20  Tom Tromey  <tromey@redhat.com>
61
62         * python/python-internal.h (events_object_type): Remove.
63
64 2013-05-20  Tom Tromey  <tromey@redhat.com>
65
66         * python/py-event.h (evpy_emit_event): Use
67         CPYCHECKER_STEALS_REFERENCE_TO_ARG.
68         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
69         New macro.
70
71 2013-05-20  Tom Tromey  <tromey@redhat.com>
72
73         * py-evtregistry.c (create_event_object): Decref
74         eventregistry_object if PyList_New fails.
75
76 2013-05-20  Tom Tromey  <tromey@redhat.com>
77
78         * py-cmd.c (gdbpy_string_to_argv): Check result of
79         PyList_New.
80
81 2013-05-20  Tom Tromey  <tromey@redhat.com>
82
83         * python/python.c (before_prompt_hook): Add cleanup to
84         decref 'hook'.
85
86 2013-05-20  Tom Tromey  <tromey@redhat.com>
87
88         * python/py-function.c (fnpy_init): Decref result of
89         PyObject_GetAttrString.
90
91 2013-05-20  Tom Tromey  <tromey@redhat.com>
92
93         * python/py-threadevent.c (get_event_thread): Use
94         CPYCHECKER_RETURNS_BORROWED_REF.
95         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
96         New define.
97         (pspace_to_pspace_object, objfile_to_objfile_object)
98         (find_thread_object): Use it.
99
100 2013-05-20  Tom Tromey  <tromey@redhat.com>
101
102         * python/py-arch.c (arch_object_type): Use
103         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
104         * python/py-block.c (block_syms_iterator_object_type):
105         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
106         * python/py-bpevent.c (breakpoint_event_object_type):
107         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
108         * python/py-cmd.c (cmdpy_object_type): Use
109         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
110         * python/py-continueevent.c (continue_event_object_type):
111         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
112         * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
113         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
114         * python/py-events.h (thread_event_object_type):
115         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
116         * python/py-evtregistry.c (eventregistry_object_type): Use
117         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
118         * python/py-exitedevent.c (exited_event_object_type):
119         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
120         * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
121         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
122         * python/py-function.c (fnpy_object_type): Use
123         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
124         * python/py-inferior.c (inferior_object_type, membuf_object_type):
125         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
126         * python/py-infthread.c (thread_object_type): Use
127         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
128         * python/py-lazy-string.c (lazy_string_object_type):
129         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
130         * python/py-newobjfileevent.c (new_objfile_event_object_type):
131         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
132         * python/py-objfile.c (objfile_object_type): Use
133         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
134         * python/py-param.c (parmpy_object_type):
135         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
136         * python/py-progspace.c (pspace_object_type):
137         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
138         * python/py-signalevent.c (signal_event_object_type):
139         Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
140         * python/py-symtab.c (symtab_object_type, sal_object_type): Use
141         CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
142         * python/py-type.c (type_object_type, field_object_type)
143         (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
144         * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
145         define.
146         (value_object_type, block_object_type, symbol_object_type)
147         (event_object_type, stop_event_object_type, breakpoint_object_type)
148         (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
149
150 2013-05-20  Andreas Tobler  <andreas@fgznet.ch>
151
152         * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
153         (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
154
155 2013-05-20  Doug Evans  <dje@google.com>
156
157         When reading CU, stay in DWO.  Be more tolerent of bad debug info.
158         For Fission.
159         * dwarf2read.c (struct dwarf2_per_cu_data): New member
160         reading_dwo_directly.
161         (struct signatured_type): New member dwo_unit.
162         (struct die_reader_specs): New member comp_dir.
163         (create_signatured_type_table_from_index): Use malloc for
164         all_type_units instead of objfile's obstack.
165         (create_all_type_units): Ditto.
166         (fill_in_sig_entry_from_dwo_entry): New function.
167         (add_type_unit): New function.
168         (lookup_dwo_signatured_type): New function.
169         (lookup_dwp_signatured_type): New function.
170         (lookup_signatured_type): New arg cu.  All callers updated.
171         (init_cu_die_reader): Initialize comp_dir.
172         (read_cutu_die_from_dwo): New arg stub_comp_dir.  All callers updated.
173         Change assert of matching type signatures to call error on mismatch.
174         (lookup_dwo_unit): Add assert.
175         (init_tu_and_read_dwo_dies): New function.
176         (init_cutu_and_read_dies): Call it.
177         (build_type_unit_groups): Handle case of no type unit groups created.
178         (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
179         (lookup_dwo_cutu): Tweak complaint.
180         (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
181         (dwarf2_per_objfile_free): Free all_type_units.
182
183 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
184
185         * windows-nat.c (handle_unload_dll): Add missing empty line.
186
187 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
188
189         * dwarf2read.c (prototyped_function_p): New function.
190         (read_subroutine_type): Use it.
191
192 2013-05-20  Joel Brobecker  <brobecker@adacore.com>
193
194         * rs6000-aix-tdep.c: De-indent some example code provided
195         as a comment.
196
197 2013-05-17  Edjunior Machado  <emachado@linux.vnet.ibm.com>
198
199         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
200         region is ok for a hardware watchpoint using the new ptrace interface
201         on Power servers.
202
203 2013-05-17  Doug Evans  <dje@google.com>
204
205         * NEWS: Mention new maintenance commands check-symtabs, and
206         expand-symtabs, and renamed check-psymtabs.
207         * psymtab.c (maintenance_check_psymtabs): Renamed from
208         maintenance_check_symtabs.  Only process already-expanded symbol
209         tables.
210         (_initialize_psymtab): Update.
211         * symmisc.c (maintenance_check_symtabs): New function.
212         (maintenance_expand_name_matcher): New function
213         (maintenance_expand_file_matcher): New function
214         (maintenance_expand_symtabs): New function.
215         (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
216         commands.
217
218 2013-05-17  Tom Tromey  <tromey@redhat.com>
219
220         * python/py-inferior.c (infpy_read_memory): Don't call
221         PyErr_SetString if PyObject_New fails.
222         * python/py-frame.c (frame_info_to_frame_object): Don't call
223         PyErr_SetString if PyObject_New fails.
224
225 2013-05-17  Pavel Chupin  <pavel.v.chupin@intel.com>
226
227         * acinclude.m4: Add check for dlopen in libdl.
228         * configure.ac: Ditto.
229         * configure: Regenerate.
230
231 2013-05-17  Phil Muldoon  <pmuldoon@redhat.com>
232
233         * frame.c (frame_stash): Convert to htab.
234         (frame_addr_hash): New function.
235         (frame_addr_hash_eq): New function.
236         (frame_stash_create): Convert function to create
237         a hash table.
238         (frame_stash_add): Convert function to add an entry to a hash
239         table.
240         (frame_stash_find): Convert function to search the hash table.
241         (frame_stash_invalidate): Convert function to empty the hash
242         table.
243         (get_frame_id): Only add to stash if a frame_id is created.
244         (_initialize_frame): Call frame_stash_create.
245
246 2013-05-16  Yue Lu  <hacklu.newborn@gmail.com>  (tiny change)
247
248         * configure.ac: Ensure MIG is available when building for GNU Hurd
249         hosts.
250         * configure: Regenerate.
251
252 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
253
254         * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
255
256 2013-05-16  Joel Brobecker  <brobecker@adacore.com>
257
258         * ada-lang.c (ada_make_symbol_completion_list): Make sure
259         all cleanups are done before returning from this function.
260
261 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
262
263         * utils.h: #include "exceptions.h".
264         (enum errors): Remove partial declaration.
265
266 2013-05-15  Joel Brobecker  <brobecker@adacore.com>
267
268         * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
269         * gdbarch.h, gdbarch.c: Regenerate.
270         * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
271         handling.
272
273         * rs6000-aix-tdep.h: New file.
274         * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
275         * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
276         "xml-utils.h".
277         (struct field_info, struct ld_info_desc): New types.
278         (ld_info32_desc, ld_info64_desc): New static constants.
279         (struct ld_info): New type.
280         (rs6000_aix_extract_ld_info): New function.
281         (rs6000_aix_shared_library_to_xml): Likewise.
282         (rs6000_aix_ld_info_to_xml): Likewise.
283         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
284         (rs6000_aix_init_osabi): Add call to
285         set_gdbarch_core_xfer_shared_libraries_aix.
286         * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
287         Remove "xml-utils.h" include.
288         (LdInfo): Delete typedef.
289         (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
290         Delete macros.
291         (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
292         Adjust code accordingly.
293         (rs6000_core_ldinfo): Delete, folded into
294         rs6000_aix_core_xfer_shared_libraries_aix.
295         (rs6000_xfer_shared_library): Delete.
296         (rs6000_xfer_shared_libraries): Reimplement.
297
298 2013-05-15  Markus Metzger  <markus.t.metzger@intel.com>
299
300         * record.c (record_goto_cmdlist): New.
301         (cmd_record_goto): Split into this ...
302         (cmd_record_goto_begin): ... this
303         (cmd_record_goto_end): ... and this.
304         (_initialize_record): Change "record goto" to prefix command.
305         Add commands for "record goto begin" and "record goto end".
306         Add an alias for "record goto start" to "record goto begin".
307
308 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
309
310         * linespec.c (convert_linespec_to_sals): New comment for
311         SOURCE_FILENAME assignment.
312
313 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
314
315         * cleanups.c (restore_my_cleanups): Replace gdb_assert by
316         internal_warning.
317
318 2013-05-14  Tom Tromey  <tromey@redhat.com>
319
320         * eval.c (parse_and_eval_long): Make 'exp' const.
321         * value.h (parse_and_eval_long): Update.
322
323 2013-05-14  Tom Tromey  <tromey@redhat.com>
324
325         * ui-file.c (gdb_fopen): Make arguments const.
326         * ui-file.h (gdb_fopen): Make arguments const.
327
328 2013-05-14  Tom Tromey  <tromey@redhat.com>
329
330         * remote.c (remote_set_trace_notes): Make arguments const.
331         * target.c (update_current_target): Update cast.
332         * target.h (to_set_trace_notes): Make arguments const.
333
334 2013-05-14  Tom Tromey  <tromey@redhat.com>
335
336         * go32-nat.c (go32_terminal_info): Make 'args' const.
337         * inferior.h (child_terminal_info): Update.
338         * inflow.c (child_terminal_info): Make 'args' const.
339         * target.c (default_terminal_info): Make 'args' const.
340         (debug_to_terminal_save_ours): Likewise.
341         * target.h (struct target_ops) <to_terminal_info>: Make argument
342         const.
343
344 2013-05-13  Tom Tromey  <tromey@redhat.com>
345
346         * gcore.c (create_gcore_bfd): Make 'filename' const.
347         * gcore.h (create_gcore_bfd): Make 'filename' const.
348         * record-full.c (record_full_save): Make 'recfilename' const.
349         * target.c (target_save_record): Make 'filename' const.
350         * target.h (struct target_ops) <to_save_record>: Make 'filename'
351         const.
352         (target_save_record): Likewise.
353
354 2013-05-13  Tom Tromey  <tromey@redhat.com>
355
356         PR gdb/15338:
357         * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
358         ranges section has been read.
359
360 2013-05-13  Tom Tromey  <tromey@redhat.com>
361
362         PR exp/15364:
363         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
364         STRUCTOP_PTR>: Return a not_lval value for
365         EVAL_AVOID_SIDE_EFFECTS.
366         * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
367         for EVAL_AVOID_SIDE_EFFECTS.
368
369 2013-05-13  Joel Brobecker  <brobecker@adacore.com>
370
371         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
372         floating point registers to register type before storing
373         value.
374         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
375         Likewise.
376
377 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
378             Tom Tromey  <tromey@redhat.com>
379
380         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
381         New functions.
382         * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
383         Declare.
384         * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
385         (darwin_ptrace_him): Use unmark_fd_no_cloexec.
386         * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
387         (inf_ttrace_prepare): Use mark_fd_no_cloexec.
388
389 2013-05-10  Freddie Chopin  <freddie_chopin@op.pl>
390             Tom Tromey  <tromey@redhat.com>
391
392         PR build/15414:
393         * configure: Rebuild.
394         * configure.ac (build_warnings): Do not use -Wformat-nonliteral
395         with -Wno-format.
396
397 2013-05-10  Pedro Alves  <palves@redhat.com>
398
399         * remote.c (_initialize_remote): Fix spelling of
400         qXfer:traceframe-info:read packet in packet config command.
401
402 2013-05-10  David Taylor  <dtaylor@emc.com>
403
404         PR remote/15455
405
406         * remote.c (remote_trace_set_readonly_regions): Do not overwrite
407         "QTro" at start of packet.
408
409 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
410
411         * solib-aix.c (solib_aix_relocate_section_addresses):
412         For the .bss section action, apply the same offset as
413         the .data section.
414
415 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
416
417         * solib-aix.c (solib_aix_relocate_section_addresses):
418         Remove FIXME comment.
419
420 2013-05-10  Joel Brobecker  <brobecker@adacore.com>
421
422         PR tdep/15420:
423         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
424         New functions, directly copied from sparc-sol-thread.c.
425         * sparc-sol-thread.c: Delete.
426         * configure.ac: Remove code handling sparc-solaris-thread.c.
427         * configure: Regenerate.
428
429 2013-05-10  Phil Muldoon  <pmuldoon@redhat.com>
430
431         * stack.c (backtrace_command_1): Add "no-filters", and Python frame
432         filter logic.
433         (backtrace_command): Add "no-filters" option parsing.
434         (_initialize_stack): Alter help to reflect "no-filters" option.
435         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
436         (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
437         (py-frame.o): Add target
438         * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
439         filter files.
440         * python/python.h: Add new frame filter constants, and flag enum.
441         (apply_frame_filter): Add definition.
442         * python/python.c (apply_frame_filter): New non-Python
443         enabled function.
444         * python/py-utils.c (py_xdecref): New function.
445         (make_cleanup_py_xdecref): Ditto.
446         * python/py-objfile.c: Declare frame_filters dictionary.
447         (objfpy_dealloc): Add frame_filters dealloc.
448         (objfpy_new): Initialize frame_filters attribute.
449         (objfile_to_objfile_object): Ditto.
450         (objfpy_get_frame_filters): New function.
451         (objfpy_set_frame_filters): New function.
452         * python/py-progspace.c: Declare frame_filters dictionary.
453         (pspy_dealloc): Add frame_filters dealloc.
454         (pspy_new): Initialize frame_filters attribute.
455         (pspacee_to_pspace_object): Ditto.
456         (pspy_get_frame_filters): New function.
457         (pspy_set_frame_filters): New function.
458         * python/py-framefilter.c: New file.
459         * python/lib/gdb/command/frame_filters.py: New file.
460         * python/lib/gdb/frames.py: New file.
461         * python/lib/gdb/__init__.py: Initialize global frame_filters
462         dictionary
463         * python/lib/gdb/FrameDecorator.py: New file.
464         * python/lib/gdb/FrameIterator.py: New file.
465         * mi/mi-cmds.c (mi_cmds): Add frame filters command.
466         * mi/mi-cmds.h: Declare.
467         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
468         --no-frame-filter logic, and Python frame filter logic.
469         (stack_enable_frame_filters): New function.
470         (parse_no_frame_option): Ditto.
471         (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
472         filter logic.
473         (mi_cmd_stack_list_locals): Ditto.
474         (mi_cmd_stack_list_args): Ditto.
475         (mi_cmd_stack_list_variables): Ditto.
476         * NEWS: Add frame filter note.
477
478 2013-05-09  Doug Evans  <dje@google.com>
479
480         * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
481         All callers updated.
482         (syms_from_objfile): Ditto.  Make static.
483         (symbol_file_add_with_addrs): Renamed from
484         symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
485         num_offsets.  All callers updated.
486         * symfile.h (syms_from_objfile): Delete.
487
488         * symfile.c (decrement_reading_symtab): Add assert.
489         (increment_reading_symtab): Ditto.
490
491 2013-05-09  Joel Brobecker  <brobecker@adacore.com>
492
493         * source.c (forward_search_command): Replace call to getc
494         by call to fgetc.
495         (reverse_search_command): Likewise.
496
497 2013-05-08  Doug Evans  <dje@google.com>
498
499         * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
500         matching test.
501
502 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
503
504         * sol-thread.c (info_cb): Factorize the code a little.
505
506 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
507
508         * sol-thread.c (info_cb): Rework the output of the "maintenance
509         info sol-threads" command a bit.
510
511 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
512
513         * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
514         Replace ti.ti_startfunc by ti.ti_pc.
515
516 2013-05-08  Joel Brobecker  <brobecker@adacore.com>
517
518         * solib-aix.c (solib_aix_free_library_list): New function
519         for the case where HAVE_LIBEXPAT is not defined.
520
521 2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
522
523         PR breakpoints/15413:
524         * breakpoint.c (condition_completer): Simplify the code to
525         disconsider multiple locations of breakpoints when completing the
526         "condition" command.
527
528 2013-05-07  Pierre Muller  <muller@sourceware.org>
529
530         * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
531         instead of <sys/wait.h>.
532
533 2013-05-07  Pierre Muller  <muller@sourceware.org>
534
535         * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
536         trailing new line from warning message.
537
538 2013-05-07  Pierre Muller  <muller@sourceware.org>
539
540         * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
541         (PC_SOLIB): Change type from ari_deprecate to ari_regression.
542
543 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
544
545         * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
546         error message (ARI fix).
547
548 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
549
550         * features/library-list-aix.dtd: Replace library-list by
551         library-list-aix.
552         * rs6000-nat.c: Replace library-list by library-list-aix
553         throughout.
554         * solib-aix.c: Likewise.
555
556 2013-05-07  Joel Brobecker  <brobecker@adacore.com>
557
558         * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
559         Renames TARGET_OBJECT_AIX_LIBRARIES.
560         * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
561         TARGET_OBJECT_LIBRARIES_AIX throughout.
562         * solib-aix.c: Likwise.
563
564 2013-05-07  Yao Qi  <yao@codesourcery.com>
565
566         * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
567         (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
568
569 2013-05-07  Yao Qi  <yao@codesourcery.com>
570
571         * solib-dsbt.c (enable_break): Declare.
572         (dsbt_current_sos): Remove call to enable_break2.
573         (enable_break2): Rename to enable_break.  Set solib breakpoint
574         on '_dl_debug_state'.
575         (enable_break): Remove.
576
577 2013-05-07  Luis Machado  <lgustavo@codesourcery.com>
578
579         * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
580         debug state prior to replicating existing hardware watchpoints or
581         breakpoints.
582
583 2013-05-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
584
585         * gcore.c (gcore_create_callback): Ignore sections with
586         separate_debug_objfile_backlink != NULL.
587
588 2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
589             Andrew Jenner  <andrew@codesourcery.com>
590             Chung-Lin Tang  <cltang@codesourcery.com>
591             Julian Brown  <julian@codesourcery.com>
592
593         Based on the nios2-elf port from Altera Corporation.
594
595         * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
596         nios2-linux-tdep.o.
597         (HFILES_NO_SRCDIR): Add nios2-tdep.h.
598         (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
599         * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
600         * nios2-tdep.h: New.
601         * nios2-tdep.c: New.
602         * nios2-linux-tdep.c: New.
603         * features/Makefile (WHICH): Add nios2-linux.
604         (nios2-linux-expedite): Set.
605         * features/nios2-cpu.xml: New.
606         * features/nios2.xml: New.
607         * features/nios2-linux.xml: New.
608         * features/nios2.c: New (autogenerated).
609         * features/nios2-linux.c: New (autogenerated).
610         * regformats/nios2-linux.dat: New (autogenerated).
611         * NEWS (Changes since GDB 7.6): Add new Nios II targets
612         and commands.
613
614 2013-05-06  Doug Evans  <dje@google.com>
615
616         * symfile.c: Whitespace cleanup.
617
618         * solist.h (struct target_so_ops): New member clear_so.
619         * solib-svr4.c (svr4_clear_so): New function.
620         (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
621         * solib.c (clear_so): Renamed from free_so_symbols.
622         All callers updated.  Call target clear_so if it exists.
623
624 2013-05-06  Tom Tromey  <tromey@redhat.com>
625
626         * ada-lang.c (ada_value_primitive_packed_val): Don't
627         call value_incref.
628         * value.c (set_value_parent): Incref the new parent and decref
629         the old parent.
630         (value_copy, value_primitive_field): Use set_value_parent.
631
632 2013-05-06  Tom Tromey  <tromey@redhat.com>
633
634         * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
635         (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
636         if needed.
637         * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
638         * dwarf2read.c (write_constant_as_bytes)
639         (dwarf2_fetch_constant_bytes): New functions.
640
641 2013-05-06  Tom Tromey  <tromey@redhat.com>
642
643         * dwarf2read.c (dwarf2_const_value_data): Remove unused
644         parameters.
645         (dwarf2_const_value_attr): Update.
646
647 2013-05-06  Tom Tromey  <tromey@redhat.com>
648
649         * somread.c (som_symfile_offsets): Add 'const' to addrs.
650         * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
651         * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
652         Remove declaration.
653
654 2013-05-06  Tom Tromey  <tromey@redhat.com>
655
656         * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
657         objfile's obstack.
658
659 2013-05-06  Doug Evans  <dje@google.com>
660
661         * dbxread.c (process_one_symbol): Constify section_offsets parameter.
662         * stabsread.h (process_one_symbol): Update declaration.
663         * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
664         * elfread.c (elf_symfile_relocate_probe): Ditto.
665         * psymtab.c (relocate_psymtabs): Ditto.
666         * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
667         (objfile_relocate): Ditto.
668         * objfiles.h (objfile_relocate): Update declaration.
669         * symfile.c (relative_addr_info_to_section_offsets): Constify
670         addrs parameter.
671         (default_symfile_offsets): Ditto.
672         (syms_from_objfile_1): Constify offsets parameter.
673         (syms_from_objfile): Ditto.
674         (symbol_file_add_with_addrs_or_offsets): Ditto.
675         (symfile_map_offsets_to_segments): Constify data parameter.
676         * symfile.h (struct quick_symbol_functions): Constify new_offsets,
677         delta parameters of member relocate.
678         (struct sym_probe_fns): Constify new_offsets,
679         delta parameters of member sym_relocate_probe.
680         (struct sym_fns): Constify section_addr_info parameter of member
681         sym_offsets.
682         (relative_addr_info_to_section_offsets): Update declaration.
683         (default_symfile_offsets): Ditto.
684         (syms_from_objfile): Ditto.
685         (symfile_map_offsets_to_segments): Ditto.
686
687         * symfile.c (syms_from_objfile_1): Use correct section count when
688         objfile->sf == NULL.
689
690 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
691
692         * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
693
694 2013-05-06  Doug Evans  <dje@google.com>
695
696         * psympriv.h (struct partial_symtab): Augment comment for member
697         section_offsets.
698
699 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
700
701         Reimplement shared library support on ppc-aix...
702         * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
703         * features/library-list-aix.dtd: New file.
704         * solib-aix.h, solib-aix.c: New file.
705         * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
706         (rs6000_find_toc_address_hook): Delete.
707         (rs6000_push_dummy_call): Rewrite code setting the TOC value.
708         (rs6000_aix_init_osabi): Register solib_aix_so_ops.
709         * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
710         "xml-utils.h".
711         (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
712         (vmap_symtab, fixup_breakpoints): Delete.
713         (rs6000_xfer_shared_libraries): New function.
714         (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
715         (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
716         (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
717         (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
718         (rs6000_xfer_shared_library): New function.
719         (find_toc_address): Delete.
720         (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
721         * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
722         * xcoffread.c (record_minimal_symbol): Reloate symbol address
723         before creating minimal symbol.  Adjust function description
724         accordingly.
725         (scan_xcoff_symtab): Replace call to
726         prim_record_minimal_symbol_and_info by call to
727         record_minimal_symbol.
728         (xcoff_symfile_offsets): Reimplement mostly as a wrapper
729         around default_symfile_offsets.
730         * configure.tgt: Add solib-aix.o to gdb_target_obs for
731         powerpc-aix targets.
732         * config/rs6000/nm-rs6000.h: Delete.
733         * config/powerpc/aix.mh (NAT_FILE): Delete.
734         (NATDEPFILES): Remove xcoffsolib.o.
735         * Makefile.in (XMLFILES): Add library-list-aix.dtd.
736         (ALL_TARGET_OBS): Add solib-aix.o.
737         (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
738         config/rs6000/nm-rs6000.h.  Add solib-aix.h.
739         (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
740         * xcoffsolib.h, xcoffsolib.c: Delete.
741
742         * solib.c (reload_shared_libraries): Remove reference to
743         SOLIB_CREATE_INFERIOR_HOOK.
744         * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
745         (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
746         (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
747         comment.
748         * corelow.c (deprecated_core_resize_section_table): Delete.
749         * exec.c: Remove include of xcoffsolib.h".
750         (map_vmap, vmap): Delete.
751         (exec_close_1): Remove references to vmap.
752         (exec_file_attach): Remove vmap handling code, and reference
753         to DEPRECATED_IBM6000_TARGET.
754         (bfdsec_to_vmap): Delete.
755         (exec_files_info): Remove block of code handling VMAP.
756         * infcmd.c (post_create_inferior): Remove reference to
757         SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
758         * infrun.c (follow_exec): Remove reference to
759         SOLIB_CREATE_INFERIOR_HOOK.
760         * stack.c (print_frame): Remove reference to PC_SOLIB.
761         * solib-dsbt.c (dsbt_current_sos): Adjust comment.
762         (dsbt_relocate_main_executable): Likewise.
763         * solib-frv.c (frv_current_sos): Likewise.
764
765 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
766
767         * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
768         to target_write_memory and target_read_memory.
769
770 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
771
772         * darwin-nat.c (darwin_setup_fake_stop_event): New function.
773         (darwin_attach): Adjust using darwin_setup_fake_stop_event.
774
775 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
776
777         * darwin-nat.c: Replace all "%x" instances in format strings
778         into "0x%x" throughout.
779
780 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
781
782         * darwin-nat.c (darwin_mourn_inferior): Replace call to
783         gdb_assert by call to MACH_CHECK_ERROR.
784         (darwin_attach_pid): Raise an error rather than a failed
785         assertion when various system calls failed.  Report a warning
786         instead of raising a failed assertion when PREV_NOT is not NULL
787         after call to mach_port_request_notification.
788         (darwin_ptrace_me): Raise an error rather than a failed
789         assertion when read returns nonzero.
790
791 2013-05-06  Joel Brobecker  <brobecker@adacore.com>
792
793         * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
794
795 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
796
797         * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
798
799 2013-05-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
800
801         * event-top.c (display_gdb_prompt): Call missing do_cleanups.
802         * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
803         * symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
804         a stale cleanup.  Fix double free of NAME.
805
806 2013-05-04  Eli Zaretskii  <eliz@gnu.org>
807
808         * windows-nat.c (windows_delete_thread): Accept an additional
809         argument, the thread's exit code, and announce thread death when
810         print_thread_events is non-zero and we are deleting a thread that
811         is not the main thread.
812         (get_windows_debug_event): Pass thread exit code to
813         windows_delete_thread.
814
815 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
816
817         * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
818         (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
819         (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
820         (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
821         (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
822         (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
823         (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
824         (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
825         (gdbarch_tdep): New struct.
826         (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
827         E_NUM_REGS.
828         (v850e3v5_register_name): New function.
829         (v850_register_type): v850e3v5 vector registers are 64-bits wide.
830         (v850_use_struct_convention): Add `gdbarch' parameter.  Add new
831         code handling the struct return conventions for the RH850 ABI.
832         Update all callers.
833         (v850_eight_byte_align_p): New function.
834         (v850_push_call_dummy): Push structs by value, not by reference
835         for the RH850 ABI.  Add support for eight byte alignment.
836         (v850_dbtrap_breakpoint_from_pc): New function.
837         (v850_gdbarch_init): Add ABI detection code.  Register
838         v850e3v5_register_name for the v850e3v5 architecture.  Set the
839         number of registers for v850e3v5.  Register
840         v850_dbtrap_breakpoint_from_pc as appropriate.
841         (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
842
843 2013-05-03  Doug Evans  <dje@google.com>
844
845         * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
846         of bfd_count_sections.
847         * solib-target.c (solib_target_relocate_section_addresses): Ditto.
848         * symfile.c (default_symfile_offsets): Ditto.
849         (syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
850         one entry, not bfd_count_sections entries.
851
852 2013-05-03  Kevin Buettner  <kevinb@redhat.com>
853
854         * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
855         `save' and `restore' register groups.  Don't include SPL
856         or SPH in these groups.
857         (rl78_dwarf_reg_to_regnum):  Adjust mapping for
858         RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
859         RL78_ES_REGNUM, and RL78_CS_REGNUM.
860         (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
861         dwarf2_append_unwinders().
862
863 2013-05-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
864
865         * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
866         ignore SIGINT and SIGTRAP in case these internal signals are
867         caught explicitely.
868
869 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
870
871         * darwin-nat.c (darwin_read_write_inferior): Change types
872         of parameters rdaddr and wraddr to "gdb_byte *". Change type
873         of copy_count to "mach_msg_type_number_t".
874         (darwin_read_dyld_info): Change type of parameter
875         rdaddr to "gdb_byte *".
876
877 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
878
879         * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
880         of &info->load_map from "char *" to "gdb_byte *".
881
882 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
883
884         * ia64-tdep.c (ia64_access_fpreg): Change cast of val
885         from "char *" to "gdb_byte *".
886         (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
887
888 2013-04-30  Doug Evans  <dje@google.com>
889
890         * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
891         (init_cutu_and_read_dies): Flag a complaint, not error, for bad
892         DWO stub.  If DWO isn't found, just use stub.
893         (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
894
895         * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
896         calling init_cutu_and_read_dies.
897
898 2013-03-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
899
900         * target-descriptions.c (maint_print_c_tdesc_cmd):
901         Add case to parse structures as register types and
902         bitfields.
903
904 2013-04-30  Walfred Tedeschi  <walfred.tedeschi@intel.com>
905
906         * MAINTAINERS (Write After Approval): Add myself to the list.
907
908 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
909
910         * sol-thread.c (rw_common): Change type of parameter "buf"
911         to "gdb_byte *".
912         (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
913         rw_common to "gdb_byte *" instead of "char *".
914
915 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
916
917         * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
918         of local variable msym to const struct bound_minimal_symbol.
919         Adjust use accordingly.
920         [ti.ti_state == TD_THR_SLEEP]: Likewise.
921
922 2013-04-30  Samuel Thibault  <samuel.thibault@gnu.org>
923
924         * i386gnu-nat.c (CREG_OFFSET): New macro.
925         (creg_offset): New array.
926         (CREG_ADDR): Use creg_offset instead of reg_offset.
927
928 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
929
930         * mep-tdep.c (mep_write_pc): Delete.
931         (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
932         Add call to set_gdbarch_pc_regnum.
933
934 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
935
936         * common/filestuff.c: Replace #include <dirent.h> by
937         #include "gdb_dirent.h".
938
939 2013-04-30  Joel Brobecker  <brobecker@adacore.com>
940
941         * common/filestuff.c: Replace #include <sys/stat.h> by
942         #include "gdb_stat.h".
943
944 2013-04-29  Pierre Muller  <muller@sourceware.org>
945
946         * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
947         editCase function rule.
948         (get_DW_AT_signature_type): Likewise.
949
950 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
951
952         * m32r-tdep.c (m32r_write_pc): Delete.
953         (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
954         Add call to set_gdbarch_pc_regnum.
955
956 2013-04-29  Pierre Muller  <muller@sourceware.org>
957
958         * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
959
960 2013-04-29  Joel Brobecker  <brobecker@adacore.com>
961
962         * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
963
964 2013-04-28  Yao Qi  <yao@codesourcery.com>
965
966         * solib-dsbt.c (fetch_loadmap): Re-indent.
967         (displacement_from_map, enable_break2): Likewise.
968         (dsbt_relocate_section_addresses): Likewise.
969
970 2013-04-26  Joel Brobecker  <brobecker@adacore.com>
971
972         GDB 7.6 released.
973
974 2013-04-25  Andreas Kaufmann  <Andreas.Kaufmann@synopsys.com>
975
976         PR corefiles/14983:
977         * dwarf2read.c (process_full_comp_unit): Always create a static
978         block.
979
980 2013-04-25  Hui Zhu  <hui@codesourcery.com>
981
982         * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
983         to loc->cmd_bytecode.
984
985 2013-04-24  Doug Evans  <dje@google.com>
986
987         * dwarf2read.c (setup_type_unit_groups): Fix comment.
988
989 2013-04-22  Keith Seitz  <keiths@redhat.com>
990
991         * tracepoint.c (trace_save):  Call the writer's start method.
992
993 2013-04-24  Muhammad Bilal  <mbilal@codesourcery.com>
994
995         PR gdb/10462
996         * cli/cli-decode.c (lookup_command): Show an error if there is no space
997         before argument.
998
999 2013-04-23  Tom Tromey  <tromey@redhat.com>
1000
1001         * common/filestuff.c: Check USE_WIN32API before including
1002         sys/socket.h.
1003         (HAVE_F_GETFD): New define.
1004         (mark_cloexec): Check HAVE_F_GETFD.
1005         (gdb_open_cloexec): Change 'mode' to unsigned long.
1006         (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
1007         (gdb_pipe_cloexec): Check HAVE_PIPE.
1008         * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
1009         long.
1010
1011 2013-04-23  Hui Zhu  <hui@codesourcery.com>
1012
1013         PR gdb/15293
1014         * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
1015
1016 2013-04-23  Hui Zhu  <hui@codesourcery.com>
1017
1018         PR gdb/15165
1019         * breakpoint.c (dprintf_print_recreate): New.
1020         (save_breakpoints): Let it not save dprintf commands.
1021         (initialize_breakpoint_ops): Set dprintf_print_recreate.
1022
1023 2013-04-22  Tom Tromey  <tromey@redhat.com>
1024
1025         PR gdb/7912:
1026         * Makefile.in (SFILES): Add filestuff.c
1027         (COMMON_OBS): Add filestuff.o.
1028         (filestuff.o): New target.
1029         * auto-load.c (auto_load_objfile_script_1): Use
1030         gdb_fopen_cloexec.
1031         * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
1032         * cli/cli-cmds.c (shell_escape): Call close_most_fds.
1033         * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
1034         * common/agent.c (gdb_connect_sync_socket): Use
1035         gdb_socket_cloexec.
1036         * common/filestuff.c: New file.
1037         * common/filestuff.h: New file.
1038         * common/linux-osdata.c (linux_common_core_of_thread)
1039         (command_from_pid, commandline_from_pid, print_source_lines)
1040         (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
1041         (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
1042         gdb_fopen_cloexec.
1043         * common/linux-procfs.c (linux_proc_get_int)
1044         (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
1045         * config.in, configure: Rebuild.
1046         * configure.ac: Don't check for sys/socket.h.  Check for
1047         fdwalk, pipe2.
1048         * corelow.c (core_open): Use gdb_open_cloexec.
1049         * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
1050         * fork-child.c (fork_inferior): Call close_most_fds.
1051         * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
1052         * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
1053         * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
1054         Use gdb_fopen_cloexec.
1055         (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
1056         gdb_open_cloexec.
1057         (linux_async_pipe): Use gdb_pipe_cloexec.
1058         * remote-fileio.c (remote_fileio_func_open): Use
1059         gdb_open_cloexec.
1060         * remote.c (remote_file_put, remote_file_get): Use
1061         gdb_fopen_cloexec.
1062         * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
1063         close_most_fds.
1064         * ser-tcp.c (net_open): Use gdb_socket_cloexec.
1065         * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
1066         * solib.c (solib_find): Use gdb_open_cloexec.
1067         * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
1068         * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
1069         (tfile_open): Use gdb_open_cloexec.
1070         * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
1071         * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
1072         * xml-support.c (xml_fetch_content_from_file): Use
1073         gdb_fopen_cloexec.
1074         * main.c (captured_main): Call notice_open_fds.
1075
1076 2013-04-22  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1077
1078         * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
1079         'char *' to 'gdb_byte *'.
1080         (gdbsim_store_register): Change the type of 'tmp' from 'char' to
1081         'gdb_byte'.
1082
1083 2013-04-22  Yao Qi  <yao@codesourcery.com>
1084
1085         * infrun.c: Fix typo in comment.
1086
1087 2013-04-22  Andrew Haley  <aph@redhat.com>
1088
1089         * arm-tdep.c (BranchDest): Cast result as "unsigned long",
1090         instead of "long".
1091
1092 2013-04-20  Yao Qi  <yao@codesourcery.com>
1093
1094         * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
1095         'char *' to 'gdb_byte *'.  Cast the return value of
1096         'bt_ctf_get_char_array' to 'gdb_byte *'.
1097
1098 2013-04-19  Pedro Alves  <palves@redhat.com>
1099
1100         * configure.ac (build_warnings): Replace -Wno-pointer-sign with
1101         -Wpointer-sign.
1102         * configure: Regenerate.
1103
1104 2013-04-19  Pedro Alves  <palves@redhat.com>
1105
1106         * ser-tcp.c (net_read_prim): Cast second argument to recv to
1107         'void *'.
1108
1109 2013-04-19  Pedro Alves  <palves@redhat.com>
1110
1111         * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
1112         Change type of 'myaddr' parameter to gdb_byte pointer.
1113         (monitor_write_memory_longlongs): Likewise.  Cast 'myaddr' pointer
1114         to 'long long' pointer instead of to 'unsigned long long'.
1115         (monitor_write_memory_block, monitor_read_memory_single)
1116         (monitor_read_memory): Change type of 'myaddr' parameter to
1117         gdb_byte pointer.
1118
1119 2013-04-19  Pedro Alves  <palves@redhat.com>
1120
1121         * record.c (validate_history_size): Make parameter 'setting'
1122         unsigned.
1123
1124 2013-04-19  Pedro Alves  <palves@redhat.com>
1125
1126         * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
1127         to 'gdb_byte *'.
1128
1129 2013-04-19  Pedro Alves  <palves@redhat.com>
1130
1131         * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
1132         local to int.
1133
1134 2013-04-19  Pedro Alves  <palves@redhat.com>
1135
1136         * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
1137         * ada-tasks.c (read_fat_string_value): Likewise.
1138
1139 2013-04-19  Pedro Alves  <palves@redhat.com>
1140
1141         * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
1142         unsigned.  Pass 'tmp' to safe_read_uleb128 instead of the signed
1143         'offset', and adjust.
1144
1145 2013-04-19  Pedro Alves  <palves@redhat.com>
1146
1147         * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
1148         (read_index_from_section): Add cast to 'char *'.
1149
1150 2013-04-19  Pedro Alves  <palves@redhat.com>
1151
1152         * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
1153
1154 2013-04-19  Pedro Alves  <palves@redhat.com>
1155
1156         * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
1157
1158 2013-04-19  Pedro Alves  <palves@redhat.com>
1159
1160         * record-full.c (record_full_get_bookmark): Change local 'ret'
1161         type to char * and add cast to gdb_byte *.
1162         (record_full_goto_bookmark): Handle 'bookmark' argument as a
1163         string.
1164         * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
1165
1166 2013-04-19  Pedro Alves  <palves@redhat.com>
1167
1168         * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
1169         * python/py-prettyprint.c (print_string_repr): Change type of
1170         'output' local to char *.  Add cast to gdb_byte * in
1171         LA_PRINT_STRING call.
1172         (print_children): Change type of 'output' local to char *.
1173         * python/py-value.c (valpy_string): Add cast to const char * in
1174         PyUnicode_Decode call.
1175
1176 2013-04-19  Pedro Alves  <palves@redhat.com>
1177
1178         * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
1179         and change its type to 'const char *'.  Adjust.
1180         (mips_send_packet): Add cast to 'char *', and remove cast to
1181         'unsigned char *'.
1182         (mips_receive_packet): Remove cast to 'unsigned char *'.
1183         (mips_load_srec): Use bfd_byte.
1184         (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
1185         (pmon_checkset): Make 'value' parameter unsigned.
1186
1187 2013-04-19  Pedro Alves  <palves@redhat.com>
1188
1189         * common/agent.c (agent_run_command): Add cast to gdb_byte *.
1190
1191 2013-04-19  Pedro Alves  <palves@redhat.com>
1192
1193         * remote.c (remote_write_bytes_aux, compare_sections_command)
1194         (remote_read_qxfer)
1195         (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
1196         (remote_hostio_readlink, remote_bfd_iovec_pread)
1197         (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
1198         binary buffer, and char when buffer is used as string.
1199         * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
1200         (trace_save, tfile_open, traceframe_walk_blocks)
1201         (tfile_fetch_registers): Likewise.
1202
1203 2013-04-19  Pedro Alves  <palves@redhat.com>
1204
1205         * ser-base.c (ser_base_write): Change prototype -- take 'void *'
1206         buffer and size_t size.  Adjust.
1207         * ser-base.h (ser_base_write): Adjust.
1208         * ser-go32.c (cnts): Change type to size_t.
1209         (dos_write): Change prototype -- take 'void *'
1210         buffer and size_t size.  Adjust.
1211         (dos_info): Print elements of 'cnts' as unsigned long.
1212         * serial.c (serial_write): Likewise.
1213         * serial.h (serial_write): Adjust.
1214         (struct serial_ops) <write>: Change prototype -- take 'void *'
1215         buffer and size_t size.  Adjust.
1216
1217 2013-04-19  Pedro Alves  <palves@redhat.com>
1218
1219         * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
1220         gdb_byte *.
1221         * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
1222
1223 2013-04-19  Pedro Alves  <palves@redhat.com>
1224
1225         * alpha-tdep.c (alpha_extract_return_value): Use
1226         regcache_cooked_read_unsigned to read 'v0'.
1227
1228 2013-04-19  Pedro Alves  <palves@redhat.com>
1229
1230         * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
1231         parameters 'at', 'as' and 'offset' to uint32_t.
1232
1233 2013-04-19  Pedro Alves  <palves@redhat.com>
1234
1235         * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
1236         'is64' to signed 'int'.
1237
1238 2013-04-19  Pedro Alves  <palves@redhat.com>
1239
1240         * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
1241         parameter to int *.
1242
1243 2013-04-19  Pedro Alves  <palves@redhat.com>
1244
1245         * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
1246         'insnbuf' buffer type to unsigned int[].
1247
1248 2013-04-19  Pedro Alves  <palves@redhat.com>
1249
1250         * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
1251
1252 2013-04-19  Pedro Alves  <palves@redhat.com>
1253
1254         * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
1255         unsigned long *.
1256
1257 2013-04-19  Pedro Alves  <palves@redhat.com>
1258
1259         * alpha-tdep.c (heuristic_fence_post): Change type to int.
1260         (alpha_heuristic_proc_start): Adjust to check -1 instead of
1261         UINT_MAX.
1262         * mips-tdep.c (heuristic_fence_post): Change type to int.
1263         (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
1264
1265 2013-04-19  Pedro Alves  <palves@redhat.com>
1266
1267         * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
1268         (struct gdbarch_tdep) <cris_version>: Make unsigned.
1269         (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
1270
1271 2013-04-19  Pedro Alves  <palves@redhat.com>
1272
1273         * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'.  Use
1274         it to get a string view of the byte buffer.
1275         * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
1276         type to gdb_byte *.  Adjust.
1277         * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
1278         Change local to char *.
1279         * solib-darwin.c (find_program_interpreter): Change return type to
1280         char *.  Adjust.
1281         (darwin_solib_get_all_image_info_addr_at_init): Adjust.
1282         * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
1283         * solib-frv.c (enable_break2): Change local 'buf' to char *.
1284         * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
1285         * solib-svr4.c (find_program_interpreter): Change return type to
1286         char *.  Adjust.
1287         (enable_break): Change local 'interp_name' to char *.
1288         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1289         * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
1290         (spu_pseudo_register_write_spu): Use char for string buffer.
1291         Adjust.
1292         (info_spu_event_command, info_spu_signal_command): Add casts to
1293         'char *'.
1294
1295 2013-04-19  Pedro Alves  <palves@redhat.com>
1296
1297         * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
1298         gdb_byte[].
1299         (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
1300         * ada-lang.c (ada_value_assign): Use gdb_byte.
1301         * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
1302         (alphanbsd_sigtramp_offset): Use gdb_byte.
1303         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
1304         (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
1305         (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
1306         (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
1307         (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
1308         * arm-tdep.c (arm_stub_unwind_sniffer)
1309         (arm_displaced_init_closure): Use gdb_byte.
1310         (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
1311         (arm_default_thumb_le_breakpoint)
1312         (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
1313         * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
1314         thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
1315         * arm-wince-tdep.c (arm_wince_le_breakpoint)
1316         (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
1317         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
1318         (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
1319         (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
1320         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
1321         (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
1322         * cris-tdep.c (push_stack_item, cris_push_dummy_call)
1323         (cris_store_return_value, cris_extract_return_value): Use
1324         gdb_byte.
1325         (constraint): Change type of parameter to char * from signed
1326         char*.  Use gdb_byte.
1327         * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
1328         of local buffer to gdb_byte *.
1329         * dwarf2read.c (read_index_from_section): Use gdb_byte.
1330         (create_dwp_hash_table): Change type of locals to gdb_byte *.
1331         (add_address_entry): Change type of local buffer to gdb_byte[].
1332         * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
1333         (frv_push_dummy_call): Use gdb_byte.
1334         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
1335         (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
1336         (hppa_hpux_supply_save_state): Use gdb_byte.
1337         * hppa-tdep.c (hppa32_push_dummy_call)
1338         (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
1339         * ia64-tdep.c (extract_bit_field, replace_bit_field)
1340         (slotN_contents, replace_slotN_contents): Change type of parameter
1341         to gdb_byte *.
1342         (fetch_instruction, ia64_pseudo_register_write)
1343         (ia64_register_to_value, ia64_value_to_register)
1344         (ia64_extract_return_value, ia64_store_return_value)
1345         (ia64_push_dummy_call): Use gdb_byte.
1346         * m32c-tdep.c (m32c_return_value): Remove cast.
1347         * m68hc11-tdep.c (m68hc11_pseudo_register_write)
1348         (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
1349         gdb_byte.
1350         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
1351         * mn10300-tdep.c (mn10300_store_return_value)
1352         (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
1353         gdb_byte.
1354         * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
1355         (moxie_process_record): Remove casts.
1356         * ppc-ravenscar-thread.c (supply_register_at_address)
1357         (ppc_ravenscar_generic_store_registers): Use gdb_byte.
1358         * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
1359         * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
1360         * remote-mips.c (mips_xfer_memory): Use gdb_byte.
1361         * remote.c (compare_sections_command): Use gdb_byte.
1362         * score-tdep.c (score7_free_memblock): Change type of parameter to
1363         gdb_byte *.
1364         * sh-tdep.c (sh_justify_value_in_reg): Change return type to
1365         gdb_byte *.  Use gdb_byte.
1366         (sh_push_dummy_call_fpu): Use gdb_byte.
1367         (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
1368         (sh_store_return_value_nofpu, sh_store_return_value_fpu)
1369         (sh_register_convert_to_virtual, sh_register_convert_to_raw):
1370         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
1371         (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
1372         * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
1373         (sh64_store_return_value, sh64_register_convert_to_virtual):
1374         Change parameter type to 'gdb_byte *'.  Use gdb_byte.
1375         (sh64_pseudo_register_write): Use gdb_byte.
1376         * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
1377         * solib-irix.c (fetch_lm_info): Likewise.  Use gdb_byte for byte
1378         buffer.
1379         (irix_current_sos): Use gdb_byte.
1380         * solib-som.c (som_current_sos): Use gdb_byte.
1381         * sparc-ravenscar-thread.c (supply_register_at_address)
1382         (sparc_ravenscar_generic_store_registers): Use gdb_byte.
1383         * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
1384         * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
1385         * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
1386         'gdb_byte *'.
1387         * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
1388         'gdb_byte *'.
1389         * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
1390         * xstormy16-tdep.c (xstormy16_extract_return_value)
1391         (xstormy16_store_return_value): Change parameter type to
1392         'gdb_byte *'.  Adjust.
1393         (xstormy16_push_dummy_call): Use gdb_byte.
1394         * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
1395         (call0_analyze_prologue, execute_code): Use gdb_byte.
1396
1397 2013-04-19  Vladimir Kargov <kargov@gmail.com>
1398             Pedro Alves  <palves@redhat.com>
1399
1400         * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
1401         value contents.
1402
1403 2013-04-17  Doug Evans  <dje@google.com>
1404
1405         * dwarf2read.c (struct signatured_type): New member type.
1406         (struct attribute): Replace member signatured_type with signature.
1407         (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
1408         (read_call_site_scope): Call follow_die_ref instead of
1409         follow_die_ref_or_sig.
1410         (read_structure_type): Rewrite handling of signatured types.
1411         (read_enumeration_type): Ditto.
1412         (read_attribute_value): Update.
1413         (build_error_marker_type): New function.
1414         (lookup_die_type): Add assert.  Rewrite handling of signatured types.
1415         Don't call error for bad types, just build an error marker type.
1416         (dump_die_shallow): Update.
1417         (follow_die_sig_1): Renamed from follow_die_sig.
1418         Don't call error for bad types, instead return NULL.
1419         (follow_die_sig): New function.
1420         (get_signatured_type, get_DW_AT_signature_type): New functions.
1421
1422 2013-04-17  Yufeng Zhang  <yufeng.zhang@arm.com>
1423
1424         * aarch64-tdep.c (aarch64_write_pc): Removed.
1425         (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
1426         function.
1427
1428 2013-04-17  Yao Qi  <yao@codesourcery.com>
1429
1430         * top.c (print_gdb_configuration): Print configure-time
1431         parameter on using libbabeltrace or not.
1432
1433 2013-04-16  Pedro Alves  <palves@redhat.com>
1434
1435         * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
1436
1437 2013-04-16  Pedro Alves  <palves@redhat.com>
1438
1439         * common/glibc_thread_db.h: Update from upstream glibc
1440         (git 568035b7874a099087b77f7bba3e36a1173787b0).
1441
1442 2013-04-16  Pedro Alves  <palves@redhat.com>
1443
1444         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
1445         * common/glibc_thread_db.h: ... this new file ...
1446         * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
1447
1448 2013-04-16  Will Newton  <will.newton@gmail.com>
1449             Pedro Alves  <palves@redhat.com>
1450
1451         PR build/11881
1452
1453         * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
1454         (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
1455         HAVE_THREAD_DB_H.
1456
1457 2013-04-16  Pedro Alves  <palves@redhat.com>
1458             Eli Zaretskii  <eliz@gnu.org>
1459
1460         * NEWS: Mention "set foo unlimited".
1461
1462 2013-04-15  Doug Evans  <dje@google.com>
1463
1464         * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
1465         (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
1466         (create_dwo_cu_reader): Renamed from
1467         create_dwo_debug_info_hash_table_reader.
1468         (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
1469         Remove support for multiple CUs in a DWO file.
1470         (open_and_init_dwo_file, lookup_dwo_cutu): Update.
1471
1472         * dwarf2read.c (create_debug_types_hash_table): Use hex_string
1473         instead of phex.
1474         (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
1475         (create_dwo_in_dwp): Ditto.
1476
1477 2013-04-15  Tom Tromey  <tromey@redhat.com>
1478
1479         * NEWS: Move recent entries into "since 7.6" section.
1480
1481 2013-04-15  Tom Tromey  <tromey@redhat.com>
1482
1483         PR c++/13588:
1484         * NEWS: Update.
1485         * break-catch-throw.c (struct exception_catchpoint)
1486         <exception_rx, pattern>: New fields.
1487         (fetch_probe_arguments, dtor_exception_catchpoint)
1488         (check_status_exception_catchpoint)
1489         (print_one_detail_exception_catchpoint): New functions.
1490         (handle_gnu_v3_exceptions): Add "except_rx" argument.
1491         Compile regular expression if needed.
1492         (extract_exception_regexp): New function.
1493         (catch_exception_command_1): Use extract_exception_regexp.
1494         (compute_exception): Use fetch_probe_arguments.
1495         (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
1496         and check_status fields.
1497         * cp-abi.c (cplus_typename_from_type_info): New function.
1498         * cp-abi.h (cplus_typename_from_type_info): Declare.
1499         (struct cp_abi_ops) <get_typename_from_type_info>: New field.
1500         * gdb_regex.h (compile_rx_or_error): Declare.
1501         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
1502         comment.
1503         (init_gnuv3_ops): Set get_type_from_type_info field.
1504         * probe.c (compile_rx_or_error): Move...
1505         * utils.c (compile_rx_or_error): ... here.
1506
1507 2013-04-15  Tom Tromey  <tromey@redhat.com>
1508
1509         PR c++/15176:
1510         * NEWS: Update.
1511         * break-catch-throw.c (compute_exception): New function.
1512         (exception_funcs): New global.
1513         (_initialize_break_catch_throw): Create $_exception.
1514         * cp-abi.c (cplus_type_from_type_info): New function.
1515         * cp-abi.h (cplus_type_from_type_info): Declare.
1516         (struct cp_abi_ops) <get_type_from_type_info>: New field.
1517         * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
1518         (gnuv3_get_type_from_type_info): New functions.
1519         (init_gnuv3_ops): Set get_type_from_type_info ABI field.
1520
1521 2013-04-15  Tom Tromey  <tromey@redhat.com>
1522
1523         * break-catch-throw.c (struct exception_names): New.
1524         (exception_functions): Change type.
1525         (re_set_exception_catchpoint): Look for SDT probes.
1526
1527 2013-04-15  Tom Tromey  <tromey@redhat.com>
1528
1529         PR c++/10119:
1530         * break-catch-throw.c (exception_functions): New global.
1531         (gnu_v3_exception_catchpoint_ops): Move earlier.
1532         (struct exception_catchpoint): New.
1533         (classify_exception_breakpoint): Rewrite.
1534         (re_set_exception_catchpoint): New function.
1535         (handle_gnu_v3_exceptions): Return void.  Use init_catchpoint.
1536         Allocate a struct exception_catchpoint.
1537         (catch_exception_command_1): Update.
1538         (initialize_throw_catchpoint_ops): Set 're_set' method.
1539
1540 2013-04-15  Tom Tromey  <tromey@redhat.com>
1541
1542         * Makefile.in (SFILES): Add break-catch-throw.c
1543         (COMMON_OBS): Add break-catch-throw.o.
1544         * break-catch-throw.c: New file.
1545         * breakpoint.c: Move exception-catching code to new file.
1546         (ep_parse_optional_if_clause): No longer static.
1547         * breakpoint.h (ep_parse_optional_if_clause): Declare.
1548
1549 2013-04-15  Tom Tromey  <tromey@redhat.com>
1550
1551         PR c++/9065:
1552         * NEWS: Update.
1553         * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
1554         * c-exp.y (TYPEID): New token.
1555         (exp): Add new TYPEID productions.
1556         (ident_tokens): Add "typeid".
1557         * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
1558         * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
1559         (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
1560         * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
1561         * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
1562         case.
1563         * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
1564         (build_std_type_info_type, gnuv3_get_typeid_type)
1565         (gnuv3_get_typeid): New functions.
1566         (init_gnuv3_ops): Initialize std_type_info_gdbarch_data.  Set
1567         new fields on ABI object.
1568         * parse.c (operator_length_standard) <OP_TYPEID>: New case.
1569         * std-operator.def (OP_TYPEID): New.
1570
1571 2013-04-15  Tom Tromey  <tromey@redhat.com>
1572
1573         * elfread.c (elf_symtab_read): Install versioned symbol under
1574         unversioned name as well.
1575
1576 2013-04-15  Tom Tromey  <tromey@redhat.com>
1577
1578         PR c++/11990:
1579         * c-lang.c (cplus_language_defn): Use gdb_demangle.
1580         * c-typeprint.c (c_type_print_base): Use gdb_demangle.
1581         * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
1582         (gdb_demangle): New function.
1583         * cp-support.h (gdb_demangle): Declare.
1584         * dwarf2read.c (dwarf2_physname, fixup_partial_die)
1585         (dwarf2_name): Use gdb_demangle.
1586         * gdbtypes.c (check_stub_method): Use gdb_demangle.
1587         * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
1588         suffixes from name.
1589         (gnuv3_print_method_ptr): Use gdb_demangle.
1590         * jv-lang.c (java_demangle): Use gdb_demangle.
1591         * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
1592         * language.c (unk_lang_demangle): Use gdb_demangle.
1593         * symtab.c (symbol_find_demangled_name)
1594         (demangle_for_lookup): Use gdb_demangle.
1595
1596 2013-04-15  Tom Tromey  <tromey@redhat.com>
1597
1598         PR c++/12824:
1599         * NEWS: Update.
1600         * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
1601         New constant.
1602         (classify_exception_breakpoint): New function.
1603         (print_it_exception_catchpoint, print_one_exception_catchpoint)
1604         (print_mention_exception_catchpoint)
1605         (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
1606         (catch_exception_command_1): Handle "rethrow" catchpoint.
1607         (catch_rethrow_command): New function.
1608         (_initialize_breakpoint): Add "catch rethrow" command.
1609
1610 2013-04-15  Pierre Muller  <muller@sourceware.org>
1611
1612         * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
1613         set_gdbarch_write_pc as deprecated anymore.
1614
1615 2013-04-15  Joel Brobecker  <brobecker@adacore.com>
1616
1617         * spu-tdep.c (spu_write_pc): Add empty line after local variable
1618         declarations.
1619
1620 2013-04-13  Yao Qi  <yao@codesourcery.com>
1621
1622         * ctf.c (_initialize_ctf): Include "completer.h".
1623         Call add_target_with_completer instead of add_target.
1624
1625 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1626
1627         Fix GDB regression related to PR binutils/14813.
1628         * jit.c (mem_bfd_iovec_close): Return 0 for success.
1629         * minidebug.c (lzma_close): Add return value comment.
1630         * remote.c (remote_bfd_iovec_close): Return 0 for success.
1631         * solib-spu.c (spu_bfd_iovec_close): Likewise.
1632         * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
1633
1634 2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1635
1636         * config.in: Regenerate.
1637
1638 2013-04-12  Tom Tromey  <tromey@redhat.com>
1639
1640         * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
1641         const.
1642         * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
1643         (struct die_reader_specs) <buffer>: Likewise.
1644         (die_reader_func_ftype): Make 'info_ptr' const.
1645         (struct line_header) <include_dirs, statement_program_start,
1646         statement_program_end>: Now const.
1647         (struct file_entry) <name>: Likewise.
1648         (struct partial_die_info) <sibling>: Likewise.
1649         (struct dwarf_block) <data>: Likewise.
1650         (dwarf2_read_section): Remove cast.
1651         (dwarf2_get_section_info): Make 'bufp' const.
1652         (read_index_from_section): Constify.
1653         (dw2_get_file_names_reader): Make 'info_ptr' const.
1654         (dw2_get_primary_filename_reader): Likewise.
1655         (read_comp_unit_head): Make 'info_ptr' and return type const.
1656         (read_and_check_comp_unit_head, read_and_check_type_unit_head):
1657         Likewise.
1658         (read_abbrev_offset): Constify.
1659         (dwarf2_create_include_psymtab): Make 'name' const.
1660         (create_debug_types_hash_table): Update.
1661         (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
1662         (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
1663         Constify.
1664         (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
1665         (load_partial_comp_unit_reader): Make 'info_ptr' const.
1666         (read_comp_units_from_section): Constify.
1667         (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
1668         (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
1669         const.
1670         (dwarf2_compute_name, setup_type_unit_groups): Constify.
1671         (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
1672         (create_dwp_hash_table, dwarf2_ranges_read)
1673         (dwarf2_record_block_ranges): Constify.
1674         (read_die_and_children, read_die_and_siblings_1)
1675         (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
1676         const.
1677         (read_full_die_1, read_full_die): Make 'info_ptr' const.
1678         (abbrev_table_read_table): Constify.
1679         (load_partial_dies): Make 'info_ptr' const.
1680         (read_partial_die, read_attribute_value, read_attribute): Make
1681         'info_ptr' and return type const.
1682         (read_address, read_initial_length)
1683         (read_checked_initial_length_and_offset, read_offset)
1684         (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
1685         const.
1686         (read_direct_string): Make 'buf' and return type const.
1687         (read_indirect_string_at_offset, read_indirect_string_from_dwz)
1688         (read_indirect_string): Make return type const.
1689         (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
1690         (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
1691         'info_ptr' const.
1692         (read_str_index): Make return type const.
1693         (add_include_dir): Make 'include_dir' const.
1694         (add_file_name): Make 'name' const.
1695         (dwarf_decode_line_header): Constify.
1696         (psymtab_include_file_name): Make return type const.
1697         (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
1698         (dwarf2_start_subfile): Make 'filename' const.
1699         (dwarf2_const_value_attr): Make 'bytes' const.
1700         (read_signatured_type_reader): Make 'info_ptr' const.
1701         (decode_locdesc): Constify.
1702         (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
1703         const.
1704         (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
1705         'mac_end', and return type const.
1706         (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
1707         (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
1708         type const.
1709         (per_cu_header_read_in): Constify.
1710         * symfile.h (dwarf2_get_section_info): Update.
1711
1712 2013-04-12  Tom Tromey  <tromey@redhat.com>
1713
1714         * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
1715
1716 2013-04-12  Eli Zaretskii  <eliz@gnu.org>
1717
1718         * NEWS: Mention "show configuration", --configuration.
1719         * top.c (print_gdb_configuration): New function, displays the
1720         details about GDB configure-time parameters.
1721         (print_gdb_version): Mention "show configuration".
1722         * cli/cli-cmds.c (show_configuration): New function.
1723         (_initialize_cli_cmds): Add the "show configuration" command.
1724         * main.c (captured_main) <print_configuration>: New static var.
1725         <long_options>: Use it.
1726         If --configuration was given, call print_gdb_configuration.
1727
1728 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1729             Pedro Alves  <palves@redhat.com>
1730
1731         * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
1732         (generated_files): Add gcore.
1733         (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
1734         HAVE_NATIVE_GCORE_HOST.
1735         (gcore): New.
1736         * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
1737         * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
1738         config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
1739         config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
1740         config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
1741         Add HAVE_NATIVE_GCORE_HOST.
1742         * configure: Regenerate.
1743         * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
1744         New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME.  New
1745         AC_CONFIG_FILES for gcore.
1746         * configure.tgt: Add gdb_have_gcore to the initial comment.  Set
1747         gdb_have_gcore.
1748         * gdb_gcore.sh: Rename to ...
1749         * gcore.in: ... here.  Remove gcore.sh comment.  Use GDB_TRANSFORM_NAME
1750         and GCORE_TRANSFORM_NAME substitutions.
1751
1752         Fix parsing tabs in ${gdb_target_obs}.
1753         * configure.tgt (gdb_have_gcore): Replace case with for and if.
1754
1755 2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1756
1757         * remote.c (unpush_and_perror): Add output message final dot.
1758
1759 2013-04-11  Yao Qi  <yao@codesourcery.com>
1760
1761         * tracepoint.c (tfile_interp_line): Fit parameters line and
1762         utpp in one line.
1763
1764 2013-04-10  Joel Brobecker  <brobecker@adacore.com>
1765
1766         * solib.c (solib_map_sections): Remove code overwriting
1767         SO->SO_NAME with the bfd's filename.
1768
1769 2013-04-10  Pedro Alves  <palves@redhat.com>
1770
1771         * cli/cli-decode.c (integer_unlimited_completer): New function.
1772         (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
1773         (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
1774         completer.
1775         * cli/cli-setshow.c: Include "cli/cli-utils.h".
1776         (is_unlimited_literal): New function.
1777         (do_set_command): Handle literal "unlimited" arguments.
1778         * frame.c (_initialize_frame) <set backtrace limit>: Document
1779         "unlimited".
1780         * printcmd.c (_initialize_printcmd) <set print
1781         max-symbolic-offset>: Add help text.
1782         * record-full.c (_initialize_record_full) <set record full
1783         insn-number-max>: Likewise.
1784         * record.c (_initialize_record) <set record
1785         instruction-history-size, set record function-call-history-size>:
1786         Add help text.
1787         * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
1788         help text.
1789         * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
1790         Likewise.
1791         * source.c (_initialize_source) <set listsize>: Add help text.
1792         * utils.c (initialize_utils) <set height, set width>: Likewise.
1793         <set pagination>: Mention "set height unlimited".
1794         * valprint.c (_initialize_valprint) <set print elements, set print
1795         repeats>: Document "unlimited".
1796
1797 2013-04-10  Pedro Alves  <palves@redhat.com>
1798
1799         * cli/cli-cmds.c (quit_command): Call query_if_trace_running
1800         instead of disconnect_tracing.
1801         * infcmd.c (detach_command, disconnect_command): Call
1802         query_if_trace_running.  Adjust.
1803         * top.c: Include "tracepoint.h".
1804         (quit_target): Delete.  Contents moved ...
1805         (quit_force): ... here.  Wrap each stage of teardown in
1806         TRY_CATCH.  Call disconnect_tracing before detaching.
1807
1808 2013-04-10  Hui Zhu  <hui@codesourcery.com>
1809             Yao Qi  <yao@codesourcery.com>
1810
1811         * configure.ac: Check libbabeltrace is installed.
1812         * config.in: Regenerate.
1813         * configure: Regenerate.
1814         * Makefile.in (LIBBABELTRACE): New.
1815         (CLIBS): Add LIBBABELTRACE.
1816         * ctf.c: Include "exec.h".
1817         (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
1818         (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
1819         (ctf_save_metadata_header): Define new type aliases in
1820         metadata.
1821         (ctf_write_header): Define event type "tsv_def" and "tp_def"
1822         in metadata.  Start a new faked packet for trace status.
1823         (ctf_write_status): Write trace status to CTF.
1824         (ctf_write_uploaded_tsv): Write TSV to CTF.
1825         (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
1826         (ctf_write_definition_end): End the faked packet.
1827
1828         (ctx, ctf_iter, trace_dirname): New.
1829         (start_pos): New variable.
1830         (ctf_destroy, ctf_open_dir, ctf_open): New.
1831         (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
1832         macros.
1833         (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
1834         (ctf_fetch_registers, ctf_xfer_partial): New.
1835         (ctf_get_trace_state_variable_value): New.
1836         (ctf_get_tpnum_from_frame_event): New.
1837         (ctf_get_traceframe_address): New.
1838         (ctf_trace_find, ctf_has_stack): New.
1839         (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
1840         (ctf_get_trace_status, ctf_read_status): New.
1841         (_initialize_ctf): New.
1842         * tracepoint.c (get_tracepoint_number): New
1843         (get_uploaded_tsv): Remove 'static'.
1844         (struct traceframe_info, trace_regblock_size): Move it to ...
1845         * tracepoint.h: ... here.
1846         (get_tracepoint_number): Declare it.
1847         (get_uploaded_tsv): Declare it.
1848
1849         * NEWS: Mention new configure option.
1850
1851 2013-04-10  Pedro Alves  <palves@redhat.com>
1852             Hui Zhu  <hui@codesourcery.com>
1853
1854         * breakpoint.c (dprintf_re_set): New.
1855         (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
1856         to dprintf_re_set.
1857
1858 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
1859
1860         * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
1861         Remove solib-svr4.o from the list.
1862
1863 2013-04-09  Joel Brobecker  <brobecker@adacore.com>
1864
1865         * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
1866         Use gdb_assert_not_reached instead of invalid boolean expression.
1867
1868 2013-04-09  Pedro Alves  <palves@redhat.com>
1869
1870         * remote.c (unpush_and_perror): New function.
1871         (readchar, remote_serial_write): Use it.
1872
1873 2013-04-09  Markus Metzger  <markus.t.metzger@intel.com>
1874
1875         * NEWS: Mention new btrace RSP packets.
1876
1877 2013-04-08  Tom Tromey  <tromey@redhat.com>
1878
1879         * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
1880         long.
1881
1882 2013-04-08  Tom Tromey  <tromey@redhat.com>
1883
1884         * maint.c (print_bfd_section_info): Print the section index.
1885         * symmisc.c (dump_msymbols): Print the section index.
1886
1887 2013-04-08  Tom Tromey  <tromey@redhat.com>
1888
1889         PR symtab/8424:
1890         * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
1891         SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
1892         * breakpoint.c (resolve_sal_pc): Update.
1893         * elfread.c (elf_gnu_ifunc_record_cache): Update.
1894         * findvar.c (struct minsym_lookup_data) <objfile>: New field.
1895         (minsym_lookup_iterator_cb): Use it.
1896         (default_read_var_value): Update.
1897         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
1898         Update.
1899         * infcmd.c (jump_command): Update.
1900         * linespec.c (minsym_found): Update.
1901         * maint.c (maintenance_translate_address): Update.
1902         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
1903         (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
1904         * parse.c (write_exp_msymbol): Update.
1905         * printcmd.c (address_info): Update.
1906         * psymtab.c (find_pc_sect_psymbol): Update.
1907         (fixup_psymbol_section): Check SYMBOL_SECTION, not
1908         SYMBOL_OBJ_SECTION.
1909         (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
1910         Don't initialize SYMBOL_OBJ_SECTION.
1911         * spu-tdep.c (spu_catch_start): Update.
1912         * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
1913         * symmisc.c (dump_msymbols, print_symbol): Update.
1914         * symtab.c (fixup_section): Don't set 'obj_section'.  Change
1915         how fallback section is computed.
1916         (fixup_symbol_section): Update.
1917         (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
1918         Update.
1919         (allocate_symbol, initialize_symbol, allocate_template_symbol):
1920         Initialize SYMBOL_SECTION.
1921         * symtab.h (struct general_symbol_info) <section>: Update comment.
1922         <obj_section>: Remove.
1923         (SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
1924         (SYMBOL_OBJFILE): New macro.
1925
1926 2013-04-08  Tom Tromey  <tromey@redhat.com>
1927
1928         * coffread.c (record_minimal_symbol): Update.
1929         * dbxread.c (record_minimal_symbol): Update.
1930         * elfread.c (record_minimal_symbol): Update.
1931         * machoread.c (macho_symtab_add_minsym): Update.
1932         * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
1933         Update.
1934         * minsyms.c (prim_record_minimal_symbol): Update.
1935         (prim_record_minimal_symbol_full): Remove 'bfd_section'
1936         argument.
1937         (prim_record_minimal_symbol_and_info): Likewise.
1938         * minsyms.h (prim_record_minimal_symbol_full)
1939         (prim_record_minimal_symbol_and_info): Update.
1940         * symtab.c (allocate_symbol, initialize_symbol)
1941         (allocate_template_symbol): Initialize SYMBOL_SECTION.
1942         * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
1943         Update.
1944
1945 2013-04-08  Tom Tromey  <tromey@redhat.com>
1946
1947         PR symtab/8423:
1948         * solib-som.c (som_solib_section_offsets): Use BFD section
1949         indices.  Set offsets for all sections.
1950         * somread.c (som_symtab_read): Compute BFD section for
1951         symbol.  Use prim_record_minimal_symbol_and_info.
1952         (som_symfile_read): Fix comment.
1953         (struct find_section_offset_arg): New.
1954         (find_section_offset, set_section_index): New functions.
1955         (som_symfile_offsets): Use set_section_index to compute
1956         section indices.
1957
1958 2013-04-08  Tom Tromey  <tromey@redhat.com>
1959
1960         * coffread.c (cs_to_section): Use gdb_bfd_section_index.
1961         * elfread.c (record_minimal_symbol, elf_symtab_read): Use
1962         gdb_bfd_section_index.
1963         * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
1964         New functions.
1965         * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
1966         Declare.
1967         * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
1968         Update.
1969         * objfiles.c (add_to_objfile_sections_full): New function.
1970         (add_to_objfile_sections): Use it.
1971         (build_section_table): Rewrite.
1972         (objfile_relocate1): Use gdb_bfd_section_index.  Update.
1973         * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
1974         (struct objfile) <sections>: Update comment.
1975         (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
1976         is NULL.
1977         (ALL_OBJSECTIONS): Use it.
1978         * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1979         * solib-frv.c (frv_relocate_main_executable): Update.
1980         * solib-target.c (solib_target_relocate_section_addresses):
1981         Use gdb_bfd_section_index.
1982         * symfile.c (build_section_addr_info_from_section_table):
1983         Use gdb_bfd_section_index.
1984         (build_section_addr_info_from_bfd, place_section): Likewise.
1985         * symtab.c (fixup_section): Update.
1986         * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
1987
1988 2013-04-08  Tom Tromey  <tromey@redhat.com>
1989
1990         * minsyms.h (struct bound_minimal_symbol): New.
1991         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1992         Remove objfile argument.
1993         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1994         Return bound_minimal_symbol.
1995         * minsyms.c (lookup_minimal_symbol_by_pc_1)
1996         (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1997         Return bound_minimal_symbol.
1998         (in_gnu_ifunc_stub): Update.
1999         (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
2000         Remove 'objfile_p' argument.
2001         (lookup_solib_trampoline_symbol_by_pc): Update.
2002         * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
2003         arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
2004         c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
2005         glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
2006         i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
2007         linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
2008         mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
2009         ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
2010         stack.c, symtab.c, tui/tui-disasm.c: Update.
2011
2012 2013-04-08  Tom Tromey  <tromey@redhat.com>
2013
2014         * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
2015         Use symbol's obstack, not an objfile.
2016         * coffread.c (process_coff_symbol): Update.
2017         * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
2018         * jv-lang.c (add_class_symbol): Update.
2019         * mdebugread.c (new_symbol): Update.
2020         * minsyms.c (prim_record_minimal_symbol_full)
2021         (terminate_minimal_symbol_table): Update.
2022         * psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
2023         * stabsread.c (define_symbol, read_enum_type): Update.
2024         * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
2025         Handle Ada specially.
2026         (symbol_set_language): Add 'obstack' argument.
2027         (symbol_set_names): Update.
2028         (symbol_natural_name, symbol_demangled_name): Always use
2029         ada_decode_symbol.
2030         * symtab.h (struct general_symbol_info)
2031         <language_specific::obstack>: New field.
2032         <ada_mangled>: New field.
2033         (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
2034         (symbol_set_language): Update.
2035
2036 2013-04-08  Tom Tromey  <tromey@redhat.com>
2037
2038         * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
2039         Take an obstack, not an objfile.
2040         (symbol_set_names): Update.
2041         * symtab.h (symbol_set_demangled_name): Update.
2042
2043 2013-04-08  Tom Tromey  <tromey@redhat.com>
2044
2045         * coffread.c (process_coff_symbol, coff_read_enum_type): Call
2046         allocate_symbol.
2047         * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
2048         (read_func_scope): Call allocate_template_symbol.
2049         (new_symbol_full): Call allocate_symbol.
2050         * jit.c (finalize_symtab): Call allocate_symbol.
2051         * jv-lang.c (add_class_symbol): Call allocate_symbol.
2052         * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
2053         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2054         (common_block_end): Call allocate_symbol.
2055         * symtab.c (allocate_symbol, initialize_symbol)
2056         (allocate_template_symbol): New functions.
2057         * symtab.c (allocate_symbol, initialize_symbol)
2058         (allocate_template_symbol): Declare.
2059         * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
2060
2061 2013-04-08  Pedro Alves  <palves@redhat.com>
2062             Keith Seitz  <keiths@redhat.com>
2063
2064         * breakpoint.c (create_breakpoint): Rename
2065         "parse_condition_and_thread" parameter to "parse_arg".  Update
2066         describing comment.  If !PARSE_ARG, then error out if ARG is not
2067         the empty string after extracting the location.
2068         * breakpoint.h (create_breakpoint): Rename
2069         "parse_condition_and_thread" parameter to "parse_arg".
2070
2071 2013-04-08  Aleksandar Ristovski  <aristovski@qnx.com
2072
2073         * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
2074
2075 2013-04-07  Yao Qi  <yao@codesourcery.com>
2076
2077         * remote.c (remote_trace_find): Change type of parameters 'addr1'
2078         and 'addr2' to CORE_ADDR.
2079         * target.c (update_current_target): Update.
2080         * target.h (struct target_ops) <to_trace_find>: Change parameter
2081         type to CORE_ADDR.
2082         * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
2083         'addr2' to CORE_ADDR.
2084         (tfile_trace_find): Likewise.
2085         (tfile_get_traceframe_address): Change return type to CORE_ADDR.
2086         Change local variable 'addr' to type CORE_ADDR.
2087         * tracepoint.h (tfind_1): Update declaration.
2088
2089 2013-04-06  Eli Zaretskii  <eliz@gnu.org>
2090
2091         * windows-nat.c (windows_get_absolute_argv0): Move from here...
2092         * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
2093         Include main.h.
2094
2095         * windows-nat.h (windows_get_absolute_argv0): Move prototype from
2096         here...
2097         * main.h (windows_get_absolute_argv0): ...to here.
2098
2099 2013-04-05  Doug Evans  <dje@google.com>
2100
2101         * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
2102         (read_cutu_die_from_dwo): Add comments.
2103         (read_structure_type): Update comment.
2104         (read_enumeration_type, read_namespace_type): Update comment.
2105         (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
2106
2107 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2108
2109         Convert man pages to texinfo, new gdbinit.5 texinfo page.
2110         * Makefile.in (gdb.z): Remove.
2111         (install-only): Remove $(man1dir) and gdb.1 installation.
2112         * gdb.1: Remove.
2113
2114 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2115
2116         Fix compatibility with Linux kernel 3.8.3.
2117         * linux-tdep.c (linux_find_memory_regions_full): Move variable number
2118         to more inner block.  Remove parsing of NUMBER from outer block.
2119         Parse NUMBER only if KEYWORD has been identified.
2120
2121 2013-04-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2122
2123         Fix variable name shadowing.
2124         * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
2125         filename to mapsfilename and update its uses.
2126
2127 2013-04-05  Eli Zaretskii  <eliz@gnu.org>
2128
2129         * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
2130         empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
2131         and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
2132         details of the problem.
2133
2134 2013-04-04  Pedro Alves  <palves@redhat.com>
2135             Hui Zhu  <hui@codesourcery.com>
2136
2137         * breakpoint.c (validate_commands_for_breakpoint): If validating a
2138         tracepoint, reset its STEP_COUNT and call validate_actionline.
2139
2140 2013-04-03  Doug Evans  <dje@google.com>
2141
2142         * dwarf2read.c (read_die_and_siblings_1): Renamed from
2143         read_die_and_siblings.
2144         (read_die_and_siblings): New function.
2145         (read_cutu_die_from_dwo): Dump die if requested.
2146         (read_die_and_children): Call read_full_die_1 and
2147         read_die_and_siblings_1.
2148         (read_full_die): Dump die if requested.
2149
2150         * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
2151
2152         * dwarf2read.c (struct dwo_file): New member comp_dir.
2153         Rename member name to dwo_name.  All uses updated.
2154         (hash_dwo_file): Include comp_dir in computation.
2155         (eq_dwo_file): Ditto.
2156         (lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
2157         (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
2158
2159         * psymtab.c (read_psymtabs_with_fullname): Don't call
2160         psymtab_to_fullname if the basenames are different.
2161
2162 2013-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2163
2164         * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
2165         New entry about "fullname" presence.
2166
2167 2013-04-03  Pedro Alves  <palves@redhat.com>
2168
2169         * NEWS: Mention x86_64/Cygwin as new native configuration.
2170
2171 2013-04-02  Doug Evans  <dje@google.com>
2172
2173         * dwarf2read.c (read_structure_type): Fix typo in comment.
2174
2175 2013-04-02  Pedro Alves  <palves@redhat.com>
2176
2177         * NEWS: Mention "set/show debug aarch64", "set/show debug
2178         coff-pe-read" and "set/show debug mach-o".
2179
2180 2013-04-02  Pedro Alves  <palves@redhat.com>
2181
2182         * NEWS: Mention "set/show remote trace-buffer-size-packet".
2183
2184 2013-04-02  Eli Zaretskii  <eliz@gnu.org>
2185
2186         * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
2187         gdb_string.h is now in common/.
2188
2189 2013-04-02  Pedro Alves  <palves@redhat.com>
2190
2191         * NEWS: Move "set debug notification" and "set trace-buffer-size"
2192         under "New options".
2193
2194 2013-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2195
2196         Revert this patch:
2197         PR gdb/15275
2198         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2199
2200 2013-04-02  Pedro Alves  <palves@redhat.com>
2201
2202         PR gdb/15275
2203
2204         * remote.c (send_interrupt_sequence): Use remote_serial_write.
2205         (remote_serial_write): New function.
2206         (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
2207
2208 2013-04-01  Jiong Wang  <jiwang@tilera.com>
2209
2210         * NEWS: Mention TILE-Gx in "New native configurations" and
2211         "New targets" sections. 
2212
2213 2013-04-01  Doug Evans  <dje@google.com>
2214
2215         * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
2216         (process_enumeration_scope): Simplify.
2217
2218         * dwarf2read.c (struct dwarf2_per_cu_data): Move member
2219         type_unit_group ...
2220         (struct signatured_type): ... to here.
2221         (sig_type_ptr): New typedef.
2222         (type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
2223         out of union 't'.  All uses updated.
2224         (dw2_get_file_names_reader): Assert not called for a type unit.
2225         (dw2_get_file_names): Assert not called for a type unit or type
2226         unit group.
2227         (build_type_psymtabs_reader): Assert called for a type unit.
2228         (build_type_psymtab_dependencies): Assert called for a type unit group.
2229
2230         * dwarf2read.c (free_dwo_file): Add comment.
2231         (dwarf2_per_objfile_free): Unref dwp bfd.
2232
2233 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
2234
2235         * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
2236         (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
2237         (read_pe_exported_syms): Remove unused 'exportix'.
2238         (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
2239         'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
2240         'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
2241
2242 2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
2243
2244         * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
2245         (print_it_watchpoint): Remove unused 'bl'.
2246         (say_where): Remove unused 'uiout'.
2247         (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
2248         (bkpt_breakpoint_hit): Remove unused 'b'.
2249         (internal_bkpt_print_it): Remove unused 'uiout'.
2250         * buildsym.c (augment_type_symtab): Remove unused 'i'.
2251
2252 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
2253
2254         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
2255         (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
2256
2257 2013-03-29  Doug Evans  <dje@google.com>
2258
2259         * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
2260         Delete arg is_dwp.  All callers updated.
2261         (open_dwp_file): New function.
2262         (open_and_init_dwp_file): Call it.
2263         (get_dwp_file): New function.
2264         (lookup_dwo_cutu): Call it.
2265
2266         * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
2267         unnecessary, cleanup.
2268
2269         * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
2270
2271         * dwarf2read.c (read_cutu_die_from_dwo): New function.
2272         (lookup_dwo_unit): New function.
2273         (init_cutu_and_read_dies): Move DWO handling to new functions.
2274
2275         * dwarf2read.c (struct signatured_type): Tweak comment.
2276         (struct dwo_unit): Tweak comment.
2277         (create_debug_types_hash_table): Tweak comment.  Reformat long line.
2278         (create_dwo_debug_info_hash_table): Tweak comment.
2279         (dwarf2_per_cu_offset_and_type): Tweak comment.
2280
2281         * dwarf2read.c (lookup_signatured_type): Remove complaint about
2282         missing .debug_types section.
2283
2284 2013-03-29  Yao Qi  <yao@codesourcery.com>
2285
2286         * corelow.c: Include "completer.h".
2287         (_initialize_corelow): Call add_target_with_completer with
2288         argument 'filename_completer'.
2289         * tracepoint.c: Likewise.
2290         * exec.c (_initialize_exec): Likewise.
2291         * target.c (add_target): Rename to ...
2292         (add_target_with_completer): ... this.  Call set_cmd_completer
2293         if parameter completer is not NULL.
2294         (add_target): New.
2295         * target.h: Include "command.h".
2296         (add_target_with_completer): Declare it.
2297
2298 2013-03-28  Joel Brobecker  <brobecker@adacore.com>
2299
2300         * coffread.c (is_import_fixup_symbol): New function.
2301         (record_minimal_symbol): Use is_import_fixup_symbol to
2302         detect import fixup symbols, and discard them.
2303
2304 2013-03-28  Doug Evans  <dje@google.com>
2305
2306         * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
2307         types hash table until we know we need it.
2308
2309         * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
2310         index numbers.
2311
2312         * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
2313         All callers updated.
2314         (dw2_print_stats): Print #read CUs too.
2315         (dump_die_shallow): Print signatured types better.
2316
2317         * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
2318         info_or_types_section to section.  All uses updated.
2319         (struct dwo_unit): Ditto.
2320
2321 2013-03-28  Pedro Alves  <palves@redhat.com>
2322
2323         * NEWS (New options): New section.
2324         (New options): Mention set/show remote trace-status-packet.
2325         * remote.c (PACKET_qTStatus): New enumeration value.
2326         (remote_get_trace_status): Skip sending qTStatus if the packet is
2327         disabled.  Use packet_ok.
2328         (_initialize_remote): Register a configuration command for
2329         qTStatus packet.
2330
2331 2013-03-28  Doug Evans  <dje@google.com>
2332
2333         * symfile.c (find_separate_debug_file): Add comment.
2334         (terminate_after_last_dir_separator): Tweak comment.
2335
2336         * dwarf2read.c (create_partial_symtab): Add forward decl.
2337         (create_partial_symtab): Move to be closer to other psymtab functions.
2338         (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
2339
2340         * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
2341         (compute_symtab_includes): Remove unnecessary forward declaration.
2342         (die_needs_namespace): Add comment marking group of functions for
2343         dwarf2 name computation.
2344
2345         * typeprint.c (_initialize_typeprint): Improve type help text.
2346
2347         * python/python.c (finish_python_initialization): Provide suggestion
2348         for how to tell gdb to find its python files.
2349
2350 2013-03-28  Pedro Alves  <palves@redhat.com>
2351
2352         PR gdb/15294
2353
2354         * source.c (_initialize_source): Change back "set listsize" to an
2355         integer command.
2356
2357 2013-03-27  Gareth McMullin  <gareth@blacksphere.co.nz>
2358
2359         PR gdb/15275
2360         * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2361
2362 2013-03-27  Pedro Alves  <palves@redhat.com>
2363
2364         * top.c (history_size): Rename to ...
2365         (history_size_setshow_var): ... this.  Add comment.
2366         (show_commands): Use readline's 'history_length' instead of
2367         computing the history length by calling history_get in a loop.
2368         (set_history_size_command): Error out for sizes over INT_MAX.
2369         Restore previous history size on invalid size.
2370         (init_history): If HISTSIZE is negative, leave the history size as
2371         zero.  Add comments.
2372         (init_main): Adjust.
2373
2374 2013-03-27  Pedro Alves  <palves@redhat.com>
2375
2376         * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
2377         coff_pe_read" command to "set debug coff-pe-read".
2378
2379 2013-03-27  Markus Metzger  <markus.t.metzger@intel.com>
2380
2381         * record.c (command_size_to_target_size): Fix size comparison.
2382         Change parameter type from pointer to integer to integer.
2383         Update all users.
2384
2385 2013-03-27  Pierre Muller  <muller@sourceware.org>
2386
2387         * windows-nat.c (handle_output_debug_string): Avoid typecast
2388         from integer of different size warning.
2389
2390 2013-03-26  Joel Brobecker  <brobecker@adacore.com>
2391
2392         * windows-nat.c (handle_output_debug_string): Add empty line
2393         after local block variable definition.
2394
2395 2013-03-26  Pedro Alves  <palves@redhat.com>
2396
2397         * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
2398         (net_open): Make 'polls' local unsigned.
2399
2400 2013-03-26  Pedro Alves  <palves@redhat.com>
2401
2402         * remote.c (_initialize_remote): Make "set remoteaddresssize"
2403         a zuinteger command instead of uinteger.
2404
2405 2013-03-26  Pedro Alves  <palves@redhat.com>
2406
2407         * record-full.c (record_full_insn_num): Make it unsigned.
2408         (record_full_check_insn_num, record_full_message)
2409         (record_full_registers_change, record_full_xfer_partial): Remove
2410         record_full_insn_max_num check (it's always != 0).
2411         (record_full_info, record_full_restore): Use %u as format string.
2412         (): Use %u as format string.
2413         (set_record_full_insn_max_num): Remove record_full_insn_max_num
2414         check (it's always != 0).
2415
2416 2013-03-26  Pedro Alves  <palves@redhat.com>
2417
2418         * dcache.c (_initialize_dcache): Make the "set dcache line-size"
2419         and "set dcache size" commands zuinteger instead of uinteger.
2420
2421 2013-03-26  Pedro Alves  <palves@redhat.com>
2422
2423         * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
2424         command zuinteger instead of uinteger.
2425
2426 2013-03-26  Pedro Alves  <palves@redhat.com>
2427
2428         * coff-pe-read.c (_initialize_coff_pe_read): Make the command
2429         zuinteger instead of uinteger.
2430
2431 2013-03-26  Pedro Alves  <palves@redhat.com>
2432
2433         * record.c (record_insn_history_size_setshow_var)
2434         (record_call_history_size_setshow_var): New globals.
2435         (command_size_to_target_size): New function.
2436         (cmd_record_insn_history, cmd_record_call_history): Use
2437         command_size_to_target_size instead of cast.
2438         (validate_history_size, set_record_insn_history_size)
2439         (set_record_call_history_size): New functions.
2440         (_initialize_record): Install set_record_insn_history_size and
2441         set_record_call_history_size as "set" hooks of "set record
2442         instruction-history-size" and "set record
2443         function-call-history-size".
2444
2445 2013-03-26  Pedro Alves  <palves@redhat.com>
2446
2447         * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
2448         use with history_max_entries use.  Remove FIXME note.
2449
2450 2013-03-26  Markus Metzger  <markus.t.metzger@intel.com>
2451
2452         * record-btrace.c (record_btrace_close): Call
2453         record_btrace_auto_disable.
2454
2455 2013-03-25  Joel Brobecker  <brobecker@adacore.com>
2456
2457         * rs6000-nat.c (fixup_breakpoints): Delete declaration.
2458
2459 2013-03-25  Doug Evans  <dje@google.com>
2460
2461         * contrib/cc-with-tweaks.sh: Check exit code of dwp.
2462
2463 2013-03-25  Tom Tromey  <tromey@redhat.com>
2464
2465         PR symtab/11462:
2466         * c-exp.y (exp): Add new productions for destructors after '.' and
2467         '->'.
2468         (write_destructor_name): New function.
2469
2470 2013-03-25  Tom Tromey  <tromey@redhat.com>
2471
2472         PR c++/9197:
2473         * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
2474         value_struct_elt, not lookup_struct_elt_type.
2475         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2476         STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
2477         * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
2478
2479 2013-03-25  Yao Qi  <yao@codesourcery.com>
2480
2481         * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
2482         instead of '_mkdir'.
2483
2484 2013-03-23  Eli Zaretskii  <eliz@gnu.org>
2485
2486         * windows-nat.c (windows_get_absolute_argv0): New function.
2487         * windows-nat.h: Add its prototype.
2488
2489         * main.c (get_init_files): Use filename_ncmp instead of strncmp.
2490         Use IS_DIR_SEPARATOR instead of looking for a character inside
2491         SLASH_STRING.  Include filenames.h.
2492         (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
2493         relocate_gdb_directory works when passed gdb_program_name.
2494         Include windows-nat.h.
2495
2496 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2497
2498         * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
2499         * remote.c (trace_error): Remove the special handling of '2'.
2500         (readchar) <SERIAL_EOF>
2501         (readchar) <SERIAL_ERROR>
2502         (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
2503         (remote_get_trace_status): Call throw_exception if EX is
2504         TARGET_CLOSE_ERROR.
2505         * utils.c (perror_with_name): Rename to ...
2506         (throw_perror_with_name): ... here.  New parameter errcode, describe it
2507         in the function comment.
2508         (perror_with_name): New function wrapper.
2509         * utils.h (enum errors): New stub declaration.
2510         (throw_perror_with_name): New declaration.
2511
2512 2013-03-22  Pedro Alves  <palves@redhat.com>
2513             Yao Qi  <yao@codesourcery.com>
2514             Mark Kettenis  <kettenis@gnu.org>
2515
2516         * cli/cli-setshow.c (do_set_command) <var_uinteger>:
2517         Don't let the user set the value to UINT_MAX directly.
2518         <var_integer>: Don't let the user set the value to INT_MAX
2519         directly.
2520
2521 2013-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2522
2523         * remote.c (remote_unpush_target): New function.
2524         (remote_open_1): Remove two pop_target calls, update one comment, add
2525         comment to target_preopen call.  Replace pop_target call by
2526         remote_unpush_target call.
2527         (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
2528         pop_target calls by remote_unpush_target calls.
2529
2530 2013-03-22  Pedro Alves  <palves@redhat.com>
2531
2532         * linux-nat.c (linux_child_follow_fork): Don't call
2533         linux_enable_event_reporting.
2534         (linux_handle_extended_wait): Don't call
2535         linux_enable_event_reporting.
2536
2537 2013-03-22  Pedro Alves  <palves@redhat.com>
2538
2539         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
2540         use it to rewrite the trampoline buffers with type gdb_byte[], and
2541         undefine the macro.  Remove char* cast.
2542
2543 2013-03-21  Doug Evans  <dje@google.com>
2544
2545         New commands "mt set per-command {space,time,symtab} {on,off}".
2546         * NEWS: Add entry.
2547         * event-top.c: #include "maint.h".
2548         * main.c: #include "maint.h".
2549         * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
2550         timeval-utils.h, maint.h, cli/cli-setshow.h.
2551         (per_command_time, per_command_space): New static globals.
2552         (per_command_symtab): New static global.
2553         (per_command_setlist, per_command_showlist): New static globals.
2554         (struct cmd_stats): Move here from utils.c.
2555         (set_per_command_time): Renamed from set_display_time in utils.c
2556         and moved here.  All callers updated.
2557         (set_per_command_space): Renamed from set_display_space in utils.c
2558         and moved here.  All callers updated.
2559         (count_symtabs_and_blocks): New function.
2560         (report_command_stats): Moved here from utils.c.  Add support for
2561         printing symtab stats.  Only print data if enabled before command
2562         executed.
2563         (make_command_stats_cleanup): Ditto.
2564         (sert_per_command_cmd, show_per_command_cmd): New functions.
2565         (_initialize_maint_cmds): Add new commands
2566         mt set per-command {space,time,symtab} {on,off}.
2567         * maint.h: New file.
2568         * top.c: #include "maint.h".
2569         * utils.c (reset_prompt_for_continue_wait_time): New function.
2570         (get_prompt_for_continue_wait_time): New function.
2571         * utils.h (reset_prompt_for_continue_wait_time): Declare
2572         (get_prompt_for_continue_wait_time): Declare.
2573         (make_command_stats_cleanup): Moved to maint.h.
2574         (set_display_time, set_display_space): Moved to maint.h and renamed
2575         to set_per_command_time, set_per_command_space.
2576         * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
2577         parse_binary_operation and made non-static.  Don't call error,
2578         just return an error marker.  All callers updated.
2579         * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
2580
2581 2013-03-21  Tom Tromey  <tromey@redhat.com>
2582
2583         * symfile.c (alloc_section_addr_info): Update header.  Don't set
2584         'num_sections' field.
2585         (build_section_addr_info_from_section_table): Set 'num_sections'.
2586         (build_section_addr_info_from_bfd): Likewise.
2587         (build_section_addr_info_from_objfile): Remove dead loop
2588         condition.
2589         (free_section_addr_info): Unconditionally call xfree.
2590         (relative_addr_info_to_section_offsets, addrs_section_sort)
2591         (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
2592         condition.
2593         (syms_from_objfile_1): Remove dead 'if' condition.  Check
2594         'num_sections'.
2595         (add_symbol_file_command): Set 'num_sections'.
2596         * symfile-mem.c (symbol_file_add_from_memory): Set
2597         'num_sections'.
2598         * somread.c (som_symfile_offsets): Remove dead loop condition.
2599         * machoread.c (macho_symfile_offsets): Remove dead 'if'.
2600         * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
2601
2602 2013-03-21  Tom Tromey  <tromey@redhat.com>
2603
2604         * tracepoint.h (decode_agent_options): Add 'trace_string'
2605         argument.
2606         * tracepoint.c (decode_agent_options): Add 'trace_string'
2607         argument.
2608         (validate_actionline): Update.
2609         (collect_symbol): Add 'trace_string' argument.
2610         (struct add_local_symbols_data) <trace_string>: New field.
2611         (do_collect_symbol): Update.
2612         (add_local_symbols): Add 'trace_string' argument.
2613         (encode_actions_1): Update.
2614         (trace_dump_actions): Update.
2615         * dwarf2loc.c (access_memory): Update.
2616         * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
2617         * ax-general.c (new_agent_expr): Update.
2618         * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
2619         (gen_trace_for_return_address): Add argument.
2620         (trace_kludge, trace_string_kludge): Remove.
2621         * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
2622         (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
2623         (gen_trace_for_var): Add 'trace_string' argument.
2624         (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
2625         (gen_printf, agent_eval_command_one): Update.
2626
2627 2013-03-21  Tom Tromey  <tromey@redhat.com>
2628
2629         PR exp/15109:
2630         * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
2631         Handle FILENAME token.
2632
2633 2013-03-21  Tom Tromey  <tromey@redhat.com>
2634
2635         * c-exp.y (YYPRINT): Define.
2636         (c_print_token): New function.
2637
2638 2013-03-21  Tom Tromey  <tromey@redhat.com>
2639
2640         * c-exp.y (%union) <sym, ivar, ivec>: Remove.
2641
2642 2013-03-21  Yao Qi  <yao@codesourcery.com>
2643
2644         * ctf.c: Include "gdb_stat.h".
2645         [USE_WIN32API]: New macro 'mkdir'.
2646         (ctf_start): Use permission bits macros if they are defined.
2647
2648 2013-03-20  Keith Seitz  <keiths@redhat.com>
2649
2650         * breakpoint.h (struct breakpoint): Add comment to
2651         extra_string indicating that this member is mallod'd.
2652         * breakpoint.c (base_breakpoint_dtor): Free extra_string.
2653
2654 2013-03-20  Pedro Alves  <palves@redhat.com>
2655
2656         PR gdb/15289
2657
2658         * cli/cli-setshow.c (do_set_command)
2659         <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
2660         the result of parsing the command argument.  Throw error if the
2661         value is greater than UINT_MAX.  Print the invalid value with
2662         plongest.
2663         <var_integer, var_zinteger>: Use LONGEST for variable holding the
2664         result of parsing the command argument.  Throw error if the value
2665         is greater than INT_MAX, not greater or equal.  Also throw error
2666         if the value is less than INT_MIN.  Print the invalid value with
2667         plongest.
2668         <var_zuinteger_unlimited>: Throw error if the value is greater
2669         than INT_MAX, not greater or equal.
2670         (do_show_command) <var_integer, var_zinteger,
2671         var_zuinteger_unlimited>: Use %d for printing int, not %u.
2672
2673 2013-03-20  Tom Tromey  <tromey@redhat.com>
2674
2675         * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
2676         if possible.
2677         * dwarf2read.c (read_func_scope): Remove old FIXME.
2678         * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
2679         not LOC_COMPUTED.
2680         * findvar.c (symbol_read_needs_frame, default_read_var_value):
2681         Unconditionally call via computed ops, if possible.
2682         * printcmd.c (address_info): Unconditionally call via computed ops,
2683         if possible.
2684         * stack.c (read_frame_arg): Unconditionally call via computed ops,
2685         if possible.
2686         * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
2687         * tracepoint.c (scope_info): Unconditionally call via computed ops,
2688         if possible.
2689
2690 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2691             Tom Tromey  <tromey@redhat.com>
2692
2693         PR symtab/8421:
2694         * coffread.c (coff_register_index): New global.
2695         (process_coff_symbol, coff_read_enum_type): Set
2696         SYMBOL_ACLASS_INDEX.
2697         (_initialize_coffread): Initialize new global.
2698         * dwarf2loc.c (locexpr_find_frame_base_location)
2699         (dwarf2_block_frame_base_locexpr_funcs)
2700         (loclist_find_frame_base_location)
2701         (dwarf2_block_frame_base_loclist_funcs): New.
2702         (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
2703         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
2704         * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
2705         (dwarf2_block_frame_base_loclist_funcs): New.
2706         * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
2707         (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
2708         globals.
2709         (read_func_scope): Update.
2710         (fixup_go_packaging, mark_common_block_symbol_computed)
2711         (var_decode_location, new_symbol_full, dwarf2_const_value):
2712         Set SYMBOL_ACLASS_INDEX.
2713         (dwarf2_symbol_mark_computed): Likewise.  Add 'is_block' argument.
2714         (_initialize_dwarf2_read): Initialize new globals.
2715         * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
2716         * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
2717         * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
2718         globals.
2719         (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
2720         (_initialize_mdebugread): Initialize new globals.
2721         * psympriv.h (struct partial_symbol) <aclass>: Update comment.
2722         * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
2723         (stab_register_index, stab_regparm_index): New globals.
2724         (define_symbol, read_enum_type, common_block_end): Set
2725         SYMBOL_ACLASS_INDEX.
2726         (_initialize_stabsread): Initialize new globals.
2727         * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
2728         globals.
2729         (MAX_SYMBOL_IMPLS): New define.
2730         (register_symbol_computed_impl, register_symbol_block_impl)
2731         (register_symbol_register_impl)
2732         (initialize_ordinary_address_classes): New functions.
2733         (_initialize_symtab): Call initialize_ordinary_address_classes.
2734         * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
2735         (struct symbol_impl): New.
2736         (SYMBOL_ACLASS_BITS): New define.
2737         (struct symbol) <aclass, ops>: Remove fields.
2738         <aclass_index>: New field.
2739         (symbol_impls): Declare.
2740         (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
2741         (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
2742         (register_symbol_computed_impl, register_symbol_block_impl)
2743         (register_symbol_register_impl): Declare.
2744         (struct symbol_computed_ops): Add location_has_loclist.
2745         (struct symbol_block_ops): New.
2746         (SYMBOL_BLOCK_OPS): New.
2747         * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
2748
2749 2013-03-20  Tom Tromey  <tromey@redhat.com>
2750
2751         * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
2752         (print_partial_symbols, recursively_search_psymtabs): Use
2753         PSYMBOL_CLASS.
2754
2755 2013-03-20  Pierre Muller  <muller@sourceware.org>
2756
2757         * contrib/ari/gdb_ari.sh (OP eol rule): Also check
2758         addtion, subtraction, multiplication and division binary operator.
2759
2760 2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2761
2762         Code cleanup.
2763         * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
2764         * bsd-kvm.c (bsd_kvm_close): Likewise.
2765         * bsd-uthread.c (bsd_uthread_close): Likewise.
2766         * corelow.c (core_close): Likewise.
2767         (core_close_cleanup): Remove parameter quitting from a caller.
2768         * event-top.c (async_disconnect): Likewise.
2769         * exec.c (exec_close_1): Remove parameter quitting.
2770         * go32-nat.c (go32_close): Likewise.
2771         * linux-nat.c (linux_nat_close): Remove parameter quitting.  Remove
2772         parameter quitting from a caller.
2773         * mips-linux-nat.c (super_close): Remove parameter quitting from the
2774         variable.
2775         (mips_linux_close): Remove parameter quitting.  Remove parameter
2776         quitting from a caller.
2777         * monitor.c (monitor_close): Remove parameter quitting.
2778         * monitor.h (monitor_close): Likewise.
2779         * record-btrace.c (record_btrace_close): Likewise.
2780         * record-full.c (record_full_close): Likewise.
2781         * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
2782         it also from fprintf_unfiltered.
2783         * remote-mips.c (mips_close): Remove parameter quitting.
2784         (mips_detach): Remove parameter quitting from a caller.
2785         * remote-sim.c (gdbsim_close): Remove parameter quitting.
2786         (gdbsim_close): Remove duplicate function comment.  Remove parameter
2787         quitting and remove it also from printf_filtered.
2788         * remote.c (remote_close): Remove parameter quitting.
2789         * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
2790         * target.c (update_current_target): Remove parameter int from to_close
2791         de_fault.
2792         (push_target, unpush_target, pop_target): Remove parameter quitting from
2793         a caller.
2794         (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
2795         Remove parameter quitting from a caller.
2796         (target_preopen): Remove parameter quitting from a caller.
2797         (target_close): Remove parameter quitting.  Remove parameter quitting
2798         from a caller two times.  Remove parameter quitting also from
2799         fprintf_unfiltered.
2800         * target.h (struct target_ops): Remove parameter quitting and as int
2801         from fields to_xclose and to_close.
2802         (extern struct target_ops current_target):
2803         (target_close, pop_all_targets): Remove parameter quitting.  Update the
2804         comment.
2805         (pop_all_targets_above): Remove parameter quitting.
2806         * top.c (quit_target): Remove parameter quitting from a caller.
2807         * tracepoint.c (tfile_close): Remove parameter quitting.
2808         * windows-nat.c (windows_close): Remove parameter quitting.
2809
2810 2013-03-20  Corinna Vinschen  <vinschen@redhat.com>
2811
2812         * windows-nat.c (handle_output_debug_string): Replace call
2813         to string_to_core_addr with call to strtoull.
2814
2815 2013-03-20  Yao Qi  <yao@codesourcery.com>
2816
2817         * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
2818         and write it to CTF metadata.
2819
2820 2013-03-19  Corinna Vinschen  <vinschen@redhat.com>
2821
2822         * windows-nat.c (handle_output_debug_string): Change type of n to
2823         SIZE_T to avoid crash on 64 bit systems.
2824
2825 2013-03-17  Eli Zaretskii  <eliz@gnu.org>
2826
2827         * python/python-internal.h (HAVE_SNPRINTF)
2828         [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
2829         about redefinition of snprintf by pyerrors.h.
2830
2831 2013-03-15  Steve Ellcey  <sellcey@mips.com>
2832
2833         * remote-sim.c (sim_command_completer): Make char arguments const.
2834
2835 2013-03-15  Tom Tromey  <tromey@redhat.com>
2836
2837         PR c++/15116:
2838         * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
2839
2840 2013-03-14  Tom Tromey  <tromey@redhat.com>
2841
2842         * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
2843         New fields.
2844         (get_file_crc): Move from symfile.c.
2845         (gdb_bfd_crc): New function.
2846         * gdb_bfd.h (gdb_bfd_crc): Declare.
2847         * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
2848         * symfile.c (get_file_crc): Move to gdb_bfd.c.
2849         (separate_debug_file_exists): Use gdb_bfd_crc.
2850
2851 2013-03-14  Tom Tromey  <tromey@redhat.com>
2852
2853         * symfile.c (get_debug_link_info): Remove.
2854         (find_separate_debug_file_by_debuglink): Use
2855         bfd_get_debug_link_info.
2856
2857 2013-03-14  Tom Tromey  <tromey@redhat.com>
2858
2859         * symtab.c (error_in_psymtab_expansion): New function.
2860         (lookup_symbol_aux_quick)
2861         (basic_lookup_transparent_type_quick): Remove "last resort"
2862         code.  Use error_in_psymtab_expansion.
2863
2864 2013-03-14  Doug Evans  <dje@google.com>
2865             Jan Kratochvil  <jan.kratochvil@redhat.com>
2866
2867         * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
2868         any successful compare_filenames_for_search or FILENAME_CMP.
2869         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2870         * symtab.c (iterate_over_some_symtabs): Likewise.
2871
2872 2013-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2873
2874         * source.c (print_source_lines_base): Make a local copy of
2875         symtab_to_fullname.
2876
2877 2013-03-14  Hui Zhu  <hui_zhu@mentor.com>
2878             Jan Kratochvil  <jan.kratochvil@redhat.com>
2879
2880         * source.c (print_source_lines_base): Suppress "file" for TUI.
2881
2882 2013-03-14  Keith Seitz  <keiths@redhat.com>
2883             Alan Matsuoka  <alanm@redhat.com>
2884
2885         PR c++/15203
2886         PR c++/15210
2887         * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
2888         TYPE_CODE_METHOD.
2889         * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
2890         symbols.
2891
2892 2013-03-14  Yao Qi  <yao@codesourcery.com>
2893
2894         * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
2895         status to tfile if trace is stopped by command 'tstop'.
2896
2897 2013-03-14  Yao Qi  <yao@codesourcery.com>
2898
2899         * tracepoint.c (tfile_write_status): Write trace notes and user
2900         name into tfile if they are not NULL.
2901
2902 2013-03-14  Hui Zhu  <hui@codesourcery.com>
2903             Yao Qi  <yao@codesourcery.com>
2904
2905         * Makefile.in (REMOTE_OBS): Add ctf.o.
2906         (SFILES): Add ctf.c.
2907         (HFILES_NO_SRCDIR): Add ctf.h.
2908         * ctf.c, ctf.h: New files.
2909         * tracepoint.c: Include 'ctf.h'.
2910         (collect_pseudocommand): Remove static.
2911         (trace_save_command): Parse option "-ctf".
2912         Produce different trace file writers per option.
2913         Adjust output message.
2914         (trace_save_tfile, trace_save_ctf): New.
2915         * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
2916         * mi/mi-main.c: Include 'ctf.h'.
2917         (mi_cmd_trace_save): Handle option '-ctf'.  Call either
2918         trace_save_tfile or trace_save_ctf.
2919         * NEWS: Mention these changes.
2920
2921 2013-03-14  Yao Qi  <yao@codesourcery.com>
2922
2923         * tracepoint.c (trace_file_writer_xfree): New.
2924         (struct tfile_writer_data): New.
2925         (tfile_dtor, tfile_can_target_save, tfile_start): New.
2926         (tfile_write_header, tfile_write_regblock_type): New.
2927         (tfile_write_status, tfile_write_uploaded_tsv): New.
2928         (tfile_write_uploaded_tp, tfile_write_definition_end): New.
2929         (tfile_write_raw_data, (tfile_end): New.
2930         (tfile_write_ops): New global variable.
2931         (TRACE_WRITE_R_BLOCK): New macro.
2932         (TRACE_WRITE_M_BLOCK_HEADER): New macro.
2933         (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
2934         (TRACE_WRITE_V_BLOCK): New macro.
2935         (trace_save): Add extra one parameter WRITER.  Make it static.
2936         Use WRITER to writer trace.
2937         (tfile_trace_file_writer_new): New.
2938         (trace_save_command): Caller update.
2939         (trace_save_tfile): Write trace data in TFILE format.
2940         * tracepoint.h (struct trace_frame_write_ops): New.
2941         (struct trace_file_write_ops): New.
2942         (struct trace_file_writer): New.
2943         (trace_save): Remove its declaration.
2944         (trace_save_tfile): Declare it.
2945         * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
2946         instead of trace_save.
2947
2948 2013-03-13  Pedro Alves  <palves@redhat.com>
2949
2950         * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
2951
2952 2013-03-13  Pedro Alves  <palves@redhat.com>
2953
2954         * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
2955         commented out code.
2956         * demangle.c (current_demangling_style_string): Make it const.
2957         (set_demangling_command): Assert the demangling style is known.
2958         Remove all handling of unknown styles.  Set
2959         'current_demangling_style_string' to an element of the
2960         demangling_style_names array.
2961         (set_demangling_style): Delete.
2962         (_initialize_demangler): Set current_demangling_style_string to the
2963         element of the demangling_style_names array that corresponds to
2964         the default demangling style.  Remove FIXME note.  Don't call
2965         set_demangling_style.
2966         * gdb-demangle.h (set_demangling_style): Remove declaration.
2967
2968 2013-03-13  Pedro Alves  <palves@redhat.com>
2969
2970         * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
2971         fields const.
2972         (ada_make_symbol_completion_list): Make "text0" parameter const.
2973         * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
2974         * breakpoint.c (condition_completer): Make "text" and "word"
2975         parameters const.  Adjust.
2976         (check_tracepoint_command): Adjust to validate_actionline
2977         prototype change.
2978         (catch_syscall_completer): Make "text" and "word" parameters
2979         const.
2980         * cli/cli-cmds.c (show_user): Make "comname" local const.
2981         (valid_command_p): Make "command" parameter const.
2982         (alias_command): Make "alias_prefix" and "command_prefix" locals
2983         const.
2984         * cli/cli-decode.c (add_cmd): Make "name" parameter const.
2985         (add_alias_cmd): Make "name" and "oldname" parameters const.
2986         Adjust.  No longer make copy of OLDNAME.
2987         (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
2988         (add_setshow_cmd_full, add_setshow_enum_cmd)
2989         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2990         (add_setshow_filename_cmd, add_setshow_string_cmd)
2991         (add_setshow_string_noescape_cmd)
2992         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2993         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2994         (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
2995         (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
2996         Make "name" parameter const.
2997         (help_cmd): Rename "command" parameter to "arg".  New const local
2998         "command".
2999         (find_cmd): Make "command" parameter const.
3000         (lookup_cmd_1): Make "text" parameter pointer to const.  Adjust to
3001         deprecated_cmd_warning prototype change.
3002         (undef_cmd_error): Make "cmdtype" parameter const.
3003         (lookup_cmd): Make "line" parameter const.
3004         (deprecated_cmd_warning): Change type of "text" parameter to
3005         pointer to const char, from pointer to pointer to char.  Adjust.
3006         (lookup_cmd_composition): Make "text" parameter const.
3007         (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
3008         parameters const.
3009         * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
3010         const.
3011         * cli/cli-script.c (validate_comname): Make "tem" local const.
3012         (define_command): New const local "tem_c".  Use it in calls to
3013         lookup_cmd.
3014         (document_command): Make "tem" and "comfull" locals const.
3015         (show_user_1): Make "prefix" and "name" parameters const.
3016         * cli-script.h (show_user_1): Make "prefix" and "name" parameters
3017         const.
3018         * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
3019         (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
3020         (deprecated_cmd_warning, lookup_cmd_composition, add_com)
3021         (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
3022         (complete_on_enum, add_setshow_enum_cmd)
3023         (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
3024         (add_setshow_filename_cmd, add_setshow_string_cmd)
3025         (add_setshow_string_noescape_cmd)
3026         (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
3027         (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
3028         (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
3029         Change prototypes, constifying strings.
3030         * completer.c (noop_completer, filename_completer): Make "text"
3031         and "prefix" parameters const.
3032         (location_completer, expression_completer)
3033         (complete_line_internal): Make "text" and "prefix" parameters
3034         const and adjust.
3035         (command_completer, signal_completer): Make "text" and "prefix"
3036         parameters const.
3037         * completer.h (noop_completer, filename_completer)
3038         (expression_completer, location_completer, command_completer)
3039         (signal_completer): Change prototypes.
3040         * corefile.c (complete_set_gnutarget): Make "text" and "word"
3041         parameters const.
3042         * cp-abi.c (cp_abi_completer): Likewise.
3043         * expression.h (parse_expression_for_completion): Change
3044         prototype.
3045         * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
3046         parameters const.
3047         * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
3048         * infrun.c (handle_completer): Make "text" and "word" parameters
3049         const.
3050         * interps.c (interpreter_completer): Make "text" and "word"
3051         parameters const.
3052         * language.h (struct language_defn)
3053         <la_make_symbol_completion_list>: Make "text" and "word"
3054         parameters const.
3055         * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
3056         (parse_exp_in_context): Rename to ...
3057         (parse_exp_in_context_1): ... this.
3058         (parse_exp_in_context): Reimplement, with const hack from
3059         parse_exp_1.
3060         (parse_expression_for_completion): Make "string" parameter const.
3061         * printcmd.c (decode_format): Make "string_ptr" parameter pointer
3062         to pointer to const char.  Adjust.
3063         (print_command_1): Make "exp" parameter const.
3064         (output_command): Rename to ...
3065         (output_command_const): ... this.  Make "exp" parameter const.
3066         (output_command): Reimplement.
3067         (x_command): Adjust.
3068         (display_command): Rename "exp" parameter to "arg".  New "exp"
3069         local, const version of "arg".
3070         * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
3071         "cmd_name" local const.
3072         * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
3073         call.
3074         (cmdpy_completer): Make "text" and "word" parameters const.
3075         (gdbpy_parse_command_name): Make "prefix_text2" local const.
3076         * python/py-param.c (add_setshow_generic): Make "tmp_name" local
3077         const.
3078         * remote.c (_initialize_remote): Make "cmd_name" local const.
3079         * symtab.c (language_search_unquoted_string): Make "text" and "p"
3080         parameters const.  Adjust.
3081         (completion_list_add_fields): Make "sym_text", "text" and "word"
3082         parameters const.
3083         (struct add_name_data) <sym_text, text, word>: Make fields const.
3084         (default_make_symbol_completion_list_break_on): Make "text" and
3085         "word" parameters const.  Adjust locals.
3086         (default_make_symbol_completion_list)
3087         (make_symbol_completion_list, make_symbol_completion_type)
3088         (make_symbol_completion_list_fn): Make "text" and "word"
3089         parameters const.
3090         (make_file_symbol_completion_list): Make "text", "word" and
3091         "srcfile" parameters const.  Adjust locals.
3092         (add_filename_to_list): Make "text" and "word" parameters const.
3093         (struct add_partial_filename_data) <text, word>: Make fields
3094         const.
3095         (make_source_files_completion_list): Make "text" and "word"
3096         parameters const.
3097         * symtab.h (default_make_symbol_completion_list_break_on)
3098         (default_make_symbol_completion_list, make_symbol_completion_list)
3099         (make_symbol_completion_type enum type_code)
3100         (make_symbol_completion_list_fn make_file_symbol_completion_list)
3101         (make_source_files_completion_list): Change prototype.
3102         * top.c (execute_command): Adjust to pass pointer to pointer to
3103         const char to lookup_cmd, and to deprecated_cmd_warning prototype
3104         change.
3105         (set_verbose): Make "cmdname" local const.
3106         * tracepoint.c (decode_agent_options): Make "exp" parameter const,
3107         and adjust.
3108         (validate_actionline): Make "line" parameter a pointer to const
3109         char, and adjust.
3110         (encode_actions_1): Make "action_exp" local const, and adjust.
3111         (encode_actions): Adjust.
3112         (replace_comma): Delete.
3113         (trace_dump_actions): Make "action_exp" and "next_comma" locals
3114         const, and adjust.  Don't frob the action string while splitting
3115         it at commas.  Instead, make a copy of each split substring in
3116         turn.
3117         (trace_dump_command): Adjust to validate_actionline prototype
3118         change.
3119         * tracepoint.h (decode_agent_options, decode_agent_options)
3120         (encode_actions, validate_actionline): Change prototypes.
3121         * valprint.h (output_command): Delete declaration.
3122         (output_command_const): Declare.
3123         * value.c (function_destroyer): Cast const away in xfree call.
3124
3125 2013-03-13  Pedro Alves  <palves@redhat.com>
3126
3127         * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
3128         rather than casting 'const char * const *' to 'const char **'.
3129         * ada-lex.l (processInt): Make "trailer" local const.  Remove
3130         'const char **' cast.
3131         * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
3132         locals, and use those as strtol output pointer, instead than doing
3133         invalid casts to from 'const char **' to 'char **'.
3134         (_initialize_demangle): Remove cast.
3135         * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
3136         locals, and use those as strtol output pointer, instead than doing
3137         invalid casts to from 'const char **' to 'char **'.
3138         * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
3139         casts.
3140         * stap-probe.c (stap_parse_register_operand)
3141         (stap_parse_single_operand): Likewise.
3142
3143 2013-03-13  Yao Qi  <yao@codesourcery.com>
3144
3145         * tracepoint.c (tfile_get_trace_state_variable_value): Look for
3146         the last matched 'V' blcok in trace frame.
3147
3148 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
3149
3150         * NEWS: Create a new section for the next release branch.
3151         Rename the section of the current branch, now that it has
3152         been cut.
3153
3154 2013-03-12  Joel Brobecker  <brobecker@adacore.com>
3155
3156         GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
3157         * version.in: Bump version to 7.6.50.20130312-cvs.
3158
3159 2013-03-12  Keith Seitz  <keiths@redhat.com>
3160
3161         * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
3162         * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
3163         Remove temporary copy of input string.
3164         (mi_execute_command_wrapper): Make "cmd" const.
3165         * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
3166         * mi/mi-parse.c (mi_parse_argv): Make "args" const.
3167         Use const strings.
3168         (mi_parse): Make "cmd" const.
3169         Use const strings.
3170         * mi/mi-parse.h (mi_parse): Make "cmd" const.
3171
3172 2013-03-12  Keith Seitz  <keiths@redhat.com>
3173
3174         * ada-lang.c (ada_read_renaming_var_value): Pass const
3175         pointer to expression string to parse_exp_1.
3176         (create_excep_cond_exprs): Likewise.
3177         * ax-gdb.c (agent_eval_command_one): Likewise.
3178         (maint_agent_printf_command): Likewise.
3179         Constify much of the string handling/parsing.
3180         * breakpoint.c (set_breakpoint_condition): Pass const
3181         pointer to expression string to parse_exp_1.
3182         (update_watchpoint): Likewise.
3183         (parse_cmd_to_aexpr): Constify string handling.
3184         Pass const pointer to parse_exp_1.
3185         (init_breakpoint_sal): Pass const pointer to parse_exp_1.
3186         (find_condition_and_thread): Likewise.
3187         Make TOK const.
3188         (watch_command_1): Make "arg" const.
3189         Constify string handling.
3190         Copy the expression string instead of changing the input
3191         string.
3192         (update_breakpoint_location): Pass const pointer to
3193         parse_exp_1.
3194         * eval.c (parse_and_eval_address): Make "exp" const.
3195         (parse_to_comma_and_eval): Make "expp" const.
3196         (parse_and_eval): Make "exp" const.
3197         * expression.h (parse_expression): Make argument const.
3198         (parse_exp_1): Make first argument const.
3199         * findcmd.c (parse_find_args): Treat "args" as const.
3200         * linespec.c (parse_linespec): Pass const pointer to
3201         linespec_expression_to_pc.
3202         (linespec_expression_to_pc): Make "exp_ptr" const.
3203         * parse.c (parse_exp_1): Make "stringptr" const.
3204         Make a copy of the expression to pass to parse_exp_in_context until
3205         this whole interface can be constified.
3206         (parse_expression): Make "string" const.
3207         * printcmd.c (ui_printf): Treat "arg" as const.
3208         Handle const strings.
3209         * tracepoint.c (validate_actionline): Pass const pointer to
3210         all calls to parse_exp_1.
3211         (encode_actions_1): Likewise.
3212         * value.h (parse_to_comma_and_eval): Make argument const.
3213         (parse_and_eval_address): Likewise.
3214         (parse_and_eval): Likewise.
3215         * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
3216         (varobj_set_value): Likewise.
3217         * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
3218         constify string handling.
3219         Pass const pointers to parse_and_eval_address and
3220         parse_to_comman_and_eval.
3221         * cli/cli-utils.c (skip_to_space): Rename to ...
3222         (skip_to_space_const): ... this. Handle const strings.
3223         * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
3224         skip_to_space_const.
3225         (skip_to_space_const): Declare.
3226         * common/format.c (parse_format_string): Make "arg" const.
3227         Handle const strings.
3228         * common/format.h (parse_format_string): Make "arg" const.
3229         * gdbserver/ax.c (ax_printf): Make "format" const.
3230         * python/python.c (gdbpy_parse_and_eval): Do not make a copy
3231         of the expression string.
3232
3233 2013-03-12  Hui Zhu  <hui@codesourcery.com>
3234
3235         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
3236
3237 2013-03-12  Yao Qi  <yao@codesourcery.com>
3238             Hui Zhu  <hui@codesourcery.com>
3239
3240         * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
3241         (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
3242         DW_OP_deref_size.
3243
3244 2013-03-12  Paul Hilfinger  <hilfingr@adacore.com>
3245
3246         * ada-lex.l (rules): Only recognize 'thread' as a
3247         delimiter when followed by numerals, as for c-exp.y.
3248         Use new rewind_to_char function to rewind the input for
3249         expression-delimiting tokens.
3250         (rewind_to_char): New function.
3251
3252 2013-03-11  Pedro Alves  <palves@redhat.com>
3253             Jan Kratochvil  <jan.kratochvil@redhat.com>
3254
3255         * configure: Regenerate.
3256         * configure.ac (check dynamic export flag): Link python test with
3257         $PYTHON_LIBS.
3258
3259 2013-03-11  Doug Evans  <dje@google.com>
3260             Keith Seitz  <keiths@redhat.com>
3261
3262         * linespec.c (find_linespec_symbols): Call find_function_symbols
3263         first, and then call lookup_prefix_sym/find_method.
3264
3265 2013-03-11  Pedro Alves  <palves@redhat.com>
3266
3267         * charset.c (convert_between_encodings): Don't cast between
3268         different pointer to pointer types.  Instead, make the 'inp' local
3269         be of the type iconv expects.
3270         (wchar_iterate): Don't cast between different pointer to pointer
3271         types.  Instead, use new pointer local of the type iconv expects.
3272         * target.c (target_read_stralloc, target_fileio_read_stralloc):
3273         Add new local of type char pointer, and use it to get a
3274         char/string view of the byte buffer, instead of casting between
3275         pointer to pointer types.
3276
3277 2013-03-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3278
3279         * remote.c (remote_set_trace_buffer_size): Move != operator
3280         to the start of next line to fix an ARI warning.
3281
3282 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3283
3284         * NEWS: Add record changes.
3285
3286 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3287
3288         * record-btrace.c (btrace_insn_history): Omit the pc prefix in
3289         the instruction history disassembly.
3290         * disasm.c (dump_insns): Omit the pc prefix, if requested.
3291         * disasm.h (DISASSEMBLY_OMIT_PC): New.
3292
3293 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3294
3295         * Makefile.in (SFILES): Add record-btrace.c
3296         (COMMON_OBS): Add record-btrace.o
3297         * record-btrace.c: New.
3298         * objfiles.c: Include btrace.h.
3299         (free_objfile): call btrace_free_objfile.
3300
3301 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3302
3303         * target.c (target_call_history, target_call_history_from,
3304         target_call_history_range): New.
3305         * target.h (target_ops) <to_call_history, to_call_history_from,
3306         to_call_history_range>: New fields.
3307         (target_call_history, target_call_history_from,
3308         target_call_history_range): New declaration.
3309         * record.c (get_call_history_modifiers, cmd_record_call_history,
3310         record_call_history_size): New.
3311         (_initialize_record): Add the "record function-call-history" command.
3312         Add "set/show record function-call-history-size" commands.
3313         * record.h (record_print_flag): New.
3314
3315 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3316
3317         * target.h (target_ops) <to_insn_history, to_insn_history_from,
3318         to_insn_history_range>: New fields.
3319         (target_insn_history): New.
3320         (target_insn_history_from): New.
3321         (target_insn_history_range): New.
3322         * target.c (target_insn_history): New.
3323         (target_insn_history_from): New.
3324         (target_insn_history_range): New.
3325         * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
3326         (record_insn_history_size): New.
3327         (get_insn_number): New.
3328         (get_context_size): New.
3329         (no_chunk): New.
3330         (get_insn_history_modifiers): New.
3331         (cmd_record_insn_history): New.
3332         (_initialize_record): Add "set/show record instruction-history-size"
3333         command. Add "record instruction-history" command.
3334
3335 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3336
3337         * record.h (record_disconnect): New.
3338         (record_detach): New.
3339         (record_mourn_inferior): New.
3340         (record_kill): New.
3341         * record-full.c (record_disconnect, record_detach,
3342         record_mourn_inferior, record_kill): Move to...
3343         * record.c: ...here.
3344         (DEBUG): New.
3345         (record_stop): New.
3346         (record_unpush): New.
3347         (cmd_record_stop): Call record_stop. Replace unpush_target
3348         call with record_unpush call.
3349         (record_disconnect, record_detach): Assert that the target
3350         is of record stratum. Call record_unpush, record_stop, and
3351         DEBUG.
3352         (record_mourn_inferior, record_kill): Assert that the target
3353         is of record stratum. Call record_unpush and DEBUG.
3354
3355 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3356
3357         * record-full.h, record-full.c (record_memory_query): Rename
3358         to ...
3359         (record_full_memory_query): ...this. Update all users.
3360         (record_arch_list_add_reg): Rename to ...
3361         (record_full_arch_list_add_reg): ...this. Update all users.
3362         (record_arch_list_add_mem): Rename to ...
3363         (record_full_arch_list_add_mem): ...this. Update all users.
3364         (record_arch_list_add_end): Rename to ...
3365         (record_full_arch_list_add_end): ...this. Update all users.
3366         (record_gdb_operation_disable_set): Rename to ...
3367         (record_full_gdb_operation_disable_set): ...this.
3368         Update all users.
3369
3370 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3371
3372         * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
3373         (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
3374         (RECORD_IS_REPLAY): Renamed to ...
3375         (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
3376         (RECORD_FILE_MAGIC): Renamed to ...
3377         (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
3378         (record_mem_entry): Renamed to ...
3379         (record_full_mem_entry): ... this. Updated all users.
3380         (record_reg_entry): Renamed to ...
3381         (record_full_reg_entry): ... this. Updated all users.
3382         (record_end_entry): Renamed to ...
3383         (record_full_end_entry): ... this. Updated all users.
3384         (record_type) <record_end, record_reg, record_mem>: Renamed
3385         to ...
3386         (record_full_type) <record_full_end, record_full_reg,
3387         record_full_mem>: ... this. Updated all users.
3388         (record_entry): Renamed to ...
3389         (record_full_entry): ... this. Updated all users.
3390         (record_core_buf_entry): Renamed to ...
3391         (record_full_core_buf_entry): ... this. Updated all users.
3392         (record_core_regbuf): Renamed to ...
3393         (record_full_core_regbuf): ... this. Updated all users.
3394         (record_core_start): Renamed to ...
3395         (record_full_core_start): ... this. Updated all users.
3396         (record_core_end): Renamed to ...
3397         (record_full_core_end): ... this. Updated all users.
3398         (record_core_buf_list): Renamed to ...
3399         (record_full_core_buf_list): ... this. Updated all users.
3400         (record_first): Renamed to ...
3401         (record_full_first): ... this. Updated all users.
3402         (record_list): Renamed to ...
3403         (record_full_list): ... this. Updated all users.
3404         (record_arch_list_head): Renamed to ...
3405         (record_full_arch_list_head): ... this. Updated all users.
3406         (record_arch_list_tail): Renamed to ...
3407         (record_full_arch_list_tail): ... this. Updated all users.
3408         (record_stop_at_limit): Renamed to ...
3409         (record_full_stop_at_limit): ... this. Updated all users.
3410         (record_insn_max_num): Renamed to ...
3411         (record_full_insn_max_num): ... this. Updated all users.
3412         (record_insn_num): Renamed to ...
3413         (record_full_insn_num): ... this. Updated all users.
3414         (record_insn_count): Renamed to ...
3415         (record_full_insn_count): ... this. Updated all users.
3416         (record_ops): Renamed to ...
3417         (record_full_ops): ... this. Updated all users.
3418         (record_core_ops): Renamed to ...
3419         (record_full_core_ops): ... this. Updated all users.
3420         (set_record_cmdlist): Renamed to ...
3421         (set_record_full_cmdlist): ... this. Updated all users.
3422         (show_record_cmdlist): Renamed to ...
3423         (show_record_full_cmdlist): ... this. Updated all users.
3424         (record_cmdlist): Renamed to ...
3425         (record_full_cmdlist): ... this. Updated all users.
3426         (record_beneath_to_resume_ops): Renamed to ...
3427         (record_full_beneath_to_resume_ops): ... this. Updated all users.
3428         (record_beneath_to_resume): Renamed to ...
3429         (record_full_beneath_to_resume): ... this. Updated all users.
3430         (record_beneath_to_wait_ops): Renamed to ...
3431         (record_full_beneath_to_wait_ops): ... this. Updated all users.
3432         (record_beneath_to_wait): Renamed to ...
3433         (record_full_beneath_to_wait): ... this. Updated all users.
3434         (record_beneath_to_store_registers_ops): Renamed to ...
3435         (record_full_beneath_to_store_registers_ops): ... this.
3436         Updated all users.
3437         (record_beneath_to_store_registers): Renamed to ...
3438         (record_full_beneath_to_store_registers): ... this.
3439         Updated all users.
3440         (record_beneath_to_xfer_partial_ops): Renamed to ...
3441         (record_full_beneath_to_xfer_partial_ops): ... this.
3442         Updated all users.
3443         (record_beneath_to_xfer_partial): Renamed to ...
3444         (record_full_beneath_to_xfer_partial): ... this.
3445         Updated all users.
3446         (record_beneath_to_insert_breakpoint): Renamed to ...
3447         (record_full_beneath_to_insert_breakpoint): ... this.
3448         Updated all users.
3449         (record_beneath_to_stopped_by_watchpoint): Renamed to ...
3450         (record_full_beneath_to_stopped_by_watchpoint): ... this.
3451         Updated all users.
3452         (record_beneath_to_stopped_data_address): Renamed to ...
3453         (record_full_beneath_to_stopped_data_address): ... this.
3454         Updated all users.
3455         (record_beneath_to_async): Renamed to ...
3456         (record_full_beneath_to_async): ... this. Updated all users.
3457         (record_goto_insn): Renamed to ...
3458         (record_full_goto_insn): ... this. Updated all users.
3459         (record_save): Renamed to ...
3460         (record_full_save): ... this. Updated all users.
3461         (record_reg_alloc): Renamed to ...
3462         (record_full_reg_alloc): ... this. Updated all users.
3463         (record_reg_release): Renamed to ...
3464         (record_full_reg_release): ... this. Updated all users.
3465         (record_mem_alloc): Renamed to ...
3466         (record_full_mem_alloc): ... this. Updated all users.
3467         (record_mem_release): Renamed to ...
3468         (record_full_mem_release): ... this. Updated all users.
3469         (record_end_alloc): Renamed to ...
3470         (record_full_end_alloc): ... this. Updated all users.
3471         (record_end_release): Renamed to ...
3472         (record_full_end_release): ... this. Updated all users.
3473         (record_entry_release): Renamed to ...
3474         (record_full_entry_release): ... this. Updated all users.
3475         (record_list_release): Renamed to ...
3476         (record_full_list_release): ... this. Updated all users.
3477         (record_list_release_following): Renamed to ...
3478         (record_full_list_release_following): ... this.
3479         Updated all users.
3480         (record_list_release_first): Renamed to ...
3481         (record_full_list_release_first): ... this. Updated all users.
3482         (record_arch_list_add): Renamed to ...
3483         (record_full_arch_list_add): ... this. Updated all users.
3484         (record_get_loc): Renamed to ...
3485         (record_full_get_loc): ... this. Updated all users.
3486         (record_check_insn_num): Renamed to ...
3487         (record_full_check_insn_num): ... this. Updated all users.
3488         (record_arch_list_cleanups): Renamed to ...
3489         (record_full_arch_list_cleanups): ... this. Updated all users.
3490         (record_message): Renamed to ...
3491         (record_full_message): ... this. Updated all users.
3492         (record_message_wrapper): Renamed to ...
3493         (record_full_message_wrapper): ... this. Updated all users.
3494         (record_message_wrapper_safe): Renamed to ...
3495         (record_full_message_wrapper_safe): ... this. Updated all users.
3496         (record_gdb_operation_disable): Renamed to ...
3497         (record_full_gdb_operation_disable): ... this. Updated all users.
3498         (record_hw_watchpoint): Renamed to ...
3499         (record_full_hw_watchpoint): ... this. Updated all users.
3500         (record_exec_insn): Renamed to ...
3501         (record_full_exec_insn): ... this. Updated all users.
3502         (record_restore): Renamed to ...
3503         (record_full_restore): ... this. Updated all users.
3504         (record_async_inferior_event_token): Renamed to ...
3505         (record_full_async_inferior_event_token): ... this.
3506         Updated all users.
3507         (record_async_inferior_event_handler): Renamed to ...
3508         (record_full_async_inferior_event_handler): ... this.
3509         Updated all users.
3510         (record_core_open_1): Renamed to ...
3511         (record_full_core_open_1): ... this. Updated all users.
3512         (record_open_1): Renamed to ...
3513         (record_full_open_1): ... this. Updated all users.
3514         (record_open): Renamed to ...
3515         (record_full_open): ... this. Updated all users.
3516         (record_close): Renamed to ...
3517         (record_full_close): ... this. Updated all users.
3518         (record_resume_step): Renamed to ...
3519         (record_full_resume_step): ... this. Updated all users.
3520         (record_resumed): Renamed to ...
3521         (record_full_resumed): ... this. Updated all users.
3522         (record_execution_dir): Renamed to ...
3523         (record_full_execution_dir): ... this. Updated all users.
3524         (record_resume): Renamed to ...
3525         (record_full_resume): ... this. Updated all users.
3526         (record_get_sig): Renamed to ...
3527         (record_full_get_sig): ... this. Updated all users.
3528         (record_sig_handler): Renamed to ...
3529         (record_full_sig_handler): ... this. Updated all users.
3530         (record_wait_cleanups): Renamed to ...
3531         (record_full_wait_cleanups): ... this. Updated all users.
3532         (record_wait_1): Renamed to ...
3533         (record_full_wait_1): ... this. Updated all users.
3534         (record_wait): Renamed to ...
3535         (record_full_wait): ... this. Updated all users.
3536         (record_stopped_by_watchpoint): Renamed to ...
3537         (record_full_stopped_by_watchpoint): ... this. Updated all users.
3538         (record_disconnect): Renamed to ...
3539         (record_full_disconnect): ... this. Updated all users.
3540         (record_detach): Renamed to ...
3541         (record_full_detach): ... this. Updated all users.
3542         (record_mourn_inferior): Renamed to ...
3543         (record_full_mourn_inferior): ... this. Updated all users.
3544         (record_kill): Renamed to ...
3545         (record_full_kill): ... this. Updated all users.
3546         (record_stopped_data_address): Renamed to ...
3547         (record_full_stopped_data_address): ... this. Updated all users.
3548         (record_registers_change): Renamed to ...
3549         (record_full_registers_change): ... this. Updated all users.
3550         (record_store_registers): Renamed to ...
3551         (record_full_store_registers): ... this. Updated all users.
3552         (record_xfer_partial): Renamed to ...
3553         (record_full_xfer_partial): ... this. Updated all users.
3554         (record_breakpoint): Renamed to ...
3555         (record_full_breakpoint): ... this. Updated all users.
3556         (record_breakpoint_p): Renamed to ...
3557         (record_full_breakpoint_p): ... this. Updated all users.
3558         (record_breakpoints): Renamed to ...
3559         (record_full_breakpoints): ... this. Updated all users.
3560         (record_sync_record_breakpoints): Renamed to ...
3561         (record_full_sync_record_breakpoints): ... this.
3562         Updated all users.
3563         (record_init_record_breakpoints): Renamed to ...
3564         (record_full_init_record_breakpoints): ... this.
3565         Updated all users.
3566         (record_insert_breakpoint): Renamed to ...
3567         (record_full_insert_breakpoint): ... this. Updated all users.
3568         (record_remove_breakpoint): Renamed to ...
3569         (record_full_remove_breakpoint): ... this. Updated all users.
3570         (record_can_execute_reverse): Renamed to ...
3571         (record_full_can_execute_reverse): ... this. Updated all users.
3572         (record_get_bookmark): Renamed to ...
3573         (record_full_get_bookmark): ... this. Updated all users.
3574         (record_goto_bookmark): Renamed to ...
3575         (record_full_goto_bookmark): ... this. Updated all users.
3576         (record_async): Renamed to ...
3577         (record_full_async): ... this. Updated all users.
3578         (record_can_async_p): Renamed to ...
3579         (record_full_can_async_p): ... this. Updated all users.
3580         (record_is_async_p): Renamed to ...
3581         (record_full_is_async_p): ... this. Updated all users.
3582         (record_execution_direction): Renamed to ...
3583         (record_full_execution_direction): ... this. Updated all users.
3584         (record_info): Renamed to ...
3585         (record_full_info): ... this. Updated all users.
3586         (record_delete): Renamed to ...
3587         (record_full_delete): ... this. Updated all users.
3588         (record_is_replaying): Renamed to ...
3589         (record_full_is_replaying): ... this. Updated all users.
3590         (record_goto_entry): Renamed to ...
3591         (record_full_goto_entry): ... this. Updated all users.
3592         (record_goto_begin): Renamed to ...
3593         (record_full_goto_begin): ... this. Updated all users.
3594         (record_goto_end): Renamed to ...
3595         (record_full_goto_end): ... this. Updated all users.
3596         (record_goto): Renamed to ...
3597         (record_full_goto): ... this. Updated all users.
3598         (init_record_ops): Renamed to ...
3599         (init_record_full_ops): ... this. Updated all users.
3600         (record_core_resume): Renamed to ...
3601         (record_full_core_resume): ... this. Updated all users.
3602         (record_core_kill): Renamed to ...
3603         (record_full_core_kill): ... this. Updated all users.
3604         (record_core_fetch_registers): Renamed to ...
3605         (record_full_core_fetch_registers): ... this. Updated all users.
3606         (record_core_prepare_to_store): Renamed to ...
3607         (record_full_core_prepare_to_store): ... this. Updated all users.
3608         (record_core_store_registers): Renamed to ...
3609         (record_full_core_store_registers): ... this. Updated all users.
3610         (record_core_xfer_partial): Renamed to ...
3611         (record_full_core_xfer_partial): ... this. Updated all users.
3612         (record_core_insert_breakpoint): Renamed to ...
3613         (record_full_core_insert_breakpoint): ... this. Updated all users.
3614         (record_core_remove_breakpoint): Renamed to ...
3615         (record_full_core_remove_breakpoint): ... this. Updated all users.
3616         (record_core_has_execution): Renamed to ...
3617         (record_full_core_has_execution): ... this. Updated all users.
3618         (init_record_core_ops): Renamed to ...
3619         (init_record_full_core_ops): ... this. Updated all users.
3620         (cmd_record_restore): Renamed to ...
3621         (cmd_record_full_restore): ... this. Updated all users.
3622         (record_save_cleanups): Renamed to ...
3623         (record_full_save_cleanups): ... this. Updated all users.
3624         (cmd_record_start): Renamed to ...
3625         (cmd_record_full_start): ... this. Updated all users.
3626         (set_record_insn_max_num): Renamed to ...
3627         (set_record_full_insn_max_num): ... this. Updated all users.
3628         (set_record_command): Renamed to ...
3629         (set_record_full_command): ... this. Updated all users.
3630         (show_record_command): Renamed to ...
3631         (show_record_full_command): ... this. Updated all users.
3632         (_initialize_record): Renamed to ...
3633         (_initialize_record_full): ... this. Updated all users.
3634
3635 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3636
3637         * record.h: Split into this and ...
3638         * record-full.h: ... this.
3639         * record.c: Split into this and ...
3640         * record-full.c: ... this.
3641         * target.h (target_ops): Add new fields to_info_record,
3642         to_save_record, to_delete_record, to_record_is_replaying,
3643         to_goto_record_begin, to_goto_record_end, to_goto_record.
3644         (target_info_record): New.
3645         (target_save_record): New.
3646         (target_supports_delete_record): New.
3647         (target_delete_record): New.
3648         (target_record_is_replaying): New.
3649         (target_goto_record_begin): New.
3650         (target_goto_record_end): New.
3651         (target_goto_record): New.
3652         * target.c (target_info_record): New.
3653         (target_save_record): New.
3654         (target_supports_delete_record): New.
3655         (target_delete_record): New.
3656         (target_record_is_replaying): New.
3657         (target_goto_record_begin): New.
3658         (target_goto_record_end): New.
3659         (target_goto_record): New.
3660         * record.h: Declare struct cmd_list_element.
3661         (record_cmdlist): New declaration.
3662         (set_record_cmdlist): New declaration.
3663         (show_record_cmdlist): New declaration.
3664         (info_record_cmdlist): New declaration.
3665         (cmd_record_goto): New declaration.
3666         * record.c: Remove unnecessary includes.
3667         Include inferior.h.
3668         (cmd_record_goto): Remove declaration.
3669         (record_cmdlist): Now extern. Initialize.
3670         (set_record_cmdlist): Now extern. Initialize.
3671         (show_record_cmdlist): Now extern. Initialize.
3672         (info_record_cmdlist): Now extern. Initialize.
3673         (find_record_target): New.
3674         (require_record_target): New.
3675         (cmd_record_start): Update.
3676         (cmd_record_delete): Remove target-specific code.
3677         Call target_delete_record.
3678         (cmd_record_stop): Unpush any record target.
3679         (set_record_insn_max_num): Move to record-full.c
3680         (set_record_command): Add comment.
3681         (show_record_command): Add comment.
3682         (info_record_command): Update comment.
3683         Remove target-specific code.
3684         Call the record target's to_info_record.
3685         (cmd_record_start): New.
3686         (cmd_record_goto): Now extern.
3687         Remove target-specific code.
3688         Call target_goto_begin,  target_goto_end, or target_goto.
3689         (_initialize_record): Move record target ops initialization to
3690         record-full.c.
3691         Change "record" command help text.
3692         Move "record restore", "record set", and "record show" commands to
3693         record-full.c.
3694         * Makefile.in (SFILES): Add record-full.c.
3695         (HFILES_NO_SRCDIR): Add record-full.h.
3696         (COMMON_OBS): Add record-full.o.
3697         * amd64-linux-tdep.c: Include record-full.h instead of record.h.
3698         * arm-tdep.c: Include record-full.h.
3699         * i386-linux-tdep.c: Include record-full.h instead of record.h.
3700         * i386-tdep.c: Include record-full.h.
3701         * infrun.c: Include record-full.h.
3702         * linux-record.c: Include record-full.h.
3703         * moxie-tdep.c: Include record-full.h.
3704         * record-full.c: Include record-full.h.
3705         Change module comment.
3706         (set_record_full_cmdlist): New.
3707         (show_record_full_cmdlist): New.
3708         (record_full_cmdlist): New.
3709         (record_goto_insn): New declaration.
3710         (record_save): New declaration.
3711         (record_check_insn_num): Change query string.
3712         (record_info): New.
3713         (record_delete): New.
3714         (record_is_replaying): New.
3715         (record_goto_entry): New.
3716         (record_goto_begin): New.
3717         (record_goto_end): New.
3718         (record_goto): New.
3719         (init_record_ops): Update.
3720         (init_record_core_ops): Update.
3721         (cmd_record_save): Rename to record_save. Remove target and arg checks.
3722         (cmd_record_start): New.
3723         (set_record_insn_max_num): Moved from record.c
3724         (set_record_full_command): New.
3725         (show_record_full_command): New.
3726         (_initialize_record_full): New.
3727
3728 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3729
3730         * target.h (add_deprecated_target_alias): New.
3731         * target.c (add_deprecated_target_alias): New.
3732
3733 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3734
3735         * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
3736         and signal.h.
3737         (linux_supports_btrace): Add kernel and
3738         cpuid check.
3739         (kernel_supports_btrace): New function.
3740         (cpu_supports_btrace): New function.
3741         (intel_supports_btrace): New function.
3742
3743 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3744
3745         * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
3746         * remote.c: Include btrace.h.
3747         (struct btrace_target_info): New struct.
3748         (remote_supports_btrace): New function.
3749         (send_Qbtrace): New function.
3750         (remote_enable_btrace): New function.
3751         (remote_disable_btrace): New function.
3752         (remote_teardown_btrace): New function.
3753         (remote_read_btrace): New function.
3754         (init_remote_ops): Add btrace ops.
3755         (enum <unnamed>): Add btrace packets.
3756         (struct protocol_feature remote_protocol_features[]): Add btrace packets.
3757         (_initialize_remote): Add packet configuration for branch tracing.
3758
3759 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3760
3761         * features/btrace.dtd: New file.
3762         * Makefile.in (XMLFILES): Add btrace.dtd.
3763         * btrace.h (parse_xml_btrace): New declaration.
3764         * btrace.c: Include xml-support.h.
3765         (parse_xml_btrace): New function.
3766         (parse_xml_btrace_block): New function.
3767         (block_attributes): New struct.
3768         (btrace_attributes): New struct.
3769         (btrace_children): New struct.
3770         (btrace_elements): New struct.
3771
3772 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3773
3774         * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
3775         (amd64_linux_enable_btrace): New.
3776         (amd64_linux_disable_btrace): New.
3777         (amd64_linux_teardown_btrace): New.
3778         (_initialize_amd64_linux_nat): Initialize btrace ops.
3779         * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
3780         (i386_linux_enable_btrace): New.
3781         (i386_linux_disable_btrace): New.
3782         (i386_linux_teardown_btrace): New.
3783         (_initialize_i386_linux_nat): Initialize btrace ops.
3784         * config/i386/linux.mh: Add linux-btrace.o.
3785         * config/i386/linux64.mh: Add linux-btrace.o.
3786
3787 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3788
3789         * common/linux_btrace.h: New file.
3790         * common/linux_btrace.c: New file.
3791         * Makefile.in (SFILES): Add btrace.c.
3792         (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
3793         (COMMON_OBS): Add btrace.o.
3794         (linux-btrace.o): New rule.
3795
3796 2013-03-11  Markus Metzger  <markus.t.metzger@intel.com>
3797
3798         * target.h: Include btrace.h.
3799         (struct target_ops) <to_supports_btrace, to_enable_btrace,
3800         to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
3801         * target.c (target_supports_btrace): New function.
3802         (target_enable_btrace): New function.
3803         (target_disable_btrace): New function.
3804         (target_teardown_btrace): New function.
3805         (target_read_btrace): New function.
3806         * btrace.h: New file.
3807         * btrace.c: New file.
3808         * Makefile.in: Add btrace.c.
3809         * gdbthread.h: Include btrace.h.
3810         (struct thread_info): Add btrace field.
3811         * thread.c: Include btrace.h.
3812         (clear_thread_inferior_resources): Call target_teardown_btrace.
3813         * common/btrace-common.h: New file.
3814
3815 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3816
3817         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
3818         for CHILD, ignore PTRACE_KILL errors, move the inner block variable
3819         kill_status to outer block.
3820
3821 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3822
3823         Fix entry-values if the callee called a noreturn function.
3824         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3825         get_frame_address_in_block.  Add new comment.
3826
3827 2013-03-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3828
3829         Fix entry-values in C++ across CUs.
3830         * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
3831         lookup_minimal_symbol.  Add a comment.
3832         * dwarf2read.c
3833         (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
3834         DW_AT_linkage_name.
3835
3836 2013-03-08  Yao Qi  <yao@codesourcery.com>
3837
3838         * tracepoint.c (_initialize_tracepoint): Indent the code.
3839
3840 2013-03-08  Pedro Alves  <palves@redhat.com>
3841
3842         * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
3843         (parse_find_args, find_command): Change type of pattern buffer
3844         locals to 'gdb_byte *'.
3845
3846 2013-03-08  Stan Shebs  <stan@codesourcery.com>
3847             Hafiz Abid Qadeer  <abidh@codesourcery.com>
3848
3849         * NEWS: Mention set and show trace-buffer-size commands.
3850         Mention new packet.
3851         * target.h (struct target_ops): New method
3852         to_set_trace_buffer_size.
3853         (target_set_trace_buffer_size): New macro.
3854         * target.c (update_current_target): Set up new method.
3855         * tracepoint.c (trace_buffer_size): New global.
3856         (start_tracing): Send it to the target.
3857         (set_trace_buffer_size): New function.
3858         (_initialize_tracepoint): Add new setshow for trace-buffer-size.
3859         * remote.c (remote_set_trace_buffer_size): New function.
3860         (_initialize_remote): Use it.
3861         (QTBuffer:size) New remote command.
3862         (PACKET_QTBuffer_size): New enum.
3863         (remote_protocol_features): Add an entry for
3864         PACKET_QTBuffer_size.
3865
3866 2013-03-08  Tom Tromey  <tromey@redhat.com>
3867
3868         * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
3869         variable.
3870
3871 2013-03-07  Pedro Alves  <palves@redhat.com>
3872
3873         * target.c (target_read_stralloc, target_fileio_read_alloc):
3874         *Cast pointer to 'gdb_byte *' in target call.
3875
3876 2013-03-07  Pedro Alves  <palves@redhat.com>
3877
3878         * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
3879         call.
3880
3881 2013-03-07  Keith Seitz  <keiths@redhat.com>
3882
3883         * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
3884         (trace_pass_command): Likewise.
3885         * cli/cli-cmds.c: Include cli/cli-utils.h.
3886         (source_command): Use skip-spaces.
3887         (disassemble_command): Likewise.
3888         * findcmd.c: Include cli/cli-utils.h.
3889         (parse_find_args): Use skip_spaces.
3890         * go32-nat.c: Include cli/cli-utils.h.
3891         (go32_sldt): Use skip_spaces.
3892         (go32_sgdt): Likewise.
3893         (go32_sidt): Likewise.
3894         (go32_pde): Likewise.
3895         (go32_pte): Likewise.
3896         (go32_pte_for_address): Likewise.
3897         * infcmd.c: Include cli/cli-utils.h.
3898         (registers_info): Use skip_spaces.
3899         * linux-tdep.c (read_mapping): Use skip_spaces_const.
3900         (linux_info_proc): Likewise.
3901         * linux-thread-db.c: Include cli/cli-utils.h.
3902         (info_auto_load_libthread_db): Use skip_spaces_const.
3903         * m32r-rom.c: Include cli/cli-utils.h.
3904         (m32r_upload_command): Use skip_spaces.
3905         * maint.c: Include cli/cli-utils.h.
3906         (maintenance_translate_address): Use skip_spaces.
3907         * mi/mi-parse.c: Include cli/cli-utils.h.
3908         (mi_parse_argv): Use skip_spaces.
3909         (mi_parse): Likewise.
3910         * minsyms.c: Include cli/cli-utils.h.
3911         (msymbol_hash_iw): Use skip_spaces_const.
3912         * objc-lang.c: Include cli/cli-utils.h.
3913         (parse_selector): Use skip_spaces.
3914         (parse_method): Likewise.
3915         * python/python.c: Include cli/cli-utils.h.
3916         (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
3917         (python_command)[HAVE_PYTHON]: Likewise.
3918         (python_interactive_command)[!HAVE_PYTHON]: Likewise.
3919         * remote-m32r-sdi.c: Include cli/cli-utils.h.
3920         (m32r_load): Use skip_spaces.
3921         * serial.c: Include cli/cli-utils.h.
3922         (serial_open): Use skip_spaces_const.
3923         * stack.c: Include cli/cli-utils.h.
3924         (parse_frame_specification_1): Use skip_spaces_const.
3925         * symfile.c: Include cli/cli-utils.h.
3926         (set_ext_lang_command): Use skip_spaces.
3927         * symtab.c: Include cli/cli-utils.h.
3928         (rbreak_command): Use skip_spaces.
3929         * thread.c (thread_name_command): Use skip_spaces.
3930         * tracepoint.c (validate_actionline): Use skip_spaces.
3931         (encode_actions_1): Likewise.
3932         (trace_find_range_command): Likewise.
3933         (trace_find_outside_command): Likewise.
3934         (trace_dump_actions): Likewise.
3935
3936 2013-03-07  Pedro Alves  <palves@redhat.com>
3937
3938         * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
3939         * expprint.c (print_subexp_standard): Likewise.
3940         * utils.c (host_char_to_target): Likewise.
3941         * valprint.c (generic_emit_char, generic_printstr): Likewise.
3942         * varobj.c (value_get_print_value): Change type of local to char*.
3943         Cast it gdb_byte * in call to language printer.
3944
3945 2013-03-07  Pedro Alves  <palves@redhat.com>
3946
3947         * charset.c (struct wchar_iterator) <input>: Change type to 'const
3948         gdb_byte *'.
3949         (make_wchar_iterator): Remove cast to char*.
3950         (wchar_iterate): Change type of local.
3951
3952 2013-03-07  Pedro Alves  <palves@redhat.com>
3953
3954         * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
3955         for 'regcache->register_status'.
3956
3957 2013-03-07  Pedro Alves  <palves@redhat.com>
3958
3959         * breakpoint.c (breakpoint_xfer_memory): Change type of local to
3960         int.
3961
3962 2013-03-07  Pedro Alves  <palves@redhat.com>
3963
3964         * stap-probe.c (handle_stap_probe): Add cast to char*.
3965
3966 2013-03-07  Pedro Alves  <palves@redhat.com>
3967
3968         * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
3969         RECORD_MSGRCV>: Pass a signed variable to
3970         regcache_raw_read_signed, instead of an unsigned one.
3971
3972 2013-03-07  Pedro Alves  <palves@redhat.com>
3973
3974         * remote-notif.c (notif_debug): Change type to int.
3975         * remote-notif.h (notif_debug): Likewise.
3976
3977 2013-03-07  Pedro Alves  <palves@redhat.com>
3978
3979         * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
3980
3981 2013-03-07  Pedro Alves  <palves@redhat.com>
3982
3983         * remote.c (hex2bin, bin2hex): Move extern declarations to ...
3984         * remote.h (hex2bin, bin2hex): ... here.
3985         * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
3986
3987 2013-03-07  Eli Zaretskii  <eliz@gnu.org>
3988
3989         * utils.c (initialize_utils): Improve doc strings of "set/show
3990         width", "set/show height", and "set/show pagination".
3991
3992 2013-03-06  Keith Seitz  <keiths@redhat.com>
3993
3994         * ax-gdb.c (gen_printf): Make FORMAT const.
3995         * ax-gdb.h (gen_printf): Likewise.
3996         * ax-general.c (ax_string): Make STR const.
3997         * ax.h (ax_string): Likewise.
3998
3999 2013-03-06  Doug Evans  <dje@google.com>
4000
4001         * elfread.c (elf_symfile_read): Move debugging printf to more
4002         logical location.
4003
4004 2013-03-06  Pedro Alves  <palves@redhat.com>
4005
4006         * python/py-utils.c (target_string_to_unicode): Delete function.
4007         * python/python-internal.h (target_string_to_unicode): Delete
4008         declaration.
4009
4010 2013-03-06  Pierre Muller  <muller@sourceware.org>
4011
4012         * linespec.c (get_current_search_block): ARI fix, use (void)
4013         for empty parameter list.
4014
4015 2013-03-05  Doug Evans  <dje@google.com>
4016
4017         * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
4018         of old ada_lookup_symbol_list.  In !full_search case, don't
4019         search superblocks.
4020         (ada_lookup_symbol_list): Delete arg full_search, all callers
4021         updated.  Call ada_lookup_symbol_list_worker.
4022         (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
4023         * ada-lang.h (ada_lookup_symbol_list): Update.
4024         * language.h (language_defn): Update comment for
4025         la_iterate_over_symbols.
4026         * linespec.c (iterate_over_file_blocks): New function.
4027         (iterate_over_all_matching_symtabs): Call it.
4028         (lookup_prefix_sym): Ditto.
4029         (get_current_search_block): New function.
4030         (get_search_block): Delete.
4031         (find_label_symbols): Call get_current_search_block.
4032         (add_matching_symbols_to_info): Call iterate_over_file_blocks.
4033         * symtab.c (iterate_over_symbols): Don't search superblocks.
4034
4035 2013-03-05  Yao Qi  <yao@codesourcery.com>
4036
4037         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
4038         parameter VAR's type from "unsigned int" to "int".
4039         * command.h (var_zuinteger_unlimited): Update its comments.
4040         (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
4041
4042 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
4043
4044         * NEWS: Mention new target x86_64-*-cygwin*.
4045
4046 2013-03-05  Corinna Vinschen  <vinschen@redhat.de>
4047
4048         * configure.host: Add x86_64-*-cygwin* as host.
4049         * configure.tgt: Add x86_64-*-cygwin* as target.
4050         * config/i386/cygwin64.mh: New file.
4051
4052 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4053
4054         * linespec.c (decode_line_2): Fix duplicate request off by two message.
4055
4056 2013-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4057
4058         * linespec.c (struct linespec_canonical_name): New.
4059         (struct linespec_state): Change canonical_names type to it.
4060         (add_sal_to_sals): Change variable canonical_name to canonical.  Change
4061         xrealloc element size.  Initialize the different CANONICAL fields.
4062         (canonical_to_fullform): New.
4063         (filter_results): Use it.  Add variables canonical, fullform and
4064         cleanup.
4065         (struct decode_line_2_item, decode_line_2_compare_items): New.
4066         (decode_line_2): Remove variables iter and item_names, add variables
4067         items and items_count.  Modify the code for these new variables.
4068
4069 2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
4070
4071         * coff-pe-read.c (read_pe_exported_syms): Don't return without
4072         calling do_cleanup.
4073
4074 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
4075
4076         * tracepoint.c (build_traceframe_info): Add code for byte order.
4077
4078 2013-03-02  Kevin Buettner  <kevinb@redhat.com>
4079
4080         * v850-tdep.c: (v850e2_register_name): Revise system register
4081         names to match current V850E2M architecture specifications.
4082         Update register number enum comments too.
4083         
4084 2013-03-01  Jiong Wang  <jiwang@tilera.com>
4085             Pedro Alves  <palves@redhat.com>
4086
4087         * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
4088         to END_ADDR.
4089         (tilegx_skip_prologue): Limit prologue analysis to section end.
4090
4091 2013-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4092
4093         * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
4094         use it.
4095
4096 2013-03-01  Pedro Alves  <palves@redhat.com>
4097
4098         Use gdb_byte for bytes from the program being debugged.
4099
4100         * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
4101         Change type of local 'buf' to gdb_byte.
4102         * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
4103         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
4104         * cris-tdep.c (cris_sigcontext_addr)
4105         (cris_sigtramp_frame_unwind_cache): Likewise.
4106         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
4107         (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
4108         Likewise.
4109         * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
4110         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
4111         (hppa32_hpux_search_dummy_call_sequence)
4112         (hppa_hpux_supply_save_state): Likewise.
4113         * hppa-linux-tdep.c (insns_match_pattern)
4114         (hppa_linux_find_global_pointer): Likewise.
4115         * hppa-tdep.c (hppa_in_function_epilogue_p)
4116         (skip_prologue_hard_way, hppa_frame_cache): Likewise.
4117         * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
4118         * i386fbsd-tdep.c (i386fbsd_supply_uthread)
4119         (i386fbsd_collect_uthread): Likewise.
4120         * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
4121         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
4122         * ia64-tdep.c (examine_prologue, ia64_frame_cache)
4123         (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
4124         (ia64_sigtramp_frame_prev_register, ia64_access_reg)
4125         (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
4126         (ia64_libunwind_frame_prev_register)
4127         (ia64_libunwind_sigtramp_frame_this_id)
4128         (ia64_find_global_pointer_from_dynamic_section)
4129         (find_extant_func_descr, find_func_descr, ia64_dummy_id)
4130         (ia64_unwind_pc): Likewise.
4131         * iq2000-tdep.c (iq2000_store_return_value): Likewise.
4132         * m68hc11-tdep.c (m68hc11_push_dummy_call)
4133         (m68hc11_extract_return_value): Likewise.
4134         * m68klinux-nat.c (fetch_register, store_register): Likewise.
4135         * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
4136         (mep_get_insn, mep_push_dummy_call): Likewise.
4137         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
4138         (mips_linux_in_dynsym_stub): Likewise.
4139         * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
4140         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
4141         * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
4142         to gdb_byte.
4143         * remote-mips.c (mips_set_register): Likewise.
4144         * remote-sim.c (gdbsim_fetch_register): Likewise.
4145         * score-tdep.c (score7_fetch_inst): Change type of parameter
4146         'memblock' and local 'buf' to gdb_byte.
4147         (score7_malloc_and_get_memblock): Change return type to gdb_byte.
4148         Change type of local 'buf' to gdb_byte.  Adjust.
4149         (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
4150         to gdb_byte**.
4151         (score7_analyze_prologue): Change type of 'memblock' and
4152         'memblock_ptr' locals to gdb_byte*.
4153         * sh64-tdep.c (sh64_extract_return_value)
4154         (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
4155         * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
4156         * solib-pa64.c (pa64_solib_create_inferior_hook)
4157         (pa64_open_symbol_file_object): Remove local 'buf'.
4158         * solib-som.c (som_solib_create_inferior_hook, link_map_start)
4159         (som_open_symbol_file_object): Likewise.
4160         * solib-spu.c (spu_current_sos): Likewise.
4161         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4162         * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
4163         (spu_store_registers): Likewise.
4164         * target.c (debug_print_register): Likewise.
4165         * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
4166         * xstormy16-tdep.c (xstormy16_store_return_value)
4167         (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
4168         (xstormy16_find_jmp_table_entry): Likewise.
4169
4170 2013-03-01  Jiong Wang  <jiwang@tilera.com>
4171
4172         * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
4173         (tilegx_gdbarch_init): Install it.
4174
4175 2013-02-28  Tom Tromey  <tromey@redhat.com>
4176
4177         * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
4178         PyLong_Check.
4179
4180 2013-02-28  Doug Evans  <dje@google.com>
4181
4182         * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
4183         * python/python.c (gdbpy_find_pc_line): Ditto.
4184
4185 2013-02-28  Tom Tromey  <tromey@redhat.com>
4186
4187         * contrib/excheck.py: New file.
4188         * contrib/exsummary.py: New file.
4189         * contrib/gcc-with-excheck: New file.
4190
4191 2013-02-28  Tom Tromey  <tromey@redhat.com>
4192
4193         * python/python.c (gdbpy_print_stack): Call begin_line and
4194         fprintf_filtered inside TRY_CATCH.
4195
4196 2013-02-28  Tom Tromey  <tromey@redhat.com>
4197
4198         * python/python.c (gdbpy_find_pc_line): Call find_pc_line
4199         inside TRY_CATCH.
4200
4201 2013-02-28  Tom Tromey  <tromey@redhat.com>
4202
4203         * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
4204         frame_object_to_frame_info inside TRY_CATCH.
4205
4206 2013-02-28  Tom Tromey  <tromey@redhat.com>
4207
4208         * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
4209         TRY_CATCH.
4210
4211 2013-02-28  Tom Tromey  <tromey@redhat.com>
4212
4213         * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
4214
4215 2013-02-27  Corinna Vinschen  <vinschen@redhat.com>
4216
4217         * windows-nat.c: Throughout, fix format strings and casts of
4218         printf-like functions to avoid type related warnings on all
4219         platforms.
4220         (handle_output_debug_string): Fetch context information address
4221         from debug string using string_to_core_addr.
4222
4223 2013-02-27  Jiong Wang  <jiwang@tilera.com>
4224
4225         * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
4226         * regformats/reg-tilegx32.dat: New.
4227
4228 2013-02-27  Jiong Wang  <jiwang@tilera.com>
4229
4230         * configure.tgt (tilegx-*-linux*): Enable gdbserver.
4231
4232 2013-02-27  Jiong Wang  <jiwang@tilera.com>
4233
4234         * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
4235
4236 2013-02-27  Yao Qi  <yao@codesourcery.com>
4237             Pedro Alves  <palves@redhat.com>
4238
4239         * tracepoint.c (tfile_trace_find): For tfind
4240         pc/tp/range/outside, look for the next trace frame instead of
4241         always starting from frame 0.
4242
4243 2013-02-26  Anthony Green  <green@moxielogic.com>
4244
4245         * configure.tgt: Add support for moxie-*-rtems* target.
4246
4247 2013-02-25  Pedro Alves  <palves@redhat.com>
4248
4249         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
4250         warning text.
4251
4252 2013-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
4253
4254         * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
4255         if $fp is used as the virtual frame pointer.
4256
4257 2013-02-23  Alan Modra  <amodra@gmail.com>
4258
4259         * elfread.c (elf_symtab_read): Do not use udata.p here to find
4260         symbol size.
4261         * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
4262         * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
4263         * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
4264         * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
4265
4266 2013-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4267
4268         Code cleanup.
4269         * elfread.c (build_id_bfd_get): Make the return type const.
4270         (build_id_verify): Make the check parameter const.
4271         (build_id_to_debug_filename): Make the build_id parameter and variable
4272         data const.
4273         (find_separate_debug_file_by_buildid): Make the variable build_id const.
4274
4275 2013-02-21  Alan Modra  <amodra@gmail.com>
4276
4277         * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
4278
4279 2013-02-20  Siva Chandra Reddy  <sivachandra@google.com>
4280
4281         Add a new method 'disassemble' to gdb.Architecture class.
4282         * python/py-arch.c (archpy_disassmble): Implementation of the
4283         new method gdb.Architecture.disassemble.
4284         (arch_object_methods): Add entry for the new method.
4285
4286 2013-02-20  Jiong Wang  <jiwang@tilera.com>
4287
4288         * MAINTAINERS (Write After Approval): Add myself to the list.
4289
4290 2013-02-19  Pedro Alves  <palves@redhat.com>
4291
4292         Garbage collect 'struct monitor_ops'::load_routine.
4293
4294         * monitor.h (struct monitor_ops) <load_routine>: Remove field.
4295         * monitor.c (monitor_load): No longer call
4296         current_monitor->load_routine.
4297         * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
4298         * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
4299         * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
4300
4301 2013-02-19  Pedro Alves  <palves@redhat.com>
4302
4303         PR gdb/15161
4304
4305         Harmonize with generic_load.
4306
4307         * monitor.c: Include "readline/readline.h".
4308         (monitor_load): Rename parameter 'file' to 'args'.  Use build_argv
4309         instead of sscanf.  Use CORE_ADDR/strtoulst instead of unsigned
4310         long/strtol for the 'load_offset' local.  Error out if no argument
4311         is given or if too many arguments are given.  Tilde expand the
4312         passed in file name.
4313
4314 2013-02-19  Kai Tietz  <ktietz@redhat.com>
4315
4316         PR gdb/15161
4317         * symfile.c (load_section_data): Change type of load_offset
4318         to CORE_ADDR.
4319         (generic_load): User strtoulst instead of strtoul for conversion
4320         of load_offset.
4321
4322 2013-02-19  Jiong Wang  <jiwang@tilera.com>
4323
4324         * tilegx-tdep.c (tilegx_analyze_prologue): add check for
4325          for return address, "lr" register, saved on stack.
4326         * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
4327         after we invoke tilegx_analyze_prologue.
4328
4329 2013-02-19  Jiong Wang  <jiwang@tilera.com>
4330
4331         * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
4332
4333 2013-02-19  Jiong Wang  <jiwang@tilera.com>
4334
4335         * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
4336
4337 2013-02-19  Jiong Wang  <jiwang@tilera.com>
4338
4339         * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4340         (tilegx_write_pc): New function.
4341         (tilegx_cannot_reference_register): Return zero if REGNO
4342         is TILEGX_FAULTNUM_REGNUM.
4343         (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
4344         (tilegx_register_name): Add handling of "faultnum" register.
4345         * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
4346         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
4347         handling of TILEGX_FAULTNUM_REGNUM.
4348         * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
4349
4350 2013-02-19  Jiong Wang  <jiwang@tilera.com>
4351
4352         * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
4353         should be aligned to 64bit.
4354
4355 2013-02-19  Kai Tietz  <ktietz@redhat.com>
4356
4357         * windows-nat.c (windows_xfer_memory): Fix debug-output
4358         for LLP64.
4359
4360 2013-02-19  Lei Liu  <lei.liu2@windriver.com>
4361
4362         * mips-linux-nat.c (mips64_linux_regsets_store_registers):
4363         Don't check DSP register number if HAVE_DSP is not set.
4364
4365 2013-02-19  Alan Modra  <amodra@gmail.com>
4366
4367         * elfread.c (struct build_id): Delete.  Use struct elf_build_id
4368         throughout file instead.
4369         (build_id_bfd_get): Update to use new elf_tdata build_id field.
4370         Don't xmalloc return value.
4371         (build_id_verify): Similarly.  Don't xfree.
4372         (build_id_to_debug_filename): Update.
4373         (find_separate_debug_file_by_buildid): Update, don't xfree.
4374
4375 2013-02-18  Tom Tromey  <tromey@redhat.com>
4376
4377         PR gdb/15102:
4378         * dwarf2read.c (read_subrange_type): Use result of
4379         'check_typedef'.
4380
4381 2013-02-16  Yuanhui Zhang  <asmwarrior@gmail.com>
4382
4383         * frame.c: Remove one extra white space after #include
4384         directive.
4385
4386 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4387
4388         * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
4389
4390 2013-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4391
4392         * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
4393         and dir commands into an if block.
4394
4395 2013-02-15  Sanimir Agovic  <sanimir.agovic@intel.com>
4396
4397         * python/py-breakpoint (struct pybp_code):  Use int instead of
4398         enum type_code.
4399
4400 2013-02-15  Pedro Alves  <pedro@codesourcery.com>
4401             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4402
4403         * NEWS: Mention new field "trace-file".
4404         * tracepoint.c (trace_status_mi): Output "trace-file" field.
4405         (tfile_open): Record the trace file's filename in the trace
4406         status.
4407         (tfile_files_info): Mention the name of the trace file.
4408         Check the "filename" field explicitely.
4409         (trace_status_command): Explicitely check "filename" field.
4410         (trace_find_command): Ditto.
4411         (trace_find_pc_command): Ditto.
4412         (trace_find_tracepoint_command): Ditto.
4413         (trace_find_line_command): Ditto.
4414         (trace_find_range_command): Ditto.
4415         (trace_find_outside_command): Ditto.
4416         * tracepoint.h (struct trace_status) <from_file>: Rename it
4417         to "filename" and make it hold the trace file's filename
4418         instead of a boolean.
4419         * remote.c (remote_get_trace_status): Initialize "filename"
4420         field with NULL instead of 0.
4421
4422 2013-02-15  Yao Qi  <yao@codesourcery.com>
4423
4424         * remote.c: Fix a typo.
4425
4426 2013-02-14  Pierre Muller  <muller@sourceware.org>
4427
4428         * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
4429
4430 2013-02-14  Pedro Alves  <palves@redhat.com>
4431
4432         * utils.c (savestring): Don't #undef it.  Move function to
4433         common/common-utils.c.
4434         * common/common-utils.c: Include gdb_string.h.
4435         (savestring): Move here from utils.c.
4436         * common/common-utils.h (savestring): Declare.
4437
4438 2013-02-14  Pedro Alves  <palves@redhat.com>
4439
4440         * utils.c (savestring): Rename parameter 'size' to 'len'.
4441
4442 2013-02-14  Pedro Alves  <palves@redhat.com>
4443             Yufeng Zhang  <yufeng.zhang@arm.com>
4444
4445         * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
4446         (aarch64_inferior_data, struct aarch64_inferior_data):
4447         Delete.
4448         (struct aarch64_process_info): New.
4449         (aarch64_process_list): New global.
4450         (aarch64_find_process_pid, aarch64_add_process)
4451         (aarch64_process_info_get): New functions.
4452         (aarch64_inferior_data_get): Delete.
4453         (aarch64_process_info_get): New function.
4454         (aarch64_forget_process): New function.
4455         (aarch64_get_debug_reg_state): New parameter 'pid'.  Reimplement.
4456         (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
4457         aarch64_get_debug_reg_state.
4458         (aarch64_notify_debug_reg_change): Use iterate_over_lwps
4459         instead of linux_nat_iterate_watchpoint_lwps.
4460         (aarch64_linux_new_fork): New function.
4461         (aarch64_linux_child_post_startup_inferior): Use
4462         aarch64_forget_process instead of aarch64_init_debug_reg_state.
4463         (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
4464         (aarch64_linux_remove_hw_breakpoint)
4465         (aarch64_handle_aligned_watchpoint)
4466         (aarch64_handle_unaligned_watchpoint)
4467         (aarch64_linux_insert_watchpoint)
4468         (aarch64_linux_remove_watchpoint)
4469         (aarch64_linux_stopped_data_address): Adjust to pass the current
4470         process id to aarch64_debug_reg_state.
4471         (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
4472         linux_nat_new_fork hook, and aarch64_forget_process as
4473         linux_nat_forget_process hook; remove the call to
4474         register_inferior_data_with_cleanup.
4475
4476 2013-02-14  Pedro Alves  <palves@redhat.com>
4477
4478         * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
4479         EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
4480         lval_memory.
4481
4482 2013-02-14  Pedro Alves  <pedro@codesourcery.com>
4483             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4484
4485         * tracepoint.h (validate_trace_state_variable_name): Declare.
4486         * tracepoint.c (validate_trace_state_variable_name): New.
4487         (trace_variable_command): Parse the trace state variable's name
4488         without using parse_expression.  Do several validations.
4489         * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
4490         trace state variable's name with parse_expression.  Validate it.
4491
4492 2013-02-14  Yao Qi  <yao@codesourcery.com>
4493
4494         * infcmd.c (breakpoint_proceeded): Remove it.
4495
4496 2013-02-14  Yao Qi  <yao@codesourcery.com>
4497
4498         * tracepoint.c (end_actions_pseudocommand): Make it static.
4499         (while_stepping_pseudocommand): Likewise.
4500         * tracepoint.h (end_actions_pseudocommand): Remove the
4501         declaration.
4502         (while_stepping_pseudocommand): Likewise.
4503
4504 2013-02-14  Yao Qi  <yao@codesourcery.com>
4505
4506         * cli/cli-decode.c (help_cmd): Remove the declaration of
4507         "cmdlist".
4508         (help_all): Likewise.
4509
4510 2013-02-13  Pedro Alves  <palves@redhat.com>
4511
4512         * amd64-linux-nat.c (update_debug_registers_callback):
4513         Update comment.
4514         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4515         iterate_over_lwps.
4516         (amd64_linux_prepare_to_resume): Pass the lwp's pid to
4517         i386_debug_reg_state.
4518         (amd64_linux_new_fork): New function.
4519         (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
4520         linux_nat_new_fork hook, and i386_forget_process as
4521         linux_nat_forget_process hook.
4522         * i386-linux-nat.c (update_debug_registers_callback):
4523         Update comment.
4524         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4525         iterate_over_lwps.
4526         (i386_linux_prepare_to_resume): Pass the lwp's pid to
4527         i386_debug_reg_state.
4528         (i386_linux_new_fork): New function.
4529         (_initialize_i386_linux_nat): Install i386_linux_new_fork as
4530         linux_nat_new_fork hook, and i386_forget_process as
4531         linux_nat_forget_process hook.
4532         * i386-nat.c (i386_init_dregs): Delete.
4533         (i386_inferior_data, struct i386_inferior_data):
4534         Delete.
4535         (struct i386_process_info): New.
4536         (i386_process_list): New global.
4537         (i386_find_process_pid, i386_add_process, i386_process_info_get):
4538         New functions.
4539         (i386_inferior_data_get): Delete.
4540         (i386_process_info_get): New function.
4541         (i386_debug_reg_state): New parameter 'pid'.  Reimplement.
4542         (i386_forget_process): New function.
4543         (i386_cleanup_dregs): Rewrite.
4544         (i386_update_inferior_debug_regs, i386_insert_watchpoint)
4545         (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4546         (i386_stopped_data_address, i386_insert_hw_breakpoint)
4547         (i386_remove_hw_breakpoint): Adjust to pass the current process id
4548         to i386_debug_reg_state.
4549         (i386_use_watchpoints): Don't register inferior data.
4550         * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
4551         adjust comment.
4552         (i386_forget_process): Declare.
4553         * linux-fork.c (delete_fork): Call linux_nat_forget_process.
4554         * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
4555         New static globals.
4556         (linux_child_follow_fork): Don't call linux_nat_new_thread here.
4557         (add_initial_lwp): New, factored out from ...
4558         (add_lwp): ... this.  Don't check the number of lwps before
4559         calling linux_nat_new_thread.
4560         (linux_nat_iterate_watchpoint_lwps): Delete.
4561         (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
4562         (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
4563         forks and vforks.
4564         (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
4565         initial lwp.
4566         (linux_nat_kill, linux_nat_mourn_inferior): Call
4567         linux_nat_forget_process.
4568         (linux_nat_set_new_fork, linux_nat_set_forget_process)
4569         (linux_nat_forget_process): New functions.
4570         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
4571         type.
4572         (linux_nat_iterate_watchpoint_lwps): Delete declaration.
4573         (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
4574         types.
4575         (linux_nat_set_new_fork, linux_nat_set_forget_process)
4576         (linux_nat_forget_process): New declarations.
4577
4578         * amd64fbsd-nat.c (super_mourn_inferior): New global.
4579         (amd64fbsd_mourn_inferior): New function.
4580         (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
4581         * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
4582
4583 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4584
4585         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
4586         Adding _().
4587
4588 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4589
4590         * aarch64-linux-nat.c (debug_reg_change_callback)
4591         (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
4592         %s and phex().
4593
4594 2013-02-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4595
4596         * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
4597         with LONGEST.
4598
4599 2013-02-13  Pedro Alves  <palves@redhat.com>
4600             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4601
4602         * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
4603
4604 2013-02-12  Tom Tromey  <tromey@redhat.com>
4605
4606         PR symtab/11464:
4607         * c-exp.y (lex_one_token): Initialize other fields of yylval on
4608         NAME return.
4609         (classify_inner_name): Remove 'first_name' argument, add
4610         'context'.  Remove unused variable.
4611         (yylex): Explicitly maintain the context type.  Exit loop earlier
4612         if NAME result is seen.
4613
4614 2013-02-12  Pedro Alves  <palves@redhat.com>
4615
4616         * amd64-darwin-tdep.c: Add (C) after Copyright.
4617         * cli/cli-cmds.h: Ditto.
4618         * cli/cli-decode.c: Ditto.
4619         * cli/cli-decode.h: Ditto.
4620         * cli/cli-dump.c: Ditto.
4621         * cli/cli-dump.h: Ditto.
4622         * cli/cli-interp.c: Ditto.
4623         * cli/cli-logging.c: Ditto.
4624         * cli/cli-script.c: Ditto.
4625         * cli/cli-script.h: Ditto.
4626         * cli/cli-setshow.c: Ditto.
4627         * cli/cli-setshow.h: Ditto.
4628         * cli/cli-utils.c: Ditto.
4629         * cli/cli-utils.h: Ditto.
4630         * config/alpha/nm-osf3.h: Ditto.
4631         * config/djgpp/djconfig.sh: Ditto.
4632         * config/i386/nm-fbsd.h: Ditto.
4633         * config/i386/nm-i386gnu.h: Ditto.
4634         * config/nm-linux.h: Ditto.
4635         * config/nm-nto.h: Ditto.
4636         * config/rs6000/nm-rs6000.h: Ditto.
4637         * config/sparc/nm-sol2.h: Ditto.
4638         * darwin-nat-info.c: Ditto.
4639         * dfp.c: Ditto.
4640         * dfp.h: Ditto.
4641         * gdb-demangle.h: Ditto.
4642         * i386-darwin-nat.c: Ditto.
4643         * i386-darwin-tdep.c: Ditto.
4644         * linux-fork.h: Ditto.
4645         * m32c-tdep.c: Ditto.
4646         * microblaze-linux-tdep.c: Ditto.
4647         * microblaze-rom.c: Ditto.
4648         * microblaze-tdep.c: Ditto.
4649         * microblaze-tdep.h: Ditto.
4650         * mips-linux-tdep.h: Ditto.
4651         * ppc-ravenscar-thread.c: Ditto.
4652         * ppc-ravenscar-thread.h: Ditto.
4653         * prologue-value.c: Ditto.
4654         * prologue-value.h: Ditto.
4655         * ravenscar-thread.c: Ditto.
4656         * ravenscar-thread.h: Ditto.
4657         * sparc-ravenscar-thread.c: Ditto.
4658         * sparc-ravenscar-thread.h: Ditto.
4659         * tilegx-linux-tdep.c: Ditto.
4660         * unwind_stop_reasons.def: Ditto.
4661         * windows-nat.h: Ditto.
4662         * xtensa-linux-tdep.c: Ditto.
4663         * xtensa-xtregs.c: Ditto.
4664         * regformats/regdat.sh: Ditto.
4665         * regformats/regdef.h: Ditto.
4666
4667 2013-02-12  Pedro Alves  <palves@redhat.com>
4668
4669         * break-catch-sig.c: Update copyright years.
4670
4671 2013-02-11  Siva Chandra Reddy  <sivachandra@google.com>
4672
4673         Add support for a destructor for ui_out data and use it to
4674         provide a ui_out destructor.
4675         * ui-out.h: Declare the new ui_out destructor.
4676         (ui_out_impl): Add a field for data destructor in ui_out_impl.
4677         * ui-out.c (default_data_destroy): Add a default data destructor
4678         which does nothing.
4679         (default_ui_out_impl): Set the new data_destroy field to
4680         default_data_destroy
4681         (uo_data_destroy): Local function which invokes the data
4682         destructor if present.
4683         (clear_table): Local function which clears the table data of a
4684         ui_out object.
4685         (ui_out_destroy): Public function which frees a ui_out object.
4686         (ui_out_table_end): Use the new clear_table function.
4687         * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
4688         NULL.
4689         * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
4690         to NULL.
4691
4692 2013-02-11  Doug Evans  <dje@google.com>
4693
4694         * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
4695         (printf_decfloat): New function.  Broken out from ui_printf.
4696         Remove unnecessary code to shift the entire format string down.
4697         (printf_pointer): New function.
4698         (ui_printf): Code to print C strings, wide C strings, decfloats,
4699         and pointers moved to separate functions.
4700
4701 2013-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
4702
4703         * valops.c (value_assign): Handling bitfield offset in
4704         `lval_internalvar_component' case.
4705
4706 2013-02-08  Doug Evans  <dje@google.com>
4707
4708         * common/format.c (parse_format_string): Fix whitespace.
4709
4710 2013-02-08  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
4711
4712         * stack.c (return_command): Work around uninitialized variable
4713         warning.
4714
4715 2013-02-08  Yufeng Zhang  <yufeng.zhang@arm.com>
4716
4717         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
4718         number of the registers from 36 to 34.
4719
4720 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4721
4722         * NEWS: Mention new AArch64 native and target support.
4723
4724 2013-02-08  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4725
4726         * MAINTAINERS (Write After Approval): Add myself.
4727
4728 2013-02-08  Jim MacArthur  <jim.macarthur@arm.com>
4729             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4730             Nigel Stephens  <nigel.stephens@arm.com>
4731             Yufeng Zhang  <yufeng.zhang@arm.com>
4732
4733         * aarch64-linux-nat.c: New file.
4734         * config/aarch64/linux.mh: New file.
4735         * configure.host: Add AArch64.
4736         * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
4737
4738 2013-02-07  Doug Evans  <dje@google.com>
4739
4740         * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
4741         disassemble command.
4742
4743 2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4744
4745         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
4746         set_gdbarch_fetch_tls_load_module_address.
4747
4748 2013-02-06  David S. Miller  <davem@davemloft.net>
4749
4750         * sparc-tdep.c (sparc32_return_value): Handle writing return value when
4751         using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4752         * value.c (struct_return_convention): New function.
4753         (using_struct_return): Implement in terms of struct_return_convention.
4754         * value.h (struct_return_convention): Declare.
4755         * stack.c (return_command): Allow successful overriding of the return
4756         value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4757
4758 2013-02-06  Tom Tromey  <tromey@redhat.com>
4759
4760         * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
4761         outside of TRY_CATCH.
4762
4763 2013-02-06  Yao Qi  <yao@codesourcery.com>
4764
4765         * mi/mi-interp.c: Include "tracepoint.h".
4766         (mi_tsv_modified): Declare.
4767         (mi_tsv_created, mi_tsv_deleted): Update declaration.
4768         (mi_interpreter_init): Call observer_attach_tsv_modified.
4769         (mi_tsv_modified): New.
4770         (mi_tsv_created, mi_tsv_deleted): Update.
4771         * tracepoint.c (trace_variable_command): Call
4772         observer_notify_tsv_modified if the initial value of tsv is
4773         changed.
4774         (delete_trace_state_variable): Call
4775         observer_notify_tsv_deleted earlier.
4776         (trace_variable_command): Caller update.
4777         (create_tsv_from_upload): Likewise.
4778         * observer.sh: Declare "struct trace_state_variable".
4779
4780         * NEWS: Mention the new MI notification "=tsv-modified".
4781
4782 2013-02-05  Doug Evans  <dje@google.com>
4783
4784         * completer.c (location_completer): Fix typo in comment.
4785
4786 2013-02-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4787
4788         * breakpoint.c (add_location_to_breakpoint): Insert the location with
4789         ADDRESS sorted.
4790
4791 2013-02-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4792
4793         * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
4794         Refactor if statement to avoid trailing || operator.
4795
4796 2013-02-05  Andreas Tobler  <andreast@fgznet.ch>
4797
4798         * NEWS: Add PowerPC FreeBSD as a new native configuration.
4799
4800 2013-02-04  Andreas Tobler  <andreast@fgznet.ch>
4801
4802         * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
4803         * configure.host: Add powerpc*-*-freebsd* target.
4804         * configure.tgt: Add target info for powerpc*-*-freebsd*.
4805         * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
4806         * config/powerpc/fbsd.mh: New file.
4807
4808 2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4809             Denys Vlasenko  <dvlasenk@redhat.com>
4810             Pedro Alves  <palves@redhat.com>
4811
4812         * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
4813         (struct elf_internal_linux_prpsinfo): Forward declare.
4814         * gdbarch.h, gdbarch.c: Regenerate.
4815         * linux-tdep.c: Include `cli/cli-utils.h'.
4816         (linux_fill_prpsinfo): New function.
4817         (linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
4818         an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
4819         elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
4820         depending on gdbarch pointer bitness.
4821         * ppc-linux-tdep.c: Include elf-bfd.h.
4822         (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
4823         on 32-bit.
4824
4825 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4826             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4827             Nigel Stephens  <nigel.stephens@arm.com>
4828             Yufeng Zhang  <yufeng.zhang@arm.com>
4829
4830         * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
4831
4832 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4833             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4834             Nigel Stephens  <nigel.stephens@arm.com>
4835             Yufeng Zhang  <yufeng.zhang@arm.com>
4836
4837         * aarch64-newlib-tdep.c: New file.
4838         * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
4839         aarch64*-*-elf.
4840         * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
4841         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
4842         (ALLDEPFILES): Add aarch64-newlib-tdep.c.
4843         * osabi.c (gdb_osabi_names): Add "Newlib".
4844
4845 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4846             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4847             Nigel Stephens  <nigel.stephens@arm.com>
4848             Yufeng Zhang  <yufeng.zhang@arm.com>
4849
4850         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
4851         (ALLDEPFILES): Add aarch64-linux-tdep.c.
4852         * aarch64-linux-tdep.c: New file.
4853         * aarch64-linux-tdep.h: New file.
4854         * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
4855         * configure.tgt: Add aarch64-none-linux-gnu.
4856
4857 2013-02-04  Jim MacArthur  <jim.macarthur@arm.com>
4858             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4859             Nigel Stephens  <nigel.stephens@arm.com>
4860             Yufeng Zhang  <yufeng.zhang@arm.com>
4861
4862         * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
4863         (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
4864         (ALLDEPFILES): Add aarch64-tdep.c.
4865         * aarch64-tdep.c: New file.
4866         * aarch64-tdep.h: New file.
4867         * configure.tgt: Add AArch64.
4868         * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
4869         (aarch64-expedite): New definition.
4870         * features/aarch64-core.xml: New file.
4871         * features/aarch64-fpu.xml: New file.
4872         * features/aarch64-without-fpu.c: New file (generated).
4873         * features/aarch64-without-fpu.xml: New file.
4874         * features/aarch64.c: New file (generated).
4875         * features/aarch64.xml: New file.
4876         * regformats/aarch64-without-fpu.dat: New file (generated).
4877         * regformats/aarch64.dat: New file (generated).
4878
4879 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4880
4881         * contrib/expect-read1.c: New file.
4882         * contrib/expect-read1.sh: New file.
4883
4884 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4885
4886         * dwarf2read.c (file_file_name): New function with code from
4887         file_full_name.
4888         (file_full_name): Move most of the code to file_file_name.
4889         (macro_start_file): Rename variable full_name to file_name and use
4890         file_file_name for it.  Add comp_dir parameter to new_macro_table.
4891         * macrocmd.c (show_pp_source_pos): New variable fullname.  Replace any
4892         macro_source_file->filename access by macro_source_fullname call.
4893         * macroscope.c (_initialize_macroscope): Update the new_macro_table
4894         caller.
4895         * macrotab.c (struct macro_table): New field comp_dir.
4896         (macro_include): New variables link_fullname and source_fullname.
4897         Replace any macro_source_file->filename access by macro_source_fullname
4898         call.
4899         (macro_lookup_inclusion): Remove the partial filenames checking code.
4900         (check_for_redefinition): New variables source_fullname and
4901         found_key_fullname.  Replace any macro_source_file->filename access by
4902         macro_source_fullname call.
4903         (macro_undef): New variables source_fullname and key_fullname.  Replace
4904         any macro_source_file->filename access by macro_source_fullname call.
4905         (macro_lookup_definition): New variables retval and source_fullname.
4906         Replace any macro_source_file->filename access by macro_source_fullname
4907         call.
4908         (foreach_macro): New variable key_fullname.  Replace any
4909         macro_source_file->filename access by macro_source_fullname call.
4910         (foreach_macro_in_scope): New variable datum_fullname.  Replace any
4911         macro_source_file->filename access by macro_source_fullname call.
4912         (new_macro_table): Add parameter comp_dir.  Initialize T with it.
4913         (macro_source_fullname): New function.
4914         * macrotab.h (struct macro_source_file): Extent the filename field
4915         comment.
4916         (new_macro_table): New parameter comp_dir, add a comment for it.
4917         (macro_source_fullname): new declaration.
4918
4919 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4920
4921         * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
4922         this_real_name to outer block.  Use it also for
4923         compare_filenames_for_search.
4924         (dw2_expand_symtabs_matching): New variable this_real_name.  Use it
4925         with dw2_get_real_path for file_matcher, considering also
4926         BASENAMES_MAY_DIFFER.
4927         (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
4928
4929 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4930
4931         * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
4932         to the file_matcher parameter.  Pass 0 to it.
4933         (dwarf2_create_include_psymtab): Copy also DIRNAME.
4934         * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
4935         NULL psymtab_to_fullname result.
4936         (psymtab_to_fullname): Remove variable r.  Never return NULL, assemble
4937         an expected filename instead.
4938         (expand_symtabs_matching_via_partial): Add basenames parameter to the
4939         file_matcher parameter.  Call also psymtab_to_fullname, after newly
4940         considering BASENAMES_MAY_DIFFER.
4941         * source.c (rewrite_source_path): Remove static.
4942         * source.h (rewrite_source_path): New declaration.
4943         * symfile.h (struct quick_symbol_functions): Add basenames parameter to
4944         the expand_symtabs_matching field.  Comment it.
4945         * symtab.c (file_matches): New function comment.  Add parameter
4946         basenames, implement it.
4947         (search_symbols_file_matches): Add basenames parameter.  Update the
4948         file_matches caller.
4949         (search_symbols): Match FILES also against symtab_to_fullname.
4950         Optimize it for BASENAMES_MAY_DIFFER.
4951
4952 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4953
4954         * source.c (print_source_lines_base): Print for TUI also "fullname".
4955         * tui/tui-data.c (init_content_element): Change tui_locator_element
4956         field to full_name.
4957         * tui/tui-data.h (struct tui_locator_element): Likewise.
4958         * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
4959         tui_update_locator_filename calls to tui_update_locator_fullname.
4960         Replace symtab->filename refererence by symtab_to_fullname call.
4961         * tui/tui-out.c (tui_field_string): Check for "fullname" now.
4962         * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
4963         field to full_name.  Replace symtab->filename refererence by
4964         symtab_to_fullname call.
4965         (tui_show_symtab_source): Rename parameter to fullname.  Change
4966         tui_locator_element field to full_name.
4967         * tui/tui-stack.c: Include source.h.
4968         (tui_set_locator_filename): Rename the declaration to ...
4969         (tui_set_locator_fullname): ... here.  Rename its parameter to
4970         fullname, updates its comment.
4971         (tui_set_locator_info): Rename its parameter to fullname.
4972         (tui_set_locator_filename): Rename the definition to ...
4973         (tui_set_locator_fullname): ... here.  Rename its parameter to
4974         fullname, updates its comment.  Change tui_locator_element field to
4975         full_name.
4976         (tui_set_locator_info): Rename its parameter to fullname.
4977         (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
4978         (tui_update_locator_filename): Rename to ...
4979         (tui_update_locator_fullname): ... here. Rename callee to
4980         tui_set_locator_fullname.
4981         (tui_show_frame_info): Replace symtab->filename refererence by
4982         symtab_to_fullname call.
4983         * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
4984         (tui_update_locator_fullname): ... here.
4985         * tui/tui-winsource.c (tui_display_main): Rename the callee to
4986         tui_update_locator_fullname.  Replace symtab->filename refererence by
4987         symtab_to_fullname call.
4988         * tui/tui.c (tui_show_source): Rename its parameter to fullname.
4989         Rename the callee to tui_update_locator_fullname.
4990         * tui/tui.h (tui_show_source): Rename its parameter to fullname.
4991
4992 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4993
4994         * ada-lang.c (user_select_syms): Replace symtab->filename refererences
4995         by symtab_to_filename_for_display calls.
4996         * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
4997         (clear_command): New variable sal_fullname, initialize it.  Replace
4998         compare_filenames_for_search by filename_cmp with sal_fullname.
4999         (say_where, update_static_tracepoint): Replace symtab->filename
5000         refererences by symtab_to_filename_for_display calls.
5001         * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
5002         Likewise.
5003         * dwarf2read.c: Include source.h.
5004         (fixup_go_packaging): Replace symtab->filename refererences by
5005         symtab_to_filename_for_display calls.
5006         * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
5007         Replace symtab->filename refererences by symtab_to_filename_for_display
5008         calls.
5009         (create_sals_line_offset, convert_linespec_to_sals): New variable
5010         fullname, initialize it, replace symtab->filename reference by the
5011         variable.
5012         * linux-fork.c: Include source.h.
5013         (info_checkpoints_command): Replace symtab->filename refererences by
5014         symtab_to_filename_for_display calls.
5015         * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
5016         by symtab_to_filename_for_display calls.
5017         * mdebugread.c: Include source.h.
5018         (psymtab_to_symtab_1): Replace symtab->filename refererences by
5019         symtab_to_filename_for_display calls.
5020         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
5021         (mi_cmd_file_list_exec_source_files): Likewise.
5022         * printcmd.c: Include source.h.
5023         (build_address_symbolic): Replace symtab->filename refererences by
5024         symtab_to_filename_for_display calls.
5025         * psymtab.c (partial_map_symtabs_matching_filename)
5026         (read_psymtabs_with_fullname): Call compare_filenames_for_search also
5027         with psymtab_to_fullname.
5028         * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
5029         by symtab_to_filename_for_display calls.
5030         (stpy_get_filename): New variable filename, initialize it, use instead
5031         of symtab->filename refererences.
5032         (salpy_str): Make variable filename const char *.  Replace
5033         symtab->filename refererences by symtab_to_filename_for_display calls.
5034         * skip.c: Include source.h and filenames.h.
5035         (skip_file_command): Remove const from the symtab variable.  Replace
5036         symtab->filename refererences by symtab_to_fullname call.
5037         (function_name_is_marked_for_skip): New variables searched_for_fullname
5038         and fullname.  Use them to search also with symtab's fullname.
5039         * source.c (find_source_lines): Replace symtab->filename refererences
5040         by symtab_to_filename_for_display calls.
5041         (print_source_lines_base): New variable filename, use it instead of
5042         symtab->filename.  Replace symtab->filename refererences by
5043         symtab_to_filename_for_display calls.
5044         (line_info, forward_search_command): Replace symtab->filename
5045         refererences by symtab_to_filename_for_display calls.
5046         (reverse_search_command): Replace symtab->filename refererences by
5047         symtab_to_filename_for_display calls.  New variable filename for it.
5048         * stack.c (frame_info): Likewise.
5049         * symmisc.c: Include source.h.
5050         (dump_objfile, dump_symtab_1, maintenance_print_symbols)
5051         (maintenance_info_symtabs): Replace symtab->filename refererences by
5052         symtab_to_filename_for_display calls.
5053         * symtab.c (iterate_over_some_symtabs): Call
5054         compare_filenames_for_search also with symtab_to_fullname.
5055         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
5056         symtab->filename refererences by symtab_to_filename_for_display calls.
5057         (find_line_symtab): Replace symtab->filename refererences by
5058         symtab_to_filename_for_display calls.
5059         (file_matches): Replace filename_cmp by compare_filenames_for_search.
5060         (print_symbol_info): Make the last parameter const char *.  New
5061         variable s_filename.  Use it in the function.
5062         (symtab_symbol_info): Make the last_filename variable const char *.
5063         Replace symtab->filename refererences by symtab_to_filename_for_display
5064         calls.
5065         (rbreak_command): New variable fullname.  Use it.  Replace
5066         symtab->filename refererence by symtab_to_filename_for_display call.
5067         * tracepoint.c (set_traceframe_context, trace_find_line_command)
5068         (print_one_static_tracepoint_marker): Replace symtab->filename
5069         refererences by symtab_to_filename_for_display calls.
5070         * tui/tui-source.c (tui_set_source_content): New variables filename and
5071         s_filename.  Replace symtab->filename refererences by this variable.
5072         Replace other symtab->filename refererences by
5073         symtab_to_filename_for_display calls.
5074
5075 2013-02-03  Eldar Gaynetdinov <hal9000ed2k@gmail.com>
5076             Jan Kratochvil  <jan.kratochvil@redhat.com>
5077
5078         Add a new variable that controls a way in which filenames are
5079         displayed.
5080         * NEWS (set filename-display): New entry.
5081         * source.c (filename_display_basename, filename_display_relative)
5082         (filename_display_absolute, filename_display_kind_names)
5083         (filename_display_string, show_filename_display_string)
5084         (symtab_to_filename_for_display): New.
5085         (_initialize_source): Added initialization of 'filename-display'
5086         variable.
5087         * source.h (symtab_to_filename_for_display): Added declaration.
5088         * stack.c (print_frame): Added new variable and calling of a new
5089         function and condition with this variable. Changed third argument of
5090         calling of a function.
5091
5092 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5093
5094         * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
5095         Rename field reference filename to fullname.
5096         * tui/tui-data.h (struct tui_source_info): Rename field filename to
5097         fullname.  New comment for it.
5098         * tui/tui-source.c (tui_set_source_content): Rename field reference
5099         filename to fullname.  Initialize field by symtab_to_fullname now.
5100         * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
5101         reference filename to fullname.  Use symtab_to_fullname during
5102         comparison.
5103
5104 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5105
5106         Code cleanup.
5107         * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
5108         (dw2_expand_symtabs_with_fullname): ... here.  Rename parameter
5109         filename to fullname.  Rename variable this_name to this_fullname.
5110         Lowercase FILENAME_CMP call.
5111         (dw2_find_symbol_file): New comment for the returned string.
5112         (dwarf2_gdb_index_functions): Rename the function to
5113         dw2_expand_symtabs_with_fullname.
5114         * psymtab.c (read_psymtabs_with_filename): Rename to ...
5115         (read_psymtabs_with_fullname): ... here.  Rename parameter filename to
5116         fullname.
5117         (psym_functions): Rename the function to read_psymtabs_with_fullname.
5118         * symfile.h (struct quick_symbol_functions): Rename field
5119         expand_symtabs_with_filename to expand_symtabs_with_fullname and its
5120         parameter filename to fullname.  Document returned string meaning for
5121         find_symbol_file.
5122         * symtab.c (find_line_symtab): Rename the called function to
5123         expand_symtabs_with_fullname.
5124
5125 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5126
5127         Code cleanup.
5128         * breakpoint.c (clear_command): Remove variable is_abs, unify the
5129         call of filename_cmp with compare_filenames_for_search.
5130         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
5131         is_abs, unify the call of FILENAME_CMP with
5132         compare_filenames_for_search.  New gdb_asserts for real_path and name.
5133         Unify the call of compare_filenames_for_search with FILENAME_CMP.
5134         * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5135         * symfile.h (struct quick_symbol_functions): Extend the comment for
5136         map_symtabs_matching_filename.
5137         * symtab.c (compare_filenames_for_search): Remove the function comment
5138         relative path requirement.  Handle absolute filenames, with a comment.
5139         (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
5140         FILENAME_CMP with compare_filenames_for_search.  New gdb_asserts for
5141         real_path and name.  Unify the call of compare_filenames_for_search
5142         with FILENAME_CMP.
5143         (iterate_over_symtabs): New gdb_assert on REAL_PATH.
5144
5145 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5146
5147         Code cleanup.
5148         * breakpoint.c (print_breakpoint_location): Replace bp_location field
5149         source_file references by symtab field references.  Remove variables
5150         sal and fullname.
5151         (momentary_breakpoint_from_master, add_location_to_breakpoint):
5152         (clear_command, say_where): Replace bp_location field source_file
5153         references by symtab field references.
5154         (bp_location_dtor): Remove the source_file reference.
5155         (update_static_tracepoint): Replace bp_location field source_file
5156         references by symtab field references.
5157         (breakpoint_free_objfile): New function.
5158         * breakpoint.h (struct bp_location): Extend the comment for line_number.
5159         Replace the field source_file by field symtab, extend its comment.
5160         (breakpoint_free_objfile): New declaration.
5161         * objfiles.c (free_objfile): Call breakpoint_free_objfile.
5162         * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
5163         field source_file references by symtab field references.
5164
5165 2013-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5166
5167         Replace xfullpath calls by gdb_realpath calls.
5168         * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
5169         function comment.
5170         * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
5171         Remove it from the iterate_over_some_symtabs call.
5172         (dw2_map_symtabs_matching_filename): Remove parameter full_path.
5173         Remove it from the dw2_map_expand_apply calls, remove a block handling
5174         it.
5175         * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
5176         Remove it from the iterate_over_some_symtabs call.
5177         (partial_map_symtabs_matching_filename): Remove parameter full_path.
5178         Remove it from the partial_map_expand_apply calls, remove a block
5179         handling it.  Drop gdb_realpath call and cleanups from the real_path
5180         handling.
5181         * source.c (openp): Drop the comment part about xfullpath.  Replace
5182         xfullpath calls by gdb_realpath calls.
5183         (find_and_open_source): Replace xfullpath call by gdb_realpath call.
5184         * symfile.h (struct quick_symbol_functions): Remove parameter full_path
5185         from method map_symtabs_matching_filename and its comment.
5186         * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
5187         gdb_realpath call.
5188         * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
5189         remove it also from the function comment, remove a block handling it.
5190         Drop gdb_realpath call and cleanups from the real_path handling.
5191         (iterate_over_symtabs): Drop variable full_path and its use.
5192         * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
5193         * utils.c (xfullpath): Remove.
5194         * utils.h (xfullpath): Remove.
5195
5196 2013-02-01  Andreas Tobler  <andreast@fgznet.ch>
5197
5198         * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
5199         (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
5200         (ALLDEPFILES): Add ppc64-tdep.c.
5201         * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
5202         ppc64-tdep.o to gdb_target_obs.
5203         * ppc64-tdep.h: New file.
5204         * ppc64-tdep.c: New file.
5205         (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
5206         ppc-linux-tdep.c to here.
5207         (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
5208         (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
5209         (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
5210         (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
5211         from ppc-linux-tdep.c to here.
5212         (ppc64_convert_from_func_ptr_addr): Rename from
5213         ppc64_linux_convert_from_func_ptr_addr to
5214         ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
5215         here.
5216         * rs6000-tdep.c:
5217         (read_insn): Move from ppc-linux-tdep.c to here.
5218         (insns_match_pattern, insn_d_field, insn_ds_field): Move
5219         from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
5220         * ppc-linux-tdep.c: Include ppc64-tdep.h.
5221         Removed above functions.
5222         (ppc_linux_init_abi): Adjust.
5223
5224 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
5225
5226         * ada-valprint.c (ada_print_floating): Remove unused 'len'.
5227
5228 2013-02-01  Aleksandar Ristovski  <aristovski@qnx.com>
5229
5230         * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
5231
5232 2013-02-01  Pedro Alves  <palves@redhat.com>
5233
5234         * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
5235         * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
5236
5237 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5238
5239         * elfread.c (elf_symfile_read): Limit separate debug info additions to
5240         files with no separate debug info.
5241         * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
5242         * symfile.c (read_symbols): Call find_separate_debug_file_in_section
5243         only for files with no separate debug info.
5244
5245 2013-01-31  Tom Tromey  <tromey@redhat.com>
5246
5247         * jit.c (jit_program_space_data): Rename from jit_inferior_data;
5248         change type.
5249         (struct jit_program_space_data): Rename from jit_inferior_data.
5250         Update comments.
5251         (get_jit_program_space_data): Rename from get_jit_inferior_data.
5252         Change return type.  Attach data to program space.
5253         (jit_program_space_data_cleanup): Rename from
5254         jit_inferior_data_cleanup; change argument type.
5255         (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
5256         change type.
5257         (jit_register_code): Update.
5258         (jit_update_inferior_cache): Remove.
5259         (jit_breakpoint_deleted): Get jit data from the location's program
5260         space.
5261         (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
5262         'ps_data', change type.
5263         (jit_inferior_init, jit_breakpoint_re_set_internal)
5264         (jit_event_handler): Update.
5265         (free_objfile_data): Get data from objfile's program space.
5266         (_initialize_jit): Update.
5267
5268 2013-01-31  Tom Tromey  <tromey@redhat.com>
5269
5270         PR gdb/13987:
5271         * jit.c (struct jit_inferior_data) <cached_code_address,
5272         jit_breakpoint>: New fields.
5273         (jit_breakpoint_re_set_internal): Fix logging.  Only create
5274         breakpoint if cached address has changed.
5275         (jit_update_inferior_cache, jit_breakpoint_deleted): New
5276         functions.
5277         (_initialize_jit): Register breakpoint deleted observer.
5278
5279 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5280
5281         * infrun.c (handle_syscall_event): Remove unused gdbarch.
5282         (save_infcall_suspend_state): Ifdef out unused inf.
5283         (restore_infcall_suspend_state): Ifdef out unused inf.
5284         * jit.c (jit_register_code): Remove unused i, b, inf_data.
5285         (jit_frame_sniffer): Remove unused inf_data.
5286
5287 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5288
5289         * c-exp.y (classify_inner_name): Remove unused type.
5290         * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
5291         in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
5292         need_escape.
5293         (c_get_string): Remove unused kind.
5294         * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
5295
5296 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5297
5298         * charset.c (intermediate_encoding): Remove unused i.
5299         * completer.c (signal_completer): Remove unused i.
5300         * continuations.c (discard_my_continuations_1): Remove unused
5301         continuation_ptr.
5302         * corelow.c (core_close): Remove unuseD name.
5303         (get_core_siginfo): Remove unused pid.
5304         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
5305         i, cps.
5306         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
5307         (loclist_describe_location): Remove unused first.
5308         * event-top.c (command_line_handler): Remove unused got_eof.
5309         * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
5310         (resize_section_table): Remove unused old_value.
5311         * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
5312         * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
5313         * i386-tdep.c (i386_process_record): Remove unused rex.
5314         * infcmd.c (get_return_value): Remove unused uiout.
5315         * jv-lang.c (type_from_class): Remove unused is_array.
5316         * jv-valprint.c (java_val_print): Remove unused i.
5317         * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
5318         * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
5319         * m2-typeprint.c (m2_print_type): Remove unused code.
5320         * macroexp.c (get_character_constant): Remove unused body_start.
5321         (macro_stringify): Remove unused result.
5322         * objc-lang.c (find_methods): Remove unused gdbarch.
5323         * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
5324         * regcache.c (regcache_cooked_read): Remove unused gdbarch.
5325         * stack.c (print_frame_args): Remove unused summary.
5326         * thread.c (thread_apply_command): Remove unused p.
5327         * valarith.c (value_x_unop): Remove unused mangle_ptr.
5328         * valops.c (search_struct_method): Remove unused skip.
5329         * valprint.c (generic_val_print): Remove unused byte_order.
5330         * varobj.c (varobj_update): Remove unused changed.
5331         * cli/cli-cmds.c (complete_command): Remove unused next_item.
5332         (alias_command): Remove unused c.
5333         * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
5334         * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
5335         format.
5336         (mi_cmd_data_write_memory): Remove unused word_format.
5337         (mi_cmd_data_write_memory_bytes): Remove unused r.
5338         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
5339         p_start, p_end.
5340         * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
5341         * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
5342         line_width.
5343
5344 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5345
5346         * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
5347         * symtab.c (iterate_over_symtabs): Remove unused s.
5348         (find_pc_sect_symtab): Remove unused pspAce.
5349         (find_pc_sect_line): Remove unused alt_symtab.
5350         (find_pcs_for_symtab_line): Remove unused ix, previous_function.
5351         (completion_list_add_name): Remove unused newsize.
5352
5353 2013-01-31  Tom Tromey  <tromey@redhat.com>
5354
5355         PR c++/14998:
5356         * dwarf2read.c (read_tag_ptr_to_member_type): Handle
5357         TYPE_CODE_FUNC.
5358
5359 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5360
5361         * target.c (target_read_string): Remove unused origlen.
5362
5363 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5364
5365         * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
5366         * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
5367         * ax-general.c (ax_print): Remove unused is_float.
5368         * blockframe.c (block_innermost_frame): Remove unused start, end.
5369         * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
5370
5371 2013-01-31  Aleksandar Ristovski  <aristovski@qnx.com>
5372
5373         * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
5374         (svr4_read_so_list): Remove unused lmo.
5375         * solib-target.c (solib_target_relocate_section_addresses): Remove
5376         unused flags.
5377
5378 2013-01-30  Tom Tromey  <tromey@redhat.com>
5379
5380         * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
5381
5382 2013-01-30  Tom Tromey  <tromey@redhat.com>
5383
5384         * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
5385         * utils.c (gnu_debuglink_crc32): Remove.
5386         * utils.h (gnu_debuglink_crc32): Don't declare.
5387
5388 2013-01-30  Tom Tromey  <tromey@redhat.com>
5389
5390         * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
5391         (read_structure_type, read_enumeration_type): Remove cast.
5392
5393 2013-01-30  Tom Tromey  <tromey@redhat.com>
5394
5395         * dwarf2read.c (read_namespace_type): Remove cast.
5396         (read_typedef): Likewise.
5397
5398 2013-01-29  Tom Tromey  <tromey@redhat.com>
5399
5400         * dwarf2read.c (free_dwo_file): Remove assert.
5401
5402 2013-01-29  Tom Tromey  <tromey@redhat.com>
5403
5404         * value.c (deprecated_set_value_modifiable): Remove.
5405         * value.h (deprecated_set_value_modifiable): Remove.
5406
5407 2013-01-28  Doug Evans  <dje@google.com>
5408
5409         * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
5410         to addresses from dwo files.
5411
5412 2013-01-25  Siva Chandra Reddy  <sivachandra@google.com>
5413
5414         * valops.c (find_overload_match): Remove unused argument 'lax'.
5415         * value.h: Remove unused argument 'lax' from the declaration of
5416         find_overload_match.
5417         * eval.c (value_subexp_standard): Do not pass a 'lax' argument
5418         to find_overload_match.
5419         * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
5420         argument to find_overload_match.
5421
5422 2013-01-25  Tom Tromey  <tromey@redhat.com>
5423
5424         * dwarf2read.c (processing_has_namespace_info): Remove.
5425         (struct dwarf2_cu) <processing_has_namespace_info>: New field.
5426         (process_die, read_func_scope, dwarf2_start_symtab)
5427         (new_symbol_full): Update.
5428
5429 2013-01-25  Tom Tromey  <tromey@redhat.com>
5430
5431         * cp-namespace.c (cp_set_block_scope): Remove.
5432         * cp-support.h (cp_set_block_scope): Remove.
5433         * dbxread.c: Include block.h.
5434         (cp_set_block_scope): New function.
5435         (process_one_symbol): Update.
5436         * dwarf2read.c (read_func_scope): Use block_set_scope.
5437
5438 2013-01-25  Pedro Alves  <palves@redhat.com>
5439
5440         * remote.c (add_current_inferior_and_thread): Tweak comment.
5441
5442 2013-01-25  Tom Tromey  <tromey@redhat.com>
5443
5444         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5445         (cp_add_using_directive): Add 'copy_names' argument.
5446         * cp-support.h (cp_add_using_directive): Update.
5447         (struct using_direct) <import_src, import_dest, alias,
5448         declaration>: Now const.
5449         * dwarf2read.c (read_import_statement): Use obconcat.
5450         Don't copy names passed to cp_add_using_directive.
5451
5452 2013-01-25  Tom Tromey  <tromey@redhat.com>
5453
5454         * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
5455
5456 2013-01-25  Pedro Alves  <palves@redhat.com>
5457
5458         * remote.c (stop_reply_extract_thread): New.
5459         (add_current_inferior_and_thread): New parameter 'wait_status'.
5460         Handle it.
5461         (remote_start_remote): Pass wait status to
5462         add_current_inferior_and_thread.
5463         (extended_remote_run): Update comment.
5464         (extended_remote_create_inferior_1): Pass wait status to
5465         add_current_inferior_and_thread.
5466
5467 2013-01-25  Andrew Burgess  <aburgess@broadcom.com>
5468             Ulrich Weigand  <uweigand@de.ibm.com>
5469
5470         * valarith.c (value_vector_widen): New function for replicating a
5471         scalar into a vector.
5472         (value_binop): Use value_vector_widen to widen scalar to vector
5473         rather than casting, this better matches gcc C behaviour.
5474         * valops.c (value_casst): Update logic for casting between vector
5475         types, and for casting from scalar to vector, try to match gcc C
5476         behaviour.
5477         * value.h (value_vector_widen): Declare.
5478         * opencl-lang.c (opencl_value_cast): New opencl specific casting
5479         function, handle special case for casting scalar to vector.
5480         (opencl_relop): Use opencl_value_cast.
5481         (evaluate_subexp_opencl): Use opencl_value_cast instead of
5482         value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
5483         in order to use opencl_value_cast.
5484
5485 2013-01-25  Yao Qi  <yao@codesourcery.com>
5486
5487         * event-loop.c: Include "queue.h".
5488         (gdb_event_p): New typedef.
5489         (DECLARE_QUEUE_P): Use.
5490         (DEFINE_QUEUE_P): Use.
5491         (async_queue_event): Remove.
5492         (gdb_event_xfree): New.
5493         (initialize_event_loop): New.
5494         (process_event): Use QUEUE macros.
5495         (event_queue): Remove.
5496         (gdb_wait_for_event): Caller update.
5497         (check_async_event_handlers): Likewise.
5498         (poll_timers): Likewise.
5499         * event-loop.h (initialize_event_loop): Declare.
5500         * event-loop.c (gdb_event_xfree): New.
5501         * top.c (gdb_init): Call initialize_event_loop.
5502
5503 2013-01-25  Yao Qi  <yao@codesourcery.com>
5504
5505         * event-loop.c (async_queue_event): Remove one parameter
5506         'position'.  Remove code handling 'position' == TAIL.
5507         (gdb_wait_for_event): Caller update.
5508         (check_async_event_handlers): Caller update.
5509         (poll_timers): Caller update.
5510         * event-loop.h (enum queue_position): Remove.
5511
5512 2013-01-25  Maxim Kuvyrkov  <maxim@kugelworks.com>
5513
5514         * MAINTAINERS: Update my email.
5515
5516 2013-01-25  Yao Qi  <yao@codesourcery.com>
5517
5518         * main.c (print_gdb_help): Remove "--epoch" from the help
5519         message.
5520
5521 2013-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
5522
5523         * symtab.c (skip_prologue_using_sal): Consider a file
5524         change the same as an increased line number
5525
5526 2013-01-24  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5527
5528         * MAINTAINERS (Write After Approval): Add myself to the list.
5529
5530 2013-01-24  Tom Tromey  <tromey@redhat.com>
5531
5532         * ada-lang.h (ada_decode_symbol): Make return type const.
5533         * ada-lang.c (ada_decode_symbol): Likewise.
5534
5535 2013-01-23  Doug Evans  <dje@google.com>
5536
5537         * linespec.c (find_linespec_symbols): Make static.
5538
5539 2013-01-23  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
5540
5541         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
5542         type on float conversion for complex type.
5543
5544 2013-01-23  Siva Chandra Reddy  <sivachandra@google.com>
5545
5546         Add a new class gdb.Architecture which exposes GDB's
5547         internal representation of architecture via GDB Python API.
5548         * Makefile.in: Add entries corresponding to the new file
5549         python/py-arch.c.
5550         * NEWS (Python Scripting): Add entries for the new class
5551         gdb.Architecture and the new method gdb.Frame.architecture.
5552         * python/py-arch.c: Implement gdb.Architecture class.
5553         * python/py-frame.c (frapy_arch): Implement the method
5554         gdb.Frame.architecture().
5555         (frame_object_methods): Add 'architecture' to the method table.
5556         * python/python-internal.h: Add declarations of new utility
5557         functions.
5558         * python/python.c (_initialize_python): Initialize
5559         gdb.Architecture class.
5560
5561 2013-01-23  Doug Evans  <dje@google.com>
5562
5563         Work around binutils/15021.
5564         * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
5565         type_unit_group out of union s.  All uses updated.
5566         (read_index_from_section): Watch for index version 8.
5567         (follow_die_sig): If using .gdb_index version <= 7, record the TU as
5568         an imported symtab.
5569         (write_psymtabs_to_index): Increment version number to 8.
5570
5571 2013-01-22  Pedro Alves  <palves@redhat.com>
5572
5573         * annotate.c (breakpoint_changed): Skip if breakpoint is not
5574         user-visible.
5575
5576 2013-01-22  Pedro Alves  <palves@redhat.com>
5577
5578         * annotate.c (annotate_breakpoints_changed): Rename to ...
5579         (annotate_breakpoints_invalid): ... this.  Make static.
5580         (breakpoint_changed): Adjust.
5581         (_initialize_annotate): Always install the observers.  Install a
5582         "breakpoint_created" observer.
5583         * annotate.h (annotate_breakpoints_changed): Delete declaration.
5584         * breakpoint.c (set_breakpoint_condition)
5585         (breakpoint_set_commands, do_map_commands_command)
5586         (init_raw_breakpoint, clear_command, set_ignore_count)
5587         (enable_breakpoint_disp): No longer call
5588         annotate_breakpoints_changed.
5589
5590 2013-01-22  Pedro Alves  <palves@redhat.com>
5591
5592         * annotate.c: Include "inferior.h".
5593         (frames_invalid_emitted)
5594         (breakpoints_invalid_emitted): New globals.
5595         (async_background_execution_p): New function.
5596         (annotate_breakpoints_changed, annotate_frames_invalid): Skip
5597         emitting the annotation if it has already been emitted.
5598         (annotate_display_prompt): New function.
5599         * annotate.h (annotate_display_prompt): New declaration.
5600         * event-top.c: Include annotate.h.
5601         (display_gdb_prompt): Call annotate_display_prompt.
5602
5603 2013-01-22  Pedro Alves  <palves@redhat.com>
5604
5605         * annotate.c (ignore_count_changed): Delete.
5606         (annotate_breakpoints_changed): Don't clear ignore_count_changed.
5607         (annotate_ignore_count_change): Delete.
5608         (annotate_stopped): Don't emit a delayed breakpoints-changed
5609         annotation.
5610         * annotate.h (annotate_ignore_count_change): Delete.
5611         * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
5612         annotate_ignore_count_change.
5613
5614 2013-01-22  Tom Tromey  <tromey@redhat.com>
5615
5616         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
5617         require_rvalue for a register location.
5618
5619 2013-01-21  Marc Khouzam  <marc.khouzam@ericsson.com>
5620
5621         * breakpoint.c (print_one_breakpoint_location): Add MI
5622         field 'thread-groups' when printing a breakpoint.
5623         (output_thread_groups): New function.
5624
5625 2013-01-21  Siva Chandra Reddy  <sivachandra@google.com>
5626
5627         * python/lib/gdb/commands/explore.py
5628         (CompoundExplorer.explore_expr): Correct the name of a method
5629         being invoked.
5630         (ExploreTypeCommand.invoke): Add a missing 'return'.
5631
5632 2013-01-21  Tom Tromey  <tromey@redhat.com>
5633
5634         * gdb_obstack.h (obconcat): Move declaration here, from...
5635         * symfile.h (obconcat): ... here.
5636         * gdb_obstack.c: New file.
5637         (obconcat): Move from...
5638         * symfile.c (obconcat): ... here.
5639         * Makefile.in (SFILES): Add gdb_obstack.c.
5640         (COMMON_OBS): Add gdb_obstack.o.
5641
5642 2013-01-21  Tom Tromey  <tromey@redhat.com>
5643
5644         * symfile.h (obsavestring): Don't declare.
5645         * symfile.c (obsavestring): Remove.
5646         * ada-exp.y: Use obstack_copy0, not obsavestring.
5647         * ada-lang.c: Use obstack_copy0, not obsavestring.
5648         * coffread.c: Use obstack_copy0, not obsavestring.
5649         * cp-namespace.c: Use obstack_copy0, not obsavestring.
5650         * dbxread.c: Use obstack_copy0, not obsavestring.
5651         * dwarf2read.c: Use obstack_copy0, not obsavestring.
5652         * jit.c: Use obstack_copy0, not obsavestring.
5653         * mdebugread.c: Use obstack_copy0, not obsavestring.
5654         * psymtab.c: Use obstack_copy0, not obsavestring.
5655         * stabsread.c: Use obstack_copy0, not obsavestring.
5656         * xcoffread.c: Use obstack_copy0, not obsavestring.
5657
5658 2013-01-21  Tom Tromey  <tromey@redhat.com>
5659
5660         * dwarf2read.c (fixup_go_packaging): Save package name
5661         on objfile obstack.
5662         * gdbtypes.c (init_type): Don't copy name.
5663
5664 2013-01-21  Tom Tromey  <tromey@redhat.com>
5665
5666         * dwarf2read.c (struct partial_die_info) <name, scope>: Now
5667         const.
5668         (struct attribute) <u.str>: Now const.
5669         (struct fnfieldlist) <name>: Now const.
5670         (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
5671         (partial_die_parent_scope): Make return type const.
5672         (partial_die_full_name, add_partial_symbol): Update.
5673         (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
5674         'name' const.
5675         (find_file_and_directory): Make 'name' and 'comp_dir' const.
5676         (read_file_scope, read_func_scope, dwarf2_add_field)
5677         (dwarf2_add_member_fn, read_structure_type)
5678         (process_enumeration_scope, read_array_type, read_module_type)
5679         (read_base_type, read_subrange_type): Update.
5680         (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
5681         (new_symbol_full, guess_full_die_structure_name): Update.
5682         (dwarf2_canonicalize_name): Return const type.  Make 'name' const.
5683         (dwarf2_name): Return const type.
5684         (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
5685         const.
5686
5687 2013-01-21  Tom Tromey  <tromey@redhat.com>
5688
5689         * gdbtypes.c (init_type): Make 'name' const.
5690         * gdbtypes.h (init_type): Update.
5691
5692 2013-01-21  Tom Tromey  <tromey@redhat.com>
5693
5694         * buildsym.c (patch_subfile_names): Use set_last_source_file.
5695         (start_symtab): Make 'name' and 'dirname' const.  Use
5696         set_last_source_file.
5697         (restart_symtab, reset_symtab_globals): Use set_last_source_file.
5698         (last_source_file): Define.  Now static.
5699         (set_last_source_file, get_last_source_file): New functions.
5700         * buildsym.h (last_source_file): Don't declare.
5701         (start_symtab): Update.
5702         (set_last_source_file, get_last_source_file): Declare.
5703         * coffread.c (complete_symtab): Use set_last_source_file.
5704         (coff_end_symtab): Likewise.
5705         (coff_symtab_read): Use set_last_source_file, get_last_source_file.
5706         * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
5707         set_last_source_file.
5708         (process_one_symbol): Use get_last_source_file.
5709         * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
5710         (psymtab_to_symtab_1): Use get_last_source_file.
5711         * xcoffread.c (process_linenos): Use get_last_source_file.
5712         (complete_symtab): Use set_last_source_file.
5713         (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
5714         (scan_xcoff_symtab): Use set_last_source_file.
5715
5716 2013-01-21  Tom Tromey  <tromey@redhat.com>
5717
5718         * symtab.c (struct demangled_name_entry) <mangled>: Now const.
5719         (symbol_set_names): Remove casts.  Handle field const-ness.
5720
5721 2013-01-21  Tom Tromey  <tromey@redhat.com>
5722
5723         * dwarf2read.c (new_symbol_full): Remove cast.
5724         * symtab.c (symbol_set_demangled_name): Make 'name' const.
5725         * symtab.h (symbol_set_demangled_name): Update.
5726
5727 2013-01-21  Tom Tromey  <tromey@redhat.com>
5728
5729         * main.c (captured_main): Call bfd_init.
5730
5731 2013-01-21  Tom Tromey  <tromey@redhat.com>
5732
5733         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
5734         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
5735         * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
5736         * NEWS: Update.
5737
5738 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5739
5740         * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
5741
5742 2013-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5743
5744         Fix gdb.fortran/common-block.exp crash in PIE mode.
5745         * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
5746         LOC_COMMON_BLOCK.
5747         * f-valprint.c (info_common_command_for_block): Expect
5748         LOC_COMMON_BLOCK in gdb_assert.
5749         * symtab.h (struct general_symbol_info): Update comment for the
5750         common_block member.
5751         (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
5752         (enum address_class): New member LOC_COMMON_BLOCK.
5753
5754 2013-01-18  David Blaikie  <dblaikie@gmail.com>
5755
5756         * MAINTAINERS (Write After Approval): Add "David Blaikie".
5757
5758 2013-01-18  Tom Tromey  <tromey@redhat.com>
5759
5760         PR c++/14999:
5761         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
5762         Call require_rvalue.
5763
5764 2013-01-18  Yao Qi  <yao@codesourcery.com>
5765
5766         * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
5767         (dbx_read_symtab): New declaration.
5768         (dbx_psymtab_to_symtab): Delete.
5769         (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
5770         Rename parameter PST to SELF.  Exchanged two parameters.
5771         (start_psymtab): Caller update.
5772         * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
5773         (dwarf2_read_symtab): New declaration.
5774         (dwarf2_psymtab_to_symtab): Delete.
5775         (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
5776         Rename parameter PST to SELF.  Exchanged two parameters.
5777         (create_partial_symtab): Caller update.
5778         * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
5779         (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
5780         Rename parameter PST to SELF.  Exchanged two parameters.
5781         (parse_partial_symbols, new_psymtab): Caller update.
5782         * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
5783         two parameters.
5784         * psymtab.c (psymtab_to_symtab): Caller update.
5785         * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
5786         (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
5787         Rename parameter PST to SELF.  Exchanged two parameters.
5788         (xcoff_start_psymtab): Caller update.
5789
5790 2013-01-18  Yao Qi  <yao@codesourcery.com>
5791
5792         * infrun.c (proceed): Rename local variable 'oneproc' to
5793         'force_step'.
5794
5795 2013-01-17  Doug Evans  <dje@google.com>
5796
5797         * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
5798         (dw2_build_type_unit_groups): Delete.  All uses updated.
5799
5800         * symtab.h (struct symbol_search): Add comment.
5801
5802 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5803
5804         * symtab.c (compare_filenames_for_search): New comment for
5805         HAS_DRIVE_SPEC.
5806
5807 2013-01-17  Tom Tromey  <tromey@redhat.com>
5808
5809         * cp-abi.c (cp_abi_completer): Fix typo in assignment.
5810
5811 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5812
5813         * symtab.c (iterate_over_some_symtabs): New variable cleanups,
5814         initialize it by existing make_cleanup.  Call new do_cleanups.
5815
5816 2013-01-17  Tom Tromey  <tromey@redhat.com>
5817
5818         * cp-abi.c (cp_abi_completer): New function.
5819         (_initialize_cp_abi): Set completer for "set cp-abi".
5820
5821 2013-01-17  Tom Tromey  <tromey@redhat.com>
5822
5823         * mem-break.c: Remove obsolete comment.
5824         * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
5825
5826 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
5827
5828         * jit.c (jit_reader_load_command): Interpret the jit reader name
5829         as an absolute path if it begins with a forward slash.
5830
5831 2012-01-17  Sanjoy Das <sanjoy@playingwithpointers.com>
5832
5833         PR gdb/14550
5834
5835         * jit.c (finalize_symtab): Ensure that only the global block has a
5836         NULL superblock.
5837
5838 2013-01-17  Pedro Alves  <palves@redhat.com>
5839
5840         * acinclude.m4: Include ../config/plugins.m4,
5841         ../config/largefile.m4 and ../config/lead-dot.m4.  Add comments.
5842         * Makefile.in (aclocal_m4_deps): Update.
5843         * aclocal.m4: Renegerate.
5844
5845 2013-01-16  Doug Evans  <dje@google.com>
5846
5847         * contrib/cc-with-tweaks.sh: Add references to Fission docs.
5848
5849 2013-01-16  Pedro Alves  <palves@redhat.com>
5850             Tom Tromey  <tromey@redhat.com>
5851
5852         PR cli/7221:
5853         * NEWS: Add "catch signal".
5854         * breakpoint.c (base_breakpoint_ops): No longer static.
5855         (bpstat_explains_signal): New function.
5856         (init_catchpoint): No longer static.
5857         (base_breakpoint_explains_signal): New function.
5858         (base_breakpoint_ops): Initialize new field.
5859         * breakpoint.h (enum bpstat_signal_value): New.
5860         (struct breakpoint_ops) <explains_signal>: New field.
5861         (bpstat_explains_signal): Remove macro, declare as function.
5862         (base_breakpoint_ops, init_catchpoint): Declare.
5863         * break-catch-sig.c: New file.
5864         * inferior.h (signal_catch_update): Declare.
5865         * infrun.c (signal_catch): New global.
5866         (handle_syscall_event): Update for change to
5867         bpstat_explains_signal.
5868         (handle_inferior_event): Likewise.  Always handle random signals
5869         via bpstats.
5870         (signal_cache_update): Check signal_catch.
5871         (signal_catch_update): New function.
5872         (_initialize_infrun): Initialize signal_catch.
5873         * Makefile.in (SFILES): Add break-catch-sig.c.
5874         (COMMON_OBS): Add break-catch-sig.o.
5875
5876 2013-01-16  Tom Tromey  <tromey@redhat.com>
5877
5878         * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
5879         (print_one_catch_solib, print_one_catch_syscall)
5880         (print_one_catch_exec, print_one_exception_catchpoint): Emit
5881         "catch-type".
5882
5883 2013-01-16  Yao Qi  <yao@codesourcery.com>
5884
5885         * printcmd.c (current_display_number): Make it static.
5886
5887 2013-01-16  Yao Qi  <yao@codesourcery.com>
5888
5889         * infcmd.c (step_once): Don't check '!single_inst' as it was
5890         checked before.
5891
5892 2013-01-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5893
5894         * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
5895
5896 2013-01-14  Tom Tromey  <tromey@redhat.com>
5897
5898         * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
5899         set command.
5900         * command.h (add_setshow_string_noescape_cmd): Update.
5901         * corefile.c (set_gnutarget_command): Remove trailing whitespace.
5902         (complete_set_gnutarget): New function.
5903         (_initialize_core): Set the "set gnutarget" completer.
5904
5905 2013-01-14  Tom Tromey  <tromey@redhat.com>
5906
5907         PR symtab/14442:
5908         * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
5909         (c_type_print_modifier): Likewise.
5910         * dwarf2read.c (read_tag_restrict_type): New function.
5911         (read_type_die_1): Handle DW_TAG_restrict_type.
5912         * gdbtypes.c (make_restrict_type): New function.
5913         (recursive_dump_type): Handle TYPE_RESTRICT.
5914         * gdbtypes.h (enum type_flag_values): Renumber.
5915         (enum type_instance_flag_value): Add
5916         TYPE_INSTANCE_FLAG_RESTRICT.
5917         (TYPE_RESTRICT): New macro.
5918         (make_restrict_type): Declare.
5919
5920 2013-01-14  Tom Tromey  <tromey@redhat.com>
5921
5922         PR symtab/14931:
5923         * psymtab.c (struct psymtab_state): New.
5924         (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
5925         functions.
5926         * psympriv.h (make_cleanup_discard_psymtabs): Declare.
5927         * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
5928
5929 2013-01-14  Richard Sharman  <richard_sharman@mitel.com>
5930             Pedro Alves  <palves@redhat.com>
5931
5932         PR remote/14786
5933
5934         * remote.c (remote_threads_info): Make a copy of the reply from
5935         qfThreadInfo and use that instead of rs->buf.
5936
5937 2013-01-14  Yao Qi  <yao@codesourcery.com>
5938
5939         * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
5940         (dbx_psymtab_to_symtab): Likewise.
5941         * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
5942         * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
5943         * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
5944
5945 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5946
5947         * parse.c (parse_exp_in_context): New variable inner_chain.  Call
5948         make_cleanup_restore_current_language.  Call set_language.  Move
5949         OLD_CHAIN and INNER_CHAIN cleanups.
5950         * utils.c (do_restore_current_language)
5951         (make_cleanup_restore_current_language): New functions.
5952         * utils.h (make_cleanup_restore_current_language): New declaration.
5953
5954 2013-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5955
5956         * source.c (symtab_to_fullname): Apply rewrite_source_path also for
5957         non-existing files.
5958
5959         * source.c (symtab_to_fullname): Do not prepend DIRNAME for
5960         non-existing files if FILENAME is already absolute.
5961
5962 2013-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5963
5964         * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
5965         fputs_filtered.  Append trailing newline.
5966
5967 2013-01-11  Yao Qi  <yao@codesourcery.com>
5968             Stan Shebs  <stan@codesourcery.com>
5969
5970         * psymtab.c (init_psymbol_list): Clarify the comment.
5971
5972 2013-01-11  Yao Qi  <yao@codesourcery.com>
5973
5974         * breakpoint.c (print_one_breakpoint_location): Remove dead code.
5975         (update_dprintf_command_list): Assert that 'printf_line' is
5976         non-null.  Remove condition check.
5977
5978 2013-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5979
5980         Code cleanup.
5981         * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
5982         type const char *.
5983         * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
5984         const char *.
5985         * tui/tui-source.h (tui_source_is_displayed): Likewise.
5986
5987 2013-01-09  Anthony Green  <green@moxielogic.com>
5988
5989         * cp-abi.c (cplus_print_vtable): Don't return value from void
5990         function.
5991         * ada-lang.c (re_set_catch_assert): Ditto.
5992
5993 2013-01-09  Doug Evans  <dje@google.com>
5994
5995         * symfile.h (quick_symbol_functions): Delete member
5996         pre_expand_symtabs_matching.  All uses removed.
5997         * dwarf2read.c (dw2_lookup_symbol): Implement.
5998         (dw2_do_expand_symtabs_matching): Delete.
5999         (dw2_pre_expand_symtabs_matching): Delete.
6000         (struct dw2_symtab_iterator): New type.
6001         (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
6002         (dw2_expand_symtabs_for_function): Rewrite.
6003         (dwarf2_gdb_index_functions): Update.
6004         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
6005         (psym_functions): Update.
6006
6007 2013-01-09  Tom Tromey  <tromey@redhat.com>
6008
6009         * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
6010         * configure: Rebuild.
6011         * configure.ac: Add somread.o to the build if BFD has SOM
6012         support.
6013         * somread.c: Include som/aout.h, not syms.h.
6014         (som_symtab_read): Use som_external_symbol_dictionary_record.
6015         Unpack records manually.
6016         (_initialize_somread): Declare.
6017
6018 2012-01-08  Mike Frysinger  <vapier@gentoo.org>
6019
6020         * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
6021         Cast return_address to 64bits.
6022
6023 2013-01-08  Hui Zhu  <hui_zhu@mentor.com>
6024
6025         * printcmd.c: Remove define of function output_command.
6026         * tracepoint.c: Remove extern of function output_command.
6027         * valprint.h: (output_command): New extern.
6028
6029 2013-01-07  Tom Tromey  <tromey@redhat.com>
6030
6031         * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
6032         Remove.
6033         (objc_language_defn): Use c_printchar, c_printstr,
6034         c_emit_char.
6035
6036 2013-01-07  Tom Tromey  <tromey@redhat.com>
6037
6038         PR cli/7719:
6039         * NEWS: Update.
6040         * ada-valprint.c (printstr, print_field_values): Remove
6041         "inspect_it" code.
6042         * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
6043         code.
6044         * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
6045         code.
6046         * m2-lang.c (m2_printstr): Remove "inspect_it" code.
6047         * main.c (captured_main): Remove "epoch" argument.
6048         * objc-lang.c (objc_printstr): Remove "inspect_it" code.
6049         * p-lang.c (pascal_printstr): Remove "inspect_it" code.
6050         * p-valprint.c (pascal_object_print_value_fields): Remove
6051         "inspect_it" code.
6052         * printcmd.c (print_command_1): Remove 'inspect' argument.
6053         (print_command, call_command): Update.
6054         (inspect_command): Remove.
6055         (_initialize_printcmd): Make "inspect" an alias for "print".
6056         * top.c (epoch_interface): Remove.
6057         * top.h (epoch_interface): Remove.
6058         * valprint.c (user_print_options): Update.
6059         (print_converted_chars_to_obstack): Remove "inspect_it" code.
6060         * valprint.h (struct value_print_options) <inspect_it>: Remove
6061         field.
6062
6063 2013-01-04  Tom Tromey  <tromey@redhat.com>
6064
6065         * valprint.h (read_string): Add 'extern'.
6066
6067 2013-01-07  Joel Brobecker  <brobecker@adacore.com>
6068
6069         * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
6070         used to decide whether to define darwin_read_dyld_info or not.
6071
6072 2013-01-03  Pierre Muller  <muller@sourceware.org>
6073
6074         * main.c (relocate_gdb_directory): Avoid calling stat function
6075         if DIR is empty.
6076
6077 2013-01-03  Yao Qi  <yao@codesourcery.com>
6078
6079         * psymtab.c (fixup_psymbol_section): Update declaration.
6080         (fixup_psymbol_section): Remove code returning value.
6081
6082 2013-01-03  Yao Qi  <yao@codesourcery.com>
6083
6084         * symtab.h: Remove some out of date comments.
6085          (enum exception_event_kind): Move it ...
6086         * breakpoint.c: ... here.
6087
6088 2013-01-02  Iain Sandoe  <developer@sandoe-acoustics.co.uk>
6089
6090         PR gdb/14405
6091         * darwin-nat.c (darwin_read_dyld_info): Only build if
6092         TASK_DYLD_INFO_COUNT is defined.
6093         (darwin_xfer_partial): Call darwin_read_dyld_info only if
6094         TASK_DYLD_INFO_COUNT is defined.
6095
6096 2013-01-02  Tom Tromey  <tromey@redhat.com>
6097
6098         * symfile.h (struct ecoff_debug_hack): Remove.
6099         * objfiles.c: Don't include mdebugread.h.
6100
6101 2013-01-02  Tom Tromey  <tromey@redhat.com>
6102
6103         * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
6104         * configure.ac: Check for Mach-O support in BFD.  Update
6105         CONFIG_OBS.
6106         * configure: Rebuild.
6107
6108 2013-01-02  Tom Tromey  <tromey@redhat.com>
6109
6110         * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
6111         * configure.ac: Use GDB_AC_CHECK_BFD.
6112         * configure: Rebuild.
6113
6114 2013-01-01  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
6115
6116         * MAINTAINERS: Update my email.
6117
6118 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
6119
6120         * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
6121
6122 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
6123
6124         * rs6000-nat.c (bss_data_overlap): New function.
6125         (vmap_symtab): Use it to adjust the .bss section's offset.
6126
6127 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
6128
6129         Update year range in copyright notice of all files.
6130
6131 2013-01-01, 13  Joel Brobecker  <brobecker@adacore.com>
6132
6133         * top.c (print_gdb_version): Update copyright year.
6134
6135 For older changes see ChangeLog-2012.
6136 \f
6137 Local Variables:
6138 mode: change-log
6139 left-margin: 8
6140 fill-column: 74
6141 version-control: never
6142 coding: utf-8
6143 End: