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