MI: add the -catch-load and -catch-unload commands
[external/binutils.git] / gdb / ChangeLog
1 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
2     
3         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
4         (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
5         * breakpoint.c (add_solib_catchpoint): New function that
6         can be used by both CLI and MI, factored out from
7         catch_load_or_unload.
8         (catch_load_or_unload): Strip it down and make it use the
9         new add_solib_catchpoint.
10         * breakpoint.h (add_solib_catchpoint): Declare it.
11         * mi/mi-cmd-break.h: New file.
12         * mi/mi-cmd-break.c: Include mi-cmd-break.h.
13         (setup_breakpoint_reporting): New function used for both
14         catchpoints and breakpoints.
15         (mi_cmd_break_insert): Use setup_breakpoint_reporting.
16         * mi/mi-cmd-catch.c: New file.
17         * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
18         and -catch-unload.
19         * mi/mi-cmds.h: Declare the handlers for -catch-load and
20         -catch-unload.
21
22 2012-11-28  Tom Tromey  <tromey@redhat.com>
23
24         * dbxread.c (read_dbx_symtab): Update.
25         (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
26         (read_ofile_symtab): Add 'objfile' argument.
27         * dwarf2read.c (process_psymtab_comp_unit_reader)
28         (build_type_psymtabs_reader): Update.
29         (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
30         * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
31         argument.
32         (parse_procedure, parse_partial_symbols): Update.
33         (psymtab_to_symtab_1): Add 'objfile' argument.
34         * psympriv.h (struct partial_symtab) <objfile>: Remove.
35         <read_symtab>: Add 'objfile' argument.
36         (sort_pst_symbols, discard_psymtab): Update.
37         * psymtab.c (partial_map_expand_apply): Update.
38         (find_pc_sect_psymtab_closer): Add 'objfile' argument.
39         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
40         (find_pc_sect_psymbol): Add 'objfile' argument.
41         (lookup_symbol_aux_psymtabs): Update.
42         (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
43         Add 'objfile' argument.
44         (find_last_source_symtab_from_partial, dump_psymtab)
45         (dump_psymtabs_for_objfile, read_symtabs_for_function)
46         (expand_partial_symbol_tables, read_psymtabs_with_filename)
47         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
48         (expand_symtabs_matching_via_partial): Update.
49         (sort_pst_symbols): Add 'objfile' argument.
50         (allocate_psymtab): Update.
51         (discard_psymtab): Add 'objfile' argument.
52         (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
53         * stabsread.h (end_psymtab): Update.
54         * xcoffread.c (this_symtab_objfile): New global.
55         (process_linenos, enter_line_range, xcoff_next_symbol_text):
56         Update.
57         (read_xcoff_symtab): Add 'objfile' argument.
58         (read_symbol, read_symbol_lineno): Update.
59         (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
60         (xcoff_end_psymtab): Add 'objfile' argument.
61         (scan_xcoff_symtab): Update.
62
63 2012-12-12  Paul Koning  <paul_koning@dell.com>
64
65         Add support for Python 3.
66         * NEWS: Mention Python 3 support.
67         * varobj.c (value_get_print_value): Use
68         python_string_to_target_string.
69         * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
70         of type objects.
71         * python/py-breakpoint.c: Ditto.
72         * python/py-cmd.c:  Ditto.
73         * python/py-event.c: Ditto.
74         * python/py-event.h: Ditto.
75         * python/py-evtregistry.c: Ditto.
76         * python/py-finishbreakpoint.c: Ditto.
77         * python/py-frame.c: Ditto.
78         * python/py-function.c: Ditto.
79         * python/py-infthread.c: Ditto.
80         * python/py-lazy-string.c: Ditto.
81         * python/py-progspace.c: Ditto.
82         * /python/py-symbol.c: Ditto.
83         * python/py-evts.c:  (gdbpy_initialize_py_events): Add module
84         initialization for Python 3.
85         * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
86         of type objects.
87         (infpy_read_memory): Return memoryview object if Python 3.
88         (infpy_write_memory): Use "s*" operand parsing code for Python 3.
89         (infpy_search_memory): Ditto.
90         (get_buffer): New function for Python 3.
91         * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
92         of type objects.
93         (objfpy_dealloc): Use Py_TYPE to call tp_free.
94         * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
95         of type objects.
96         (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
97         (set_attr): Ditto.
98         * python/py-prettyprint.c (print_string_repr): use PyBytes methods
99         instead of PyString methods if Python 3.
100         (print_children): Skip push_dummy_python_frame call if Python 3.
101         * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
102         of type objects.
103         (salpy_dealloc): Use Py_TYPE to call tp_free.
104         * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
105         of type objects.
106         (field_dealloc): Use Py_TYPE to call tp_free.
107         (typy_dealloc): Ditto.
108         (type_object_as_number): Adjust struct initializations for
109         differences in layout for Python 2 vs. Python 3.
110         * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
111         string case for Python 3.
112         (unicode_to_encoded_python_string): Shorten code (no functional
113         change). 
114         (python_string_to_target_python_string): Comment that in Python 3
115         returned value is a Python "bytes" type.
116         (gdbpy_is_string): Omit non-Unicode string check in Python 3.
117         (gdb_py_object_from_longest): Omit non-long integer case in Python
118         3.
119         (gdb_py_object_from_ulongest): Ditto.
120         * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
121         of type objects.
122         (valpy_dealloc): Use Py_TYPE to call tp_free.
123         (valpy_int): Omit function if Python 3.
124         (convert_value_from_python): Use "%S" format (Python object as a
125         string) if Python 3.
126         (value_object_as_number): Adjust struct initializations for
127         differences in layout for Python 2 vs. Python 3.
128         * python/python-config.py: Adjust syntax for Python 3
129         compatibility. 
130         Include "sys.abiflags" string as part of python library name, if
131         that attribute exists (Python 3).
132         * python/python-internal.h (IS_PY3): Define if Python 3.
133         (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
134         placeholder value if Python 3.
135         (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
136         PyString_Decode, PyString_FromFormat, PyString_Check): Define as
137         analogous Python 3 API function if Python 3.
138         (PyVarObject_HEAD_INIT): Define if not already defined.
139         (Py_TYPE): Ditto.
140         * python/python.c (eval_python_command): Omit Py_FlushLine call if
141         Python 3.
142         Check return values of all Python API calls for error.
143         Supply dummy "python" and "python-interactive" commands if Python
144         initialization failed.
145         (_initialize_python): Convert argc to wchar_t** if Python 3.
146         Add module initialization for Python 3.
147         (finish_python_initialization): Pass wchar_t * argument to
148         PySys_SetPath if Python 3.
149         * python/lib/gdb/__init__.py: Define "reload" if Python 3.
150         (_GdbFile): New class for common output file behavior.
151         (GdbOutFile): Subclass from _GdbFile.
152         (GdbOutputErrorFile): Ditto.
153         (auto_load_packages): Adjust syntax for Python 3 compatibility.
154         * python/lib/gdb/printing.py: Define basestr and int if Python 3.
155         * python/lib/gdb/prompt.py: Use sorted() function rather than
156         sort() method.
157         * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
158         Adjust syntax for Python 3 compatibility.
159         * python/lib/gdb/command/pretty_printers.py: Use sorted() function
160         rather than sort() method.
161         Adjust syntax for Python 3 compatibility.
162         * python/lib/gdb/command/type_printers.py: Ditto.
163         * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
164         value is a memoryview object if Python 3.
165
166 2012-12-12  Tom Tromey  <tromey@redhat.com>
167
168         * coffread.c (coff_objfile_data_key): New global.
169         (coff_symfile_init): Use set_objfile_data.
170         (coff_symfile_read): Use objfile_data.
171         (coff_symfile_finish): Don't free deprecated_sym_private.
172         (coff_free_info): New function.
173         (_initialize_coffread): Initialize coff_objfile_data_key.
174         * mdebugread.c (pending_list): Update comment.
175         * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
176         * symfile.c (reread_symbols): Don't mention
177         deprecated_sym_private.
178         * xcoffread.c (xcoff_objfile_data_key): New global.
179         (XCOFF_DATA): New macro.
180         (process_linenos, enter_line_range, xcoff_next_symbol_text)
181         (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
182         XCOFF_DATA.
183         (xcoff_new_init) Use set_objfile_data.
184         (xcoff_symfile_finish): Don't free deprecated_sym_private.
185         (init_stringtab, swap_sym, scan_xcoff_symtab)
186         (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
187         (xcoff_free_info): New function.
188         (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
189
190 2012-12-12  Mircea Gherzan  <mircea.gherzan@intel.com>
191
192         * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
193
194 2012-12-12  Tom Tromey  <tromey@redhat.com>
195
196         * coffread.c (coff_symfile_init): Use set_objfile_data.
197         (coff_symfile_read): Use DBX_SYMFILE_INFO.
198         * dbxread.c (dbx_objfile_data_key): New global.
199         (dbx_symfile_init): Use set_objfile_data.
200         (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
201         (dbx_free_symfile_info): New function.
202         (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
203         DBX_SYMFILE_INFO.
204         (stabsect_build_psymtabs): Use set_objfile_data.
205         (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
206         * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
207         set_objfile_data.
208         (free_elfinfo): Use DBX_SYMFILE_INFO.
209         (elf_symfile_finish): Don't free deprecated_sym_stab_info.
210         (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
211         * gdb-stabs.h (dbx_objfile_data_key): Declare.
212         (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
213         * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
214         * somread.c (som_symfile_finish): Don't free
215         deprecated_sym_stab_info.
216
217 2012-12-12  Joel Brobecker  <brobecker@adacore.com>
218
219         * gdbarch.sh (software_single_step): Remove trailing space in
220         comment (gdbarch.h is already correct).
221
222 2012-12-11  Tom Tromey  <tromey@redhat.com>
223
224         * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
225
226 2012-12-11  Tom Tromey  <tromey@redhat.com>
227
228         * dsrec.c (report_transfer_performance): Don't declare.
229         (load_srec): Use gettimeofday, print_transfer_performance.
230         * symfile.c (report_transfer_performance): Remove.
231
232 2012-12-11  Pedro Alves  <pedro@codesourcery.com>
233             Pedro Alves  <palves@redhat.com>
234
235         * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
236         NT_PSTATUS note.
237         * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
238         differently from LWP IDs.
239
240 2012-12-11  Pedro Alves  <palves@redhat.com>
241
242         * configure.ac (detect type of /proc): Remove Unixware handling.
243         * configure: Regenerate.
244         * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
245         (ioctl_table) [PCRESET]: Remove entry.
246         * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
247         (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
248         (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
249         * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
250         * procfs.c: Remove all UNIXWARE guarded code, and all traces of
251         Unixware in comments throughout.
252         * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
253         and remove mention of Unixware.
254
255 2012-12-10  Doug Evans  <dje@google.com>
256
257         * dwarf2read.c (dwarf2_cu): Enhance comment.
258         (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
259         the DWO file.
260         (dwarf2_record_block_ranges): Ditto.
261
262         * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
263
264         * symtab.c (find_pc_sect_symtab): Add comment.
265
266 2012-12-10  Tom Tromey  <tromey@redhat.com>
267
268         * defs.h: Don't check for definition of LONGEST.
269         (min, max): Remove duplicates.
270
271 2012-12-10  Tom Tromey  <tromey@redhat.com>
272
273         * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
274         (dwarf2_fetch_die_loc_cu_off): Rename from
275         dwarf2_fetch_die_location_block.  Rewrite to use
276         dwarf2_fetch_die_loc_sect_off.
277         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
278         (dwarf2_fetch_die_loc_cu_off): Rename.
279         * dwarf2loc.c (indirect_pieced_value): Use
280         dwarf2_fetch_die_loc_sect_off.
281         * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
282         comment.
283         (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
284         * dwarf2expr.c (add_piece): Update.
285         (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
286
287 2012-12-10  Tom Tromey  <tromey@redhat.com>
288
289         * buildsym.c (struct pending_block): Move from buildsym.h.
290         (pending_blocks): Likewise; now static.
291         (pending_block_obstack): New global.
292         (free_pending_blocks): Free blocks.
293         (record_pending_block): Use pending_block_obstack.
294         * buildsym.h (struct pending_block): Move definition to
295         buildsym.c.
296         (pending_blocks): Don't declare.
297
298 2012-12-10  Pedro Alves  <palves@redhat.com>
299
300         * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
301         dead SCO code, and adjust function description comment.
302
303 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
304
305         * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
306         * defs.h (LONGEST, ULONGEST): Remove conditionalization for
307         CC_HAS_LONG_LONG.
308         * dwarf2-frame.c (DW64_CIE_ID): Likewise.
309         * dwarf2read.c (extract_cu_value): Remove the function.
310         (create_cus_from_index_list): Make the return type void, inline the
311         extract_cu_value caller, include new gdb_static_assert.
312         (create_cus_from_index): Make the return type void, update the function
313         comment, update the create_cus_from_index_list caller.
314         (create_signatured_type_table_from_index): Make the return type void,
315         inline the extract_cu_value caller, include new gdb_static_assert.
316         (dwarf2_read_index): Update the create_cus_from_index and
317         create_signatured_type_table_from_index caller.
318         * printcmd.c (ui_printf): Remove conditionalizations for
319         CC_HAS_LONG_LONG.
320         * config.in: Regenerate.
321         * configure: Regenerate.
322
323 2012-12-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
324
325         * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
326         Update the comment for checked_producer.
327         (check_producer): New forward declaration.
328         (producer_is_gcc_lt_4_3): New function.
329         (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
330         (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
331
332 2012-12-07  Tom Tromey  <tromey@redhat.com>
333
334         * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
335         argument, assertion.
336         * c-exp.y (typebase): Add completion productions.
337         * completer.c (expression_completer): Handle tag completion.
338         * expression.h (parse_expression_for_completion): Add argument.
339         * f-lang.c (f_make_symbol_completion_list): Add 'code'
340         argument.
341         * language.h (struct language_defn)
342         <la_make_symbol_completion_list>: Add 'code' argument.
343         * parse.c (expout_tag_completion_type, expout_completion_name):
344         New globals.
345         (mark_struct_expression): Add assertion.
346         (mark_completion_tag): New function.
347         (parse_exp_in_context): Initialize new globals.
348         (parse_expression_for_completion): Add 'code' argument.  Handle
349         tag completion.
350         * parser-defs.h (mark_completion_tag): Declare.
351         * symtab.c (default_make_symbol_completion_list_break_on): Add
352         'code' argument.  Update.
353         (default_make_symbol_completion_list): Add 'code' argument.
354         (make_symbol_completion_list): Update.
355         (make_symbol_completion_type): New function.
356         * symtab.h (default_make_symbol_completion_list_break_on)
357         (default_make_symbol_completion_list): Update.
358         (make_symbol_completion_type): Declare.
359
360 2012-12-07  Tom Tromey  <tromey@redhat.com>
361
362         * expression.h (parse_expression_for_completion): Rename
363         from parse_field_expression.
364         (parse_completion): Rename from in_parse_field.
365         * c-exp.y (lex_one_token): Update.
366         * completer.c (expression_completer): Update.
367         * go-exp.y (lex_one_token): Update.
368         * p-exp.y (yylex): Update.
369         * parse.c (parse_completion): Rename from in_parse_field.
370         (parse_exp_in_context): Update.
371         (parse_expression_for_completion): Rename from
372         parse_field_expression.  Update.
373
374 2012-12-07  Tom Tromey  <tromey@redhat.com>
375
376         * typeprint.c (_initialize_typeprint): Set completer
377         for "whatis" and "ptype".
378
379 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
380
381         * copyright.py (NOT_FSF_LIST): Remove duplicate entry
382         "sim/common/cgen-fpu.h".  Remove invalid entries
383         "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
384         which actually have an FSF copyright header.
385
386 2012-12-07  Joel Brobecker  <brobecker@adacore.com>
387
388         * osf-share/AT386/cma_thread_io.h: Delete.
389         * osf-share/HP800/cma_thread_io.h: Delete.
390         * osf-share/README: Delete.
391         * osf-share/RIOS/cma_thread_io.h: Delete.
392         * osf-share/cma_attr.h: Delete.
393         * osf-share/cma_deb_core.h: Delete.
394         * osf-share/cma_debug_client.h: Delete.
395         * osf-share/cma_errors.h: Delete.
396         * osf-share/cma_handle.h: Delete.
397         * osf-share/cma_init.h: Delete.
398         * osf-share/cma_list.h: Delete.
399         * osf-share/cma_mutex.h: Delete.
400         * osf-share/cma_sched.h: Delete.
401         * osf-share/cma_semaphore_defs.h: Delete.
402         * osf-share/cma_sequence.h: Delete.
403         * osf-share/cma_stack.h: Delete.
404         * osf-share/cma_stack_int.h: Delete.
405         * osf-share/cma_tcb_defs.h: Delete.
406         * osf-share/cma_util.h: Delete.
407         * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
408         in osf-share.
409         * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
410         * contrib/ari/gdb_find.sh: Remove handling of osf-share.
411         * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
412
413 2012-12-06  Pedro Alves  <palves@redhat.com>
414             Tom Tromey  <tromey@redhat.com>
415
416         * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
417
418 2012-12-06  Jens Elmenthaler <jens.elmenthaler@advantest.com>
419
420         PR mi/14741:
421         * mi/mi-cmd-var.c (varobj_update_one): Take value of
422         attribute "dynamic" and "displayhint" from printed child,
423         not the root variable.
424
425 2012-12-06  Joel Brobecker  <brobecker@adacore.com>
426
427         * aix-thread.c (getthrds): Fix type of 4th parameter.
428         (get_signaled_thread): Change type of variable ktid to tid_t.
429
430 2012-12-06  Hui Zhu  <hui_zhu@mentor.com>
431
432         * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
433         value of get_frame_block.
434
435 2012-12-05  Pierre Muller  <muller@sourceware.org>
436
437         Avoid memory leaks on struct cmd_list_element.doc field.
438         * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
439         if flags contains DOC_ALLOCATED.
440         (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
441         flags.
442         (delete_cmd): Handle DOC_ALLOCATED flag.
443         * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
444         in flags filed of struct cmd_list_element.
445         (struct cmd_list_element): Document new flag item.
446
447 2012-12-04  Doug Evans  <dje@google.com>
448
449         * symmisc.c: Whitespace fixes.
450
451 2012-12-04  Karthik Bhat  <kv.bhat@samsung.com>
452
453         * i386-tdep.c (i386_skip_prologue): Using symbol table
454         to find the end of prologue for clang compiled binaries.
455         * amd64-tdep.c (amd64_skip_prologue): Using symbol table
456         to find the end of prologue for clang compiled binaries.
457
458 2012-12-03  Doug Evans  <dje@google.com>
459
460         * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
461         (dw2_find_symbol_file): Delete unused local file_data.
462
463 2012-12-03  Tom Tromey  <tromey@redhat.com>
464
465         * ada-exp.y (write_object_renaming, write_var_or_type)
466         (write_ambiguous_var, write_var_from_sym): Make blocks const.
467         * ada-lang.c (replace_operator_with_call)
468         (find_old_style_renaming_symbol): Make blocks const.
469         * ada-lang.h (ada_find_renaming_symbol): Update.
470         (struct ada_symbol_info) <block>: Now const.
471         * breakpoint.c (watch_command_1): Update.
472         * breakpoint.h (struct watchpoint) <exp_valid_block,
473         cond_exp_valid_block>: Now const.
474         * c-exp.y (classify_inner_name, classify_name): Make block
475         argument const.
476         * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
477         const.
478         * expression.h (innermost_block, parse_exp_1): Update.
479         (union exp_element) <block>: Now const.
480         * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
481         (lookup_struct): Make block argument const.
482         * gdbtypes.h (lookup_template_type): Update.
483         * go-exp.y (classify_name, classify_packaged_name)
484         (package_name_p): Make block argument const.
485         * objc-lang.c (lookup_struct_typedef): Make block argument const.
486         * objc-lang.h (lookup_struct_typedef): Update.
487         * parse.c (parse_exp_in_context, parse_exp_1)
488         (write_exp_elt_block): Make block arguments const.
489         (expression_context_block, innermost_block): Now const.
490         * parser-defs.h (write_exp_elt_block): Update.
491         (expression_context_block, innermost_block, block_found): Now
492         const.
493         * printcmd.c (struct display) <block>: Now const.
494         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
495         * valops.c (address_of_variable): Make block argument const.
496         * value.h (value_of_variable): Update.
497         * varobj.c (struct varobj_root) <valid_block>: Now const.
498
499 2012-11-30  Yao Qi  <yao@codesourcery.com>
500
501         * breakpoint.c (print_one_breakpoint_location): Indent code.
502
503 2012-11-30  Yao Qi  <yao@codesourcery.com>
504
505         * breakpoint.c (print_one_breakpoint_location): Combine two
506         blocks handling 'hit count' together.
507
508 2012-11-30  Yao Qi  <yao@codesourcery.com>
509
510         * infrun.c (error_is_running, ensure_not_running): Move them
511         to ...
512         * infcmd.c (error_is_running, ensure_not_running): ... here.
513         Make them 'static'.
514         * inferior.h: Remove declarations of error_is_running and
515         ensure_not_running.
516
517 2012-11-30  Yao Qi  <yao@codesourcery.com>
518
519         * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
520         check REGNUM >= 0.
521
522 2012-11-30  Yao Qi  <yao@codesourcery.com>
523
524         * infrun.c: Make the declaration of 'init_infwait_state'
525         static.
526         (init_infwait_state): Make it 'static'.
527
528 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
529
530         * python/python.c (finalize_python): Cast unused PyGILState_Ensure
531         return value to void to avoid compiler warning.
532
533 2012-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
534
535         * opencl-lang.c (opencl_print_type): New function.
536         (opencl_language_arch_info): Install it.
537
538 2012-11-29  Tom Tromey  <tromey@redhat.com>
539
540         * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
541         xvasprintf.
542         * common/common-utils.c (xasprintf, xvasprintf): Remove.
543         * common/common-utils.h (xasprintf, xvasprintf): Remove.
544
545 2012-11-29  Jerome Guitton  <guitton@adacore.com>
546
547         * ada-lang.c (ada_is_interface_tag): New function.
548         (ada_is_ignored_field): Add interface tags to the list
549         of ignored fields.
550
551 2012-11-29  Jerome Guitton  <guitton@adacore.com>
552
553         * ada-lang.h (ada_tag_value_at_base_address): New function
554         declaration.
555         * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
556         New functions.
557         (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
558         relocate the class-wide value if need be.
559         (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
560         Let ada_tag_value_at_base_address relocate the class-wide access/ref
561         before dereferencing it.
562         * ada-valprint.c (ada_val_print_1): Relocate to base address
563         before displaying the content of an interface-wide ref.
564
565 2012-11-29  Jerome Guitton  <guitton@adacore.com>
566
567         * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
568
569 2012-11-29  Joel Brobecker  <brobecker@adacore.com>
570
571         GDB 7.5.1 released.
572
573 2012-11-29  Yao Qi  <yao@codesourcery.com>
574             Tom Tromey  <tromey@redhat.com>
575
576         * eval.c (evaluate_subexp_standard): Get the correct pointer
577         type for TYPE_CODE_MEMBERPTR.
578
579 2012-11-28  Edjunior Machado  <emachado@linux.vnet.ibm.com>
580
581         * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
582         since now it is being done by binutils' powerpc_init_dialect().
583
584 2012-11-28  Tom Tromey  <tromey@redhat.com>
585
586         PR gdb/14290:
587         * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
588         (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
589         Use it.
590         * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
591         * gdb_bfd.c (gdb_bfd_mark_parent): New function.
592         (gdb_bfd_openr_next_archived_file): Use it.
593
594 2012-11-28  Markus Metzger <markus.t.metzger@intel.com>
595
596         * configure.ac: Check for linux/perf_event.h.
597         * config.in: Regenerated.
598         * configure: Regenerated.
599
600 2012-11-28  Yao Qi  <yao@codesourcery.com>
601
602         * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
603         abbreviate 'delete tracepoints' to 'delete tr'.
604         * corefile.c (_initialize_core): Call add_alias_cmd to
605         abbreviate 'set gnutarget' to 'set g'.
606         * value.c (_initialize_values): Call add_alias_cmd to abbreviate
607         'show convenience' to 'show conv'.
608
609 2012-11-27  Joel Brobecker  <brobecker@adacore.com>
610
611         * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
612         call to sparc_supply_fpregset.
613         (fill_fpregset): Fix first parameter in call to
614         sparc_collect_fpregset.
615
616 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
617             Kazu Hirata  <kazu@codesourcery.com>
618             Yao Qi  <yao@codesourcery.com>
619
620         * objfiles.c (init_entry_point_info): Call
621         gdbarch_convert_from_func_ptr_addr and
622         gdbarch_addr_bits_remove here ...
623         (entry_point_address_query): ... instead of here.
624         * solib-svr4.c (exec_entry_point): Call
625         gdbarch_addr_bits_remove.
626         * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
627         the entry address.
628
629 2012-11-27  Daniel Jacobowitz  <dan@codesourcery.com>
630             Yao Qi  <yao@codesourcery.com>
631
632         * eval.c (evaluate_subexp_standard): Add handling of
633         TYPE_CODE_MEMBERPTR when calling functions.  Correct the
634         result of ptype for calling a TYPE_CODE_METHODPTR.
635
636 2012-11-27  Yao Qi  <yao@codesourcery.com>
637
638         * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
639         warning.
640         Add i18n markup.
641
642 2012-11-26  Alexander Larsson  <alexl@redhat.com>
643             Jan Kratochvil  <jan.kratochvil@redhat.com>
644             Tom Tromey  <tromey@redhat.com>
645
646         * NEWS: Mention mini debuginfo feature.
647         * minidebug.c: New file.
648         * configure.ac: Check for lzma.
649         * configure, config.in: Rebuild.
650         * Makefile.in (LIBLZMA): New variable.
651         (CLIBS): Include LIBLZMA.
652         (SFILES): Mention minidebug.c.
653         (COMMON_OBS): Mention minidebug.o.
654         * symfile.c (read_symbols): New function.
655         (syms_from_objfile, reread_symbols): Call it.
656         * symfile.h (find_separate_debug_file_in_section): Declare.
657
658 2012-11-26  Keith Seitz  <keiths@redhat.com>
659
660         * exec.c (exec_file_attach): Move cleanup after verifying that
661         memory has in fact been allocated.
662
663 2012-11-26  Tom Tromey  <tromey@redhat.com>
664
665         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
666         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
667         SYMBOL_SYMTAB.
668         * skip.c (skip_info): Use SYMBOL_SYMTAB.
669
670 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
671             Pedro Alves  <palves@redhat.com>
672
673         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
674         size parameter passed to readlink by one byte.
675         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
676         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
677         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
678         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
679         size by one byte.
680
681 2012-11-26  Yao Qi  <yao@codesourcery.com>
682
683         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
684         extraneous parentheses.
685
686 2012-11-26  Yao Qi  <yao@codesourcery.com>
687
688         * remote.c (remote_start_remote): Typo fix.
689
690 2012-11-23  David S. Miller  <davem@davemloft.net>
691
692         * sparc-tdep.h (struct sparc_fpregset): New data structure.
693         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
694         sparc32_sol2_fpregset): Declare new globals.
695         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
696         'fpregset' argument.
697         * sparc64-tdep.h (sparc64_supply_fpregset,
698         sparc64_collect_fpregset): Likewise.
699         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
700         globals.
701         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
702         (sparc_fpregset): Declare new global.
703         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
704         'fpregset' argument.
705         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
706         into handler.
707         (fill_fpregset): Likewise.
708         (_initialize_sparc_linux_nat): Set sparc_fpregset to
709         sparc32_bsd_fpregset.
710         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
711         sparc32_bsd_fpregset down into handler.
712         (sparc32_linux_collect_core_fpregset): Likewise.
713         * sparc-nat.c (sparc_fpregset): Define.
714         (sparc_supply_fpregset): Add 'fpregset' argument.
715         (sparc_collect_fpregset): Likewise.
716         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
717         into fpregset handler.
718         (sparc_store_inferior_registers): Likewise.
719         (_initialize_sparc_nat): Set sparc_fpregset to
720         sparc32_sunos4_fpregset if NULL.
721         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
722         down into handler.
723         (fill_fpregset): Likewise.
724         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
725         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
726         use it to compute offsets.
727         (sparc32_collect_fpregset): Likewise.
728         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
729         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
730         down into handler.
731         (fill_fpregset): Likewise.
732         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
733         Likewise.
734         (sparc64_linux_collect_core_fpregset): Likewise.
735         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
736         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
737         use it to compute offsets.
738         (sparc64_collect_fpregset): Likewise.
739         (sparc64_bsd_fpregset): Define.
740         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
741         sparc64_bsd_fpregset down into handler.
742         (sparc64fbsd_collect_fpregset): Likewise.
743         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
744         and pass sparc{32,64}_bsd_fpregset down into handler.
745         (sparc64nbsd_collect_fpregset): Likewise.
746         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
747         sparc64_bsd_fpregset down into handler.
748         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
749         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
750         to sparc32_bsd_fpregset.
751         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
752         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
753         (sparc32nbsd_supply_fpregset): Likewise.
754
755 2012-11-21  Tom Tromey  <tromey@redhat.com>
756
757         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
758         field.
759         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
760         Remove.
761         * c-typeprint.c (c_type_print_base): Update.
762
763 2012-11-21  Yao Qi  <yao@codesourcery.com>
764
765         PR tdep/7438
766         * gdbarch.sh (smash_text_address): Remove.
767         * gdbarch.c, gdbarch.h: Regenerate.
768         * arm-tdep.c (arm_smash_text_address): Remove.
769         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
770         * hppa-tdep.c (hppa_smash_text_address): Remove.
771         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
772         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
773         Caller update.
774         * coffread.c (coff_symtab_read): Caller update.
775         * dbxread.c (process_one_symbol): Likewise.
776         * elfread.c (record_minimal_symbol): Likewise.
777         * somread.c (som_symtab_read): Likewise.
778
779 2012-11-20  Pierre Muller  <muller@sourceware.org>
780
781         ARI fixes: sprintf rule.
782         Replace sprintf function calls for char arrays by
783         calls to xsnprintf calls.
784         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
785         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
786         (arm_neon_quad_read, arm_pseudo_read): Ditto.
787         (arm_neon_quad_write, arm_pseudo_write): Ditto.
788         * breakpoint.c (condition_completer): Ditto.
789         (create_tracepoint_from_upload): Ditto.
790         * dwarf2read.c (file_full_name): Ditto.
791         * gcore.c (gcore_command): Ditto.
792         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
793         * go32-nat.c (go32_sysinfo): Ditto.
794         * interps.c (interp_set): Ditto.
795         * m32c-tdep.c (make_types): Ditto.
796         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
797         * remote-m32r-sdi.c (m32r_open): Ditto.
798         * sol-thread.c (td_err_string): Ditto.
799         (td_state_string, solaris_pid_to_str): Ditto.
800         * symtab.c (gdb_mangle_name): Ditto.
801         * cli/cli-script.c (execute_control_command): Ditto.
802         (define_command, document_command): Ditto.
803         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
804         * tui/tui-stack.c (tui_make_status_line): Ditto.
805         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
806
807 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
808
809         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
810         it when looking at ptr->func.
811         * command.h (complete_on_cmdlist): Add a fourth arg.
812         * completer.c (complete_line_internal): Add local ignore_help_classes,
813         and set it to 1 when reason is not handle_help.  Pass this down to
814         lookup_cmd_1 and complete_on_cmdlist.
815
816 2012-11-20  Tom Tromey  <tromey@redhat.com>
817
818         * completer.c (count_struct_fields): Remove.
819         (expression_completer): Don't call count_struct_fields.
820
821 2012-11-20  Pedro Alves  <palves@redhat.com>
822
823         * annotate.c (breakpoints_changed): Rename to ...
824         (annotate_breakpoints_changed): ... this.
825         (annotate_stopped, breakpoint_changed): Adjust caller.
826         * annotate.h (breakpoints_changed): Rename to ...
827         (annotate_breakpoints_changed): ... this.
828         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
829         (do_map_commands_command, init_raw_breakpoint, clear_command)
830         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
831
832 2012-11-20  David S. Miller  <davem@davemloft.net>
833
834         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
835         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
836         sysconf.
837         (get_cores_used_by_process): Update comment.
838
839 2012-11-20  Yao Qi  <yao@codesourcery.com>
840
841         * objfiles.c (init_entry_point_info): Remove trailing spaces.
842
843 2012-11-20  Yao Qi  <yao@codesourcery.com>
844
845         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
846         to deprecated_context_hook.
847
848 2012-11-19  Yao Qi  <yao@codesourcery.com>
849
850         * infrun.c (infwait_state): Add static.
851
852 2012-11-16  Keith Seitz  <keiths@redhat.com>
853
854         PR c++/13615
855         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
856         parameter and pass it to lookup_symbol_file.
857         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
858         to search base classes.
859         (cp_lookup_symbol_namespace): Likewise.
860         (lookup_namespace_scope): Likewise.
861         (lookup_symbol_file): Add SEARCH parameter.
862         If SEARCH is non-zero and no symbol is found, lookup the class
863         and call cp_lookup_nested_symbol.
864         (find_symbol_in_baseclass): New function.
865         (cp_lookup_nested_symbol): Do not let
866         cp_lookup_symbol_in_namespace search through base classes.
867         Do that later when there is no global symbol match.
868
869 2012-11-16  Doug Evans  <dje@google.com>
870
871         * main.c (gdb_datadir_provided): New static global.
872         (get_init_files): If --data-directory is provided,
873         and SYSTEM_GDBINIT lives in data-directory, look for it there.
874         * NEWS: Mention it.
875
876 2012-11-15  Pierre Muller  <muller@sourceware.org>
877
878         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
879         * gdb_stat.h: Delete. Moved to common directory.
880         * common/gdb_stat.h: New file.
881         * gdb_wait.h: Delete. Moved to common directory.
882         * common/gdb_wait.h: New file.
883         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
884         location.
885         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
886         location.
887         (stat.h rule): Adapt to new gdb_stat.h location.
888         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
889         <sys/stat.h> header.
890         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
891         <sys/wait.h> header.
892
893 2012-11-15  Pierre Muller  <muller@sourceware.org>
894
895         * configure.ac (AC_HEADER_STAT): Remove.
896         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
897         and corresponding code.
898         * configure: Regenerate.
899         * config.in: Regenerate.
900
901 2012-11-15  Pierre Muller  <muller@sourceware.org>
902
903         ARI xasprintf rule fixes.
904         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
905         instead of xasprintf.
906         (open_and_init_dwp_file): Ditto.
907
908 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
909
910         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
911         target types.
912
913 2012-11-14  Tom Tromey  <tromey@redhat.com>
914
915         * configure, config.in: Rebuild.
916         * configure.ac: Don't check for ctype.h, time.h.
917         * expprint.c: Don't use HAVE_CTYPE_H.
918
919 2012-11-13  Tom Tromey  <tromey@redhat.com>
920
921         * gdbarch.h, gdbarch.c: Rebuild.
922         * gdbarch.sh (set_target_gdbarch): Rename from
923         deprecated_target_gdbarch_select_hack.
924         * arch-utils.c (gdbarch_update_p): Update.
925         (set_gdbarch_from_file): Update.
926
927 2012-11-14  Pierre Muller  <muller@sourceware.org>
928
929         * MAINTAINERS (Responsible Maintainers/misc): Add myself
930         as responsible of contrib/ari directory.
931
932 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
933             Yao Qi  <yao@codesourcery.com>
934
935         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
936         bit of EXC_RETURN.
937         (arm_m_exception_cache, arm_m_exception_this_id)
938         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
939         (arm_m_exception_unwind): New.
940         (arm_gdbarch_init): Register arm_m_exception_unwind.
941
942 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
943
944         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
945         parameter COUNT, for pattern filling of memory regions.
946         * NEWS: Mention it.
947
948 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
949
950         * disasm.h (DISASSEMBLY_FILENAME): New macro.
951         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
952         to print_source_lines ().
953         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
954         flag.
955         * source.c (print_source_lines_base): Prefix source line with
956         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
957
958 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
959
960         * symtab.h (print_source_lines_flags): New enum.
961         * source.c (print_source_lines_base): Change noerror to flags.
962         (print_source_lines): Change noerror to flags.
963
964 2012-11-13  Pierre Muller  <muller@sourceware.org>
965
966         ARI fixes: Avoid sprintf function use rule.
967         * charset.c (convert_between_encodings): Use xsnprintf.
968         * cli-out.c (cli_field_int): Likewise.
969         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
970         * expprint.c (op_name_standard): Likewise.
971         * frv-tdep.c (set_variant_num_gprs): Likewise.
972         (set_variant_num_fprs): Likewise.
973         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
974         * nto-tdep.c (nto_find_and_open_solib): Likewise.
975         (nto_init_solib_absolute_prefix): Likewise.
976         * source.c (init_source_path): Likewise.
977         (print_source_lines_base): Likewise.
978         * valprint.c (print_wchar): Likewise.
979         * mi/mi-out.c (mi_field_int): Likewise.
980         windows-nat.c (windows_pid_to_exec_file): Likewise.
981         (windows_create_inferior): Likewise.
982         (_initialize_check_for_gdb_ini): Likewise.
983
984 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
985
986         * frame.h (deprecated_frame_register_read): Renames
987         frame_register_read.
988         * frame.c (deprecated_frame_register_read): Renames
989         frame_register_read.  Update all callers.
990         * i386-tdep.c: Update all callers of frame_register_read.
991         * infcmd.c: Likewise.
992         * jit.c: Likewise.
993         * mips-tdep.c: Likewise.
994         * mt-tdep.c: Likewise.
995         * sh64-tdep.c: Likewise.
996
997 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
998
999         * frame.h (frame_register_read): Remove FIXME comment.
1000         * frame.c (frame_register_read): Add suggestion explaining
1001         which function to use in place of this one.
1002
1003 2012-11-12  Tom Tromey  <tromey@redhat.com>
1004
1005         * python/python.c (start_type_printers): Initialize 'result_obj'.
1006
1007 2012-11-12  Tom Tromey  <tromey@redhat.com>
1008
1009         * NEWS: Update.
1010         * data-directory/Makefile.in (PYTHON_FILES): Add
1011         type_printers.py.
1012         * python/lib/gdb/command/type_printers.py: New file.
1013         * python/lib/gdb/command/types.py (TypePrinter): New class.
1014         (_get_some_type_recognizers, get_type_recognizers,
1015         apply_type_recognizers, register_type_printer): New
1016         functions.
1017         * python/py-objfile.c (objfile_object) <type_printers>: New
1018         field.
1019         (objfpy_dealloc): Decref new field.
1020         (objfpy_new): Set new field.
1021         (objfpy_get_type_printers, objfpy_set_type_printers): New
1022         functions.
1023         (objfile_to_objfile_object): Set new field.
1024         (objfile_getset): Add "type_printers".
1025         * python/py-progspace.c (pspace_object) <type_printers>: New
1026         field.
1027         (pspy_dealloc): Decref new field.
1028         (pspy_new): Set new field.
1029         (pspy_get_type_printers, pspy_set_type_printers): New functions.
1030         (pspace_to_pspace_object): Set new field.
1031         (pspace_getset): Add "type_printers".
1032         * python/python.c (start_type_printers, apply_type_printers,
1033         free_type_printers): New functions.
1034         (_initialize_python): Set gdb.type_printers.
1035         * python/python.h (start_type_printers, apply_type_printers,
1036         free_type_printers): Declare.
1037         * typeprint.c (type_print_raw_options, default_ptype_flags):
1038         Update for new fields.
1039         (do_free_global_table, create_global_typedef_table,
1040         find_global_typedef): New functions.
1041         (find_typedef_in_hash): Use find_global_typedef.
1042         (whatis_exp): Use create_global_typedef_table.  Change cleanup
1043         handling.
1044         * typeprint.h (struct type_print_options) <global_typedefs,
1045         global_printers>: New fields.
1046
1047 2012-11-12  Tom Tromey  <tromey@redhat.com>
1048
1049         * c-typeprint.c (find_typedef_for_canonicalize,
1050         print_name_maybe_canonical): New functions.
1051         (c_print_type): Look up type name.
1052         (cp_type_print_derivation_info): Add flags argument.  Use
1053         print_name_maybe_canonical.
1054         (cp_type_print_method_args): Add wrapping.
1055         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1056         (c_type_print_template_args): New function.
1057         (c_type_print_base): Change wrapping.  Use
1058         print_name_maybe_canonical.
1059         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1060         type name lookups.
1061         * gdbtypes.c (types_equal): No longer static.
1062         * gdbtypes.h (types_equal): Declare.
1063         * typeprint.c (type_print_raw_options, default_ptype_flags):
1064         Update.
1065         (struct typedef_hash_table): New.
1066         (hash_typedef_field, eq_typedef_field,
1067         recursively_update_typedef_hash, add_template_parameters,
1068         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1069         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1070         copy_typedef_hash, find_typedef_in_hash): New functions.
1071         * typeprint.h (struct type_print_options) <local_typedefs>:
1072         New field.
1073         (recursively_update_typedef_hash, add_template_parameters,
1074         create_typedef_hash, free_typedef_hash,
1075         make_cleanup_free_typedef_hash, copy_typedef_hash,
1076         find_typedef_in_hash): Declare.
1077
1078 2012-11-12  Tom Tromey  <tromey@redhat.com>
1079
1080         * cp-support.c (inspect_type,
1081         replace_typedefs_qualified_name, replace_typedefs): Add
1082         finder, data arguments.  Call as needed.
1083         (cp_canonicalize_string_full): New function.
1084         (cp_canonicalize_string_no_typedefs): Rewrite.
1085         * cp-support.h (canonicalization_ftype): New typedef.
1086         (cp_canonicalize_string_full): Declare.
1087
1088 2012-11-12  Tom Tromey  <tromey@redhat.com>
1089
1090         * NEWS: Update.
1091         * c-typeprint.c (c_type_print_base): Handle print_method and
1092         print_typedefs flags.
1093         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1094         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1095         options.
1096         * typeprint.c (type_print_raw_options, default_ptype_flags):
1097         Update for new field.s
1098         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
1099         (setprinttypelist, showprinttypelist, print_methods,
1100         print_typedefs): New globals.
1101         (set_print_type, show_print_type, set_print_type_methods,
1102         show_print_type_methods, set_print_type_typedefs,
1103         show_print_type_typedefs): New functions.
1104         (_initialize_typeprint): Update documentation.  Add "print
1105         type methods" and "print type typedefs" parameters.
1106         * typeprint.h (struct type_print_options) <print_methods,
1107         print_typedefs>: New fields.
1108
1109 2012-11-12  Tom Tromey  <tromey@redhat.com>
1110
1111         * c-typeprint.c (cp_type_print_method_args): Add flags
1112         argument.  Call c_print_type, not type_print.
1113         (c_type_print_base): Call c_print_type, not type_print.
1114         Update.
1115
1116 2012-11-12  Tom Tromey  <tromey@redhat.com>
1117
1118         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1119         to type-printing functions.
1120         * ada-lang.h (ada_print_type): Add argument.
1121         * ada-typeprint.c (print_array_type, print_variant_clauses,
1122         print_variant_part, print_selected_record_field_types,
1123         print_record_field_types, print_unchecked_union_type,
1124         print_func_type, ada_print_type): Add flags argument.
1125         (ada_print_typedef): Update.
1126         * c-exp.y (OPERATOR conversion_type_id): Update.
1127         * c-lang.h (c_print_type, c_type_print_base): Update.
1128         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1129         c_type_print_modifier, c_type_print_args,
1130         c_type_print_varspec_suffix, c_type_print_base): Add flags
1131         argument.
1132         * cp-valprint.c (cp_print_class_member): Update.
1133         * dwarf2read.c (dwarf2_compute_name): Update.
1134         * f-lang.h (f_print_type): Add argument.
1135         * f-typeprint.c (f_print_type): Add flags argument.
1136         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1137         * go-lang.h (go_print_type): Add argument.
1138         * go-typeprint.c (go_print_type): Add flags argument.
1139         * jv-lang.h (java_print_type): Add argument.
1140         * jv-typeprint.c (java_type_print_base, java_print_type): Add
1141         flags argument.
1142         * language.c (unk_lang_print_type): Add flags argument.
1143         * language.h (struct language_defn) <la_print_type>: Add flags
1144         argument.
1145         (LA_PRINT_TYPE): Likewise.
1146         * m2-lang.h (m2_print_type): Add argument.
1147         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1148         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1149         m2_unbounded_array, m2_record_fields): Add flags argument.
1150         * p-lang.h (pascal_print_type, pascal_type_print_base,
1151         pascal_type_print_varspec_prefix): Add argument.
1152         * p-typeprint.c (pascal_print_type,
1153         pascal_type_print_varspec_prefix, pascal_print_func_args,
1154         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1155         flags argument.
1156         * symmisc.c (print_symbol): Update.
1157         * typeprint.c (type_print_raw_options, default_ptype_flags):
1158         New globals.
1159         (type_print): Update.
1160         * typeprint.h (struct type_print_options): New.
1161         (type_print_raw_options): Declare.
1162         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1163
1164 2012-11-10  Keith Seitz  <keiths@redhat.com>
1165
1166         * breakpoint.c (clear_command): Add cleanup for
1167         sals.sals if an argument is given.
1168
1169         * linespec.c (parse_linespec): Do cleanups after
1170         parsing a convenience variable.
1171
1172 2012-11-10  Keith Seitz  <keiths@redhat.com>
1173
1174         PR gdb/14288
1175         * c-valprint.c (c_val_print): For character arrays
1176         with "print null" option on, print ellipses if
1177         the output is truncated and the next character is not \000.
1178         * valprint.c (MAX_WCHARS): Define.
1179         (WCHAR_BUFLEN): Likewise.
1180         (WCHAR_BUFLEN_MAX): Likewise.
1181         (struct converted_character): New structure.
1182         (count_next_character): New function.
1183         (print_converted_chars_to_obstack): New function.
1184         (generic_printstr): Rewrite using count_next_character
1185         and print_converted_chars_to_obstack.
1186
1187 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1188
1189         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1190         while executing the gdb command.
1191         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1192         are called from prompt_for_continue.
1193         * tui/tui-io.c (tui_redisplay_readline): Likewise.
1194
1195 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
1196
1197         PR tui/9584
1198
1199         * tui/tui.c (tui_rl_command_key): Do not call execute_command
1200         but insert the command to execute in readline's buffer.
1201
1202 2012-11-09  Tom Tromey  <tromey@redhat.com>
1203
1204         * gdbarch.sh (target_gdbarch): Remove macro.
1205         (get_target_gdbarch): Rename to target_gdbarch.
1206         * gdbarch.c, gdbarch.h: Rebuild.
1207         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1208         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1209         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1210         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1211         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1212         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1213         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1214         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1215         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1216         procfs.c, progspace.c, ravenscar-thread.c, record.c,
1217         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1218         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1219         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1220         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1221         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1222         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1223         target-descriptions.c, target.c, target.h, tracepoint.c,
1224         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1225         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1226         python/py-inferior.c, python/python.c: Update.
1227
1228 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
1229
1230         * source.c (print_source_lines_base): Add fullname field giving
1231         full path to file in mi output.
1232         * NEWS: Mention the new fullname field.
1233
1234 2012-11-09  Yao Qi  <yao@codesourcery.com>
1235
1236         * NEWS: Mention the fix to the ambiguity of 'fo' command.
1237
1238 2012-11-09  Pedro Alves  <palves@redhat.com>
1239
1240         PR gdb/14306
1241
1242         * infrun.c: Include target-descriptions.h.
1243         (follow_exec): Fetch new target description.
1244
1245 2012-11-09  Yao Qi  <yao@codesourcery.com>
1246
1247         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1248         0x8d (lea).
1249
1250 2012-11-09  Yao Qi  <yao@codesourcery.com>
1251
1252         * breakpoint.c: Declare set_tracepoint_count.
1253         (install_breakpoint): Call set_tracepoint_count if B is a
1254         tracepoint.
1255         (trace_command): Don't call set_tracepoint_count.  Re-indent.
1256         (strace_command, ftrace_command):
1257         (create_tracepoint_from_upload): Likewise.
1258
1259 2012-11-09  Pedro Alves  <palves@redhat.com>
1260
1261         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1262         (get_target_gdbarch) <gdbarch.h>: New function.
1263         (startup_gdbarch) <gdbarch.h>: Declare.
1264         <gdbarch.c> (target_gdbarch): Delete.
1265         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1266         current inferior's gdbarch.
1267         <gdbarch.c> (get_target_gdbarch): New function.
1268         * inferior.c: Include target-descriptions.h.
1269         (free_inferior): Free target description info.
1270         (add_inferior_with_spaces): Set the inferior's initial
1271         architecture.
1272         (clone_inferior_command): Copy the original inferior's target
1273         description if it was user specified.
1274         (initialize_inferiors): Add comment.
1275         * inferior.h (struct target_desc_info): Forward declare.
1276         (struct inferior) <gdbarch>: New field.
1277         * linux-nat.c: Include target-descriptions.h.
1278         (linux_child_follow_fork): Copy the parent's architecture and
1279         target description to the child.
1280         * target-descriptions.c: Include inferior.h.
1281         (struct target_desc_info): New structure, holding the equivalents
1282         of ...
1283         (target_desc_fetched, current_target_desc)
1284         (target_description_filename): ... these removed globals.
1285         (get_tdesc_info, target_desc_info_from_user_p)
1286         (copy_inferior_target_desc_info, target_desc_info_free): New.
1287         (target_desc_fetched, current_target_desc)
1288         (target_description_filename): Reimplemented as convenience
1289         macros.
1290         (tdesc_filename_cmd_string): New global.
1291         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1292         tdescs filename ..." commands to the per-inferior equivalent.
1293         (show_tdesc_filename_cmd): Get the value to show from the
1294         per-inferior description filename.
1295         (_initilize_target_descriptions): Change the "set/show tdesc
1296         filename" commands' variable.
1297         * target-descriptions.h (struct target_desc, struct target_desc_info)
1298         (struct inferior): Forward declare.
1299         (target_find_description, target_clear_description)
1300         (target_current_description): Adjust comments.
1301         (copy_inferior_target_desc_info, target_desc_info_free)
1302         (target_desc_info_from_user_p). Declare.
1303
1304 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1305
1306         * tui/tui-hooks.c (tui_about_to_proceed): New function.
1307         (tui_target_wait_hook): Remove.
1308         (tui_install_hooks): Install the about_to_proceed observer.
1309         (tui_remove_hooks): And remove it here.
1310
1311 2012-11-08  Tom Tromey  <tromey@redhat.com>
1312
1313         * linux-tdep.c (linux_make_siginfo_note): New function.
1314         (linux_make_corefile_notes): Use it.
1315         * corelow.c (get_core_siginfo): New function.
1316         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1317
1318 2012-11-08  Tom Tromey  <tromey@redhat.com>
1319
1320         PR gdb/14704:
1321         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1322         (zlib_decompress_section): Remove.
1323         (gdb_bfd_map_section): Only check for compressed section
1324         in mmap case.  Use bfd_get_full_section_contents.
1325         * osabi.c (check_note): Add 'sectsize' argument.  Read
1326         section data.
1327         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1328         section data.  Update for check_note change.
1329         * xcoffread.c (xcoff_initial_scan): Use
1330         bfd_get_full_section_contents.
1331         * py-auto-load.c (auto_load_section_scripts): Use
1332         bfd_get_full_section_contents.
1333         * contrib/cc-with-tweaks.sh: Add -Z option.
1334
1335 2012-11-08  Tom Tromey  <tromey@redhat.com>
1336
1337         * python/py-bpevent.c: Include defs.h.
1338         * python/py-continueevent.c: Include defs.h.
1339         * python/py-event.c: Include defs.h.
1340         * python/py-event.h: Don't include defs.h.
1341         * python/py-events.h: Don't include defs.h.
1342         * python/py-evts.c: Include defs.h.
1343         * python/py-exitedevent.c: Include defs.h.
1344         * python/py-newobjfileevent.c: Include defs.h.
1345         * python/py-signalevent.c: Include defs.h.
1346         * python/py-stopevent.c: Include defs.h.
1347         * python/py-threadevent.c: Include defs.h.
1348
1349 2012-11-08  Pierre Muller  <muller@sourceware.org>
1350
1351         * update-web-ari.sh (print_heading): Add number of files
1352         checked.
1353         (nb_files): New variable counting the number of sources
1354         files found by gdb_find.sh script.
1355         (debug_awk): New variable to allow extra debug output.
1356         (indexes): Add more information if DEBUG_AWK is set.
1357
1358 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1359
1360         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1361         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1362         following the change in PLT call stubs on linker.
1363
1364 2012-11-08  Pierre Muller  <muller@sourceware.org>
1365
1366         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1367         as default language.
1368         (AWK): Use = instead of == for sh test to avoid warning.
1369         (Linux rule): Correct [:digit] into [[:digit:]].
1370         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1371         (vasprintf rule): Adapt to common subdirectory moves.
1372         (xasprintf rule): Idem.
1373         (xvasprintf rule): Idem.
1374         (var_boolean rule): Accept occurence in == or != test.
1375
1376         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1377
1378 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
1379
1380         * tui/tui-hooks.c (tui_inferior_exit): New function.
1381         (tui_detach_hook): Remove.
1382         (tui_install_hooks): Install the inferior exit observer.
1383         (tui_remove_hooks): Remove it.
1384
1385 2012-11-08  Yao Qi  <yao@codesourcery.com>
1386
1387         PR gdb/14777.
1388         * source.c (_initialize_source): Call add_com_alias to abbreviate
1389         'forward-search' as 'fo'.
1390
1391 2012-11-07  Pedro Alves  <palves@redhat.com>
1392
1393         * arm-tdep.c: Make defs.h be the first include.
1394         * coff-pe-read.c: Ditto.
1395         * gnu-nat.c: Ditto.
1396         * go32-nat.c: Ditto.
1397         * i386-nat.c: Ditto.
1398         * ppcnbsd-nat.c: Ditto.
1399         * ada-varobj.h: Don't include defs.h.
1400         * i386-darwin-tdep.h: Ditto.
1401         * i386-nat.h: Ditto.
1402
1403 2012-11-07  Pedro Alves  <palves@redhat.com>
1404
1405         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1406         Committee.
1407
1408 2012-11-07  Pierre Muller  <muller@sourceware.org>
1409
1410         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1411         File already uses "gdb_dirent.h" header.
1412
1413 2012-11-07  Yao Qi  <yao@codesourcery.com>
1414
1415         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1416         tracepoint_count'.
1417
1418 2012-11-06  Tom Tromey  <tromey@redhat.com>
1419
1420         * target.h (inferior_has_forked, inferior_has_vforked)
1421         (inferior_has_execd, inferior_has_called_syscall): Remove
1422         declarations.
1423
1424 2012-11-06  Pierre Muller  <muller@sourceware.org>
1425
1426         * remote.c (remote_insert_hw_breakpoint): ARI fix,
1427         add missing internalization markup.
1428
1429 2012-11-06  Pedro Alves  <palves@redhat.com>
1430
1431         PR gdb/14810
1432
1433         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1434
1435 2012-11-06  Pierre Muller  <muller@sourceware.org>
1436
1437         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1438         is not executable.
1439
1440 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
1441
1442         * gnulib/update-gnulib.sh: New script.
1443
1444 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
1445
1446         * MAINTAINERS: Update my email address.
1447
1448 2012-11-05  Tom Tromey  <tromey@redhat.com>
1449
1450         * frame.c (put_frame_register): Don't use temporary buffer.
1451
1452 2012-11-05  Pedro Alves  <palves@redhat.com>
1453
1454         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1455         child.  Clear 'pending_detach'.
1456         * infrun.c (handle_vfork_child_exec_or_exit): Clear
1457         'pending_detach' in the vfork parent.
1458
1459 2012-11-05  Doug Evans  <dje@google.com>
1460
1461         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
1462         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1463         * dwarf2read.c: #include "elf-bfd.h".
1464         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1465         (dwop_section_names): Renamed from dwo_section names.  All uses
1466         updated.  Add entries for .debug_cu_index, .debug_tu_index.
1467         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1468         All uses updated.
1469         (struct dwp_sections): New type.
1470         (struct virtual_dwo_sections): New type.
1471         (struct dwp_hash_table): New type.
1472         (struct dwp_file): New type.
1473         (init_cutu_and_read_dies): Ensure DWO info/types section has been
1474         read in.  Handle DWOs coming from DWP files.
1475         (lookup_dwo_file_slot): New function.
1476         (dwarf2_locate_dwo_sections): Move definition closer to use.
1477         (create_dwo_debug_info_hash_table_reader): Renamed from
1478         create_debug_info_hash_table_reader.  All callers updated.
1479         (create_dwo_debug_info_hash_table): Renamed from
1480         create_debug_info_hash_table.  All callers updated.
1481         (create_dwp_hash_table): New function.
1482         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1483         (lookup_dwo_in_dwp): New function.
1484         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
1485         is_dwp.  All callers updated.
1486         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
1487         (open_and_init_dwo_file): Renamed from init_dwo_file.
1488         All callers updated.
1489         (lookup_dwo_file): Delete.
1490         (dwarf2_locate_dwp_sections): New function.
1491         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1492         (allocate_dwp_loaded_cutus_table): New function.
1493         (open_and_init_dwp_file): New function.
1494         (lookup_dwo_cutu): New function.
1495         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1496
1497 2012-11-03  Yao Qi  <yao@codesourcery.com>
1498
1499         Fix PR gdb/14617.
1500         * breakpoint.c (trace_pass_set_count): Call
1501         observer_notify_breakpoint_modified instead of
1502         observer_notify_tracepoint_modified.
1503         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1504
1505 2012-11-02  Tom Tromey  <tromey@redhat.com>
1506
1507         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1508         argument to complete_on_enum.
1509
1510 2012-11-02  Tom Tromey  <tromey@redhat.com>
1511
1512         * configure: Rebuild.
1513         * configure.ac (build_warnings): Add -Wempty-body.
1514         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1515         * remote.c (handle_notification): Use braces for empty 'else' body.
1516         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1517         'else' body.
1518         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1519         'else' body.
1520         * solib-som.c (som_relocate_section_addresses): Use braces
1521         for empty 'else' body.
1522         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1523         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1524
1525 2012-11-02  Pedro Alves  <palves@redhat.com>
1526
1527         PR gdb/14766
1528
1529         * infrun.c (handle_inferior_event)
1530         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1531         null_ptid before handling a vfork child exec or exit.  Switch to
1532         the event ptid afterwards.
1533
1534 2012-11-02  Yao Qi  <yao@codesourcery.com>
1535
1536         * std-operator.def: Remove OP_LABELED.
1537         * eval.c: Remove the declaration of 'get_label'.
1538         (get_label): Remove.
1539         (evaluate_struct_tuple): Remove code handling OP_LABELED.
1540         Update comment.
1541         Remove local variable 'variantno' and related code.
1542         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
1543         with 'fieldno'.
1544         * expprint.c (print_subexp_standard): Likewise.
1545         (dump_subexp_body_standard): Likewise.
1546         * parse.c (operator_length_standard): Likewise.
1547
1548 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
1549
1550         Incorporate ARI web page generator into GDB sources.
1551         * contrib/ari/create-web-ari-in-src.sh: New file.
1552         * contrib/ari/gdb_ari.sh: New file.
1553         * contrib/ari/gdb_find.sh: New file.
1554         * contrib/ari/update-web-ari.sh: New file.
1555
1556 2012-10-31  Tom Tromey  <tromey@redhat.com>
1557
1558         * gdbarch.c: Rebuild.
1559         * gdbarch.sh: Remove references to gdbarch_swap.
1560         * corelow.c (core_open): Remove obsolete comment.
1561
1562 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
1563
1564         PR cli/14772
1565         * c-typeprint.c (c_print_type): Don't print a space for vector
1566         types, this is handled within the suffix.
1567         (c_type_print_varspec_suffix): Add a space to vector suffix.
1568
1569 2012-10-26  Pedro Alves  <palves@redhat.com>
1570
1571         * amd64-tdep.c (amd64_relocate_instruction): Use
1572         store_unsigned_integer instead of memcpy.
1573         * i386-tdep.c (i386_relocate_instruction): Ditto.
1574
1575 2012-10-26  Pedro Alves  <palves@redhat.com>
1576
1577         * infrun.c (handle_inferior_event): Merge handling of
1578         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1579         switch case.
1580
1581 2012-10-26  Pedro Alves  <palves@redhat.com>
1582
1583         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1584         Remove comment.
1585
1586 2012-10-26  Pedro Alves  <palves@redhat.com>
1587
1588         * target.c (target_waitstatus_to_string): Handle
1589         TARGET_WAITKIND_VFORK_DONE.
1590
1591 2012-10-26  Pedro Alves  <palves@redhat.com>
1592
1593         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1594         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1595
1596 2012-10-24  Tristan Gingold  <gingold@adacore.com>
1597
1598         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1599         Add comments.
1600
1601 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1602
1603         * ravenscar-thread.c (ravenscar_wait): Only update the list
1604         of threads and inferior_ptid if the inferior is still alive.
1605
1606 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1607
1608         * ada-lang.c (is_known_support_routine): Use lbasename when
1609         matching the symtab's filename against
1610         known_runtime_file_name_patterns.
1611
1612 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1613
1614         * ada-lang.c (ada_same_array_size_p): New function.
1615         (ada_promote_array_of_integrals): New function.
1616         (coerce_for_assign): Add handling of arrays where the elements
1617         are integrals of a smaller size than the size of the target
1618         array element type.
1619
1620 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1621
1622         * doublest.c (convert_doublest_to_floatformat): Fix comparison
1623         against maximum exponent value.
1624
1625 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1626
1627         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1628         "unwind-seh.c".
1629
1630 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1631
1632         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1633         strip typedef layer when computing the fixed type's field type,
1634         only when computing its size.
1635
1636 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
1637
1638         PR gdb/12783
1639         * i386-tdep.c (i386_return_value): Handle complex double and long
1640         double.
1641
1642 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
1643
1644         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1645         New local variable args_len.
1646         Quote the name of the executable when computing the command line.
1647
1648 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
1649
1650         PR gdb/12796
1651         PR gdb/12798
1652         PR gdb/12800
1653         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1654         AMD64_FTAG_REGNUM.
1655         * amd64-tdep.c (amd64_classify): Classify complex types.
1656         (amd64_return_value): Handle the COMPLEX_X87 class.
1657
1658 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1659
1660         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1661         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1662
1663 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1664
1665         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1666         function.
1667         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1668         to amd64_windows_auto_wide_charset.
1669
1670 2012-10-23  Yao Qi  <yao@codesourcery.com>
1671
1672         * event-top.c (mark_async_signal_handler_wrapper): Remove.
1673         * event-top.h: Remove its declaration.
1674         (async_request_quit): Call mark_async_signal_handler instead of
1675         mark_async_signal_handler_wrapper.
1676         (async_do_nothing, async_disconnect): Likewise.
1677         (async_stop_sig): Likewise.
1678         * remote.c (handle_remote_sigint): Likewise.
1679         (handle_remote_sigint_twice): Likewise.
1680
1681 2012-10-23  Yao Qi  <yao@codesourcery.com>
1682
1683         * event-top.c (sigint_token, sighup_token): Replace 'void *'
1684         with 'static struct async_signal_handler *'.
1685         (sighup_token, sigquit_token, sigstp_token): Likewise.
1686
1687 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
1688
1689         * gdbarch.sh (function_list): Use 'pstring' when printing
1690         a variable which could return NULL.
1691         * gdbarch.c: Regenerate.
1692
1693 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
1694             Tom Tromey  <tromey@redhat.com>
1695
1696         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1697         inneffective if condition by gdb assertion.  Add function
1698         description comment.
1699
1700 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
1701
1702         * parser-defs.h (struct exp_descriptor): Document constraint
1703         on return value for "op_name" callbacks.
1704
1705 2012-10-18  Tom Tromey  <tromey@redhat.com>
1706
1707         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1708         * symtab.c (iterate_over_some_symtabs): Constify.
1709         * source.h (symtab_to_fullname): Return 'const char *'.
1710         * source.c (symtab_to_fullname): Return 'const char *'.
1711         * python/py-symtab.c (stpy_fullname): Constify.
1712         * cli/cli-cmds.c (edit_command): Constify.
1713         * breakpoint.c (print_breakpoint_location)
1714         (update_static_tracepoint): Constify.
1715
1716 2012-10-18  Tom Tromey  <tromey@redhat.com>
1717
1718         * breakpoint.c (compare_breakpoints): Fix comparison.
1719
1720 2012-10-18  Tom Tromey  <tromey@redhat.com>
1721
1722         * valprint.c (generic_emit_char, generic_printstr): Pass size of
1723         gdb_wchar_t to convert_between_encodings.
1724
1725 2012-10-17  Yao Qi  <yao@codesourcery.com>
1726
1727         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1728         more parameter 'inferior'.
1729         * corefile.c (write_memory_with_notification): Caller update.
1730
1731         * mi/mi-cmd-var.c: Include "mi-main.h".
1732         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1733         to 1 and restore it later.
1734         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1735         and "data-write-memory-bytes.
1736         * mi/mi-interp.c: Include objfiles.h.
1737         (mi_interpreter_init): Call observer_attach_memory_changed.
1738         (mi_memory_changed): New.
1739         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1740         New field.
1741
1742         * NEWS: Mention new MI notification "memory-changed".
1743
1744 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1745
1746         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1747
1748 2012-10-15  Doug Evans  <dje@google.com>
1749
1750         New option -nh: inhibit loading of ~/.gdbinit.
1751         * NEWS: Mention -nh.
1752         * main.c (captured_main): Recognize and process -nh.
1753         (print_gdb_help): Mention -nh.
1754         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
1755
1756 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1757
1758         PR backtrace/14646
1759         PR gdb/14647
1760         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1761         pc_regnum_from_eax.
1762         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1763         nor pc_regnum_from_eax.
1764         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1765         nor pc_regnum_from_eax.
1766
1767 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1768
1769         Fix entry values resolving in inlined frames.
1770         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1771         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1772         entries of FRAME.
1773
1774 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1775
1776         * configure.ac: Build with -DMS_WIN64 if building with Python
1777         enabled using GCC on amd64-windows.
1778         * configure: Regenerate.
1779
1780 2012-10-15  Tom Tromey  <tromey@redhat.com>
1781
1782         PR python/14635:
1783         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1784         to Py_None.
1785
1786 2012-10-15  Tom Tromey  <tromey@redhat.com>
1787
1788         PR python/14634:
1789         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1790
1791 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1792
1793         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1794         reset thread numbering back to 1.
1795
1796 2012-10-11  Doug Evans  <dje@google.com>
1797
1798         PR breakpoints/14643.
1799         * linespec.c (struct ls_parser): New member keyword_ok.
1800         (linespec_lexer_lex_string): Add comment.
1801         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1802         for one.
1803         (parse_linespec): Set keyword_ok.
1804
1805 2012-10-10  Doug Evans  <dje@google.com>
1806
1807         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1808         "0x" prefix on address in log message.
1809
1810         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1811         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1812         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1813         (lookup_dwo_file): Add const to dwo_name parameter.
1814         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1815
1816 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1817
1818         Fix crash during stepping on ppc32.
1819         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1820         SYM.
1821
1822 2012-10-03  Doug Evans  <dje@google.com>
1823
1824         PR symtab/14601
1825         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1826
1827 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1828
1829         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1830         output and use uint32_t not long to ensure 4 byte size.
1831
1832 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1833
1834         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1835         unref'ed it.
1836
1837 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1838
1839         * target.c (simple_search_memory): Include access length in
1840         warning message.
1841
1842 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1843             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1844
1845         PR gdb/13989
1846         * solib.c (solib_find): Prevent GDB from loading native libraries when
1847         debugging a cross-target corefile.
1848
1849 2012-09-28  selven  <pcthegreat@gmail.com>
1850
1851         Make definition match declaration.
1852
1853         * regcache.c (regcache_register_status): Change return type to
1854         enum register_status.
1855
1856 2012-09-28  Yao Qi  <yao@codesourcery.com>
1857
1858         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1859         write_memory_with_notification instead of write_memory.
1860         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1861         instead of target_write_memory.
1862
1863 2012-09-28  Yao Qi  <yao@codesourcery.com>
1864
1865         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1866         when the length of content is not an even number.
1867
1868 2012-09-27  Tom Tromey  <tromey@redhat.com>
1869
1870         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1871         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1872
1873 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1874
1875         * sol-thread.c (sol_thread_fetch_registers)
1876         (sol_thread_store_registers): Delete commented out code.
1877
1878 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1879
1880         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1881         Move these functions to sparc-sol-thread.c.
1882         * sparc-sol-thread.c: New file.
1883         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1884         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1885         configurations.
1886         * configure: Regenerate.
1887
1888 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1889
1890         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1891         Remove commented-out code.
1892
1893 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1894
1895         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1896         Enable this code for sparc hosts only.
1897
1898 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1899
1900         * procfs.h (procfs_find_LDT_entry): Add declaration.
1901         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1902         function procfs_find_LDT_entry.
1903
1904 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1905
1906         * procfs.c (proc_get_LDT_entry): Make static.
1907
1908 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1909
1910         * procfs.c (proc_find_memory_regions): Fix declaration.
1911
1912 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1913
1914         * amd64-tdep.c (amd64_return_value): Revert previous change
1915         that used TYPE_LENGTH directly.
1916         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1917         (bfin_store_return_value): Likewise.
1918         * cris-tdep.c (cris_store_return_value): Likewise.
1919         (cris_extract_return_value): Likewise.
1920         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1921         * hppa-tdep.c (hppa64_return_value): Likewise.
1922         * lm32-tdep.c (lm32_store_return_value): Likewise.
1923         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1924         * spu-tdep.c (spu_value_from_register): Likewise.
1925         * vax-tdep.c (vax_return_value): Likewise.
1926
1927 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1928
1929         * gdbtypes.c (lookup_array_range_type): Expand parameters
1930         LOW_BOUND and HIGH_BOUND to LONGEST.
1931         (lookup_string_range_type): Likewise.
1932         * gdbtypes.h (lookup_array_range_type): Likewise.
1933         (lookup_string_range_type): Likewise.
1934         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1935         Expand HIGHBOUND to ssize_t.
1936         (value_string): Likewise.
1937         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1938         (value_string): Likewise.
1939
1940 2012-09-27  Yao Qi  <yao@codesourcery.com>
1941
1942         PR breakpoints/13898
1943         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1944         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1945         per breakpoint type.
1946
1947 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1948
1949         * procfs.c: Add gdb_bfd header.
1950         * rs6000-nat.c: Likewise.
1951         * solib-pa64.c: Likewise.
1952         * spu-linux-nat.c: Likewise.
1953         * windows-nat.c: Likewise.
1954
1955 2012-09-26  Tom Tromey  <tromey@redhat.com>
1956
1957         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1958
1959 2012-09-26  Tom Tromey  <tromey@redhat.com>
1960
1961         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1962         (read_common_block): Handle child DIEs with
1963         DW_AT_data_member_location.
1964         (new_symbol_full): Add special case for common blocks.
1965
1966 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1967             Tom Tromey  <tromey@redhat.com>
1968
1969         * dwarf2read.c (read_common_block): Rewrite.
1970         (new_symbol_full): Handle DW_TAG_common_block.
1971         * f-lang.c (head_common_list, find_common_for_function):
1972         Remove.
1973         * f-lang.h (struct common_entry, struct saved_f77_common,
1974         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1975         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1976         BLANK_COMMON_NAME_LOCAL): Remove.
1977         (struct common_block): New.
1978         * f-valprint.c (list_all_visible_commons): Remove.
1979         (info_common_command_for_block): New function.
1980         (info_common_command): Use it.
1981         * stack.c (iterate_over_block_locals): Special case for
1982         COMMON_BLOCK_DOMAIN.
1983         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1984         constant.
1985         (struct general_symbol_info) <value.common_block>: New field.
1986         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1987
1988 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1989             Tom Tromey  <tromey@redhat.com>
1990
1991         * f-lang.c (allocate_saved_bf_node,
1992         allocate_saved_function_node, allocate_saved_f77_common_node,
1993         allocate_common_entry_node, tail_common_list, current_common,
1994         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1995         tmp_bf_ptr, add_common_block, add_common_entry,
1996         find_first_common_named, patch_common_entries,
1997         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1998         global_remote_debug, get_bf_for_fcn, saved_function_list,
1999         saved_function_list_end, clear_function_list, struct saved_fcn,
2000         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2001         SAVED_BF, SAVED_BF_PTR): Remove.
2002         * f-lang.h (tail_common_list, current_common,
2003         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2004         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2005         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2006         real_main_c_value): Remove.
2007         * f-valprint.c (there_is_a_visible_common_named): Remove.
2008
2009 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
2010
2011         * breakpoint.c (update_global_location_list): Ignore previous
2012         duplicate status of a breakpoint when starting a new scan for
2013         duplicate breakpoints.
2014
2015 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
2016         PR breakpoints/14419
2017         * arm-tdep.c (arm_skip_prologue): Extending producer check to
2018         support LLVM compiler.
2019
2020 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2021
2022         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2023         * bfin-tdep.c (bfin_extract_return_value): Likewise.
2024         (bfin_store_return_value): Likewise.
2025         * cris-tdep.c (cris_store_return_value): Likewise.
2026         (cris_extract_return_value): Likewise.
2027         * h8300-tdep.c (h8300_extract_return_value): Likewise.
2028         * hppa-tdep.c (hppa64_return_value): Likewise.
2029         * lm32-tdep.c (lm32_store_return_value): Likewise.
2030         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2031         * spu-tdep.c (spu_value_from_register): Likewise.
2032         * vax-tdep.c (vax_return_value): Likewise.
2033
2034 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2035
2036         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2037         parameter LEN to ssize_t.
2038
2039 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2040
2041         * ada-valprint.c (ada_val_print_1): Eliminate single-use
2042         variable LEN.
2043         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2044         directly.
2045         (alpha_store_return_value): Likewise.
2046         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2047         (amd64_push_arguments): Likewise.
2048         * ax-gdb.c (gen_trace_static_fields): Likewise.
2049         (gen_traced_pop): Likewise.
2050         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2051         * breakpoint.c (update_watchpoint): Likewise.
2052         * findcmd.c (parse_find_args): Use local variable for type
2053         instead of length.
2054         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2055         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2056         (h8300_store_return_value): Likewise.
2057         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2058         Use i386_darwin_arg_type_alignment directly.
2059         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2060         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2061         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2062         (m68hc11_extract_return_value): Likewise.
2063         * mep-tdep.c (mep_push_dummy_call): Likewise.
2064         * printcmd.c (float_type_from_length): Likewise.
2065         * s390-tdep.c (s390_value_from_register): Likewise.
2066         * stack.c (read_frame_arg): Likewise.
2067         * tracepoint.c (encode_actions_1): Likewise.
2068         * valops.c (value_fetch_lazy): Use local variable for type
2069         instead of length.  Use TYPE_LENGTH directly.
2070         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2071
2072 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2073
2074         * symtab.c (skip_prologue_sal): Fix typo in comment.
2075
2076 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
2077
2078         * linespec.c (create_sals_line_offset): Fix typo in comment.
2079
2080 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2081
2082         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2083         use plongest to print the array size.
2084
2085 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2086
2087         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2088         * p-valprint.c (pascal_type_print_base): Likewise.
2089
2090 2012-09-22  Yao Qi  <yao@codesourcery.com>
2091
2092         * remote.c (remote_get_trace_status): Remove setting default
2093         values of fields of 'ts'.
2094
2095 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2096
2097         Fix internal error on canonicalization of clang types.
2098         * cp-name-parser.y (operator): New comment at make_operator call for
2099         new, delete, new[] and delete[].
2100         (exp): Use "sizeof ".  Add new comment at make_operator call.
2101
2102 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2103
2104         Fix disassemble without parameters in tailcall frame.
2105         * cli/cli-cmds.c (disassemble_current_function): Use
2106         get_frame_address_in_block.
2107
2108 2012-09-21  Tom Tromey  <tromey@redhat.com>
2109
2110         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2111         TYPE_CODE_UNION>: Unify, removing a goto.
2112
2113 2012-09-21  Tom Tromey  <tromey@redhat.com>
2114
2115         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2116
2117 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
2118
2119         * findvar.c (read_frame_register_value): Mark the result value as
2120         optimized out if any of the input registers have been optimized out.
2121
2122 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
2123
2124         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2125
2126 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2127
2128         * eval.c (evaluate_subexp_standard): Eliminate single-use
2129         variable LOWER.
2130
2131 2012-09-21  Yao Qi  <yao@codesourcery.com>
2132
2133         * mi/mi-interp.c: Declare mi_record_changed.
2134         (mi_interpreter_init): Call observer_attach_record_changed.
2135         (mi_record_changed): New.
2136         * record.c (record_open): Call observer_notify_record_changed.
2137         (cmd_record_stop): Call observer_notify_record_changed.
2138         * NEWS: Mention it.
2139
2140 2012-09-20  Tom Tromey  <tromey@redhat.com>
2141
2142         * NEWS: Update.
2143         * python/python.c (finalize_python): New function.
2144         (_initialize_python): Make a final cleanup.
2145
2146 2012-09-19  Doug Evans  <dje@google.com>
2147
2148         * buildsym.h (param_symbols): Delete, unused.
2149         (context_stack): Delete member "params", unused.
2150         * buildsym.c (push_context): Update.
2151         * dwarf2read.c (read_func_scope): Update.
2152
2153 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
2154
2155         * sh-tdep.c (sh_register_convert_to_virtual)
2156         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
2157         all callers.  Just do a memcpy if not the little-endian case.
2158
2159         * h8300-tdep.c (h8300_gdbarch_init): Invoke
2160         set_gdbarch_double_format and set_gdbarch_long_double_format.
2161         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2162         set_gdbarch_double_format.
2163         * sh-tdep.c (sh_gdbarch_init): Likewise.
2164
2165         * NEWS: Document the removal of SH's 'regs' command.
2166         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2167         command.
2168
2169 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
2170
2171         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2172         `jump'.
2173
2174 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
2175
2176         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2177         language when iterating over symbols.
2178
2179 2012-09-18  Yao Qi  <yao@codesourcery.com>
2180
2181         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2182         (mi_interpreter_init): Call observer_attach_tsv_created and
2183         observer_attach_tsv_deleted.
2184         (mi_tsv_created, mi_tsv_deleted): New.
2185         * tracepoint.c (delete_trace_state_variable): Call
2186         observer_notify_tsv_deleted.
2187         (trace_variable_command): Call observer_notify_tsv_created.
2188         (delete_trace_variable_command): Call
2189         observer_notify_tsv_deleted.
2190         (create_tsv_from_upload): Call observer_notify_tsv_created.
2191         * NEWS: Mention it.
2192
2193 2012-09-18  Yao Qi  <yao@codesourcery.com>
2194
2195         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2196         if traceframe changed.
2197         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2198         "trace-find".
2199         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2200         (mi_interpreter_init): Hook mi_traceframe_changed to observer
2201         'traceframe_changed'.
2202         (mi_traceframe_changed): New.
2203         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2204         New field.
2205         * NEWS: Mention the new MI notification.
2206
2207 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
2208
2209         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2210
2211 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2212
2213         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2214         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
2215         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2216         Extend code also for PaX support.  Convert all gdb_assert to warning
2217         calls.
2218
2219 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2220
2221         Implement auto-load user conveniences suggested by Doug Evans.
2222         * auto-load.c: Include top.h.
2223         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
2224         (_initialize_auto_load): New variable scripts_directory_help.  Mention
2225         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2226         scripts-directory.  Document in online help one can use also files for
2227         set auto-load safe-path.
2228         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2229         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2230
2231 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2232
2233         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2234         of LEN.
2235
2236 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2237
2238         * m2-valprint.c (m2_print_array_contents): Eliminate variable
2239         ELTLEN and use TYPE_LENGTH directly.
2240         (m2_val_print): Likewise.
2241         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2242         variable LEN and use TYPE_LENGTH directly.
2243         (m68k_svr4_store_return_value): Likewise.
2244         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2245         ARGLEN and use TYPE_LENGTH directly.
2246         (mips_o64_push_dummy_call): Likewise.
2247         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2248         variable LENGTH and use TYPE_LENGTH directly.
2249         (s390_function_arg_float): Likewise.
2250         (s390_function_arg_integer): Likewise.
2251         (s390_push_dummy_call): Likewise.
2252         (s390_return_value_convention): Likewise.
2253         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2254         TYPE_LENGTH directly.
2255
2256 2012-09-17  Yao Qi  <yao@codesourcery.com>
2257
2258         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2259         Update comment to add_setshow_integer_cmd.
2260         * cli/cli-setshow.c (do_set_command): Handle case
2261         'var_zuinteger_unlimited'.
2262         (do_show_command): Likewise.
2263         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2264         for command 'remotetimeout'.
2265         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
2266         to var_integer.
2267         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2268         for command 'set listsize'.
2269
2270 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2271
2272         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2273         variable LEN.
2274
2275 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2276
2277         PR 14119
2278         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2279         (frame_pop): Drop also TAILCALL_FRAME frames.
2280         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2281
2282 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2283             Pedro Alves  <palves@redhat.com>
2284
2285         PR 14548
2286         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2287         function start if we are already at function start.  Both for
2288         reverse-next and for reverse-step into function without line number
2289         info.
2290
2291 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2292
2293         Code cleanup - rename 'inline' depth to 'artificial' depth.
2294         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2295         frame_id_artificial_p, extend the comment.
2296         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2297         * frame.c (fprint_frame_id): Rename at a user, change debug output
2298         text to "artificial=".
2299         (skip_inlined_frames): Rename to ...
2300         (skip_artificial_frames): ... here.  Extend the comment.
2301         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2302         (frame_id_inlined_p): Rename to ...
2303         (frame_id_artificial_p): ... here.  Rename at a user.
2304         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2305         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2306         at a user.
2307         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2308         Extend the comment.
2309         (frame_id_inlined_p): Rename to ...
2310         (frame_id_artificial_p): ... here.
2311         * inline-frame.c (inline_frame_this_id): Rename at a user.
2312
2313 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
2314
2315         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2316         vector variables using vector_size syntax rather than array
2317         syntax.
2318
2319 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2320
2321         * valarith.c (value_concat): Replace unsafe ALLOCA with
2322         XMALLOC/XFREE.
2323
2324 2012-09-14  Pedro Alves  <palves@redhat.com>
2325
2326         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2327
2328 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
2329
2330         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2331         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2332         data-directory as appropriate.
2333
2334 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2335
2336         * printcmd.c (ui_printf): Eliminate single-use variable
2337         PARAM_LEN.
2338
2339 2012-09-14  Yao Qi  <yao@codesourcery.com>
2340             Pedro Alves  <palves@redhat.com>
2341
2342         * valops.c (value_assign): Move observer_notify_target_changed
2343         below to replace reinit_frame_cache.
2344
2345 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
2346
2347         Refactor Python "gdb" module into a proper Python package, by
2348         introducing a new "_gdb" module for code implemented in C, and
2349         using reload/__import__ instead of exec.
2350         * python/lib/gdb/__init__.py: Import * from _gdb.
2351         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2352         prompt_hook, sys.argv): Moved from finish_python_initialization.
2353         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2354         (packages, auto_load_packages): New list and function replacing
2355         module_dict and auto-loading code, using __file__ instead of
2356         gdb.PYTHONDIR and reload/__import__ instead of exec.
2357         (GdbSetPythonDirectory): Replacing function of the same name
2358         from finish_python_initialization, using reload/__import__ instead
2359         of exec, as well as call auto_load_packages.
2360         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2361         gdb_python_module and not gdb_module.
2362         * python/python-internal.h (gdb_python_module): Declare.
2363         * python/python.c (gdb_python_module): New global.
2364         (before_prompt_hook): Check gdb_python_module and not gdb_module.
2365         (_initialize_python): Rename gdb module to _gdb.
2366         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2367         (finish_python_initialization): Move Python code to
2368         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2369         __main__.
2370
2371 2012-09-13  Pedro Alves  <palves@redhat.com>
2372
2373         * Makefile.in (COMMON_OBS): Add registry.o.
2374         * registry.c: New file.
2375         * registry.h (struct registry_container): Declare.
2376         (registry_data_callback): New typedef.
2377         (struct registry_data, struct registry_data_registration, struct
2378         registry_data_registry): New type.
2379         (register_data_with_cleanup, registry_alloc_data)
2380         (registry_callback_adaptor, registry_clear_data)
2381         (registry_container_free_data, registry_set_data, registry_data):
2382         Declare.
2383         (DEFINE_REGISTRY): Refactor structures and functions as shims over
2384         the new common structures and functions.
2385         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
2386         callback typedefs.
2387
2388 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
2389
2390         * remote.c (remote_insert_hw_breakpoint): Throw exception if
2391         there is an error inserting hardware breakpoints and use the
2392         error message from the target.
2393
2394         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2395         Catch this exception and print the error message contained within. Do not
2396         print the default hardware error breakpoint message in this case.
2397
2398 2012-09-12  Doug Evans  <dje@google.com>
2399
2400         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2401         cu == NULL.
2402
2403 2012-09-11  Doug Evans  <dje@google.com>
2404
2405         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2406         .gdb_index symbol attributes if there are none.
2407
2408 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2409
2410         * symtab.h (struct minimal_symbol) [has_size]: New field.
2411         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2412         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2413         * printcmd.c (build_address_symbolic): Only filter out zero-sized
2414         minimal symbols if the symbol's size is actually known.
2415         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2416         of msymbol's size field.  Add comment.
2417         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2418         SET_MSYMBOL_SIZE to set the minimal symbol size.
2419
2420 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
2421
2422         * minsyms.c (install_minimal_symbols): Use memset to fill entire
2423         minimal_symbol struct object, rather than setting some of its
2424         fields one by one.
2425
2426 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
2427
2428         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2429         passed_a_ptr flag when displaying typedef types.
2430
2431 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
2432
2433         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2434         the optimized_out flag is preserved.
2435
2436 2012-09-10  Anthony Green  <green@moxielogic.com>
2437
2438         * moxie-tdep.c (moxie_analyze_prologue): Update for function
2439         prologue changes in GCC.
2440
2441 2012-09-10  Keith Seitz  <keiths@redhat.com>
2442
2443         PR gdb/13483
2444         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2445         (BOOL_CONVERSION_BADNESS): ... this.
2446         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2447         (rank_one_type): Allow all boolean conversions
2448         permitted by the standard.
2449
2450 2012-09-06  Tom Tromey  <tromey@redhat.com>
2451
2452         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2453         Don't decref py_objfile.
2454
2455 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
2456
2457         Do not enable -lmcheck by default when Python is enabled with
2458         threading support.
2459         * configure.ac: (python_has_threads) New variable, by testing
2460         if WITH_THREAD is defined in Python.h.
2461         Move --enable-lmcheck after --with-python.
2462         Do not enable -lmcheck by default if python_has_threads=yes.
2463         Warn if --enable-lmcheck and python_has_threads=yes.
2464         * configure: Regenerate.
2465
2466 2012-08-31  Yao Qi  <yao@codesourcery.com>
2467
2468         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2469         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2470         Update some commands.
2471         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2472         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2473         to 1.
2474
2475 2012-08-31  Yao Qi  <yao@codesourcery.com>
2476
2477         * mi/mi-cmds.c (mi_cmds): Add 'static'.
2478
2479 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
2480
2481         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2482
2483 2012-08-29  Doug Evans  <dje@google.com>
2484
2485         * main.c (print_gdb_help): Remove reference to
2486         --use-deprecated-index-sections.
2487
2488 2012-08-28  Yao Qi  <yao@codesourcery.com>
2489
2490         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2491         (init_cmds): Call add_setshow_uinteger_cmd for command
2492         'max-user-call-depth'.
2493         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2494         declaration of 'max_user_call_depth'.
2495         * frame.c (backtrace_limit): Add 'unsigned'.
2496         (_initialize_frame): Call add_setshow_uinteger_cmd for command
2497         'limit'.
2498         * remote.c (remoteaddresssize): Add 'unsigned'.
2499         (remote_address_masked): Change local var 'address_size' to
2500         'unsigned'.
2501         (_initialize_remote): Call add_setshow_uinteger_cmd for
2502         'remoteaddresssize'.
2503         * top.c (history_size): Add 'unsigned'.
2504         (show_commands): Change local variables to 'unsigned'.
2505         (set_history_size_command): Don't check history_size is negative.
2506         Adjust the condition to call unstifle_history and set history_size
2507         to UNIT_MAX.
2508
2509 2012-08-28  Pedro Alves  <palves@redhat.com>
2510
2511         PR gdb/14428
2512
2513         * infcmd.c (default_print_one_register_info): New, factored out
2514         from default_print_registers_info.
2515         (default_print_registers_info): Use it.  Mark value unavailable if
2516         necessary.
2517         (registers_info): Print user registers with
2518         default_print_one_register_info.
2519
2520 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2521
2522         PR tui/14486
2523         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2524         is not NULL before referencing it.
2525
2526 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2527
2528         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2529         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
2530         original PC for it.
2531
2532 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
2533             Jan Kratochvil  <jan.kratochvil@redhat.com>
2534
2535         * auto-load.c (auto_load_objfile_script): Rename to ...
2536         (auto_load_objfile_script_1): ... here, change variable realname to
2537         parameter realname, document it, add return value, add variable retval.
2538         (auto_load_objfile_script): New function.
2539
2540 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2541
2542         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2543         followed by a whitespace.
2544
2545 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2546
2547         PR gdb/14494.
2548         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2549         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2550         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2551         here.
2552
2553 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
2554
2555         * memattr.c (create_mem_region): Fix memory region overlapping
2556         checking.
2557
2558 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
2559
2560         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2561         with xmalloc/cleanup.
2562         * mt-tdep.c (mt_push_dummy_call): Likewise.
2563         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2564         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2565
2566 2012-08-24  Yao Qi  <yao@codesourcery.com>
2567
2568         * jv-exp.y (push_expression_name): Add "." at the end of error
2569         message.
2570
2571 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
2572
2573         Document how to return from "python-interactive" to GDB.
2574         * python/python.c (_initialize_python): Update documentation.
2575
2576 2012-08-23  Pedro Alves  <palves@redhat.com>
2577
2578         * infrun.c (_initialize_infrun) <handle command help text>:
2579         Mention that multiple signals are supported.
2580
2581 2012-08-23  Pedro Alves  <palves@redhat.com>
2582
2583         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2584         string.
2585
2586 2012-08-23  Yao Qi  <yao@codesourcery.com>
2587
2588         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2589         (tfind_1): Don't call registers_changed, set_traceframe_num,
2590         and clear_traceframe_info.
2591         Call set_current_traceframe.
2592         (set_current_traceframe): call set_traceframe_num.
2593
2594 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
2595
2596         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2597         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2598
2599 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
2600
2601         Enable readline in Python in a GDB-specific way and block the
2602         standard Python readline module to prevent conflicts with GDB.
2603         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2604         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2605         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2606         * python/py-gdb-readline.c: New file.
2607         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2608         prototype.
2609         * python/python.c (_initialize_python): Call
2610         gdbpy_initialize_gdb_readline.
2611
2612 2012-08-22  Keith Seitz  <keiths@redhat.com>
2613
2614         * defs.h: Include build-gnulib/config.h
2615
2616 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
2617
2618         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2619         and blx pc.
2620
2621 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
2622
2623         Add a new "python-interactive" command that starts a standard
2624         Python interactive prompt with "pi" as alias, and add "py" as
2625         an alias to "python".
2626         * NEWS: Mention the new commands.
2627         * python/python.c (eval_python_command): New function.
2628         (python_interactive_command): For "python-interactive" with
2629         arguments, call eval_python_command.  For "python-interactive"
2630         without arguments, call PyRun_InteractiveLoop.
2631         (_initialize_python): Add "python-interactive" command with
2632         "pi" as alias, and add "py" as an alias to "python".
2633
2634 2012-08-22  Tom Tromey  <tromey@redhat.com>
2635
2636         * defs.h (quit_flag): Don't declare.
2637         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2638         (QUIT): Use new functions.
2639         * event-top.c (command_handler): Use clear_quit_flag.
2640         (handle_sigint): Use set_quit_flag.
2641         (async_request_quit): Use check_quit_flag.  Don't check
2642         immediate_quit.
2643         * exceptions.c (throw_exception): Use clear_quit_flag.
2644         * main.c (captured_main): Use clear_quit_flag.
2645         * python/python.c (clear_quit_flag, set_quit_flag)
2646         (check_quit_flag): New functions.
2647         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2648         clear_quit_flag.
2649         * remote.c (remote_wait_as): Use check_quit_flag,
2650         clear_quit_flag.
2651         (remote_start_remote): Call QUIT.
2652         * symfile.c (load_progress): Use check_quit_flag.
2653         * top.c (command_loop): Use clear_quit_flag.
2654         (command_line_input): Call QUIT.
2655         * utils.c (quit_flag): Conditionally define.
2656         (clear_quit_flag, check_quit_flag, set_quit_flag): New
2657         functions.
2658         (prompt_for_continue): Call QUIT.  Use quit, not
2659         async_request_quit.
2660         * remote-mips.c (mips_expect_timeout): Call QUIT.
2661         * monitor.c (monitor_expect): Call QUIT.
2662
2663 2012-08-22  Tom Tromey  <tromey@redhat.com>
2664
2665         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2666         (async_init_signals): Update.
2667         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2668         (SIGWINCH_HANDLER_BODY): Remove.
2669
2670 2012-08-22  Tom Tromey  <tromey@redhat.com>
2671
2672         * jit.c (jit_object_close_impl): Don't malloc the objfile
2673         name.
2674         * objfiles.c (allocate_objfile): Don't malloc the objfile
2675         name.
2676         (free_objfile): Don't free the objfile name.
2677         * objfiles.h (struct objfile) <name>: Update comment.
2678         * symfile.c (reread_symbols): Fix reference counting.  Don't
2679         malloc objfile name.
2680
2681 2012-08-22  Tom Tromey  <tromey@redhat.com>
2682
2683         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2684         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2685         (symfile_bfd_open): Likewise.
2686         (generic_load): Likewise.
2687         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2688         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2689         gdb_bfd_open.
2690         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2691         Use gdb_bfd_open.
2692         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2693         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2694         (pmon_load_fast): Likewise.
2695         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2696         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2697         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2698         (macho_check_dsym): Likewise.
2699         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2700         (m32r_upload_command): Likewise.
2701         * gdb_bfd.h (gdb_bfd_cache): Declare.
2702         * gdb_bfd.c (struct gdb_bfd_data): New.
2703         (gdb_bfd_cache): New global.
2704         (struct gdb_bfd_cache_search): New.
2705         (hash_bfd): New function.
2706         (eq_bfd): Likewise.
2707         (gdb_bfd_open): Likewise.
2708         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2709         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
2710         gdb_bfd_data.
2711         * exec.c (exec_file_attach): Use gdb_bfd_open.
2712         * dsrec.c (load_srec): Use gdb_bfd_open.
2713
2714 2012-08-22  Tom Tromey  <tromey@redhat.com>
2715
2716         * dwarf2read.c (macro_start_file): Update.
2717         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2718         (free_objfile_per_bfd_storage): Destroy macro_cache.
2719         (allocate_objfile, free_objfile): Update.
2720         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2721         New field.
2722         (struct objfile) <macro_cache>: Remove.
2723         * symfile.c (reread_symbols): Update.
2724         * symmisc.c (print_symbol_bcache_statistics): Update.
2725         (print_objfile_statistics): Update.
2726
2727 2012-08-22  Tom Tromey  <tromey@redhat.com>
2728
2729         * elfread.c (elf_symtab_read): Update.
2730         * objfiles.c (objfiles_bfd_data): New global.
2731         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2732         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2733         (allocate_objfile, free_objfile): Update.
2734         (_initialize_objfiles): Initialize objfiles_bfd_data.
2735         * objfiles.h (struct objfile_per_bfd_storage): New.
2736         (struct objfile) <per_bfd>: New field.
2737         <filename_cache>: Remove.
2738         (set_objfile_per_bfd): Declare.
2739         * symfile.c (reread_symbols): Update.  Call
2740         set_objfile_per_bfd.
2741         (allocate_symtab): Update.
2742         * symmisc.c (print_symbol_bcache_statistics): Update.
2743         (print_objfile_statistics): Print the size of the BFD obstack.
2744
2745 2012-08-22  Tom Tromey  <tromey@redhat.com>
2746
2747         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
2748         * gdb_bfd.c: Use DEFINE_REGISTRY.
2749         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2750         (gdb_bfd_ref): Call bfd_alloc_data.
2751         (gdb_bfd_unref): Call bfd_free_data.
2752
2753 2012-08-22  Tom Tromey  <tromey@redhat.com>
2754
2755         * registry.h (struct registry_fields): New.
2756         (REGISTRY_FIELDS): Redefine.
2757         (REGISTRY_ACCESS_FIELD): New macro.
2758         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2759         functions.
2760
2761 2012-08-22  Tom Tromey  <tromey@redhat.com>
2762
2763         * auto-load.c (_initialize_auto_load): Update.
2764         * solib-svr4.c (_initialize_svr4_solib): Update
2765         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2766         * solib-darwin.c (_initialize_darwin_solib): Update.
2767         * registry.h: New file.
2768         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2769         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2770         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2771         (register_program_space_data_with_cleanup)
2772         (register_program_space_data, program_space_alloc_data)
2773         (clear_program_space_data, set_program_space_data)
2774         (program_space_data): Don't declare.
2775         * progspace.c: Use DEFINE_REGISTRY.
2776         (struct program_space_data, struct
2777         program_space_data_registration, struct
2778         program_space_data_registry, program_space_data_registry)
2779         (register_program_space_data_with_cleanup)
2780         (register_program_space_data, program_space_alloc_data)
2781         (program_space_free_data, clear_program_space_data)
2782         (set_program_space_data, program_space_data): Remove.
2783         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2784         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2785         (register_objfile_data_with_cleanup, register_objfile_data)
2786         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2787         declare.
2788         * objfiles.c: Use DEFINE_REGISTRY.
2789         (struct objfile_data, struct objfile_data_registration, struct
2790         objfile_data_registry, objfile_data_registry)
2791         (register_objfile_data_with_cleanup, register_objfile_data)
2792         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2793         (set_objfile_data, objfile_data): Remove.
2794         (_initialize_objfiles): Update.
2795         * jit.c (_initialize_jit): Update.
2796         * inflow.c (_initialize_inflow): Update.
2797         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2798         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2799         (register_inferior_data_with_cleanup, register_inferior_data)
2800         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2801         declare.
2802         * inferior.c: Use DEFINE_REGISTRY.
2803         (struct inferior_data, struct inferior_data_registration, struct
2804         inferior_data_registry, inferior_data_registry)
2805         (register_inferior_data_with_cleanup, register_inferior_data)
2806         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2807         (set_inferior_data, inferior_data): Remove.
2808         * auxv.c (_initialize_auxv): Update.
2809         * ada-lang.c (_initialize_ada_language): Update.
2810         * breakpoint.c (_initialize_breakpoint): Update.
2811         * i386-nat.c (i386_use_watchpoints): Update.
2812
2813 2012-08-22  Tom Tromey  <tromey@redhat.com>
2814
2815         * exec.c (exec_close, exec_file_attach): Update.
2816         (add_to_section_table): Initialize 'key' field.
2817         (add_target_sections, remove_target_sections): Add 'key' argument.
2818         * exec.h (add_target_sections, remove_target_sections): Add
2819         'key' argument.
2820         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2821         (reload_shared_libraries_1): Update.
2822         * target.h (struct target_section) <key>: New field.
2823
2824 2012-08-22  Tom Tromey  <tromey@redhat.com>
2825
2826         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2827
2828 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2829
2830         * symfile.c (allocate_symtab): Use host_address_to_string
2831         function instead of cast of pointer to long which is not
2832         compatible with x86_64-w64-mingw32 build.
2833
2834 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2835
2836         * mips-tdep.c (is_octeon): New function.
2837         (is_octeon_bbit_op): New function.
2838         (mips32_next_pc): Handle Octeon's bbit instructions.
2839         (mips32_instruction_has_delay_slot): Likewise.
2840
2841 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2842
2843         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2844         before the function.
2845
2846 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2847
2848         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2849
2850 2012-08-19  Keith Seitz  <keiths@redhat.com>
2851
2852         PR c++/14365
2853         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2854         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2855
2856 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2857
2858         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2859         The typo broke "make TAGS".
2860
2861 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2862
2863         GDB 7.5 released.
2864
2865 2012-08-17  Keith Seitz  <keiths@redhat.com>
2866
2867         PR c++/13356
2868         * gdbtypes.c (strict_type_checking): New variable.
2869         (show_strict_type_checking): New function.
2870         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2871         if strict type checking is disabled.
2872         (_initialize_gdbtypes): Add "check type" subcommand.
2873         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2874
2875 2012-08-17  Keith Seitz  <keiths@redhat.com>
2876
2877         * language.h (type_mode): Remove.
2878         (type_check): Remove.
2879         (struct language_defn): Remove la_type_check.
2880         (STRICT_TYPE): Remove unused macro.
2881         (type_error): Remove.
2882         * language.c (set_type_range_case): Renamed to ...
2883         (set_range_case): ... this.  Update all callers.
2884         Remove type_mode/type_check.
2885         (type_mode): Remove.
2886         (type_check): Remove.
2887         (show_type_command): Remove.
2888         (set_type_command): Remove.
2889         (language_info): Remove type checking output.
2890         (type_error): Remove unused function.
2891         (range_error): Update comment.
2892         (unknown_language_defn): Remove la_type_check.
2893         (auto_language_defn): Likewise.
2894         (local_language_defn): Likewise.
2895         (_initialize_language): Remove "check type" subcommand.
2896         * ada-lang.c (ada_language_defn): Remove la_type_check.
2897         * c-lang.c (c_language_defn): Likewise.
2898         (cplus_language_defn): Likewise.
2899         (asm_language_defn): Likewise.
2900         (minimal_language_defn): Likewise.
2901         * d-lang.c (d_language_defn): Likewise.
2902         * f-lang.c (f_language_defn): Likewise.
2903         * go-lang.c (go_language_defn): Likewise.
2904         * jv-lang.c (java_language_defn): Likewise.
2905         * m2-lang.c (m2_language_defn): Likewise.
2906         * objc-lang.c (objc_language_defn): Likewise.
2907         * opencl-lang.c (opencl_language_defn): Likewise.
2908         * p-lang.c (pascal_language_defn): Likewise.
2909
2910 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2911
2912         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2913
2914 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2915
2916         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2917         New function.
2918         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2919         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2920         to access the bsp and bspstore registers if not.
2921
2922 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2923
2924         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2925         * breakpoint.c (detach_breakpoints): Change pid parameter into
2926         a ptid.  Adjust code accordingly.
2927         * infrun.c (handle_inferior_event): Delete variable child_pid.
2928         Update call to detach_breakpoints to pass the child ptid for
2929         fork events.
2930         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2931         assert that inferior_ptid's lwp is zero.
2932         (linux_handle_extended_wait): Update call to detach_breakpoints.
2933         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2934         detach_breakpoints.
2935
2936 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2937
2938         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2939         parent, only call detach_breakpoints if tts.tts_event ==
2940         TTEVT_VFORK.
2941
2942 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2943
2944         * dwarf2-frame.c (dwarf2_frame_cache): Use
2945         get_frame_address_in_block instead of get_frame_pc as
2946         the bound for executing the frame's FDE.
2947
2948 2012-08-16  Yao Qi  <yao@codesourcery.com>
2949
2950         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2951         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2952         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2953         (c_type_print_varspec_suffix): Likewise.
2954         * eval.c (evaluate_subexp_standard): Likewise.
2955         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2956         (f_type_print_varspec_suffix): Likewise.
2957         * gdbtypes.c (is_scalar_type): Likewise.
2958         (recursive_dump_type): Likewise.
2959         * infcall.c (value_arg_coerce): Likewise.
2960         * m2-valprint.c (m2_val_print): Likewise.
2961         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2962         (pascal_type_print_varspec_suffix): Likewise.
2963         (pascal_type_print_base): Likewise.
2964         * p-valprint.c (pascal_val_print): Likewise.
2965         (pascal_val_print): Likewise.
2966         * valops.c (value_slice): Likewise.
2967         * valprint.c (scalar_type_p): Likewise.
2968         * valarith.c (value_bitstring_subscript): Remove.
2969         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2970         Remove comment on TYPE_CODE_BITSTRING.
2971
2972         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2973         TYPE_CODE_BITSTRING.
2974
2975         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2976         slot 0.
2977
2978 2012-08-16  Yao Qi  <yao@codesourcery.com>
2979
2980         * tracepoint.c (trace_find_none_command): Remove.
2981         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2982
2983 2012-08-16  Yao Qi  <yao@codesourcery.com>
2984
2985         * remote.c (handle_notification): Remove parameter 'length'.
2986         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2987
2988 2012-08-15  Keith Seitz  <keiths@redhat.com>
2989
2990         * gdbtypes.c (opaque_type_resolution): Make static.
2991         Add missing comment.
2992         (overload_debug): Add missing comment.
2993         (show_opaque_type_resolution): Likewise.
2994         (show_overload_debug): Likewise.
2995         (print_bit_vector): Remove unnecessary forward declaration.
2996         (print_arg_types): Likewise.
2997         (dump_fn_fieldlists): Likewise.
2998         (print_cplus_stuff): Likewise.
2999
3000 2012-08-15  Tom Tromey  <tromey@redhat.com>
3001
3002         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3003         (gdb_bfd_ref): Initialize new field.
3004         (gdb_bfd_unref): Unref the archive BFD.
3005         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3006         parent archive.
3007
3008 2012-08-15  Tom Tromey  <tromey@redhat.com>
3009
3010         PR python/14387:
3011         * python/py-bpevent.c (create_breakpoint_event_object): Update
3012         comment.
3013         * python/py-event.c (evpy_add_attribute): Update comment.
3014         * python/py-exitedevent.c (create_exited_event_object): Fix
3015         reference counting and error handling.
3016         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3017         Fix reference counting.
3018         * python/py-signalevent.c (create_signal_event_object): Fix
3019         reference counting and error handling.
3020         * python/py-stopevent.c (emit_stop_event): Fix reference
3021         counting.
3022         * python/py-threadevent.c (get_event_thread): Return a
3023         borrowed reference.
3024         * python/py-type.c (convert_field): Fix reference counting.
3025
3026 2012-08-15  Tom Tromey  <tromey@redhat.com>
3027
3028         * dwarf2read.c (dwarf_decode_macro_bytes)
3029         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3030         as hash key.
3031
3032 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
3033
3034         * infcmd.c (_initialize_infcmd): Update help text for the signal,
3035         stepi, nexti, finish, next, step, jump, and continue commands.
3036         * infrun.c (_initialize_infrun): Update help text for the handle
3037         command.
3038
3039 2012-08-14  Doug Evans  <dje@google.com>
3040
3041         * gdbtypes.c (struct extra): Delete, unused.
3042
3043         * gdbtypes.c: Whitespace cleanup.
3044         (address_space_name_to_int): Remove "extern" from definition.
3045         (_initialize_gdbtypes): Declare with initialize_file_ftype.
3046
3047         * gdbtypes.c (make_pointer_type): Remove redundant setting of
3048         TYPE_POINTER_TYPE (type).
3049
3050 2012-08-14  Gary Benson  <gbenson@redhat.com>
3051
3052         * solib-svr4.c (svr4_free_library_list): Use free_so.
3053
3054 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
3055
3056         * .gitignore: Add go-exp.c.
3057
3058 2012-08-13  Doug Evans  <dje@google.com>
3059
3060         * value.c (show_convenience): Tweak comment.
3061         (_initialize_values): Mention convenience functions in the help text
3062         for "show convenience".
3063
3064 2012-08-13  Yao Qi  <yao@codesourcery.com>
3065
3066         * std-operator.def: Remove TERNOP_SLICE_COUNT.
3067         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3068         TERNOP_SLICE_COUNT.
3069         * eval.c (evaluate_subexp_standard): Likewise.
3070         * expprint.c (print_subexp_standard): Likewise.
3071         (dump_subexp_body_standard): Likewise.
3072         * parse.c (operator_length_standard): Likewise.
3073
3074 2012-08-13  Yao Qi  <yao@codesourcery.com>
3075
3076         * std-operator.def: Remove OP_BITSTRING.
3077         * breakpoint.c (watchpoint_exp_is_const): Update.
3078         * eval.c (evaluate_subexp_standard): Remove handling to
3079         OP_BITSTRING.
3080         * expprint.c (print_subexp_standard): Likewise.
3081         (dump_subexp_body_standard): Likewise.
3082         * parse.c (operator_length_standard): Likewise.
3083         * valops.c (value_bitstring): Remove.
3084         * value.h: Remove the declaration of 'value_bitstring'.
3085
3086 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3087
3088         * linespec.c (find_methods): Remove unused variables `i1' and
3089         `name_len'.
3090         (decode_line_full): Likewise for `arg_start'.
3091
3092 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
3093
3094         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3095         (zlib_decompress_section): Likewise for `section_data'.
3096         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3097
3098 2012-08-10  Doug Evans  <dje@google.com>
3099
3100         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3101         * NEWS: Document them.
3102         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3103         function/strfns.py.
3104         * python/py-type.c (typy_array_1): New function.
3105         (typy_array): Call it.
3106         (typy_vector): New function.
3107         (type_object_methods): Add "vector".
3108         * python/lib/gdb/function/__init__.py: New file.
3109         * python/lib/gdb/function/strfns.py: New file.
3110
3111 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3112
3113         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3114         for TYPE_FIELD_BITPOS.
3115         (typy_get_sizeof): Likewise for TYPE_LENGTH.
3116
3117 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
3118
3119         PR cli/10436:
3120         * common/vec.h (VEC_merge): Define.
3121         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3122         (DEF_VEC_ALLOC_FUNC_P): Likewise.
3123         (DEF_VEC_ALLOC_FUNC_O): Likewise.
3124         * completer.c: Include gdb_signals.h.
3125         (signal_completer): Define.
3126         * completer.h (signal_completer): Add prototype.
3127         * infcmd.c (_initialize_infcmd): Assign the command
3128         completer for "signal" to handle_completer.
3129         * infrun.c: Include completer.h.
3130         (handle_completer): Define.
3131         (_initialize_infrun): Declare a new local variable c.  Store the
3132         result of add_com("handle") to it.  Assign the command
3133         completer for "handle" to handle_completer.
3134
3135 2012-08-09  Yao Qi  <yao@codesourcery.com>
3136
3137         * cli/cli-decode.c (set_cmd_prefix): New.
3138         (lookup_cmd_for_prefixlist): New.
3139         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3140         of each cmd_list_element in *prefixlist.
3141         (add_setshow_cmd_full): set_cmd_prefix.
3142         (add_alias_cmd): Likewise.
3143         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3144         Declare 'auto_boolean_enums'.
3145         * cli/cli-setshow.c: Include "observer.h".
3146         (notify_command_param_changed_p): New.
3147         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3148         Remove 'static'.
3149         (do_setshow_command): Split it to ...
3150         (do_set_command, do_show_command): ... them.  New.
3151         (do_set_command): Call observer_notify_command_param_changed if
3152         notify_command_param_changed_p returns true.
3153         (cmd_show_list): Caller update.
3154         * auto-load.c (set_auto_load_cmd): Likewise.
3155         * remote.c (show_remote_cmd): Likewise.
3156         * cli/cli-setshow.h: Update declarations.
3157         * top.c (execute_command): Call do_set_command and do_show_command.
3158
3159         * NEWS: Mention new MI notification.
3160         * mi/mi-interp.c: Declare mi_command_param_changed.
3161         (mi_interpreter_init): Attach mi_command_param_changed to
3162         observer command_param_changed.
3163         (mi_command_param_changed): New.
3164         Remove mi_suppress_breakpoint_notifications.
3165         Define global variable mi_suppress_notification.
3166         (mi_breakpoint_created): Update.
3167         (mi_breakpoint_deleted): Likewise.
3168         (mi_breakpoint_modified): Likewise.
3169         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
3170         'gdb-set' and set mi_suppress_notification.
3171         * mi/mi-main.h: (mi_suppress_notification): New struct.
3172
3173 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
3174             Jan Kratochvil  <jan.kratochvil@redhat.com>
3175
3176         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3177
3178 2012-08-09  Yao Qi  <yao@codesourcery.com>
3179
3180         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3181         (skiplist): Move it to skip.c.
3182         (init_cmd_lists): Remove code setting enablebreaklist and
3183         skiplist to NULL.
3184         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3185         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3186         skiplist.
3187         * gdbcmd.h: Likewise.
3188         * skip.c (_initialize_step_skip): Move 'skiplist' from
3189         cli/cli-cmds.c.
3190
3191 2012-08-09  Yao Qi  <yao@codesourcery.com>
3192
3193         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3194         * gnu-nat.c, symfile.c: Likewise.
3195
3196 2012-08-08  Aaron Gamble  <agamble@google.com>
3197
3198         * utils.c (prompt_for_continue_wait_time): New static global.
3199         (make_command_stats_cleanup): Initialize it.
3200         (report_command_stats): Subtract time waiting for user.
3201         (prompt_for_continue): Track time waiting for user.
3202         (defaulted_query): Track time waiting for user.
3203
3204 2012-08-08  Doug Evans  <dje@google.com>
3205
3206         * eval.c (evaluate_subexp_standard): Fix thinko in handling
3207         UNOP_MEMVAL_TYPE.
3208         * expprint.c (print_subexp_standard, case OP_TYPE): New.
3209         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3210         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3211         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3212         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3213         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3214         elt.
3215         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3216         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3217         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3218         (dump_prefix_expression): Handle OP_TYPE.
3219
3220 2012-08-08  Keith Seitz  <keiths@redhat.com>
3221
3222         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3223         addr_start.
3224
3225 2012-08-08  Doug Evans  <dje@google.com>
3226
3227         * linux-thread-db.c: #include "gdb_vecs.h".
3228         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
3229         updated.
3230         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
3231         (thread_db_load_search): Use a vector to iterate over path elements.
3232         Handle text appearing after "$pdir".
3233
3234         * gdb_string.h: Moved to ...
3235         * common/gdb_string.h: ... here.
3236         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3237         gdb_string.h and gdb_assert.h.
3238
3239 2012-08-08  Yao Qi  <yao@codesourcery.com>
3240
3241         * tic6x-tdep.c (tic6x_register_to_value): Remove.
3242         (tic6x_value_to_register): Likewise.
3243         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3244         and set_gdbarch_value_to_register.
3245
3246 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3247             Jean-Marc Saffroy  <saffroy@gmail.com>
3248
3249         PR 11804
3250         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
3251         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3252         * gcore.c (gcore_create_callback): New function comment.  Add modified
3253         parameter.  Only write modified regions.  Set SEC_READONLY exactly
3254         according to MODIFIED.
3255         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
3256         the passed modified value to FUNC.
3257         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3258         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3259         first.  New variables modified and has_anonymous.  Parse the lines of
3260         smaps file.  Add the passed MODIFIED value to FUNC.
3261         * procfs.c (find_memory_regions_callback): Add the passed modified
3262         value.
3263
3264 2012-08-06  Tom Tromey  <tromey@redhat.com>
3265
3266         * dwarf2-frame.c (clear_pointer_cleanup): New function.
3267         (dwarf2_frame_cache): Use it.
3268         * frame-unwind.h (frame_sniffer_ftype): Document prologue
3269         cache initialization constraint.
3270
3271 2012-08-06  Tom Tromey  <tromey@redhat.com>
3272
3273         PR python/14386:
3274         * varobj.c (update_dynamic_varobj_children): Don't call
3275         PyIter_Check.
3276
3277 2012-08-06  Tom Tromey  <tromey@redhat.com>
3278
3279         PR cli/14392:
3280         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3281
3282 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
3283
3284         * NEWS: New entry for 'cd' default parameters.
3285         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3286
3287 2012-08-03  Tom Tromey  <tromey@redhat.com>
3288
3289         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3290         return.
3291
3292 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
3293
3294         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3295         to attempting lseek/write.
3296         (inf_child_fileio_pread): Likewise for pread.
3297
3298 2012-08-02  Yao Qi  <yao@codesourcery.com>
3299
3300         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3301         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3302         add_setshow_zinteger_cmd.
3303         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3304         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3305         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3306         instead of add_setshow_zinteger_cmd.
3307         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3308         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3309         instead of add_setshow_zinteger_cmd.
3310         * frame.c (frame_debug): Add 'unsigned'.
3311         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3312         add_setshow_zinteger_cmd.
3313         * frame.h: Update the declaration of 'frame_debug'.
3314         * gdbtypes.c (overload_debug): Add 'unsigned'.
3315         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3316         add_setshow_zinteger_cmd.
3317         * inferior.h: Update declaration of 'debug_infrun'.
3318         * infrun.c (debug_infrun): Add 'unsigned'.
3319         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3320         add_setshow_zinteger_cmd.
3321         * jit.c (jit_debug): Add 'unsigned'.
3322         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3323         add_setshow_zinteger_cmd.
3324         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3325         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3326         instead of add_setshow_zinteger_cmd.
3327         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3328         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3329         add_setshow_zinteger_cmd.
3330         * machoread.c (mach_o_debug_level): Add 'unsigned'.
3331         (_initialize_machoread): Call add_setshow_zuinteger_cmd
3332         instead of add_setshow_zinteger_cmd.
3333         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3334         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3335         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3336         intead of add_setshow_zinteger_cmd.
3337         * mips-tdep.c (mips_debug): Add 'unsigned'.
3338         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3339         instead of add_setshow_zinteger_cmd.
3340         * monitor.c (monitor_debug): Add 'unsigned'.
3341         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3342         add_setshow_zinteger_cmd.
3343         * observer.c (observer_debug): Add 'unsigned'.
3344         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3345         add_setshow_zinteger_cmd.
3346         * parse.c (expressiondebug): Add 'unsigned'.
3347         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3348         add_setshow_zinteger_cmd.
3349         * record.c (record_debug): Add 'unsigned'.
3350         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3351         add_setshow_zinteger_cmd.
3352         * record.h: Update the declaration of 'record_debug'.
3353         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3354         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3355         add_setshow_zinteger_cmd.
3356         * serial.c (global_serial_debug_p): Add 'unsigned'.
3357         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3358         add_setshow_zinteger_cmd.
3359         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3360         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3361         add_setshow_zinteger_cmd.
3362         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3363         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3364         add_setshow_zinteger_cmd.
3365         * target.c (targetdebug): Add 'unsigned'.
3366         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3367         add_setshow_zinteger_cmd.
3368         * valops.c (overload_debug): Add 'unsigned'.
3369         * varobj.c (varobjdebug): Add 'unsigned'.
3370         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3371         add_setshow_zinteger_cmd.
3372         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3373         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3374         instead of add_setshow_zinteger_cmd.
3375
3376         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3377         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3378         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3379         instead of add_setshow_zinteger_cmd.
3380         * gdbarch.c, gdbarch.h: Re-generated.
3381
3382 2012-08-02  Yao Qi  <yao@codesourcery.com>
3383
3384         * nto-tdep.c: Don't include cli/cli-decode.h and
3385         cli/cli-cmds.h.
3386         (_initialize_nto_tdep): Remove.
3387         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3388         Remove field.
3389         Remove macro nto_internal_debugging.
3390
3391 2012-08-01  Richard Henderson  <rth@redhat.com>
3392
3393         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3394         (mep-*-*) [gdb_target_obs]: Likewise.
3395
3396 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
3397
3398         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3399         linux_get_siginfo_type.
3400
3401 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
3402
3403         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3404         AT_ENTRY_POINT.
3405         (call_function_by_hand) <ON_STACK>: Call write_memory with
3406         gdbarch_breakpoint_from_pc, if possible.
3407         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3408         here.
3409
3410 2012-07-31  Yao Qi  <yao@codesourcery.com>
3411
3412         * tracepoint.c: Add 'static' for some variables.
3413
3414 2012-07-31  Yao Qi  <yao@codesourcery.com>
3415
3416         * go32-nat.c: Declare _initialize_go32_nat.
3417         * ser-go32.c: Declare _initialize_ser_dos.
3418         * top.c (do_chdir_cleanup): Add 'static'.
3419
3420 2012-07-30  Keith Seitz  <keiths@redhat.com>
3421
3422         * linespec.c (linespec_lex_number): A number followed
3423         by quotes is a valid number, too.
3424
3425 2012-07-30  Tom Tromey  <tromey@redhat.com>
3426
3427         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3428
3429 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
3430
3431         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3432         attempt to 4-byte-align HW breakpoint addresses for Thumb.
3433
3434 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
3435
3436         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3437         invalid or reevaluated to prevent prevent references to possibly
3438         delete'd type objects being left in the varobj.
3439
3440 2012-07-27  Tom Tromey  <tromey@redhat.com>
3441             Jan Kratochvil  <jan.kratochvil@redhat.com>
3442
3443         * copying.awk: Print buffer-read-only and vi ro markers.
3444         * copying.c: Rebuild.
3445         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3446         * gdbarch.c, gdbarch.h: Rebuild.
3447         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3448         buffer-read-only and vi ro markers.
3449         * features/arm-with-iwmmxt.c: Rebuild.
3450         * features/arm-with-m-fpa-layout.c: Rebuild.
3451         * features/arm-with-m-vfp-d16.c: Rebuild.
3452         * features/arm-with-m.c: Rebuild.
3453         * features/arm-with-neon.c: Rebuild.
3454         * features/arm-with-vfpv2.c: Rebuild.
3455         * features/arm-with-vfpv3.c: Rebuild.
3456         * features/i386/amd64-avx-linux.c: Rebuild.
3457         * features/i386/amd64-avx.c: Rebuild.
3458         * features/i386/amd64-linux.c: Rebuild.
3459         * features/i386/amd64.c: Rebuild.
3460         * features/i386/i386-avx-linux.c: Rebuild.
3461         * features/i386/i386-avx.c: Rebuild.
3462         * features/i386/i386-linux.c: Rebuild.
3463         * features/i386/i386-mmx-linux.c: Rebuild.
3464         * features/i386/i386-mmx.c: Rebuild.
3465         * features/i386/i386.c: Rebuild.
3466         * features/i386/x32-avx-linux.c: Rebuild.
3467         * features/i386/x32-avx.c: Rebuild.
3468         * features/i386/x32-linux.c: Rebuild.
3469         * features/i386/x32.c: Rebuild.
3470         * features/mips-dsp-linux.c: Rebuild.
3471         * features/mips-linux.c: Rebuild.
3472         * features/mips64-dsp-linux.c: Rebuild.
3473         * features/mips64-linux.c: Rebuild.
3474         * features/rs6000/powerpc-32.c: Rebuild.
3475         * features/rs6000/powerpc-32l.c: Rebuild.
3476         * features/rs6000/powerpc-403.c: Rebuild.
3477         * features/rs6000/powerpc-403gc.c: Rebuild.
3478         * features/rs6000/powerpc-405.c: Rebuild.
3479         * features/rs6000/powerpc-505.c: Rebuild.
3480         * features/rs6000/powerpc-601.c: Rebuild.
3481         * features/rs6000/powerpc-602.c: Rebuild.
3482         * features/rs6000/powerpc-603.c: Rebuild.
3483         * features/rs6000/powerpc-604.c: Rebuild.
3484         * features/rs6000/powerpc-64.c: Rebuild.
3485         * features/rs6000/powerpc-64l.c: Rebuild.
3486         * features/rs6000/powerpc-7400.c: Rebuild.
3487         * features/rs6000/powerpc-750.c: Rebuild.
3488         * features/rs6000/powerpc-860.c: Rebuild.
3489         * features/rs6000/powerpc-altivec32.c: Rebuild.
3490         * features/rs6000/powerpc-altivec32l.c: Rebuild.
3491         * features/rs6000/powerpc-altivec64.c: Rebuild.
3492         * features/rs6000/powerpc-altivec64l.c: Rebuild.
3493         * features/rs6000/powerpc-cell32l.c: Rebuild.
3494         * features/rs6000/powerpc-cell64l.c: Rebuild.
3495         * features/rs6000/powerpc-e500.c: Rebuild.
3496         * features/rs6000/powerpc-e500l.c: Rebuild.
3497         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3498         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3499         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3500         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3501         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3502         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3503         * features/rs6000/powerpc-vsx32.c: Rebuild.
3504         * features/rs6000/powerpc-vsx32l.c: Rebuild.
3505         * features/rs6000/powerpc-vsx64.c: Rebuild.
3506         * features/rs6000/powerpc-vsx64l.c: Rebuild.
3507         * features/rs6000/rs6000.c: Rebuild.
3508         * features/s390-linux32.c: Rebuild.
3509         * features/s390-linux32v1.c: Rebuild.
3510         * features/s390-linux32v2.c: Rebuild.
3511         * features/s390-linux64.c: Rebuild.
3512         * features/s390-linux64v1.c: Rebuild.
3513         * features/s390-linux64v2.c: Rebuild.
3514         * features/s390x-linux64.c: Rebuild.
3515         * features/s390x-linux64v1.c: Rebuild.
3516         * features/s390x-linux64v2.c: Rebuild.
3517         * features/tic6x-c62x-linux.c: Rebuild.
3518         * features/tic6x-c62x.c: Rebuild.
3519         * features/tic6x-c64x-linux.c: Rebuild.
3520         * features/tic6x-c64x.c: Rebuild.
3521         * features/tic6x-c64xp-linux.c: Rebuild.
3522         * features/tic6x-c64xp.c: Rebuild.
3523
3524 2012-07-27  Tom Tromey  <tromey@redhat.com>
3525
3526         * c-exp.y (classify_name): Avoid assignment in condition.
3527
3528 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
3529
3530         * amd64-windows-tdep.c: Include "frame.h".
3531         (amd64_windows_skip_trampoline_code): New function.
3532         (amd64_windows_init_abi): Add trampoline registration.
3533
3534 2012-07-27  Yao Qi  <yao@codesourcery.com>
3535
3536         * tracepoint.c (cur_traceframe_number): Remove.
3537         (set_tfile_traceframe): Remove.
3538         (tfile_trace_find, tfile_fetch_registers): Update callers.
3539         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3540         (tfile_open, tfile_trace_find): Likewise.
3541
3542 2012-07-27  Yao Qi  <yao@codesourcery.com>
3543
3544         * thread.c (switch_to_thread): Don't call registers_changed.
3545
3546 2012-07-26  Tom Tromey  <tromey@redhat.com>
3547
3548         * Makefile.in (SFILES): Remove objc-exp.y.
3549         (YYFILES): Remove objc-exp.c.
3550         (YYOBJ): Remove objc-exp.o.
3551         (local-maintainer-clean): Don't mention objc-exp.c.
3552         * c-exp.y: Include objc-lang.h.
3553         (%union) <class>: New field.
3554         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3555         (exp): Clone subscript production for OBJC_LBRAC.  Add various
3556         Objective C productions.
3557         (msglist, msgarglist, msgarg): New productions.
3558         (array_mod, func_mod, operator): Clone productions for
3559         OBJC_LBRAC.
3560         (parse_string_or_char): Handle '@' strings.
3561         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
3562         (classify_name): Check la_name_of_this.  Recognize ObjC class
3563         names.
3564         * objc-exp.y: Remove.
3565         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3566         * objc-lang.h (objc_parse, objc_error): Don't declare.
3567
3568 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
3569
3570         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3571
3572 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3573
3574         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3575         and decrement.
3576
3577 2012-07-26  Tom Tromey  <tromey@redhat.com>
3578
3579         * copying.c: Rebuild.
3580         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
3581         'no_class'.
3582
3583 2012-07-26  Tom Tromey  <tromey@redhat.com>
3584
3585         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3586         immediate_quit.
3587         (print_objfile_statistics): Likewise.
3588         (maintenance_print_symbols): Likewise.
3589         (maintenance_print_msymbols): Likewise.
3590         (maintenance_print_objfiles): Likewise.
3591         * psymtab.c (print_partial_symbols): Call QUIT.
3592         (maintenance_print_psymbols): Likewise.  Don't modify
3593         immediate_quit.
3594         * copying.c (show_copying_command): Don't modify immediate_quit.
3595         (show_warranty_command): Likewise.
3596         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3597
3598 2012-07-26  Keith Seitz  <keiths@redhat.com>
3599
3600         * linespec.c (linespec_lexer_lex_number): The input
3601         is also a valid number if the next character is a comma
3602         or colon.
3603
3604 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
3605
3606         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3607         configure options.
3608
3609 2012-07-26  Tristan Gingold  <gingold@adacore.com>
3610
3611         * machoread.c: Include gdb_bfd.h.
3612
3613 2012-07-26  Tristan Gingold  <gingold@adacore.com>
3614
3615         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3616         offset.
3617
3618 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3619
3620         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3621         SIZE to size_t.
3622         (dwarf2_evaluate_loc_desc): Likewise.
3623         (dwarf2_loc_desc_needs_frame): Likewise.
3624         (locexpr_describe_location_1): Likewise.
3625         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3626         size_t.
3627         (struct dwarf2_loclist_baton): Likewise.
3628         * dwarf2read.c (struct dwarf_block): Likewise.
3629         (dump_die_shallow): Use pulongest to print dwarf_block.size.
3630         (decode_locdesc): Expand SIZE and I to size_t.
3631
3632 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3633
3634         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3635
3636 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
3637
3638         * doublest.c (convert_doublest_to_floatformat): If the exponent
3639         is too small, treat the value as zero.  If the exponent is too
3640         large, treat the value as infinity.
3641
3642 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
3643
3644         * configure.ac: Add --enable-lmcheck configure option.
3645         * configure: Regenerate.
3646
3647 2012-07-25  Tom Tromey  <tromey@redhat.com>
3648
3649         * NEWS: Mention maint info bfds.
3650         * gdb_bfd.c (all_bfds): New global.
3651         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3652         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3653         New functions.
3654
3655 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
3656
3657         * configure.tgt: Add v850*-*-rtems*.
3658
3659 2012-07-25  Tom Tromey  <tromey@redhat.com>
3660
3661         * macrotab.c (macro_bcache_str): Remove cast.
3662
3663 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
3664
3665         * linespec.c (linespec_lexer_lex_number): Update comments,
3666         change the return and add check to make sure the input is
3667         the decimal numbers.
3668         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3669         false, call linespec_lexer_lex_string.
3670
3671 2012-07-24  Tom Tromey  <tromey@redhat.com>
3672
3673         * symfile.c (symbol_file_add): Don't open BFD twice.
3674
3675 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
3676
3677         * breakpoint.c (create_breakpoint): Store condition for pending
3678         breakpoints.
3679
3680 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
3681
3682         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3683         (m68k_return_value): Handle complex types like structures.
3684         (m68k_svr4_return_value): Likewise.
3685
3686 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3687
3688         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3689         parameters to bfd_get_section_name.
3690
3691 2012-07-24  Yao Qi  <yao@codesourcery.com>
3692
3693         * cli/cli-setshow.c: Handle case 'var_uinteger'
3694         and 'var_zuninteger' together.  Handle case 'var_integer' and
3695         'var_zinteger' together.
3696
3697 2012-07-23  Keith Seitz  <keiths@redhat.com>
3698
3699         * linespec.c (convert_linespec_to_sal): Don't add
3700         any symbols to the result vector if symbol_to_sal
3701         returns zero.
3702
3703 2012-07-23  Keith Seitz  <keiths@redhat.com>
3704
3705         * linespec.c (decode_objc): Record the function name
3706         in the linespec.
3707
3708 2012-07-23  Tom Tromey  <tromey@redhat.com>
3709
3710         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
3711         counting.
3712         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3713         (map_vmap): Acquire a reference to the BFD.
3714
3715 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3716
3717         * p-valprint.c (pascal_object_print_value): Replace potentially
3718         unsafe alloca with xmalloc/xfree.
3719         * valops.c (search_struct_method): Likewise.
3720
3721 2012-07-23  Tom Tromey  <tromey@redhat.com>
3722
3723         * solib-svr4.c (enable_break): Update.
3724         * bfd-target.h (target_bfd_reopen): Update documentation.
3725
3726 2012-07-23  Tom Tromey  <tromey@redhat.com>
3727
3728         * symfile.c (separate_debug_file_exists): Update.
3729         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3730         (reread_symbols): Update.
3731         * elfread.c (build_id_verify): Update.
3732         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3733         bfd_open_maybe_remote.
3734
3735 2012-07-23  Tom Tromey  <tromey@redhat.com>
3736
3737         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3738
3739 2012-07-23  Tom Tromey  <tromey@redhat.com>
3740
3741         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3742         and 'abfd'.
3743         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3744         and 'abfd'.
3745         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3746         * machoread.c (macho_add_oso_symfile): Make a cleanup for
3747         'abfd'.
3748         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3749         * objfiles.c (allocate_objfile): Acquire a new reference.
3750         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3751         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3752         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3753         a cleanup for 'nbfd'.
3754         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3755         for 'nbfd'.
3756         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3757         make a cleanup for 'abfd'.
3758         (symbol_file_add): Make a BFD cleanup.
3759
3760 2012-07-23  Tom Tromey  <tromey@redhat.com>
3761
3762         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3763         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3764         * corelow.c (core_open): Use gdb_bfd_fopen.
3765         * dsrec.c (load_srec): Use gdb_bfd_openr.
3766         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3767         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3768         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3769         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3770         (gdb_bfd_fdopenr): New functions.
3771         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3772         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3773         (gdb_bfd_fdopenr): Declare.
3774         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3775         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3776         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3777         gdb_bfd_openr_next_archived_file.
3778         (macho_check_dsym): Use gdb_bfd_openr.
3779         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3780         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3781         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3782         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3783         gdb_bfd_openr.
3784         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3785         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3786         gdb_bfd_openr_next_archived_file.
3787         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3788         Use gdb_bfd_openr.
3789         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3790         gdb_bfd_openr.
3791         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3792         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3793         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3794         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3795         (symfile_bfd_open): Use gdb_bfd_fopen.
3796         (generic_load): Use gdb_bfd_openr.
3797         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3798
3799 2012-07-23  Tom Tromey  <tromey@redhat.com>
3800
3801         * bfd-target.c (target_bfd_reopen): Update.
3802         * cli/cli-dump.c (bfd_openr_with_cleanup)
3803         (bfd_openw_with_cleanup): Update.
3804         * corelow.c (core_open): Update.
3805         * dsrec.c (load_srec): Update.
3806         * exec.c (exec_file_attach): Update.
3807         * gcore.c (create_gcore_bfd): Update.
3808         * gdb_bfd.c (gdb_bfd_ref): Return void.
3809         (gdb_bfd_open): Update.
3810         * gdb_bfd.h (gdb_bfd_ref): Return void.
3811         Update comments.
3812         * jit.c (jit_bfd_try_read_symtab): Update.
3813         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3814         * machoread.c (macho_symfile_read_all_oso): Update.
3815         (macho_check_dsym): Update.
3816         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3817         * remote-m32r-sdi.c (m32r_load): Update.
3818         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3819         * rs6000-nat.c (add_vmap): Update.
3820         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3821         Update.
3822         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3823         * solib-spu.c (spu_bfd_open): Update.
3824         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3825         * spu-linux-nat.c (spu_bfd_open): Update.
3826         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3827         (generic_load): Update.
3828         * windows-nat.c (windows_make_so): Update.
3829
3830 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3831
3832         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3833
3834 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3835
3836         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3837         SIGTRAMP_FRAME unwinding.
3838
3839 2012-07-20  Doug Evans  <dje@google.com>
3840
3841         * NEWS: Document new options "set/show use-deprecated-index-sections",
3842         and delete reference to --use-deprecated-index-sections.
3843         * symfile.h (use_deprecated_index_sections): Delete.
3844         * dwarf2read.c (use_deprecated_index_sections): Make static.
3845         (read_index_from_section): Update wording of how to load
3846         deprecated index sections.
3847         (_initialize_dwarf2_read): New options
3848         "set/show use-deprecated-index-sections".
3849         * main.c (captured_main): Delete --use-deprecated-index-sections.
3850
3851 2012-07-20  Pedro Alves  <palves@redhat.com>
3852
3853         PR threads/11692
3854         PR gdb/12203
3855
3856         * infrun.c (handle_inferior_event) <new thread>: Don't special
3857         case minus_one_ptid.
3858         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3859         * linux-thread-db.c (thread_get_info_callback): Don't return early
3860         if the thread is zombie.
3861         (thread_from_lwp): Change return type to void.  Rewrite stale
3862         comment.
3863         (attach_thread): Don't return early if the thread is zombie,
3864         instead set its "dying" flag.
3865         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3866         (find_new_threads_callback): Don't return early if the thread is
3867         zombie.
3868
3869 2012-07-20  Pedro Alves  <palves@redhat.com>
3870
3871         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3872         * target.c (target_wait): Likewise.
3873         (str_comma_list_concat_elem, do_option, target_options_to_string):
3874         New functions.
3875         * target.h (target_options_to_string): Declare.
3876
3877 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3878             Tom Tromey  <tromey@redhat.com>
3879
3880         * dwarf2read.c (dwarf_decode_macros)
3881         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3882         DW_MACRO_GNU_transparent_include_alt>: New cases.
3883         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3884         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3885
3886 2012-07-20  Tom Tromey  <tromey@redhat.com>
3887
3888         * dwarf2read.c (try_open_dwo_file): Don't call
3889         gdb_bfd_stash_filename.
3890
3891 2012-07-20  Pedro Alves  <palves@redhat.com>
3892
3893         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3894         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3895         (i386_process_record): Tweak description comments.
3896
3897 2012-07-20  Pedro Alves  <palves@redhat.com>
3898
3899         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3900         (i386_process_record): Use record_read_memory.
3901         * record.c (record_read_memory): New function.
3902         (record_arch_list_add_mem, record_exec_insn): Use
3903         record_read_memory.
3904         * record.h (record_read_memory): Declare.
3905
3906 2012-07-20  Yao Qi  <yao@codesourcery.com>
3907
3908         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3909         NULL for xfree.
3910
3911 2012-07-19  Pedro Alves  <palves@redhat.com>
3912
3913         * record.c (record_resume): Ask the target beneath to report all
3914         signals.
3915
3916 2012-07-19  Doug Evans  <dje@google.com>
3917
3918         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3919         there's no section at address zero.
3920         (dwarf2_record_block_ranges): Ditto.
3921
3922 2012-07-19  Yao Qi  <yao@codesourcery.com>
3923
3924         * command.h, remote.c: Fix a typo in comment.
3925
3926 2012-07-19  Tom Tromey  <tromey@redhat.com>
3927
3928         PR exp/13206:
3929         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3930         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3931         OP_DECLTYPE>: New cases.
3932         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3933         (type_exp): Add new productions.
3934         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3935         and decltype.
3936         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3937         New case.
3938         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3939         OP_DECLTYPE>: New case.
3940         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3941         New case.
3942         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3943         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3944
3945 2012-07-19  Tom Tromey  <tromey@redhat.com>
3946
3947         * c-exp.y (enum token_flags): New.
3948         (struct token) <cxx_only>: Remove.
3949         <flags>: New field.
3950         (tokentab3, tokentab2, ident_tokens): Update.
3951         (lex_one_token): Update.  Handle FLAG_SHADOW.
3952
3953 2012-07-19  Tom Tromey  <tromey@redhat.com>
3954
3955         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3956         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3957         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3958         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3959         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3960         type_exp production where appropriate.
3961         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3962         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3963         <UNOP_MEMVAL_TYPE>: New case.
3964         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3965         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3966         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3967         <UNOP_MEMVAL_TYPE>: New case.
3968         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3969         UNOP_REINTERPRET_CAST>: Update.
3970         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3971         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3972         UNOP_REINTERPRET_CAST>: Update.
3973         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3974         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3975         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3976         constants.
3977
3978 2012-07-19  Yao Qi  <yao@codesourcery.com>
3979             Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3982         and case 'var_optional_filename' together.
3983         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3984         instead of add_setshow_optional_filename_cmd for setshow command
3985         'args'.  Set completer for 'set args'.
3986
3987 2012-07-18  Doug Evans  <dje@google.com>
3988
3989         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3990         * common/gdb_vecs.c: New file, contents from utils.c.
3991         * common/host-defs.h: New file, contents from defs.h.
3992         * utils.h: New file, contents from defs.h.
3993         * defs.h: Move all declarations of objects defined in utils.c
3994         to utils.h (except QUIT() and related).
3995         #include "utils.h", "host-defs.h".
3996         * probe.h (probe_p): Move here from gdb_vecs.h.
3997         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3998         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3999         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4000         * Makefile.in (SFILES): Add common/gdb_vecs.c.
4001         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4002         (COMMON_OBS): Add gdb_vecs.o.
4003         (gdb_vecs.o): New rule.
4004
4005 2012-07-18  Keith Seitz  <keiths@redhat.com>
4006
4007         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4008         parameter.  If non-zero, use SYMNAME as the canonical name
4009         for the SaL.
4010         Update all callers.
4011         (convert_linespec_to_sals): Use add_sal_to_sals for
4012         expressions, too.
4013         (decode_line_full): No need to "fill in missing canonical names"
4014         anymore. Simply make cleanups for the allocated names.
4015
4016 2012-07-18  Keith Seitz  <keiths@redhat.com>
4017
4018         * linespec.c (struct linespec): Constify expression,
4019         source_filename, function_name, and label_name.
4020         (symbol_not_found_error): Make all parameters const.
4021         (linespec_parser_delete): No need to check for NULL
4022         when using xfree. Cast const char * to char * for xfree.
4023
4024 2012-07-18  Keith Seitz  <keiths@redhat.com>
4025
4026         * breakpoint.c (invalid_thread_id_error): New function.
4027         (find_condition_and_thread): Use invalid_thread_id_error.
4028         (watch_command_1): Likewise.
4029
4030 2012-07-18  Tom Tromey  <tromey@redhat.com>
4031
4032         * cc-with-index.sh, cc-with-dwz.sh: Remove.
4033         * contrib/cc-with-tweaks.sh: New file.
4034
4035 2012-07-18  Tom Tromey  <tromey@redhat.com>
4036
4037         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4038         (locate_dwz_sections): Recognize .gdb_index.
4039         (create_cus_from_index_list): New function.
4040         (create_cus_from_index): Use it.  Handle .dwz data.
4041         (read_index_from_section): New function, extracted from
4042         dwarf2_read_index.
4043         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
4044         if needed.
4045
4046 2012-07-18  Tom Tromey  <tromey@redhat.com>
4047
4048         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4049         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4050         <is_dwz>: New field.
4051         (struct dwz_file): New.
4052         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4053         (locate_dwz_sections, dwarf2_get_dwz_file)
4054         (get_abbrev_section_for_cu): New functions.
4055         (error_check_comp_unit_head, read_and_check_comp_unit_head)
4056         (read_and_check_type_unit_head): Add abbrev_section argument.
4057         (create_debug_types_hash_table): Update.
4058         (init_cutu_and_read_dies): Use proper abbrev section.
4059         (init_cutu_and_read_dies_no_follow): Likewise.
4060         (set_partial_user): Do nothing if PST==NULL.
4061         (read_comp_units_from_section): New function.
4062         (create_all_comp_units): Use it.
4063         (scan_partial_symbols, partial_die_parent_scope): Update.
4064         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4065         (process_imported_unit_die, read_partial_die): Handle .dwz files.
4066         (find_partial_die): Add offset_in_dwz argument.  Update.
4067         (guess_partial_die_structure_name, fixup_partial_die): Update.
4068         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4069         DW_FORM_GNU_strp_alt.
4070         (read_indirect_string_from_dwz): New function.
4071         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4072         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4073         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4074         (follow_die_offset): Add offset_in_dwz argument.
4075         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4076         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4077         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4078         Handle new macro forms.
4079         (dwarf_decode_macros): Update.
4080         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4081         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4082         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4083         (create_debug_types_hash_table): Use correct abbrev section.
4084         (get_debug_line_section): New function.
4085         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4086         (process_full_comp_unit): Pass 'required' argument to
4087         end_symtab_get_static_block.
4088         * buildsym.h (end_symtab_get_static_block): Update.
4089         * buildsym.c (end_symtab_get_static_block): Add 'required'
4090         argument.
4091         (end_symtab, end_expandable_symtab): Update.
4092
4093 2012-07-18  Tom Tromey  <tromey@redhat.com>
4094
4095         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4096         (pagesize): Remove.
4097         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4098         (zlib_decompress_section): Remove.
4099         (dwarf2_read_section): Use gdb_bfd_map_section.
4100         (munmap_section_buffer): Remove.
4101         (free_dwo_file, dwarf2_per_objfile_free): Don't use
4102         munmap_section_buffer.
4103         * gdb_bfd.c: Include zlib.h, sys/mman.h.
4104         (struct gdb_bfd_section_data): New.
4105         (free_one_bfd_section): New function.
4106         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4107         (get_section_descriptor, zlib_decompress_section)
4108         (gdb_bfd_map_section): New functions.
4109         * gdb_bfd.h (gdb_bfd_map_section): Declare.
4110
4111 2012-07-18  Tom Tromey  <tromey@redhat.com>
4112
4113         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4114
4115 2012-07-18  Tom Tromey  <tromey@redhat.com>
4116
4117         * gdb_bfd.c (struct gdb_bfd_data): New.
4118         (gdb_bfd_cache): New global.
4119         (struct gdb_bfd_cache_search): New.
4120         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4121         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4122         * gdb_bfd.h (gdb_bfd_open): Declare.
4123
4124 2012-07-18  Tom Tromey  <tromey@redhat.com>
4125
4126         * utils.c (make_cleanup_bfd_unref): Rename from
4127         make_cleanup_bfd_close.
4128         * defs.h (make_cleanup_bfd_unref): Rename from
4129         make_cleanup_bfd_close.
4130         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4131         (bfd_openw_with_cleanup): Update.
4132         * corelow.c (core_open): Update.
4133         * dsrec.c (load_srec): Update.
4134         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4135         * remote-m32r-sdi.c (m32r_load): Update.
4136         * remote-mips.c (mips_load_srec): Update.
4137         (pmon_load_fast): Update.
4138         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4139         Update.
4140         (darwin_bfd_open): Update.
4141         * solib.c (solib_bfd_fopen): Update.
4142         * symfile-mem.c (symbol_file_add_from_memory): Update.
4143         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4144         (symfile_bfd_open): Update.
4145         (generic_load): Update.
4146
4147 2012-07-18  Tom Tromey  <tromey@redhat.com>
4148
4149         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4150         (pmon_load_fast): Likewise.
4151         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4152         (m32r_upload_command): Likewise.
4153         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4154         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4155         Use make_cleanup_bfd_close.
4156
4157 2012-07-18  Tom Tromey  <tromey@redhat.com>
4158
4159         * symfile.c (symfile_bfd_open): Don't copy name.  Call
4160         gdb_bfd_stash_filename.
4161         (load_command): Open the new BFD before freeing the old.
4162         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4163         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4164         Call gdb_bfd_stash_filename.
4165         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4166         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
4167         gdb_bfd_stash_filename.
4168         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4169         Free found_pathname.
4170         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
4171         gdb_bfd_stash_filename.
4172         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4173         * machoread.c (macho_add_oso_symfile): Call
4174         gdb_bfd_stash_filename.
4175         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
4176         gdb_bfd_stash_filename.
4177         (macho_check_dsym): Don't copy filename.  Call
4178         gdb_bfd_stash_filename.
4179         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4180         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4181         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4182         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4183         * exec.c (exec_close): Don't free the BFD's filename.
4184         (exec_file_attach): Don't copy the filename.  Call
4185         gdb_bfd_stash_filename.
4186         * corelow.c (core_close): Don't free the BFD's filename.
4187         (core_open): Call gdb_bfd_stash_filename.
4188         * corefile.c (reopen_exec_file): Remove #if 0 code.
4189         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
4190         pathname.
4191         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4192
4193 2012-07-18  Tom Tromey  <tromey@redhat.com>
4194
4195         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4196         gdb_bfd_unref.
4197         (free_dwo_file): Use gdb_bfd_unref.
4198         * cli/cli-dump.c: Include gdb_bfd.h.
4199         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4200         (bfd_openr_with_cleanup): Likewise.
4201         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4202         gdb_bfd_unref.
4203         * utils.c: Include gdb_bfd.h.
4204         (do_bfd_close_cleanup): Use gdb_bfd_unref.
4205         * symfile.c: Include gdb_bfd.h.
4206         (separate_debug_file_exists): Use gdb_bfd_unref.
4207         (bfd_open_maybe_remote): Use gdb_bfd_ref.
4208         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4209         (generic_load): Use gdb_bfd_ref.
4210         (reread_symbols): Use gdb_bfd_unref.
4211         * symfile-mem.c: Include gdb_bfd.h.
4212         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4213         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4214         * solib.c: Include gdb_bfd.h.
4215         (solib_bfd_fopen): Use gdb_bfd_ref.
4216         (solib_bfd_open): Use gdb_bfd_unref.
4217         (free_so_symbols): Use gdb_bfd_unref.
4218         (reload_shared_libraries_1): Use gdb_bfd_unref.
4219         * solib-spu.c: Include gdb_bfd.h.
4220         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4221         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4222         gdb_bfd_unref.
4223         * solib-frv.c: Include gdb_bfd.h.
4224         (enable_break2): Use gdb_bfd_unref.
4225         * solib-dsbt.c: Include gdb_bfd.h.
4226         (enable_break2): Use gdb_bfd_unref.
4227         * solib-darwin.c: Include gdb_bfd.h.
4228         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4229         gdb_bfd_unref.
4230         (darwin_bfd_open): Use gdb_bfd_unref.
4231         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4232         * remote-mips.c: Include gdb_bfd.h.
4233         (mips_load_srec): Use gdb_bfd_ref.
4234         (pmon_load_fast): Use gdb_bfd_ref.
4235         * remote-m32r-sdi.c: Include gdb_bfd.h.
4236         (m32r_load): Use gdb_bfd_ref.
4237         * record.c: Include gdb_bfd.h.
4238         (record_save_cleanups): Use gdb_bfd_unref.
4239         (cmd_record_save): Use gdb_bfd_unref.
4240         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4241         gdb_bfd_unref.
4242         * objfiles.h (gdb_bfd_close_or_warn): Remove.
4243         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4244         * objfiles.c: Include gdb_bfd.h.
4245         (free_objfile): Use gdb_bfd_unref.
4246         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4247         gdb_bfd.c.
4248         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4249         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4250         (macho_check_dsym): Likewise.
4251         * m32r-rom.c: Include gdb_bfd.h.
4252         (m32r_load): Use gdb_bfd_ref.
4253         (m32r_upload_command): Use gdb_bfd_ref.
4254         * jit.c: Include gdb_bfd.h.
4255         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4256         * gdb_bfd.h: New file.
4257         * gdb_bfd.c: New file.
4258         * gcore.c: Include gdb_bfd.h.
4259         (create_gcore_bfd): Use gdb_bfd_ref.
4260         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4261         (gcore_command): Use gdb_bfd_unref.
4262         * exec.c: Include gdb_bfd.h.
4263         (exec_close): Use gdb_bfd_unref.
4264         (exec_close_1): Use gdb_bfd_unref.
4265         (exec_file_attach): Use gdb_bfd_ref.
4266         * elfread.c: Include gdb_bfd.h.
4267         (build_id_verify): Use gdb_bfd_unref.
4268         * dsrec.c: Include gdb_bfd.h.
4269         (load_srec): Use gdb_bfd_ref.
4270         * corelow.c: Include gdb_bfd.h.
4271         (core_close): Use gdb_bfd_unref.
4272         (core_open): Use gdb_bfd_ref.
4273         * bfd-target.c: Include gdb_bfd.h.
4274         (target_bfd_xclose): Use gdb_bfd_unref.
4275         (target_bfd_reopen): Use gdb_bfd_ref.
4276         * Makefile.in (SFILES): Add gdb_bfd.c.
4277         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4278         (COMMON_OBS): Add gdb_bfd.o.
4279
4280 2012-07-18  Keith Seitz  <keiths@redhat.com>
4281
4282         * breakpoint.c (find_condition_and_thread): Initialize
4283         TASK and REST.
4284         (create_breakpiont): find_condition_and_thread will now
4285         initialize COND_STRING, THREAD, and REST (and TASK).
4286         (addr_string_to_sals): Likewise.
4287
4288 2012-07-18  Pedro Alves  <palves@redhat.com>
4289
4290         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4291         Pull the single step breakpoints out of the target.
4292
4293 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4294
4295         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4296         * stap-probe.c (compile_probe_arg): Likewise.
4297
4298 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
4299
4300         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4301         (elf_compile_to_ax): Likewise.
4302         * infrun.c (insert_exception_resume_from_probe): Likewise.
4303         (check_exception_resume): Remove `objfile' variable.
4304         * probe.c (find_probe_by_pc): Remove `objfile' argument.
4305         (struct probe_and_objfile, probe_and_objfile_s): Delete.
4306         (collect_probes): Adjust return value to `VEC (probe_p) *'.
4307         (compare_entries): Rename to...
4308         (compare_probes): ...this.  Adjust function to work with
4309         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
4310         respectively.
4311         (gen_ui_out_table_header_info): Adjust `probes' argument to be
4312         `VEC (probe_p) *'.
4313         (print_ui_out_info): Adjust argument to be `struct probe *'.
4314         (info_probes_for_ops): Adjust internal computations to use
4315         `VEC (probe_p) *'.
4316         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4317         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4318         gen_info_probes_table_values>: Remove `objfile' argument.
4319         (struct probe) <objfile>: New field.
4320         (find_probe_by_pc): Remove `objfile' argument.
4321         * stap-probe.c (stap_parse_probe_arguments): Likewise.
4322         (stap_get_probe_argument_count): Likewise.
4323         (stap_get_arg): Likewise.
4324         (stap_evaluate_probe_argument): Likewise.
4325         (stap_compile_to_ax): Likewise.
4326         (compile_probe_arg): Refactor not to pass `objfile' anymore.
4327         (handle_stap_probe): Fill `objfile' field from `struct probe'.
4328         (stap_gen_info_probes_table_header): Remove `objfile' argument.
4329         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4330         sym_compile_to_ax>: Likewise.
4331
4332 2012-07-18  Terry Guo  <terry.guo@arm.com>
4333
4334         PR 14329
4335         * defs.h (GDB_MI_MSG_WIDTH): New.
4336         * ser_base (ser_base_read_error_fd): New function.
4337         (do_ser_base_readchar): Poll error file descriptor as well as
4338         standard output.
4339         (generic_readchar): Refactor error handling.
4340
4341 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4342
4343         * NEWS: Create a new section for the next release branch.
4344         Rename the section of the current branch, now that it has
4345         been cut.
4346
4347 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
4348
4349         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4350         * version.in: Bump version to 7.5.50.20120718-cvs.
4351
4352 2012-07-17  Keith Seitz  <keiths@redhat.com>
4353
4354         * linespec.c (linespec_parse_line_offset): Make parameter
4355         const.
4356
4357 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4358
4359         PR 11914
4360         * f-valprint.c (info_common_command): New variable frame_id.
4361         Reinitialize FI form FRAME_ID after each print_variable_and_value.
4362         * printcmd.c (print_variable_and_value): Extend function comment.
4363         Add comment for invalidated FRAME.
4364         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
4365         FI form FRAME_ID after each print_frame_local_vars.
4366         (struct print_variable_and_value_data): Change frame to frame_id.
4367         (do_print_variable_and_value): New variable frame, initialize it from
4368         p->frame_id.  Add comment for invalidated FRAME.
4369         (print_frame_local_vars, print_frame_arg_vars): New function comment.
4370         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
4371         for invalidated FRAME.
4372
4373 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
4374             Pedro Alves  <palves@redhat.com>
4375
4376         * linux-nat.c (linux_nat_detach): Don't unregister from the event
4377         loop.
4378
4379 2012-07-16  Tom Tromey  <tromey@redhat.com>
4380
4381         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4382
4383 2012-07-15  Doug Evans  <dje@google.com>
4384
4385         * dwarf2read.c (stmt_list_hash): New struct.
4386         (type_unit_group): Embed "per_cu" member, remove pointer.
4387         New union member "t", move member "tus" into it, all uses updated.
4388         New member "hash", replaces member "line_offset, all uses updated.
4389         (quick_file_names): Replace member "offset" with "hash", all uses
4390         updated.
4391         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4392         (hash_file_name_entry, eq_file_name_entry): Call them.
4393         (hash_type_unit_group, eq_type_unit_group): Ditto.
4394         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4395         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4396         (dw2_get_file_names): Update.
4397         (create_type_unit_group): Replace "per_cu" arg with "cu".
4398         All callers updated.  Fix "quick" (.gdb_index) handling.
4399         (get_type_unit_group): Replace "per_cu" arg with "cu".
4400         All callers updated.
4401         (build_type_unit_groups): Don't reset tu_stats.
4402
4403         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4404         "tab_cur_size".  Change member "tab" to be a htab_t.
4405         (create_filename_seen_cache): Update.
4406         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4407         (filename_seen): Update.
4408
4409 2012-07-13  Doug Evans  <dje@google.com>
4410
4411         * symtab.c (filename_seen): Update comment.
4412
4413 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4414             Doug Evans  <dje@google.com>
4415
4416         * buildsym.c (end_symtab_1): Split it to ...
4417         (end_symtab_get_static_block): ... this ...
4418         (end_symtab_from_static_block): ... and this function.
4419         (end_symtab, end_expandable_symtab): Call them.
4420         * buildsym.h (end_symtab_get_static_block)
4421         (end_symtab_from_static_block): New declarations.
4422         * dwarf2read.c (process_full_comp_unit): New variable static_block.
4423         Set its valid CU ranges.
4424
4425 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4426
4427         * dwarf2loc.c (disassemble_dwarf_expression): Handle
4428         DW_OP_GNU_parameter_ref.
4429
4430 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4431
4432         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4433         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4434
4435 2012-07-13  Doug Evans  <dje@google.com>
4436
4437         * symtab.c (output_source_filename): Delete unnecessary forward decl.
4438         (filename_seen_cache): New struct.
4439         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4440         (create_filename_seen_cache): New function.
4441         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4442         (filename_seen): Delete arg "first".  New arg "cache".  All callers
4443         updated.
4444         (output_source_filename_data): New struct.
4445         (output_source_filename): Delete arg "first".  New arg "data".
4446         All callers updated.
4447         (sources_info): Delete local "first".  New locals "data", "cleanups".
4448         Rewrite to use filename_seen_cache.
4449         (add_partial_filename_data): Delete member "first".  New member
4450         "filename_seen_cache".  All uses updated.
4451         (make_source_files_completion_list): Rewrite to use
4452         filename_seen_cache.
4453
4454 2012-07-12  Doug Evans  <dje@google.com>
4455
4456         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4457
4458 2012-07-10  Doug Evans  <dje@google.com>
4459
4460         PR gdb/13498
4461         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4462         all_type_unit_groups, type_unit_groups, tu_stats.
4463         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4464         All uses updated.  Add type_unit_group to union "s".
4465         (type_unit_group): New struct.
4466         (IS_TYPE_UNIT_GROUP): New macro.
4467         (abbrev_table): Delete unused member "section".
4468         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4469         (dw2_get_cu): Assert not used with type_unit_group.
4470         (dw2_get_primary_cu): New function.
4471         (dw2_build_type_unit_groups_reader): New function.
4472         (dw2_build_type_unit_groups): New function.
4473         (dw2_get_file_names): Assert not called on type units.
4474         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4475         Redo loop to iterate over type unit groups instead of type units.
4476         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4477         (read_abbrev_offset): New function.
4478         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
4479         updated.
4480         (create_partial_symtab): New function.
4481         (process_psymtab_comp_unit_reader): Assert not used with type units.
4482         Call create_partial_symtab.
4483         (process_psymtab_type_unit): Delete.
4484         (hash_type_unit_group, eq_type_unit_group): New functions.
4485         (allocate_type_unit_groups_table): New function.
4486         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4487         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4488         (create_type_unit_group, get_type_unit_group): New functions.
4489         (tu_abbrev_offset): New struct.
4490         (sort_tu_by_abbrev_offset): New function.
4491         (add_type_unit_group_to_table): New function.
4492         (build_type_unit_groups): New function.
4493         (build_type_psymtabs_reader): New function.
4494         (build_type_psymtab_dependencies): New function.
4495         (build_type_psymtabs): Rewrite.
4496         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4497         is seen in a type unit.
4498         (process_queue): Move symtab expansion debugging printfs here.
4499         Call process_full_type_unit for type units.
4500         (compute_symtab_includes): Assert not called for type units.
4501         (process_cu_includes): Don't call compute_symtab_includes for
4502         type units.
4503         (process_full_type_unit): New function.
4504         (process_imported_unit_die): Flag an error if called for type units.
4505         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
4506         updated.  Assert not called for type units.
4507         (read_file_scope): Call dwarf2_start_symtab.
4508         (setup_type_unit_groups): New function.
4509         (read_type_unit_scope): Rewrite.
4510         (abbrev_table_read_table): Initialize abbrev_table->offset.
4511         (abbrev_table_free_cleanup): New function.
4512         (dwarf2_start_symtab): New function.
4513         (load_full_type_unit): Assert not called for type unit groups.
4514         * buildsym.c (finish_block_internal): New arg "expandable".
4515         All callers updated.
4516         (start_symtab): Move most contents to ...
4517         (restart_symtab): ... here.  New function.
4518         (reset_symtab_globals): New function.
4519         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
4520         Call reset_symtab_globals.
4521         (end_symtab, end_expandable_symtab): New functions.
4522         (set_missing_symtab, augment_type_symtab): New functions.
4523         * buildsym.h (end_expandable_symtab): Declare.
4524         (augment_type_symtab, restart_symtab): Declare.
4525         * psympriv.h (struct partial_symtab): New member "anonymous".
4526         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4527         anonymous psymtabs.
4528         (read_psymtabs_with_filename): Ditto.
4529         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4530         (expand_symtabs_matching_via_partial): Ditto.
4531         (dump_psymtab): Update.
4532         * dictionary.c (dict_add_pending): New function.
4533         * dictionary.h (dict_add_pending): Declare.
4534
4535 2012-07-09  Doug Evans  <dje@google.com>
4536
4537         * buildsym.c (start_subfile): Remove unnecessary check for
4538         name == NULL.
4539
4540         * psymtab.c (allocate_psymtab): Use host_address_to_string.
4541
4542         * dwarf2read.c (load_full_type_unit): Simplify.
4543
4544         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4545         to struct signatured_type **.  All uses updated.
4546
4547         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4548         All callers updated.
4549
4550 2012-07-09  Tom Tromey  <tromey@redhat.com>
4551
4552         * c-exp.y (check_parameter_typelist): New function.
4553         (parameter_typelist): Call it.
4554         * eval.c (make_params): Handle '(void)' case.
4555         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4556         '(void)' case.
4557
4558 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4559
4560         * common/linux-ptrace.c: Include gdb_assert.h.
4561         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4562         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4563         stdint.h.
4564         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4565         functions.
4566         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4567         * linux-nat.c (linux_child_post_attach)
4568         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4569
4570 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4571
4572         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4573         nptl <2.7 bug workaround for core files.
4574
4575 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4576
4577         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4578         clearing.
4579         (save_siginfo): Remove.
4580         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4581         call.
4582         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4583         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4584         * linux-nat.h (struct lwp_info): Remove field siginfo.
4585
4586 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4587
4588         Code cleanup for the next patch.
4589         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4590         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4591         call for it.
4592         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4593         (ia64_linux_stopped_data_address):
4594         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4595         the return value.
4596         * linux-nat.h (linux_nat_get_siginfo): Likewise.
4597         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4598         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4599         call for it.
4600
4601 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4602
4603         PR 14321
4604         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4605         Increase buffer sizes to 2x we need, not just 2x of the previous size.
4606
4607 2012-07-06  Tom Tromey  <tromey@redhat.com>
4608
4609         * c-exp.y (DOTDOTDOT): New token.
4610         (func_mod, exp): Use parameter_typelist.
4611         (parameter_typelist): New production.
4612         (tokentab3): Add "..." token.
4613         * eval.c (make_params): Handle varargs.
4614         * gdbtypes.c (lookup_function_type_with_arguments): Handle
4615         varargs.
4616
4617 2012-07-06  Tom Tromey  <tromey@redhat.com>
4618
4619         PR exp/9608:
4620         * c-exp.y (%union) <tvec>: Change type.
4621         (func_mod): Now uses <tvec> type.
4622         (exp): Update for tvec change.
4623         (direct_abs_decl): Push the typelist.
4624         (func_mod): Return a typelist.
4625         (nonempty_typelist): Update for tvec change.
4626         * gdbtypes.c (lookup_function_type_with_arguments): New function.
4627         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4628         * parse.c (pop_type_list): New function.
4629         (push_typelist): New function.
4630         (follow_types): Handle tp_function_with_arguments.
4631         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
4632         (enum type_pieces) <tp_function_with_arguments>: New constant.
4633         (union type_stack_elt) <typelist_val>: New field.
4634         (push_typelist): Declare.
4635
4636 2012-07-06  Tom Tromey  <tromey@redhat.com>
4637
4638         * c-exp.y (%union) <type_stack>: New field.
4639         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
4640         (ptr_operator_ts): New production.
4641         (ptype): Update.
4642         * parse.c (type_stack_reserve): New function.
4643         (check_type_stack_depth): Use it.
4644         (pop_type_stack, append_type_stack, push_type_stack)
4645         (get_type_stack, type_stack_cleanup): New functions.
4646         (follow_types): Handle tp_type_stack.
4647         (_initialize_parse): Simplify initialization.
4648         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4649         constant.
4650         (union type_stack_elt) <stack_val>: New field.
4651         (get_type_stack, append_type_stack, push_type_stack)
4652         (type_stack_cleanup): Declare.
4653
4654 2012-07-06  Tom Tromey  <tromey@redhat.com>
4655
4656         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4657         Remove.
4658         (struct type_stack): New.
4659         * parse.c (type_stack, type_stack_size, type_stack_depth):
4660         Remove.
4661         (type_stack): New global.
4662         (parse_exp_in_context, check_type_stack_depth)
4663         (insert_into_type_stack, insert_type, push_type, push_type_int)
4664         (insert_type_address_space, pop_type, pop_type_int)
4665         (_initialize_parse): Update.
4666
4667 2012-07-06  Tom Tromey  <tromey@redhat.com>
4668
4669         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4670         Remove %type.
4671
4672 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4673
4674         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4675
4676 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4677             Jan Kratochvil  <jan.kratochvil@redhat.com>
4678
4679         * cp-valprint.c (cp_print_value): Replace potentially unsafe
4680         alloca with xmalloc/xfree.
4681
4682 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4683
4684         * MAINTAINERS (Write After Approval): Add myself to the list.
4685
4686 2012-07-05  Doug Evans  <dje@google.com>
4687
4688         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4689
4690 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4691
4692         * ax-gdb.c (cli/cli-utils.h): New include.
4693         (linespec.h): Ditto.
4694         (agent_eval_command_one): New function.
4695         (agent_command_1): Ditto.
4696         (agent_command): Call function agent_command_1.
4697         (agent_eval_command): Ditto.
4698         (_initialize_ax_gdb): Change help for "maint agent"
4699         and "maint agent-eval".
4700
4701 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4702
4703         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4704         * cli/cli-utils.c (check_for_argument): New function.
4705         * cli/cli-utils.h (check_for_argument): Ditto.
4706
4707 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         * NEWS: Mention x32 ABI support.
4710
4711 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4714         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4715
4716         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4717         and pc_regnum_from_eax to -1.  Update SP regnum from
4718         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4719         needed.
4720
4721         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4722         pc_regnum_from_eax.
4723
4724 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4725
4726         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4727         * dwarf2expr.h: Include gdbtypes.h.
4728         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4729         these forward declarations.
4730         (cu_offset, sect_offset): Move these ...
4731         * gdbtypes.h: Remove include dwarf2expr.h.
4732         (cu_offset, sect_offset): ... here.
4733
4734 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4735
4736         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4737         (amd64_linux_sigtramp_code): This.
4738         (amd64_x32_linux_sigtramp_code): New.
4739         (LINUX_SIGTRAMP_LEN): Updated.
4740         (amd64_linux_sigtramp_start): Check x32 sigtramp.
4741
4742 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4743
4744         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4745
4746 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4747
4748         * config.in: Regenerate.
4749         * configure: Regenerate.
4750         * configure.ac: Remove check for gnu/libc-version.h.
4751         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4752         gnu/libc-version.h.
4753         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4754         variables libc_version, libc_major and libc_minor.  Replace sscanf by
4755         inferior_has_bug.  Extend the comment.
4756
4757 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4758
4759         * linux-thread-db.c (inferior_has_bug): New function.
4760         (thread_db_find_new_threads_silently): Return boolean as checked by
4761         inferior_has_bug, describe it in the comments.
4762         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4763         earlier.  Abort the initialization if it returned non-zero.
4764         (thread_db_new_objfile): Exclude debug files.
4765         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4766         if UNTIL_NO_NEW,
4767
4768 2012-07-02  Doug Evans  <dje@google.com>
4769
4770         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4771         related to queue management.
4772
4773         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4774         instead of "debug dwarf2-die" in debugging printfs.
4775         (create_debug_info_hash_table_reader): Ditto.
4776         (create_debug_info_hash_table): Ditto.
4777         (init_dwo_file): Ditto.
4778         (init_cutu_and_read_dies): Add debugging printf.
4779         (init_cutu_and_read_dies_no_follow): Ditto.
4780         (process_psymtab_comp_unit_reader): Ditto.
4781
4782 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4783
4784         Add target-side support for dynamic printf.
4785         * NEWS: Mention the additional style.
4786         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4787         (struct bp_location): New field cmd_bytecode.
4788         * breakpoint.c: Include format.h.
4789         (disconnected_dprintf): New global.
4790         (parse_cmd_to_aexpr): New function.
4791         (build_target_command_list): New function.
4792         (insert_bp_location): Call it.
4793         (remove_breakpoints_pid): Skip dprintf breakpoints.
4794         (print_one_breakpoint_location): Ditto.
4795         (dprintf_style_agent): New global.
4796         (dprintf_style_enums): Add dprintf_style_agent.
4797         (update_dprintf_command_list): Add agent case.
4798         (agent_printf_command): New function.
4799         (_initialize_breakpoint): Add new commands.
4800         * common/ax.def (printf): New bytecode.
4801         * ax.h (ax_string): Declare.
4802         * ax-gdb.h (gen_printf): Declare.
4803         * ax-gdb.c: Include cli-utils.h, format.h.
4804         (gen_printf): New function.
4805         (maint_agent_print_command): New function.
4806         (_initialize_ax_gdb): Add maint agent-printf command.
4807         * ax-general.c (ax_string): New function.
4808         (ax_print): Add printf disassembly.
4809         * Makefile.in (SFILES): Add format.c
4810         (COMMON_OBS): Add format.o.
4811         * common/format.h: New file.
4812         * common/format.c: New file.
4813         * printcmd.c: Include format.h.
4814         (ui_printf): Call parse_format_string.
4815         * remote.c (remote_state): New field breakpoint_commands.
4816         (PACKET_BreakpointCommands): New enum.
4817         (remote_breakpoint_commands_feature): New function.
4818         (remote_protocol_features): Add new BreakpointCommands entry.
4819         (remote_can_run_breakpoint_commands): New function.
4820         (remote_add_target_side_commands): New function.
4821         (remote_insert_breakpoint): Call it.
4822         (remote_insert_hw_breakpoint): Ditto.
4823         (_initialize_remote): Add new packet configuration for
4824         target-side breakpoint commands.
4825         * target.h (struct target_ops): New field
4826         to_can_run_breakpoint_commands.
4827         (target_can_run_breakpoint_commands): New macro.
4828         * target.c (update_current_target): Handle
4829         to_can_run_breakpoint_commands.
4830
4831 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4832
4833         Execute -ix and -iex only after system and user gdbinit files.
4834         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4835         processing down after gdbinit files.
4836
4837 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4838
4839         Add fnmatch-gnu module.
4840         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4841         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4842         * gnulib/aclocal.m4: Regenerate.
4843         * gnulib/config.in: Regenerate.
4844         * gnulib/configure: Regenerate.
4845         * gnulib/import/dummy.c: Remove.
4846         * gnulib/import/Makefile.am: Regenerate.
4847         * gnulib/import/Makefile.in: Likewise.
4848         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4849         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4850         * gnulib/import/alloca.c: New file.
4851         * gnulib/import/alloca.in.h: Likewise.
4852         * gnulib/import/config.charset: Likewise.
4853         * gnulib/import/fnmatch.c: Likewise.
4854         * gnulib/import/fnmatch.in.h: Likewise.
4855         * gnulib/import/fnmatch_loop.c: Likewise.
4856         * gnulib/import/localcharset.c: Likewise.
4857         * gnulib/import/localcharset.h: Likewise.
4858         * gnulib/import/m4/alloca.m4: Likewise.
4859         * gnulib/import/m4/codeset.m4: Likewise.
4860         * gnulib/import/m4/configmake.m4: Likewise.
4861         * gnulib/import/m4/fcntl-o.m4: Likewise.
4862         * gnulib/import/m4/fnmatch.m4: Likewise.
4863         * gnulib/import/m4/glibc21.m4: Likewise.
4864         * gnulib/import/m4/localcharset.m4: Likewise.
4865         * gnulib/import/m4/locale-fr.m4: Likewise.
4866         * gnulib/import/m4/locale-ja.m4: Likewise.
4867         * gnulib/import/m4/locale-zh.m4: Likewise.
4868         * gnulib/import/m4/mbrtowc.m4: Likewise.
4869         * gnulib/import/m4/mbsinit.m4: Likewise.
4870         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4871         * gnulib/import/m4/mbstate_t.m4: Likewise.
4872         * gnulib/import/m4/stdbool.m4: Likewise.
4873         * gnulib/import/m4/wchar_h.m4: Likewise.
4874         * gnulib/import/m4/wctype_h.m4: Likewise.
4875         * gnulib/import/m4/wint_t.m4: Likewise.
4876         * gnulib/import/mbrtowc.c: Likewise.
4877         * gnulib/import/mbsinit.c: Likewise.
4878         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4879         * gnulib/import/mbsrtowcs-state.c: Likewise.
4880         * gnulib/import/mbsrtowcs.c: Likewise.
4881         * gnulib/import/ref-add.sin: Likewise.
4882         * gnulib/import/ref-del.sin: Likewise.
4883         * gnulib/import/stdbool.in.h: Likewise.
4884         * gnulib/import/streq.h: Likewise.
4885         * gnulib/import/strnlen1.c: Likewise.
4886         * gnulib/import/strnlen1.h: Likewise.
4887         * gnulib/import/verify.h: Likewise.
4888         * gnulib/import/wchar.in.h: Likewise.
4889         * gnulib/import/wctype.in.h: Likewise.
4890
4891 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4892
4893         Support shell wildcards for 'set auto-load safe-path'.
4894         * auto-load.c: Include fnmatch.h.
4895         (filename_is_in_dir): Rename to ...
4896         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4897         it.  Update function comment.  Rename dir_len to pattern_len.  New
4898         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4899         messages.  Use gdb_filename_fnmatch.
4900         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4901         pattern.
4902         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4903         * defs.h (gdb_filename_fnmatch): New declaration.
4904         * utils.c: Include fnmatch.h.
4905         (gdb_filename_fnmatch): New function.
4906
4907 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4908
4909         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4910         `-probe' and `-probe-stap' options.
4911
4912 2012-07-01  Yao Qi  <yao@codesourcery.com>
4913
4914         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4915         always_inserted_off, and always_inserted_enums.
4916         Change always_inserted_mode's type to 'enum auto_boolean'.
4917         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4918         callers.
4919         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4920         of add_setshow_enum_cmd.
4921         * infrun.c: Remove can_use_displaced_stepping_auto,
4922         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4923         can_use_displaced_stepping_enum.
4924         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4925         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4926         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4927         add_setshow_enum_cmd.
4928
4929 2012-06-30  Doug Evans  <dje@google.com>
4930
4931         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4932         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4933         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4934
4935 2012-06-29  Doug Evans  <dje@google.com>
4936
4937         * linespec.c: #include "stack.h".
4938         (decode_line_with_current_source): Moved here from symtab.c and
4939         renamed from decode_line_spec.  All callers updated.
4940         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4941         renamed from decode_line_spec_1.  All callers updated.
4942         * linespec.h (decode_line_with_current_source): Move declaration here
4943         from symtab.h and renamed from decode_line_spec.
4944         (decode_line_with_last_displayed): Move declaration here from symtab.h
4945         and renamed from decode_line_spec_1.
4946         * macrocmd.c: #include "linespec.h".
4947         * symtab.c: Remove #include "linespec.h".
4948
4949 2012-06-28  Doug Evans  <dje@google.com>
4950
4951         * dwarf2read.c (get_cu_length): New function.
4952         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4953         (create_debug_types_hash_table): Ditto.
4954         (init_cutu_and_read_dies): Ditto.
4955         (init_cutu_and_read_dies_no_follow): Ditto.
4956
4957         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4958
4959         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4960         (struct abbrev_table): Define.
4961         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4962         abbrev_table.
4963         (init_cutu_and_read_dies): Update.
4964         (abbrev_table_alloc_abbrev): New function.  Replaces
4965         dwarf_alloc_abbrev.  All callers updated.
4966         (abbrev_table_add_abbrev): New function.
4967         (abbrev_table_lookup_abbrev): New function.  Replaces
4968         dwarf2_lookup_abbrev.  All callers updated.
4969         (abbrev_table_read_table): New function.  Contents moved here from
4970         dwarf2_read_abbrevs.
4971         (dwarf2_read_abbrevs): Call it.
4972         (abbrev_table_free): New function.
4973         (dwarf2_free_abbrev_table): Call it.
4974
4975 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4976
4977         * osdata.c (info_osdata_command): Filter out "Title" columns
4978         from non-MI uses.
4979         * common/linux-osdata.c (struct osdata_type): Add title field.
4980         (osdata_table): Add titles to each entry.
4981         (linux_command_xfer_osdata): Add a column for title data.
4982
4983 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4984
4985         Make logging work for MI.
4986         * NEWS: Mention it.
4987         * interps.h (interp_set_logging_ftype): New typedef.
4988         (struct interp_procs): New field set_logging_proc.
4989         (current_interp_set_logging): Declare.
4990         * interps.c (current_interp_set_logging): New function.
4991         * cli/cli-logging.c: Include interps.h.
4992         (set_logging_redirect): Call current_interp_set_logging.
4993         (pop_output_files): Ditto.
4994         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4995         * mi/mi-console.h (mi_console_set_raw): Declare.
4996         * mi/mi-console.c (mi_console_set_raw): New function.
4997         * mi/mi-interp.c (saved_raw_stdout): New global.
4998         (mi_set_logging): New function.
4999         (_initialize_mi_interp): Add it to interp procs.
5000
5001 2012-06-28  Doug Evans  <dje@google.com>
5002
5003         * symtab.c (lookup_symbol_aux_objfile): Use
5004         ALL_OBJFILE_PRIMARY_SYMTABS.
5005
5006         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5007
5008 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5009
5010         * common/buffer.c: Include inttypes.h and stdint.h.
5011         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5012
5013 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5014             Pedro Alves  <palves@redhat.com>
5015
5016         * gdbthread.h (ALL_THREADS): New macro.
5017         (thread_list): Declare.
5018         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5019         going, but instead fall through to the stepping handling.
5020         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
5021         the passed in signal.  Adjust debug output.
5022         (resume_callback): Rename to ...
5023         (linux_nat_resume_callback): ... this.  Pass the thread's last
5024         stop signal, if in "pass" state.
5025         (linux_nat_resume): Adjust to rename.
5026         (stop_wait_callback): New assertion.  Don't respawn signals;
5027         instead let the LWP remain with SIGNALLED set.
5028         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5029         * remote.c (append_pending_thread_resumptions): New.
5030         (remote_vcont_resume): Call it.
5031         * target.h (target_resume): Extend comment.
5032
5033 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
5034
5035         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5036
5037 2012-06-27  Doug Evans  <dje@google.com>
5038
5039         * dwarf2read.c (dwarf2_cu): Add ranges_base.
5040         Delete have_addr_base, unused.  All uses updated.
5041         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5042         (dwarf2_get_pc_bounds): Add ranges_base.
5043         (dwarf2_record_block_ranges): Ditto.
5044
5045 2012-06-27  Tom Tromey  <tromey@redhat.com>
5046
5047         PR macros/7961:
5048         * varobj.c (varobj_create): Update.
5049         (varobj_set_value): Update.
5050         * tracepoint.c (validate_actionline): Update.
5051         (encode_actions_1): Update.
5052         * parse.c (parse_exp_1): Add 'pc' argument.
5053         (parse_exp_in_context): Add 'pc' argument.  Change how
5054         expression_context_pc is set.
5055         (parse_expression): Update.
5056         (parse_field_expression): Update.
5057         * expression.h (parse_exp_1): Update.
5058         * eval.c (parse_to_comma_and_eval): Update.
5059         * breakpoint.c (set_breakpoint_condition): Update.
5060         (update_watchpoint): Update.
5061         (init_breakpoint_sal): Update
5062         (find_condition_and_thread): Update.
5063         (watch_command_1): Update.
5064         (update_breakpoint_locations): Update.
5065         * ada-lang.c (ada_read_renaming_var_value): Update.
5066         (create_excep_cond_exprs): Update.
5067
5068 2012-06-27  Doug Evans  <dje@google.com>
5069
5070         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5071         type units.
5072
5073 2012-06-26  Doug Evans  <dje@google.com>
5074
5075         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5076         prototype.
5077         (error_check_comp_unit_head): New arg abbrev_section.  All callers
5078         updated.
5079         (read_and_check_comp_unit_head): Ditto.
5080         (read_and_check_type_unit_head): Ditto.
5081
5082 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
5083
5084         New attribute 'last' for gdb.Symtab_and_line.
5085         * NEWS (Python Scripting): Add entry about the new attribute.
5086         * python/py-symtab.c (salpy_get_last): New function which
5087         implements the get method for the 'last' attribute of
5088         gdb.Symtab_and_line.
5089         (sal_object_getset): Add entry for the 'last' attribute.
5090
5091 2012-06-26  Doug Evans  <dje@google.com>
5092
5093         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5094         (dwo_sections): Add macinfo, macro.
5095         (dwarf2_locate_dwo_sections): Watch for macro sections.
5096         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5097         All callers updated.  Handle DWO files.
5098
5099         * NEWS: Mention new options "set debug dwarf2-read" and
5100         "set debug symtab-create".
5101         * dwarf2read.c (dwarf2_read_debug): New static global.
5102         (dwarf2_build_psymtabs_hard): Add debugging printfs.
5103         (process_queue): Ditto.
5104         (process_full_comp_unit): Ditto.
5105         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5106         * elfread.c (elf_symfile_read): Add debugging printf.
5107         * minsyms.c (install_minimal_symbols): Ditto.
5108         * psymtab.c (allocate_psymtab): Ditto.
5109         * symfile.c (allocate_symtab): Ditto.
5110         * symtab.c (symtab_create_debug): New global.
5111         (_initialize_symtab): Add new option "set debug symtab-create".
5112         * symtab.h (symtab_create_debug): Declare.
5113
5114         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5115         (lookup_dwo_type_unit): Ditto.
5116
5117 2012-06-26  Roland McGrath  <roland@hack.frob.com>
5118             H.J. Lu  <hongjiu.lu@intel.com>
5119
5120         * amd64-linux-nat.c: Include <sys/user.h>.
5121         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5122         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5123         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5124
5125         * configure.ac: Check if the fs_base and gs_base members of
5126         `struct user_regs_struct' exist.
5127         * config.in: Regenerated.
5128         * configure: Likewise.
5129
5130 2012-06-25  Michael Eager  <eager@eagercon.com>
5131
5132         PR python/14291
5133         * python/python.c (gdbpy_write): Check for interrupted output.
5134
5135 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
5136
5137         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5138         register as a stack alignment in ARM mode.
5139
5140 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5141
5142         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5143         * gnulib/config.in: Regenerate.
5144         * gnulib/configure: Likewise.
5145         * gnulib/import/m4/extensions.m4: Update it.
5146         * gnulib/import/m4/gnulib-common.m4: Likewise.
5147         * gnulib/import/m4/memmem.m4: Likewise.
5148         * gnulib/import/m4/mmap-anon.m4: Likewise.
5149         * gnulib/import/m4/multiarch.m4: Likewise.
5150         * gnulib/import/stdint.in.h: Likewise.
5151
5152 2012-06-24  Yao Qi  <yao@codesourcery.com>
5153
5154         * corefile.c (write_memory_with_notification): New.
5155         * gdbcore.h: Declare write_memory_with_notification.
5156         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5157         'observer_notify_memory_changed' with 'write_memory_with_notification'.
5158         * valops.c (value_assign): Likewise.
5159         * python/py-inferior.c (infpy_write_memory): Call
5160         'write_memory_with_notification'.
5161
5162 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5163
5164         * cc-with-index.sh: Use also -ex "set auto-load no".
5165
5166 2012-06-23  Doug Evans  <dje@google.com>
5167
5168         PR 14125
5169         * NEWS: Document additions to .gdb_index.
5170         * dwarf2read.c: #include "gdb/gdb-index.h".
5171         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5172         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5173         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5174         (dwarf2_read_index): Recognize version 7.
5175         (dw2_do_expand_symtabs_matching): New args want_specific_block,
5176         block_kind, domain): All callers updated.
5177         (dw2_find_symbol_file): Handle new index CU values.
5178         (dw2_expand_symtabs_matching): Match symbol kind if requested.
5179         (add_index_entry): New args is_static, kind.  All callers updated.
5180         (offset_type_compare, uniquify_cu_indices): New functions
5181         (symbol_kind): New function.
5182         (write_psymtabs_to_index): Remove duplicate CU values.
5183         (write_psymtabs_to_index): Write .gdb_index version 7.
5184
5185 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
5186
5187         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5188         * configure: Regenerate.
5189
5190 2012-06-20  Yao Qi  <yao@codesourcery.com>
5191
5192         * python/py-inferior.c: Update comments of infpy_read_memory
5193         and infpy_write_memory.
5194
5195 2012-06-19  Tom Tromey  <tromey@redhat.com>
5196
5197         PR exp/9514:
5198         * parser-defs.h (insert_type, insert_type_address_space): Declare.
5199         (push_type_address_space): Remove.
5200         * parse.c (insert_into_type_stack): New function.
5201         (insert_type): Likewise.
5202         (insert_type_address_space): Rename from push_type_address_space.
5203         Insert tp_space_identifier.
5204         * c-exp.y (ptr_operator): New production.
5205         (abs_decl): Use ptr_operator.
5206         (space_identifier): Call insert_type_address_space.
5207         (ptype): Don't use const_or_volatile_or_space_identifier.
5208         (const_or_volatile_noopt): Call insert_type.
5209         (conversion_type_id, conversion_declarator): New productions.
5210         (operator): Use conversion_type_id.
5211
5212 2012-06-18  Doug Evans  <dje@google.com>
5213
5214         * symtab.h (minimal_symbol): New member created_by_gdb.
5215         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5216         created by gdb.
5217         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5218         (search_symbols): Call it instead of lookup_symbol.
5219         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
5220
5221         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5222         Adjust address for DW_OP_GNU_addr_index.
5223         * dwarf2expr.h (dwarf_expr_context): Update comment.
5224         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5225         all callers updated.  Handle TLS vars described with
5226         DW_OP_GNU_const_index.
5227         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5228         and DW_OP_GNU_const_index.
5229         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5230
5231         * block.c (find_block_in_blockvector): Make explicit the fact that we
5232         ignore GLOBAL_BLOCK.
5233
5234 2012-06-18  Tom Tromey  <tromey@redhat.com>
5235
5236         * c-exp.y (operator): Remove trailing space after "delete" and
5237         "delete[]".
5238
5239 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
5240             Jan Kratochvil  <jan.kratochvil@redhat.com>
5241
5242         Switch i386 and derived targets to ON_STACK.
5243         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5244         (amd64_dicos_init_abi): Remove its installment.
5245         * dicos-tdep.c (dicos_init_abi): Remove the
5246         set_gdbarch_call_dummy_location call.  Update the comment here.
5247         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5248         (i386_dicos_init_abi): Remove its installment.
5249         * i386-tdep.c (i386_push_dummy_code): New function.
5250         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5251         i386_push_dummy_code.
5252
5253 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5254
5255         Remove stale dummy frames.
5256         * breakpoint.c: Include dummy-frame.h.
5257         (longjmp_breakpoint_ops): New variable.
5258         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5259         bp_longjmp_call_dummy.
5260         (bpstat_what, bptype_string, print_one_breakpoint_location)
5261         (init_bp_location): Support bp_longjmp_call_dummy.
5262         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
5263         (set_longjmp_breakpoint_for_call_dummy)
5264         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5265         functions.
5266         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5267         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
5268         FIXME comment and extend the other comment for bp_call_dummy.
5269         (set_longjmp_breakpoint_for_call_dummy)
5270         (check_longjmp_breakpoint_for_call_dummy): New declarations.
5271         * dummy-frame.c: Include gdbthread.h.
5272         (pop_dummy_frame_bpt): New function.
5273         (pop_dummy_frame): Call pop_dummy_frame_bpt.
5274         (dummy_frame_discard): New function.
5275         (cleanup_dummy_frames): Update the comment about longjmps.
5276         * dummy-frame.h (dummy_frame_discard): New declaration.
5277         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5278         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
5279         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
5280         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5281         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
5282         keep_going if IS_LONGJMP and there is no other reason to stop.
5283
5284 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
5285
5286         * remote-sim.c (sim_command_completer): Initialize
5287         variable 'result'.
5288
5289 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5290
5291         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5292         * dwarf2loc.c (call_site_parameter_matches): Support
5293         CALL_SITE_PARAMETER_PARAM_OFFSET.
5294         (needs_dwarf_reg_entry_value): Push stub value.
5295         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
5296         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5297         * gdbtypes.h (enum call_site_parameter_kind): New item
5298         CALL_SITE_PARAMETER_PARAM_OFFSET.
5299         (struct call_site.parameter.u): New field param_offset.
5300
5301 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5302
5303         Code cleanup: Generalize call_site.parameter key.
5304         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5305         variable dwarf_reg.  New variable kind_u.  Update parameters to
5306         push_dwarf_reg_entry_value.
5307         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5308         * dwarf2expr.h (enum call_site_parameter_kind)
5309         (union call_site_parameter_u): Forward declarations.
5310         (struct dwarf_expr_context_funcs): Update parameters and their
5311         description for push_dwarf_reg_entry_value.
5312         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5313         * dwarf2loc.c (call_site_parameter_matches): New function.
5314         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5315         description.  Use call_site_parameter_matches.
5316         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5317         Update parameters and their description.
5318         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5319         New variable kind_u.  Adjust the caller for updated parameters.
5320         (needs_dwarf_reg_entry_value): Update parameters.
5321         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
5322         instead of attr.  Update for the changed fields of struct
5323         call_site_parameter.
5324         * gdbtypes.h: Include dwarf2expr.h.
5325         (enum call_site_parameter_kind): New.
5326         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
5327         fb_offset into new union u.
5328
5329 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5330
5331         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5332         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5333         for x32.
5334
5335 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
5336
5337         * amd64-linux-nat.c (compat_x32_clock_t): New.
5338         (compat_x32_siginfo_t): Likewise.
5339         (compat_x32_siginfo_from_siginfo): Likewise.
5340         (siginfo_from_compat_x32_siginfo): Likewise.
5341         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5342         and siginfo_from_compat_x32_siginfo for x32.
5343
5344 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
5345
5346         * tracepoint.c (tfile_xfer_partial): Add a lseek.
5347
5348 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5349
5350         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5351         instead of gdbarch_ptr_bit.
5352         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5353         (amd64_supply_native_gregset): Likewise.
5354         (amd64_collect_native_gregset): Likewise.
5355         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5356         (amd64_supply_xsave): Likewise.
5357         (amd64_collect_fxsave): Likewise.
5358         (amd64_collect_xsave): Likewise.
5359
5360 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5361
5362         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5363         (amd64_linux_read_description): Check DS segment register for
5364         x32 process.
5365
5366 2012-06-15  Tom Tromey  <tromey@redhat.com>
5367
5368         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5369         init_cutu_and_read_dies.
5370
5371 2012-06-15  Iain Sandoe <iain@codesourcery.com>
5372
5373         * MAINTAINERS (Write After Approval): Add myself to the list.
5374
5375 2012-06-15  Tom Tromey  <tromey@redhat.com>
5376
5377         * valops.c (value_find_oload_method_list): Now static.
5378         * value.h (value_find_oload_method_list): Don't declare.
5379
5380 2012-06-15  Tom Tromey  <tromey@redhat.com>
5381
5382         * valops.c (find_overload_match): Use value_ind.
5383
5384 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
5385
5386         * infrun.c (handle_inferior_event): Correct indentation.
5387
5388 2012-06-14  Doug Evans  <dje@google.com>
5389
5390         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5391         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5392         All uses updated.
5393         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
5394         updated.  Handle DEBUG_LOC_START_LENGTH.
5395         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5396         (loclist_describe_location): Ditto.
5397
5398 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
5399
5400         PR backtrace/13866
5401         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5402         after hiding inline functions.
5403
5404 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5405
5406         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5407         _initialize_inf_ttrace.
5408
5409 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5410
5411         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5412         _initialize_hppa_hpux_nat.
5413
5414 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
5415
5416         * remote-sim.c (sim_command_completer): Change type of return
5417         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
5418
5419 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5420             Jan Kratochvil  <jan.kratochvil@redhat.com>
5421
5422         PR tdep/14222
5423         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5424         stack on a 16-byte boundary.
5425
5426 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
5427
5428         * jit.c (finalize_symtab): Set function's return type to 'void' by
5429         default.
5430
5431 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
5432             H.J. Lu  <hongjiu.lu@intel.com>
5433
5434         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5435         Move bits common to both the classic LP64 and the new x32 ILP32
5436         ABI here.
5437         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5438         (amd64_x32_linux_init_abi): New function.
5439         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5440         subtype.
5441
5442         * i386-tdep.h (i386_pseudo_register_name): New prototype.
5443         * i386-tdep.c (i386_pseudo_register_name): Make public.
5444         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5445         * amd64-tdep.c (amd64_dword_names): Add "eip".
5446         (amd64_x32_pseudo_register_type): New function
5447         (amd64_x32_init_abi): New function.
5448
5449 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5450
5451         PR build/14003
5452         * inferior.h (struct inferior_suspend_state): Comment out.
5453         (struct inferior): Comment out the field suspend.
5454         * infrun.c (struct infcall_suspend_state): Comment out the field
5455         inferior_suspend.
5456         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5457         out its assignment.
5458
5459 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
5460
5461         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5462         * c-exp.y (classify_inner_name): Remove caller assumptions in the
5463         function comment.  Return ERROR for unresolved cases.  Implement
5464         returning proper NAME.
5465         (yylex): Accept also NAME from classify_inner_name.
5466         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5467         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
5468         LOC_TYPEDEF type.
5469         * cp-support.h (cp_lookup_nested_type): Update its declaration.
5470
5471 2012-06-13  Tom Tromey  <tromey@redhat.com>
5472
5473         * breakpoint.c (condition_completer): New function.
5474         (_initialize_breakpoint): Use it.
5475         * value.c (complete_internalvar): New function.
5476         * value.h (complete_internalvar): Declare.
5477
5478 2012-06-13  Tom Tromey  <tromey@redhat.com>
5479
5480         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5481         * breakpoint.c (catch_syscall_completer): Return a VEC.
5482         * cli/cli-cmds.c (complete_command): Update.
5483         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5484         (complete_on_enum): Likewise.
5485         * command.h: Include gdb_vecs.h.
5486         (completer_ftype): Change return type.
5487         (complete_on_cmdlist, complete_on_enum): Likewise.
5488         * completer.c (noop_completer, filename_completer)
5489         (location_completer): Return a VEC.
5490         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
5491         to a VEC.
5492         (expression_completer, complete_line_internal, complete_line)
5493         (command_completer): Return a VEC.
5494         (gdb_completion_word_break_characters, line_completion_function):
5495         Update.
5496         * completer.h: Include gdb_vecs.h.
5497         (complete_line, noop_completer, filename_completer)
5498         (expression_completer, location_completer, command_completer):
5499         Update.
5500         * f-lang.c (f_word_break_characters): Return a VEC.
5501         * interps.c (interpreter_completer): Return a VEC.
5502         * language.h (struct language_defn)
5503         <la_make_symbol_completion_list>: Return a VEC.
5504         * python/py-cmd.c (cmdpy_completer): Return a VEC.
5505         * symtab.c (free_completion_list): Take a VEC.
5506         (return_val_size, return_val_index): Remove.
5507         (return_val): Now a VEC.
5508         (completion_list_add_name): Update.
5509         (default_make_symbol_completion_list_break_on)
5510         (default_make_symbol_completion_list, make_symbol_completion_list)
5511         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5512         Return a VEC.
5513         (add_filename_to_list): Update.
5514         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5515         <list>: Now a VEC.
5516         (maybe_add_partial_symtab_filename): Update.
5517         (make_source_files_completion_list): Return a VEC.
5518         * symtab.h (default_make_symbol_completion_list_break_on)
5519         (default_make_symbol_completion_list, make_symbol_completion_list)
5520         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5521         (make_source_files_completion_list): Update.
5522
5523 2012-06-13  Tom Tromey  <tromey@redhat.com>
5524
5525         * breakpoint.c (add_catch_command): Use completer_ftype.
5526         * breakpoint.h: Include command.h.
5527         (add_catch_command): Use completer_ftype.
5528         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5529         * cli/cli-decode.h (struct cmd_list_element) <completer>:
5530         Use completer_ftype.
5531         * command.h (completer_ftype): New typedef.
5532         (set_cmd_completer): Use it.
5533         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5534         completer_ftype.
5535
5536 2012-06-13  Pedro Alves  <palves@redhat.com>
5537
5538         Partial revert of previous change.
5539
5540         * serial.c (scb_base): New global.
5541         (serial_for_fd): New.
5542         (serial_open, serial_fdopen_ops): Link new serial in open serials
5543         chain.
5544         (do_serial_close): Unlink serial from the open serials chain.
5545
5546 2012-06-12  Pedro Alves  <palves@redhat.com>
5547
5548         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5549         threads here.
5550         (prepare_for_detach): No longer context switch here in non-stop
5551         mode.
5552         (fetch_inferior_event): Ditto.
5553         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5554         to the event thread before removing breakpoints.  Switch to the
5555         event thread before inserting breakpoints and resuming.
5556         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5557         event thread before resuming.
5558         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5559         Switch to the event thread before removing breakpoints.
5560
5561 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
5562
5563         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5564         special characters correctly for the Windows shells.  See
5565         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5566         report.
5567         [!__MINGW32__]: Remove extra double quote character from special
5568         characters.
5569
5570 2012-06-11  Stan Shebs  <stan@codesourcery.com>
5571
5572         * ui-out.h: Remove #if 0 declarations.
5573         * ui-out.c: Remove #if 0 functions.
5574
5575 2012-06-11  Pedro Alves  <palves@redhat.com>
5576
5577         * ser-base.c (run_async_handler_and_reschedule): New.
5578         (fd_event, push_event): Use it.
5579         * serial.c (serial_open, serial_fdopen_ops): Set the initial
5580         reference count to 1.
5581         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
5582         instead of xfree.
5583         (serial_is_open, serial_ref, serial_unref): New.
5584         * serial.h (serial_open): Adjust comment.
5585         (serial_is_open): Declare.
5586         (serial_close): Adjust comment.
5587         (serial_ref, serial_unref) Declare.
5588         (struct serial): New field 'refcnt'.
5589
5590 2012-06-11  Pedro Alves  <palves@redhat.com>
5591
5592         Remove #if 0'd "connect" command, and unnecessary associated
5593         refcounting and serial reuse bits.
5594
5595         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5596         * serial.c (last_serial_opened): Delete.
5597         (scb_base): Delete.
5598         (serial_open): Adjust.
5599         (serial_for_fd): Delete.
5600         (serial_fdopen_ops, do_serial_close): Adjust.
5601         (serial_fdopen_ops): Adjust.
5602
5603 2012-06-11  Pedro Alves  <palves@redhat.com>
5604
5605         * serial.c (do_serial_close): Remove early return when SCB is
5606         null.
5607
5608 2012-06-11  Tom Tromey  <tromey@redhat.com>
5609
5610         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5611
5612 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5613
5614         Fix regression by the "ambiguous linespec" series.
5615         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
5616         get_last_displayed_symtab and get_last_displayed_line and depending
5617         on CURSAL.
5618
5619 2012-06-11  Tom Tromey  <tromey@redhat.com>
5620
5621         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5622         (dw2_find_symbol_file): Use it.
5623
5624 2012-06-11  Michael Eager  <eager@eagercon.com>
5625
5626         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5627         * mips-linux-tdep.h (mips_signals): New
5628
5629 2012-06-11  Tom Tromey  <tromey@redhat.com>
5630
5631         * infrun.c (handle_inferior_event)
5632         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5633         breakpoint.
5634         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5635         exception logic in all cases.  Update comments.
5636         (insert_longjmp_resume_breakpoint): Set the exception resume
5637         breakpoint.
5638
5639 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
5640
5641         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5642
5643 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
5644
5645         * valarith.c (binop_types_user_defined_p): Fix a typo.
5646
5647 2012-06-08  Yao Qi  <yao@codesourcery.com>
5648             Chung-Lin Tang <cltang@codesourcery.com>
5649
5650         * arch-utils.c (default_return_in_first_hidden_param_p): New.
5651         * arch-utils.h: Declare.
5652         * gdbarch.sh: Add return_in_first_hidden_param_p.
5653         * gdbarch.c, gdbarch.h: Regenerated.
5654         * infcall.c (call_function_by_hand): Call
5655         gdbarch_return_in_first_hidden_param_p instead of
5656         language_pass_by_reference.
5657
5658         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5659         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5660         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5661         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5662         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5663         `cplus_return_struct_by_reference'.
5664         (tic6x_return_value): Handle language cplusplus.
5665         (tic6x_return_in_first_hidden_param_p): New.
5666         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5667
5668 2012-06-07  Doug Evans  <dje@google.com>
5669
5670         * dwarf2read.c (dwarf2_cu): Add comment.
5671
5672 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5673
5674         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5675         variable.
5676         (mips_eabi_push_dummy_call): Likewise.
5677         (mips_n32n64_push_dummy_call): Likewise.
5678         (mips_o32_push_dummy_call): Likewise.
5679         (mips_o64_push_dummy_call): Likewise.
5680
5681 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5682
5683         * mips-tdep.c (mips_convert_register_p): Correct coding style.
5684
5685 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5686
5687         * mips-tdep.c (mips_pseudo_register_type): Use
5688         mips_float_register_p.
5689
5690 2012-06-06  Pedro Alves  <palves@redhat.com>
5691
5692         * infrun.c (handle_inferior_event): Remove calls to
5693         reinit_frame_cache that follow a context_switch call.
5694
5695 2012-06-06  Pedro Alves  <palves@redhat.com>
5696
5697         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5698         context_switch and remove stale comment.
5699
5700 2012-06-06  Pedro Alves  <palves@redhat.com>
5701
5702         * infrun.c (struct execution_control_state): Remove
5703         `new_thread_event' field.
5704         (handle_inferior_event): Simplify new threads handling; don't
5705         resume the inferior if we find a new thread.
5706
5707 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
5708
5709         * NEWS: Document the deprecation of SH's 'regs' command.
5710         * inferior.h (all_registers_info): Add function declaration.
5711         * sh-tdep.c (sh_show_regs): Remove variable.
5712         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5713         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5714         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5715         (sh_show_regs_command): Remove functions.
5716         (sh_gdbarch_init): Don't set sh_show_regs.
5717         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5718         'info all-registers'.
5719         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5720         (sh64_show_regs): Remove functions.
5721         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5722
5723 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5724
5725         * configure.ac: Move development=true below AC_INIT.
5726         * configure: Regenerate.
5727
5728 2012-06-05  Stan Shebs  <stan@codesourcery.com>
5729
5730         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5731         gdb_stdout.
5732
5733 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5734
5735         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5736         argument as ssize_t.
5737         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5738         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5739         * target.c (target_read_stack, target_write_memory)
5740         (target_write_raw_memory): Likewise.
5741         * target.h (target_read_stack, target_write_memory)
5742         (target_write_raw_memory): Likewise.
5743
5744 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5745
5746         * symfile-mem.c: Change gdb_static_assert to ssize_t.
5747         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5748         * target.c (target_read_memory): Change LEN to ssize_t.
5749         * target.h (target_read_memory): Change LEN to ssize_t.
5750
5751 2012-06-05  Pedro Alves  <palves@redhat.com>
5752
5753         PR backtrace/13866
5754
5755         * breakpoint.c (until_break_command): Only fetch the selected
5756         frame after decode_line_1.
5757
5758 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
5759
5760         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5761         event breakpoint at _start, __start or main if a program
5762         interpreter is not found.
5763
5764 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5765
5766         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5767         Add declaration.
5768         * windows-tdep.c: #include "objfiles.h".
5769         (windows_iterate_over_objfiles_in_search_order): New function.
5770         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5771         iterate_over_objfiles_in_search_order gdbarch method to
5772         windows_iterate_over_objfiles_in_search_order.
5773         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5774
5775 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5776
5777         * gdbarch.sh: Add generation of
5778         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5779         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5780         (iterate_over_objfiles_in_search_order): New gdbarch method.
5781         * gdbarch.h, gdbarch.c: Regenerate.
5782         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5783         Add declaration.
5784         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5785         New function.
5786         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5787         out of lookup_symbol_aux_symtabs.
5788         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5789         call to lookup_symbol_aux_objfile.
5790         (struct global_sym_lookup_data): New type.
5791         (lookup_symbol_global_iterator_cb): New function.
5792         (lookup_symbol_global): Search for symbol using
5793         gdbarch_iterate_over_objfiles_in_search_order and
5794         lookup_symbol_global_iterator_cb.
5795         * findvar.c (struct minsym_lookup_data): New type.
5796         (minsym_lookup_iterator_cb): New function.
5797         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5798         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5799         and minsym_lookup_iterator_cb.
5800
5801 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5802
5803         Revert the following patch:
5804         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5805         try locating the symbol in the symbol's own objfile first, before
5806         extending the search to all objfiles.
5807         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5808         out of lookup_symbol_aux_symtabs.
5809         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5810         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5811         Do not search EXCLUDE_OBJFILE.
5812         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5813         (lookup_symbol_global): Search for matches in the block's objfile
5814         first, before searching all other objfiles.
5815
5816 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5817
5818         * breakpoint.c (find_condition_and_thread): Stop parsing
5819         as soon as the first invalid keyword is found.
5820
5821 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5822
5823         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5824
5825 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5826
5827         * config/djgpp/djcheck.sh: Add copyright header.
5828
5829 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5830
5831         * copyright.py (update_files, main): Fix path to update-copyright
5832         script.
5833
5834 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5835
5836         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5837         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5838         for which a reminder to update by hand is printed.
5839
5840 2012-06-04  Doug Evans  <dje@google.com>
5841
5842         * buildsym.c (make_blockvector): Add comment.
5843
5844 2012-06-04  Pedro Alves  <palves@redhat.com>
5845
5846         * arch-utils.c (default_gdb_signal_from_target): Delete.
5847         * arch-utils.h (default_gdb_signal_from_target): Delete.
5848         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5849         gdbarch_gdb_signal_from_target_p.
5850         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5851         predicate).
5852         * gdbarch.h: Regenerate.
5853         * gdbarch.c: Regenerate.
5854
5855 2012-06-04  Pedro Alves  <palves@redhat.com>
5856
5857         * gdbarch.sh (gdb_signal_from_target): Mention that the
5858         implementation of the method must be host independent.
5859         * gdbarch.h: Regenerate.
5860
5861 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5862
5863         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5864         parameters.
5865         (target_read_memory_bfd): New function.
5866         (symbol_file_add_from_memory): Use it.
5867
5868 2012-06-03  Doug Evans  <dje@google.com>
5869
5870         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5871         of primary symtab.
5872         (basic_lookup_transparent_type): Ditto.
5873
5874         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5875         (ALL_PRIMARY_SYMTABS): Use it.
5876         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5877         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5878         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5879         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5880         (basic_lookup_transparent_type): Ditto.
5881
5882 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5883
5884         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5885         it to optimize resolution of demangled name.
5886
5887 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5888
5889         * configure.ac (development): Define new variable.
5890         Call AC_CHECK_LIB for mcheck if $development.
5891         (ERROR_ON_WARNING): Enable it by default only if $development.
5892         * config.in: Regenerate.
5893         * configure: Regenerate.
5894
5895 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5896
5897         * target.c (target_read_memory): Make LEN argument as size_t.
5898         * target.h (target_read_memory): Likewise.
5899
5900 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5901
5902         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5903
5904 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5905
5906         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5907         BookE interface for PowerPC server processors if not available
5908         in the Linux Kernel.
5909
5910 2012-05-31  Keith Seitz  <keiths@redhat.com>
5911
5912         * linespec.c (decode_objc): Add cleanup to free
5913         INFO.FILE_SYMTABS.
5914         (find_linespec_symbols): Add cleanup to free CLASSES.
5915         * symfile.c (find_separate_debug_file_by_debuglink): Add
5916         cleanup to free DEBUGLINK.
5917         * ui-out.c (clear_header_list): No need to check if
5918         HEADER_NEXT.COLHDR is NULL.
5919         Free HEADER_NEXT.COL_NAME.
5920
5921 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5922
5923         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5924         warning.
5925
5926 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5927
5928         * configure.host (gdb_host_cpu): Handle tilegx*.
5929         (gdb_host): Handle tilegx-*-linux*.
5930         * tilegx-linux-nat.c: New file.
5931         * config/tilegx/linux.mh: New file.
5932
5933 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5934
5935         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5936         tilegx-linux-tdep.o.
5937         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5938         tilegx-linux-tdep.c.
5939         * configure.tgt: Handle tilegx-*-linux*.
5940         * tilegx-tdep.h: New file.
5941         * tilegx-tdep.c: New file.
5942         * tilegx-linux-tdep.c: New file.
5943         * regformats/reg-tilegx.dat: New file.
5944
5945 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5946
5947         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5948         accounting of hw watchpoints on ppc.
5949
5950 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5951
5952         * source.c (openp): Expand tilde in path entries.
5953
5954 2012-05-29  Doug Evans  <dje@google.com>
5955
5956         * buildsym.c (block_compar): Fix comment.
5957         (end_symtab): Fix and clarify some comments.
5958
5959         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5960         cleanup_undefined_types.
5961         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5962         All callers updated.
5963
5964 2012-05-29  Tom Tromey  <tromey@redhat.com>
5965
5966         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5967         fails.
5968         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5969         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5970         fails.
5971         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5972         fails.
5973
5974 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5975
5976         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5977         (struct darwin_info): ... New struct.
5978         (solib_darwin_pspace_data): New variable.
5979         (darwin_pspace_data_cleanup): New function.
5980         (get_darwin_info): Likewise.
5981         (darwin_dyld_version_ok, darwin_load_image_infos)
5982         (darwin_solib_get_all_image_info_addr_at_init)
5983         (darwin_solib_read_all_image_info_addr): Add info argument.
5984         Adjust code.
5985         (darwin_current_sos): Use per pspace structure.
5986         (darwin_solib_create_inferior_hook): Likewise.
5987         (darwin_clear_solib): Likewise.
5988         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5989
5990 2012-05-28  Pedro Alves  <palves@redhat.com>
5991
5992         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5993         block that uses them.  Clear ecss before handling each event.
5994
5995 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5996
5997         * solib-svr4.c (svr4_current_sos): New comment on
5998         svr4_current_sos_via_xfer_libraries fall back.
5999
6000 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6001
6002         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
6003         it as a fallback for TYPE_IS_OPAQUE.
6004         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6005         symbols for lookup_symbol.
6006
6007 2012-05-24  John Steele Scott  <toojays@toojays.net>
6008
6009         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6010         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6011         (producer_is_gxx_lt_4_6): Move the checking and caching to...
6012         (check_producer): ... this new function, which also checks for ICC
6013         and caches the result.
6014         (producer_is_icc): New function.
6015         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6016         producer was ICC.
6017
6018 2012-05-24  Pedro Alves  <palves@redhat.com>
6019
6020         PR gdb/7205
6021
6022         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6023         (default_gdb_signal_to_target): ... this.  Add comment.
6024         (default_gdb_signal_from_host): Rename to ...
6025         (default_gdb_signal_from_target): ... this.  Add comment.
6026         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6027         (default_gdb_signal_to_target): ... this.
6028         (default_gdb_signal_from_host): Rename to ...
6029         (default_gdb_signal_from_target): ... this.
6030         * corelow.c (core_open): Adjust to naming change.  Replace comment.
6031         * gdbarch.sh (gdb_signal_from_host): Rename to ...
6032         (gdb_signal_from_target): ... this.  Adjust to
6033         default_gdb_signal_from_host naming change.  Extend comment.
6034         (gdb_signal_to_host): Rename to ...
6035         (gdb_signal_to_target): ... this.  Adjust to
6036         default_gdb_signal_to_host naming change.
6037         * gdbarch.h, gdbarch.c: Renegerate.
6038
6039 2012-05-24  Pedro Alves  <palves@redhat.com>
6040
6041         PR gdb/7205
6042
6043         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6044
6045 2012-05-24  Pedro Alves  <palves@redhat.com>
6046
6047         PR gdb/7205
6048
6049         Replace target_signal with gdb_signal throughout.
6050
6051 2012-05-24  Pedro Alves  <palves@redhat.com>
6052
6053         PR tui/14159
6054
6055         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6056         string, instead of reusing the va_list argument.
6057
6058 2012-05-24  Tom Tromey  <tromey@redhat.com>
6059
6060         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6061         Remove.
6062
6063 2012-05-23  Doug Evans  <dje@google.com>
6064
6065         * symtab.c (search_symbols): Formatting fixes.
6066         (print_symbol_info): Formatting fixes.
6067
6068         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6069         int64_t change to leb128 API.
6070         (read_encoded_value, decode_frame_entry_1): Ditto.
6071         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6072         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6073         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6074         (execute_stack_op): Ditto.
6075         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6076         (safe_read_uleb128, safe_read_sleb128): Ditto.
6077         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6078         (dwarf2_compile_expr_to_ax): Ditto.
6079         (locexpr_describe_location_piece): Ditto.
6080         (disassemble_dwarf_expression): Ditto.
6081         (locexpr_describe_location_1): Ditto.
6082
6083 2012-05-23  Stan Shebs  <stan@codesourcery.com>
6084             Kwok Cheung Yeung  <kcy@codesourcery.com>
6085
6086         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6087         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6088         (mi-cmd-info.o): New rule.
6089         * osdata.h (info_osdata_command): New declaration.
6090         * osdata.c (info_osdata_command): Change to non-static.
6091         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6092         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6093         * mi/mi-cmd-info.c: New file.
6094
6095 2012-05-23  Doug Evans  <dje@google.com>
6096
6097         * symtab.c (search_symbols): Pass NULL for file_matcher to
6098         expand_symtabs_matching if there are no files to match.
6099
6100         * gdbtypes.c (lookup_typename): Simplify.
6101
6102 2012-05-23  Pedro Alves  <palves@redhat.com>
6103
6104         * arch-utils.h (default_target_signal_to_host): Delete.
6105         * arch-utils.c (default_target_signal_to_host): Delete.
6106         * gdbarch.sh (target_signal_to_host): Remove.
6107         * gdbarch.h, gdbarch.c: Regenerate.
6108
6109 2012-05-22  Doug Evans  <dje@google.com>
6110
6111         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6112         "const gdb_byte *".
6113         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6114         (execute_cfa_program): Update to match API of leb128 functions.
6115         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6116         "const gdb_byte *".
6117         (read_unsigned_leb128, read_signed_leb128): Delete.
6118         (read_initial_length): Change type of buf argument to
6119         "const gdb_byte *".
6120         (read_encoded_value): Update to match API of leb128 functions.
6121         (decode_frame_entry): Change result to "const gdb_byte *", and
6122         similarly for "start" parameter.
6123         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
6124         (dwarf2_build_frame_info): Change local frame_ptr to
6125         "const gdb_byte *".
6126         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6127         read_uleb128, read_sleb128.  All callers updated.
6128         (safe_skip_leb128): New function.
6129         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6130         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6131         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6132         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
6133         read_uleb128, read_sleb128.
6134         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6135         (execute_stack_op): Update to match API of leb128 functions.
6136         * dwarf2expr.h: #include "leb128.h".
6137         (read_uleb128, read_sleb128): Delete.
6138         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6139         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6140         * dwarf2loc.c (debug_loc_kind): New enum.
6141         (decode_debug_loc_addresses): New function.
6142         (decode_debug_loc_dwo_addresses): New function.
6143         (dwarf2_find_location_expression): Rewrite.
6144         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6145         (locexpr_describe_location_piece): Ditto.
6146         (disassemble_dwarf_expression): Ditto.
6147         (locexpr_describe_location_1): Ditto.
6148         (loclist_describe_location): Rewrite.
6149         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6150         * dwarf2read.c (die_reader_specs): New member "buffer_end".
6151         (dwarf2_section_buffer_overflow_complaint): Renamed from
6152         dwarf2_macros_too_long_complaint.  All callers updated.
6153         (skip_leb128): Delete.
6154         (init_cu_die_reader): Initialize reader->buffer_end.
6155         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6156         (skip_form_bytes): New arg buffer_end.  All callers updated.
6157         Replace call to skip_leb128 with gdb_skip_leb128.
6158         (skip_unknown_opcode): New arg mac_end.  All callers updated.
6159         (fill_in_loclist_baton): Initialize baton->from_dwo.
6160
6161 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6162
6163         * mips-linux-nat.c (mips_linux_read_description): Use a more
6164         verbose error message.
6165
6166 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
6167
6168         * NEWS: Add MIPS/Linux DSP support.
6169         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6170         (SIGCONTEXT_DSPCTL): New macro.
6171         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6172         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6173         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6174         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6175         (N64_SIGCONTEXT_HI3): Likewise.
6176         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6177         (N64_SIGCONTEXT_LO3): Likewise.
6178         (N64_SIGCONTEXT_DSPCTL): Likewise.
6179         (N64_SIGCONTEXT_FPCSR): Clarify definition.
6180         (mips_linux_o32_sigframe_init): Handle DSP registers.
6181         (mips_linux_n32n64_sigframe_init): Likewise.
6182
6183 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6184
6185         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6186         call to abort.
6187
6188 2012-05-22  Pedro Alves  <palves@redhat.com>
6189
6190         * target.h (store_waitstatus): Move declaration ...
6191         * inf-child.h (store_waitstatus): ... here.
6192         * target.c: Move inclusion of gdb_wait.h, and ...
6193         (store_waitstatus): ... this ...
6194         * inf-child.c: ... here.
6195         * linux-nat.c: Include inf-child.h.
6196         * rs6000-nat.c: Include inf-child.h.
6197         * spu-linux-nat.c: Include inf-child.h.
6198
6199 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
6200
6201         * tracepoint.c (start_tracing): Add missing i18n markup.
6202         (stop_tracing, set_trace_user): Ditto.
6203         (set_trace_notes, set_trace_stop_notes): Ditto.
6204
6205 2012-05-21  Tom Tromey  <tromey@redhat.com>
6206
6207         PR c++/7173:
6208         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6209         types.
6210         * value.h (value_cast_pointers): Update.
6211         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6212         (value_cast): Update.
6213         (update_search_result): New function.
6214         (do_search_struct_field): New, from search_struct_field.  Check
6215         for ambiguous results.
6216         (search_struct_field): Rewrite.
6217         * infcall.c (value_arg_coerce): Update.
6218         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6219         value_cast_pointers.
6220         * ada-lang.c (ada_convert_actual): Update.
6221
6222 2012-05-21  Tom Tromey  <tromey@redhat.com>
6223
6224         * macroexp.c (macro_stringify): Terminate the string.
6225
6226 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6227
6228         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6229         Describe it.
6230         * auto-load.c (auto_load_expand_dir_vars): New function.
6231         (auto_load_safe_path_vec_update): Use it, remove the
6232         substitute_path_component call thanks to it.
6233         (auto_load_objfile_script): Remove the debug_file_directory processing.
6234         Use auto_load_expand_dir_vars, remove the substitute_path_component
6235         call thanks to it.
6236         * configure: Regenerate.
6237         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6238         path.  Escape $ also for $debugdir.
6239         (--with_auto_load_safe_path): Escape $ also for $debugdir.
6240         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6241
6242 2012-05-20  Doug Evans  <dje@google.com>
6243
6244         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6245         before use.  Check for symtab->includes == NULL before scanning it.
6246
6247 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6248
6249         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6250
6251 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6252
6253         * NEWS: Add microMIPS support and "set mips compression",
6254         "show mips compression" commands.
6255         * mips-tdep.h (mips_isa): New enum.
6256         (gdbarch_tdep): Add mips_isa.
6257         (mips_pc_is_mips16): Update prototype.
6258         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6259         * mips-tdep.c (mips_compression_mips16): New variable.
6260         (mips_compression_micromips): Likewise.
6261         (mips_compression_strings): Likewise.
6262         (mips_compression_string): Likewise.
6263         (is_mips16_isa, is_micromips_isa): New functions.
6264         (is_mips16_addr): Rename to...
6265         (is_compact_addr): ... this.
6266         (unmake_mips16_addr): Likewise to...
6267         (unmake_compact_addr): ... this.
6268         (make_mips16_addr): Likewise to...
6269         (make_compact_addr): ... this.
6270         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6271         functions.
6272         (mips_elf_make_msymbol_special): Handle microMIPS code.
6273         (msymbol_is_special): Rename to...
6274         (msymbol_is_mips16): ... this.
6275         (mips_make_symbol_special, mips_pc_is_mips16): Update
6276         accordingly.
6277         (msymbol_is_mips, msymbol_is_micromips): New functions.
6278         (mips16_to_32_reg): Rename to...
6279         (mips_reg3_to_reg): ... this.
6280         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6281         (mips_pc_isa): Likewise.
6282         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6283         code.
6284         (mips_fetch_instruction): Pass return status instead of printing
6285         an error message if requested.  Handle microMIPS code.  Bail out
6286         on an invalid ISA.
6287         (micromips_op): New macro.
6288         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6289         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6290         (b6s4_op, b7s3_reg): Likewise.
6291         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6292         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6293         (mips_insn_size): New function.
6294         (mips32_next_pc): Update mips_fetch_instruction call.
6295         (micromips_relative_offset7): New function.
6296         (micromips_relative_offset10): Likewise.
6297         (micromips_relative_offset16): Likewise.
6298         (micromips_pc_insn_size): Likewise.
6299         (micromips_bc1_pc): Likewise.
6300         (micromips_next_pc): Likewise.
6301         (unpack_mips16): Update mips_fetch_instruction call.
6302         (extended_mips16_next_pc): Update according to change to
6303         mips16_to_32_reg.
6304         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
6305         code.
6306         (mips16_scan_prologue): Update mips_fetch_instruction call.
6307         Update according to change to mips16_to_32_reg.
6308         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6309         (mips_insn16_frame_base_sniffer): Likewise.
6310         (micromips_decode_imm9): New function.
6311         (micromips_scan_prologue): Likewise.
6312         (mips_micro_frame_cache): Likewise.
6313         (mips_micro_frame_this_id): Likewise.
6314         (mips_micro_frame_prev_register): Likewise.
6315         (mips_micro_frame_sniffer): Likewise.
6316         (mips_micro_frame_unwind): New variable.
6317         (mips_micro_frame_base_address): New function.
6318         (mips_micro_frame_base): New variable.
6319         (mips_micro_frame_base_sniffer): New function.
6320         (mips32_scan_prologue): Update mips_fetch_instruction call.
6321         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6322         rather than for MIPS16.
6323         (mips_insn32_frame_base_sniffer): Likewise.
6324         (mips_addr_bits_remove): Handle microMIPS code.
6325         (deal_with_atomic_sequence): Rename to...
6326         (mips_deal_with_atomic_sequence): ... this.  Update the type
6327         of the variable used to hold an instruction.  Remove the ISA bit
6328         check.  Update mips_fetch_instruction call.
6329         (micromips_deal_with_atomic_sequence): New function.
6330         (deal_with_atomic_sequence): Likewise.
6331         (mips_about_to_return): Handle microMIPS code.  Update
6332         mips_fetch_instruction call.
6333         (heuristic_proc_start): Check for the standard MIPS ISA rather
6334         than for MIPS16.  Update mips_pc_is_mips16 and
6335         mips_fetch_instruction calls.  Handle microMIPS code.
6336         (mips_push_dummy_code): Handle microMIPS code.
6337         (mips_eabi_push_dummy_call): Likewise.
6338         (mips_o32_return_value): Update mips_pc_is_mips16 call.
6339         (mips_o64_push_dummy_call): Handle microMIPS code.
6340         (mips_o64_return_value): Update mips_pc_is_mips16 call.
6341         (is_delayed): Remove function.
6342         (mips_single_step_through_delay): Replace the call to is_delayed
6343         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
6344         Handle microMIPS code.
6345         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
6346         microMIPS code.
6347         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6348         call.
6349         (micromips_in_function_epilogue_p): New function.
6350         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6351         call.
6352         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6353         Handle microMIPS.
6354         (gdb_print_insn_mips): Likewise.
6355         (mips_breakpoint_from_pc): Likewise.
6356         (mips_remote_breakpoint_from_pc): New function.
6357         (mips32_instruction_has_delay_slot): Simplify making use of the
6358         updated mips_fetch_instruction interface.
6359         (micromips_instruction_has_delay_slot): New function.
6360         (mips16_instruction_has_delay_slot): Simplify making use of the
6361         updated mips_fetch_instruction interface.
6362         (mips_adjust_breakpoint_address): Check for the standard MIPS
6363         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
6364         calls.  Handle microMIPS code.
6365         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6366         (mips_skip_trampoline_code): Handle microMIPS code.
6367         (global_mips_compression): New function.
6368         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6369         file flags.  Register the microMIPS remote breakpoint handler
6370         and heuristic frame unwinder.
6371         (show_mips_compression): New function.
6372         (_initialize_mips_tdep): Add the "set mips compression" and
6373         "show mips compression" commands.
6374
6375 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
6376
6377         * ada-lang.c:
6378         * ada-tasks.c:
6379         * ada-varobj.c:
6380         * amd64-darwin-tdep.c:
6381         * arm-symbian-tdep.c:
6382         * arm-tdep.c:
6383         * avr-tdep.c:
6384         * ax-gdb.c:
6385         * bfin-linux-tdep.c:
6386         * breakpoint.c:
6387         * c-valprint.c:
6388         * cli/cli-cmds.c:
6389         * coffread.c:
6390         * cp-support.c:
6391         * cris-tdep.c:
6392         * dwarf2-frame-tailcall.c:
6393         * dwarf2-frame.c:
6394         * dwarf2expr.c:
6395         * dwarf2loc.c:
6396         * dwarf2read.c:
6397         * elfread.c:
6398         * eval.c:
6399         * expprint.c:
6400         * f-valprint.c:
6401         * frv-tdep.c:
6402         * h8300-tdep.c:
6403         * hppa-hpux-tdep.c:
6404         * hppa-tdep.c:
6405         * hppanbsd-tdep.c:
6406         * i386-nto-tdep.c:
6407         * i386-tdep.c:
6408         * i387-tdep.c:
6409         * ia64-tdep.c:
6410         * jit.c:
6411         * linespec.c:
6412         * linux-tdep.c:
6413         * lm32-tdep.c:
6414         * m2-valprint.c:
6415         * m32c-tdep.c:
6416         * m32r-rom.c:
6417         * m32r-tdep.c:
6418         * m68k-tdep.c:
6419         * m68klinux-tdep.c:
6420         * mi/mi-main.c:
6421         * microblaze-tdep.c:
6422         * mips-linux-tdep.c:
6423         * mips-tdep.c:
6424         * mn10300-tdep.c:
6425         * p-valprint.c:
6426         * parse.c:
6427         * ppc-linux-tdep.c:
6428         * ppc-sysv-tdep.c:
6429         * printcmd.c:
6430         * python/py-finishbreakpoint.c:
6431         * python/py-inferior.c:
6432         * python/py-infthread.c:
6433         * python/py-type.c:
6434         * python/python.c:
6435         * remote-fileio.c:
6436         * remote-m32r-sdi.c:
6437         * remote-mips.c:
6438         * reverse.c:
6439         * rl78-tdep.c:
6440         * rs6000-aix-tdep.c:
6441         * rs6000-tdep.c:
6442         * s390-tdep.c:
6443         * score-tdep.c:
6444         * sh64-tdep.c:
6445         * skip.c:
6446         * solib-darwin.c:
6447         * solib-dsbt.c:
6448         * solib-frv.c:
6449         * sparc-tdep.c:
6450         * spu-multiarch.c:
6451         * spu-tdep.c:
6452         * stack.c:
6453         * symfile.c:
6454         * symtab.c:
6455         * tic6x-tdep.c:
6456         * tracepoint.c:
6457         * v850-tdep.c:
6458         * valarith.c:
6459         * valprint.c:
6460         * value.c:
6461         * xcoffread.c:
6462         * xtensa-tdep.c:
6463         * ada-lang.c:
6464         * ada-tasks.c:
6465         * ada-varobj.c:
6466         * amd64-darwin-tdep.c:
6467         * arm-symbian-tdep.c:
6468         * arm-tdep.c: Delete unused variables.
6469
6470 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6471
6472         Rename $ddir to $datadir.
6473         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6474         * auto-load.c (auto_load_safe_path_vec_update)
6475         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6476         * configure: Regenerate.
6477         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6478         Likewise.  Remove the 'use $ddir' help string.
6479
6480 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6481
6482         * auto-load.c (show_auto_load_safe_path): Accept any combination of
6483         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6484
6485 2012-05-18  Tom Tromey  <tromey@redhat.com>
6486
6487         PR exp/13907:
6488         * valprint.h (struct value_print_options) <symbol_print>: New
6489         field.
6490         * valprint.c (user_print_options): Add default for symbol_print.
6491         (show_symbol_print): New function.
6492         (generic_val_print): Respect symbol_print.
6493         (_initialize_valprint): Add "print symbol" setting.
6494         * f-valprint.c (f_val_print): Respect symbol_print.
6495         * c-valprint.c (c_val_print): Respect symbol_print.
6496         * NEWS: Update.
6497         * printcmd.c (print_address_symbolic): Return int.  Ignore some
6498         zero-size symbols.
6499         (print_address_demangle): Return int.
6500         * defs.h: (print_address_symbolic): Return int.
6501         * value.h (print_address_demangle): Return int.
6502
6503 2012-05-18  Tom Tromey  <tromey@redhat.com>
6504
6505         * valprint.c (val_print_string): Don't print leading space.
6506         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6507         print space before string or vtbl.
6508         * m2-valprint.c (print_unpacked_pointer): Optionally print space
6509         before string.
6510         * jv-valprint.c (java_value_print): Print space before string.
6511         * go-valprint.c (print_go_string): Print space before string.
6512         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6513         space before string.
6514         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6515         space before string or vtbl.
6516         * auxv.c (fprint_target_auxv): Print space after address.
6517
6518 2012-05-18  Tom Tromey  <tromey@redhat.com>
6519
6520         * printcmd.c (print_address_demangle): Remove special case for 0.
6521
6522 2012-05-18  Tom Tromey  <tromey@redhat.com>
6523
6524         * printcmd.c (print_address_demangle): Add 'opts' argument.
6525         * p-valprint.c (pascal_val_print): Update.
6526         * jv-valprint.c (java_val_print): Update.
6527         * value.h: Update.
6528         * valprint.c (generic_val_print): Update.
6529         (print_function_pointer_address): Add 'options' argument.  Remove
6530         'addressprint' argument.  Update.
6531         * m2-valprint.c (print_unpacked_pointer): Update.
6532         * gnu-v3-abi.c (print_one_vtable): Update.
6533         (gnuv3_print_method_ptr): Update.
6534         * f-valprint.c (f_val_print): Update.
6535         * cp-valprint.c (cp_print_value_fields): Update.
6536         * valprint.h (print_function_pointer_address): Update.
6537         * c-valprint.c (c_val_print): Update.
6538
6539 2012-05-18  Tom Tromey  <tromey@redhat.com>
6540
6541         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6542         directly corresponding to the found psymtab.
6543         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6544         (dw2_find_pc_sect_symtab): Use it.
6545         * block.h (blockvector_contains_pc): Declare.
6546         * block.c (find_block_in_blockvector): New function.
6547         (blockvector_for_pc_sect): Use it.
6548         (blockvector_contains_pc): New function.
6549
6550 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6551
6552         * mips-tdep.h (mips_write_pc): New prototype.
6553         * mips-tdep.c (mips_write_pc): Make external, add description.
6554         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6555         add description.
6556
6557 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
6558
6559         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6560         mips_regnum->pc.
6561         (mips_unwind_pc, mips_write_pc): Likewise.
6562         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6563         gdbarch_read_pc.
6564
6565 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
6566
6567         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6568         proc_warn, proc_error, proc_get_status, proc_flags,
6569         proc_why, proc_what, proc_nsysarg, proc_sysargs,
6570         proc_set_run_on_last_close, proc_unset_run_on_last_close,
6571         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6572         proc_stop_process, proc_wait_for_stop, proc_run_process,
6573         proc_set_traced_signals, proc_set_traced_faults,
6574         proc_set_traced_sysentry, proc_set_traced_sysexit,
6575         proc_set_held_signals, proc_get_held_signals,
6576         proc_get_traced_signals, proc_get_traced_faults,
6577         proc_get_traced_sysentry, proc_get_traced_sysexit,
6578         proc_clear_current_fault, proc_set_current_signal,
6579         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6580         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6581         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6582         proc_get_current_thread, proc_get_current_thread,
6583         proc_get_current_thread, proc_update_threads,
6584         proc_update_threads, proc_update_threads, proc_update_threads,
6585         proc_iterate_over_threads, procfs_find_new_threads,
6586         procfs_pid_to_str): Make static.  Remove advance declaration.
6587         (proc_cursig): Make static.  Conditionalized defintion on
6588         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6589         (proc_syscall, proc_set_kill_on_last_close,
6590         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6591         proc_get_pending_signals, proc_get_signal_actions,
6592         proc_trace_signal, proc_ignore_signal): Delete.
6593
6594 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
6595
6596         * coffread.c (cs_section_address): Passing proper argument for
6597         `bfd_get_section_vma'.
6598         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6599         `bfd_get_section_flags'.
6600         * remote.c (remote_trace_set_readonly_regions): Likewise, for
6601         `bfd_get_section_vma'.
6602
6603 2012-05-16  Tom Tromey  <tromey@redhat.com>
6604
6605         PR macros/13205:
6606         * macrotab.h: (macro_define_special): Declare.
6607         (enum macro_special_kind): New.
6608         (struct macro_definition) <argc, replacement>: Update comments.
6609         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6610         (macro_define_object_internal): New function.
6611         (macro_define_object): Use it.
6612         (macro_define_special): New function.
6613         (fixup_definition): New function.
6614         (macro_lookup_definition, foreach_macro_in_scope)
6615         (foreach_macro): Use fixup_definition.
6616         * macroexp.h (macro_stringify): Declare.
6617         * macroexp.c (free_buffer_return_text): New function.
6618         (stringify): Constify "arg".
6619         (macro_stringify): New function.
6620         * dwarf2read.c (macro_start_file): Call macro_define_special.
6621
6622 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
6623             Maciej W. Rozycki  <macro@mips.com>
6624
6625         * breakpoint.h (bp_location): Add related_address member.
6626         * inferior.h (get_return_value): Take a pointer to struct value
6627         instead of struct type for the function requested.
6628         * value.h (using_struct_return): Likewise.
6629         * gdbarch.sh (return_value): Take a pointer to struct value
6630         instead of struct type for the function requested.
6631         * breakpoint.c (set_breakpoint_location_function): Initialize
6632         related_address for bp_gnu_ifunc_resolver breakpoints.
6633         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6634         requested function's address to gdbarch_return_value.
6635         * eval.c (evaluate_subexp_standard): Pass the requested
6636         function's address to using_struct_return.
6637         * infcall.c (call_function_by_hand): Pass the requested
6638         function's address to using_struct_return and
6639         gdbarch_return_value.
6640         * infcmd.c (get_return_value): Take a pointer to struct value
6641         instead of struct type for the function requested.
6642         (print_return_value): Update accordingly.
6643         (finish_command_continuation): Likewise.
6644         * stack.c (return_command): Pass the requested function's
6645         address to using_struct_return and gdbarch_return_value.
6646         * value.c (using_struct_return): Take a pointer to struct value
6647         instead of struct type for the function requested.  Pass the
6648         requested function's address to gdbarch_return_value.
6649         * python/py-finishbreakpoint.c (finish_breakpoint_object):
6650         New function_value member, replacing function_type.
6651         (bpfinishpy_dealloc): Update accordingly.
6652         (bpfinishpy_pre_stop_hook): Likewise.
6653         (bpfinishpy_init): Likewise.  Record the requested function's
6654         address.
6655         * mips-tdep.c (mips_fval_reg): New enum.
6656         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6657         words put in GP registers.
6658         (mips_o64_push_dummy_call): Update a comment.
6659         (mips_o32_return_value): Take a pointer to struct value instead
6660         of struct type for the function requested and use it to check if
6661         using the MIPS16 calling convention.  Return the designated
6662         general purpose registers for floating-point values returned in
6663         MIPS16 mode.
6664         (mips_o64_return_value): Likewise.
6665         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6666         (ppc_sysv_abi_broken_return_value): Likewise.
6667         (ppc64_sysv_abi_return_value): Likewise.
6668         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6669         value instead of struct type for the function requested.
6670         * amd64-tdep.c (amd64_return_value): Likewise.
6671         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6672         * arm-tdep.c (arm_return_value): Likewise.
6673         * avr-tdep.c (avr_return_value): Likewise.
6674         * bfin-tdep.c (bfin_return_value): Likewise.
6675         * cris-tdep.c (cris_return_value): Likewise.
6676         * frv-tdep.c (frv_return_value): Likewise.
6677         * h8300-tdep.c (h8300_return_value): Likewise.
6678         (h8300h_return_value): Likewise.
6679         * hppa-tdep.c (hppa32_return_value): Likewise.
6680         (hppa64_return_value): Likewise.
6681         * i386-tdep.c (i386_return_value): Likewise.
6682         * ia64-tdep.c (ia64_return_value): Likewise.
6683         * iq2000-tdep.c (iq2000_return_value): Likewise.
6684         * lm32-tdep.c (lm32_return_value): Likewise.
6685         * m32c-tdep.c (m32c_return_value): Likewise.
6686         * m32r-tdep.c (m32r_return_value): Likewise.
6687         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6688         * m68k-tdep.c (m68k_return_value): Likewise.
6689         (m68k_svr4_return_value): Likewise.
6690         * m88k-tdep.c (m88k_return_value): Likewise.
6691         * mep-tdep.c (mep_return_value): Likewise.
6692         * microblaze-tdep.c (microblaze_return_value): Likewise.
6693         * mn10300-tdep.c (mn10300_return_value): Likewise.
6694         * moxie-tdep.c (moxie_return_value): Likewise.
6695         * mt-tdep.c (mt_return_value): Likewise.
6696         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6697         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6698         (ppc_sysv_abi_broken_return_value): Likewise.
6699         (ppc64_sysv_abi_return_value): Likewise.
6700         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6701         * rl78-tdep.c (rl78_return_value): Likewise.
6702         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6703         * rx-tdep.c (rx_return_value): Likewise.
6704         * s390-tdep.c (s390_return_value): Likewise.
6705         * score-tdep.c (score_return_value): Likewise.
6706         * sh-tdep.c (sh_return_value_nofpu): Likewise.
6707         (sh_return_value_fpu): Likewise.
6708         * sh64-tdep.c (sh64_return_value): Likewise.
6709         * sparc-tdep.c (sparc32_return_value): Likewise.
6710         * sparc64-tdep.c (sparc64_return_value): Likewise.
6711         * spu-tdep.c (spu_return_value): Likewise.
6712         * tic6x-tdep.c (tic6x_return_value): Likewise.
6713         * v850-tdep.c (v850_return_value): Likewise.
6714         * vax-tdep.c (vax_return_value): Likewise.
6715         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6716         * xtensa-tdep.c (xtensa_return_value): Likewise.
6717         * gdbarch.c: Regenerate.
6718         * gdbarch.h: Regenerate.
6719
6720 2012-05-15  Tom Tromey  <tromey@redhat.com>
6721
6722         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6723
6724 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6725
6726         * breakpoint.c (init_breakpoint_sal): Add quotes around part
6727         of command in two error message.
6728
6729 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6730
6731         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6732
6733 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6734
6735         * breakpoint.c (find_condition_and_thread): Minor reformatting.
6736
6737 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6738
6739         * NEWS (show auto-load scripts-directory): Add forgotten command.
6740
6741 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6742
6743         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6744         parameters.
6745
6746 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6747
6748         * amd64-tdep.c: Include features/i386/x32.c and
6749         features/i386/x32-avx.c.
6750         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6751         initialize_tdesc_x32_avx.
6752
6753 2012-05-14  Stan Shebs  <stan@codesourcery.com>
6754
6755         Add dynamic printf.
6756         * breakpoint.h (enum bptype): New type bp_dprintf.
6757         (struct breakpoint): New field extra_string.
6758         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6759         (create_breakpoint): Add extra_string arg.
6760         * breakpoint.c (dprintf_breakpoint_ops): New.
6761         (is_breakpoint): Add bp_dprintf.
6762         (bpstat_what): Add dprintf case.
6763         (bptype_string): Ditto.
6764         (print_one_breakpoint_location): Ditto.
6765         (init_bp_location): Ditto.
6766         (bkpt_print_mention): Ditto.
6767         (dprintf_style_enums): New array.
6768         (dprintf_style): New global.
6769         (dprintf_function): New global.
6770         (dprintf_channel): New global.
6771         (update_dprintf_command_list): New function.
6772         (update_dprintf_commands): New function.
6773         (init_breakpoint_sal): Add extra_string argument, handle it.
6774         (create_breakpoint_sal): Add extra_string argument.
6775         (create_breakpoints_sal): Add extra_string argument, update callers.
6776         (find_condition_and_thread): Add extra argument.
6777         (create_breakpoint): Add extra_string argument, record it.
6778         (dprintf_command): New function.
6779         (break_command_1): Add arg to create_breakpoint call.
6780         (handle_gnu_v3_exceptions): Ditto.
6781         (trace_command): Ditto.
6782         (ftrace_command): Ditto.
6783         (strace_command): Ditto.
6784         (bkpt_print_mention): Add dprintf case.
6785         (create_breakpoint_sal_default): Add extra_string argument.
6786         (_initialize_breakpoint): Add new commands.
6787         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6788         * python/py-breakpoint.c (bppy_init): Ditto.
6789         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6790
6791 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6792
6793         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6794
6795 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6796
6797         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6798         unsigned long long.
6799
6800 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6801
6802         Add a new function gdb.find_pc_line to the Python API.
6803         * NEWS (Python Scripting): Add entry about the new function.
6804         * python/python.c (gdbpy_find_pc_line): New function which
6805         implements gdb.find_pc_line.
6806         (GdbMethods): Add entry for the new function.
6807
6808 2012-05-12  Pedro Alves  <palves@redhat.com>
6809
6810         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6811         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6812
6813 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6814
6815         * inferior.c: Include completer.h
6816         (initialize_inferiors): Set completer of add-inferior to
6817         filename_completer.
6818
6819 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6822         gdbarch_ptr_bit for x32 core dump.
6823
6824 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6825
6826         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6827         and features/i386/x32-avx-linux.c.
6828
6829 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6830             Kwok Cheung Yeung  <kcy@codesourcery.com>
6831
6832         * NEWS: Describe new info os commands.
6833         * common/linux-osdata.c (PID_T, TIME_T): Define.
6834         (MAX_PID_T_STRLEN): New.
6835         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6836         MAX_PID_T_STRLEN.
6837         (command_from_pid): Add comment.  Change to use PID_T.
6838         (commandline_from_pid):  Change to use PID_T.
6839         (user_from_pid): Add comment.
6840         (get_process_owner): Add comment. Change to use PID_T and
6841         MAX_PID_T_STRLEN.
6842         (get_number_of_cpu_cores): Add comment.
6843         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6844         MAX_PID_T_STRLEN.
6845         (linux_xfer_osdata_processes): Change to use PID_T and
6846         MAX_PID_T_STRLEN.
6847         (compare_processes): New function.
6848         (linux_xfer_osdata_processgroups): New function.
6849         (linux_xfer_osdata_threads): Change to use PID_T.
6850         (linux_xfer_osdata_fds): New function.
6851         (format_socket_state, print_sockets): New functions.
6852         (union socket_addr): New union.
6853         (linux_xfer_osdata_isockets): New function.
6854         (time_from_time_t, group_from_gid): New functions.
6855         (linux_xfer_osdata_shm): New function.
6856         (linux_xfer_osdata_sem): New function.
6857         (linux_xfer_osdata_msg): New function.
6858         (linux_xfer_osdata_modules): New function.
6859         (osdata_table): Add new entries.
6860         * common/buffer.c (buffer_xml_printf): Add support for long and
6861         long long format specifiers.
6862
6863 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6866         (tdesc_x32_avx_linux): Likewise.
6867
6868 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6869
6870         Implement multi-component --with-auto-load-dir.
6871         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6872         entries.
6873         (--with-auto-load-safe-path): Update the default value description.
6874         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6875         New.
6876         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6877         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6878         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6879         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6880         "set auto-load scripts-directory".
6881         * config.in: Regenerate.
6882         * configure: Regenerate.
6883         * configure.ac (--with-auto-load-dir): New configure option.
6884         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6885
6886 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6887
6888         Provide $ddir substitution for --with-auto-load-safe-path.
6889         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6890         entries.
6891         * auto-load.c: Include observer.h.
6892         (auto_load_safe_path_vec_update): Call substitute_path_component for
6893         each component.  New variable ddir_subst.
6894         (auto_load_gdb_datadir_changed): New function.
6895         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6896         AUTO_LOAD_SAFE_PATH.  New comment.
6897         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6898         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6899         * config.in: Regenerate.
6900         * configure: Regenerate.
6901         * configure.ac (--auto-load-safe-path): Rename
6902         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6903         GDB_DATADIR/auto-load.
6904         * defs.h (substitute_path_component): New declaration.
6905         * top.c: Include observer.h.
6906         (set_gdb_datadir): New function.
6907         (init_main): Install it for "set data-directory".
6908         * utils.c (substitute_path_component): New function.
6909
6910 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6911
6912         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6913         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6914         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6915         DEBUG_FILE_DIRECTORY.
6916
6917 2012-05-10  Tom Tromey  <tromey@redhat.com>
6918
6919         * dwarf2read.c (recursively_write_psymbols): New function.
6920         (write_psymtabs_to_index): Use it.
6921
6922         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6923         field.
6924         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6925         (load_partial_comp_unit): Update.
6926         (queue_comp_unit): Add argument 'pretend_language'.
6927         (process_queue): Update.
6928         (psymtab_to_symtab_1): Skip dependencies that have a user.
6929         (load_partial_comp_unit_reader): Give meaning to the 'data'
6930         argument.
6931         (load_full_comp_unit): Add 'pretend_language' argument.
6932         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6933         language on CU.
6934         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6935         Update.
6936         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6937         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6938         Update.
6939         (prepare_one_comp_unit): Add 'pretend_language' argument.
6940
6941         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6942         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6943         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6944         (dw2_do_instantiate_symtab): Check whether symtab was read in
6945         before queueing.
6946         (dw2_instantiate_symtab): Add assertion.  Call
6947         process_cu_includes.
6948         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6949         (partial_symtab_p): New typedef.
6950         (set_partial_user): New function.
6951         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6952         (scan_partial_symbols): Add imported CU to imported_symtabs.
6953         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6954         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6955         (get_symtab, recursively_compute_inclusions)
6956         (compute_symtab_includes, process_cu_includes)
6957         (process_imported_unit_die): New functions.
6958         (process_die) <DW_TAG_imported_unit>: New case.
6959         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6960
6961         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6962         comment.
6963         (struct partial_die_info) <locdesc>: Remove.
6964         <d>: New field.
6965         (process_psymtab_comp_unit): Add 'read_partial' argument.
6966         Update.
6967         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6968         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6969         (add_partial_symbol): Update.
6970         (process_die): Handle DW_TAG_partial_unit.
6971         (read_file_scope): Update comment.
6972         (load_partial_dies): Handle DW_TAG_imported_unit.
6973         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6974         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6975
6976 2012-05-10  Tom Tromey  <tromey@redhat.com>
6977
6978         * cc-with-dwz.sh: New file.
6979
6980 2012-05-10  Tom Tromey  <tromey@redhat.com>
6981
6982         * symtab.h (struct symtab) <includes, user>: New fields.
6983         * block.h (struct block_iterator) <d, idx, which>: New fields.
6984         * block.c (initialize_block_iterator, find_iterator_symtab)
6985         (block_iterator_step, block_iter_name_step)
6986         (block_iter_match_step): New functions.
6987         (block_iterator_first, block_iterator_next)
6988         (block_iter_name_first, block_iter_name_next)
6989         (block_iter_match_first, block_iter_match_next): Rewrite.
6990         (get_block_symtab): New function.
6991
6992 2012-05-10  Tom Tromey  <tromey@redhat.com>
6993
6994         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6995         set_block_symtab.
6996         * jit.c (finalize_symtab): Use allocate_global_block,
6997         set_block_symtab.
6998         * buildsym.c (finish_block_internal): New function, from old
6999         finish_block.
7000         (finish_block): Rewrite.
7001         (end_symtab): Use finish_block_internal, set_block_symtab.
7002         * block.h (struct global_block): New.
7003         (allocate_global_block, set_block_symtab): Declare.
7004         * block.c (allocate_global_block, set_block_symtab): New
7005         functions.
7006
7007 2012-05-10  Tom Tromey  <tromey@redhat.com>
7008
7009         * psymtab.c (partial_map_expand_apply): Add assertion.
7010         (partial_map_symtabs_matching_filename): Skip included psymtabs.
7011         (psymtab_to_symtab): Find unshared psymtab.
7012         (dump_psymtab): Print including psymtabs.
7013         (recursively_search_psymtabs): New function.
7014         (expand_symtabs_matching_via_partial): Use it.
7015         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7016         fields.
7017         (enum psymtab_search_status): New.
7018
7019 2012-05-10  Tom Tromey  <tromey@redhat.com>
7020
7021         * tracepoint.c (scope_info): Update.
7022         * symtab.c (lookup_block_symbol, iterate_over_symbols)
7023         (find_pc_sect_symtab, search_symbols)
7024         (default_make_symbol_completion_list_break_on)
7025         (make_file_symbol_completion_list): Update.
7026         * symmisc.c (dump_symtab_1): Update.
7027         * stack.c (print_frame_args, iterate_over_block_locals)
7028         (print_frame_labels, iterate_over_block_arg_vars): Update.
7029         * python/py-block.c (block_object) <dict>: Remove.
7030         <block>: New field.
7031         <iter>: Change type.
7032         (blpy_iter): Update.
7033         (blpy_block_syms_iternext): Update.
7034         * psymtab.c (map_block): Use block iterators.
7035         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7036         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7037         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7038         * infrun.c (check_exception_resume): Update.
7039         * cp-support.c (make_symbol_overload_list_block): Update.
7040         * coffread.c (patch_opaque_types): Update.
7041         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7042         * block.h (struct block_iterator): New.
7043         (block_iterator_first, block_iterator_next, block_iter_name_first)
7044         (block_iter_name_next, block_iter_match_first)
7045         (block_iter_match_next): Declare.
7046         (ALL_BLOCK_SYMBOLS): Redefine.
7047         * block.c (block_iterator_first, block_iterator_next)
7048         (block_iter_name_first, block_iter_name_next)
7049         (block_iter_match_first, block_iter_match_next): New functions.
7050         * ada-lang.c (ada_add_block_symbols)
7051         (ada_make_symbol_completion_list): Use block iterator.
7052
7053 2012-05-10  Tom Tromey  <tromey@redhat.com>
7054
7055         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7056         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7057         (lookup_partial_symbol, find_last_source_symtab_from_partial)
7058         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7059         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7060         Update.
7061
7062 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7063
7064         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7065         print-file-var-lib2.c, print-file-var-main.c and
7066         print-file-var.exp (located in gdb/testsuite/gdb.base).
7067
7068 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
7069
7070         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7071         try locating the symbol in the symbol's own objfile first, before
7072         extending the search to all objfiles.
7073         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7074         out of lookup_symbol_aux_symtabs.
7075         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7076         Replace extracted-out code by call to lookup_symbol_aux_objfile.
7077         Do not search EXCLUDE_OBJFILE.
7078         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7079         (lookup_symbol_global): Search for matches in the block's objfile
7080         first, before searching all other objfiles.
7081
7082 2012-05-10  Tristan Gingold  <gingold@adacore.com>
7083
7084         * printcmd.c (set_command): Add pre/post inc/dec.
7085
7086 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
7087
7088         * gdb.1: Document -ex option.
7089
7090 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7091
7092         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7093         * inferior.h (AT_SYMBOL): Delete.
7094
7095 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
7096
7097         * mips-tdep.c (mips_push_dummy_code): New function.
7098         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7099         ON_STACK and install mips_push_dummy_code as our gdbarch
7100         push_dummy_code routine.
7101
7102 2012-05-09  Pedro Alves  <palves@redhat.com>
7103
7104         * target.c (set_maintenance_target_async_permitted): Rename to ...
7105         (set_target_async_command): ... this.
7106         (show_maintenance_target_async_permitted): Rename to ...
7107         (show_target_async_command): ... this.
7108         (initialize_targets): Adjust.
7109
7110 2012-05-08  Doug Evans  <dje@google.com>
7111
7112         * go-exp.y (classify_name): Add missing assignment of fields of
7113         yylval.ssym.
7114
7115 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
7116
7117         Display the ">" prompt in interactive mode while reading canned
7118         commands, even when the current interpreter is MI.
7119
7120         * interps.c (interp_set_temp): New function.
7121
7122         * interps.h (interp_set_temp): Add prototype.
7123
7124         * cli/cli-script.c (restore_interp): New cleanup function.
7125         (read_command_lines): Temporarily override the current interpreter
7126         with CLI and arrange for restoring the original one.
7127
7128 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
7129
7130         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7131
7132 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
7133
7134         * probe.c (parse_probes): Move conditional to check for
7135         debuginfo files from here...
7136         * stap-probe.c (stap_get_probes): ... to here.
7137
7138 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
7139             H.J. Lu  <hongjiu.lu@intel.com>
7140
7141         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7142         `movl %esp, %ebp' for the X32 ABI.
7143
7144 2012-05-07  Tom Tromey  <tromey@redhat.com>
7145
7146         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
7147         get_DW_TAG_name.
7148         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
7149         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
7150         (dwarf_stack_op_name): Remove.
7151         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
7152         (decode_locdesc): Use get_DW_OP_name.
7153         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7154         (dwarf2_compile_expr_to_ax): Likewise.
7155         (disassemble_dwarf_expression): Likewise.
7156         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7157
7158 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
7159
7160         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7161         (sh_linux_sigtramp_cache): New function.
7162         (sh_linux_sigreturn_init): New function.
7163         (sh_linux_rt_sigreturn_init): New function.
7164         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7165         patterns.
7166         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7167         syscall codes.
7168         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7169         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7170         (sh_linux_init_abi): Add init calls to register new tramp_frame
7171         definitions under 32-bit SH, update comments.
7172
7173 2012-05-07  Pedro Alves  <palves@redhat.com>
7174
7175         PR gdb/10952
7176
7177         * amd64-linux-tdep.c: Include glibc-tdep.h.
7178         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7179         gdbarch_skip_solib_resolver callback.
7180
7181 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
7182
7183         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7184         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7185         (show_auto_load_safe_path): Check any-directory by comparison with "/".
7186         (add_auto_load_safe_path): Change the error message.
7187         (_initialize_auto_load): Change the "safe-path" help text.
7188         * configure: Regenerate
7189         * configure.ac (--without-auto-load-safe-path): Set
7190         WITH_AUTO_LOAD_SAFE_PATH to /.
7191
7192 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
7193
7194         * stap-probe.h: Do not include unecessary `probe.h'.
7195
7196 2012-05-05  Alan Modra  <amodra@gmail.com>
7197
7198         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7199         bfd_und_section_ptr.
7200         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7201         and bfd_com_section_ptr.
7202
7203 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7204
7205         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7206
7207 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
7208
7209         * windows-nat.h (segment_register_p_ftype): New typedef.
7210         (windows_set_segment_register_p): Add declaration.
7211         * windows-nat.c (segment_register_p): New static global.
7212         (windows_set_segment_register_p): New function.
7213         (do_windows_fetch_inferior_registers): Add special handling
7214         for segment registers.
7215         * amd64-windows-nat.c: #include "amd64-tdep.h".
7216         (amd64_windows_segment_register_p): New function.
7217         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7218         * i386-windows-nat.c: #include "i386-tdep.h".
7219         (i386_windows_segment_register_p): New function.
7220         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7221
7222 2012-05-04  Tristan Gingold  <gingold@adacore.com>
7223
7224         * printcmd.c (set_command): Emit a warning if the expression is not
7225         an assignment.
7226
7227 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
7228
7229         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7230         Make static.
7231
7232 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
7233
7234         * stap-probe.c (stap_is_operator): Change declaration.
7235         (stap_get_opcode): Change return value.
7236         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7237         `stap_parse_argument_1'.
7238
7239 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
7240
7241         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7242         debug log.
7243
7244 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
7245
7246         Add two new methods global_block and static_block to gdb.Symtab
7247         objects.
7248         * NEWS (Python scripting): Add entry about the new methods.
7249         * python/py-symtab.c (stpy_global_block): New function which
7250         implements the gdb.Symtab.global_block() method.
7251         (stpy_static_block): New function which implements the
7252         gdb.Symtab.static_block() method.
7253         (symtab_object_methods): Add entries for the two new methods.
7254
7255 2012-05-03  Doug Evans  <dje@google.com>
7256
7257         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7258         files.
7259
7260 2012-05-03  Yao Qi  <yao@codesourcery.com>
7261
7262         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7263         space.
7264         (i386_process_record): Ditto.
7265
7266 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7267
7268         * infcall.c (unwind_on_signal_p): Make static.
7269
7270 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7271
7272         * sol-thread.c (solaris_pid_to_str): Make static.
7273         (_initialize_sol_thread): Add prototype.
7274
7275 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
7276
7277         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7278
7279 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
7280
7281         * MAINTAINERS: Remove myself.
7282
7283 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7284
7285         Fix --without-auto-load-safe-path for MS-Windows host platform.
7286         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7287
7288 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
7289
7290         * gdb_curses.h: Undefine KEY_EVENT before including curses
7291         headers.  Move "#undef MOUSE_MOVED" before any curses header
7292         inclusion.
7293
7294 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7295
7296         * features/i386/i386-mmx-linux.c: Regenerate.
7297         * features/rs6000/powerpc-32.c: Likewise.
7298         * features/rs6000/powerpc-32l.c: Likewise.
7299         * features/rs6000/powerpc-403.c: Likewise.
7300         * features/rs6000/powerpc-403gc.c: Likewise.
7301         * features/rs6000/powerpc-405.c: Likewise.
7302         * features/rs6000/powerpc-505.c: Likewise.
7303         * features/rs6000/powerpc-601.c: Likewise.
7304         * features/rs6000/powerpc-602.c: Likewise.
7305         * features/rs6000/powerpc-603.c: Likewise.
7306         * features/rs6000/powerpc-604.c: Likewise.
7307         * features/rs6000/powerpc-64.c: Likewise.
7308         * features/rs6000/powerpc-64l.c: Likewise.
7309         * features/rs6000/powerpc-750.c: Likewise.
7310         * features/rs6000/powerpc-860.c: Likewise.
7311         * features/rs6000/powerpc-e500.c: Likewise.
7312         * features/rs6000/powerpc-e500l.c: Likewise.
7313         * features/rs6000/powerpc-isa205-32l.c: Likewise.
7314         * features/rs6000/powerpc-isa205-64l.c: Likewise.
7315         * features/rs6000/rs6000.c: Likewise.
7316
7317 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
7318
7319         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7320         variable.
7321         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7322         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7323         (stap_parse_argument) <e>: Likewise.
7324         (handle_stap_probe) <byte_order>: Likewise.
7325
7326 2012-04-30  Doug Evans  <dje@google.com>
7327
7328         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7329         init_and_read_dies_worker.  All callers updated.
7330         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
7331         replaced with init_cutu_and_read_dies.
7332         (load_partial_comp_unit): Pass 1 for use_existing_cu.
7333         (find_partial_die): Remove FIXME.  Don't free current CU.
7334
7335 2012-04-30  Sterling Augustine  <saugustine@google.com>
7336
7337         * contrib: New directory.
7338         * contrib/test_pubnames_and_indexes.py: New file.
7339
7340 2012-04-30  Doug Evans  <dje@google.com>
7341
7342         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7343         All callers updated.
7344         (init_cu_die_reader): Verify the section is non-empty.
7345         (dwarf_decode_line_header): Don't dereference section->asection
7346         until we know the section is present.
7347
7348 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
7349
7350         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7351         probes.
7352
7353 2012-04-29  Yao Qi  <yao@codesourcery.com>
7354
7355         * gdb-code-style.el: New hook gdb-markup-hook
7356         and gdb-comment-hook.
7357
7358 2012-04-28  Doug Evans  <dje@google.com>
7359
7360         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
7361         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7362         objfile->obfd.
7363         * symfile.h (dwarf2_debug_sections): New member addr.
7364         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7365         (ctx_no_get_addr_index): New function.
7366         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7367         (ctx_no_get_addr_index): Declare.
7368         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7369         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7370         (dwarf_expr_ctx_funcs): Update.
7371         (needs_get_addr_index): New function.
7372         (needs_frame_ctx_funcs): Update.
7373         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7374         * dwarf2read.c: #include "gdbcore.h".
7375         (dwarf2_per_objfile): New members addr, dwo_files.
7376         (dwarf2_elf_names): Add entry for addr.
7377         (struct dwo_section_names): New type.
7378         (dwo_section_names): New static global.
7379         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7380         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7381         old debug_types_section member updated to use this.
7382         Rename member debug_types_section to info_or_types_section,
7383         all uses updated.
7384         (signatured_type): Rename member type_offset to type_offset_in_tu,
7385         all uses updated.  New member type_offset_in_section.
7386         (struct dwo_sections): New type.
7387         (struct dwo_unit): New type.
7388         (struct dwo_file): New type.
7389         (die_reader_specs): New member dwo_file.
7390         (dwarf2_locate_sections): Watch for .debug_addr.
7391         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7392         (dwarf2_read_section): Get bfd of section from bfd's asection,
7393         instead of objfile.
7394         (create_cus_from_index): Initialize the_cu->info_or_types_section.
7395         (create_signatured_type_table_from_index): Initialize
7396         sig_type->info_or_types_section.
7397         (dw2_get_file_names): Statement lists for type units with DWO files
7398         live in the DWO file.
7399         (create_debug_types_hash_table): New function.
7400         (create_all_type_units): Rewrite.
7401         (init_cu_die_reader): New arg dwo_file, all callers updated.
7402         (init_and_read_dies_worker): Get section from
7403         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
7404         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7405         continue reading the CU/TU from there.
7406         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7407         updated.  Get section from this_cu->info_or_types_section.
7408         (create_all_comp_units): Initialize this_cu->info_or_types_section.
7409         (skip_one_die): New cases DW_FORM_GNU_addr_index,
7410         DW_FORM_GNU_str_index.
7411         (hash_dwo_file, eq_dwo_file): New functions.
7412         (allocate_dwo_file_hash_table): New function.
7413         (hash_dwo_unit, eq_dwo_unit): New functions.
7414         (allocate_dwo_unit_table): New function.
7415         (dwarf2_locate_dwo_sections): New function.
7416         (struct create_dwo_info_table_data): New type.
7417         (create_debug_info_hash_table_reader): New function.
7418         (create_debug_info_hash_table): New function.
7419         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7420         (lookup_dwo_file): New function.
7421         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7422         (free_dwo_file, free_dwo_file_cleanup): New functions.
7423         (free_dwo_file_from_slot, free_dwo_files): New functions.
7424         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7425         (dwarf2_record_block_ranges): Ditto.
7426         (read_partial_die): Ditto.
7427         (process_enumeration_scope): Update to use type_offset_in_section.
7428         (read_full_die_1): New function.
7429         (read_full_die): Rewrite.
7430         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7431         DW_FORM_GNU_str_index.
7432         (read_addr_index_1, read_addr_index): New functions.
7433         (read_addr_index_from_leb128): New function.
7434         (struct dwarf2_read_addr_index_data): New type.
7435         (dwarf2_read_addr_index_reader): New function.
7436         (dwarf2_read_addr_index): New function.
7437         (read_str_index): New function.
7438         (leb128_size): New function.
7439         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7440         If processing a type unit from a DWO file, get the line section
7441         from the DWO file.
7442         (var_decode_location): Watch for DW_OP_GNU_addr_index.
7443         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7444         DW_FORM_GNU_str_index.
7445         (lookup_die_type): Check whether section offset of type's die is
7446         known before looking it up.  Remove assert.  Condition can
7447         legimately happen for inter-cu type references.
7448         (dwarf_attr_name): Handle Fission attributes.
7449         (dwarf_form_name): Handle Fission forms.
7450         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7451         DW_FORM_GNU_str_index.
7452         (follow_die_sig): Update to use type_offset_in_section.
7453         (decode_locdesc): New case DW_OP_GNU_addr_index.
7454         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7455         DW_FORM_GNU_str_index.
7456         (cu_debug_loc_section): New function.
7457         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7458         (dwarf2_per_objfile_free): Unmap .debug_addr section.
7459         Free DWO files if present.
7460         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7461
7462         Refactor DIE reading.
7463         * dwarf2read.c (dwarf2_per_objfile): Replace members
7464         debug_info_type_hash and debug_types_type_hash with die_type_hash.
7465         (die_reader_specs): New member "die_section".  Temporarily make
7466         member "buffer" non-const, pending constifying all info_ptr uses.
7467         (die_reader_func_ftype): New typedef.
7468         (dw2_get_file_names_reader): New function.
7469         (dw2_get_file_names): Rewrite.
7470         (read_and_check_type_unit_head): Rename arg type_offset to
7471         type_offset_in_tu.
7472         (create_all_type_units): Improve debugging message.
7473         Improve dummy type unit check.
7474         (init_cu_die_reader): New arg "section".  All callers updated.
7475         (init_and_read_dies_worker): New function.
7476         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7477         (init_cutu_and_read_dies_no_follow): New function.
7478         (init_cutu_and_read_dies_simple): New function.
7479         (process_psymtab_comp_unit_reader): New function.
7480         (process_psymtab_comp_unit): Delete args section,
7481         is_debug_types_section.  Rewrite.  All callers updated.
7482         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7483         All callers updated.  Rewrite.
7484         (load_partial_comp_unit_reader): New function.
7485         (load_partial_comp_unit): Rewrite.
7486         (skip_children): New arg reader.  Delete args buffer, cu.
7487         All callers updated.
7488         (skip_one_die): New arg reader.  Delete args buffer, cu.
7489         All callers updated.
7490         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
7491         All callers updated.
7492         (load_full_comp_unit_reader): New function.
7493         (load_full_comp_unit): Rewrite.
7494         (read_comp_unit): Delete.
7495         (read_die_and_children_1): Delete, contents moved ...
7496         (read_die_and_children): ... here.
7497         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
7498         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
7499         All callers updated.
7500         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
7501         All callers updated.
7502         (find_partial_die): Rewrite load_all_dies support.
7503         (read_attribute_value): New arg reader.  Delete args abfd, cu.
7504         All callers updated.
7505         (read_attribute): New arg reader.  Delete args abfd, cu.
7506         All callers updated.
7507         (load_full_type_unit): Add assert.
7508         (read_signatured_type_reader): New function.
7509         (read_signatured_type): Rewrite.
7510         (free_stack_comp_unit): Remove call to age_cached_comp_units.
7511         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7512         All callers updated.  Set per_cu->cu = NULL after freeing it.
7513         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7514         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7515         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7516         (set_die_type): Update.
7517         (get_die_type_at_offset): Update.
7518         (read_file_scope): Call prepare_one_comp_unit.
7519         (read_type_unit_scope): Ditto.
7520         (prepare_one_comp_unit): Set producer if present.
7521
7522 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
7523
7524         * probe.c (compile_rx_or_error): Silence ARI warning about missing
7525          gettext function on `error'.
7526
7527 2012-04-27  Doug Evans  <dje@google.com>
7528
7529         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7530         is empty.
7531
7532 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7533             Tom Tromey  <tromey@redhat.com>
7534
7535         * breakpoint.c (struct breakpoint_objfile_data)
7536         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7537         <exception_probes>: New fields.
7538         (free_breakpoint_probes): New function.
7539         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7540         `_Unwind_DebugHook'.
7541         (create_exception_master_breakpoint): Likewise.
7542         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7543         * infrun.c: Including necessary header files for handling SystemTap
7544         probes.
7545         (handle_inferior_event): Handling longjmp breakpoint and exceptions
7546         via SystemTap probes.
7547         (check_exception_resume): Remove `func' argument.  Handle exception
7548         unwinding breakpoint set via a SystemTap probe.
7549         (insert_exception_resume_from_probe): New function.
7550
7551 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7552             Tom Tromey  <tromey@redhat.com>
7553             Jan Kratochvil  <jan.kratochvil@redhat.com>
7554
7555         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7556         (COMMON_OBS): Likewise.
7557         (HFILES_NO_SRCDIR): Add `probe'.
7558         * NEWS: Mention support for static and SystemTap probes.
7559         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7560         SystemTap probes' arguments parser.
7561         * arm-linux-tdep.c: Including headers needed to perform the parsing
7562         of SystemTap probes' arguments.
7563         (arm_stap_is_single_operand): New function.
7564         (arm_stap_parse_special_token): Likewise.
7565         (arm_linux_init_abi): Initializing proper fields used by SystemTap
7566         probes' arguments parser.
7567         * ax-gdb.c (require_rvalue): Removing static declaration.
7568         (gen_expr): Likewise.
7569         * ax-gdb.h (gen_expr): Declaring function.
7570         (require_rvalue): Likewise.
7571         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7572         (bkpt_probe_breakpoint_ops): New variable.
7573         (momentary_breakpoint_from_master): Set the `probe' value.
7574         (add_location_to_breakpoint): Likewise.
7575         (break_command_1): Using proper breakpoint_ops according to the
7576         argument passed by the user in the command line.
7577         (bkpt_probe_insert_location): New function.
7578         (bkpt_probe_remove_location): Likewise.
7579         (bkpt_probe_create_sals_from_address): Likewise.
7580         (bkpt_probe_decode_linespec): Likewise.
7581         (tracepoint_probe_create_sals_from_address): Likewise.
7582         (tracepoint_probe_decode_linespec): Likewise.
7583         (tracepoint_probe_breakpoint_ops): New variable.
7584         (trace_command): Using proper breakpoint_ops according to the
7585         argument passed by the user in the command line.
7586         (initialize_breakpoint_ops): Initializing breakpoint_ops for
7587         static probes on breakpoints and tracepoints.
7588         * breakpoint.h (struct bp_location) <probe>: New field.
7589         * cli-utils.c (skip_spaces_const): New function.
7590         (extract_arg): Likewise.
7591         * cli-utils.h (skip_spaces_const): Likewise.
7592         (extract_arg): Likewise.
7593         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7594         * configure.ac: Append `stap-probe.o' to be generated when ELF
7595         support is present.
7596         * configure: Regenerate.
7597         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7598         * elfread.c: Include `probe.h' and `arch-utils.h'.
7599         (probe_key): New variable.
7600         (elf_get_probes): New function.
7601         (elf_get_probe_argument_count): Likewise.
7602         (elf_evaluate_probe_argument): Likewise.
7603         (elf_compile_to_ax): Likewise.
7604         (elf_symfile_relocate_probe): Likewise.
7605         (stap_probe_key_free): Likewise.
7606         (elf_probe_fns): New variable.
7607         (elf_sym_fns): Add `sym_probe_fns' value.
7608         (elf_sym_fns_lazy_psyms): Likewise.
7609         (elf_sym_fns_gdb_index): Likewise.
7610         (_initialize_elfread): Initialize objfile cache for static
7611         probes.
7612         * gdb_vecs.h (struct probe): New forward declaration.
7613         (probe_p): New VEC declaration.
7614         * gdbarch.c: Regenerate.
7615         * gdbarch.h: Regenerate.
7616         * gdbarch.sh (stap_integer_prefix): New variable.
7617         (stap_integer_suffix): Likewise.
7618         (stap_register_prefix): Likewise.
7619         (stap_register_suffix): Likewise.
7620         (stap_register_indirection_prefix): Likewise.
7621         (stap_register_indirection_suffix): Likewise.
7622         (stap_gdb_register_prefix): Likewise.
7623         (stap_gdb_register_suffix): Likewise.
7624         (stap_is_single_operand): New function.
7625         (stap_parse_special_token): Likewise.
7626         (struct stap_parse_info): Forward declaration.
7627         * i386-tdep.c: Including headers needed to perform the parsing
7628         of SystemTap probes' arguments.
7629         (i386_stap_is_single_operand): New function.
7630         (i386_stap_parse_special_token): Likewise.
7631         (i386_elf_init_abi): Initializing proper fields used by SystemTap
7632         probes' arguments parser.
7633         * i386-tdep.h (i386_stap_is_single_operand): New function.
7634         (i386_stap_parse_special_token): Likewise.
7635         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7636         * mipsread.c (ecoff_sym_fns): Likewise.
7637         * objfiles.c (objfile_relocate1): Support relocation for static
7638         probes.
7639         * parse.c (prefixify_expression): Remove static declaration.
7640         (initialize_expout): Likewise.
7641         (reallocate_expout): Likewise.
7642         * parser-defs.h (initialize_expout): Declare function.
7643         (reallocate_expout): Likewise.
7644         (prefixify_expression): Likewise.
7645         * ppc-linux-tdep.c: Including headers needed to perform the parsing
7646         of SystemTap probes' arguments.
7647         (ppc_stap_is_single_operand): New function.
7648         (ppc_stap_parse_special_token): Likewise.
7649         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7650         probes' arguments parser.
7651         * probe.c: New file, for generic statically defined probe support.
7652         * probe.h: Likewise.
7653         * s390-tdep.c: Including headers needed to perform the parsing of
7654         SystemTap probes' arguments.
7655         (s390_stap_is_single_operand): New function.
7656         (s390_gdbarch_init): Initializing proper fields used by SystemTap
7657         probes' arguments parser.
7658         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7659         * stap-probe.c: New file, for SystemTap probe support.
7660         * stap-probe.h: Likewise.
7661         * symfile.h: Include `gdb_vecs.h'.
7662         (struct sym_probe_fns): New struct.
7663         (struct sym_fns) <sym_probe_fns>: New field.
7664         * symtab.c (init_sal): Initialize `probe' field.
7665         * symtab.h (struct probe): Forward declaration.
7666         (struct symtab_and_line) <probe>: New field.
7667         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7668         locations.
7669         (stop_tracing): Likewise.
7670         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7671
7672 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7673             Tom Tromey  <tromey@redhat.com>
7674
7675         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7676         and to compile agent expressions.
7677         * infrun.c (siginfo_make_value): New argument `ignore'.
7678         (siginfo_funcs): New struct.
7679         (_initialize_infrun): New argument when calling
7680         `create_internalvar_type_lazy'.
7681         * thread.c (thread_id_make_value): New argument `ignore'.
7682         (thread_funcs): New struct.
7683         (_initialize_thread): New argument when calling
7684         `create_internalvar_type_lazy'.
7685         * tracepoint.c (sdata_make_value): New argument `ignore'.
7686         (sdata_funcs): New struct.
7687         (_initialize_tracepoint): New argument when calling
7688         `create_internalvar_type_lazy'.
7689         * value.c (make_value): New struct.
7690         (create_internalvar_type_lazy): New argument `data'.
7691         (compile_internalvar_to_ax): New function.
7692         (value_of_internalvar): Properly handling `make_value' case.
7693         (clear_internalvar): Likewise.
7694         (show_convenience): Adding `TRY_CATCH' block.
7695         * value.h (internalvar_make_value): Delete, replace by...
7696         (struct internalvar_funcs): ... this.
7697         (create_internalvar_type_lazy) <fun>: Delete argument.
7698         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7699         (compile_internalvar_to_ax): New function.
7700         * windows-tdep.c (tlb_make_value): New argument `ignore'.
7701         (tlb_funcs): New struct.
7702         (_initialize_windows_tdep): New argument when calling
7703         `create_internalvar_type_lazy'.
7704
7705 2012-04-27  Mark Wielaard  <mjw@redhat.com>
7706
7707         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7708         see whether it is an address or a constant offset from DW_AT_low_pc.
7709         (dwarf2_record_block_ranges): Likewise.
7710         (read_partial_die): Likewise.
7711
7712 2012-04-26  Mark Wielaard  <mjw@redhat.com>
7713
7714         * MAINTAINERS (Write After Approval): Add myself to the list.
7715
7716 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7717
7718         * proc-utils.h (proc_prettyprint_signalset): New prototype.
7719         (proc_prettyprint_signal): Likewise.
7720         (proc_prettyprint_faultset): Likewise.
7721         (proc_prettyprint_fault): Likewise.
7722         (proc_prettyprint_actionset): Likewise.
7723         (proc_prettyprint_flags): Move to new proc-flags.c section.
7724         (proc_prettyfprint_flags): New prototype.
7725         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7726         (proc_syscall, proc_cursig): Likewise.
7727         (proc_set_kill_on_last_close): Likewise.
7728         (proc_unset_kill_on_last_close): Likewise.
7729         (proc_set_watchpoint): Make static.
7730         (proc_delete_dead_threads): Likewise.
7731         (procfs_set_watchpoint): Likewise.
7732         (_initialize_procfs): Add prototype.
7733         * proc-events.c: Include proc-utils.h.
7734         (init_syscall_table): Make static.
7735         * proc-api.c (_initialize_proc_api): Add prototype.
7736         * proc-flags.c: Include proc-utils.h.
7737
7738 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7739
7740         * configure.ac: Add AC_ARG_PROGRAM.
7741         * configure: Regenerate.
7742
7743 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7744
7745         Fix DW_AT_lower_bound defaults for DWARF-4+.
7746         * dwarf2read.c (read_subrange_type): Remove initialization of low and
7747         high.  New variable low_default_is_valid.  Implement DWARF-4+
7748         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
7749         no default by the DWARF standard.
7750
7751 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
7752             Maciej W. Rozycki  <macro@codesourcery.com>
7753
7754         * infrun.c (handle_inferior_event): Move the check for return
7755         trampolines ahead of the check for function trampolines.
7756         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7757         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7758         (mips_str_mips16_ret_stub): Likewise.
7759         (mips_str_call_fp_stub): Likewise.
7760         (mips_str_call_stub): Likewise.
7761         (mips_str_fn_stub): Likewise.
7762         (mips_str_pic): Likewise.
7763         (mips_in_frame_stub): New function.
7764         (mips_unwind_pc): Return the return address rather than the PC
7765         if the PC of an intermediate frame is inside a call thunk.
7766         (mips_is_stub_suffix): New function.
7767         (mips_is_stub_mode): Likewise.
7768         (mips_get_mips16_fn_stub_pc): Likewise.
7769         (mips_skip_mips16_trampoline_code): Update to handle all the
7770         currently generated stub types.  Don't recurse into __fn_stub
7771         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7772         Use cooked register accesses.
7773         (mips_in_return_stub): Reintroduce function.
7774         (mips_skip_trampoline_code): Traverse trampolines recursively.
7775         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7776
7777 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7778
7779         GDB 7.4.1 released.
7780
7781 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7782
7783         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7784         * features/arm-with-m-vfp-d16.xml: New file. Describes
7785         Cortex-M with VFPv4-sp-d16 FPU register layout.
7786         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7787         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7788         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7789         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7790         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7791
7792 2012-04-25  Doug Evans  <dje@google.com>
7793
7794         * cli/cli-decode.c (print_doc_line): Use stream instead of
7795         current_uiout.
7796
7797 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7798
7799         * features/arm-with-iwmmxt.c: Regenerate.
7800         * features/arm-with-m-fpa-layout.c: Likewise.
7801         * features/arm-with-m.c: Likewise.
7802         * features/arm-with-neon.c: Likewise.
7803         * features/arm-with-vfpv2.c: Likewise.
7804         * features/arm-with-vfpv3.c: Likewise.
7805         * features/mips-dsp-linux.c: Likewise.
7806         * features/mips-linux.c: Likewise.
7807         * features/mips64-dsp-linux.c: Likewise.
7808         * features/mips64-linux.c: Likewise.
7809         * features/s390-linux32.c: Likewise.
7810         * features/s390-linux32v1.c: Likewise.
7811         * features/s390-linux32v2.c: Likewise.
7812         * features/s390-linux64.c: Likewise.
7813         * features/s390-linux64v1.c: Likewise.
7814         * features/s390-linux64v2.c: Likewise.
7815         * features/s390x-linux64.c: Likewise.
7816         * features/s390x-linux64v1.c: Likewise.
7817         * features/s390x-linux64v2.c: Likewise.
7818         * features/tic6x-c62x-linux.c: Likewise.
7819         * features/tic6x-c62x.c: Likewise.
7820         * features/tic6x-c64x-linux.c: Likewise.
7821         * features/tic6x-c64x.c: Likewise.
7822         * features/tic6x-c64xp-linux.c: Likewise.
7823         * features/tic6x-c64xp.c: Likewise.
7824         * target-descriptions.c: Only generate `field_type' and `type'
7825         variables when needed.
7826
7827 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7828
7829         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7830
7831 2012-04-25  Doug Evans  <dje@google.com>
7832
7833         Initial pass at Go language support.
7834         * NEWS: Mention Go.
7835         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7836         go-valprint.c.
7837         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7838         (YYFILES): Add go-exp.c.
7839         (YYOBJ): Add go-exp.o.
7840         (local-maintainer-clean): Delete go-exp.c.
7841         * defs.h (enum language): Add language_go.
7842         * dwarf2read.c: #include "go-lang.h".
7843         (fixup_go_packaging): New function.
7844         (process_full_comp_unit): Call it when processing Go CUs.
7845         (dwarf2_physname): Add Go support.
7846         (read_file_scope): Handle missing language spec for GNU Go.
7847         (set_cu_language): Handle DW_LANG_Go.
7848         * go-exp.y: New file.
7849         * go-lang.h: New file.
7850         * go-lang.c: New file.
7851         * go-typeprint.c: New file.
7852         * go-valprint.c: New file.
7853         * symtab.c: #include "go-lang.h".
7854         (symbol_set_language): Handle language_go.
7855         (symbol_find_demangled_name, symbol_set_names): Ditto.
7856         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7857
7858 2012-04-24  Jim Meyering  <meyering@redhat.com>
7859
7860         avoid a few strncpy-induced buffer overruns
7861         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7862         fname and psargs before trying to concatenate.
7863         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7864         "name" before applying strchr.
7865
7866 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7867
7868         * CONTRIBUTE: Use unified diff instead of context diff when
7869         generating patches.
7870
7871 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7872
7873         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7874         code.  Handle JR.HB correctly.
7875
7876 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7877
7878         * mips-tdep.c
7879         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7880         with the other MIPS16 helpers.
7881
7882 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7883
7884         * observer.sh: Conditionally declare `args', thus cleaning up
7885         unused instances of this variable.
7886
7887 2012-04-24  Yao Qi  <yao@codesourcery.com>
7888
7889         Revert this patch to allow breakpoint always-inserted
7890         in record target.
7891         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7892         * breakpoint.c: Include record.h.
7893         (breakpoints_always_inserted_mode): Return false when the record
7894         target is in use.
7895
7896         * breakpoint.c (iterate_over_bp_locations): New.
7897         * breakpoint.h: Declare.
7898         New typedef walk_bp_location_callback.
7899         * record.c (record_open): Call record_init_record_breakpoints.
7900         (record_sync_record_breakpoints): New.
7901         (record_init_record_breakpoints): New.
7902         * NEWS: Mention supporting breakpoint always-inserted mode in
7903         record target.
7904
7905 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7906
7907         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7908         any thread.
7909
7910 2012-04-24  Yao Qi  <yao@codesourcery.com>
7911
7912         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7913         (is_catchpoint): ... it.
7914         (print_one_breakpoint_location): Caller update.
7915         * breakpoint.h: Update declaration.
7916
7917 2012-04-23  David S. Miller  <davem@davemloft.net>
7918
7919         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7920
7921 2012-04-23  Tom Tromey  <tromey@redhat.com>
7922
7923         * buildsym.c (add_free_pendings): Remove.
7924         * buildsym.h (add_free_pendings): Remove.
7925
7926 2012-04-23  Doug Evans  <dje@google.com>
7927
7928         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7929         attr.u.unsnd instead of attr.u.addr.
7930         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7931         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7932         DW_FORM_ref_udata.
7933         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7934         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7935         DW_FORM_ref_udata.
7936         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7937
7938 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7939
7940         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7941         (mips_o32_return_value): Likewise.
7942         (mips_o64_return_value): Likewise.
7943
7944 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7945
7946         * ada-lang.c (ada_evaluate_subexp): Add cases for
7947         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7948         their treatment in eval.c.
7949
7950 2012-04-21  David S. Miller  <davem@davemloft.net>
7951
7952         * sparc-tdep.c (X_DISP10): Define.
7953         (sparc_analyze_control_transfer): Handle compare-and-branch.
7954
7955 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7956
7957         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7958         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7959
7960 2012-04-20  Nigel Stephens  <nigel@mips.com>
7961             Maciej W. Rozycki  <macro@codesourcery.com>
7962
7963         * mips-tdep.c (mips_float_register_p): New function.
7964         (mips_convert_register_float_case_p): Use mips_float_register_p.
7965         (mips_register_type): Likewise.
7966         (mips_print_register): Likewise.
7967         (print_gp_register_row): Likewise.
7968         (mips_print_registers_info): Likewise.
7969
7970 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7971
7972         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7973         of mips16 symbols.
7974
7975 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7976
7977         * MAINTAINERS (Write After Approval): Add myself to the list.
7978
7979 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7980
7981         * MAINTAINERS: Update my e-mail address.
7982
7983 2012-04-20  Pedro Alves  <palves@redhat.com>
7984
7985         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7986         $srcdir.
7987         * configure: Regenerate.
7988
7989 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7990
7991         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7992         declaration.
7993         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7994
7995 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7996
7997         Fix compilation compatibility with python-2.4
7998         * python/py-type.c (convert_field): Cast ADDRSTRING for
7999         PyObject_SetAttrString as non-const.  New comment.
8000
8001 2012-04-19  Tom Tromey  <tromey@redhat.com>
8002
8003         * top.c (quit_target): Use all_cleanups.
8004         * main.c (captured_command_loop): Use all_cleanups.
8005         * exceptions.c (throw_exception): Use all_cleanups.
8006
8007 2012-04-19  Pedro Alves  <palves@redhat.com>
8008
8009         * Makefile.in (GNULIB_BUILDDIR): New.
8010         (LIBGNU, INCGNU, GNULIB_H): Adjust.
8011         (SUBDIRS): Add $(GNULIB_BUILDDIR).
8012         (CLEANDIRS). Remove gnulib/import.
8013         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8014         (all-lib): Ditto.
8015         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8016         (gnulib/import/Makefile): Replace gnulib/import with
8017         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
8018         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8019         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
8020         acx_configure_dir.m4.
8021         * acinclude.m4: Include acx_configure_dir.m4.
8022         * acx_configure_dir.m4: New file.
8023         * aclocal.m4: Regenerate.
8024         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8025         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
8026         (GNULIB): New variable.
8027         (GNULIB_STDINT_H): Adjust.
8028         (AC_OUTPUT): Don't output gnulib/Makefile.
8029         * gdb/defs.h: Include build-gnulib/config.h.
8030         * aclocal.m4: Regenerate.
8031         * config.in: Regenerate.
8032         * configure: Regenerate.
8033
8034         * gnulib/Makefile.in: New file.
8035         * gnulib/configure.ac: New file.
8036         * gnulib/aclocal.m4: New file.
8037         * gnulib/config.in: New file.
8038         * gnulib/configure: New file.
8039         * gnulib/: Re-run gnulib-tool to adjust.
8040
8041 2012-04-19  Doug Evans  <dje@google.com>
8042
8043         * cleanups.h (struct cleanup): Move to cleanups.c.
8044         (make_cleanup_dtor_ftype): New typedef.
8045         (make_cleanup_dtor): Use it.
8046         (ALL_CLEANUPS): Replace with ...
8047         (all_cleanups): ... this.  Declare.  All uses updated.
8048         * cleanups.c: #include "gdb_assert.h".
8049         (sentinel_cleanup): New static global.
8050         (SENTINEL_CLEANUP): Define.
8051         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8052         (make_my_cleanup2): Assert result is non-NULL.
8053         (all_cleanups): New function.
8054         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8055         of NULL.
8056
8057 2012-04-19  Pedro Alves  <palves@redhat.com>
8058
8059         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8060         Adjust paths to gnulib imported files.
8061
8062 2012-04-19  Pedro Alves  <palves@redhat.com>
8063
8064         * gnulib/: Move whole directory ...
8065         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8066         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8067         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8068         (aclocal_m4_deps): Adjust.
8069         * aclocal.m4: Regenerate.
8070         * configure: Regenerate.
8071         * configure.ac: Adjust AC_OUTPUT output.
8072
8073 2012-04-19  Yao Qi  <yao@codesourcery.com>
8074
8075         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8076         (vec.o): New rule.
8077         * vec.c: Move it ...
8078         * common/vec.c: ... here.
8079         * vec.h: Move it ...
8080         * common/vec.h: ... here.
8081
8082 2012-04-19  Yao Qi  <yao@codesourcery.com>
8083
8084         * gdb-code-style.el: New.
8085
8086 2012-04-18  Pedro Alves  <palves@redhat.com>
8087
8088         Update gnulib from latest git.
8089         (639ea5ae15e39fe48d43e04864b2997301e4b969)
8090
8091         * gnulib/Makefile.am: Update.
8092         * gnulib/dummy.c: Update.
8093         * gnulib/extra/arg-nonnull.h: Update.
8094         * gnulib/extra/c++defs.h: Update.
8095         * gnulib/extra/update-copyright: Update.
8096         * gnulib/extra/warn-on-use.h: Update.
8097         * gnulib/inttypes.in.h: Update.
8098         * gnulib/m4/00gnulib.m4: Update.
8099         * gnulib/m4/extensions.m4: Update.
8100         * gnulib/m4/gnulib-cache.m4: Update.
8101         * gnulib/m4/gnulib-common.m4: Update.
8102         * gnulib/m4/gnulib-comp.m4: Update.
8103         * gnulib/m4/gnulib-tool.m4: Update.
8104         * gnulib/m4/include_next.m4: Update.
8105         * gnulib/m4/inttypes-pri.m4: Update.
8106         * gnulib/m4/inttypes.m4: Update.
8107         * gnulib/m4/longlong.m4: Update.
8108         * gnulib/m4/memchr.m4: Update.
8109         * gnulib/m4/memmem.m4: Update.
8110         * gnulib/m4/mmap-anon.m4: Update.
8111         * gnulib/m4/multiarch.m4: Update.
8112         * gnulib/m4/onceonly.m4: Update.
8113         * gnulib/m4/stddef_h.m4: Update.
8114         * gnulib/m4/stdint.m4: Update.
8115         * gnulib/m4/string_h.m4: Update.
8116         * gnulib/m4/warn-on-use.m4: Update.
8117         * gnulib/m4/wchar_h.m4: Update.
8118         * gnulib/m4/wchar_t.m4: Update.
8119         * gnulib/m4/wint_t.m4: Update.
8120         * gnulib/memchr.c: Update.
8121         * gnulib/memmem.c: Update.
8122         * gnulib/stddef.in.h: Update.
8123         * gnulib/stdint.in.h: Update.
8124         * gnulib/str-two-way.h: Update.
8125         * gnulib/string.in.h: Update.
8126         * gnulib/wchar.in.h: Update.
8127
8128         * gnulib/extra/arg-nonnull.h: Delete.
8129         * gnulib/extra/c++defs.h: Delete.
8130         * gnulib/extra/warn-on-use.h: Delete.
8131         * gnulib/m4/wchar_h.m4: Delete.
8132         * gnulib/m4/wint_t.m4: Delete.
8133         * gnulib/wchar.in.h: Delete.
8134
8135         * gnulib/extra/snippets/arg-nonnull.h: New.
8136         * gnulib/extra/snippets/c++defs.h: New.
8137         * gnulib/extra/snippets/warn-on-use.h: New.
8138
8139         * aclocal.m4: Regenerate.
8140         * config.in: Regenerate.
8141         * configure: Regenerate.
8142         * gnulib/Makefile.in: Regenerate.
8143
8144 2012-04-18  Pedro Alves  <palves@redhat.com>
8145
8146         Reimport the update-copyright module from gnulib
8147         (250b80067c1e1d8faa0c42fb572f721975b929c5).
8148
8149         * configure: Regenerate.
8150         * gnulib/Makefile.am: Update.
8151         * gnulib/Makefile.in: Regenerate.
8152         * gnulib/extra/update-copyright: Update.
8153         * gnulib/m4/gnulib-cache.m4: Update.
8154         * gnulib/m4/gnulib-comp.m4: Update.
8155
8156 2012-04-18  Tristan Gingold  <gingold@adacore.com>
8157
8158         * configure.ac (aix): Put -lpthread into libs.
8159         * configure: Regenerate.
8160
8161 2012-04-18  Tom Tromey  <tromey@redhat.com>
8162
8163         * linespec.c (convert_linespec_to_sals): Don't use
8164         SYMBOL_OBJ_SECTION.
8165         (compare_msymbols): Arguments are minsym_and_objfile, not
8166         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
8167
8168 2012-04-18  Pedro Alves  <palves@redhat.com>
8169
8170         Revert gnulib/ part of:
8171         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
8172         Copyright year update in most files (performed by copyright.sh).
8173
8174 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8175
8176         Fix 64-bit constants on 32-bit hosts.
8177         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8178         from unsigned long to ULONGEST.
8179         (read_signed_leb128): Change declaration return type from long to
8180         LONGEST.
8181         (dwarf2_const_value_attr): Change declaration parameter value from long
8182         to LONGEST.
8183         (dwarf2_compute_name): Change variable value from long to LONGEST.
8184         (read_unsigned_leb128): Change return type, variable result and some
8185         casts from unsigned long to ULONGEST.
8186         (read_signed_leb128): Change return type, variable result and some
8187         casts from long to LONGEST.
8188         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8189         value from long to LONGEST.
8190         (dwarf2_const_value): Change variable value from long to LONGEST.
8191         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8192         plongest and hex_string.
8193         * symtab.h (struct general_symbol_info): Change ivalue from long to
8194         LONGEST, remove the comment.
8195         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8196         Change SYMBOL_VALUE format strings to use plongest and hex_string.
8197
8198 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8199
8200         PR symtab/7259:
8201         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8202         * ada-lang.c (ada_discrete_type_high_bound)
8203         (ada_discrete_type_low_bound): Fix function comment.  Use
8204         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8205         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8206         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8207         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8208         Use TYPE_FIELD_ENUMVAL.
8209         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8210         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8211         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8212         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
8213         TYPE_CODE_ENUM.
8214         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8215         * dwarf2read.c (process_enumeration_scope): Likewise.
8216         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8217         field.bitpos.
8218         (class StructMainTypePrettyPrinter): Support also
8219         FIELD_LOC_KIND_ENUMVAL.
8220         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8221         TYPE_CODE_ENUM.
8222         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8223         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8224         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8225         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
8226         field enumval.
8227         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8228         accommodate enumval.
8229         (struct call_site): Adjust loc_kind to accommodate enumval.
8230         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8231         (TYPE_FIELD_ENUMVAL): New macros.
8232         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8233         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8234         TYPE_CODE_ENUM.
8235         * p-typeprint.c (pascal_type_print_base): Likewise.
8236         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8237         enumval.
8238         * python/lib/gdb/types.py (make_enum_dict): Likewise.
8239         * python/py-type.c (convert_field): New variable addrstring.  Use
8240         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8241         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8242         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8243         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8244         TYPE_CODE_ENUM.
8245         * valprint.c (generic_val_print): Likewise.
8246
8247 2012-04-17  Doug Evans  <dje@google.com>
8248
8249         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8250
8251         * dwarf2read.c: Whitespace fixes.
8252         (lookup_signatured_type): Tweak comment.
8253         (get_die_type_at_offset): Fix comment.
8254
8255 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8256
8257         * xcoffread.c (xcoff_secnum_to_sections): New function.
8258         (secnum_to_section, secnum_to_bfd_section): Reimplement
8259         using xcoff_secnum_to_sections.  Rename "secnum" parameter
8260         into "n_scnum".
8261         (RECORD_MINIMAL_SYMBOL): Delete.
8262         (record_minimal_symbol): New function.
8263         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8264         by call to record_minimal_symbol and set misc_func_recorded
8265         to 1.  Set last_csect_sec to the XCOFF section index instead
8266         of GDB's section_offset index.  Update calls to
8267         prim_record_minimal_symbol_and_info to pass the BFD section
8268         as well.
8269
8270 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
8271
8272         * xcoffread.c (read_xcoff_symtab): Delete variables
8273         last_csect_val and last_csect_sec and associated code.
8274
8275 2012-04-17  Doug Evans  <dje@google.com>
8276
8277         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8278         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8279         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8280         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8281
8282         * cleanups.h: New file.
8283         * cleanups.c: New file.
8284         * Makefile.in (SFILES): Add cleanups.c.
8285         (HFILES_NO_SRCDIR): Add cleanups.h.
8286         (COMMON_OBS): Add cleanups.o.
8287         * defs.h (struct cleanup): Moved to cleanups.h.
8288         (do_cleanups,do_final_cleanups): Ditto.
8289         (discard_cleanups,discard_final_cleanups): Ditto
8290         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8291         (save_cleanups,save_final_cleanups): Ditto.
8292         (restore_cleanups,restore_final_cleanups): Ditto.
8293         (null_cleanup): Ditto.
8294         (make_my_cleanup,make_my_cleanup2): Ditto.
8295         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8296         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8297         (do_cleanups,do_final_cleanups): Ditto.
8298         (discard_cleanups,discard_final_cleanups): Ditto
8299         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8300         (save_cleanups,save_final_cleanups): Ditto.
8301         (restore_cleanups,restore_final_cleanups): Ditto.
8302         (null_cleanup): Ditto.
8303         (make_my_cleanup,make_my_cleanup2): Ditto.
8304         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8305
8306         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8307         make_my_cleanup.
8308         (make_cleanup_dyn_string_delete): Ditto.
8309         (make_cleanup_ui_file_delete): Ditto.
8310         (make_cleanup_ui_out_redirect_pop): Ditto.
8311         (make_cleanup_free_section_addr_info): Ditto.
8312         (make_cleanup_restore_integer): Ditto.
8313         (make_cleanup_unpush_target): Ditto.
8314         (make_cleanup_value_free_to_mark): Ditto.
8315         (make_cleanup_value_free): Ditto.
8316         (make_cleanup_free_so): Ditto.
8317
8318 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8319
8320         New option "set debug auto-load".
8321         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8322         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8323         (auto_load_safe_path_vec_update)
8324         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8325         if DEBUG_AUTO_LOAD.
8326         (file_is_auto_load_safe): New parameters debug_fmt and ....
8327         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8328         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8329         caller by explanatory string.
8330         (_initialize_auto_load): Register "set debug auto-load".
8331         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8332         and ....
8333         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8334         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8335         by explanatory string.
8336         * main.c (captured_main): Likewise.
8337         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8338         (source_section_scripts): Likewise.
8339
8340 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8341
8342         New option "set auto-load safe-path".
8343         * NEWS: New commands "set auto-load safe-path"
8344         and "show auto-load safe-path".
8345         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8346         (auto_load_safe_path, auto_load_safe_path_vec)
8347         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8348         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8349         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8350         (source_gdb_script_for_objfile): New variable is_safe.  Call
8351         file_is_auto_load_safe.  Return if it is not.
8352         (struct loaded_script): New field loaded.
8353         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
8354         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
8355         output "Missing" to "No".
8356         (_initialize_auto_load): New variable cmd.  Initialize
8357         auto_load_safe_path.  Register "set auto-load safe-path",
8358         "show auto-load safe-path" and "add-auto-load-safe-path".
8359         * auto-load.h (maybe_add_script): Add parameter loaded.
8360         (file_is_auto_load_safe): New declaration.
8361         * config.in: Regenerate.
8362         * configure: Regenerate.
8363         * configure.ac: New parameters --with-auto-load-safe-path
8364         and --without-auto-load-safe-path.
8365         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8366         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8367         * main.c (captured_main): Check file_is_auto_load_safe for
8368         LOCAL_GDBINIT.
8369         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8370         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
8371         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
8372         not.
8373
8374 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8375
8376         auto-load: Implementation.
8377         * NEWS: New descriptions for "info auto-load",
8378         "info auto-load gdb-scripts", "info auto-load python-scripts",
8379         "info auto-load local-gdbinit" and "info auto-load libthread-db".
8380         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8381         and "show auto-load-scripts".  New description for "set auto-load",
8382         "show auto-load", "set auto-load gdb-scripts",
8383         "show auto-load gdb-scripts", "set auto-load python-scripts",
8384         "show auto-load python-scripts", "set auto-load local-gdbinit",
8385         "show auto-load local-gdbinit", "set auto-load libthread-db" and
8386         "show auto-load libthread-db".
8387         * auto-load.c: Remove include python/python-internal.h.  Add includes
8388         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8389         cli/cli-setshow.h.
8390         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8391         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8392         (gdbpy_global_auto_load): Rename to ...
8393         (global_auto_load): ... here.
8394         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8395         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8396         (script_language_gdb, source_gdb_script_for_objfile): New.
8397         (struct loaded_script): New field language.
8398         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8399         LANGUAGE.
8400         (maybe_add_script): Add parameter language.  Drop redundant
8401         entry.full_path initialization.  Initialize entry.language and
8402         (*slot)->language.
8403         (auto_load_objfile_script): Change parameter suffix to language.
8404         Remove the call of maybe_add_script.
8405         Call language->source_script_for_objfile.
8406         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8407         New.
8408         (collect_matching_scripts): Adjust it for
8409         struct collect_matching_scripts_data.
8410         (auto_load_info_scripts_pattern_nl): New variable.
8411         (info_auto_load_scripts): Rename to ...
8412         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
8413         for struct collect_matching_scripts_data.
8414         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8415         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8416         (auto_load_show_cmdlist_get, info_auto_load_cmd)
8417         (auto_load_info_cmdlist_get): New.
8418         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8419         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
8420         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8421         "info auto-load local-gdbinit".
8422         * auto-load.h (struct script_language): New.
8423         (gdbpy_global_auto_load): Rename to ...
8424         (global_auto_load): ... here.
8425         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8426         (auto_load_local_gdbinit_loaded): New declarations.
8427         (maybe_add_script): New parameter language.
8428         (auto_load_objfile_script): Change parameter suffix to language.
8429         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8430         (auto_load_info_scripts, auto_load_set_cmdlist_get)
8431         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8432         declarations.
8433         * linux-thread-db.c: Include auto-load.h and ctype.h.
8434         (auto_load_thread_db, show_auto_load_thread_db): New.
8435         (struct thread_db_info): New field filename.
8436         (delete_thread_db_info): Call xfree for FILENAME.
8437         (try_thread_db_load): Initialize FILENAME.
8438         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8439         if !AUTO_LOAD_THREAD_DB.
8440         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8441         (_initialize_thread_db): Install auto_load_thread_db
8442         as "set auto-load libthread-db" and install info_auto_load_libthread_db
8443         as "info auto-load libthread-db".
8444         * main.c (captured_main): Rename gdbpy_global_auto_load to
8445         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8446         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8447         (print_gdb_help): Extend the help for 'local init file'.
8448         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8449         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8450         (auto_load_scripts): Rename to ...
8451         (auto_load_python_scripts): ... here, update the comment.
8452         (gdbpy_load_auto_script_for_objfile): New declaration.
8453         (show_auto_load_python_scripts, script_language_python)
8454         (gdbpy_load_auto_script_for_objfile): New.
8455         (source_section_scripts): Refactor the code.
8456         (load_auto_scripts_for_objfile): Rename to ...
8457         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8458         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8459         (info_auto_load_python_scripts): New.
8460         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8461         Rename "set auto-load-scripts" to "set auto-load python-scripts".
8462         Register "set auto-load-scripts" as its deprecated alias.  Register
8463         "info auto-load python-scripts".  Register "info auto-load-scripts" as
8464         its deprecated alias.
8465         (load_auto_scripts_for_objfile): Rename to ...
8466         (gdbpy_load_auto_scripts_for_objfile): ... here.
8467         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8468         (gdbpy_load_auto_scripts_for_objfile): ... here.
8469
8470 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8471
8472         auto-load: Move files.
8473         * Makefile.in (SFILES): Add auto-load.c.
8474         (HFILES_NO_SRCDIR): Add auto-load.h.
8475         (COMMON_OBS): Add auto-load.o.
8476         (distclean): Change .gdbinit for gdb-gdb.gdb.
8477         * auto-load.c: New file, with parts from python/py-auto-load.c.
8478         * auto-load.h: New file, with parts from python/python.h.
8479         * configure: Regenerate.
8480         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8481         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8482         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8483         * main.c: Include auto-load.h.
8484         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8485         command.h, observer.h and progspace.h to auto-load.c.  Add include
8486         auto-load.h.
8487         (gdbpy_global_auto_load, struct auto_load_pspace_info)
8488         (struct loaded_script, auto_load_pspace_data)
8489         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8490         (hash_loaded_script_entry, eq_loaded_script_entry)
8491         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8492         (maybe_add_script): Move to auto-load.c.
8493         (source_section_scripts): Change maybe_add_script parameters passing,
8494         use script_not_found_warning_print.
8495         (clear_section_scripts, auto_load_objfile_script)
8496         (auto_load_new_objfile, loaded_script_ptr)
8497         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8498         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8499         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8500         auto_load_new_objfile and info_auto_load_scripts initizations to
8501         auto-load.c.
8502         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8503
8504 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8505
8506         Code cleanup.
8507         * charset.c (find_charset_names): Remove variables ix and elt.
8508         Use free_char_ptr_vec.
8509         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8510         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8511         debugdir_end.  New variable debugdir_len.
8512         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8513         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8514         declarations.
8515         * progspace.c (clear_program_space_solib_cache): Remove variables ix
8516         and elt.  Use free_char_ptr_vec.
8517         * source.c (add_path): Remove variables argv, arg and argv_index.
8518         New variables dir_vec, back_to, ix and name.
8519         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
8520         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
8521         no longer expecting DIRNAME_SEPARATOR.
8522         (openp): Remove variable p, p1 and len.  New variables dir_vec,
8523         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
8524         no longer expecting DIRNAME_SEPARATOR.
8525         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8526         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
8527         debugdir_end.
8528         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8529         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8530         (dirnames_to_char_ptr_vec): New functions.
8531
8532 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8533
8534         Code cleanup.
8535         * source.c (add_path): Remove always true conditional 'p == 0' and
8536         unindent its code block.
8537
8538 2012-04-17  Pedro Alves  <palves@redhat.com>
8539
8540         * gdbtypes.h (FIELD_BITPOS): Rename to ...
8541         (FIELD_BITPOS_LVAL): ... this.
8542         (FIELD_BITPOS): New.
8543         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8544         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8545         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8546         SET_FIELD_BITPOS.
8547         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8548         SET_FIELD_BITPOS.
8549         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8550         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8551         * target-descriptions.c (tdesc_gdb_type): Adjust to use
8552         SET_FIELD_BITPOS.
8553
8554 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8555
8556         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8557         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8558         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8559         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8560         * jv-lang.c (java_link_class_type): Likewise, once.
8561         * stabsread.c (read_enum_type): Likewise.
8562
8563 2012-04-16  Yao Qi  <yao@codesourcery.com>
8564
8565         * common/agent.c (agent_run_command): Add one more parameter `len'.
8566         Update callers.
8567         * common/agent.h: Update declaration.
8568         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8569         Update.
8570         (linux_child_static_tracepoint_markers_by_strid): Ditto.
8571
8572 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
8573
8574         PR mi/13393
8575         * value.c (value_actual_type): New function.
8576         * value.h (value_actual_type): New declaration.
8577         * varobj.c (update_type_if_necessary): New function.
8578         (varobj_create): Call value_actual_type instead of
8579         value_type.
8580         (install_dynamic_child): distinct changed and type changed MI variable
8581         objects.
8582         (update_dynamic_varobj_children): Updated for install_dynamic_child
8583         change.  All callers updated.
8584         (varobj_update): Support for MI variable object type change if
8585         the value changed and RTTI is used to determine the type.
8586         (create_child_with_value): Call value_actual_type instead of
8587         value_type.
8588         (adjust_value_for_child_access): Extended with a new parameter which
8589         specify whether the given value should be casted to enclosing type.
8590         All callers updated.
8591
8592 2012-04-14  Yao Qi  <yao@codesourcery.com>
8593
8594         Import gnulib module inttypes from git
8595         (250b80067c1e1d8faa0c42fb572f721975b929c5)
8596         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8597         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8598         gnulib/m4/inttypes-pri.m4
8599         * aclocal.m4, config.in, configure: Regenerated.
8600         * gnulib/Makefile.am: Update.
8601         * gnulib/Makefile.in: Update.
8602         * gnulib/m4/gnulib-cache.m4: Update.
8603         * gnulib/m4/gnulib-comp.m4: Update.
8604         * gnulib/inttypes.in.h: New.
8605         * gnulib/m4/inttypes-pri.m4: New.
8606         * gnulib/m4/inttypes.m4: New.
8607
8608 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
8609
8610         * infrun.c (resume): Update PC address to the real PC after
8611         preparing to do displaced stepping.
8612
8613 2012-04-12  Doug Evans  <dje@google.com>
8614
8615         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8616         All callers updated.
8617
8618 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
8619
8620         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8621
8622 2012-04-12  Doug Evans  <dje@google.com>
8623
8624         * dwarf2read.c (create_all_type_units): Renamed from
8625         create_debug_types_hash_table.  All callers updated.
8626
8627         * dwarf2read.c (create_signatured_type_table_from_index): Rename
8628         local type_sig to sig_type, type_offset to type_offset_in_tu.
8629         (hash_signatured_type): Renamed from hash_type_signature,
8630         all callers updated.
8631         (eq_signatured_type): Renamed from eq_type_signature,
8632         all callers updated.
8633         (create_debug_types_hash_table): Rename local type_sig to sig_type.
8634         (process_enumeration_scope): Ditto.
8635         (lookup_signatured_type_at_offset): Ditto.
8636         (load_full_type_unit, read_signatured_type): Ditto.
8637
8638 2012-04-12  Yao Qi  <yao@codesourcery.com>
8639
8640         * remote.c (async_remote_interrupt): Correct function name in
8641         debug message.
8642         (async_remote_interrupt_twice): Ditto.
8643
8644 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
8645
8646         * source.c (find_and_open_source): Consistently pass resulting
8647         full path through xfullpath.
8648
8649 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8650
8651         Provide more specific displaced-stepping memory error message.
8652         * infrun.c (displaced_step_prepare): New variable status.  Call
8653         target_read_memory instead of read_memory, provide more specific
8654         error message.
8655
8656 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8657
8658         PR gdb/13901
8659         * darwin-nat.c (darwin_execvp): Revert previous patch.
8660
8661 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8662
8663         PR gdb/13901
8664         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8665         in case of change.
8666
8667 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8668
8669         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8670         warning.
8671
8672 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
8673
8674         New command 'explore' which helps explore values and types in
8675         scope.
8676         * NEWS: Add an entry about the new 'explore' command.
8677         * data-directory/Makefile.in: Add gdb/command/explore.py
8678         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8679         command using the GDB Python API.
8680
8681 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8682
8683         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8684         extension in jump target calculation.
8685
8686 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8687
8688         * mips-tdep.c (mips32_next_pc): Handle JALX.
8689
8690 2012-04-10  Yao Qi  <yao@codesourcery.com>
8691
8692         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8693
8694 2012-04-10  Yao Qi  <yao@codesourcery.com>
8695
8696         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8697         and gnulib/m4/gnulib-tool.m4.
8698
8699 2012-04-10  Doug Evans  <dje@google.com>
8700
8701         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8702         (load_partial_dies): Clarify comment.
8703         (find_partial_die): Support rereading type units.
8704         Clarify CU handling, if we know offset is in CU, don't search for the
8705         containing CU.  Add comment regarding memory waste.
8706
8707 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8708
8709         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8710         i386/x32-avx and i386/x32-avx-linux.
8711         (i386/x32-expedite): New.
8712         (i386/x32-linux-expedite): Likewise.
8713         (i386/x32-avx-expedite): Likewise.
8714         (i386/x32-avx-linux-expedite): Likewise.
8715         ($(outdir)/i386/x32.dat): Likewise.
8716         ($(outdir)/i386/x32-linux.dat): Likewise.
8717         ($(outdir)/i386/x32-avx.dat): Likewise.
8718         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8719
8720         * features/i386/x32-avx-linux.xml: New file.
8721         * features/i386/x32-avx.xml: Likewise.
8722         * features/i386/x32-core.xml: Likewise.
8723         * features/i386/x32-linux.xml: Likewise.
8724         * features/i386/x32.xml: Likewise.
8725
8726         * features/i386/x32-avx-linux.c: New.  Generated.
8727         * features/i386/x32-avx.c: Likewise.
8728         * features/i386/x32-linux.c: Likewise.
8729         * features/i386/x32.c: Likewise.
8730         * regformats/i386/x32-avx-linux.dat: Likewise.
8731         * regformats/i386/x32-avx.dat: Likewise.
8732         * regformats/i386/x32-linux.dat: Likewise.
8733         * regformats/i386/x32.dat: Likewise.
8734
8735 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8736
8737         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8738         code to kill the inferior.
8739
8740 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8741
8742         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8743         defines.
8744         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8745         defines.
8746         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8747         (yyvsp): New defines.
8748         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8749         defines.
8750         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8751         defines.
8752         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8753         defines.
8754         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8755         defines.
8756         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8757         defines.
8758
8759 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8760
8761         * sparc64-tdep.c (sparc64_store_arguments)
8762         (sparc64_store_arguments): Fix coding style.
8763
8764 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8765
8766         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8767         complex floats, adjust some related comments and tighten a related
8768         assertion.
8769         (sparc64_extract_return_value): Handle complex floats.
8770
8771 2012-04-07  Doug Evans  <dje@google.com>
8772
8773         * dwarf2read.c (load_partial_dies): Change condition to assert.
8774
8775 2012-04-06  Doug Evans  <dje@google.com>
8776
8777         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8778         "mov %rsp,%rbp".
8779
8780 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8781
8782         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8783         fencepost error.
8784         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8785         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8786         architecture.
8787
8788 2012-04-05  Keith Seitz  <keiths@redhat.com>
8789
8790         * linespec.c (decode_compound): Remove.
8791         (enum offset_relative_sign): New enum.
8792         (struct line_offset): New struct.
8793         (struct linespec): New struct.
8794         (struct linespec_state): Move file_symtabs,
8795         user_filename, and user_function into struct linespec.
8796         Make result an anonymous struct holding vectors of
8797         symbolp and minsym_and_objfile_d.
8798         Add language member.
8799         (enum ls_token_type): New enum.
8800         (linespec_keywords): New array.
8801         (struct ls_token): New struct.
8802         (struct ls_parser): New struct.
8803         (linespec_lexer_lex_number): New function.
8804         (linespec_lexer_lex_keyword): New function.
8805         (is_ada_operator): New function.
8806         (skip_quote_char): New function.
8807         (copy_token_string): New function.
8808         (is_closing_quote_enclosed): New function.
8809         (find_parameter_list_end): New function.
8810         (linespec_lexer_lex_string): New function.
8811         (linespec_lexer_lex_one): New function.
8812         (linespec_lexer_consume_token): New function.
8813         (linespec_lexer_peek_token): New function.
8814         (cplusplus_error): Remove unused function.
8815         (find_methods): Update comment.
8816         (find_toplevel_char): Return const.
8817         (is_objc_method_format): Remove unused function.
8818         (find_toplevel_string): New function.
8819         (is_linespec_boundary): Remove.
8820         (symbol_not_found_error): New function.
8821         (find_method_overload_end): Remove function.
8822         (unexpected_linespec_error): New function.
8823         (keep_name_info): Remove.
8824         (linespec_parse_line_offset): New function.
8825         (linespec_parse_basic): New function.
8826         (canonicalize_linespec): New function.
8827         (decode_line_internal): Remove.
8828         (create_sals_line_offset): New function adapted from
8829         decode_all_digits.
8830         (convert_linespec_to_sals): New function.
8831         (parse_linespec): New function.
8832         (linespec_parser_new): New function.
8833         (linespec_state_destructor): Change parameter type to
8834         struct linespec_state *.
8835         Add language parameter.
8836         Remove freeing of moved members.
8837         (linespec_parser_delete): New function.
8838         (decode_line_full): Use parse_linespec and linespec_parser_new.
8839         (decode_line_1): Likewise.
8840         (decode_indirect): Rename to ...
8841         (linespec_expression_to_pc): ... this and rewrite
8842         to simply find CORE_ADDR, storing this result for later
8843         conversion to SALs.
8844         (locate_first_half): Remove.
8845         (deocde_objc): Add parameter LS.
8846         Initialize new struct collect_info members.
8847         Handle minimal symbols, too.
8848         (decode_compound): Delete.
8849         (lookup_prefix_sym): Rewrite.
8850         (compare_msymbols): New function.
8851         (find_method): Rewrite.
8852         Do not call cplusplus_error.
8853         (symtabs_from_filename): Rewrite.
8854         (collect_function_symbols): Delete.
8855         (find_function_symbols): Rewrite without ARGPTR-style
8856         processing.
8857         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8858         (decode_dollar): Adapted and renamed to ...
8859         (linespec_parse_variable): ... this.
8860         (find_linespec_symbols): New function.
8861         (decode_label): Adapted and renamed to ...
8862         (find_label_symbols): ... this.
8863         (decode_digits_list_mode): Add and use LS argument.
8864         (decode_digits_ordinary): Likewise.
8865         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8866         If in list mode, allow any symbol class.  Otherwise, only
8867         permit LOC_BLOCK symbols.
8868         (minsym_found): Update comments.
8869         (search_minsyms_for_name): Do not convert the matching symbol
8870         into a SAL.  Simply push the symbol and objfile into the
8871         result vector.
8872         (decode_variable): Delete. Contents adapted into
8873         find_linespec_symbols.
8874
8875         * cp-support.c (SKIP_SPACE): Remove.
8876         (operator_tokens): Remove unused global.
8877         (cp_validate_operator): Remove.
8878         * cp-support.h (cp_validate_operator): Remove declaration.
8879
8880 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8881
8882         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8883         for TYPE_VPTR_FIELDNO.
8884         * valprint.c (valprint_check_validity): Make it global, move the
8885         function comment ...
8886         * value.h (valprint_check_validity): ... to this new declaration.
8887
8888 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8889
8890         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8891         the STATE32 api for i386 state.
8892         (i386_darwin_store_inferior_registers): Likewise.
8893
8894 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8895
8896         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8897         SS offset.
8898         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8899         format_string.
8900
8901 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8902
8903         PR gdb/13901
8904         * darwin-nat.c (darwin_execvp): Set binary preference.
8905
8906 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8907
8908         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8909
8910 2012-03-30  Tom Tromey  <tromey@redhat.com>
8911
8912         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8913         of TRY_CATCH.  Fix error handling.
8914         * python/py-value.c (convert_value_from_python): Move 'old'
8915         declaration to innermost scope.
8916
8917 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8918             Andrey Smirnov  <andrew.smirnov@gmail.com>
8919
8920         -Wshadow warning fix.
8921         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8922         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8923         Adjust code accordingly.
8924
8925 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8926
8927         * ada-lang.c (symbol_completion_add): Rename parameter
8928         "encoded" into "encoded_p".  Ajust code and documentation
8929         accordingly.
8930
8931 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8932             Andrey Smirnov  <andrew.smirnov@gmail.com>
8933
8934         -Wshadow warning fix.
8935         * ada-lang.c (symbol_completion_add): Rename parameter
8936         "wild_match" into wild_match_p.  Update code and documentation
8937         accordingly.
8938
8939 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8940
8941         * ada-lang.c (symbol_completion_match): Rename parameter
8942         "encoded" into "encoded_p".  Ajust code and documentation
8943         accordingly.
8944
8945 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8946             Andrey Smirnov  <andrew.smirnov@gmail.com>
8947
8948         -Wshadow warning fix.
8949         * ada-lang.c (symbol_completion_match): Rename parameter
8950         "wild_match" into "wild_match_p".  Adjust code and function
8951         documentation accordingly.
8952
8953 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8954             Andrey Smirnov  <andrew.smirnov@gmail.com>
8955
8956         -Wshadow warning fix.
8957         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8958         "symbol_info" into "info".  Adjust code accordingly.
8959         (ada_lookup_symbol): Likewise.
8960
8961 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8962
8963         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8964         of this function's documentation.
8965
8966 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8967             Andrey Smirnov  <andrew.smirnov@gmail.com>
8968
8969         -Wshadow warning fix.
8970         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8971         variable into "wild_match_p".  Adjust code accordingly.
8972
8973 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8974             Andrey Smirnov  <andrew.smirnov@gmail.com>
8975
8976         -Wshadow warning fix.
8977         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8978         parameter into "wild_match_p".  Adjust code accordingly.
8979         Document this parameter in the function description.
8980
8981 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8982             Andrey Smirnov  <andrew.smirnov@gmail.com>
8983
8984         -Wshadow warning fix.
8985         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8986         "wild_match" parameter to "wild_match_p" (-Wshadow).
8987
8988 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8989
8990         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8991         in function documentation.
8992
8993 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8994             Andrey Smirnov  <andrew.smirnov@gmail.com>
8995
8996         -Wshadow warning fix.
8997         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8998         variable into wild_match_p.  Adjust code accordingly.
8999
9000 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9001             Andrey Smirnov  <andrew.smirnov@gmail.com>
9002
9003         * ada-valprint.c (ada_val_print_1): Move the code handling
9004         TYPE_CODE_ENUM inside its own lexical block.  Declare
9005         variables len and val there, instead of in the function's
9006         top level block.  Avoid declaring deref_val again in a way
9007         that shadows another variable of the same name declared
9008         in one of the up-level blocks.  Just re-use the up-level
9009         variable instead.
9010
9011 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9012
9013         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9014         Replace block_found argument by symbol_info.  Adjust
9015         implementation accordingly.  Add function documentation.
9016         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9017         Fix documentation.
9018         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9019         * ada-exp.y (write_object_renaming): Adjust to new
9020         ada_lookup_encoded_symbol API.
9021
9022 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
9023
9024         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
9025         documentation.
9026
9027 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
9028
9029         * v850-tdep.c: Add the enum values for mpu and fpu registers.
9030         (v850_register_name): Add the mpu and fpu register names.
9031         (v850e_register_name): Add the mpu and fpu register names.
9032         (v850e2_register_name): New function.
9033         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9034         bfd_mach_v850e2v3.
9035
9036 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9037
9038         * NEWS: Add entry for Ada varobj support.
9039
9040 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9041
9042         * varobj.c (default_value_is_changeable_p): New function,
9043         extracted from varobj_value_is_changeable_p.  Add declaration.
9044         (ada_value_is_changeable_p): New function, extracted from
9045         varobj_value_is_changeable_p.  Add declaration.
9046         (struct language_specific): New field "value_is_changeable_p".
9047         (languages): Add entries for new field.
9048         (varobj_create): Set language before calling install_new_value.
9049         (varobj_value_is_changeable_p): Reimplement to call the varobj's
9050         "value_is_changeable_p" language callback.
9051
9052 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9053
9054         * ada-varobj.h, ada-varobj.c: New files.
9055         * Makefile.in (SFILES): Add ada-varobj.c.
9056         (HFILES_NO_SRCDIR): Add ada-varobj.h.
9057         (COMMON_OBS): Add ada-varobj.o.
9058
9059 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9060
9061         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
9062         (struct language_specific): New field "value_has_mutated".
9063         (languages): Set field "value_has_mutated" in each entry of array.
9064         (varobj_value_has_mutated): New function.
9065         (varobj_udpdate): Add handling of type mutation.
9066         (value_of_root): Add handling of type mutation.
9067         (ada_value_has_mutated): New function.
9068
9069 2012-03-28  Pedro Alves  <palves@redhat.com>
9070
9071         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9072         Always supply $fr0 as 0.0 and $fr1 as 1.0.
9073
9074 2012-03-28  Tom Tromey  <tromey@redhat.com>
9075
9076         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9077         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
9078         before returning.
9079
9080 2012-03-28  Tom Tromey  <tromey@redhat.com>
9081
9082         * .dir-locals.el: New file.
9083
9084 2012-03-28  Pedro Alves  <palves@redhat.com>
9085
9086         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9087
9088 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
9089
9090         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9091         handling for r0.
9092
9093 2012-03-27  Pedro Alves  <palves@redhat.com>
9094
9095         Eliminate struct ui_stream.
9096
9097         * ui-out.h (struct ui_stream): Delete.
9098         (ui_out_field_stream): Adjust prototype.
9099         (ui_out_stream_new, ui_out_stream_delete)
9100         (make_cleanup_ui_out_stream_delete): Delete declarations.
9101         * ui-out.c (ui_out_field_stream): Change prototype to take a
9102         ui_file instead of a ui_stream.  Adjust.
9103         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9104         (make_cleanup_ui_out_stream_delete): Delete.
9105         * breakpoint.c (print_breakpoint_location)
9106         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9107         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9108         * disasm.c (dump_insns): Ditto.
9109         (do_mixed_source_and_assembly, do_assembly_only): Adjust
9110         prototype.
9111         (gdb_disassembly): Use ui_file/mem_fileopen instead of
9112         ui_stream/ui_out_stream_new.
9113         * infcmd.c (print_return_value): Ditto.
9114         * osdata.c (info_osdata_command): Don't allocate a local
9115         ui_stream.
9116         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9117         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9118         * tracepoint.c (print_one_static_tracepoint_marker): Don't
9119         allocate a local ui_stream.
9120         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9121         instead of ui_stream/ui_out_stream_new.
9122         (list_args_or_locals): Don't allocate a local ui_stream.
9123         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9124         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9125         ui_stream/ui_out_stream_new.
9126         * cli/cli-setshow.c (do_setshow_command): Ditto.
9127
9128 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
9129
9130         * arm-linux-tdep.c (arm_linux_init_abi): Call
9131         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
9132         * arm-tdep.c (arm_process_record): New function.
9133         (deallocate_reg_mem): New function.
9134         (decode_insn): New function.
9135         (thumb_record_branch): New function.
9136         (thumb_record_ldm_stm_swi(): New function.
9137         (thumb_record_misc): New function.
9138         (thumb_record_ld_st_stack): New function.
9139         (thumb_record_ld_st_imm_offset): New function.
9140         (thumb_record_ld_st_reg_offset(): New function.
9141         (thumb_record_add_sub_cmp_mov): New function.
9142         (thumb_record_shift_add_sub): New function.
9143         (arm_record_coproc_data_proc): New function.
9144         (arm_record_coproc): New function.
9145         (arm_record_b_bl): New function.
9146         (arm_record_ld_st_multiple): New function.
9147         (arm_record_ld_st_reg_offset): New function.
9148         (arm_record_ld_st_imm_offset): New function.
9149         (arm_record_data_proc_imm): New function.
9150         (arm_record_data_proc_misc_ld_str): New function.
9151         (arm_record_extension_space): New function.
9152         (arm_record_strx): New function.
9153         (sbo_sbz): New function.
9154         (struct insn_decode_record): New structure for arm insn record.
9155         (REG_ALLOC): New macro for reg allocations.
9156         (MEM_ALLOC): New macro for memory allocations.
9157         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9158
9159 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
9160
9161         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9162         (store_register): Likewise.
9163
9164 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
9165
9166         * MAINTAINERS (Write After Approval): Add myself to the list.
9167
9168 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9169
9170         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9171         Describe also the option "auto".
9172
9173 2012-03-22  Richard Henderson  <rth@redhat.com>
9174
9175         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9176         * sparc-nat.c (sparc_xfer_wcookie): Make static.
9177
9178 2012-03-22  Richard Henderson  <rth@redhat.com>
9179
9180         * jit.c (jit_read_code_entry): Compute alignment and offset of
9181         int64_t member before computing entry_size.
9182
9183 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9184
9185         Python scripting: Add new method Value.referenced_value to
9186         gdb.Value which can dereference pointer as well as reference
9187         values.
9188         * NEWS: Add entry under 'Python scripting' about the new method
9189         Value.referenced_value on gdb.Value objects.
9190         * python/py-value.c (valpy_referenced_value): New function
9191         defining a new method on gdb.Value objects which can dereference
9192         pointer and reference values.
9193
9194 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
9195
9196         * MAINTAINERS (Write After Approval): Add myself to the list.
9197
9198 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
9199
9200         * symtab.c (skip_prologue_sal): Change test to check for "main()"
9201         in addition to "main".
9202
9203 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
9204
9205         * expression.h (op_name): Add declaration.
9206         * expprint.c (op_name): Remove declaration.  Make non-static.
9207         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9208
9209 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9210
9211         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9212         of struct siginfo.
9213         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9214         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9215         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9216         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9217         (linux_nat_get_siginfo): Likewise.
9218         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9219         (linux_nat_get_siginfo): Likewise.
9220         * linux-tdep.c (linux_get_siginfo_type): Likewise.
9221         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9222         * procfs.c (gdb_siginfo_t): Likewise.
9223
9224 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
9225
9226         * .gitignore: Ignore more files.
9227
9228 2012-03-20  Pedro Alves  <palves@redhat.com>
9229
9230         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9231         returns.
9232
9233 2012-03-20  Yao Qi  <yao@codesourcery.com>
9234
9235         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9236         comment.
9237
9238 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9239
9240         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9241         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9242         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9243         sect_offset.
9244         * dwarf2expr.h (cu_offset, sect_offset): New types.
9245         (struct dwarf_expr_context_funcs) <dwarf_call>
9246         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9247         sect_offset.
9248         (struct dwarf_expr_context) <len>: Improve the comment.
9249         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9250         cu_offset and sect_offset.
9251         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9252         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9253         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9254         * dwarf2loc.h: Include dwarf2expr.h.
9255         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9256         and sect_offset.
9257         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9258         Improve the comment.
9259         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9260         (struct signatured_type, struct line_header, struct partial_die_info)
9261         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9262         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9263         (get_die_type_at_offset, create_cus_from_index)
9264         (create_signatured_type_table_from_index, dw2_get_file_names)
9265         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9266         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9267         (create_debug_types_hash_table, process_psymtab_comp_unit)
9268         (load_partial_comp_unit, create_all_comp_units)
9269         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9270         (load_full_comp_unit, dwarf2_physname, read_import_statement)
9271         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9272         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9273         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9274         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9275         (find_partial_die, read_attribute_value, lookup_die_type)
9276         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9277         (is_ref_attr): New function comment.
9278         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9279         Use cu_offset and sect_offset.
9280         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9281         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9282         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9283         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9284         (offset_and_type_hash, offset_and_type_eq, set_die_type)
9285         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9286         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9287         sect_offset.
9288
9289 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9290
9291         Code cleanup.
9292         * python/py-auto-load.c (source_section_scripts): New variable back_to.
9293         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9294         with xfree.
9295         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9296
9297 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9298
9299         * NEWS: Describe new options --init-command=FILE, -ix and
9300         --init-eval-command=COMMAND, -iex.
9301         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9302         CMDARG_INIT_COMMAND.
9303         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
9304         "init-command", "init-eval-command", "ix" and "iex" to the variable
9305         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
9306         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9307         (print_gdb_help): Describe --init-command=FILE, -ix and
9308         --init-eval-command=COMMAND, -iex.
9309
9310 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
9311
9312         Code cleanup.
9313         * main.c (struct cmdarg): Move it here from main.  Add more comments.
9314         (cmdarg_s, VEC (cmdarg_s)): New.
9315         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
9316         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
9317         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
9318         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
9319         of CMDARG.
9320
9321 2012-03-19  Tom Tromey  <tromey@redhat.com>
9322
9323         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9324
9325 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9326
9327         PR symtab/13777
9328         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9329         GCC >=4.5.
9330
9331 2012-03-16  Chris January  <chris.january@allinea.com>
9332
9333         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9334         of clear.
9335
9336 2012-03-16  Chris January  <chris.january@allinea.com>
9337
9338         * source.c (add_path): Use memmove instead of strcpy because the
9339         strings overlap.
9340
9341 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
9342
9343         * value.h (set_value_parent): Add declaration.
9344         * value.c (set_value_parent): New function.
9345         (value_address): If VALUE->PARENT is not NULL, then use it as
9346         the base address instead of VALUE->LOCATION.address.
9347         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9348         the same as OBJ's address.  Adjust V's offset accordingly.
9349         Set V's parent.
9350
9351 2012-03-16  Gary Benson  <gbenson@redhat.com>
9352
9353         PR breakpoints/10738
9354         * dwarf2read.c (use_deprecated_index_sections): New global.
9355         (struct partial_die_info): New member may_be_inlined.
9356         (read_partial_die): Set may_be_inlined where appropriate.
9357         (add_partial_subprogram): Add partial symbols for partial
9358         DIEs that may be inlined.
9359         (new_symbol_full): Add inlined subroutines to the current
9360         scope.
9361         (write_psymtabs_to_index): Bump version number.
9362         (dwarf2_read_index): Read only version 6 indices unless
9363         use_deprecated_index_sections is set.
9364         * linespec.c (symbol_and_data_callback): New structure.
9365         (iterate_inline_only): New function.
9366         (iterate_over_all_matching_symtabs): New argument
9367         "include_inline".  If nonzero, also call the callback for
9368         symbols representing inlined subroutines.
9369         (lookup_prefix_sym): Pass extra argument to the above.
9370         (find_function_symbols): Likewise.
9371         (add_matching_symbols_to_info): Likewise.
9372         * NEWS: Mention that GDB can now set breakpoints on inlined
9373         functions.
9374
9375 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9376
9377         * p-typeprint.c (pascal_type_print_method_args):
9378         Fix display of parameter of methods.
9379
9380 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
9381
9382         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9383         Add missing prototype.
9384
9385 2012-03-16  Yao Qi  <yao@codesourcery.com>
9386             Jan Kratochvil  <jan.kratochvil@redhat.com>
9387
9388         Fix false compilation warning.
9389         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9390
9391 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
9392             Pedro Alves  <pedro@codesourcery.com>
9393
9394         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9395         (arm_register_g_packet_guesses): New function.
9396         (arm_gdbarch_init): Don't force a target description with
9397         registers when the executable is detected as M-profile.  Instead
9398         set gdbarch->tdep->is_m.  Register `g' packet guesses.
9399         (_initialize_arm_tdep): Initialize the new target description.
9400         * features/arm-with-m-fpa-layout.xml: New description.
9401         * features/arm-with-m-fpa-layout.c: New, generated.
9402
9403 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
9404
9405         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9406         Update function description.
9407         (insert_bp_location): Do not wipe bl->target_info out.
9408         * mem-break.c: #include "gdb_string.h".
9409         (default_memory_insert_breakpoint): Do not call target_read_memory
9410         with a pointer to the breakpoint's shadow_contents buffer.  Use
9411         a local buffer instead.
9412         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9413
9414 2012-03-15  Tom Tromey  <tromey@redhat.com>
9415
9416         * NEWS: Mention "info vtbl", not "info vtable".
9417         * cp-support.c (info_vtbl_command): Fix comment.
9418         (_initialize_cp_support): Fix text.
9419
9420 2012-03-15  Tom Tromey  <tromey@redhat.com>
9421
9422         * cp-valprint.c (cp_print_value_fields): Use
9423         print_function_pointer_address for vtable slot.
9424
9425 2012-03-15  Tom Tromey  <tromey@redhat.com>
9426
9427         * gnu-v3-abi.c (struct value_and_voffset): New.
9428         (hash_value_and_voffset, eq_value_and_voffset)
9429         (compare_value_and_voffset, compute_vtable_size)
9430         (print_one_vtable, gnuv3_print_vtable): New functions.
9431         (init_gnuv3_ops): Initialize 'print_vtable' field.
9432         * cp-support.c (info_vtbl_command): New function.
9433         (_initialize_cp_support): Add "info vtbl".
9434         * cp-abi.h (cplus_print_vtable): Declare.
9435         (struct cp_abi_ops) <print_vtable>: New field.
9436         * cp-abi.c (cplus_print_vtable): New function.
9437         * NEWS: Update.
9438
9439 2012-03-15  Tom Tromey  <tromey@redhat.com>
9440
9441         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9442         iterate_over_symbols.
9443
9444 2012-03-14  Doug Evans  <dje@google.com>
9445
9446         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9447         DW_OP_GNU_parameter_ref.
9448
9449 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9450
9451         Fix double prompt of 'interpreter-exec mi'.
9452         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9453         (mi_interpreter_resume): use it.
9454         (mi_execute_command_input_handler): New function.
9455         * mi/mi-main.c (mi_execute_command): Move prompt printing to
9456         mi_execute_command_input_handler.
9457
9458 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
9459
9460         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9461         prototype.
9462         (darwin_debug_port_info): Make static.
9463         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9464         * machoread.c (_initialize_machoread): Add prototype.
9465         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9466         (i386_darwin_set_control, i386_darwin_get_control)
9467         i386_darwin_dr_set_addr, i386_darwin_get_addr)
9468         i386_darwin_get_status, i386_darwin_get_control):
9469         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9470
9471 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9472
9473         * ax-gdb.c (gen_usual_unary): Remove special handling of
9474         enum and bool types.
9475
9476 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9477
9478         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9479
9480 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
9481
9482         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9483
9484 2012-03-13  Chris January  <chris.january@allinea.com>
9485
9486         * aix-thread.c (fill_sprs): Store the floating point registers
9487         at the correct offsets into vals.
9488
9489 2012-03-13  Doug Evans  <dje@google.com>
9490
9491         * NEWS: Mention symbol-reloading has been deleted.
9492         * symfile.c (symbol_reloading): Delete.
9493         (show_symbol_reloading): Delete.
9494         (_initialize_symfile): Delete set/show symbol-reloading.
9495
9496         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9497         read_in_chain until we have successfully read it in.
9498         (load_full_comp_unit): Ditto.
9499         (read_signatured_type): Add comment.
9500
9501 2012-03-13  Chris January  <chris.january@allinea.com>
9502
9503         * stabsread.c (fix_common_block): Change type of valu argument
9504         to CORE_ADDR.
9505
9506 2012-03-13  Chris January  <chris.january@allinea.com>
9507
9508         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9509         instruction.
9510
9511 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9512
9513         * common/linux-procfs.c (linux_proc_get_int): New, from
9514         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9515         field.
9516         (linux_proc_get_tgid): Only call linux_proc_get_int.
9517         (linux_proc_get_tracerpid): New.
9518         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9519         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9520         linux_proc_pid_has_state.
9521         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9522         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9523         (linux_ptrace_attach_warnings): New.
9524         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9525         New declaration.
9526         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9527         (linux_nat_attach): New variables ex, buffer, message and message_s.
9528         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9529
9530 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9531
9532         * Makefile.in (linux-ptrace.o): New.
9533         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9534         from linux-nat.c.
9535         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9536         * common/linux-ptrace.c: New file.
9537         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9538         * config/arm/linux.mh: Likewise.
9539         * config/i386/linux.mh: Likewise.
9540         * config/i386/linux64.mh: Likewise.
9541         * config/ia64/linux.mh: Likewise.
9542         * config/m32r/linux.mh: Likewise.
9543         * config/m68k/linux.mh: Likewise.
9544         * config/mips/linux.mh: Likewise.
9545         * config/pa/linux.mh: Likewise.
9546         * config/powerpc/linux.mh: Likewise.
9547         * config/powerpc/ppc64-linux.mh: Likewise.
9548         * config/powerpc/spu-linux.mh: Likewise.
9549         * config/s390/s390.mh: Likewise.
9550         * config/sparc/linux.mh: Likewise.
9551         * config/sparc/linux64.mh: Likewise.
9552         * config/xtensa/linux.mh: Likewise.
9553         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9554         common/linux-procfs.c.
9555         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9556
9557 2012-03-13  Hui Zhu  <teawater@gmail.com>
9558             Pedro Alves  <palves@redhat.com>
9559
9560         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
9561         CREATE_BREAKPOINT_FLAGS_INSERTED.
9562         (create_breakpoint_sal, create_breakpoints_sal)
9563         (base_breakpoint_create_breakpoints_sal)
9564         (tracepoint_create_breakpoints_sal)
9565         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
9566         down.
9567         (break_command_1, handle_gnu_v3_exceptions, trace_command)
9568         (ftrace_command, strace_command): Adjust.
9569         (create_tracepoint_from_upload): Pass
9570         CREATE_BREAKPOINT_FLAGS_INSERTED.
9571         * breakpoint.h (enum breakpoint_create_flags): New.
9572         (create_breakpoint): New flags parameter.
9573         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9574         * python/py-breakpoint.c (bppy_init): Adjust.
9575         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9576         * spu-tdep.c (spu_catch_start): Adjust.
9577
9578 2012-03-13  Pedro Alves  <palves@redhat.com>
9579             Hui Zhu  <teawater@gmail.com>
9580             Yao Qi  <yao@codesourcery.com>
9581
9582         * remote.c (struct remote_state): New field `starting_up'.
9583         (remote_start_remote): Set and clear it.
9584         (remote_can_download_tracepoint): If starting up, return false.
9585
9586 2012-03-13  Yao Qi  <yao@codesourcery.com>
9587
9588         * inferior.h (struct inferior): Remove fields any_syscall_count,
9589         syscalls_counts and total_syscalls_count.  Move them to new
9590         struct catch_syscall_inferior_data in breakpoint.c.
9591         * breakpoint.c: Call DEF_VEC_I(int).
9592         (struct catch_syscall_inferior_data): New.
9593         (get_catch_syscall_inferior_data): New.
9594         (catch_syscall_inferior_data_cleanup): New.
9595         (insert_catch_syscall): Update to access data in
9596         struct catch_syscall_inferior_data.
9597         (insert_catch_syscall): Likewise.
9598         (remove_catch_syscall): Likewise.
9599         (remove_catch_syscall): Likewise.
9600         (is_syscall_catchpoint_enabled): Likewise.
9601         (add_catch_command): Likewise.
9602         (_initialize_breakpoint): Register cleanup.
9603         * breakpoint.h: Removed DEF_VEC_I(int).
9604         * dwarf2loc.c: Call DEF_VEC_I(int).
9605         * mi/mi-main.c: Likewise.
9606
9607 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
9608
9609         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9610
9611 2012-03-12  Chris January  <chris.january@allinea.com>
9612
9613         * aix-thread.c (_initialize_aix_thread): Add prototype.
9614         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9615         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9616
9617 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
9618
9619         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9620         include of "amd64-nat.h".
9621
9622 2012-03-12  Tom Tromey  <tromey@redhat.com>
9623
9624         * buildsym.c (record_pending_block): Now static.
9625         * buildsym.h: (record_pending_block): Remove.
9626
9627 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
9628
9629         * amd64bsd-nat.c: Include amd64bsd-nat.h.
9630
9631 2012-03-09  Tom Tromey  <tromey@redhat.com>
9632
9633         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9634         producer_is_gxx_lt_4_6>: New fields.
9635         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9636
9637 2012-03-09  Tom Tromey  <tromey@redhat.com>
9638
9639         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9640
9641 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9642
9643         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9644         prototype.
9645
9646 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9647
9648         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9649
9650 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9651
9652         Fix -Wmissing-prototypes build.
9653         * arm-linux-nat.c (get_thread_id): Make it static.
9654         * xtensa-linux-nat.c (get_thread_id): Likewise.
9655
9656 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9657
9658         * server.c (process_point_options): If a conditional expression
9659         is found, only print a message if remote_debug is nonzero.
9660
9661 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
9662
9663         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9664         of internal error for unknown/unsupported types.
9665
9666 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9667
9668         Fix CU relative vs. absolute DIE offsets.
9669         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9670         offset to offset_in_cu.
9671         * dwarf2read.c (process_enumeration_scope): Add CU offset to
9672         TYPE_OFFSET.
9673         (dwarf2_fetch_die_location_block): Rename parameter offset to
9674         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
9675
9676 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9677
9678         * libunwind-frame.c: Rename to ...
9679         * ia64-libunwind-tdep.c: ... here.
9680         * libunwind-frame.h: Rename to ...
9681         * ia64-libunwind-tdep.h: ... here.
9682         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9683         ia64-libunwind-tdep.h.
9684         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9685         * README (--with-libunwind): Rename to ...
9686         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9687         * config.in: Regenerate.
9688         * configure: Regenerate.
9689         * configure.ac: New option --with-libunwind-ia64, make the
9690         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
9691         Remove AC_DEFINE for HAVE_LIBUNWIND.
9692         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9693         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9694         Rename libunwind-frame in the general comment.
9695         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9696         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9697         Move forward declarations inside #ifndef.  Rename libunwind-frame in
9698         the general comment.
9699         * ia64-tdep.c: Rename libunwind-frame.h #include to
9700         ia64-libunwind-tdep.h.
9701         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9702         (ia64_libunwind_descr): Rename libunwind-frame to
9703         ia64-libunwind-tdep in these function comments.
9704         * ia64-tdep.h: Rename libunwind-frame.h #include to
9705         ia64-libunwind-tdep.h.
9706         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9707         ia64-libunwind-tdep in that data comment.
9708
9709 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9710
9711         * libunwind-frame.h (struct frame_unwind): New declaration.
9712
9713 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9714
9715         * breakpoint.c (_initialize_breakpoint): Fix error in help of
9716         "set breakpoint condition-evaluation" command.
9717
9718 2012-03-08  Tristan Gingold  <gingold@adacore.com>
9719
9720         * sparc-stub.c: Move to stubs/
9721         * sh-stub.c: Likewise.
9722         * m68k-stub.c: Likewise.
9723         * m32r-stub.c: Likewise.
9724         * i386-stub.c: Likewise.
9725
9726 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
9727
9728         * m68klinux-tdep.c (m68k_linux_init_abi): Register
9729         linux_get_siginfo_type.
9730
9731         * m68klinux-nat.c: Include "gdb_proc_service.h".
9732         (PTRACE_GET_THREAD_AREA): Define.
9733         (ps_get_thread_area): New function.
9734
9735 2012-03-08  Yao Qi  <yao@codesourcery.com>
9736
9737         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9738         `xsnprintf'.
9739         (remote_query_attached): Likewise.
9740         (remote_static_tracepoint_marker_at): Likewise.
9741         (remote_set_permissions): Likewise.
9742         (remote_detach_1, extended_remote_attach_1): Likewise.
9743         (send_g_packet, remote_vkill): Likewise.
9744         (extended_remote_disable_randomization): Likewise.
9745         (remote_add_target_side_condition): Likewise.
9746         (remote_insert_breakpoint): Likewise.
9747         (remote_remove_breakpoint): Likewise.
9748         (remote_insert_watchpoint): Likewise.
9749         (remote_remove_watchpoint): Likewise.
9750         (remote_insert_hw_breakpoint): Likewise.
9751         (remote_insert_hw_breakpoint): Likewise.
9752         (remote_remove_hw_breakpoint): Likewise.
9753         (remote_download_command_source): Likewise.
9754         (remote_download_tracepoint): Likewise.
9755         (remote_download_trace_state_variable): Likewise.
9756         (remote_disable_tracepoint): Likewise.
9757         (remote_trace_set_readonly_regions): Likewise.
9758         (remote_get_tracepoint_status): Likewise.
9759         (remote_trace_find): Likewise.
9760         (remote_get_trace_state_variable_value): Likewise.
9761         (remote_set_disconnected_tracing): Likewise.
9762         (remote_set_circular_trace_buffer): Likewise.
9763         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9764         (remote_use_agent): Likewise.
9765         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9766         Update callers.
9767
9768 2012-03-07  Pedro Alves  <palves@redhat.com>
9769
9770         * NEWS: Mention QProgramSignals.
9771         * inferior.h (update_signals_program_target): Declare.
9772         * infrun.c: (update_signals_program_target): New.
9773         (handle_command): Update the target of the new program signals
9774         array changes.
9775         * remote.c (PACKET_QProgramSignals): New enum.
9776         (last_program_signals_packet): New global.
9777         (remote_program_signals): New.
9778         (remote_start_remote): Update the target with the program signals
9779         list.
9780         (remote_protocol_features): Add entry for QPassSignals.
9781         (remote_open_1): Free anc clear last_program_signals_packet.
9782         (init_remote_ops): Install remote_program_signals.
9783         * target.c (update_current_target): Adjust.
9784         (target_program_signals): New.
9785         * target.h (struct target_ops) <to_program_signals>: New field.
9786         (target_program_signals): Declare.
9787
9788 2012-03-07  Pedro Alves  <palves@redhat.com>
9789
9790         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9791         extensions.
9792
9793 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9794
9795         * m68klinux-nat.c (getregs_supplies): Make static.
9796         (getfpregs_supplies): Likewise.
9797         (have_ptrace_getregs): Likewise.
9798
9799 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9800
9801         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9802         in call to get_die_type_at_offset.
9803
9804 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9805
9806         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9807         * mi/mi-cmd-disas.c: Ditto.
9808         * mi/mi-cmd-env.c: Ditto.
9809         * mi/mi-cmd-file.c: Ditto.
9810         * mi/mi-cmd-stack.c: Ditto.
9811         * mi/mi-cmd-target.c: Ditto.
9812         * mi/mi-cmd-var.c: Ditto.
9813         * mi/mi-cmds.c: Ditto.
9814         * mi/mi-cmds.h: Ditto.
9815         * mi/mi-console.c: Ditto.
9816         * mi/mi-getopt.c: Ditto.
9817         * mi/mi-getopt.h: Ditto.
9818         * mi/mi-interp.c: Ditto.
9819         * mi/mi-main.c: Ditto.
9820         * mi/mi-out.c: Ditto.
9821         * mi/mi-parse.c: Ditto.
9822         * mi/mi-parse.h: Ditto.
9823         * mi/mi-symbol-cmds.c: Ditto.
9824
9825         * mi/mi-getopt.h: Move mi_opt struct up.
9826         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9827         return.
9828         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9829
9830 2012-03-06  Tom Tromey  <tromey@redhat.com>
9831
9832         * proc-service.c (ps_pglobal_lookup): Set the current program
9833         space.
9834
9835 2012-03-06  Pedro Alves  <palves@redhat.com>
9836
9837         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9838
9839 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9840
9841         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9842
9843 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9844
9845         Code cleanup.
9846         * common/linux-osdata.c (linux_common_core_of_thread): New function
9847         comment.
9848         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9849         call by linux_common_core_of_thread.
9850         (linux_nat_core_of_thread_1): Remove.
9851         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9852         * linux-thread-db.c: Include linux-osdata.h.
9853         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9854         linux_common_core_of_thread.
9855
9856 2012-03-05  Tom Tromey  <tromey@redhat.com>
9857
9858         * value.c (value_primitive_field): Don't fetch contents for
9859         non-virtual bases.
9860
9861 2012-03-05  Tom Tromey  <tromey@redhat.com>
9862
9863         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9864
9865 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9866
9867         * s390-nat.c: Include "gregset.h".
9868
9869 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9870
9871         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9872         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9873         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9874         load also LIBUNWIND_SO_7.
9875
9876 2012-03-05  Pedro Alves  <palves@redhat.com>
9877
9878         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9879         is not NULL, and remove resulting dead code.
9880
9881 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9882
9883         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9884         prologue to sh_analyze_prologue.
9885         (sh_analyze_prologue): Make better use of such an upper limit, and
9886         generally be more cautious about accessing memory.
9887
9888 2012-03-05  Tom Tromey  <tromey@redhat.com>
9889
9890         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9891         _initialize_ia64_hpux_tdep.
9892
9893 2012-03-05  Pedro Alves  <palves@redhat.com>
9894
9895         PR gdb/13766
9896
9897         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9898         the register state is clear, supply explicit zero, instead of
9899         marking the register unavailable.
9900
9901 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9902
9903         * NEWS: Mention OpenVMS ia64 new target.
9904
9905 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9906
9907         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9908         (ia64_unw_accessors, ia64_unw_rse_accessors)
9909         (ia64_libunwind_descr): Declare.
9910         * ia64-vms-tdep.c: New file.
9911         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9912         (ia64_libunwind_descr): Make them public.
9913         * configure.tgt: Add ia64-*-*vms*.
9914         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9915         (ALLDEPFILES): Add ia64-vms-tdep.c
9916
9917 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9918
9919         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9920         * remote.c (PACKET_qXfer_uib): New enum value.
9921         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9922         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9923         (_initialize_remote): Call add_packet_config_cmd for
9924         xfer:uib packet.
9925
9926 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9927
9928         * osabi.c (gdb_osabi_names): Add OpenVMS.
9929         (generic_elf_osabi_sniffer): Likewise.
9930         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9931
9932 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9933
9934         Removed unused code.
9935         * libunwind-frame.c (libunwind_frame_unwind)
9936         (libunwind_frame_base_address): Remove.
9937         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9938
9939 2012-03-04  Yao Qi  <yao@codesourcery.com>
9940
9941         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9942         remove trailing new line.
9943         (agent_run_command, agent_run_command): Add _ markup.
9944         (agent_capability_check): Likewise.
9945
9946 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9947
9948         * breakpoint.c (set_condition_evaluation_mode): Set
9949         CONDITION_EVALUATION_MODE unconditionally.
9950
9951 2012-03-03  Yao Qi  <yao@codesourcery.com>
9952
9953         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9954         * common/agent.h: Update declaration.
9955         * inf-child.c (inf_child_use_agent): New.
9956         (inf_child_can_use_agent): New.
9957         (inf_child_target): Initialize fields `to_use_agent'
9958         and `to_can_use_agent'.
9959         * agent.c (agent_new_objfile): New.
9960         (_initialize_agent): Add agent_new_objfile to new_objfile
9961         observer.
9962
9963         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9964         New.
9965         (linux_target_install_ops): Initialize field
9966         `to_static_tracepoint_markers_by_strid'.
9967         * remote.c (free_current_marker): Move it to ...
9968         * tracepoint.c (free_current_marker): ... here.  New.
9969         (cleanup_target_stop): New.
9970         * tracepoint.h: Declare free_current_marker.
9971         * NEWS: Add one entry about `info static-tracepoint-marker'.
9972
9973 2012-03-03  Yao Qi  <yao@codesourcery.com>
9974
9975         * common/agent.c (agent_loaded_p): New.
9976         (agent_look_up_symbols): New global.
9977         * common/agent.h: Declare agent_loaded_p.
9978
9979 2012-03-03  Yao Qi  <yao@codesourcery.com>
9980
9981         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9982         (agent_capability_check, agent_capability_invalidate): New.
9983         (symbol_list): New array element.
9984         * common/agent.h (enum agent_capa): New.
9985         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9986
9987 2012-03-03  Yao Qi  <yao@codesourcery.com>
9988
9989         * target.h (struct target_ops) <to_use_agent>: New field.
9990         (struct target_ops) <to_can_use_agent>: New field.
9991         (target_use_agent, target_can_use_agent): New macro.
9992         * target.c (update_current_target): Update.
9993         * remote.c: New enum `PACKET_QAgent'.
9994         (remote_protocol_features): Add a new element.
9995         (remote_use_agent, remote_can_use_agent): New.
9996         (init_remote_ops): Initialize field `can_use_agent' with
9997         remote_can_use_agent.  Intiailize field `use_agent' with
9998         remote_use_agent.
9999         * common/agent.c (use_agent): New global.
10000         * common/agent.h: Declare it.
10001         * tracepoint.c (info_static_tracepoint_markers_command): Add
10002         comment.
10003         * Makefile.in (SFILES): Add common/agent.c and agent.c.
10004         (COMMON_OBS): Add common/agent.o and agent.o
10005         (common-agent.o): New rule.
10006         * agent.c: New.
10007
10008 2012-03-03  Yao Qi  <yao@codesourcery.com>
10009
10010         * common/agent.c: New.
10011         * common/agent.h: New.
10012         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10013         AC_CHECK_HEADERS.
10014         * configure, configh.in: Regenerated.
10015
10016 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
10017
10018         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10019         unless it exists for this architecture.
10020
10021 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10022
10023         * language.h (struct language_defn): New "method" la_read_var_value.
10024         * findvar.c: #include "language.h".
10025         (default_read_var_value): Renames read_var_value.  Rewrite
10026         function description.
10027         (read_var_value): New function.
10028         * value.h (default_read_var_value): Add prototype.
10029         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10030         New functions.
10031         (ada_language_defn): Add entry for la_read_var_value.
10032         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10033         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10034         language_defn structures to add entry for new la_read_var_value
10035         field.
10036
10037 2012-03-02  Tom Tromey  <tromey@redhat.com>
10038             Pedro Alves  <palves@redhat.com>
10039
10040         PR breakpoints/13776:
10041         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10042         breakpoints.
10043         (delete_longjmp_breakpoint_at_next_stop): New.
10044         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10045         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10046         before deleting the inferior.  Add comments.
10047         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10048         breakpoints immediately, but only on next stop.  Move that code
10049         next to where we mark other breakpoints for deletion.
10050
10051 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
10052
10053         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10054         marker.
10055         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10056         violation.
10057
10058 2012-03-02  Pedro Alves  <palves@redhat.com>
10059
10060         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10061
10062 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
10063
10064         Fix -Wmissing-prototypes build.
10065         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10066         * remote-sim.c (gdbsim_has_all_memory): Likewise.
10067         (gdbsim_has_memory): Likewise.
10068
10069 2012-03-02  Yao Qi  <yao@codesourcery.com>
10070
10071         Fix -Wmissing-prototypes build.
10072         * charset.c (phony_iconv_open): Make static.
10073         (phony_iconv_close, phony_iconv): Likewise.
10074         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10075         * i386-windows-nat.c (_initialize_i386_windows_nat): New
10076         prototype.
10077         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10078         * ser-mingw.c (create_select_thread): Make static.
10079         * windows-termcap.c (tgetent): New prototype.
10080         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10081
10082 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
10083
10084         Fix -Wmissing-prototypes build.
10085         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10086         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10087         (_initialize_loadable): New prototypes.
10088
10089 2012-03-02  Doug Evans  <dje@google.com>
10090
10091         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10092         abbrev table, read_comp_unit will do it.
10093
10094 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10095
10096         Fix -Wmissing-prototypes build.
10097         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10098         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10099         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10100         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10101         (_initialize_arm_symbian_tdep): New prototype.
10102         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10103         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10104         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10105         static.
10106         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10107         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10108         prototype.
10109         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10110         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10111         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10112         static.
10113         * moxie-tdep.c (moxie_process_record): Likewise.
10114         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10115         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10116         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10117         (_initialize_rl78_tdep): New prototype.
10118         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10119         (_initialize_rx_tdep): New prototype.
10120         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10121         (_initialize_darwin_solib): New prototype.
10122         * solib-spu.c: Include solib-spu.h.
10123         (_initialize_spu_solib): New prototype.
10124         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10125         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10126         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10127         (tic6x_software_single_step): Make it static.
10128         (_initialize_tic6x_tdep): New prototype.
10129
10130 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10131
10132         Fix -Wmissing-prototypes build.
10133         * cris-tdep.c (cris_can_use_hardware_watchpoint)
10134         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10135
10136 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10137
10138         Fix -Wmissing-prototypes build.
10139         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10140         (frv_have_stopped_data_address): Remove.
10141
10142 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
10143
10144         Fix -Wmissing-prototypes build.
10145         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10146         * sh-tdep.c: Include sh64-tdep.h.
10147         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10148         * sh64-tdep.c: Include sh64-tdep.h.
10149         * sh64-tdep.h: New file.
10150
10151 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
10152
10153         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10154
10155 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10156
10157         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10158         sp_regnum once the gdbarch_init_osabi hook has been called.
10159
10160 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
10161
10162         * mips-tdep.c (mips32_bc1_pc): New function.
10163         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10164         BPOSGE32 and BPOSGE64 instructions.
10165         (deal_with_atomic_sequence): Likewise.
10166         (mips32_instruction_has_delay_slot): Likewise.
10167
10168 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
10169             Chris Dearman  <chris@mips.com>
10170             Maciej W. Rozycki  <macro@codesourcery.com>
10171             Joseph Myers  <joseph@codesourcery.com>
10172
10173         * features/mips-dsp.xml: New file.
10174         * features/mips64-dsp.xml: New file.
10175         * features/mips-dsp-linux.xml: New file.
10176         * features/mips64-dsp-linux.xml: New file.
10177         * features/Makefile (WHICH): Add mips-dsp-linux and
10178         mips64-dsp-linux.
10179         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10180         * features/mips-dsp-linux.c: New file.
10181         * features/mips64-dsp-linux.c: New file.
10182         * regformats/mips-dsp-linux.dat: New file.
10183         * regformats/mips64-dsp-linux.dat: New file.
10184         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10185         registers.
10186         (mips64_linux_register_addr): Likewise.
10187         (mips64_linux_regsets_fetch_registers): Likewise.
10188         (mips64_linux_regsets_store_registers): Likewise.
10189         (mips64_linux_fetch_registers): Update call to
10190         mips64_linux_regsets_fetch_registers.
10191         (mips64_linux_store_registers): Update call to
10192         mips64_linux_regsets_store_registers.
10193         (mips_linux_read_description): Probe for DSP registers.
10194         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10195         and initialize_tdesc_mips64_dsp_linux.
10196         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10197         Remove padding of no longer used embedded register slots.
10198         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10199         (MIPS_RESTART_REGNUM): Redefine enum value.
10200         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10201         strings.
10202         (mips_tx39_reg_names): Likewise.
10203         (mips_linux_reg_names): New array of register names for Linux
10204         targets.
10205         (mips_register_name): Check for a null pointer in
10206         mips_processor_reg_names and return an empty string.
10207         (mips_register_type): Exclude embedded registers for the IRIX
10208         and Linux ABIs.
10209         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
10210         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
10211         DSP registers.
10212         (mips_stab_reg_to_regnum): Handle DSP accumulators.
10213         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10214         (mips_gdbarch_init): Likewise.  Initialize internal register
10215         indices for the Linux ABI.  Use dynamic numbers to refer to
10216         registers, as applicable, while parsing the target description.
10217         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10218
10219 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10220
10221         * frame.h (read_frame_register_unsigned): Fix typo in function
10222         description.
10223
10224 2012-03-01  Pedro Alves  <palves@redhat.com>
10225
10226         * jit-reader.in [!__cplusplus]
10227         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10228
10229 2012-03-01  Pedro Alves  <palves@redhat.com>
10230
10231         * configure.ac (build_warnings): Add -Wmissing-prototypes.
10232         * configure: Regenerate.
10233
10234 2012-03-01  Pedro Alves  <palves@redhat.com>
10235
10236         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10237         * breakpoint.c (create_exception_master_breakpoint, trace_command)
10238         (ftrace_command, strace_command): Make static.
10239         * d-lang.c (_initialize_d_language): Declare.
10240         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10241         * dwarf2loc.c (_initialize_dwarf2loc):
10242         * dwarf2read.c (process_psymtab_comp_unit): Make static.
10243         * exec.c (exec_get_section_table): Make static.
10244         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10245         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10246         * inferior.c (remove_inferior_command, add_inferior_command)
10247         (clone_inferior_command): Make static.
10248         * linux-nat.c (linux_nat_thread_address_space)
10249         (linux_nat_core_of_thread): Make static.
10250         * linux-tdep.c (_initialize_linux_tdep): Declare.
10251         * objc-lang.c (_initialize_objc_lang): Declare.
10252         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10253         Make static.
10254         (_initialize_opencl_language): Declare.
10255         * record.c (_initialize_record): Declare.
10256         * remote.c (demand_private_info, remote_get_tib_address)
10257         (remote_supports_cond_tracepoints)
10258         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10259         Make static.
10260         * skip.c (_initialize_step_skip): Declare.
10261         * symtab.c (skip_prologue_using_lineinfo): Make static.
10262         * tracepoint.c (delete_trace_state_variable)
10263         (trace_variable_command, delete_trace_variable_command)
10264         (get_uploaded_tsv, find_matching_tracepoint_location)
10265         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10266         Make static.
10267         * value.c (pack_unsigned_long): Make static.
10268         * varobj.c (varobj_ensure_python_env): Make static.
10269         * windows-tdep.c (_initialize_windows_tdep): Declare.
10270         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10271
10272 2012-03-01  Pedro Alves  <palves@redhat.com>
10273
10274         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
10275         gdbarch parameter.
10276         (linux_init_abi): Install it as has_shared_address_space gdbarch
10277         callback.
10278
10279 2012-03-01  Pedro Alves  <palves@redhat.com>
10280
10281         * observer.c (observer_test_first_notification_function)
10282         (observer_test_second_notification_function)
10283         (observer_test_third_notification_function): Add declarations.
10284
10285 2012-03-01  Pedro Alves  <palves@redhat.com>
10286
10287         * common/signals.c (default_target_signal_to_host)
10288         (default_target_signal_from_host): Move ...
10289         * arch-utils.c: ... here.
10290         * arch-utils.h (default_target_signal_to_host)
10291         (default_target_signal_from_host): Declare.
10292
10293         * common/signals.c (target_signal_from_command): Move ...
10294         * infrun.c: ... here.
10295         * inferior.h (target_signal_from_command): Declare.
10296         * target.h (target_signal_from_command)
10297         (default_target_signal_from_host, default_target_signal_to_host):
10298         Delete declarations.
10299
10300         * common/signals.c (_initialize_signals): Delete.
10301
10302 2012-03-01  Pedro Alves  <palves@redhat.com>
10303
10304         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10305         both __cplusplus and !__cplusplus.
10306
10307 2012-03-01  Pedro Alves  <palves@redhat.com>
10308
10309         * psymtab.c (find_and_open_source): Delete declaration.
10310         * source.c (find_and_open_source): Move comment ...
10311         * source.h (find_and_open_source): ... to this new declaration.
10312
10313 2012-03-01  Pedro Alves  <palves@redhat.com>
10314
10315         * inline-frame.c: Include inline-frame.h.
10316
10317 2012-03-01  Pedro Alves  <palves@redhat.com>
10318
10319         * tui/tui-data.c (set_gen_win_origin): Delete.
10320         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10321         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10322
10323 2012-03-01  Pedro Alves  <palves@redhat.com>
10324
10325         * remote.c (encode_actions): Delete declaration.
10326         * tracepoint.c (encode_actions): Make extern.
10327         * tracepoint.h (encode_actions): Declare.
10328
10329 2012-03-01  Pedro Alves  <palves@redhat.com>
10330
10331         * python/py-breakpoint.c: Include python.h.
10332         * python/py-continueevent.c (create_continue_event_object): Make
10333         static.
10334         * python/py-lazy-string.c (stpy_get_type): Make static.
10335         * python/py-newobjfileevent.c (create_new_objfile_event_object):
10336         Make static.
10337         * python/py-utils.c (unicode_to_target_python_string): Make
10338         static.
10339         * python/py-value.c: Include python.h.
10340
10341 2012-03-01  Pedro Alves  <palves@redhat.com>
10342
10343         * inferior.c (delete_threads_of_inferior): Delete.
10344
10345 2012-03-01  Pedro Alves  <palves@redhat.com>
10346
10347         Import fallback definitions from glibc.
10348
10349         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10350         ps_prochandle): Forward declare.
10351         (ps_err_e): Use glibc's comments.
10352         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10353         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10354         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10355         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10356         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10357         (struct ps_prochandle): Adjust comment.
10358
10359 2012-03-01  Pedro Alves  <palves@redhat.com>
10360
10361         * ada-lang.c (ada_modulus_from_name): Delete.
10362         * ada-lex.l (lexer_init): Make static.
10363
10364 2012-03-01  Pedro Alves  <palves@redhat.com>
10365
10366         PR gdb/13767
10367
10368         * frame.c (read_frame_register_unsigned): New.
10369         * frame.h (read_frame_register_unsigned): Declare.
10370         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10371         Handle it.
10372         (print_i387_control_word): New parameter `control_p'.  Handle it.
10373         (i387_print_float_info): Handle unavailable float registers.
10374
10375 2012-03-01  Keith Seitz  <keiths@redhat.com>
10376
10377         * linespec.c (decode_line_2): Sort the list of methods
10378         alphabetically before presenting the user with a selection
10379         menu.
10380
10381 2012-03-01  Doug Evans  <dje@google.com>
10382
10383         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10384         has_namespace_info.
10385         (dwarf2_read_abbrevs): Remove corresponding initialization.
10386
10387 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
10388
10389         * NEWS: Mention new python command class gdb.COMMAND_USER.
10390         * cli/cli-cmds.c (show_user): Print error when used on a python
10391         command.
10392         (init_cli_cmds): Update documentation strings for "show user" and
10393         "set/show max-user-call-depth" to clarify that it does not apply to
10394         python commands.
10395         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10396         error check.
10397         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10398         gdb python api.
10399         * top.c (execute_command): Only execute a user-defined command as a
10400         legacy macro if c->user_commands is set.
10401
10402 2012-03-01  Tom Tromey  <tromey@redhat.com>
10403
10404         * valprint.h (struct generic_val_print_decorations): New.
10405         (generic_val_print): Declare.
10406         * valprint.c (generic_val_print): New function.
10407         * p-valprint.c (p_decorations): New global.
10408         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10409         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10410         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10411         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10412         * m2-valprint.c (m2_decorations): New global.
10413         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10414         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10415         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10416         TYPE_CODE_ERROR>: Call generic_val_print.
10417         * f-valprint.c (f_decorations): New global.
10418         (f_val_print): Use print_function_pointer_address.
10419         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10420         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10421         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10422         generic_val_print.
10423         * c-valprint.c (c_decorations): New global.
10424         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10425         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10426         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10427         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10428         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10429         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10430         case.
10431
10432 2012-03-01  Tom Tromey  <tromey@redhat.com>
10433
10434         * valprint.c (val_print): Update.
10435         * p-valprint (pascal_val_print): Return void.
10436         * p-lang.h (pascal_val_print): Return void.
10437         * m2-valprint.c (m2_val_print): Return void.
10438         * m2-lang.h (m2_val_print): Return void.
10439         * language.h (struct language_defn) <la_val_print>: Return void.
10440         * language.c (unk_lang_val_print): Return void.
10441         * jv-valprint.c (java_val_print): Return void.
10442         * jv-lang.h (java_val_print): Return void.
10443         * f-valprint.c (f_val_print): Return void.
10444         * f-lang.h (f_val_print): Return void.
10445         * d-valprint.c (d_val_print): Return void.
10446         (dynamic_array_type): Update.
10447         * d-lang.h (d_val_print): Return void.
10448         * c-valprint.c (c_val_print): Return void.
10449         * c-lang.h (c_val_print): Return void.
10450         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10451         void.
10452         * ada-lang.h (ada_val_print): Return void.
10453
10454 2012-03-01  Tom Tromey  <tromey@redhat.com>
10455
10456         * value.h (val_print): Return void.
10457         * valprint.c (val_print): Return void.
10458
10459 2012-03-01  Tom Tromey  <tromey@redhat.com>
10460
10461         * value.h (common_val_print): Return void.
10462         * valprint.c (common_val_print): Return void.
10463
10464 2012-03-01  Tom Tromey  <tromey@redhat.com>
10465
10466         * value.h (value_print): Return void.
10467         * valprint.c (value_print): Return void.
10468         * p-valprint.c (pascal_value_print): Return void.
10469         * p-lang.h (pascal_value_print): Return void.
10470         * language.h (struct language_defn) <la_value_print>: Return
10471         void.
10472         * language.c (unk_lang_value_print): Return void.
10473         * jv-valprint.c (java_value_print): Return void.
10474         * jv-lang.h (java_value_print): Return void.
10475         * f-valprint.c (c_value_print): Don't declare.
10476         Include c-lang.h.
10477         * c-valprint.c (c_value_print): Return void.
10478         * c-lang.h (c_value_print): Return void.
10479         * ada-valprint.c (ada_value_print): Return void.
10480         * ada-lang.h (ada_value_print): Return void.
10481
10482 2012-03-01  Tom Tromey  <tromey@redhat.com>
10483
10484         * value.c (value_primitive_field): Handle virtual base classes.
10485
10486 2012-03-01  Tom Tromey  <tromey@redhat.com>
10487
10488         * gdbtypes.h (struct vbase): Remove.
10489
10490 2012-03-01  Tom Tromey  <tromey@redhat.com>
10491
10492         * c-valprint.c (print_function_pointer_address): Move...
10493         * valprint.c: ... here.  Make non-static.
10494         * m2-valprint.c (print_function_pointer_address): Remove.
10495         * valprint.h (print_function_pointer_address): Declare.
10496
10497 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10498
10499         * NEWS: Document the fact that one can provide a condition when
10500         creating an Ada exception catchpoint.
10501
10502 2012-03-01  Tom Tromey  <tromey@redhat.com>
10503
10504         * valprint.c (val_print_type_code_flags): Fix placement of
10505         trailing brace.
10506
10507 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10508
10509         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10510         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10511         environment variable before calling update-copyright.
10512
10513 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
10514
10515         * gnulib/extra/update-copyright: Update to the latest from
10516         gnulib's git repository.
10517         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10518         variable to 2 instead of 1.
10519
10520 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10521
10522         * varobj.c (c_value_of_variable): Remove dead code.
10523
10524 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10525
10526         * ada-lex.p (processId): Do not modify already encoded IDs.
10527         Update function documentation.
10528
10529 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10530
10531         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10532         "name" with "struct symbol *name_sym".
10533         * ada-exp.y (write_var_or_type): Update call to
10534         ada_find_renaming_symbol.
10535         "name" with "struct symbol *name_sym". Adjust Implementation
10536         accordingly.  Adjust the function documentation.
10537
10538 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10539
10540         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10541         * ada-lang.c (ada_find_any_type): Add advance declaration.
10542         Make static.  Replace ada_find_any_symbol by
10543         ada_find_any_type_symbol.
10544         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10545         Improve function description.  Make static.
10546         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10547         Replace ada_find_any_symbol by ada_find_any_type_symbol.
10548
10549 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10550
10551         * ada-lang.c (struct tag_args): Delete.
10552         (ada_get_tsd_type): Function body moved up in source file.
10553         (ada_tag_name_1, ada_tag_name_2): Delete.
10554         (ada_get_tsd_from_tag): New function.
10555         (ada_tag_name_from_tsd): New function.
10556         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10557         to determine the tag name.
10558
10559 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10560
10561         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10562         declaration.
10563         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10564         function.
10565
10566 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10567
10568         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10569
10570 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10571
10572         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10573         full searches.
10574
10575 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10576
10577         * ada-lang.c (constrained_packed_array_type): If there is a
10578         parallel XA type, use it to determine the array index type.
10579
10580 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10581
10582         * ada-valprint.c (ada_val_print_1): If our value is a reference
10583         to an array descriptor, dereference it before converting it
10584         to a simple array.
10585
10586 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10587
10588         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10589         creating fixed value.
10590         (ada_value_ind, ada_coerce_ref, assign_component)
10591         (ada_evaluate_subexp): Remove call to unwrap_value before
10592         call to ada_to_fixed_value.
10593
10594 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10595
10596         * ada-lang.c (to_fixed_array_type): Set result's type name.
10597
10598 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
10599
10600         * ada-lang.c (catch_ada_exception_command_split): Add new
10601         argument cond_string.  Add support for condition at end of
10602         "catch exception" commands.
10603         (ada_decode_exception_location): Add new argument cond_string.
10604         Update call to catch_ada_exception_command_split.
10605         (create_ada_exception_catchpoint): Add new argument cond_string.
10606         Set the breakpoint condition if needed.
10607         (catch_ada_exception_command): Update call to
10608         ada_decode_exception_location.
10609         (ada_decode_assert_location): Add function documentation.
10610         Add support for condition at end of "catch assert" command.
10611         (catch_assert_command): Update calls to ada_decode_assert_location
10612         and create_ada_exception_catchpoint.
10613
10614 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10615
10616         Fix disp-step-syscall.exp: fork: single step over fork.
10617         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10618         (i386_linux_get_syscall_number_from_regcache): ... here, new function
10619         comment, change parameters gdbarch and ptid to regcache.  Remove
10620         parameter regcache, initialize gdbarch from regcache here.
10621         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10622         New functions.
10623         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10624         instead.
10625         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10626         'syscall'.  Make the 'int' check more strict.
10627
10628 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10629
10630         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10631         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10632         (i386_linux_intx80_sysenter_syscall_record): ... here.
10633         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10634         Use the renamed function name.
10635
10636 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
10637
10638         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10639         * breakpoint.c (until_break_command): Likewise.
10640         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10641         * infcall.c (call_function_by_hand): Likewise.
10642         * infcmd.c (finish_forward): Likewise.
10643         * infrun.c (insert_exception_resume_breakpoint): Likewise.
10644
10645 2012-02-28  Tristan Gingold  <gingold@adacore.com>
10646
10647         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10648         avoid variable assignments inside condition.
10649
10650 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10651
10652         Fix static analysis issue found by cppcheck.
10653         * microblaze-tdep.c (microblaze_extract_return_value): Fix
10654         uninitialized BUF for size 2.
10655
10656 2012-02-27  Chris Dearman  <chris@mips.com>
10657             Nathan Froyd  <froydnj@codesourcery.com>
10658             Maciej W. Rozycki  <macro@codesourcery.com>
10659
10660         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10661         (mips16_instruction_has_delay_slot): Likewise.
10662         (mips_segment_boundary): Likewise.
10663         (mips_adjust_breakpoint_address): Likewise.
10664         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10665
10666 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
10667             Maciej W. Rozycki  <macro@codesourcery.com>
10668
10669         * infrun.c (handle_inferior_event): Don't proceed through
10670         shared library trampolines if stepping at the machine
10671         instruction level.
10672
10673 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
10674
10675         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10676         too.
10677
10678 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
10679
10680         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10681         (sh_stub_unwind_sniffer): New functions.
10682         (sh_stub_unwind): New variable.
10683         (sh_gdbarch_init): Wire everything.
10684
10685 2012-02-27  Pedro Alves  <palves@redhat.com>
10686
10687         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10688         (linux_nat_post_attach_wait): Adjust to use
10689         linux_proc_pid_is_stopped.
10690         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10691         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10692         based on pid_is_stopped from both linux-nat.c and
10693         gdbserver/linux-low.c, and renamed.
10694
10695 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10696
10697         * remote.c (remote_watchpoint_addr_within_range): New function.
10698         (init_remote_ops): Use it.
10699
10700 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10701
10702         * target.h (target_watchpoint_addr_within_range): Document macro.
10703
10704 2012-02-24  Pedro Alves  <palves@redhat.com>
10705
10706         * stack.c (set_last_displayed_sal): Issue internal_error instead
10707         of warning, and issue it after clearing the last displayed sal.
10708
10709 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10710             Pedro Alves  <palves@redhat.com>
10711
10712         * breakpoint.c (until_break_command): Install breakpoints after
10713         all frame manipulations.
10714
10715 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10716
10717         * remote.c (remote_supports_cond_breakpoints): New forward
10718         declaration.
10719         (remote_add_target_side_condition): New function.
10720         (remote_insert_breakpoint): Add target-side breakpoint
10721         conditional if supported.
10722         (remote_insert_hw_breakpoint): Likewise.
10723         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10724         hook.
10725
10726         * target.c (update_current_target): Inherit
10727         to_supports_evaluation_of_breakpoint_conditions.
10728         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10729
10730         * target.h (struct target_ops)
10731         <to_supports_evaluation_of_breakpoint_conditions>: New field.
10732         (target_supports_evaluation_of_breakpoint_conditions): New #define.
10733
10734         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10735         (condition_evaluation_both, condition_evaluation_auto,
10736         condition_evaluation_host, condition_evaluation_target,
10737         condition_evaluation_enums, condition_evaluation_mode_1,
10738         condition_evaluation_mode): New static globals.
10739         (translate_condition_evaluation_mode): New function.
10740         (breakpoint_condition_evaluation_mode): New function.
10741         (gdb_evaluates_breakpoint_condition_p): New function.
10742         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10743         (mark_breakpoint_modified): New function.
10744         (mark_breakpoint_location_modified): New function.
10745         (set_condition_evaluation_mode): New function.
10746         (show_condition_evaluation_mode): New function.
10747         (bp_location_compare_addrs): New function.
10748         (get_first_location_gte_addr): New helper function.
10749         (set_breakpoint_condition): Free condition bytecode if locations
10750         has become unconditional.  Call mark_breakpoint_modified (...).
10751         (condition_command): Call update_global_location_list (1) for
10752         breakpoints.
10753         (breakpoint_xfer_memory): Use is_breakpoint (...).
10754         (is_breakpoint): New function.
10755         (parse_cond_to_aexpr): New function.
10756         (build_target_condition_list): New function.
10757         (insert_bp_location): Handle target-side conditional
10758         breakpoints and call build_target_condition_list (...).
10759         (update_inserted_breakpoint_locations): New function.
10760         (insert_breakpoint_locations): Handle target-side conditional
10761         breakpoints.
10762         (bpstat_check_breakpoint_conditions): Add comment.
10763         (bp_condition_evaluator): New function.
10764         (bp_location_condition_evaluator): New function.
10765         (print_breakpoint_location): Print information on where the condition
10766         will be evaluated.
10767         (print_one_breakpoint_location): Likewise.
10768         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10769         breakpoint location.
10770         (force_breakpoint_reinsertion): New functions.
10771         (update_global_location_list): Handle target-side breakpoint
10772         conditions.
10773         Reinsert locations that are already inserted if conditions have
10774         changed.
10775         (bp_location_dtor): Free agent expression bytecode.
10776         (disable_breakpoint): Call mark_breakpoint_modified (...).
10777         Call update_global_location_list (...) with parameter 1 for breakpoints.
10778         (disable_command): Call mark_breakpoint_location_modified (...).
10779         Call update_global_location_list (...) with parameter 1 for breakpoints.
10780         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10781         (enable_command): mark_breakpoint_location_modified (...).
10782         (_initialize_breakpoint): Update documentation and add
10783         condition-evaluation breakpoint subcommand.
10784
10785         * breakpoint.h: Include ax.h.
10786         (condition_list): New data structure.
10787         (condition_status): New enum.
10788         (bp_target_info) <cond_list>: New field.
10789         (bp_location) <condition_changed, cond_bytecode>: New fields.
10790         (is_breakpoint): New prototype.
10791
10792 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10793
10794         * remote.c (remote_state) <cond_breakpoints>: New field.
10795         (PACKET_ConditionalBreakpoints): New enum.
10796         (remote_cond_breakpoint_feature): New function.
10797         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10798         (remote_supports_cond_breakpoints): New function.
10799         (_initialize_remote): Add new packet configuration for
10800         target-side conditional breakpoints.
10801
10802 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10803
10804         * NEWS: Mention target-side conditional breakpoint support,
10805         new condition-evaluation breakpoint subcommand and remote
10806         packet extensions.
10807
10808 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10809
10810         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10811         number.
10812
10813 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10814
10815         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10816         (after_prologue): Remove.
10817
10818 2012-02-23  Tom Tromey  <tromey@redhat.com>
10819
10820         * jv-valprint.c (java_val_print): Remove dead code.
10821
10822 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10823
10824         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10825         known_tasks_element and known_tasks_length fields.
10826         (read_known_tasks_array): Change argument type.  Use pointer type
10827         and number of elements from DATA.  Adjust.
10828         (read_known_tasks_list): Likewise.
10829         (get_known_tasks_addr): Remove.
10830         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10831         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10832         type and array length.  Merge former get_known_tasks_addr code.
10833
10834 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10835
10836         PR backtrace/13716
10837         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10838         it after set_momentary_breakpoint.
10839
10840 2012-02-22  Sterling Augustine  <saugustine@google.com>
10841
10842         PR 13689:
10843         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10844
10845 2012-02-22  Gary Benson  <gbenson@redhat.com>
10846
10847         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10848         (find_slot_in_mapped_hash): Likewise.
10849
10850 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10851
10852         PR build/13638
10853         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10854         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10855         * configure: Regenerate.
10856
10857 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10858             Pedro Alves  <palves@redhat.com>
10859
10860         * ia64-tdep.c: Do not include libunwind-ia64.h.
10861         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10862         Include libunwind-ia64.h instead of libunwind.h.
10863         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10864         for libunwind.h existence.
10865         * configure, config.in: Regenerate.
10866
10867 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10868
10869         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10870         instead of value_rtti_target_type.
10871         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10872         instead of value_rtti_target_type.
10873         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10874         value_rtti_target_type.
10875         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10876         (value_rtti_target_type): Rename to ...
10877         (value_rtti_indirect_type): ... here and make it indirect.  Update
10878         function comment.
10879         * value.c (readjust_indirect_value_type): New function.
10880         (coerce_ref): Support for enclosing type setting for references
10881         with readjust_indirect_value_type.
10882         * value.h (readjust_value_type): New declaration.
10883         (value_rtti_target_type): Rename to ...
10884         (value_rtti_indirect_type): ... here.
10885
10886 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10887
10888         * MAINTAINERS (Write After Approval): Add myself to the list.
10889
10890 2012-02-20  Doug Evans  <dje@google.com>
10891
10892         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10893         Rename objfile_p_char parameter to objfilep.
10894         (build_objfile_section_table): Result is now void.  All callers
10895         updated.
10896         * objfiles.h (struct objfile): Tweak comments, whitespace.
10897         (build_objfile_section_table): Update.
10898
10899         * elfread.c (elf_symfile_segments): Fix warning text.
10900
10901 2012-02-20  Tom Tromey  <tromey@redhat.com>
10902
10903         PR gdb/13498:
10904         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10905         particular set of file names once.
10906         (dw2_map_symbol_filenames): Likewise.
10907
10908 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10909
10910         Code cleanup.
10911         * main.c (write_files): Remove the declaration.
10912         (external_editor_command): Move the declaration ...
10913         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10914
10915 2012-02-20  Tom Tromey  <tromey@redhat.com>
10916
10917         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10918         extraneous block.
10919
10920 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10921
10922         * darwin-nat.h (enum darwin_msg_state): Add comments.
10923
10924 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10925
10926         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10927         value.
10928
10929 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10930
10931         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10932         between function description and implementation.
10933
10934 2012-02-17  Tom Tromey  <tromey@redhat.com>
10935
10936         PR python/12070:
10937         * python/py-event.c (event_object_getset): New global.
10938         (event_object_type): Reference it.
10939         * python/py-type.c (field_object_getset): New global.
10940         (field_object_type): Reference it.
10941         * python/python-internal.h (gdb_py_generic_dict): Declare.
10942         * python/py-utils.c (gdb_py_generic_dict): New function.
10943
10944 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10945
10946         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10947
10948 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10949
10950         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10951         TYPE_CALLING_CONVENTION annotation.
10952
10953 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10954
10955         * MAINTAINERS: Add rx to target ISA section.
10956         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10957         (ALLDEPFILES): Add rx-tdep.c.
10958
10959 2012-02-16  Tom Tromey  <tromey@redhat.com>
10960
10961         * symfile.c (symbol_file_add_main_1): Use inferior's
10962         symfile_flags.
10963         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10964         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10965         inferior.
10966         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10967         inferior.
10968         (follow_exec): Use inferior's symfile_flags.
10969         * inferior.h (struct inferior) <symfile_flags>: New field.
10970
10971 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10972
10973         PR gdb/9734:
10974         * remote-sim.c (gdbsim_create_inferior): Call error() when
10975         sim_create_inferior() fails.
10976
10977 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10978
10979         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10980
10981 2012-02-16  Tom Tromey  <tromey@redhat.com>
10982
10983         PR c++/13653:
10984         * thread.c (struct current_thread_cleanup) <was_removable>: New
10985         field.
10986         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10987         (make_cleanup_restore_current_thread): Initialize new field.
10988
10989 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10990
10991         * MAINTAINERS: Add rl78 to target ISA section.
10992         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10993         (ALLDEPFILES): Add rl78-tdep.c.
10994         * NEWS: Mention rl78 as a new target.
10995
10996 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10997
10998         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10999         data.
11000         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11001
11002 2012-02-15  Tom Tromey  <tromey@redhat.com>
11003
11004         PR gdb/12659:
11005         * infcmd.c (registers_info): Print just the current register's
11006         name.
11007
11008 2012-02-15  Tom Tromey  <tromey@redhat.com>
11009
11010         * python/py-symbol.c (sympy_value): Use _().
11011
11012 2012-02-15  Pedro Alves  <palves@redhat.com>
11013
11014         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11015         output to be like native targets'.
11016         (remote_pid_to_str): Special case the null ptid.
11017
11018 2012-02-14  Stan Shebs  <stan@codesourcery.com>
11019
11020         * NEWS: Mention enable count command.
11021         * breakpoint.h (struct breakpoint): New field enable_count.
11022         * breakpoint.c (enable_breakpoint_disp): Add count argument.
11023         (enable_breakpoint): Add arg to call.
11024         (struct disp_data): New struct.
11025         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11026         (do_map_enable_once_breakpoint): Create a struct and pass it.
11027         (do_map_enable_delete_breakpoint): Ditto.
11028         (do_map_enable_count_breakpoint): New function.
11029         (enable_count_command): New function.
11030         (bpstat_stop_status): Decrement enable_count.
11031         (print_one_breakpoint_location): Report enable count.
11032         (_initialize_breakpoint): Add enable count command.
11033
11034 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11035
11036         * rl78-tdep.c (reggroups.h): Include.
11037         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11038         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11039         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11040         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11041         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11042         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11043         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11044         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11045         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11046         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11047         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11048         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11049         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11050         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11051         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11052         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11053         beginning of register list.
11054         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11055         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11056         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11057         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11058         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11059         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11060         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11061         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11062         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11063         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11064         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11065         the pseudo registers.  Rearrange other pseudo registers too so
11066         that the bank registers appear at the end.
11067         (rl78_register_type): Account for the fact that the byte sized
11068         bank registers are now pseudo-registers.
11069         (rl78_register_name): Rearrange the register name array.  Make
11070         initial set of raw banked registers inaccessible.
11071         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11072         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11073         case for copying bytes back and forth between raw and pseudo
11074         versions of the banked registers.  Update other cases to reflect
11075         the changed names.
11076         (rl78_return_value): Update to account for changed names of
11077         raw registers.
11078         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11079         rl78_register_sim_regno().
11080
11081 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
11082
11083         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11084         the name parameter being passed to find_pc_partial_function().
11085
11086 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
11087
11088         * MAINTAINERS: Step down from being ia64 target maintainer.
11089
11090 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11091
11092         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11093         compilation warning.
11094
11095 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11096
11097         Fix crash on loaded shlibs without loaded exec_bfd.
11098         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11099         (set_section_command): Replace exec_bfd by p->bfd.
11100
11101 2012-02-10  Tom Tromey  <tromey@redhat.com>
11102
11103         * linespec.c (decode_line_internal): Skip symtabs_from_filename
11104         when we have a C++ qualified name.
11105
11106 2012-02-10  Pedro Alves  <palves@redhat.com>
11107
11108         * inferior.c (inferior_pid_to_str): New.
11109         (print_inferior, inferior_command): Use it.
11110
11111 2012-02-10  Pedro Alves  <palves@redhat.com>
11112
11113         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11114         the test CFLAGS.
11115         * configure: Regenerate.
11116
11117 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11118
11119         * linespec.c (decode_line_internal): Fix comment correctness.
11120
11121 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
11122
11123         PR gdb/12953
11124         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11125         * amd64bsd-nat.c: Add support for debug registers (adapted from
11126         i386bsd-nat.c).
11127         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11128         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11129         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11130         (amd64bsd_dr_get_control): New functions.
11131         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11132         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11133         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11134         watchpoints initialization.
11135         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11136
11137 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11138
11139         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11140         flds_bnds.fields.
11141         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11142
11143 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11144
11145         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
11146
11147 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11148
11149         * language.h (symbol_name_cmp_ftype): Renames
11150         symbol_name_match_p_ftype.
11151         (struct language_defn)[la_get_symbol_name_cmp]: Renames
11152         la_get_symbol_name_match_p.
11153         * ada-lang.c (ada_get_symbol_name_cmp): Renames
11154         ada_get_symbol_name_match_p.  Update comment.
11155         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11156         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11157         Renames symbol_name_match_p.  Update field type.
11158         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11159         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11160         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11161         "la_get_symbol_name_cmp" in comments.
11162         * language.c: Likewise.
11163
11164 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11165
11166         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11167         %eflags offset.
11168         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11169         (amd64_sol2_gregset32_reg_offs): Likewise.
11170
11171 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
11172
11173         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11174         of the returned BFD is allocated by GDB.
11175
11176 2012-02-07  Tom Tromey  <tromey@redhat.com>
11177
11178         PR python/12027:
11179         * python/python-internal.h (frame_object_type): Declare.
11180         * python/py-symbol.c (sympy_needs_frame): New function.
11181         (sympy_value): New function.
11182         (symbol_object_getset): Add "needs_frame".
11183         (symbol_object_methods): Add "value".
11184         * python/py-frame.c (frame_object_type): No longer static.
11185
11186 2012-02-07  Tom Tromey  <tromey@redhat.com>
11187
11188         PR python/13599:
11189         * python/py-symbol.c (sympy_line): New function.
11190         (symbol_object_getset): Add "line".
11191
11192 2012-02-07  Tom Tromey  <tromey@redhat.com>
11193
11194         * charset.c (find_charset_names): Check 'in' against NULL.
11195
11196 2012-02-06  Doug Evans  <dje@google.com>
11197
11198         * gdbtypes.h (struct main_type): Change type of name,tag_name,
11199         and fields.name members from char * to const char *.  All uses updated.
11200         (struct cplus_struct_type): Change type of fn_fieldlists.name member
11201         from char * to const char *.  All uses updated.
11202         (type_name_no_tag): Update.
11203         (lookup_unsigned_typename, lookup_signed_typename): Update.
11204         * gdbtypes.c (type_name_no_tag): Change result type
11205         from char * to const char *.  All callers updated.
11206         (lookup_unsigned_typename, lookup_signed_typename): Change type of
11207         name parameter from char * to const char *.
11208         * symtab.h (struct cplus_specific): Change type of demangled_name
11209         member from char * to const char *.  All uses updated.
11210         (struct general_symbol_info): Change type of name and
11211         mangled_lang.demangled_name members from char * to const char *.
11212         All uses updated.
11213         (symbol_get_demangled_name, symbol_natural_name): Update.
11214         (symbol_demangled_name, symbol_search_name): Update.
11215         * symtab.c (symbol_get_demangled_name): Change result type
11216         from char * to const char *.  All callers updated.
11217         (symbol_natural_name, symbol_demangled_name): Ditto.
11218         (symbol_search_name): Ditto.
11219         (completion_list_add_name): Change type of symname,sym_text,
11220         text,word parameters from char * to const char *.
11221         (completion_list_objc_symbol): Change type of sym_text,
11222         text,word parameters from char * to const char *.
11223         * ada-lang.c (find_struct_field): Change type of name parameter
11224         from char * to const char *.
11225         (encoded_ordered_before): Similarly for N0,N1 parameters.
11226         (old_renaming_is_invisible): Similarly for function_name parameter.
11227         (ada_type_name): Change result type from char * to const char *.
11228         All callers updated.
11229         * ada-lang.h (ada_type_name): Update.
11230         * buildsym.c (hashname): Change type of name parameter
11231         from char * to const char *.
11232         * buildsym.h (hashname): Update.
11233         * dbxread.c (end_psymtab): Change type of include_list parameter
11234         from char ** to const char **.
11235         * dwarf2read.c (determine_prefix): Change result type
11236         from char * to const char *.  All callers updated.
11237         * f-lang.c (find_common_for_function): Change type of name, funcname
11238         parameters from char * to const char *.
11239         * f-lang.c (find_common_for_function): Update.
11240         * f-valprint.c (list_all_visible_commons): Change type of funcname
11241         parameters from char * to const char *.
11242         * gdbarch.sh (static_transform_name): Change type of name parameter
11243         and result from char * to const char *.
11244         * gdbarch.c: Regenerate.
11245         * gdbarch.h: Regenerate.
11246         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11247         of name parameter from char * to const char *.
11248         * jv-lang.c (java_primitive_type_from_name): Ditto.
11249         (java_demangled_signature_length): Similarly for signature parameter.
11250         (java_demangled_signature_copy): Ditto.
11251         (java_demangle_type_signature): Ditto.
11252         * jv-lang.h (java_primitive_type_from_name): Update.
11253         (java_demangle_type_signature): Update.
11254         * objc-lang.c (specialcmp): Change type of a,b parameters
11255         from char * to const char *.
11256         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11257         from char * to const char *.  All callers updated.
11258         * p-lang.h (is_pascal_string_type): Update.
11259         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11260         of name parameter from char * to const char *.
11261         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11262         * utils.c (fprintf_symbol_filtered): Ditto.
11263         * defs.h (fprintf_symbol_filtered): Update.
11264         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11265         * stabsread.h (end_psymtab): Update.
11266         * stack.c (find_frame_funname): Change type of funname parameter
11267         from char ** to const char **.
11268         * stack.h (find_frame_funname): Update.
11269         * typeprint.c (type_print): Change type of varstring parameter
11270         from char * to const char *.
11271         * value.h (type_print): Update.
11272         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11273         from char * to const char *.  All callers updated.
11274         (xcoff_end_psymtab): Change type of include_list parameter
11275         from char ** to const char **.  All callers updated.
11276         (swap_sym): Similarly for name parameter.  All callers updated.
11277         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11278         Use xstrdup.
11279         (process_coff_symbol): Use xstrdup.
11280         * stabsread.c (stabs_method_name_from_physname): Renamed from
11281         update_method_name_from_physname.  Change result type from void
11282         to char *.  All callers updated.
11283         (read_member_functions): In has_destructor case, store name in objfile
11284         obstack instead of malloc space.  In !has_stub case, fix mem leak.
11285
11286 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
11287
11288         * configure: Rebuild.
11289         * configure.ac: Put -L../bfd and -L../libiberty at the front of
11290         LDFLAGS.
11291
11292 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
11293
11294         * configure.tgt (rl78-*-elf): New target.
11295         * rl78-tdep.c: New file.
11296
11297 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11298
11299         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11300         and continue the loop.  Add QUIT statement.
11301
11302 2012-02-03  Tom Tromey  <tromey@redhat.com>
11303
11304         PR gdb/13596:
11305         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11306         bfd_lookup_symbol_from_symtab.
11307         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11308         gdb_bfd_lookup_symbol_from_symtab.
11309
11310 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
11311
11312         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11313         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11314         symbol.  Add assertion that sym2 is never NULL.
11315
11316 2012-02-02  Doug Evans  <dje@google.com>
11317
11318         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11319         "name" parameter to const char ** from char **.  All callers updated.
11320         (find_pc_partial_function): Ditto.
11321         (cache_pc_function_name): Change type to const char * from char *.
11322         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11323         (find_pc_partial_function): Update.
11324         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11325         type of "name" parameter to const char * from char *.
11326         All uses updated.
11327         * arch-utils.c (generic_in_solib_return_trampoline): Change
11328         type of "name" parameter to const char * from char *.
11329         * arch-utils.h (generic_in_solib_return_trampoline): Update.
11330         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11331         type of "name" parameter to const char * from char *.
11332         * gdbarch.sh (in_solib_return_trampoline): Ditto.
11333         * gdbarch.c: Regenerate.
11334         * gdbarch.h: Regenerate.
11335         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11336         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11337         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11338         type of "name" parameter to const char * from char *.
11339         * skip.c (skip_function_pc): Ditto.
11340         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11341         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11342         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11343         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11344         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11345         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11346         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11347         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11348         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11349
11350 2012-02-02  Pedro Alves  <palves@redhat.com>
11351
11352         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11353         the current inferior has no execution.  Make sure the current
11354         remote process matches gdb's current inferior.
11355
11356 2012-02-02  Tom Tromey  <tromey@redhat.com>
11357
11358         PR gdb/13405:
11359         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11360         read-only memory.
11361
11362 2012-02-02  Tom Tromey  <tromey@redhat.com>
11363
11364         PR gdb/9307:
11365         * symtab.c (lookup_language_this): Set block_found.
11366
11367 2012-02-01  Tom Tromey  <tromey@redhat.com>
11368
11369         PR gdb/13431:
11370         * jit.c (struct jit_inferior_data): Rewrite.
11371         (struct jit_objfile_data): New.
11372         (get_jit_objfile_data): New function.
11373         (add_objfile_entry): Update.
11374         (jit_read_descriptor): Return int.  Replace descriptor_addr
11375         argument with inf_data.  Update.  Don't call error.
11376         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
11377         descriptor here.
11378         (jit_inferior_init): Don't look up descriptor.  Don't call error.
11379         (jit_reset_inferior_data_and_breakpoints)
11380         (jit_inferior_created_observer): Remove.
11381         (jit_inferior_exit_hook): Update.
11382         (jit_executable_changed_observer): Remove.
11383         (jit_event_handler): Update.
11384         (free_objfile_data): Reset inferior data if needed.
11385         (_initialize_jit): Update.
11386
11387 2012-02-01  Tom Tromey  <tromey@redhat.com>
11388
11389         * jit.c (bfd_open_from_target_memory): Move higher in file.
11390
11391 2012-02-01  Tristan Gingold  <gingold@adacore.com>
11392
11393         * libunwind-frame.c (libunwind_load): Display message if dlopen
11394         failed.
11395
11396 2012-02-01  Gary Benson  <gbenson@redhat.com>
11397
11398         * symtab.h (symbol_found_callback_ftype): New typedef.
11399         (iterate_over_symbols): Use the above.
11400         * symtab.c (iterate_over_symbols): Likewise.
11401         * language.h (language_defn->la_iterate_over_symbols): Likewise.
11402         * ada-lang.c (ada_iterate_over_symbols): Likewise.
11403         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11404         (iterate_name_matcher): Document return values.
11405         (collect_one_symbol): Likewise.
11406         (collect_function_symbols): Likewise.
11407         (collect_symbols): Likewise.
11408
11409 2012-02-01  Tom Tromey  <tromey@redhat.com>
11410
11411         * ada-lang.c (resolve_subexp): Update.
11412         (ada_lookup_symbol_list): Add 'full_search' argument.
11413         (ada_iterate_over_symbols): Pass 0 as full_search argument to
11414         ada_lookup_symbol_list.
11415         (ada_lookup_encoded_symbol): Update.
11416         (get_var_value): Update.
11417         * ada-exp.y (block_lookup): Update.
11418         (write_var_or_type): Update.
11419         (write_name_assoc): Update.
11420         * ada-lang.h (ada_lookup_symbol_list): Update.
11421
11422 2012-01-31  Tom Tromey  <tromey@redhat.com>
11423
11424         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11425         comment.
11426
11427 2012-01-31  Doug Evans  <dje@google.com>
11428
11429         * symtab.h: Remove outdated comment.
11430         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11431
11432 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
11433
11434         Fix build error in Darwin port.
11435         * i386-darwin-nat.c: Include i386-nat.h.
11436
11437 2012-01-30  Tom Tromey  <tromey@redhat.com>
11438
11439         PR breakpoints/13568:
11440         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11441         argument.  Check for recursive includes.
11442         (dwarf_decode_macros): Create an include hash.
11443
11444 2012-01-30  Michael Eager  <eager@eagercon.com>
11445
11446         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11447         * ppc-linux-tdep.c: Include glibc-tdep.h.
11448         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11449         (powerpc_linux_in_plt_stub): New function.
11450         (powerpc_linux_in_dynsym_resolve_code): New function.
11451         (ppc_skip_trampoline_code): New function.
11452         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11453         Use glibc_skip_solib_resolver.
11454
11455 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11456
11457         Code cleanup: Make 1440 bytes of data segment read-only.
11458         * arch-utils.c (endian_enum): Make it const char *const [].
11459         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11460         Likewise.
11461         * breakpoint.c (always_inserted_enums): Likewise.
11462         * cli/cli-cmds.c (script_ext_enums): Likewise.
11463         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11464         enumlist parameter const char *const *.
11465         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11466         const char *const *.
11467         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11468         parameter const char *const *.
11469         * cris-tdep.c (cris_modes): Make it const char *const [].
11470         * filesystem.c (target_file_system_kinds): Likewise.
11471         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11472         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11473         (can_use_displaced_stepping_enum, scheduler_enums)
11474         (exec_direction_names): Likewise.
11475         * language.c (_initialize_language): Make the type_or_range_names and
11476         case_sensitive_names variables const char *const [].
11477         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11478         * python/python.c (python_excp_enums): Likewise.
11479         * remote.c (interrupt_sequence_modes): Likewise.
11480         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11481         * serial.c (logbase_enums): Likewise.
11482         * sh-tdep.c (sh_cc_enum): Likewise.
11483         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11484         Likewise.
11485         * symtab.c (multiple_symbols_modes): Likewise.
11486         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11487         Likewise.
11488         * utils.c (internal_problem_modes): Likewise.
11489
11490 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
11491
11492         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11493         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11494         result.
11495
11496 2012-01-27  Doug Evans  <dje@google.com>
11497
11498         * configure.ac (with_python): Fix absolute path handling for win32.
11499         * configure: Regenerate.
11500
11501 2012-01-26  Doug Evans  <dje@google.com>
11502
11503         * symtab.c: Whitespace cleanup, no code changes.
11504
11505         * symtab.c (lookup_symbol_in_language): Improve comment.
11506         (lookup_symbol_aux): Fix comment.
11507
11508         * psymtab.c (add_psymbol_to_list): Result is now "void".
11509         * psympriv.h (add_psymbol_to_list): Update.
11510
11511         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11512
11513 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11514
11515         Do not open script filenames twice.
11516         * cli/cli-cmds.c (source_script_from_stream): Pass to
11517         source_python_script also STREAM.
11518         * python/py-auto-load.c (source_section_scripts): Pass to
11519         source_python_script_for_objfile also STREAM.
11520         (auto_load_objfile_script): Pass to source_python_script_for_objfile
11521         also INPUT.
11522         * python/python-internal.h (source_python_script_for_objfile): New
11523         parameter file, rename parameter file to filename.
11524         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11525         instead if !_WIN32.  Update the function comment.
11526         (source_python_script, source_python_script_for_objfile)
11527         (source_python_script): New parameter file, rename parameter file to
11528         filename.  Pass FILENAME to python_run_simple_file.
11529         * python/python.h (source_python_script): New parameter file, rename
11530         parameter file to filename.
11531
11532 2012-01-26  Pedro Alves  <palves@redhat.com>
11533
11534         * corelow.c (core_has_fake_pid): Delete.
11535         (core_close): Delete references to `core_has_fake_pid'.
11536         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11537         (core_open): Delete references to `core_has_fake_pid'.
11538         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11539         the removed global.
11540
11541 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
11542
11543         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11544         Remove language parameter from name_matcher.  Adjust the comment.
11545         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11546         Remove language parameter.
11547         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11548         * linespec.c (iterate_name_matcher): Likewise.
11549         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11550         name_matcher.  Adjust call accordingly.
11551         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11552         (maintenance_check_symtabs): Adjust type of parameter "fun".
11553         * psymtab.h (maintenance_check_symtabs): Likewise.
11554
11555 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
11556
11557         * language.h (symbol_name_match_p_ftype): New typedef.
11558         (struct language_defn): Replace field la_symbol_name_compare
11559         by la_get_symbol_name_match_p.
11560         * ada-lang.c (ada_get_symbol_name_match_p): New function.
11561         (ada_language_defn): Use it.
11562         * linespec.c (struct symbol_matcher_data): New type.
11563         (iterate_name_matcher): Rewrite.
11564         (iterate_over_all_matching_symtabs): Pass a pointer to
11565         a symbol_matcher_data struct to expand_symtabs_matching
11566         instead of just the lookup name.
11567         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11568         opencl-lang.c, p-lang.c, language.c: Delete field
11569         la_symbol_name_compare, and replace by NULL for new field
11570         la_get_symbol_name_match_p.
11571         * symfile.h (struct quick_symbol_functions): Update comment.
11572
11573 2012-01-25  Tom Tromey  <tromey@redhat.com>
11574
11575         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11576         dereferencing.
11577
11578 2012-01-24  Tom Tromey  <tromey@redhat.com>
11579
11580         PR symtab/12406:
11581         * solib.c (update_solib_list): Update the program space's
11582         added_solibs and deleted_solibs fields.
11583         * progspace.h (struct program_space) <added_solibs,
11584         deleted_solibs>: New fields.
11585         (clear_program_space_solib_cache): Declare.
11586         * progspace.c (release_program_space): Call
11587         clear_program_space_solib_cache.
11588         (clear_program_space_solib_cache): New function.
11589         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11590         bpstat_stop_status.  Use handle_solib_event.
11591         * breakpoint.c: Include gdb_regex.h.
11592         (print_solib_event): New function.
11593         (bpstat_print): Use print_solib_event.
11594         (bpstat_stop_status): Add special case for bp_shlib_event.
11595         (handle_solib_event): New function.
11596         (bpstat_what): Use handle_solib_event.
11597         (struct solib_catchpoint): New.
11598         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11599         (breakpoint_hit_catch_solib, check_status_catch_solib)
11600         (print_it_catch_solib, print_one_catch_solib)
11601         (print_mention_catch_solib, print_recreate_catch_solib): New
11602         functions.
11603         (catch_solib_breakpoint_ops): New global.
11604         (catch_load_or_unload, catch_load_command_1)
11605         (catch_unload_command_1): New functions.
11606         (internal_bkpt_check_status): Add special case for
11607         bp_shlib_event.
11608         (internal_bkpt_print_it): Use print_solib_event.
11609         (initialize_breakpoint_ops): Initialize
11610         catch_solib_breakpoint_ops.
11611         (_initialize_breakpoint): Register "catch load" and "catch
11612         unload".
11613         * breakpoint.h (handle_solib_event): Declare.
11614         * NEWS: Add entry for "catch load" and "catch unload".
11615
11616 2012-01-24  Tom Tromey  <tromey@redhat.com>
11617
11618         * ada-lang.c: Include gdb_vecs.h.
11619         * charset.c: Include gdb_vecs.h.
11620         * tracepoint.h: Include gdb_vecs.h.
11621         * gdb_vecs.h: New file.
11622
11623 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
11624
11625         * breakpoint.c (breakpoint_hit_catch_fork)
11626         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11627         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11628         * infrun.c (inferior_has_forked, inferior_has_vforked)
11629         (inferior_has_execd, inferior_has_called_syscall): Delete.
11630         (handle_syscall_event): Get syscall_number from the execution
11631         control state's wait status.
11632         (wait_for_inferior): Don't clear syscall_number.
11633
11634 2012-01-24  Pedro Alves  <palves@redhat.com>
11635
11636         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11637         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11638         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11639         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11640         `ws' parameter.
11641         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
11642         false for events other than TARGET_SIGNAL_TRAP.
11643         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11644         Add `ws' parameter.
11645         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
11646         events other than TARGET_SIGNAL_TRAP.
11647         (tracepoint_breakpoint_hit): Add `ws' parameter.
11648         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11649         parameter.
11650         (bpstat_stop_status): Same.
11651         (pc_at_non_inline_function): Same.
11652         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11653         to pass the current event's waitstatus to bpstat_stop_status
11654         and pc_at_non_inline_function.
11655
11656 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11657
11658         Code cleanup.
11659         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11660         Update the function comment for it.
11661         (source_script_with_search): Call make_cleanup_fclose for STREAM.
11662         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11663         for STREAM.
11664
11665 2012-01-24  Pedro Alves  <palves@redhat.com>
11666
11667         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11668         outside `bs->stop' block.
11669         (bpstat_what): Rework bp_shlib_event handling.
11670         (internal_bkpt_check_status): If the breakpoint is a
11671         bp_shlib_event, then set bs->stop and bs->print if
11672         stop_on_solib_events is set.
11673
11674 2012-01-24  Gary Benson  <gbenson@redhat.com>
11675
11676         Delete #if 0'd out code.
11677         * stack.c (print_frame_label_vars): Remove.
11678         (catch_info): Likewise.
11679         (_initialize_stack): Remove "info catch" command.
11680         * NEWS: Mention the above.
11681
11682 2012-01-24  Pedro Alves  <palves@redhat.com>
11683
11684         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
11685         it.
11686         (remote_notice_new_inferior): If the remote end doesn't support
11687         the multiprocess extensions, then the PID is fake.
11688         (add_current_inferior_and_thread): New.
11689         (remote_start_remote): Use it.
11690         (extended_remote_attach_1): Adjust.
11691         (extended_remote_create_inferior_1): Use
11692         add_current_inferior_and_thread.
11693
11694 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11695
11696         Fix watchpoints to be specific for each inferior.
11697         * breakpoint.c (watchpoint_in_thread_scope): Verify also
11698         current_program_space.
11699         * i386-nat.c (i386_inferior_data_cleanup): New.
11700         (i386_inferior_data_get): Replace variable inf_data_local by an
11701         inferior_data call.
11702         (i386_use_watchpoints): Initialize i386_inferior_data.
11703         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11704         specific iterate_over_lwps.
11705
11706 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11707
11708         Fix watchpoints across inferior fork.
11709         * amd64-linux-nat.c (update_debug_registers_callback): Update the
11710         comment for linux_nat_iterate_watchpoint_lwps.
11711         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11712         linux_nat_iterate_watchpoint_lwps.
11713         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11714         * i386-linux-nat.c (update_debug_registers_callback): Update the
11715         comment for linux_nat_iterate_watchpoint_lwps.
11716         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11717         linux_nat_iterate_watchpoint_lwps.
11718         (i386_linux_prepare_to_resume): New comment on Linux kernel.
11719         * i386-nat.c: Include inferior.h.
11720         (dr_mirror): Remove.
11721         (i386_inferior_data, struct i386_inferior_data)
11722         (i386_inferior_data_get): New.
11723         (i386_debug_reg_state): Use i386_inferior_data_get.
11724         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11725         (i386_insert_watchpoint, i386_remove_watchpoint)
11726         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11727         (i386_remove_hw_breakpoint): New variable state, use
11728         i386_debug_reg_state instead of DR_MIRROR.
11729         * linux-nat.c (delete_lwp): New declaration.
11730         (num_lwps): Move here from downwards.
11731         (delete_lwp_cleanup): New.
11732         (linux_child_follow_fork): Create new child_lp, call
11733         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11734         PTRACE_DETACH.
11735         (num_lwps): Move upwards.
11736         (linux_nat_iterate_watchpoint_lwps): New.
11737         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11738         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11739
11740 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
11741
11742         GDB 7.4 released.
11743
11744 2012-01-23  Pedro Alves  <palves@redhat.com>
11745
11746         * top.c (caution): Rename to ...
11747         (confirm): ... this.
11748         (show_caution): Rename to ...
11749         (show_confirm): ... this.
11750         (quit_cover): Adjust.
11751         (init_main): Adjust.
11752         * top.h (caution): Rename to ...
11753         (confirm): ... this.
11754         * utils.c (internal_vproblem, defaulted_query): Adjust.
11755
11756 2012-01-23  Pedro Alves  <palves@redhat.com>
11757
11758         * top.c (caution): Update comment.
11759         (execute_command): Don't consider the current value of `caution'.
11760
11761 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11762
11763         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11764
11765 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11766
11767         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11768         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11769         * target.c (target_fileio_pwrite): Remove buffer address from
11770         debug output.
11771         (target_fileio_pread): Likewise.
11772
11773 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11774
11775         * NEWS: Document remote "info proc" and "generate-core-file".
11776
11777 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11778
11779         * gdbarch.sh (find_memory_regions): New callback.
11780         * gdbarch.c, gdbarch.h: Regenerate.
11781
11782         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11783         callback before falling back to target method.
11784
11785         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11786         (linux_target_install_ops): No longer install it.
11787
11788         * linux-tdep.c (linux_find_memory_regions): New function.
11789         (linux_init_abi): Install it.
11790
11791 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11792
11793         * gdbarch.sh (make_corefile_notes): New architecture callback.
11794         * gdbarch.c: Regenerate.
11795         * gdbarch.h: Likewise.
11796
11797         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11798         before target_make_corefile_notes.  If NULL is returned, the
11799         target does not support core file generation.
11800
11801         * linux-nat.c: Include "linux-tdep.h".
11802         (find_signalled_thread, find_stop_signal): Remove.
11803         (linux_nat_do_thread_registers): Likewise.
11804         (struct linux_nat_corefile_thread_data): Likewise.
11805         (linux_nat_corefile_thread_callback): Likewise.
11806         (iterate_over_spus): Likewise.
11807         (struct linux_spu_corefile_data): Likewise.
11808         (linux_spu_corefile_callback): Likewise.
11809         (linux_spu_make_corefile_notes): Likewise.
11810         (linux_nat_collect_thread_registers): New function.
11811         (linux_nat_make_corefile_notes): Replace contents by call to
11812         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11813         as native-only callback.
11814
11815         * linux-tdep.h: Include "bfd.h".
11816         (struct regcache): Add forward declaration.
11817         (linux_collect_thread_registers_ftype): New typedef.
11818         (linux_make_corefile_notes): Add prototype.
11819         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11820         "regset.h", and "elf-bfd.h".
11821         (find_signalled_thread, find_stop_signal): New functions.
11822         (linux_spu_make_corefile_notes): Likewise.
11823         (linux_collect_thread_registers): Likewise.
11824         (struct linux_corefile_thread_data): New data structure.
11825         (linux_corefile_thread_callback): New funcion.
11826         (linux_make_corefile_notes): Likewise.
11827         (linux_make_corefile_notes_1): Likewise.
11828         (linux_init_abi): Install it.
11829
11830 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11831
11832         * gdbarch.sh (info_proc): New callback.
11833         * gdbarch.c, gdbarch.h: Regenerate.
11834
11835         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11836         before falling back to the target info_proc callback.
11837
11838         * linux-nat.c: Do not include "cli/cli-utils.h".
11839         (linux_nat_info_proc): Remove.
11840         (linux_target_install_ops): No longer install it.
11841
11842         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11843         (read_mapping): New function.
11844         (linux_info_proc): Likewise.
11845         (linux_init_abi): Install it.
11846
11847 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11848
11849         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11850         * infcmd.c: (info_proc_cmd_1): New function.
11851         (info_proc_cmd): New function, moved here from equivalent routine
11852         orignally in linux-nat.c.
11853         (info_proc_cmd_mappings): Likewise.
11854         (info_proc_cmd_stat): Likewise.
11855         (info_proc_cmd_status): Likewise.
11856         (info_proc_cmd_cwd): Likewise.
11857         (info_proc_cmd_cmdline): Likewise.
11858         (info_proc_cmd_exe): Likewise.
11859         (info_proc_cmd_all): Likewise.
11860         (_initialize_infcmd): Install "info proc" command and subcommands.
11861
11862         * target.h (struct target_ops): Add to_info_proc.
11863         (target_info_proc): Add prototype.
11864         * target.c (target_info_proc): New function.
11865
11866         * procfs.c (procfs_info_proc): Add prototype.
11867         (info_proc_cmd): Rename into ...
11868         (procfs_info_proc): ... this.  Update argument types as appropriate
11869         for a to_info_proc implementation.  Handle "what" argument.
11870         (procfs_target): Install procfs_info_proc.
11871         (_initialize_procfs): No longer install "info proc" command.
11872
11873         * linux-nat.c: (enum info_proc_what): Remove.
11874         (linux_nat_info_proc_cmd_1): Rename into ...
11875         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11876         for a to_info_proc implementation.
11877         (linux_nat_info_proc_cmd): Remove.
11878         (linux_nat_info_proc_cmd_mappings): Likewise.
11879         (linux_nat_info_proc_cmd_stat): Likewise.
11880         (linux_nat_info_proc_cmd_status): Likewise.
11881         (linux_nat_info_proc_cmd_cwd): Likewise.
11882         (linux_nat_info_proc_cmd_cmdline): Likewise.
11883         (linux_nat_info_proc_cmd_exe): Likewise.
11884         (linux_nat_info_proc_cmd_all): Likewise.
11885         (linux_target_install_ops): Install linux_nat_info_proc.
11886         (_initialize_linux_nat): No longer install "info proc" command
11887         and subcommands.
11888
11889 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11890
11891         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11892         * config.in, configure: Regenerate.
11893
11894         * target.h (struct target_ops): Add to_fileio_readlink.
11895         (target_fileio_readlink): Add prototype.
11896         * target.c (target_fileio_readlink): New function.
11897
11898         * inf-child.c: Conditionally include <sys/param.h>.
11899         (inf_child_fileio_readlink): New function.
11900         (inf_child_target): Install it.
11901
11902         * remote.c (PACKET_vFile_readlink): New enum value.
11903         (remote_hostio_readlink): New function.
11904         (init_remote_ops): Install it.
11905         (_initialize_remote): Handle vFile:readlink packet type.
11906
11907 2012-01-20  Pedro Alves  <palves@redhat.com>
11908             Ulrich Weigand  <ulrich.weigand@linaro.org>
11909
11910         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11911         * config.in, configure: Regenerate.
11912
11913         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11914         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11915         (target_fileio_open): Add prototype.
11916         (target_fileio_pwrite): Likewise.
11917         (target_fileio_pread): Likewise.
11918         (target_fileio_close): Likewise.
11919         (target_fileio_unlink): Likewise.
11920         (target_fileio_read_alloc): Likewise.
11921         (target_fileio_read_stralloc): Likewise.
11922
11923         * target.c: Include "gdb/fileio.h".
11924         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11925         (default_fileio_target): New function.
11926         (target_fileio_open): Likewise.
11927         (target_fileio_pwrite): Likewise.
11928         (target_fileio_pread): Likewise.
11929         (target_fileio_close): Likewise.
11930         (target_fileio_unlink): Likewise.
11931         (target_fileio_close_cleanup): Likewise.
11932         (target_fileio_read_alloc_1): Likewise.
11933         (target_fileio_read_alloc): Likewise.
11934         (target_fileio_read_stralloc): Likewise.
11935
11936         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11937         <fcntl.h>, and <unistd.h>.
11938         (inf_child_fileio_open_flags_to_host): New function.
11939         (inf_child_errno_to_fileio_error): Likewise.
11940         (inf_child_fileio_open): Likewise.
11941         (inf_child_fileio_pwrite): Likewise.
11942         (inf_child_fileio_pread): Likewise.
11943         (inf_child_fileio_close): Likewise.
11944         (inf_child_fileio_unlink): Likewise.
11945         (inf_child_target): Install to_fileio routines.
11946
11947         * remote.c (init_remote_ops): Install to_fileio routines.
11948
11949 2012-01-20  Pedro Alves  <palves@redhat.com>
11950             Ulrich Weigand  <ulrich.weigand@linaro.org>
11951
11952         * remote.c (remote_multi_process_p): Only check for multi-process
11953         protocol feature, do not check for extended protocol.
11954         (remote_supports_multi_process): Check for extended protocol here.
11955         (set_general_process): Likewise.
11956         (extended_remote_kill): Likewise.
11957         (remote_pid_to_str): Likewise.
11958         (remote_query_supported): Always query multiprocess mode.
11959
11960 2012-01-20  Pedro Alves  <palves@redhat.com>
11961             Ulrich Weigand  <ulrich.weigand@linaro.org>
11962
11963         * inferior.h (struct inferior): Add fake_pid_p.
11964         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11965         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11966         magic_null_ptid since the remote side doesn't provide a real PID.
11967
11968 2012-01-19  Tom Tromey  <tromey@redhat.com>
11969
11970         * NEWS: Combine the two Python sections.
11971
11972 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11973
11974         * target.h (target_close): Update comment on the target's unpush state.
11975
11976 2012-01-19  Pedro Alves  <palves@redhat.com>
11977
11978         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11979         linux_nat_async directly instead of going through the target
11980         vector.
11981         * target.c (unpush_target): Close target after unpushing it, not
11982         before.
11983
11984 2012-01-19  Gary Benson  <gbenson@redhat.com>
11985
11986         * mdebugread.c (sort_blocks): Replace integer constants with ones
11987         derived from FIRST_LOCAL_BLOCK.
11988
11989 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11990             Jan Kratochvil  <jan.kratochvil@redhat.com>
11991
11992         PR gdb/9538
11993         * symfile.c (find_separate_debug_file): New function.
11994         (terminate_after_last_dir_separator): Likewise.
11995         (find_separate_debug_file_by_debuglink): Also try realpath.
11996         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11997         * configure: Regenerate.
11998         * config.in: Regenerate.
11999
12000 2012-01-18  Doug Evans  <dje@google.com>
12001
12002         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12003         (main.o): Remove rule.
12004         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12005         (--with-sysroot): Rewrite.
12006         * configure: Regenerate.
12007         * config.in: Regenerate.
12008
12009 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
12010
12011         * parse.c (initialize_expout): New function.
12012         (reallocate_expout): Likewise.
12013         (parse_exp_in_context): Use `initialize_expout' and
12014         `reallocate_expout' when appropriate.
12015
12016 2012-01-18  Pedro Alves  <palves@redhat.com>
12017
12018         * record.c (struct record_breakpoint, record_breakpoint_p)
12019         (record_breakpoints): New.
12020         (record_insert_breakpoint, record_remove_breakpoint): Manage
12021         record breakpoints list.  Only remove breakpoints from the
12022         inferior if they had been inserted there in the first place.
12023
12024 2012-01-17  Doug Evans  <dje@google.com>
12025
12026         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12027         if we know we don't have a file name to look for.
12028
12029 2012-01-17  Pedro Alves  <palves@redhat.com>
12030
12031         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12032         the frame's stop reason is UNWIND_UNAVAILABLE.
12033
12034 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
12035
12036         Fix compilation error.
12037         * m2-exp.y (yyerror): Use ANSI C prototype.
12038
12039 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12040
12041         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12042         (growbuf_by_size): Likewise.
12043         (yyerror): Likewise.
12044         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12045         (modblock): Remove variable (was #if 0'ed).
12046         (parse_number): Convert prototype from K&R to ANSI C.
12047         (yyerror): Likewise.
12048         * objc-exp.y (parse_number): Likewise.
12049         (yyerror): Likewise.
12050         (yylex): Remove #if 0'ed code.
12051         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12052         (yyerror): Likewise.
12053
12054 2012-01-16  Tom Tromey  <tromey@redhat.com>
12055
12056         * NEWS: Add item.
12057         * symtab.h (compare_filenames_for_search): Declare.
12058         * symtab.c (compare_filenames_for_search): New function.
12059         (iterate_over_some_symtabs): Use it.
12060         * symfile.h (struct quick_symbol_functions)
12061         <map_symtabs_matching_filename>: Change spec.
12062         * psymtab.c (partial_map_symtabs_matching_filename): Use
12063         compare_filenames_for_search.  Update for new spec.
12064         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12065         compare_filenames_for_search.  Update for new spec.
12066         * breakpoint.c (clear_command): Use compare_filenames_for_search.
12067
12068 2012-01-16  Tom Tromey  <tromey@redhat.com>
12069
12070         PR python/13281:
12071         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12072         (struct main_type) <flag_flag_enum>: New field.
12073         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12074         * NEWS: Add entries.
12075         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12076         enums.
12077         * python/lib/gdb/printing.py (_EnumInstance): New class.
12078         (FlagEnumerationPrinter): Likewise.
12079
12080 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12081
12082         * breakpoint.c (create_sals_from_address_default): New function.
12083         (create_breakpoints_sal_default): Likewise.
12084         (decode_linespec_default): Likewise.
12085         (is_marker_spec): Removed.
12086         (strace_marker_p): New function.
12087         (init_breakpoint_sal): Using `strace_marker_p' instead of
12088         `is_marker_spec'.
12089         (create_breakpoint): Call method `create_sals_from_address' from
12090         breakpoint_ops, replacing code that created SALs conditionally
12091         on the type of the breakpoint.  Call method `create_breakpoints_sal',
12092         replacing code that created breakpoints conditionally on the type
12093         wanted.
12094         (base_breakpoint_create_sals_from_address): New function.
12095         (base_breakpoint_create_breakpoints_sal): Likewise.
12096         (base_breakpoint_decode_linespec): Likewise.
12097         (base_breakpoint_ops): Add methods
12098         `base_breakpoint_create_sals_from_address',
12099         `base_breakpoint_create_breakpoints_sal' and
12100         `base_breakpoint_decode_linespec'.
12101         (bkpt_create_sals_from_address): New function.
12102         (bkpt_create_breakpoints_sal): Likewise.
12103         (bkpt_decode_linespec): Likewise.
12104         (tracepoint_create_sals_from_address): Likewise.
12105         (tracepoint_create_breakpoints_sal): Likewise.
12106         (tracepoint_decode_linespec): Likewise.
12107         (strace_marker_create_sals_from_address): Likewise.
12108         (strace_marker_create_breakpoints_sal): Likewise.
12109         (strace_marker_decode_linespec): Likewise.
12110         (strace_marker_breakpoint_ops): New variable.
12111         (addr_string_to_sals): Remove `marker_spec'.  Call method
12112         `decode_linespec' from breakpoint_ops, replacing code that decoded
12113         an address string into a SAL.  Use `strace_marker_p' instead of
12114         `marker_spec'.
12115         (strace_command): Decide whether we are dealing with a static
12116         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
12117         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12118         * breakpoint.h (linespec_result, linespec_sals): New forward
12119         declarations.
12120         (breakpoint_ops) <create_sals_from_address>,
12121         <create_breakpoints_sal>, <decode_linespec>: New methods.
12122
12123 2012-01-14  Doug Evans  <dje@google.com>
12124
12125         * NEWS: Update text for "maint set python print-stack".
12126         It is deprecated in gdb 7.4 and deleted in 7.5.
12127
12128 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
12129
12130         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12131         including curses.h.
12132
12133 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
12134
12135         * configure: Regenerate.
12136         * config.in: Regenerate.
12137
12138 2012-01-12  Keith Seitz  <keiths@redhat.com>
12139
12140         PR mi/10586
12141         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12142         (ANONYMOUS_UNION_NAME): Define.
12143         (is_path_expr_parent): New function.
12144         (get_path_expr_parent): New function.
12145         (is_anonymous_child): New function.
12146         (create_child_with_value): If the child is anonymous and without
12147         a name, assign an object name to it.
12148         (c_describe_child): Use get_path_expr_parent to determine
12149         the parent expression.
12150         If there field represents an anonymous struct or union and
12151         has no name, set an appropriate display name and expression.
12152         (cplus_describe_child): Likewise.
12153
12154 2012-01-12  Pedro Alves  <palves@redhat.com>
12155
12156         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12157         available when %ebp is found to be zero (outermost).
12158
12159 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
12160
12161         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12162         an internal gdb_static_assert.
12163         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12164
12165 2012-01-11  Tom Tromey  <tromey@redhat.com>
12166
12167         PR gdb/9598:
12168         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12169         catch" and "catch throw".
12170
12171 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
12172
12173         * blockframe.c (block_innermost_frame): Start search from selected
12174         frame, if present, or otherwise the current frame.
12175
12176         * c-exp.y (variable): Update innermost_block for
12177         'block COLONCOLON NAME' clause.
12178         * m2-exp.y (variable): Ditto.
12179         * objc-exp.y (variable): Ditto.
12180
12181 2012-01-10  Tom Tromey  <tromey@redhat.com>
12182
12183         PR python/13199:
12184         * python/python.c (finish_python_initialization): Set sys.argv.
12185
12186 2012-01-10  Doug Evans  <dje@google.com>
12187
12188         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
12189         "want_line_info".  All callers updated.
12190         (dwarf_decode_lines_1): New function.
12191         (handle_DW_AT_stmt_list): Add function comment.
12192         New arg "want_line_info".  All callers updated.
12193         (read_file_scope,read_type_unit_scope): Move comment from
12194         handle_DW_AT_stmt_list to here.
12195
12196 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12197
12198         Fix regression after libiberty/ update for GCC PR 6057 and others.
12199         * c-exp.y (operator) <OPERATOR DELETE>
12200         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12201         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12202         (make_builtin_type, make_name): New variable i, add gdb_assert.
12203         (operator) <OPERATOR NEW>: Update ARGS to 3.
12204         (operator) <OPERATOR DELETE>: Add trailing space.
12205         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12206         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12207         * cp-support.c (cp_canonicalize_string): Check NULL from
12208         cp_comp_to_string, call warning and return.
12209
12210 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
12211
12212         Fix duplicate .o files after omitting libbfd.a.
12213         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12214         (SFILES): Add corelow.c.
12215         (COMMON_OBS): Add corelow.o.
12216         (ALLDEPFILES): Remove corelow.c.
12217         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12218         * config/alpha/alpha-osf3.mh: Likewise.
12219         * config/alpha/fbsd.mh: Likewise.
12220         * config/arm/nbsdaout.mh: Likewise.
12221         * config/arm/nbsdelf.mh: Likewise.
12222         * config/i386/i386gnu.mh: Likewise.
12223         * config/ia64/hpux.mh: Likewise.
12224         * config/ia64/linux.mh: Likewise.
12225         * config/m32r/linux.mh: Likewise.
12226         * config/m68k/linux.mh: Likewise.
12227         * config/mips/irix5.mh: Likewise.
12228         * config/mips/irix6.mh: Likewise.
12229         * config/pa/hpux.mh: Likewise.
12230         * config/pa/linux.mh: Likewise.
12231         * config/powerpc/aix.mh: Likewise.
12232         * config/sparc/linux.mh: Likewise.
12233         * config/sparc/linux64.mh: Likewise.
12234         * config/sparc/sol2.mh: Likewise.
12235         * config/vax/vax.mh: Likewise.
12236         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12237         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12238         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12239         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12240         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12241         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12242         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12243         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12244         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12245         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12246         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12247         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12248         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12249         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12250         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12251         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12252         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12253         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12254         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12255         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12256         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12257         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12258         corelow.o from gdb_target_obs.
12259         * corefile.c (core_target): Update the comment on NULL value.
12260         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12261         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12262         MATCHES.  Drop YUMMY set on NULL.
12263         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
12264         reclaim CORE_DATA if it is already NULL.
12265
12266 2012-01-09  Doug Evans  <dje@google.com>
12267
12268         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12269         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12270
12271 2012-01-09  Keith Seitz  <keiths@redhat.com>
12272
12273         * breakpoint.c (wrapper.h): Don't include.
12274
12275 2012-01-09  Keith Seitz  <keiths@redhat.com>
12276
12277         * Makefile.in (SFILES): Remove wrapper.c.
12278         (HFILES_NO_SRCDIR): Remove wrapper.h.
12279         (COMMON_OBS): Remove wrapper.o.
12280         * cli/cli-interp.c: Don't inlude wrapper.h.
12281         * corelow.c: Likewise.
12282         (core_open): Replace gdb_target_find_new_threads with
12283         TRY_CATCH around target_find_new_threads.
12284         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12285         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12286         * varobj.c (varobj_create): Likewise for parse_exp_1 and
12287         evaluate_expression.
12288         (varobj_set_value): Likewise for evaluate_expression and
12289         value_assign.
12290         (install_new_variable): Likewise for value_fetch_lazy.
12291         (adjust_value_for_child_access): Likewise for value_ind.
12292         (c_describe_child): Likewise for value_subscript and
12293         value_ind.
12294         (c_value_of_root): Likewise for evaluate_expression.
12295         * wrapper.c: Remove.
12296         * wrapper.h: Remove.
12297
12298 2012-01-09  Doug Evans  <dje@google.com>
12299
12300         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12301         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
12302         "abfd" args with "section".  All callers updated.
12303         Error checking code moved ...
12304         (error_check_comp_unit_head): ... here.  New function.
12305         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12306         Delete arg "abfd".  New arg "type_offset".  All callers updated.
12307         (create_debug_types_hash_table): Simplify by using
12308         read_and_check_type_unit_head.
12309
12310         * parser-defs.h (namecopy): Delete.
12311         * parse.c (namecopy, namecopy_size): Move into copy_name.
12312
12313 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12314
12315         Partially fix duplicate .o files after omitting libbfd.a.
12316         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12317         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12318         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12319         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12320         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12321         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12322         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12323
12324 2012-01-09  Pedro Alves  <palves@redhat.com>
12325
12326         * MAINTAINERS: Update my email address.
12327
12328 2012-01-08  Doug Evans  <dje@google.com>
12329
12330         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12331         n_type_units.  Rename type_comp_units to all_type_units.
12332         All uses updated.
12333         (add_signatured_type_cu_to_table): Renamed from
12334         add_signatured_type_cu_to_list.  All callers updated.
12335
12336         * gdbtypes.h (struct cplus_struct_type): Delete member
12337         nfn_fields_total.  All uses removed.
12338
12339 2012-01-06  Doug Evans  <dje@google.com>
12340
12341         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12342         to top of file.
12343         (dwarf2_find_comp_unit): Delete.
12344         (process_psymtab_comp_unit): Make result "void".
12345         Delete args buffer, info_ptr, buffer_size, and replace with
12346         "section".  All callers updated.
12347         (dwarf2_build_psymtabs_hard): Simplify.
12348
12349 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
12350             Thiago Jung Bauermann  <bauerman@br.ibm.com>
12351
12352         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12353         before `struct gdb_exception'.
12354         * breakpoint.c (update_global_location_list_nothrow)
12355         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12356         * cp-abi.c (value_rtti_type): Likewise.
12357         * cp-support.c (cp_validate_operator): Likewise.
12358         * infrun.c (insert_exception_resume_breakpoint)
12359         (check_exception_resume, keep_going): Likewise.
12360         * mi-interp.c (mi_breakpoint_created)
12361         (mi_breakpoint_modified): Likewise.
12362         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12363         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12364         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12365
12366 2012-01-05  Doug Evans  <dje@google.com>
12367
12368         * dwarf2read.c (statement_prologue): Delete, unused.
12369
12370         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12371         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12372
12373         * dwarf2read.c (comp_unit_header): Delete, unused.
12374
12375 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
12376
12377         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12378         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12379
12380 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
12381
12382         * infrun.c (normal_stop): Don't skip calling the normal_stop
12383         observers if the thread was doing a multi-step, but stopped for
12384         some reason other than stepping.
12385
12386 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
12387
12388         * cli/cli-decode.h: Add comments.
12389         (CMD_LIST_AMBIGUOUS): Moved to command.h
12390         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12391         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12392         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12393         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12394         (add_com, add_com_alias, add_info, add_info_alias)
12395         (complete_on_cmdlist, complete_on_enum, help_list): Remove
12396         declarations.
12397         * command.h: Add and adjust comments.
12398         (CMD_LIST_AMBIGUOUS): Moved here.
12399         (help_cmd, help_cmd_list): Delete declarations.
12400
12401 2012-01-04  Doug Evans  <dje@google.com>
12402
12403         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12404         All callers updated.
12405         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12406         Replace all arguments with "per_cu".  All callers updated.
12407
12408         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12409
12410         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12411         New arg "per_cu".  All callers updated.
12412
12413         Delete #if 0'd out code.
12414         * language.c (binop_result_type): Delete.
12415         (simple_type, ordered_type, same_type, integral_type): Delete.
12416         (numeric_type, character_type, string_type, boolean_type): Delete.
12417         (float_type, structured_type): Delete.
12418         * language.h: Update.
12419
12420 2012-01-04  Tom Tromey  <tromey@redhat.com>
12421
12422         * python/py-value.c (valpy_binop): Initialize 'res_val'.
12423
12424 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12425
12426         * corefile.c (close_exec_file): Delete.
12427         (reopen_exec_file): Remove commented out code that seems related
12428         to close_exec_file, which is being deleted here.
12429         * inferior.h (close_exec_file): Delete.
12430         * fork-child.c (fork_inferior): Remove call to fork_inferior.
12431
12432 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12433
12434         * ada-lang.c: #include "cli/cli-utils.h".
12435         (get_selections): Use skip_spaces.
12436         (ada_get_next_arg): Use skip_spaces and skip_to_space.
12437         (catch_ada_exception_command_split): Use skip_spaces.
12438         (ada_decode_assert_location): Likewise.
12439
12440 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12441
12442         * linespec.c (decode_line_internal): Check for C++ or Java
12443         compound constructs only if the current language is C, C++
12444         or Java.
12445
12446 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12447
12448         Revert:
12449         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12450                     Joel Brobecker  <brobecker@adacore.com>
12451         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12452         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12453         3 times.
12454         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12455         fall through into AT_ENTRY_POINT.
12456         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12457         DUMMY_ADDR with it.
12458         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12459         PPC_INSN_SIZE skip to 3 times.
12460
12461 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12462
12463         * linespec.c (add_minsym): Preserve function descriptors.
12464
12465 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
12466
12467         * breakpoint.c (all_locations_are_pending): Consider locations
12468         in program spaces executing during startup pending as well.
12469
12470 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12471
12472         Copyright year update in most files of the GDB Project.
12473
12474 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12475
12476         * copyright.sh: Delete.
12477         * copyright.py: Rewrite.
12478
12479 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12480
12481         * gnulib/extra/update-copyright: New file, imported from gnulib.
12482
12483 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
12484
12485         * README (Copyright and License Notices): New section.
12486
12487 2012-01-03  Tom Tromey  <tromey@redhat.com>
12488
12489         PR python/12533:
12490         * python/py-value.c (valpy_dereference, valpy_get_address
12491         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12492         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12493         (valpy_absolute, valpy_richcompare): Free intermediate values.
12494
12495 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
12496
12497         * ada-lang.c: Reformat the copyright notice.
12498
12499 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12500
12501         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12502         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12503         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12504         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12505         Revert this part of:
12506         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12507         Build gdb directly from *.o files not using libgdb.a.
12508         * Makefile.in (COMMON_OBS): Remove solib-target.o.
12509
12510 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12511
12512         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12513         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12514         Reformat the copyright header.
12515
12516 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12517
12518         Revert this part of:
12519         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12520         Remove the gdbtui binary.
12521         * gdb.c (main): Remove args.interpreter_p initialization.
12522         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12523         * main.h (struct captured_main_args): Remove interpreter_p.
12524
12525 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12526
12527         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12528
12529 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
12530
12531         * top.c (print_gdb_version): Update copyright year.
12532
12533 2012-01-02  Yao Qi  <yao@codesourcery.com>
12534
12535         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12536
12537 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12538             Joel Brobecker  <brobecker@adacore.com>
12539
12540         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12541         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12542         3 times.
12543         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12544         fall through into AT_ENTRY_POINT.
12545         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
12546         DUMMY_ADDR with it.
12547         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12548         PPC_INSN_SIZE skip to 3 times.
12549
12550 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12551
12552         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12553         the return value.
12554         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12555
12556 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12557
12558         Build gdb directly from *.o files not using libgdb.a.
12559         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12560         (COMMON_OBS): Remove solib-target.o.
12561         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12562         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12563         (LIBGDB_OBS, libgdb.a): Move it above.
12564         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12565         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12566         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12567         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12568         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12569         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12570         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12571         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12572         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12573         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12574         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12575         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12576         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12577         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12578         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12579         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12580         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12581         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12582         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12583         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12584         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12585         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12586         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12587         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12588         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12589         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12590         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12591
12592 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
12593
12594         Remove the gdbtui binary.
12595         * .gitignore (/gdbtui): Remove.
12596         * Makefile.in (TUI): Remove.
12597         (SUBDIR_TUI_OBS): Remove tui-main.o.
12598         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12599         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12600         (tui-main.o): Remove.
12601         (all_object_files): Remove tui-main.o.
12602         * NEWS: New note for the gdbtui removal.
12603         * configure: Rebuilt.
12604         * configure.ac: No longer add all-tui, clean-tui, install-tui and
12605         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12606         CONFIG_UNINSTALL respectively.
12607         * gdb.c (main): Remove args.interpreter_p initialization.
12608         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12609         * main.h (struct captured_main_args): Remove interpreter_p.
12610         * tui/tui-main.c: Remove.
12611
12612 2012-01-01  Doug Evans  <dje@google.com>
12613
12614         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12615         (dwarf2_physname, read_import_statement): Ditto.
12616         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12617         (process_structure_scope read_subroutine_type): Ditto.
12618         (read_typedef, load_partial_dies, read_partial_die): Ditto.
12619         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12620         (dwarf2_fetch_die_location_block): Ditto.
12621         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12622
12623         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12624         All callers updated.
12625         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12626         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12627         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12628
12629         * dwarf2read.c (load_cu): Move assert to more useful location.
12630
12631         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12632         All callers updated.
12633
12634         * dwarf2read.c (dwarf2_per_objfile): Add comment.
12635         (dwarf2_elf_names): Minor reformat.
12636         (dwarf2_per_cu_data): Tweak comment.
12637         (dwarf2_read_section): Fix comment.
12638         (create_all_comp_units): Fix comment.
12639         (load_full_comp_unit): Fix comment.
12640         (process_full_comp_unit): Fix comment.
12641         (read_signatured_type): Fix comment.
12642
12643 For older changes see ChangeLog-2011.
12644 \f
12645 Local Variables:
12646 mode: change-log
12647 left-margin: 8
12648 fill-column: 74
12649 version-control: never
12650 coding: utf-8
12651 End: