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