* dwarf2read.c (recursively_write_psymbols): New function.
[external/binutils.git] / gdb / ChangeLog
1 2012-05-10  Tom Tromey  <tromey@redhat.com>
2
3         * dwarf2read.c (recursively_write_psymbols): New function.
4         (write_psymtabs_to_index): Use it.
5
6         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7         field.
8         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
9         (load_partial_comp_unit): Update.
10         (queue_comp_unit): Add argument 'pretend_language'.
11         (process_queue): Update.
12         (psymtab_to_symtab_1): Skip dependencies that have a user.
13         (load_partial_comp_unit_reader): Give meaning to the 'data'
14         argument.
15         (load_full_comp_unit): Add 'pretend_language' argument.
16         (process_full_comp_unit): Add 'pretend_language' argument.  Set
17         language on CU.
18         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
19         Update.
20         (maybe_queue_comp_unit): Add 'pretend_language' argument.
21         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
22         Update.
23         (prepare_one_comp_unit): Add 'pretend_language' argument.
24
25         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
26         (struct dwarf2_per_objfile) <just_read_cus>: New field.
27         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
28         (dw2_do_instantiate_symtab): Check whether symtab was read in
29         before queueing.
30         (dw2_instantiate_symtab): Add assertion.  Call
31         process_cu_includes.
32         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
33         (partial_symtab_p): New typedef.
34         (set_partial_user): New function.
35         (dwarf2_build_psymtabs_hard): Use set_partial_user.
36         (scan_partial_symbols): Add imported CU to imported_symtabs.
37         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
38         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
39         (get_symtab, recursively_compute_inclusions)
40         (compute_symtab_includes, process_cu_includes)
41         (process_imported_unit_die): New functions.
42         (process_die) <DW_TAG_imported_unit>: New case.
43         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
44
45         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
46         comment.
47         (struct partial_die_info) <locdesc>: Remove.
48         <d>: New field.
49         (process_psymtab_comp_unit): Add 'read_partial' argument.
50         Update.
51         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
52         (scan_partial_symbols): Handle DW_TAG_imported_unit.
53         (add_partial_symbol): Update.
54         (process_die): Handle DW_TAG_partial_unit.
55         (read_file_scope): Update comment.
56         (load_partial_dies): Handle DW_TAG_imported_unit.
57         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
58         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
59
60 2012-05-10  Tom Tromey  <tromey@redhat.com>
61
62         * cc-with-dwz.sh: New file.
63
64 2012-05-10  Tom Tromey  <tromey@redhat.com>
65
66         * symtab.h (struct symtab) <includes, user>: New fields.
67         * block.h (struct block_iterator) <d, idx, which>: New fields.
68         * block.c (initialize_block_iterator, find_iterator_symtab)
69         (block_iterator_step, block_iter_name_step)
70         (block_iter_match_step): New functions.
71         (block_iterator_first, block_iterator_next)
72         (block_iter_name_first, block_iter_name_next)
73         (block_iter_match_first, block_iter_match_next): Rewrite.
74         (get_block_symtab): New function.
75
76 2012-05-10  Tom Tromey  <tromey@redhat.com>
77
78         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
79         set_block_symtab.
80         * jit.c (finalize_symtab): Use allocate_global_block,
81         set_block_symtab.
82         * buildsym.c (finish_block_internal): New function, from old
83         finish_block.
84         (finish_block): Rewrite.
85         (end_symtab): Use finish_block_internal, set_block_symtab.
86         * block.h (struct global_block): New.
87         (allocate_global_block, set_block_symtab): Declare.
88         * block.c (allocate_global_block, set_block_symtab): New
89         functions.
90
91 2012-05-10  Tom Tromey  <tromey@redhat.com>
92
93         * psymtab.c (partial_map_expand_apply): Add assertion.
94         (partial_map_symtabs_matching_filename): Skip included psymtabs.
95         (psymtab_to_symtab): Find unshared psymtab.
96         (dump_psymtab): Print including psymtabs.
97         (recursively_search_psymtabs): New function.
98         (expand_symtabs_matching_via_partial): Use it.
99         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
100         fields.
101         (enum psymtab_search_status): New.
102
103 2012-05-10  Tom Tromey  <tromey@redhat.com>
104
105         * tracepoint.c (scope_info): Update.
106         * symtab.c (lookup_block_symbol, iterate_over_symbols)
107         (find_pc_sect_symtab, search_symbols)
108         (default_make_symbol_completion_list_break_on)
109         (make_file_symbol_completion_list): Update.
110         * symmisc.c (dump_symtab_1): Update.
111         * stack.c (print_frame_args, iterate_over_block_locals)
112         (print_frame_labels, iterate_over_block_arg_vars): Update.
113         * python/py-block.c (block_object) <dict>: Remove.
114         <block>: New field.
115         <iter>: Change type.
116         (blpy_iter): Update.
117         (blpy_block_syms_iternext): Update.
118         * psymtab.c (map_block): Use block iterators.
119         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
120         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
121         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
122         * infrun.c (check_exception_resume): Update.
123         * cp-support.c (make_symbol_overload_list_block): Update.
124         * coffread.c (patch_opaque_types): Update.
125         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
126         * block.h (struct block_iterator): New.
127         (block_iterator_first, block_iterator_next, block_iter_name_first)
128         (block_iter_name_next, block_iter_match_first)
129         (block_iter_match_next): Declare.
130         (ALL_BLOCK_SYMBOLS): Redefine.
131         * block.c (block_iterator_first, block_iterator_next)
132         (block_iter_name_first, block_iter_name_next)
133         (block_iter_match_first, block_iter_match_next): New functions.
134         * ada-lang.c (ada_add_block_symbols)
135         (ada_make_symbol_completion_list): Use block iterator.
136
137 2012-05-10  Tom Tromey  <tromey@redhat.com>
138
139         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
140         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
141         (lookup_partial_symbol, find_last_source_symtab_from_partial)
142         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
143         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
144         Update.
145
146 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
147
148         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
149         print-file-var-lib2.c, print-file-var-main.c and
150         print-file-var.exp (located in gdb/testsuite/gdb.base).
151
152 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
153
154         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
155         try locating the symbol in the symbol's own objfile first, before
156         extending the search to all objfiles.
157         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
158         out of lookup_symbol_aux_symtabs.
159         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
160         Replace extracted-out code by call to lookup_symbol_aux_objfile.
161         Do not search EXCLUDE_OBJFILE.
162         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
163         (lookup_symbol_global): Search for matches in the block's objfile
164         first, before searching all other objfiles.
165
166 2012-05-10  Tristan Gingold  <gingold@adacore.com>
167
168         * printcmd.c (set_command): Add pre/post inc/dec.
169
170 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
171
172         * gdb.1: Document -ex option.
173
174 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
175
176         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
177         * inferior.h (AT_SYMBOL): Delete.
178
179 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
180
181         * mips-tdep.c (mips_push_dummy_code): New function.
182         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
183         ON_STACK and install mips_push_dummy_code as our gdbarch
184         push_dummy_code routine.
185
186 2012-05-09  Pedro Alves  <palves@redhat.com>
187
188         * target.c (set_maintenance_target_async_permitted): Rename to ...
189         (set_target_async_command): ... this.
190         (show_maintenance_target_async_permitted): Rename to ...
191         (show_target_async_command): ... this.
192         (initialize_targets): Adjust.
193
194 2012-05-08  Doug Evans  <dje@google.com>
195
196         * go-exp.y (classify_name): Add missing assignment of fields of
197         yylval.ssym.
198
199 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
200
201         Display the ">" prompt in interactive mode while reading canned
202         commands, even when the current interpreter is MI.
203
204         * interps.c (interp_set_temp): New function.
205
206         * interps.h (interp_set_temp): Add prototype.
207
208         * cli/cli-script.c (restore_interp): New cleanup function.
209         (read_command_lines): Temporarily override the current interpreter
210         with CLI and arrange for restoring the original one.
211
212 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
213
214         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
215
216 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
217
218         * probe.c (parse_probes): Move conditional to check for
219         debuginfo files from here...
220         * stap-probe.c (stap_get_probes): ... to here.
221
222 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
223             H.J. Lu  <hongjiu.lu@intel.com>
224
225         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
226         `movl %esp, %ebp' for the X32 ABI.
227
228 2012-05-07  Tom Tromey  <tromey@redhat.com>
229
230         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
231         get_DW_TAG_name.
232         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
233         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
234         (dwarf_stack_op_name): Remove.
235         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
236         (decode_locdesc): Use get_DW_OP_name.
237         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
238         (dwarf2_compile_expr_to_ax): Likewise.
239         (disassemble_dwarf_expression): Likewise.
240         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
241
242 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
243
244         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
245         (sh_linux_sigtramp_cache): New function.
246         (sh_linux_sigreturn_init): New function.
247         (sh_linux_rt_sigreturn_init): New function.
248         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
249         patterns.
250         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
251         syscall codes.
252         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
253         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
254         (sh_linux_init_abi): Add init calls to register new tramp_frame
255         definitions under 32-bit SH, update comments.
256
257 2012-05-07  Pedro Alves  <palves@redhat.com>
258
259         PR gdb/10952
260
261         * amd64-linux-tdep.c: Include glibc-tdep.h.
262         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
263         gdbarch_skip_solib_resolver callback.
264
265 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
266
267         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
268         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
269         (show_auto_load_safe_path): Check any-directory by comparison with "/".
270         (add_auto_load_safe_path): Change the error message.
271         (_initialize_auto_load): Change the "safe-path" help text.
272         * configure: Regenerate
273         * configure.ac (--without-auto-load-safe-path): Set
274         WITH_AUTO_LOAD_SAFE_PATH to /.
275
276 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
277
278         * stap-probe.h: Do not include unecessary `probe.h'.
279
280 2012-05-05  Alan Modra  <amodra@gmail.com>
281
282         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
283         bfd_und_section_ptr.
284         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
285         and bfd_com_section_ptr.
286
287 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
288
289         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
290
291 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
292
293         * windows-nat.h (segment_register_p_ftype): New typedef.
294         (windows_set_segment_register_p): Add declaration.
295         * windows-nat.c (segment_register_p): New static global.
296         (windows_set_segment_register_p): New function.
297         (do_windows_fetch_inferior_registers): Add special handling
298         for segment registers.
299         * amd64-windows-nat.c: #include "amd64-tdep.h".
300         (amd64_windows_segment_register_p): New function.
301         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
302         * i386-windows-nat.c: #include "i386-tdep.h".
303         (i386_windows_segment_register_p): New function.
304         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
305
306 2012-05-04  Tristan Gingold  <gingold@adacore.com>
307
308         * printcmd.c (set_command): Emit a warning if the expression is not
309         an assignment.
310
311 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
312
313         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
314         Make static.
315
316 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
317
318         * stap-probe.c (stap_is_operator): Change declaration.
319         (stap_get_opcode): Change return value.
320         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
321         `stap_parse_argument_1'.
322
323 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
324
325         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
326         debug log.
327
328 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
329
330         Add two new methods global_block and static_block to gdb.Symtab
331         objects.
332         * NEWS (Python scripting): Add entry about the new methods.
333         * python/py-symtab.c (stpy_global_block): New function which
334         implements the gdb.Symtab.global_block() method.
335         (stpy_static_block): New function which implements the
336         gdb.Symtab.static_block() method.
337         (symtab_object_methods): Add entries for the two new methods.
338
339 2012-05-03  Doug Evans  <dje@google.com>
340
341         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
342         files.
343
344 2012-05-03  Yao Qi  <yao@codesourcery.com>
345
346         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
347         space.
348         (i386_process_record): Ditto.
349
350 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
351
352         * infcall.c (unwind_on_signal_p): Make static.
353
354 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
355
356         * sol-thread.c (solaris_pid_to_str): Make static.
357         (_initialize_sol_thread): Add prototype.
358
359 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
360
361         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
362
363 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
364
365         * MAINTAINERS: Remove myself.
366
367 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
368
369         Fix --without-auto-load-safe-path for MS-Windows host platform.
370         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
371
372 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
373
374         * gdb_curses.h: Undefine KEY_EVENT before including curses
375         headers.  Move "#undef MOUSE_MOVED" before any curses header
376         inclusion.
377
378 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
379
380         * features/i386/i386-mmx-linux.c: Regenerate.
381         * features/rs6000/powerpc-32.c: Likewise.
382         * features/rs6000/powerpc-32l.c: Likewise.
383         * features/rs6000/powerpc-403.c: Likewise.
384         * features/rs6000/powerpc-403gc.c: Likewise.
385         * features/rs6000/powerpc-405.c: Likewise.
386         * features/rs6000/powerpc-505.c: Likewise.
387         * features/rs6000/powerpc-601.c: Likewise.
388         * features/rs6000/powerpc-602.c: Likewise.
389         * features/rs6000/powerpc-603.c: Likewise.
390         * features/rs6000/powerpc-604.c: Likewise.
391         * features/rs6000/powerpc-64.c: Likewise.
392         * features/rs6000/powerpc-64l.c: Likewise.
393         * features/rs6000/powerpc-750.c: Likewise.
394         * features/rs6000/powerpc-860.c: Likewise.
395         * features/rs6000/powerpc-e500.c: Likewise.
396         * features/rs6000/powerpc-e500l.c: Likewise.
397         * features/rs6000/powerpc-isa205-32l.c: Likewise.
398         * features/rs6000/powerpc-isa205-64l.c: Likewise.
399         * features/rs6000/rs6000.c: Likewise.
400
401 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
402
403         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
404         variable.
405         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
406         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
407         (stap_parse_argument) <e>: Likewise.
408         (handle_stap_probe) <byte_order>: Likewise.
409
410 2012-04-30  Doug Evans  <dje@google.com>
411
412         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
413         init_and_read_dies_worker.  All callers updated.
414         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
415         replaced with init_cutu_and_read_dies.
416         (load_partial_comp_unit): Pass 1 for use_existing_cu.
417         (find_partial_die): Remove FIXME.  Don't free current CU.
418
419 2012-04-30  Sterling Augustine  <saugustine@google.com>
420
421         * contrib: New directory.
422         * contrib/test_pubnames_and_indexes.py: New file.
423
424 2012-04-30  Doug Evans  <dje@google.com>
425
426         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
427         All callers updated.
428         (init_cu_die_reader): Verify the section is non-empty.
429         (dwarf_decode_line_header): Don't dereference section->asection
430         until we know the section is present.
431
432 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
433
434         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
435         probes.
436
437 2012-04-29  Yao Qi  <yao@codesourcery.com>
438
439         * gdb-code-style.el: New hook gdb-markup-hook
440         and gdb-comment-hook.
441
442 2012-04-28  Doug Evans  <dje@google.com>
443
444         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
445         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
446         objfile->obfd.
447         * symfile.h (dwarf2_debug_sections): New member addr.
448         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
449         (ctx_no_get_addr_index): New function.
450         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
451         (ctx_no_get_addr_index): Declare.
452         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
453         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
454         (dwarf_expr_ctx_funcs): Update.
455         (needs_get_addr_index): New function.
456         (needs_frame_ctx_funcs): Update.
457         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
458         * dwarf2read.c: #include "gdbcore.h".
459         (dwarf2_per_objfile): New members addr, dwo_files.
460         (dwarf2_elf_names): Add entry for addr.
461         (struct dwo_section_names): New type.
462         (dwo_section_names): New static global.
463         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
464         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
465         old debug_types_section member updated to use this.
466         Rename member debug_types_section to info_or_types_section,
467         all uses updated.
468         (signatured_type): Rename member type_offset to type_offset_in_tu,
469         all uses updated.  New member type_offset_in_section.
470         (struct dwo_sections): New type.
471         (struct dwo_unit): New type.
472         (struct dwo_file): New type.
473         (die_reader_specs): New member dwo_file.
474         (dwarf2_locate_sections): Watch for .debug_addr.
475         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
476         (dwarf2_read_section): Get bfd of section from bfd's asection,
477         instead of objfile.
478         (create_cus_from_index): Initialize the_cu->info_or_types_section.
479         (create_signatured_type_table_from_index): Initialize
480         sig_type->info_or_types_section.
481         (dw2_get_file_names): Statement lists for type units with DWO files
482         live in the DWO file.
483         (create_debug_types_hash_table): New function.
484         (create_all_type_units): Rewrite.
485         (init_cu_die_reader): New arg dwo_file, all callers updated.
486         (init_and_read_dies_worker): Get section from
487         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
488         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
489         continue reading the CU/TU from there.
490         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
491         updated.  Get section from this_cu->info_or_types_section.
492         (create_all_comp_units): Initialize this_cu->info_or_types_section.
493         (skip_one_die): New cases DW_FORM_GNU_addr_index,
494         DW_FORM_GNU_str_index.
495         (hash_dwo_file, eq_dwo_file): New functions.
496         (allocate_dwo_file_hash_table): New function.
497         (hash_dwo_unit, eq_dwo_unit): New functions.
498         (allocate_dwo_unit_table): New function.
499         (dwarf2_locate_dwo_sections): New function.
500         (struct create_dwo_info_table_data): New type.
501         (create_debug_info_hash_table_reader): New function.
502         (create_debug_info_hash_table): New function.
503         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
504         (lookup_dwo_file): New function.
505         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
506         (free_dwo_file, free_dwo_file_cleanup): New functions.
507         (free_dwo_file_from_slot, free_dwo_files): New functions.
508         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
509         (dwarf2_record_block_ranges): Ditto.
510         (read_partial_die): Ditto.
511         (process_enumeration_scope): Update to use type_offset_in_section.
512         (read_full_die_1): New function.
513         (read_full_die): Rewrite.
514         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
515         DW_FORM_GNU_str_index.
516         (read_addr_index_1, read_addr_index): New functions.
517         (read_addr_index_from_leb128): New function.
518         (struct dwarf2_read_addr_index_data): New type.
519         (dwarf2_read_addr_index_reader): New function.
520         (dwarf2_read_addr_index): New function.
521         (read_str_index): New function.
522         (leb128_size): New function.
523         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
524         If processing a type unit from a DWO file, get the line section
525         from the DWO file.
526         (var_decode_location): Watch for DW_OP_GNU_addr_index.
527         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
528         DW_FORM_GNU_str_index.
529         (lookup_die_type): Check whether section offset of type's die is
530         known before looking it up.  Remove assert.  Condition can
531         legimately happen for inter-cu type references.
532         (dwarf_attr_name): Handle Fission attributes.
533         (dwarf_form_name): Handle Fission forms.
534         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
535         DW_FORM_GNU_str_index.
536         (follow_die_sig): Update to use type_offset_in_section.
537         (decode_locdesc): New case DW_OP_GNU_addr_index.
538         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
539         DW_FORM_GNU_str_index.
540         (cu_debug_loc_section): New function.
541         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
542         (dwarf2_per_objfile_free): Unmap .debug_addr section.
543         Free DWO files if present.
544         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
545
546         Refactor DIE reading.
547         * dwarf2read.c (dwarf2_per_objfile): Replace members
548         debug_info_type_hash and debug_types_type_hash with die_type_hash.
549         (die_reader_specs): New member "die_section".  Temporarily make
550         member "buffer" non-const, pending constifying all info_ptr uses.
551         (die_reader_func_ftype): New typedef.
552         (dw2_get_file_names_reader): New function.
553         (dw2_get_file_names): Rewrite.
554         (read_and_check_type_unit_head): Rename arg type_offset to
555         type_offset_in_tu.
556         (create_all_type_units): Improve debugging message.
557         Improve dummy type unit check.
558         (init_cu_die_reader): New arg "section".  All callers updated.
559         (init_and_read_dies_worker): New function.
560         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
561         (init_cutu_and_read_dies_no_follow): New function.
562         (init_cutu_and_read_dies_simple): New function.
563         (process_psymtab_comp_unit_reader): New function.
564         (process_psymtab_comp_unit): Delete args section,
565         is_debug_types_section.  Rewrite.  All callers updated.
566         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
567         All callers updated.  Rewrite.
568         (load_partial_comp_unit_reader): New function.
569         (load_partial_comp_unit): Rewrite.
570         (skip_children): New arg reader.  Delete args buffer, cu.
571         All callers updated.
572         (skip_one_die): New arg reader.  Delete args buffer, cu.
573         All callers updated.
574         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
575         All callers updated.
576         (load_full_comp_unit_reader): New function.
577         (load_full_comp_unit): Rewrite.
578         (read_comp_unit): Delete.
579         (read_die_and_children_1): Delete, contents moved ...
580         (read_die_and_children): ... here.
581         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
582         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
583         All callers updated.
584         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
585         All callers updated.
586         (find_partial_die): Rewrite load_all_dies support.
587         (read_attribute_value): New arg reader.  Delete args abfd, cu.
588         All callers updated.
589         (read_attribute): New arg reader.  Delete args abfd, cu.
590         All callers updated.
591         (load_full_type_unit): Add assert.
592         (read_signatured_type_reader): New function.
593         (read_signatured_type): Rewrite.
594         (free_stack_comp_unit): Remove call to age_cached_comp_units.
595         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
596         All callers updated.  Set per_cu->cu = NULL after freeing it.
597         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
598         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
599         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
600         (set_die_type): Update.
601         (get_die_type_at_offset): Update.
602         (read_file_scope): Call prepare_one_comp_unit.
603         (read_type_unit_scope): Ditto.
604         (prepare_one_comp_unit): Set producer if present.
605
606 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
607
608         * probe.c (compile_rx_or_error): Silence ARI warning about missing
609          gettext function on `error'.
610
611 2012-04-27  Doug Evans  <dje@google.com>
612
613         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
614         is empty.
615
616 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
617             Tom Tromey  <tromey@redhat.com>
618
619         * breakpoint.c (struct breakpoint_objfile_data)
620         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
621         <exception_probes>: New fields.
622         (free_breakpoint_probes): New function.
623         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
624         `_Unwind_DebugHook'.
625         (create_exception_master_breakpoint): Likewise.
626         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
627         * infrun.c: Including necessary header files for handling SystemTap
628         probes.
629         (handle_inferior_event): Handling longjmp breakpoint and exceptions
630         via SystemTap probes.
631         (check_exception_resume): Remove `func' argument.  Handle exception
632         unwinding breakpoint set via a SystemTap probe.
633         (insert_exception_resume_from_probe): New function.
634
635 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
636             Tom Tromey  <tromey@redhat.com>
637             Jan Kratochvil  <jan.kratochvil@redhat.com>
638
639         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
640         (COMMON_OBS): Likewise.
641         (HFILES_NO_SRCDIR): Add `probe'.
642         * NEWS: Mention support for static and SystemTap probes.
643         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
644         SystemTap probes' arguments parser.
645         * arm-linux-tdep.c: Including headers needed to perform the parsing
646         of SystemTap probes' arguments.
647         (arm_stap_is_single_operand): New function.
648         (arm_stap_parse_special_token): Likewise.
649         (arm_linux_init_abi): Initializing proper fields used by SystemTap
650         probes' arguments parser.
651         * ax-gdb.c (require_rvalue): Removing static declaration.
652         (gen_expr): Likewise.
653         * ax-gdb.h (gen_expr): Declaring function.
654         (require_rvalue): Likewise.
655         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
656         (bkpt_probe_breakpoint_ops): New variable.
657         (momentary_breakpoint_from_master): Set the `probe' value.
658         (add_location_to_breakpoint): Likewise.
659         (break_command_1): Using proper breakpoint_ops according to the
660         argument passed by the user in the command line.
661         (bkpt_probe_insert_location): New function.
662         (bkpt_probe_remove_location): Likewise.
663         (bkpt_probe_create_sals_from_address): Likewise.
664         (bkpt_probe_decode_linespec): Likewise.
665         (tracepoint_probe_create_sals_from_address): Likewise.
666         (tracepoint_probe_decode_linespec): Likewise.
667         (tracepoint_probe_breakpoint_ops): New variable.
668         (trace_command): Using proper breakpoint_ops according to the
669         argument passed by the user in the command line.
670         (initialize_breakpoint_ops): Initializing breakpoint_ops for
671         static probes on breakpoints and tracepoints.
672         * breakpoint.h (struct bp_location) <probe>: New field.
673         * cli-utils.c (skip_spaces_const): New function.
674         (extract_arg): Likewise.
675         * cli-utils.h (skip_spaces_const): Likewise.
676         (extract_arg): Likewise.
677         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
678         * configure.ac: Append `stap-probe.o' to be generated when ELF
679         support is present.
680         * configure: Regenerate.
681         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
682         * elfread.c: Include `probe.h' and `arch-utils.h'.
683         (probe_key): New variable.
684         (elf_get_probes): New function.
685         (elf_get_probe_argument_count): Likewise.
686         (elf_evaluate_probe_argument): Likewise.
687         (elf_compile_to_ax): Likewise.
688         (elf_symfile_relocate_probe): Likewise.
689         (stap_probe_key_free): Likewise.
690         (elf_probe_fns): New variable.
691         (elf_sym_fns): Add `sym_probe_fns' value.
692         (elf_sym_fns_lazy_psyms): Likewise.
693         (elf_sym_fns_gdb_index): Likewise.
694         (_initialize_elfread): Initialize objfile cache for static
695         probes.
696         * gdb_vecs.h (struct probe): New forward declaration.
697         (probe_p): New VEC declaration.
698         * gdbarch.c: Regenerate.
699         * gdbarch.h: Regenerate.
700         * gdbarch.sh (stap_integer_prefix): New variable.
701         (stap_integer_suffix): Likewise.
702         (stap_register_prefix): Likewise.
703         (stap_register_suffix): Likewise.
704         (stap_register_indirection_prefix): Likewise.
705         (stap_register_indirection_suffix): Likewise.
706         (stap_gdb_register_prefix): Likewise.
707         (stap_gdb_register_suffix): Likewise.
708         (stap_is_single_operand): New function.
709         (stap_parse_special_token): Likewise.
710         (struct stap_parse_info): Forward declaration.
711         * i386-tdep.c: Including headers needed to perform the parsing
712         of SystemTap probes' arguments.
713         (i386_stap_is_single_operand): New function.
714         (i386_stap_parse_special_token): Likewise.
715         (i386_elf_init_abi): Initializing proper fields used by SystemTap
716         probes' arguments parser.
717         * i386-tdep.h (i386_stap_is_single_operand): New function.
718         (i386_stap_parse_special_token): Likewise.
719         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
720         * mipsread.c (ecoff_sym_fns): Likewise.
721         * objfiles.c (objfile_relocate1): Support relocation for static
722         probes.
723         * parse.c (prefixify_expression): Remove static declaration.
724         (initialize_expout): Likewise.
725         (reallocate_expout): Likewise.
726         * parser-defs.h (initialize_expout): Declare function.
727         (reallocate_expout): Likewise.
728         (prefixify_expression): Likewise.
729         * ppc-linux-tdep.c: Including headers needed to perform the parsing
730         of SystemTap probes' arguments.
731         (ppc_stap_is_single_operand): New function.
732         (ppc_stap_parse_special_token): Likewise.
733         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
734         probes' arguments parser.
735         * probe.c: New file, for generic statically defined probe support.
736         * probe.h: Likewise.
737         * s390-tdep.c: Including headers needed to perform the parsing of
738         SystemTap probes' arguments.
739         (s390_stap_is_single_operand): New function.
740         (s390_gdbarch_init): Initializing proper fields used by SystemTap
741         probes' arguments parser.
742         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
743         * stap-probe.c: New file, for SystemTap probe support.
744         * stap-probe.h: Likewise.
745         * symfile.h: Include `gdb_vecs.h'.
746         (struct sym_probe_fns): New struct.
747         (struct sym_fns) <sym_probe_fns>: New field.
748         * symtab.c (init_sal): Initialize `probe' field.
749         * symtab.h (struct probe): Forward declaration.
750         (struct symtab_and_line) <probe>: New field.
751         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
752         locations.
753         (stop_tracing): Likewise.
754         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
755
756 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
757             Tom Tromey  <tromey@redhat.com>
758
759         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
760         and to compile agent expressions.
761         * infrun.c (siginfo_make_value): New argument `ignore'.
762         (siginfo_funcs): New struct.
763         (_initialize_infrun): New argument when calling
764         `create_internalvar_type_lazy'.
765         * thread.c (thread_id_make_value): New argument `ignore'.
766         (thread_funcs): New struct.
767         (_initialize_thread): New argument when calling
768         `create_internalvar_type_lazy'.
769         * tracepoint.c (sdata_make_value): New argument `ignore'.
770         (sdata_funcs): New struct.
771         (_initialize_tracepoint): New argument when calling
772         `create_internalvar_type_lazy'.
773         * value.c (make_value): New struct.
774         (create_internalvar_type_lazy): New argument `data'.
775         (compile_internalvar_to_ax): New function.
776         (value_of_internalvar): Properly handling `make_value' case.
777         (clear_internalvar): Likewise.
778         (show_convenience): Adding `TRY_CATCH' block.
779         * value.h (internalvar_make_value): Delete, replace by...
780         (struct internalvar_funcs): ... this.
781         (create_internalvar_type_lazy) <fun>: Delete argument.
782         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
783         (compile_internalvar_to_ax): New function.
784         * windows-tdep.c (tlb_make_value): New argument `ignore'.
785         (tlb_funcs): New struct.
786         (_initialize_windows_tdep): New argument when calling
787         `create_internalvar_type_lazy'.
788
789 2012-04-27  Mark Wielaard  <mjw@redhat.com>
790
791         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
792         see whether it is an address or a constant offset from DW_AT_low_pc.
793         (dwarf2_record_block_ranges): Likewise.
794         (read_partial_die): Likewise.
795
796 2012-04-26  Mark Wielaard  <mjw@redhat.com>
797
798         * MAINTAINERS (Write After Approval): Add myself to the list.
799
800 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
801
802         * proc-utils.h (proc_prettyprint_signalset): New prototype.
803         (proc_prettyprint_signal): Likewise.
804         (proc_prettyprint_faultset): Likewise.
805         (proc_prettyprint_fault): Likewise.
806         (proc_prettyprint_actionset): Likewise.
807         (proc_prettyprint_flags): Move to new proc-flags.c section.
808         (proc_prettyfprint_flags): New prototype.
809         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
810         (proc_syscall, proc_cursig): Likewise.
811         (proc_set_kill_on_last_close): Likewise.
812         (proc_unset_kill_on_last_close): Likewise.
813         (proc_set_watchpoint): Make static.
814         (proc_delete_dead_threads): Likewise.
815         (procfs_set_watchpoint): Likewise.
816         (_initialize_procfs): Add prototype.
817         * proc-events.c: Include proc-utils.h.
818         (init_syscall_table): Make static.
819         * proc-api.c (_initialize_proc_api): Add prototype.
820         * proc-flags.c: Include proc-utils.h.
821
822 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
823
824         * configure.ac: Add AC_ARG_PROGRAM.
825         * configure: Regenerate.
826
827 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
828
829         Fix DW_AT_lower_bound defaults for DWARF-4+.
830         * dwarf2read.c (read_subrange_type): Remove initialization of low and
831         high.  New variable low_default_is_valid.  Implement DWARF-4+
832         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
833         no default by the DWARF standard.
834
835 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
836             Maciej W. Rozycki  <macro@codesourcery.com>
837
838         * infrun.c (handle_inferior_event): Move the check for return
839         trampolines ahead of the check for function trampolines.
840         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
841         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
842         (mips_str_mips16_ret_stub): Likewise.
843         (mips_str_call_fp_stub): Likewise.
844         (mips_str_call_stub): Likewise.
845         (mips_str_fn_stub): Likewise.
846         (mips_str_pic): Likewise.
847         (mips_in_frame_stub): New function.
848         (mips_unwind_pc): Return the return address rather than the PC
849         if the PC of an intermediate frame is inside a call thunk.
850         (mips_is_stub_suffix): New function.
851         (mips_is_stub_mode): Likewise.
852         (mips_get_mips16_fn_stub_pc): Likewise.
853         (mips_skip_mips16_trampoline_code): Update to handle all the
854         currently generated stub types.  Don't recurse into __fn_stub
855         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
856         Use cooked register accesses.
857         (mips_in_return_stub): Reintroduce function.
858         (mips_skip_trampoline_code): Traverse trampolines recursively.
859         (mips_gdbarch_init): Handle MIPS16 return trampolines.
860
861 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
862
863         GDB 7.4.1 released.
864
865 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
866
867         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
868         * features/arm-with-m-vfp-d16.xml: New file. Describes
869         Cortex-M with VFPv4-sp-d16 FPU register layout.
870         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
871         * features/arm-with-m-vfp-d16.c: New. Generated from above.
872         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
873         (arm-register_g_packet_guesses): Add vfp-d16 guess.
874         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
875
876 2012-04-25  Doug Evans  <dje@google.com>
877
878         * cli/cli-decode.c (print_doc_line): Use stream instead of
879         current_uiout.
880
881 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
882
883         * features/arm-with-iwmmxt.c: Regenerate.
884         * features/arm-with-m-fpa-layout.c: Likewise.
885         * features/arm-with-m.c: Likewise.
886         * features/arm-with-neon.c: Likewise.
887         * features/arm-with-vfpv2.c: Likewise.
888         * features/arm-with-vfpv3.c: Likewise.
889         * features/mips-dsp-linux.c: Likewise.
890         * features/mips-linux.c: Likewise.
891         * features/mips64-dsp-linux.c: Likewise.
892         * features/mips64-linux.c: Likewise.
893         * features/s390-linux32.c: Likewise.
894         * features/s390-linux32v1.c: Likewise.
895         * features/s390-linux32v2.c: Likewise.
896         * features/s390-linux64.c: Likewise.
897         * features/s390-linux64v1.c: Likewise.
898         * features/s390-linux64v2.c: Likewise.
899         * features/s390x-linux64.c: Likewise.
900         * features/s390x-linux64v1.c: Likewise.
901         * features/s390x-linux64v2.c: Likewise.
902         * features/tic6x-c62x-linux.c: Likewise.
903         * features/tic6x-c62x.c: Likewise.
904         * features/tic6x-c64x-linux.c: Likewise.
905         * features/tic6x-c64x.c: Likewise.
906         * features/tic6x-c64xp-linux.c: Likewise.
907         * features/tic6x-c64xp.c: Likewise.
908         * target-descriptions.c: Only generate `field_type' and `type'
909         variables when needed.
910
911 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
912
913         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
914
915 2012-04-25  Doug Evans  <dje@google.com>
916
917         Initial pass at Go language support.
918         * NEWS: Mention Go.
919         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
920         go-valprint.c.
921         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
922         (YYFILES): Add go-exp.c.
923         (YYOBJ): Add go-exp.o.
924         (local-maintainer-clean): Delete go-exp.c.
925         * defs.h (enum language): Add language_go.
926         * dwarf2read.c: #include "go-lang.h".
927         (fixup_go_packaging): New function.
928         (process_full_comp_unit): Call it when processing Go CUs.
929         (dwarf2_physname): Add Go support.
930         (read_file_scope): Handle missing language spec for GNU Go.
931         (set_cu_language): Handle DW_LANG_Go.
932         * go-exp.y: New file.
933         * go-lang.h: New file.
934         * go-lang.c: New file.
935         * go-typeprint.c: New file.
936         * go-valprint.c: New file.
937         * symtab.c: #include "go-lang.h".
938         (symbol_set_language): Handle language_go.
939         (symbol_find_demangled_name, symbol_set_names): Ditto.
940         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
941
942 2012-04-24  Jim Meyering  <meyering@redhat.com>
943
944         avoid a few strncpy-induced buffer overruns
945         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
946         fname and psargs before trying to concatenate.
947         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
948         "name" before applying strchr.
949
950 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
951
952         * CONTRIBUTE: Use unified diff instead of context diff when
953         generating patches.
954
955 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
956
957         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
958         code.  Handle JR.HB correctly.
959
960 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
961
962         * mips-tdep.c
963         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
964         with the other MIPS16 helpers.
965
966 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
967
968         * observer.sh: Conditionally declare `args', thus cleaning up
969         unused instances of this variable.
970
971 2012-04-24  Yao Qi  <yao@codesourcery.com>
972
973         Revert this patch to allow breakpoint always-inserted
974         in record target.
975         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
976         * breakpoint.c: Include record.h.
977         (breakpoints_always_inserted_mode): Return false when the record
978         target is in use.
979
980         * breakpoint.c (iterate_over_bp_locations): New.
981         * breakpoint.h: Declare.
982         New typedef walk_bp_location_callback.
983         * record.c (record_open): Call record_init_record_breakpoints.
984         (record_sync_record_breakpoints): New.
985         (record_init_record_breakpoints): New.
986         * NEWS: Mention supporting breakpoint always-inserted mode in
987         record target.
988
989 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
990
991         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
992         any thread.
993
994 2012-04-24  Yao Qi  <yao@codesourcery.com>
995
996         * breakpoint.c (ep_is_catchpoint): Renamed to ...
997         (is_catchpoint): ... it.
998         (print_one_breakpoint_location): Caller update.
999         * breakpoint.h: Update declaration.
1000
1001 2012-04-23  David S. Miller  <davem@davemloft.net>
1002
1003         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1004
1005 2012-04-23  Tom Tromey  <tromey@redhat.com>
1006
1007         * buildsym.c (add_free_pendings): Remove.
1008         * buildsym.h (add_free_pendings): Remove.
1009
1010 2012-04-23  Doug Evans  <dje@google.com>
1011
1012         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1013         attr.u.unsnd instead of attr.u.addr.
1014         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1015         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1016         DW_FORM_ref_udata.
1017         (dump_die_shallow): Update cases DW_FORM_ref_addr,
1018         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
1019         DW_FORM_ref_udata.
1020         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1021
1022 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
1023
1024         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1025         (mips_o32_return_value): Likewise.
1026         (mips_o64_return_value): Likewise.
1027
1028 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
1029
1030         * ada-lang.c (ada_evaluate_subexp): Add cases for
1031         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1032         their treatment in eval.c.
1033
1034 2012-04-21  David S. Miller  <davem@davemloft.net>
1035
1036         * sparc-tdep.c (X_DISP10): Define.
1037         (sparc_analyze_control_transfer): Handle compare-and-branch.
1038
1039 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
1040
1041         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1042         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1043
1044 2012-04-20  Nigel Stephens  <nigel@mips.com>
1045             Maciej W. Rozycki  <macro@codesourcery.com>
1046
1047         * mips-tdep.c (mips_float_register_p): New function.
1048         (mips_convert_register_float_case_p): Use mips_float_register_p.
1049         (mips_register_type): Likewise.
1050         (mips_print_register): Likewise.
1051         (print_gp_register_row): Likewise.
1052         (mips_print_registers_info): Likewise.
1053
1054 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
1055
1056         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1057         of mips16 symbols.
1058
1059 2012-04-20  Andrew Pinski  <apinski@cavium.com>
1060
1061         * MAINTAINERS (Write After Approval): Add myself to the list.
1062
1063 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1064
1065         * MAINTAINERS: Update my e-mail address.
1066
1067 2012-04-20  Pedro Alves  <palves@redhat.com>
1068
1069         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1070         $srcdir.
1071         * configure: Regenerate.
1072
1073 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1074
1075         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
1076         declaration.
1077         * gdb_vecs.h: Declare `const_char_ptr' VEC.
1078
1079 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1080
1081         Fix compilation compatibility with python-2.4
1082         * python/py-type.c (convert_field): Cast ADDRSTRING for
1083         PyObject_SetAttrString as non-const.  New comment.
1084
1085 2012-04-19  Tom Tromey  <tromey@redhat.com>
1086
1087         * top.c (quit_target): Use all_cleanups.
1088         * main.c (captured_command_loop): Use all_cleanups.
1089         * exceptions.c (throw_exception): Use all_cleanups.
1090
1091 2012-04-19  Pedro Alves  <palves@redhat.com>
1092
1093         * Makefile.in (GNULIB_BUILDDIR): New.
1094         (LIBGNU, INCGNU, GNULIB_H): Adjust.
1095         (SUBDIRS): Add $(GNULIB_BUILDDIR).
1096         (CLEANDIRS). Remove gnulib/import.
1097         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1098         (all-lib): Ditto.
1099         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1100         (gnulib/import/Makefile): Replace gnulib/import with
1101         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
1102         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1103         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
1104         acx_configure_dir.m4.
1105         * acinclude.m4: Include acx_configure_dir.m4.
1106         * acx_configure_dir.m4: New file.
1107         * aclocal.m4: Regenerate.
1108         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1109         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
1110         (GNULIB): New variable.
1111         (GNULIB_STDINT_H): Adjust.
1112         (AC_OUTPUT): Don't output gnulib/Makefile.
1113         * gdb/defs.h: Include build-gnulib/config.h.
1114         * aclocal.m4: Regenerate.
1115         * config.in: Regenerate.
1116         * configure: Regenerate.
1117
1118         * gnulib/Makefile.in: New file.
1119         * gnulib/configure.ac: New file.
1120         * gnulib/aclocal.m4: New file.
1121         * gnulib/config.in: New file.
1122         * gnulib/configure: New file.
1123         * gnulib/: Re-run gnulib-tool to adjust.
1124
1125 2012-04-19  Doug Evans  <dje@google.com>
1126
1127         * cleanups.h (struct cleanup): Move to cleanups.c.
1128         (make_cleanup_dtor_ftype): New typedef.
1129         (make_cleanup_dtor): Use it.
1130         (ALL_CLEANUPS): Replace with ...
1131         (all_cleanups): ... this.  Declare.  All uses updated.
1132         * cleanups.c: #include "gdb_assert.h".
1133         (sentinel_cleanup): New static global.
1134         (SENTINEL_CLEANUP): Define.
1135         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1136         (make_my_cleanup2): Assert result is non-NULL.
1137         (all_cleanups): New function.
1138         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1139         of NULL.
1140
1141 2012-04-19  Pedro Alves  <palves@redhat.com>
1142
1143         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1144         Adjust paths to gnulib imported files.
1145
1146 2012-04-19  Pedro Alves  <palves@redhat.com>
1147
1148         * gnulib/: Move whole directory ...
1149         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1150         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1151         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1152         (aclocal_m4_deps): Adjust.
1153         * aclocal.m4: Regenerate.
1154         * configure: Regenerate.
1155         * configure.ac: Adjust AC_OUTPUT output.
1156
1157 2012-04-19  Yao Qi  <yao@codesourcery.com>
1158
1159         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1160         (vec.o): New rule.
1161         * vec.c: Move it ...
1162         * common/vec.c: ... here.
1163         * vec.h: Move it ...
1164         * common/vec.h: ... here.
1165
1166 2012-04-19  Yao Qi  <yao@codesourcery.com>
1167
1168         * gdb-code-style.el: New.
1169
1170 2012-04-18  Pedro Alves  <palves@redhat.com>
1171
1172         Update gnulib from latest git.
1173         (639ea5ae15e39fe48d43e04864b2997301e4b969)
1174
1175         * gnulib/Makefile.am: Update.
1176         * gnulib/dummy.c: Update.
1177         * gnulib/extra/arg-nonnull.h: Update.
1178         * gnulib/extra/c++defs.h: Update.
1179         * gnulib/extra/update-copyright: Update.
1180         * gnulib/extra/warn-on-use.h: Update.
1181         * gnulib/inttypes.in.h: Update.
1182         * gnulib/m4/00gnulib.m4: Update.
1183         * gnulib/m4/extensions.m4: Update.
1184         * gnulib/m4/gnulib-cache.m4: Update.
1185         * gnulib/m4/gnulib-common.m4: Update.
1186         * gnulib/m4/gnulib-comp.m4: Update.
1187         * gnulib/m4/gnulib-tool.m4: Update.
1188         * gnulib/m4/include_next.m4: Update.
1189         * gnulib/m4/inttypes-pri.m4: Update.
1190         * gnulib/m4/inttypes.m4: Update.
1191         * gnulib/m4/longlong.m4: Update.
1192         * gnulib/m4/memchr.m4: Update.
1193         * gnulib/m4/memmem.m4: Update.
1194         * gnulib/m4/mmap-anon.m4: Update.
1195         * gnulib/m4/multiarch.m4: Update.
1196         * gnulib/m4/onceonly.m4: Update.
1197         * gnulib/m4/stddef_h.m4: Update.
1198         * gnulib/m4/stdint.m4: Update.
1199         * gnulib/m4/string_h.m4: Update.
1200         * gnulib/m4/warn-on-use.m4: Update.
1201         * gnulib/m4/wchar_h.m4: Update.
1202         * gnulib/m4/wchar_t.m4: Update.
1203         * gnulib/m4/wint_t.m4: Update.
1204         * gnulib/memchr.c: Update.
1205         * gnulib/memmem.c: Update.
1206         * gnulib/stddef.in.h: Update.
1207         * gnulib/stdint.in.h: Update.
1208         * gnulib/str-two-way.h: Update.
1209         * gnulib/string.in.h: Update.
1210         * gnulib/wchar.in.h: Update.
1211
1212         * gnulib/extra/arg-nonnull.h: Delete.
1213         * gnulib/extra/c++defs.h: Delete.
1214         * gnulib/extra/warn-on-use.h: Delete.
1215         * gnulib/m4/wchar_h.m4: Delete.
1216         * gnulib/m4/wint_t.m4: Delete.
1217         * gnulib/wchar.in.h: Delete.
1218
1219         * gnulib/extra/snippets/arg-nonnull.h: New.
1220         * gnulib/extra/snippets/c++defs.h: New.
1221         * gnulib/extra/snippets/warn-on-use.h: New.
1222
1223         * aclocal.m4: Regenerate.
1224         * config.in: Regenerate.
1225         * configure: Regenerate.
1226         * gnulib/Makefile.in: Regenerate.
1227
1228 2012-04-18  Pedro Alves  <palves@redhat.com>
1229
1230         Reimport the update-copyright module from gnulib
1231         (250b80067c1e1d8faa0c42fb572f721975b929c5).
1232
1233         * configure: Regenerate.
1234         * gnulib/Makefile.am: Update.
1235         * gnulib/Makefile.in: Regenerate.
1236         * gnulib/extra/update-copyright: Update.
1237         * gnulib/m4/gnulib-cache.m4: Update.
1238         * gnulib/m4/gnulib-comp.m4: Update.
1239
1240 2012-04-18  Tristan Gingold  <gingold@adacore.com>
1241
1242         * configure.ac (aix): Put -lpthread into libs.
1243         * configure: Regenerate.
1244
1245 2012-04-18  Tom Tromey  <tromey@redhat.com>
1246
1247         * linespec.c (convert_linespec_to_sals): Don't use
1248         SYMBOL_OBJ_SECTION.
1249         (compare_msymbols): Arguments are minsym_and_objfile, not
1250         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
1251
1252 2012-04-18  Pedro Alves  <palves@redhat.com>
1253
1254         Revert gnulib/ part of:
1255         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
1256         Copyright year update in most files (performed by copyright.sh).
1257
1258 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1259
1260         Fix 64-bit constants on 32-bit hosts.
1261         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1262         from unsigned long to ULONGEST.
1263         (read_signed_leb128): Change declaration return type from long to
1264         LONGEST.
1265         (dwarf2_const_value_attr): Change declaration parameter value from long
1266         to LONGEST.
1267         (dwarf2_compute_name): Change variable value from long to LONGEST.
1268         (read_unsigned_leb128): Change return type, variable result and some
1269         casts from unsigned long to ULONGEST.
1270         (read_signed_leb128): Change return type, variable result and some
1271         casts from long to LONGEST.
1272         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1273         value from long to LONGEST.
1274         (dwarf2_const_value): Change variable value from long to LONGEST.
1275         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1276         plongest and hex_string.
1277         * symtab.h (struct general_symbol_info): Change ivalue from long to
1278         LONGEST, remove the comment.
1279         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1280         Change SYMBOL_VALUE format strings to use plongest and hex_string.
1281
1282 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1283
1284         PR symtab/7259:
1285         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1286         * ada-lang.c (ada_discrete_type_high_bound)
1287         (ada_discrete_type_low_bound): Fix function comment.  Use
1288         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1289         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1290         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1291         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1292         Use TYPE_FIELD_ENUMVAL.
1293         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1294         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1295         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1296         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
1297         TYPE_CODE_ENUM.
1298         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1299         * dwarf2read.c (process_enumeration_scope): Likewise.
1300         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1301         field.bitpos.
1302         (class StructMainTypePrettyPrinter): Support also
1303         FIELD_LOC_KIND_ENUMVAL.
1304         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1305         TYPE_CODE_ENUM.
1306         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1307         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1308         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1309         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
1310         field enumval.
1311         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1312         accommodate enumval.
1313         (struct call_site): Adjust loc_kind to accommodate enumval.
1314         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1315         (TYPE_FIELD_ENUMVAL): New macros.
1316         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1317         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1318         TYPE_CODE_ENUM.
1319         * p-typeprint.c (pascal_type_print_base): Likewise.
1320         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1321         enumval.
1322         * python/lib/gdb/types.py (make_enum_dict): Likewise.
1323         * python/py-type.c (convert_field): New variable addrstring.  Use
1324         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1325         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1326         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1327         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1328         TYPE_CODE_ENUM.
1329         * valprint.c (generic_val_print): Likewise.
1330
1331 2012-04-17  Doug Evans  <dje@google.com>
1332
1333         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1334
1335         * dwarf2read.c: Whitespace fixes.
1336         (lookup_signatured_type): Tweak comment.
1337         (get_die_type_at_offset): Fix comment.
1338
1339 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
1340
1341         * xcoffread.c (xcoff_secnum_to_sections): New function.
1342         (secnum_to_section, secnum_to_bfd_section): Reimplement
1343         using xcoff_secnum_to_sections.  Rename "secnum" parameter
1344         into "n_scnum".
1345         (RECORD_MINIMAL_SYMBOL): Delete.
1346         (record_minimal_symbol): New function.
1347         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1348         by call to record_minimal_symbol and set misc_func_recorded
1349         to 1.  Set last_csect_sec to the XCOFF section index instead
1350         of GDB's section_offset index.  Update calls to
1351         prim_record_minimal_symbol_and_info to pass the BFD section
1352         as well.
1353
1354 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
1355
1356         * xcoffread.c (read_xcoff_symtab): Delete variables
1357         last_csect_val and last_csect_sec and associated code.
1358
1359 2012-04-17  Doug Evans  <dje@google.com>
1360
1361         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1362         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1363         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1364         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1365
1366         * cleanups.h: New file.
1367         * cleanups.c: New file.
1368         * Makefile.in (SFILES): Add cleanups.c.
1369         (HFILES_NO_SRCDIR): Add cleanups.h.
1370         (COMMON_OBS): Add cleanups.o.
1371         * defs.h (struct cleanup): Moved to cleanups.h.
1372         (do_cleanups,do_final_cleanups): Ditto.
1373         (discard_cleanups,discard_final_cleanups): Ditto
1374         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1375         (save_cleanups,save_final_cleanups): Ditto.
1376         (restore_cleanups,restore_final_cleanups): Ditto.
1377         (null_cleanup): Ditto.
1378         (make_my_cleanup,make_my_cleanup2): Ditto.
1379         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1380         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1381         (do_cleanups,do_final_cleanups): Ditto.
1382         (discard_cleanups,discard_final_cleanups): Ditto
1383         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1384         (save_cleanups,save_final_cleanups): Ditto.
1385         (restore_cleanups,restore_final_cleanups): Ditto.
1386         (null_cleanup): Ditto.
1387         (make_my_cleanup,make_my_cleanup2): Ditto.
1388         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1389
1390         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1391         make_my_cleanup.
1392         (make_cleanup_dyn_string_delete): Ditto.
1393         (make_cleanup_ui_file_delete): Ditto.
1394         (make_cleanup_ui_out_redirect_pop): Ditto.
1395         (make_cleanup_free_section_addr_info): Ditto.
1396         (make_cleanup_restore_integer): Ditto.
1397         (make_cleanup_unpush_target): Ditto.
1398         (make_cleanup_value_free_to_mark): Ditto.
1399         (make_cleanup_value_free): Ditto.
1400         (make_cleanup_free_so): Ditto.
1401
1402 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1403
1404         New option "set debug auto-load".
1405         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1406         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1407         (auto_load_safe_path_vec_update)
1408         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1409         if DEBUG_AUTO_LOAD.
1410         (file_is_auto_load_safe): New parameters debug_fmt and ....
1411         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1412         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1413         caller by explanatory string.
1414         (_initialize_auto_load): Register "set debug auto-load".
1415         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1416         and ....
1417         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1418         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1419         by explanatory string.
1420         * main.c (captured_main): Likewise.
1421         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1422         (source_section_scripts): Likewise.
1423
1424 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1425
1426         New option "set auto-load safe-path".
1427         * NEWS: New commands "set auto-load safe-path"
1428         and "show auto-load safe-path".
1429         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1430         (auto_load_safe_path, auto_load_safe_path_vec)
1431         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1432         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1433         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1434         (source_gdb_script_for_objfile): New variable is_safe.  Call
1435         file_is_auto_load_safe.  Return if it is not.
1436         (struct loaded_script): New field loaded.
1437         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
1438         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
1439         output "Missing" to "No".
1440         (_initialize_auto_load): New variable cmd.  Initialize
1441         auto_load_safe_path.  Register "set auto-load safe-path",
1442         "show auto-load safe-path" and "add-auto-load-safe-path".
1443         * auto-load.h (maybe_add_script): Add parameter loaded.
1444         (file_is_auto_load_safe): New declaration.
1445         * config.in: Regenerate.
1446         * configure: Regenerate.
1447         * configure.ac: New parameters --with-auto-load-safe-path
1448         and --without-auto-load-safe-path.
1449         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1450         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1451         * main.c (captured_main): Check file_is_auto_load_safe for
1452         LOCAL_GDBINIT.
1453         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1454         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
1455         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
1456         not.
1457
1458 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1459
1460         auto-load: Implementation.
1461         * NEWS: New descriptions for "info auto-load",
1462         "info auto-load gdb-scripts", "info auto-load python-scripts",
1463         "info auto-load local-gdbinit" and "info auto-load libthread-db".
1464         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1465         and "show auto-load-scripts".  New description for "set auto-load",
1466         "show auto-load", "set auto-load gdb-scripts",
1467         "show auto-load gdb-scripts", "set auto-load python-scripts",
1468         "show auto-load python-scripts", "set auto-load local-gdbinit",
1469         "show auto-load local-gdbinit", "set auto-load libthread-db" and
1470         "show auto-load libthread-db".
1471         * auto-load.c: Remove include python/python-internal.h.  Add includes
1472         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1473         cli/cli-setshow.h.
1474         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1475         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1476         (gdbpy_global_auto_load): Rename to ...
1477         (global_auto_load): ... here.
1478         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1479         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1480         (script_language_gdb, source_gdb_script_for_objfile): New.
1481         (struct loaded_script): New field language.
1482         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1483         LANGUAGE.
1484         (maybe_add_script): Add parameter language.  Drop redundant
1485         entry.full_path initialization.  Initialize entry.language and
1486         (*slot)->language.
1487         (auto_load_objfile_script): Change parameter suffix to language.
1488         Remove the call of maybe_add_script.
1489         Call language->source_script_for_objfile.
1490         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1491         New.
1492         (collect_matching_scripts): Adjust it for
1493         struct collect_matching_scripts_data.
1494         (auto_load_info_scripts_pattern_nl): New variable.
1495         (info_auto_load_scripts): Rename to ...
1496         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
1497         for struct collect_matching_scripts_data.
1498         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1499         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1500         (auto_load_show_cmdlist_get, info_auto_load_cmd)
1501         (auto_load_info_cmdlist_get): New.
1502         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1503         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
1504         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1505         "info auto-load local-gdbinit".
1506         * auto-load.h (struct script_language): New.
1507         (gdbpy_global_auto_load): Rename to ...
1508         (global_auto_load): ... here.
1509         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1510         (auto_load_local_gdbinit_loaded): New declarations.
1511         (maybe_add_script): New parameter language.
1512         (auto_load_objfile_script): Change parameter suffix to language.
1513         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1514         (auto_load_info_scripts, auto_load_set_cmdlist_get)
1515         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1516         declarations.
1517         * linux-thread-db.c: Include auto-load.h and ctype.h.
1518         (auto_load_thread_db, show_auto_load_thread_db): New.
1519         (struct thread_db_info): New field filename.
1520         (delete_thread_db_info): Call xfree for FILENAME.
1521         (try_thread_db_load): Initialize FILENAME.
1522         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1523         if !AUTO_LOAD_THREAD_DB.
1524         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1525         (_initialize_thread_db): Install auto_load_thread_db
1526         as "set auto-load libthread-db" and install info_auto_load_libthread_db
1527         as "info auto-load libthread-db".
1528         * main.c (captured_main): Rename gdbpy_global_auto_load to
1529         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1530         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1531         (print_gdb_help): Extend the help for 'local init file'.
1532         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1533         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1534         (auto_load_scripts): Rename to ...
1535         (auto_load_python_scripts): ... here, update the comment.
1536         (gdbpy_load_auto_script_for_objfile): New declaration.
1537         (show_auto_load_python_scripts, script_language_python)
1538         (gdbpy_load_auto_script_for_objfile): New.
1539         (source_section_scripts): Refactor the code.
1540         (load_auto_scripts_for_objfile): Rename to ...
1541         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1542         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1543         (info_auto_load_python_scripts): New.
1544         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1545         Rename "set auto-load-scripts" to "set auto-load python-scripts".
1546         Register "set auto-load-scripts" as its deprecated alias.  Register
1547         "info auto-load python-scripts".  Register "info auto-load-scripts" as
1548         its deprecated alias.
1549         (load_auto_scripts_for_objfile): Rename to ...
1550         (gdbpy_load_auto_scripts_for_objfile): ... here.
1551         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1552         (gdbpy_load_auto_scripts_for_objfile): ... here.
1553
1554 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1555
1556         auto-load: Move files.
1557         * Makefile.in (SFILES): Add auto-load.c.
1558         (HFILES_NO_SRCDIR): Add auto-load.h.
1559         (COMMON_OBS): Add auto-load.o.
1560         (distclean): Change .gdbinit for gdb-gdb.gdb.
1561         * auto-load.c: New file, with parts from python/py-auto-load.c.
1562         * auto-load.h: New file, with parts from python/python.h.
1563         * configure: Regenerate.
1564         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1565         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1566         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1567         * main.c: Include auto-load.h.
1568         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1569         command.h, observer.h and progspace.h to auto-load.c.  Add include
1570         auto-load.h.
1571         (gdbpy_global_auto_load, struct auto_load_pspace_info)
1572         (struct loaded_script, auto_load_pspace_data)
1573         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1574         (hash_loaded_script_entry, eq_loaded_script_entry)
1575         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1576         (maybe_add_script): Move to auto-load.c.
1577         (source_section_scripts): Change maybe_add_script parameters passing,
1578         use script_not_found_warning_print.
1579         (clear_section_scripts, auto_load_objfile_script)
1580         (auto_load_new_objfile, loaded_script_ptr)
1581         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1582         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1583         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1584         auto_load_new_objfile and info_auto_load_scripts initizations to
1585         auto-load.c.
1586         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1587
1588 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1589
1590         Code cleanup.
1591         * charset.c (find_charset_names): Remove variables ix and elt.
1592         Use free_char_ptr_vec.
1593         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1594         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
1595         debugdir_end.  New variable debugdir_len.
1596         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1597         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1598         declarations.
1599         * progspace.c (clear_program_space_solib_cache): Remove variables ix
1600         and elt.  Use free_char_ptr_vec.
1601         * source.c (add_path): Remove variables argv, arg and argv_index.
1602         New variables dir_vec, back_to, ix and name.
1603         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
1604         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
1605         no longer expecting DIRNAME_SEPARATOR.
1606         (openp): Remove variable p, p1 and len.  New variables dir_vec,
1607         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
1608         no longer expecting DIRNAME_SEPARATOR.
1609         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1610         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
1611         debugdir_end.
1612         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1613         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1614         (dirnames_to_char_ptr_vec): New functions.
1615
1616 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1617
1618         Code cleanup.
1619         * source.c (add_path): Remove always true conditional 'p == 0' and
1620         unindent its code block.
1621
1622 2012-04-17  Pedro Alves  <palves@redhat.com>
1623
1624         * gdbtypes.h (FIELD_BITPOS): Rename to ...
1625         (FIELD_BITPOS_LVAL): ... this.
1626         (FIELD_BITPOS): New.
1627         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1628         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1629         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1630         SET_FIELD_BITPOS.
1631         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1632         SET_FIELD_BITPOS.
1633         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1634         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1635         * target-descriptions.c (tdesc_gdb_type): Adjust to use
1636         SET_FIELD_BITPOS.
1637
1638 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1639
1640         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1641         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1642         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1643         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1644         * jv-lang.c (java_link_class_type): Likewise, once.
1645         * stabsread.c (read_enum_type): Likewise.
1646
1647 2012-04-16  Yao Qi  <yao@codesourcery.com>
1648
1649         * common/agent.c (agent_run_command): Add one more parameter `len'.
1650         Update callers.
1651         * common/agent.h: Update declaration.
1652         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1653         Update.
1654         (linux_child_static_tracepoint_markers_by_strid): Ditto.
1655
1656 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
1657
1658         PR mi/13393
1659         * value.c (value_actual_type): New function.
1660         * value.h (value_actual_type): New declaration.
1661         * varobj.c (update_type_if_necessary): New function.
1662         (varobj_create): Call value_actual_type instead of
1663         value_type.
1664         (install_dynamic_child): distinct changed and type changed MI variable
1665         objects.
1666         (update_dynamic_varobj_children): Updated for install_dynamic_child
1667         change.  All callers updated.
1668         (varobj_update): Support for MI variable object type change if
1669         the value changed and RTTI is used to determine the type.
1670         (create_child_with_value): Call value_actual_type instead of
1671         value_type.
1672         (adjust_value_for_child_access): Extended with a new parameter which
1673         specify whether the given value should be casted to enclosing type.
1674         All callers updated.
1675
1676 2012-04-14  Yao Qi  <yao@codesourcery.com>
1677
1678         Import gnulib module inttypes from git
1679         (250b80067c1e1d8faa0c42fb572f721975b929c5)
1680         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
1681         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1682         gnulib/m4/inttypes-pri.m4
1683         * aclocal.m4, config.in, configure: Regenerated.
1684         * gnulib/Makefile.am: Update.
1685         * gnulib/Makefile.in: Update.
1686         * gnulib/m4/gnulib-cache.m4: Update.
1687         * gnulib/m4/gnulib-comp.m4: Update.
1688         * gnulib/inttypes.in.h: New.
1689         * gnulib/m4/inttypes-pri.m4: New.
1690         * gnulib/m4/inttypes.m4: New.
1691
1692 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
1693
1694         * infrun.c (resume): Update PC address to the real PC after
1695         preparing to do displaced stepping.
1696
1697 2012-04-12  Doug Evans  <dje@google.com>
1698
1699         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1700         All callers updated.
1701
1702 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
1703
1704         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1705
1706 2012-04-12  Doug Evans  <dje@google.com>
1707
1708         * dwarf2read.c (create_all_type_units): Renamed from
1709         create_debug_types_hash_table.  All callers updated.
1710
1711         * dwarf2read.c (create_signatured_type_table_from_index): Rename
1712         local type_sig to sig_type, type_offset to type_offset_in_tu.
1713         (hash_signatured_type): Renamed from hash_type_signature,
1714         all callers updated.
1715         (eq_signatured_type): Renamed from eq_type_signature,
1716         all callers updated.
1717         (create_debug_types_hash_table): Rename local type_sig to sig_type.
1718         (process_enumeration_scope): Ditto.
1719         (lookup_signatured_type_at_offset): Ditto.
1720         (load_full_type_unit, read_signatured_type): Ditto.
1721
1722 2012-04-12  Yao Qi  <yao@codesourcery.com>
1723
1724         * remote.c (async_remote_interrupt): Correct function name in
1725         debug message.
1726         (async_remote_interrupt_twice): Ditto.
1727
1728 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
1729
1730         * source.c (find_and_open_source): Consistently pass resulting
1731         full path through xfullpath.
1732
1733 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1734
1735         Provide more specific displaced-stepping memory error message.
1736         * infrun.c (displaced_step_prepare): New variable status.  Call
1737         target_read_memory instead of read_memory, provide more specific
1738         error message.
1739
1740 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1741
1742         PR gdb/13901
1743         * darwin-nat.c (darwin_execvp): Revert previous patch.
1744
1745 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1746
1747         PR gdb/13901
1748         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1749         in case of change.
1750
1751 2012-04-11  Tristan Gingold  <gingold@adacore.com>
1752
1753         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1754         warning.
1755
1756 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
1757
1758         New command 'explore' which helps explore values and types in
1759         scope.
1760         * NEWS: Add an entry about the new 'explore' command.
1761         * data-directory/Makefile.in: Add gdb/command/explore.py
1762         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
1763         command using the GDB Python API.
1764
1765 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
1766
1767         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1768         extension in jump target calculation.
1769
1770 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
1771
1772         * mips-tdep.c (mips32_next_pc): Handle JALX.
1773
1774 2012-04-10  Yao Qi  <yao@codesourcery.com>
1775
1776         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1777
1778 2012-04-10  Yao Qi  <yao@codesourcery.com>
1779
1780         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1781         and gnulib/m4/gnulib-tool.m4.
1782
1783 2012-04-10  Doug Evans  <dje@google.com>
1784
1785         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1786         (load_partial_dies): Clarify comment.
1787         (find_partial_die): Support rereading type units.
1788         Clarify CU handling, if we know offset is in CU, don't search for the
1789         containing CU.  Add comment regarding memory waste.
1790
1791 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1792
1793         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1794         i386/x32-avx and i386/x32-avx-linux.
1795         (i386/x32-expedite): New.
1796         (i386/x32-linux-expedite): Likewise.
1797         (i386/x32-avx-expedite): Likewise.
1798         (i386/x32-avx-linux-expedite): Likewise.
1799         ($(outdir)/i386/x32.dat): Likewise.
1800         ($(outdir)/i386/x32-linux.dat): Likewise.
1801         ($(outdir)/i386/x32-avx.dat): Likewise.
1802         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1803
1804         * features/i386/x32-avx-linux.xml: New file.
1805         * features/i386/x32-avx.xml: Likewise.
1806         * features/i386/x32-core.xml: Likewise.
1807         * features/i386/x32-linux.xml: Likewise.
1808         * features/i386/x32.xml: Likewise.
1809
1810         * features/i386/x32-avx-linux.c: New.  Generated.
1811         * features/i386/x32-avx.c: Likewise.
1812         * features/i386/x32-linux.c: Likewise.
1813         * features/i386/x32.c: Likewise.
1814         * regformats/i386/x32-avx-linux.dat: Likewise.
1815         * regformats/i386/x32-avx.dat: Likewise.
1816         * regformats/i386/x32-linux.dat: Likewise.
1817         * regformats/i386/x32.dat: Likewise.
1818
1819 2012-04-10  Tristan Gingold  <gingold@adacore.com>
1820
1821         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1822         code to kill the inferior.
1823
1824 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
1825
1826         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1827         defines.
1828         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1829         defines.
1830         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
1831         (yyvsp): New defines.
1832         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1833         defines.
1834         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1835         defines.
1836         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1837         defines.
1838         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1839         defines.
1840         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1841         defines.
1842
1843 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
1844
1845         * sparc64-tdep.c (sparc64_store_arguments)
1846         (sparc64_store_arguments): Fix coding style.
1847
1848 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
1849
1850         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1851         complex floats, adjust some related comments and tighten a related
1852         assertion.
1853         (sparc64_extract_return_value): Handle complex floats.
1854
1855 2012-04-07  Doug Evans  <dje@google.com>
1856
1857         * dwarf2read.c (load_partial_dies): Change condition to assert.
1858
1859 2012-04-06  Doug Evans  <dje@google.com>
1860
1861         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1862         "mov %rsp,%rbp".
1863
1864 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
1865
1866         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1867         fencepost error.
1868         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1869         (v850_gdbarch_init): Set `num_regs' as appropriate for the
1870         architecture.
1871
1872 2012-04-05  Keith Seitz  <keiths@redhat.com>
1873
1874         * linespec.c (decode_compound): Remove.
1875         (enum offset_relative_sign): New enum.
1876         (struct line_offset): New struct.
1877         (struct linespec): New struct.
1878         (struct linespec_state): Move file_symtabs,
1879         user_filename, and user_function into struct linespec.
1880         Make result an anonymous struct holding vectors of
1881         symbolp and minsym_and_objfile_d.
1882         Add language member.
1883         (enum ls_token_type): New enum.
1884         (linespec_keywords): New array.
1885         (struct ls_token): New struct.
1886         (struct ls_parser): New struct.
1887         (linespec_lexer_lex_number): New function.
1888         (linespec_lexer_lex_keyword): New function.
1889         (is_ada_operator): New function.
1890         (skip_quote_char): New function.
1891         (copy_token_string): New function.
1892         (is_closing_quote_enclosed): New function.
1893         (find_parameter_list_end): New function.
1894         (linespec_lexer_lex_string): New function.
1895         (linespec_lexer_lex_one): New function.
1896         (linespec_lexer_consume_token): New function.
1897         (linespec_lexer_peek_token): New function.
1898         (cplusplus_error): Remove unused function.
1899         (find_methods): Update comment.
1900         (find_toplevel_char): Return const.
1901         (is_objc_method_format): Remove unused function.
1902         (find_toplevel_string): New function.
1903         (is_linespec_boundary): Remove.
1904         (symbol_not_found_error): New function.
1905         (find_method_overload_end): Remove function.
1906         (unexpected_linespec_error): New function.
1907         (keep_name_info): Remove.
1908         (linespec_parse_line_offset): New function.
1909         (linespec_parse_basic): New function.
1910         (canonicalize_linespec): New function.
1911         (decode_line_internal): Remove.
1912         (create_sals_line_offset): New function adapted from
1913         decode_all_digits.
1914         (convert_linespec_to_sals): New function.
1915         (parse_linespec): New function.
1916         (linespec_parser_new): New function.
1917         (linespec_state_destructor): Change parameter type to
1918         struct linespec_state *.
1919         Add language parameter.
1920         Remove freeing of moved members.
1921         (linespec_parser_delete): New function.
1922         (decode_line_full): Use parse_linespec and linespec_parser_new.
1923         (decode_line_1): Likewise.
1924         (decode_indirect): Rename to ...
1925         (linespec_expression_to_pc): ... this and rewrite
1926         to simply find CORE_ADDR, storing this result for later
1927         conversion to SALs.
1928         (locate_first_half): Remove.
1929         (deocde_objc): Add parameter LS.
1930         Initialize new struct collect_info members.
1931         Handle minimal symbols, too.
1932         (decode_compound): Delete.
1933         (lookup_prefix_sym): Rewrite.
1934         (compare_msymbols): New function.
1935         (find_method): Rewrite.
1936         Do not call cplusplus_error.
1937         (symtabs_from_filename): Rewrite.
1938         (collect_function_symbols): Delete.
1939         (find_function_symbols): Rewrite without ARGPTR-style
1940         processing.
1941         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1942         (decode_dollar): Adapted and renamed to ...
1943         (linespec_parse_variable): ... this.
1944         (find_linespec_symbols): New function.
1945         (decode_label): Adapted and renamed to ...
1946         (find_label_symbols): ... this.
1947         (decode_digits_list_mode): Add and use LS argument.
1948         (decode_digits_ordinary): Likewise.
1949         (collect_symbols): Do not collect SALs, just symbols and msymbols.
1950         If in list mode, allow any symbol class.  Otherwise, only
1951         permit LOC_BLOCK symbols.
1952         (minsym_found): Update comments.
1953         (search_minsyms_for_name): Do not convert the matching symbol
1954         into a SAL.  Simply push the symbol and objfile into the
1955         result vector.
1956         (decode_variable): Delete. Contents adapted into
1957         find_linespec_symbols.
1958
1959         * cp-support.c (SKIP_SPACE): Remove.
1960         (operator_tokens): Remove unused global.
1961         (cp_validate_operator): Remove.
1962         * cp-support.h (cp_validate_operator): Remove declaration.
1963
1964 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1965
1966         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1967         for TYPE_VPTR_FIELDNO.
1968         * valprint.c (valprint_check_validity): Make it global, move the
1969         function comment ...
1970         * value.h (valprint_check_validity): ... to this new declaration.
1971
1972 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1973
1974         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1975         the STATE32 api for i386 state.
1976         (i386_darwin_store_inferior_registers): Likewise.
1977
1978 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1979
1980         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1981         SS offset.
1982         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1983         format_string.
1984
1985 2012-04-02  Tristan Gingold  <gingold@adacore.com>
1986
1987         PR gdb/13901
1988         * darwin-nat.c (darwin_execvp): Set binary preference.
1989
1990 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1991
1992         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1993
1994 2012-03-30  Tom Tromey  <tromey@redhat.com>
1995
1996         * python/python.c (gdbpy_decode_line): Move cleanup creation out
1997         of TRY_CATCH.  Fix error handling.
1998         * python/py-value.c (convert_value_from_python): Move 'old'
1999         declaration to innermost scope.
2000
2001 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2002             Andrey Smirnov  <andrew.smirnov@gmail.com>
2003
2004         -Wshadow warning fix.
2005         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2006         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2007         Adjust code accordingly.
2008
2009 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2010
2011         * ada-lang.c (symbol_completion_add): Rename parameter
2012         "encoded" into "encoded_p".  Ajust code and documentation
2013         accordingly.
2014
2015 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2016             Andrey Smirnov  <andrew.smirnov@gmail.com>
2017
2018         -Wshadow warning fix.
2019         * ada-lang.c (symbol_completion_add): Rename parameter
2020         "wild_match" into wild_match_p.  Update code and documentation
2021         accordingly.
2022
2023 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2024
2025         * ada-lang.c (symbol_completion_match): Rename parameter
2026         "encoded" into "encoded_p".  Ajust code and documentation
2027         accordingly.
2028
2029 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2030             Andrey Smirnov  <andrew.smirnov@gmail.com>
2031
2032         -Wshadow warning fix.
2033         * ada-lang.c (symbol_completion_match): Rename parameter
2034         "wild_match" into "wild_match_p".  Adjust code and function
2035         documentation accordingly.
2036
2037 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2038             Andrey Smirnov  <andrew.smirnov@gmail.com>
2039
2040         -Wshadow warning fix.
2041         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2042         "symbol_info" into "info".  Adjust code accordingly.
2043         (ada_lookup_symbol): Likewise.
2044
2045 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2046
2047         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2048         of this function's documentation.
2049
2050 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2051             Andrey Smirnov  <andrew.smirnov@gmail.com>
2052
2053         -Wshadow warning fix.
2054         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2055         variable into "wild_match_p".  Adjust code accordingly.
2056
2057 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2058             Andrey Smirnov  <andrew.smirnov@gmail.com>
2059
2060         -Wshadow warning fix.
2061         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2062         parameter into "wild_match_p".  Adjust code accordingly.
2063         Document this parameter in the function description.
2064
2065 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2066             Andrey Smirnov  <andrew.smirnov@gmail.com>
2067
2068         -Wshadow warning fix.
2069         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2070         "wild_match" parameter to "wild_match_p" (-Wshadow).
2071
2072 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2073
2074         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2075         in function documentation.
2076
2077 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2078             Andrey Smirnov  <andrew.smirnov@gmail.com>
2079
2080         -Wshadow warning fix.
2081         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2082         variable into wild_match_p.  Adjust code accordingly.
2083
2084 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2085             Andrey Smirnov  <andrew.smirnov@gmail.com>
2086
2087         * ada-valprint.c (ada_val_print_1): Move the code handling
2088         TYPE_CODE_ENUM inside its own lexical block.  Declare
2089         variables len and val there, instead of in the function's
2090         top level block.  Avoid declaring deref_val again in a way
2091         that shadows another variable of the same name declared
2092         in one of the up-level blocks.  Just re-use the up-level
2093         variable instead.
2094
2095 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2096
2097         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2098         Replace block_found argument by symbol_info.  Adjust
2099         implementation accordingly.  Add function documentation.
2100         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2101         Fix documentation.
2102         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2103         * ada-exp.y (write_object_renaming): Adjust to new
2104         ada_lookup_encoded_symbol API.
2105
2106 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
2107
2108         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
2109         documentation.
2110
2111 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
2112
2113         * v850-tdep.c: Add the enum values for mpu and fpu registers.
2114         (v850_register_name): Add the mpu and fpu register names.
2115         (v850e_register_name): Add the mpu and fpu register names.
2116         (v850e2_register_name): New function.
2117         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2118         bfd_mach_v850e2v3.
2119
2120 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
2121
2122         * NEWS: Add entry for Ada varobj support.
2123
2124 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
2125
2126         * varobj.c (default_value_is_changeable_p): New function,
2127         extracted from varobj_value_is_changeable_p.  Add declaration.
2128         (ada_value_is_changeable_p): New function, extracted from
2129         varobj_value_is_changeable_p.  Add declaration.
2130         (struct language_specific): New field "value_is_changeable_p".
2131         (languages): Add entries for new field.
2132         (varobj_create): Set language before calling install_new_value.
2133         (varobj_value_is_changeable_p): Reimplement to call the varobj's
2134         "value_is_changeable_p" language callback.
2135
2136 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
2137
2138         * ada-varobj.h, ada-varobj.c: New files.
2139         * Makefile.in (SFILES): Add ada-varobj.c.
2140         (HFILES_NO_SRCDIR): Add ada-varobj.h.
2141         (COMMON_OBS): Add ada-varobj.o.
2142
2143 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
2144
2145         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
2146         (struct language_specific): New field "value_has_mutated".
2147         (languages): Set field "value_has_mutated" in each entry of array.
2148         (varobj_value_has_mutated): New function.
2149         (varobj_udpdate): Add handling of type mutation.
2150         (value_of_root): Add handling of type mutation.
2151         (ada_value_has_mutated): New function.
2152
2153 2012-03-28  Pedro Alves  <palves@redhat.com>
2154
2155         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2156         Always supply $fr0 as 0.0 and $fr1 as 1.0.
2157
2158 2012-03-28  Tom Tromey  <tromey@redhat.com>
2159
2160         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2161         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
2162         before returning.
2163
2164 2012-03-28  Tom Tromey  <tromey@redhat.com>
2165
2166         * .dir-locals.el: New file.
2167
2168 2012-03-28  Pedro Alves  <palves@redhat.com>
2169
2170         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2171
2172 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
2173
2174         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2175         handling for r0.
2176
2177 2012-03-27  Pedro Alves  <palves@redhat.com>
2178
2179         Eliminate struct ui_stream.
2180
2181         * ui-out.h (struct ui_stream): Delete.
2182         (ui_out_field_stream): Adjust prototype.
2183         (ui_out_stream_new, ui_out_stream_delete)
2184         (make_cleanup_ui_out_stream_delete): Delete declarations.
2185         * ui-out.c (ui_out_field_stream): Change prototype to take a
2186         ui_file instead of a ui_stream.  Adjust.
2187         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2188         (make_cleanup_ui_out_stream_delete): Delete.
2189         * breakpoint.c (print_breakpoint_location)
2190         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2191         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2192         * disasm.c (dump_insns): Ditto.
2193         (do_mixed_source_and_assembly, do_assembly_only): Adjust
2194         prototype.
2195         (gdb_disassembly): Use ui_file/mem_fileopen instead of
2196         ui_stream/ui_out_stream_new.
2197         * infcmd.c (print_return_value): Ditto.
2198         * osdata.c (info_osdata_command): Don't allocate a local
2199         ui_stream.
2200         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2201         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2202         * tracepoint.c (print_one_static_tracepoint_marker): Don't
2203         allocate a local ui_stream.
2204         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2205         instead of ui_stream/ui_out_stream_new.
2206         (list_args_or_locals): Don't allocate a local ui_stream.
2207         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2208         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2209         ui_stream/ui_out_stream_new.
2210         * cli/cli-setshow.c (do_setshow_command): Ditto.
2211
2212 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
2213
2214         * arm-linux-tdep.c (arm_linux_init_abi): Call
2215         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
2216         * arm-tdep.c (arm_process_record): New function.
2217         (deallocate_reg_mem): New function.
2218         (decode_insn): New function.
2219         (thumb_record_branch): New function.
2220         (thumb_record_ldm_stm_swi(): New function.
2221         (thumb_record_misc): New function.
2222         (thumb_record_ld_st_stack): New function.
2223         (thumb_record_ld_st_imm_offset): New function.
2224         (thumb_record_ld_st_reg_offset(): New function.
2225         (thumb_record_add_sub_cmp_mov): New function.
2226         (thumb_record_shift_add_sub): New function.
2227         (arm_record_coproc_data_proc): New function.
2228         (arm_record_coproc): New function.
2229         (arm_record_b_bl): New function.
2230         (arm_record_ld_st_multiple): New function.
2231         (arm_record_ld_st_reg_offset): New function.
2232         (arm_record_ld_st_imm_offset): New function.
2233         (arm_record_data_proc_imm): New function.
2234         (arm_record_data_proc_misc_ld_str): New function.
2235         (arm_record_extension_space): New function.
2236         (arm_record_strx): New function.
2237         (sbo_sbz): New function.
2238         (struct insn_decode_record): New structure for arm insn record.
2239         (REG_ALLOC): New macro for reg allocations.
2240         (MEM_ALLOC): New macro for memory allocations.
2241         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
2242
2243 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
2244
2245         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2246         (store_register): Likewise.
2247
2248 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
2249
2250         * MAINTAINERS (Write After Approval): Add myself to the list.
2251
2252 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2253
2254         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2255         Describe also the option "auto".
2256
2257 2012-03-22  Richard Henderson  <rth@redhat.com>
2258
2259         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2260         * sparc-nat.c (sparc_xfer_wcookie): Make static.
2261
2262 2012-03-22  Richard Henderson  <rth@redhat.com>
2263
2264         * jit.c (jit_read_code_entry): Compute alignment and offset of
2265         int64_t member before computing entry_size.
2266
2267 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
2268
2269         Python scripting: Add new method Value.referenced_value to
2270         gdb.Value which can dereference pointer as well as reference
2271         values.
2272         * NEWS: Add entry under 'Python scripting' about the new method
2273         Value.referenced_value on gdb.Value objects.
2274         * python/py-value.c (valpy_referenced_value): New function
2275         defining a new method on gdb.Value objects which can dereference
2276         pointer and reference values.
2277
2278 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
2279
2280         * MAINTAINERS (Write After Approval): Add myself to the list.
2281
2282 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
2283
2284         * symtab.c (skip_prologue_sal): Change test to check for "main()"
2285         in addition to "main".
2286
2287 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
2288
2289         * expression.h (op_name): Add declaration.
2290         * expprint.c (op_name): Remove declaration.  Make non-static.
2291         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2292
2293 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2294
2295         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2296         of struct siginfo.
2297         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2298         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2299         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2300         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2301         (linux_nat_get_siginfo): Likewise.
2302         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2303         (linux_nat_get_siginfo): Likewise.
2304         * linux-tdep.c (linux_get_siginfo_type): Likewise.
2305         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2306         * procfs.c (gdb_siginfo_t): Likewise.
2307
2308 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
2309
2310         * .gitignore: Ignore more files.
2311
2312 2012-03-20  Pedro Alves  <palves@redhat.com>
2313
2314         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2315         returns.
2316
2317 2012-03-20  Yao Qi  <yao@codesourcery.com>
2318
2319         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2320         comment.
2321
2322 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2323
2324         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2325         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2326         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2327         sect_offset.
2328         * dwarf2expr.h (cu_offset, sect_offset): New types.
2329         (struct dwarf_expr_context_funcs) <dwarf_call>
2330         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2331         sect_offset.
2332         (struct dwarf_expr_context) <len>: Improve the comment.
2333         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2334         cu_offset and sect_offset.
2335         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2336         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2337         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2338         * dwarf2loc.h: Include dwarf2expr.h.
2339         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2340         and sect_offset.
2341         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2342         Improve the comment.
2343         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2344         (struct signatured_type, struct line_header, struct partial_die_info)
2345         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2346         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2347         (get_die_type_at_offset, create_cus_from_index)
2348         (create_signatured_type_table_from_index, dw2_get_file_names)
2349         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2350         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2351         (create_debug_types_hash_table, process_psymtab_comp_unit)
2352         (load_partial_comp_unit, create_all_comp_units)
2353         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2354         (load_full_comp_unit, dwarf2_physname, read_import_statement)
2355         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2356         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2357         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2358         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2359         (find_partial_die, read_attribute_value, lookup_die_type)
2360         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2361         (is_ref_attr): New function comment.
2362         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2363         Use cu_offset and sect_offset.
2364         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2365         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2366         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2367         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2368         (offset_and_type_hash, offset_and_type_eq, set_die_type)
2369         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2370         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2371         sect_offset.
2372
2373 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2374
2375         Code cleanup.
2376         * python/py-auto-load.c (source_section_scripts): New variable back_to.
2377         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2378         with xfree.
2379         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2380
2381 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2382
2383         * NEWS: Describe new options --init-command=FILE, -ix and
2384         --init-eval-command=COMMAND, -iex.
2385         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2386         CMDARG_INIT_COMMAND.
2387         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
2388         "init-command", "init-eval-command", "ix" and "iex" to the variable
2389         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
2390         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2391         (print_gdb_help): Describe --init-command=FILE, -ix and
2392         --init-eval-command=COMMAND, -iex.
2393
2394 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2395
2396         Code cleanup.
2397         * main.c (struct cmdarg): Move it here from main.  Add more comments.
2398         (cmdarg_s, VEC (cmdarg_s)): New.
2399         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
2400         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
2401         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
2402         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
2403         of CMDARG.
2404
2405 2012-03-19  Tom Tromey  <tromey@redhat.com>
2406
2407         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2408
2409 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2410
2411         PR symtab/13777
2412         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2413         GCC >=4.5.
2414
2415 2012-03-16  Chris January  <chris.january@allinea.com>
2416
2417         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2418         of clear.
2419
2420 2012-03-16  Chris January  <chris.january@allinea.com>
2421
2422         * source.c (add_path): Use memmove instead of strcpy because the
2423         strings overlap.
2424
2425 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
2426
2427         * value.h (set_value_parent): Add declaration.
2428         * value.c (set_value_parent): New function.
2429         (value_address): If VALUE->PARENT is not NULL, then use it as
2430         the base address instead of VALUE->LOCATION.address.
2431         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2432         the same as OBJ's address.  Adjust V's offset accordingly.
2433         Set V's parent.
2434
2435 2012-03-16  Gary Benson  <gbenson@redhat.com>
2436
2437         PR breakpoints/10738
2438         * dwarf2read.c (use_deprecated_index_sections): New global.
2439         (struct partial_die_info): New member may_be_inlined.
2440         (read_partial_die): Set may_be_inlined where appropriate.
2441         (add_partial_subprogram): Add partial symbols for partial
2442         DIEs that may be inlined.
2443         (new_symbol_full): Add inlined subroutines to the current
2444         scope.
2445         (write_psymtabs_to_index): Bump version number.
2446         (dwarf2_read_index): Read only version 6 indices unless
2447         use_deprecated_index_sections is set.
2448         * linespec.c (symbol_and_data_callback): New structure.
2449         (iterate_inline_only): New function.
2450         (iterate_over_all_matching_symtabs): New argument
2451         "include_inline".  If nonzero, also call the callback for
2452         symbols representing inlined subroutines.
2453         (lookup_prefix_sym): Pass extra argument to the above.
2454         (find_function_symbols): Likewise.
2455         (add_matching_symbols_to_info): Likewise.
2456         * NEWS: Mention that GDB can now set breakpoints on inlined
2457         functions.
2458
2459 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2460
2461         * p-typeprint.c (pascal_type_print_method_args):
2462         Fix display of parameter of methods.
2463
2464 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2465
2466         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2467         Add missing prototype.
2468
2469 2012-03-16  Yao Qi  <yao@codesourcery.com>
2470             Jan Kratochvil  <jan.kratochvil@redhat.com>
2471
2472         Fix false compilation warning.
2473         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2474
2475 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
2476             Pedro Alves  <pedro@codesourcery.com>
2477
2478         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2479         (arm_register_g_packet_guesses): New function.
2480         (arm_gdbarch_init): Don't force a target description with
2481         registers when the executable is detected as M-profile.  Instead
2482         set gdbarch->tdep->is_m.  Register `g' packet guesses.
2483         (_initialize_arm_tdep): Initialize the new target description.
2484         * features/arm-with-m-fpa-layout.xml: New description.
2485         * features/arm-with-m-fpa-layout.c: New, generated.
2486
2487 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
2488
2489         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2490         Update function description.
2491         (insert_bp_location): Do not wipe bl->target_info out.
2492         * mem-break.c: #include "gdb_string.h".
2493         (default_memory_insert_breakpoint): Do not call target_read_memory
2494         with a pointer to the breakpoint's shadow_contents buffer.  Use
2495         a local buffer instead.
2496         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2497
2498 2012-03-15  Tom Tromey  <tromey@redhat.com>
2499
2500         * NEWS: Mention "info vtbl", not "info vtable".
2501         * cp-support.c (info_vtbl_command): Fix comment.
2502         (_initialize_cp_support): Fix text.
2503
2504 2012-03-15  Tom Tromey  <tromey@redhat.com>
2505
2506         * cp-valprint.c (cp_print_value_fields): Use
2507         print_function_pointer_address for vtable slot.
2508
2509 2012-03-15  Tom Tromey  <tromey@redhat.com>
2510
2511         * gnu-v3-abi.c (struct value_and_voffset): New.
2512         (hash_value_and_voffset, eq_value_and_voffset)
2513         (compare_value_and_voffset, compute_vtable_size)
2514         (print_one_vtable, gnuv3_print_vtable): New functions.
2515         (init_gnuv3_ops): Initialize 'print_vtable' field.
2516         * cp-support.c (info_vtbl_command): New function.
2517         (_initialize_cp_support): Add "info vtbl".
2518         * cp-abi.h (cplus_print_vtable): Declare.
2519         (struct cp_abi_ops) <print_vtable>: New field.
2520         * cp-abi.c (cplus_print_vtable): New function.
2521         * NEWS: Update.
2522
2523 2012-03-15  Tom Tromey  <tromey@redhat.com>
2524
2525         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2526         iterate_over_symbols.
2527
2528 2012-03-14  Doug Evans  <dje@google.com>
2529
2530         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2531         DW_OP_GNU_parameter_ref.
2532
2533 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2534
2535         Fix double prompt of 'interpreter-exec mi'.
2536         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2537         (mi_interpreter_resume): use it.
2538         (mi_execute_command_input_handler): New function.
2539         * mi/mi-main.c (mi_execute_command): Move prompt printing to
2540         mi_execute_command_input_handler.
2541
2542 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
2543
2544         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2545         prototype.
2546         (darwin_debug_port_info): Make static.
2547         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2548         * machoread.c (_initialize_machoread): Add prototype.
2549         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2550         (i386_darwin_set_control, i386_darwin_get_control)
2551         i386_darwin_dr_set_addr, i386_darwin_get_addr)
2552         i386_darwin_get_status, i386_darwin_get_control):
2553         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2554
2555 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2556
2557         * ax-gdb.c (gen_usual_unary): Remove special handling of
2558         enum and bool types.
2559
2560 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2561
2562         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2563
2564 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
2565
2566         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2567
2568 2012-03-13  Chris January  <chris.january@allinea.com>
2569
2570         * aix-thread.c (fill_sprs): Store the floating point registers
2571         at the correct offsets into vals.
2572
2573 2012-03-13  Doug Evans  <dje@google.com>
2574
2575         * NEWS: Mention symbol-reloading has been deleted.
2576         * symfile.c (symbol_reloading): Delete.
2577         (show_symbol_reloading): Delete.
2578         (_initialize_symfile): Delete set/show symbol-reloading.
2579
2580         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2581         read_in_chain until we have successfully read it in.
2582         (load_full_comp_unit): Ditto.
2583         (read_signatured_type): Add comment.
2584
2585 2012-03-13  Chris January  <chris.january@allinea.com>
2586
2587         * stabsread.c (fix_common_block): Change type of valu argument
2588         to CORE_ADDR.
2589
2590 2012-03-13  Chris January  <chris.january@allinea.com>
2591
2592         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2593         instruction.
2594
2595 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2596
2597         * common/linux-procfs.c (linux_proc_get_int): New, from
2598         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2599         field.
2600         (linux_proc_get_tgid): Only call linux_proc_get_int.
2601         (linux_proc_get_tracerpid): New.
2602         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2603         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2604         linux_proc_pid_has_state.
2605         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2606         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2607         (linux_ptrace_attach_warnings): New.
2608         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2609         New declaration.
2610         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2611         (linux_nat_attach): New variables ex, buffer, message and message_s.
2612         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2613
2614 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2615
2616         * Makefile.in (linux-ptrace.o): New.
2617         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2618         from linux-nat.c.
2619         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2620         * common/linux-ptrace.c: New file.
2621         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2622         * config/arm/linux.mh: Likewise.
2623         * config/i386/linux.mh: Likewise.
2624         * config/i386/linux64.mh: Likewise.
2625         * config/ia64/linux.mh: Likewise.
2626         * config/m32r/linux.mh: Likewise.
2627         * config/m68k/linux.mh: Likewise.
2628         * config/mips/linux.mh: Likewise.
2629         * config/pa/linux.mh: Likewise.
2630         * config/powerpc/linux.mh: Likewise.
2631         * config/powerpc/ppc64-linux.mh: Likewise.
2632         * config/powerpc/spu-linux.mh: Likewise.
2633         * config/s390/s390.mh: Likewise.
2634         * config/sparc/linux.mh: Likewise.
2635         * config/sparc/linux64.mh: Likewise.
2636         * config/xtensa/linux.mh: Likewise.
2637         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2638         common/linux-procfs.c.
2639         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2640
2641 2012-03-13  Hui Zhu  <teawater@gmail.com>
2642             Pedro Alves  <palves@redhat.com>
2643
2644         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
2645         CREATE_BREAKPOINT_FLAGS_INSERTED.
2646         (create_breakpoint_sal, create_breakpoints_sal)
2647         (base_breakpoint_create_breakpoints_sal)
2648         (tracepoint_create_breakpoints_sal)
2649         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
2650         down.
2651         (break_command_1, handle_gnu_v3_exceptions, trace_command)
2652         (ftrace_command, strace_command): Adjust.
2653         (create_tracepoint_from_upload): Pass
2654         CREATE_BREAKPOINT_FLAGS_INSERTED.
2655         * breakpoint.h (enum breakpoint_create_flags): New.
2656         (create_breakpoint): New flags parameter.
2657         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2658         * python/py-breakpoint.c (bppy_init): Adjust.
2659         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2660         * spu-tdep.c (spu_catch_start): Adjust.
2661
2662 2012-03-13  Pedro Alves  <palves@redhat.com>
2663             Hui Zhu  <teawater@gmail.com>
2664             Yao Qi  <yao@codesourcery.com>
2665
2666         * remote.c (struct remote_state): New field `starting_up'.
2667         (remote_start_remote): Set and clear it.
2668         (remote_can_download_tracepoint): If starting up, return false.
2669
2670 2012-03-13  Yao Qi  <yao@codesourcery.com>
2671
2672         * inferior.h (struct inferior): Remove fields any_syscall_count,
2673         syscalls_counts and total_syscalls_count.  Move them to new
2674         struct catch_syscall_inferior_data in breakpoint.c.
2675         * breakpoint.c: Call DEF_VEC_I(int).
2676         (struct catch_syscall_inferior_data): New.
2677         (get_catch_syscall_inferior_data): New.
2678         (catch_syscall_inferior_data_cleanup): New.
2679         (insert_catch_syscall): Update to access data in
2680         struct catch_syscall_inferior_data.
2681         (insert_catch_syscall): Likewise.
2682         (remove_catch_syscall): Likewise.
2683         (remove_catch_syscall): Likewise.
2684         (is_syscall_catchpoint_enabled): Likewise.
2685         (add_catch_command): Likewise.
2686         (_initialize_breakpoint): Register cleanup.
2687         * breakpoint.h: Removed DEF_VEC_I(int).
2688         * dwarf2loc.c: Call DEF_VEC_I(int).
2689         * mi/mi-main.c: Likewise.
2690
2691 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
2692
2693         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2694
2695 2012-03-12  Chris January  <chris.january@allinea.com>
2696
2697         * aix-thread.c (_initialize_aix_thread): Add prototype.
2698         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2699         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2700
2701 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
2702
2703         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2704         include of "amd64-nat.h".
2705
2706 2012-03-12  Tom Tromey  <tromey@redhat.com>
2707
2708         * buildsym.c (record_pending_block): Now static.
2709         * buildsym.h: (record_pending_block): Remove.
2710
2711 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
2712
2713         * amd64bsd-nat.c: Include amd64bsd-nat.h.
2714
2715 2012-03-09  Tom Tromey  <tromey@redhat.com>
2716
2717         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2718         producer_is_gxx_lt_4_6>: New fields.
2719         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2720
2721 2012-03-09  Tom Tromey  <tromey@redhat.com>
2722
2723         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2724
2725 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2726
2727         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2728         prototype.
2729
2730 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2731
2732         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2733
2734 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2735
2736         Fix -Wmissing-prototypes build.
2737         * arm-linux-nat.c (get_thread_id): Make it static.
2738         * xtensa-linux-nat.c (get_thread_id): Likewise.
2739
2740 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2741
2742         * server.c (process_point_options): If a conditional expression
2743         is found, only print a message if remote_debug is nonzero.
2744
2745 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
2746
2747         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2748         of internal error for unknown/unsupported types.
2749
2750 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2751
2752         Fix CU relative vs. absolute DIE offsets.
2753         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2754         offset to offset_in_cu.
2755         * dwarf2read.c (process_enumeration_scope): Add CU offset to
2756         TYPE_OFFSET.
2757         (dwarf2_fetch_die_location_block): Rename parameter offset to
2758         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
2759
2760 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2761
2762         * libunwind-frame.c: Rename to ...
2763         * ia64-libunwind-tdep.c: ... here.
2764         * libunwind-frame.h: Rename to ...
2765         * ia64-libunwind-tdep.h: ... here.
2766         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2767         ia64-libunwind-tdep.h.
2768         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2769         * README (--with-libunwind): Rename to ...
2770         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2771         * config.in: Regenerate.
2772         * configure: Regenerate.
2773         * configure.ac: New option --with-libunwind-ia64, make the
2774         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
2775         Remove AC_DEFINE for HAVE_LIBUNWIND.
2776         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2777         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2778         Rename libunwind-frame in the general comment.
2779         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2780         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2781         Move forward declarations inside #ifndef.  Rename libunwind-frame in
2782         the general comment.
2783         * ia64-tdep.c: Rename libunwind-frame.h #include to
2784         ia64-libunwind-tdep.h.
2785         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2786         (ia64_libunwind_descr): Rename libunwind-frame to
2787         ia64-libunwind-tdep in these function comments.
2788         * ia64-tdep.h: Rename libunwind-frame.h #include to
2789         ia64-libunwind-tdep.h.
2790         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2791         ia64-libunwind-tdep in that data comment.
2792
2793 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2794
2795         * libunwind-frame.h (struct frame_unwind): New declaration.
2796
2797 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
2798
2799         * breakpoint.c (_initialize_breakpoint): Fix error in help of
2800         "set breakpoint condition-evaluation" command.
2801
2802 2012-03-08  Tristan Gingold  <gingold@adacore.com>
2803
2804         * sparc-stub.c: Move to stubs/
2805         * sh-stub.c: Likewise.
2806         * m68k-stub.c: Likewise.
2807         * m32r-stub.c: Likewise.
2808         * i386-stub.c: Likewise.
2809
2810 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
2811
2812         * m68klinux-tdep.c (m68k_linux_init_abi): Register
2813         linux_get_siginfo_type.
2814
2815         * m68klinux-nat.c: Include "gdb_proc_service.h".
2816         (PTRACE_GET_THREAD_AREA): Define.
2817         (ps_get_thread_area): New function.
2818
2819 2012-03-08  Yao Qi  <yao@codesourcery.com>
2820
2821         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2822         `xsnprintf'.
2823         (remote_query_attached): Likewise.
2824         (remote_static_tracepoint_marker_at): Likewise.
2825         (remote_set_permissions): Likewise.
2826         (remote_detach_1, extended_remote_attach_1): Likewise.
2827         (send_g_packet, remote_vkill): Likewise.
2828         (extended_remote_disable_randomization): Likewise.
2829         (remote_add_target_side_condition): Likewise.
2830         (remote_insert_breakpoint): Likewise.
2831         (remote_remove_breakpoint): Likewise.
2832         (remote_insert_watchpoint): Likewise.
2833         (remote_remove_watchpoint): Likewise.
2834         (remote_insert_hw_breakpoint): Likewise.
2835         (remote_insert_hw_breakpoint): Likewise.
2836         (remote_remove_hw_breakpoint): Likewise.
2837         (remote_download_command_source): Likewise.
2838         (remote_download_tracepoint): Likewise.
2839         (remote_download_trace_state_variable): Likewise.
2840         (remote_disable_tracepoint): Likewise.
2841         (remote_trace_set_readonly_regions): Likewise.
2842         (remote_get_tracepoint_status): Likewise.
2843         (remote_trace_find): Likewise.
2844         (remote_get_trace_state_variable_value): Likewise.
2845         (remote_set_disconnected_tracing): Likewise.
2846         (remote_set_circular_trace_buffer): Likewise.
2847         (remote_get_min_fast_tracepoint_insn_len): Likewise.
2848         (remote_use_agent): Likewise.
2849         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2850         Update callers.
2851
2852 2012-03-07  Pedro Alves  <palves@redhat.com>
2853
2854         * NEWS: Mention QProgramSignals.
2855         * inferior.h (update_signals_program_target): Declare.
2856         * infrun.c: (update_signals_program_target): New.
2857         (handle_command): Update the target of the new program signals
2858         array changes.
2859         * remote.c (PACKET_QProgramSignals): New enum.
2860         (last_program_signals_packet): New global.
2861         (remote_program_signals): New.
2862         (remote_start_remote): Update the target with the program signals
2863         list.
2864         (remote_protocol_features): Add entry for QPassSignals.
2865         (remote_open_1): Free anc clear last_program_signals_packet.
2866         (init_remote_ops): Install remote_program_signals.
2867         * target.c (update_current_target): Adjust.
2868         (target_program_signals): New.
2869         * target.h (struct target_ops) <to_program_signals>: New field.
2870         (target_program_signals): Declare.
2871
2872 2012-03-07  Pedro Alves  <palves@redhat.com>
2873
2874         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2875         extensions.
2876
2877 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
2878
2879         * m68klinux-nat.c (getregs_supplies): Make static.
2880         (getfpregs_supplies): Likewise.
2881         (have_ptrace_getregs): Likewise.
2882
2883 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
2884
2885         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2886         in call to get_die_type_at_offset.
2887
2888 2012-03-06  Stan Shebs  <stan@codesourcery.com>
2889
2890         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2891         * mi/mi-cmd-disas.c: Ditto.
2892         * mi/mi-cmd-env.c: Ditto.
2893         * mi/mi-cmd-file.c: Ditto.
2894         * mi/mi-cmd-stack.c: Ditto.
2895         * mi/mi-cmd-target.c: Ditto.
2896         * mi/mi-cmd-var.c: Ditto.
2897         * mi/mi-cmds.c: Ditto.
2898         * mi/mi-cmds.h: Ditto.
2899         * mi/mi-console.c: Ditto.
2900         * mi/mi-getopt.c: Ditto.
2901         * mi/mi-getopt.h: Ditto.
2902         * mi/mi-interp.c: Ditto.
2903         * mi/mi-main.c: Ditto.
2904         * mi/mi-out.c: Ditto.
2905         * mi/mi-parse.c: Ditto.
2906         * mi/mi-parse.h: Ditto.
2907         * mi/mi-symbol-cmds.c: Ditto.
2908
2909         * mi/mi-getopt.h: Move mi_opt struct up.
2910         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2911         return.
2912         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2913
2914 2012-03-06  Tom Tromey  <tromey@redhat.com>
2915
2916         * proc-service.c (ps_pglobal_lookup): Set the current program
2917         space.
2918
2919 2012-03-06  Pedro Alves  <palves@redhat.com>
2920
2921         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2922
2923 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
2924
2925         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2926
2927 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2928
2929         Code cleanup.
2930         * common/linux-osdata.c (linux_common_core_of_thread): New function
2931         comment.
2932         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2933         call by linux_common_core_of_thread.
2934         (linux_nat_core_of_thread_1): Remove.
2935         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2936         * linux-thread-db.c: Include linux-osdata.h.
2937         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2938         linux_common_core_of_thread.
2939
2940 2012-03-05  Tom Tromey  <tromey@redhat.com>
2941
2942         * value.c (value_primitive_field): Don't fetch contents for
2943         non-virtual bases.
2944
2945 2012-03-05  Tom Tromey  <tromey@redhat.com>
2946
2947         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2948
2949 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2950
2951         * s390-nat.c: Include "gregset.h".
2952
2953 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2954
2955         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2956         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2957         (libunwind_load): New variable so_error, use it for dlerror.  Try to
2958         load also LIBUNWIND_SO_7.
2959
2960 2012-03-05  Pedro Alves  <palves@redhat.com>
2961
2962         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2963         is not NULL, and remove resulting dead code.
2964
2965 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
2966
2967         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2968         prologue to sh_analyze_prologue.
2969         (sh_analyze_prologue): Make better use of such an upper limit, and
2970         generally be more cautious about accessing memory.
2971
2972 2012-03-05  Tom Tromey  <tromey@redhat.com>
2973
2974         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2975         _initialize_ia64_hpux_tdep.
2976
2977 2012-03-05  Pedro Alves  <palves@redhat.com>
2978
2979         PR gdb/13766
2980
2981         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2982         the register state is clear, supply explicit zero, instead of
2983         marking the register unavailable.
2984
2985 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2986
2987         * NEWS: Mention OpenVMS ia64 new target.
2988
2989 2012-03-05  Tristan Gingold  <gingold@adacore.com>
2990
2991         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2992         (ia64_unw_accessors, ia64_unw_rse_accessors)
2993         (ia64_libunwind_descr): Declare.
2994         * ia64-vms-tdep.c: New file.
2995         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2996         (ia64_libunwind_descr): Make them public.
2997         * configure.tgt: Add ia64-*-*vms*.
2998         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2999         (ALLDEPFILES): Add ia64-vms-tdep.c
3000
3001 2012-03-05  Tristan Gingold  <gingold@adacore.com>
3002
3003         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3004         * remote.c (PACKET_qXfer_uib): New enum value.
3005         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3006         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3007         (_initialize_remote): Call add_packet_config_cmd for
3008         xfer:uib packet.
3009
3010 2012-03-05  Tristan Gingold  <gingold@adacore.com>
3011
3012         * osabi.c (gdb_osabi_names): Add OpenVMS.
3013         (generic_elf_osabi_sniffer): Likewise.
3014         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
3015
3016 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3017
3018         Removed unused code.
3019         * libunwind-frame.c (libunwind_frame_unwind)
3020         (libunwind_frame_base_address): Remove.
3021         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3022
3023 2012-03-04  Yao Qi  <yao@codesourcery.com>
3024
3025         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3026         remove trailing new line.
3027         (agent_run_command, agent_run_command): Add _ markup.
3028         (agent_capability_check): Likewise.
3029
3030 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3031
3032         * breakpoint.c (set_condition_evaluation_mode): Set
3033         CONDITION_EVALUATION_MODE unconditionally.
3034
3035 2012-03-03  Yao Qi  <yao@codesourcery.com>
3036
3037         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3038         * common/agent.h: Update declaration.
3039         * inf-child.c (inf_child_use_agent): New.
3040         (inf_child_can_use_agent): New.
3041         (inf_child_target): Initialize fields `to_use_agent'
3042         and `to_can_use_agent'.
3043         * agent.c (agent_new_objfile): New.
3044         (_initialize_agent): Add agent_new_objfile to new_objfile
3045         observer.
3046
3047         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3048         New.
3049         (linux_target_install_ops): Initialize field
3050         `to_static_tracepoint_markers_by_strid'.
3051         * remote.c (free_current_marker): Move it to ...
3052         * tracepoint.c (free_current_marker): ... here.  New.
3053         (cleanup_target_stop): New.
3054         * tracepoint.h: Declare free_current_marker.
3055         * NEWS: Add one entry about `info static-tracepoint-marker'.
3056
3057 2012-03-03  Yao Qi  <yao@codesourcery.com>
3058
3059         * common/agent.c (agent_loaded_p): New.
3060         (agent_look_up_symbols): New global.
3061         * common/agent.h: Declare agent_loaded_p.
3062
3063 2012-03-03  Yao Qi  <yao@codesourcery.com>
3064
3065         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3066         (agent_capability_check, agent_capability_invalidate): New.
3067         (symbol_list): New array element.
3068         * common/agent.h (enum agent_capa): New.
3069         * target.c (target_pre_inferior): Call agent_capability_invalidate.
3070
3071 2012-03-03  Yao Qi  <yao@codesourcery.com>
3072
3073         * target.h (struct target_ops) <to_use_agent>: New field.
3074         (struct target_ops) <to_can_use_agent>: New field.
3075         (target_use_agent, target_can_use_agent): New macro.
3076         * target.c (update_current_target): Update.
3077         * remote.c: New enum `PACKET_QAgent'.
3078         (remote_protocol_features): Add a new element.
3079         (remote_use_agent, remote_can_use_agent): New.
3080         (init_remote_ops): Initialize field `can_use_agent' with
3081         remote_can_use_agent.  Intiailize field `use_agent' with
3082         remote_use_agent.
3083         * common/agent.c (use_agent): New global.
3084         * common/agent.h: Declare it.
3085         * tracepoint.c (info_static_tracepoint_markers_command): Add
3086         comment.
3087         * Makefile.in (SFILES): Add common/agent.c and agent.c.
3088         (COMMON_OBS): Add common/agent.o and agent.o
3089         (common-agent.o): New rule.
3090         * agent.c: New.
3091
3092 2012-03-03  Yao Qi  <yao@codesourcery.com>
3093
3094         * common/agent.c: New.
3095         * common/agent.h: New.
3096         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3097         AC_CHECK_HEADERS.
3098         * configure, configh.in: Regenerated.
3099
3100 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
3101
3102         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3103         unless it exists for this architecture.
3104
3105 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
3106
3107         * language.h (struct language_defn): New "method" la_read_var_value.
3108         * findvar.c: #include "language.h".
3109         (default_read_var_value): Renames read_var_value.  Rewrite
3110         function description.
3111         (read_var_value): New function.
3112         * value.h (default_read_var_value): Add prototype.
3113         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3114         New functions.
3115         (ada_language_defn): Add entry for la_read_var_value.
3116         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3117         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3118         language_defn structures to add entry for new la_read_var_value
3119         field.
3120
3121 2012-03-02  Tom Tromey  <tromey@redhat.com>
3122             Pedro Alves  <palves@redhat.com>
3123
3124         PR breakpoints/13776:
3125         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3126         breakpoints.
3127         (delete_longjmp_breakpoint_at_next_stop): New.
3128         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3129         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3130         before deleting the inferior.  Add comments.
3131         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3132         breakpoints immediately, but only on next stop.  Move that code
3133         next to where we mark other breakpoints for deletion.
3134
3135 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
3136
3137         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3138         marker.
3139         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3140         violation.
3141
3142 2012-03-02  Pedro Alves  <palves@redhat.com>
3143
3144         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3145
3146 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
3147
3148         Fix -Wmissing-prototypes build.
3149         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3150         * remote-sim.c (gdbsim_has_all_memory): Likewise.
3151         (gdbsim_has_memory): Likewise.
3152
3153 2012-03-02  Yao Qi  <yao@codesourcery.com>
3154
3155         Fix -Wmissing-prototypes build.
3156         * charset.c (phony_iconv_open): Make static.
3157         (phony_iconv_close, phony_iconv): Likewise.
3158         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3159         * i386-windows-nat.c (_initialize_i386_windows_nat): New
3160         prototype.
3161         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3162         * ser-mingw.c (create_select_thread): Make static.
3163         * windows-termcap.c (tgetent): New prototype.
3164         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3165
3166 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
3167
3168         Fix -Wmissing-prototypes build.
3169         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3170         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3171         (_initialize_loadable): New prototypes.
3172
3173 2012-03-02  Doug Evans  <dje@google.com>
3174
3175         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3176         abbrev table, read_comp_unit will do it.
3177
3178 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3179
3180         Fix -Wmissing-prototypes build.
3181         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3182         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3183         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3184         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3185         (_initialize_arm_symbian_tdep): New prototype.
3186         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3187         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3188         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3189         static.
3190         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3191         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3192         prototype.
3193         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3194         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3195         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3196         static.
3197         * moxie-tdep.c (moxie_process_record): Likewise.
3198         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3199         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3200         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3201         (_initialize_rl78_tdep): New prototype.
3202         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3203         (_initialize_rx_tdep): New prototype.
3204         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3205         (_initialize_darwin_solib): New prototype.
3206         * solib-spu.c: Include solib-spu.h.
3207         (_initialize_spu_solib): New prototype.
3208         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3209         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3210         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3211         (tic6x_software_single_step): Make it static.
3212         (_initialize_tic6x_tdep): New prototype.
3213
3214 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3215
3216         Fix -Wmissing-prototypes build.
3217         * cris-tdep.c (cris_can_use_hardware_watchpoint)
3218         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3219
3220 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3221
3222         Fix -Wmissing-prototypes build.
3223         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3224         (frv_have_stopped_data_address): Remove.
3225
3226 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3227
3228         Fix -Wmissing-prototypes build.
3229         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3230         * sh-tdep.c: Include sh64-tdep.h.
3231         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3232         * sh64-tdep.c: Include sh64-tdep.h.
3233         * sh64-tdep.h: New file.
3234
3235 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
3236
3237         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3238
3239 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
3240
3241         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3242         sp_regnum once the gdbarch_init_osabi hook has been called.
3243
3244 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
3245
3246         * mips-tdep.c (mips32_bc1_pc): New function.
3247         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3248         BPOSGE32 and BPOSGE64 instructions.
3249         (deal_with_atomic_sequence): Likewise.
3250         (mips32_instruction_has_delay_slot): Likewise.
3251
3252 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
3253             Chris Dearman  <chris@mips.com>
3254             Maciej W. Rozycki  <macro@codesourcery.com>
3255             Joseph Myers  <joseph@codesourcery.com>
3256
3257         * features/mips-dsp.xml: New file.
3258         * features/mips64-dsp.xml: New file.
3259         * features/mips-dsp-linux.xml: New file.
3260         * features/mips64-dsp-linux.xml: New file.
3261         * features/Makefile (WHICH): Add mips-dsp-linux and
3262         mips64-dsp-linux.
3263         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3264         * features/mips-dsp-linux.c: New file.
3265         * features/mips64-dsp-linux.c: New file.
3266         * regformats/mips-dsp-linux.dat: New file.
3267         * regformats/mips64-dsp-linux.dat: New file.
3268         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3269         registers.
3270         (mips64_linux_register_addr): Likewise.
3271         (mips64_linux_regsets_fetch_registers): Likewise.
3272         (mips64_linux_regsets_store_registers): Likewise.
3273         (mips64_linux_fetch_registers): Update call to
3274         mips64_linux_regsets_fetch_registers.
3275         (mips64_linux_store_registers): Update call to
3276         mips64_linux_regsets_store_registers.
3277         (mips_linux_read_description): Probe for DSP registers.
3278         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3279         and initialize_tdesc_mips64_dsp_linux.
3280         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3281         Remove padding of no longer used embedded register slots.
3282         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3283         (MIPS_RESTART_REGNUM): Redefine enum value.
3284         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3285         strings.
3286         (mips_tx39_reg_names): Likewise.
3287         (mips_linux_reg_names): New array of register names for Linux
3288         targets.
3289         (mips_register_name): Check for a null pointer in
3290         mips_processor_reg_names and return an empty string.
3291         (mips_register_type): Exclude embedded registers for the IRIX
3292         and Linux ABIs.
3293         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
3294         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
3295         DSP registers.
3296         (mips_stab_reg_to_regnum): Handle DSP accumulators.
3297         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3298         (mips_gdbarch_init): Likewise.  Initialize internal register
3299         indices for the Linux ABI.  Use dynamic numbers to refer to
3300         registers, as applicable, while parsing the target description.
3301         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3302
3303 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3304
3305         * frame.h (read_frame_register_unsigned): Fix typo in function
3306         description.
3307
3308 2012-03-01  Pedro Alves  <palves@redhat.com>
3309
3310         * jit-reader.in [!__cplusplus]
3311         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3312
3313 2012-03-01  Pedro Alves  <palves@redhat.com>
3314
3315         * configure.ac (build_warnings): Add -Wmissing-prototypes.
3316         * configure: Regenerate.
3317
3318 2012-03-01  Pedro Alves  <palves@redhat.com>
3319
3320         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3321         * breakpoint.c (create_exception_master_breakpoint, trace_command)
3322         (ftrace_command, strace_command): Make static.
3323         * d-lang.c (_initialize_d_language): Declare.
3324         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3325         * dwarf2loc.c (_initialize_dwarf2loc):
3326         * dwarf2read.c (process_psymtab_comp_unit): Make static.
3327         * exec.c (exec_get_section_table): Make static.
3328         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3329         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3330         * inferior.c (remove_inferior_command, add_inferior_command)
3331         (clone_inferior_command): Make static.
3332         * linux-nat.c (linux_nat_thread_address_space)
3333         (linux_nat_core_of_thread): Make static.
3334         * linux-tdep.c (_initialize_linux_tdep): Declare.
3335         * objc-lang.c (_initialize_objc_lang): Declare.
3336         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3337         Make static.
3338         (_initialize_opencl_language): Declare.
3339         * record.c (_initialize_record): Declare.
3340         * remote.c (demand_private_info, remote_get_tib_address)
3341         (remote_supports_cond_tracepoints)
3342         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3343         Make static.
3344         * skip.c (_initialize_step_skip): Declare.
3345         * symtab.c (skip_prologue_using_lineinfo): Make static.
3346         * tracepoint.c (delete_trace_state_variable)
3347         (trace_variable_command, delete_trace_variable_command)
3348         (get_uploaded_tsv, find_matching_tracepoint_location)
3349         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3350         Make static.
3351         * value.c (pack_unsigned_long): Make static.
3352         * varobj.c (varobj_ensure_python_env): Make static.
3353         * windows-tdep.c (_initialize_windows_tdep): Declare.
3354         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3355
3356 2012-03-01  Pedro Alves  <palves@redhat.com>
3357
3358         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
3359         gdbarch parameter.
3360         (linux_init_abi): Install it as has_shared_address_space gdbarch
3361         callback.
3362
3363 2012-03-01  Pedro Alves  <palves@redhat.com>
3364
3365         * observer.c (observer_test_first_notification_function)
3366         (observer_test_second_notification_function)
3367         (observer_test_third_notification_function): Add declarations.
3368
3369 2012-03-01  Pedro Alves  <palves@redhat.com>
3370
3371         * common/signals.c (default_target_signal_to_host)
3372         (default_target_signal_from_host): Move ...
3373         * arch-utils.c: ... here.
3374         * arch-utils.h (default_target_signal_to_host)
3375         (default_target_signal_from_host): Declare.
3376
3377         * common/signals.c (target_signal_from_command): Move ...
3378         * infrun.c: ... here.
3379         * inferior.h (target_signal_from_command): Declare.
3380         * target.h (target_signal_from_command)
3381         (default_target_signal_from_host, default_target_signal_to_host):
3382         Delete declarations.
3383
3384         * common/signals.c (_initialize_signals): Delete.
3385
3386 2012-03-01  Pedro Alves  <palves@redhat.com>
3387
3388         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3389         both __cplusplus and !__cplusplus.
3390
3391 2012-03-01  Pedro Alves  <palves@redhat.com>
3392
3393         * psymtab.c (find_and_open_source): Delete declaration.
3394         * source.c (find_and_open_source): Move comment ...
3395         * source.h (find_and_open_source): ... to this new declaration.
3396
3397 2012-03-01  Pedro Alves  <palves@redhat.com>
3398
3399         * inline-frame.c: Include inline-frame.h.
3400
3401 2012-03-01  Pedro Alves  <palves@redhat.com>
3402
3403         * tui/tui-data.c (set_gen_win_origin): Delete.
3404         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3405         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3406
3407 2012-03-01  Pedro Alves  <palves@redhat.com>
3408
3409         * remote.c (encode_actions): Delete declaration.
3410         * tracepoint.c (encode_actions): Make extern.
3411         * tracepoint.h (encode_actions): Declare.
3412
3413 2012-03-01  Pedro Alves  <palves@redhat.com>
3414
3415         * python/py-breakpoint.c: Include python.h.
3416         * python/py-continueevent.c (create_continue_event_object): Make
3417         static.
3418         * python/py-lazy-string.c (stpy_get_type): Make static.
3419         * python/py-newobjfileevent.c (create_new_objfile_event_object):
3420         Make static.
3421         * python/py-utils.c (unicode_to_target_python_string): Make
3422         static.
3423         * python/py-value.c: Include python.h.
3424
3425 2012-03-01  Pedro Alves  <palves@redhat.com>
3426
3427         * inferior.c (delete_threads_of_inferior): Delete.
3428
3429 2012-03-01  Pedro Alves  <palves@redhat.com>
3430
3431         Import fallback definitions from glibc.
3432
3433         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3434         ps_prochandle): Forward declare.
3435         (ps_err_e): Use glibc's comments.
3436         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3437         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3438         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3439         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3440         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3441         (struct ps_prochandle): Adjust comment.
3442
3443 2012-03-01  Pedro Alves  <palves@redhat.com>
3444
3445         * ada-lang.c (ada_modulus_from_name): Delete.
3446         * ada-lex.l (lexer_init): Make static.
3447
3448 2012-03-01  Pedro Alves  <palves@redhat.com>
3449
3450         PR gdb/13767
3451
3452         * frame.c (read_frame_register_unsigned): New.
3453         * frame.h (read_frame_register_unsigned): Declare.
3454         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3455         Handle it.
3456         (print_i387_control_word): New parameter `control_p'.  Handle it.
3457         (i387_print_float_info): Handle unavailable float registers.
3458
3459 2012-03-01  Keith Seitz  <keiths@redhat.com>
3460
3461         * linespec.c (decode_line_2): Sort the list of methods
3462         alphabetically before presenting the user with a selection
3463         menu.
3464
3465 2012-03-01  Doug Evans  <dje@google.com>
3466
3467         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3468         has_namespace_info.
3469         (dwarf2_read_abbrevs): Remove corresponding initialization.
3470
3471 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
3472
3473         * NEWS: Mention new python command class gdb.COMMAND_USER.
3474         * cli/cli-cmds.c (show_user): Print error when used on a python
3475         command.
3476         (init_cli_cmds): Update documentation strings for "show user" and
3477         "set/show max-user-call-depth" to clarify that it does not apply to
3478         python commands.
3479         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3480         error check.
3481         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3482         gdb python api.
3483         * top.c (execute_command): Only execute a user-defined command as a
3484         legacy macro if c->user_commands is set.
3485
3486 2012-03-01  Tom Tromey  <tromey@redhat.com>
3487
3488         * valprint.h (struct generic_val_print_decorations): New.
3489         (generic_val_print): Declare.
3490         * valprint.c (generic_val_print): New function.
3491         * p-valprint.c (p_decorations): New global.
3492         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3493         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3494         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3495         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3496         * m2-valprint.c (m2_decorations): New global.
3497         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3498         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3499         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3500         TYPE_CODE_ERROR>: Call generic_val_print.
3501         * f-valprint.c (f_decorations): New global.
3502         (f_val_print): Use print_function_pointer_address.
3503         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3504         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3505         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3506         generic_val_print.
3507         * c-valprint.c (c_decorations): New global.
3508         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3509         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3510         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3511         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3512         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3513         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3514         case.
3515
3516 2012-03-01  Tom Tromey  <tromey@redhat.com>
3517
3518         * valprint.c (val_print): Update.
3519         * p-valprint (pascal_val_print): Return void.
3520         * p-lang.h (pascal_val_print): Return void.
3521         * m2-valprint.c (m2_val_print): Return void.
3522         * m2-lang.h (m2_val_print): Return void.
3523         * language.h (struct language_defn) <la_val_print>: Return void.
3524         * language.c (unk_lang_val_print): Return void.
3525         * jv-valprint.c (java_val_print): Return void.
3526         * jv-lang.h (java_val_print): Return void.
3527         * f-valprint.c (f_val_print): Return void.
3528         * f-lang.h (f_val_print): Return void.
3529         * d-valprint.c (d_val_print): Return void.
3530         (dynamic_array_type): Update.
3531         * d-lang.h (d_val_print): Return void.
3532         * c-valprint.c (c_val_print): Return void.
3533         * c-lang.h (c_val_print): Return void.
3534         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3535         void.
3536         * ada-lang.h (ada_val_print): Return void.
3537
3538 2012-03-01  Tom Tromey  <tromey@redhat.com>
3539
3540         * value.h (val_print): Return void.
3541         * valprint.c (val_print): Return void.
3542
3543 2012-03-01  Tom Tromey  <tromey@redhat.com>
3544
3545         * value.h (common_val_print): Return void.
3546         * valprint.c (common_val_print): Return void.
3547
3548 2012-03-01  Tom Tromey  <tromey@redhat.com>
3549
3550         * value.h (value_print): Return void.
3551         * valprint.c (value_print): Return void.
3552         * p-valprint.c (pascal_value_print): Return void.
3553         * p-lang.h (pascal_value_print): Return void.
3554         * language.h (struct language_defn) <la_value_print>: Return
3555         void.
3556         * language.c (unk_lang_value_print): Return void.
3557         * jv-valprint.c (java_value_print): Return void.
3558         * jv-lang.h (java_value_print): Return void.
3559         * f-valprint.c (c_value_print): Don't declare.
3560         Include c-lang.h.
3561         * c-valprint.c (c_value_print): Return void.
3562         * c-lang.h (c_value_print): Return void.
3563         * ada-valprint.c (ada_value_print): Return void.
3564         * ada-lang.h (ada_value_print): Return void.
3565
3566 2012-03-01  Tom Tromey  <tromey@redhat.com>
3567
3568         * value.c (value_primitive_field): Handle virtual base classes.
3569
3570 2012-03-01  Tom Tromey  <tromey@redhat.com>
3571
3572         * gdbtypes.h (struct vbase): Remove.
3573
3574 2012-03-01  Tom Tromey  <tromey@redhat.com>
3575
3576         * c-valprint.c (print_function_pointer_address): Move...
3577         * valprint.c: ... here.  Make non-static.
3578         * m2-valprint.c (print_function_pointer_address): Remove.
3579         * valprint.h (print_function_pointer_address): Declare.
3580
3581 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3582
3583         * NEWS: Document the fact that one can provide a condition when
3584         creating an Ada exception catchpoint.
3585
3586 2012-03-01  Tom Tromey  <tromey@redhat.com>
3587
3588         * valprint.c (val_print_type_code_flags): Fix placement of
3589         trailing brace.
3590
3591 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3592
3593         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3594         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3595         environment variable before calling update-copyright.
3596
3597 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
3598
3599         * gnulib/extra/update-copyright: Update to the latest from
3600         gnulib's git repository.
3601         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3602         variable to 2 instead of 1.
3603
3604 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3605
3606         * varobj.c (c_value_of_variable): Remove dead code.
3607
3608 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3609
3610         * ada-lex.p (processId): Do not modify already encoded IDs.
3611         Update function documentation.
3612
3613 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3614
3615         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3616         "name" with "struct symbol *name_sym".
3617         * ada-exp.y (write_var_or_type): Update call to
3618         ada_find_renaming_symbol.
3619         "name" with "struct symbol *name_sym". Adjust Implementation
3620         accordingly.  Adjust the function documentation.
3621
3622 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3623
3624         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3625         * ada-lang.c (ada_find_any_type): Add advance declaration.
3626         Make static.  Replace ada_find_any_symbol by
3627         ada_find_any_type_symbol.
3628         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3629         Improve function description.  Make static.
3630         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3631         Replace ada_find_any_symbol by ada_find_any_type_symbol.
3632
3633 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3634
3635         * ada-lang.c (struct tag_args): Delete.
3636         (ada_get_tsd_type): Function body moved up in source file.
3637         (ada_tag_name_1, ada_tag_name_2): Delete.
3638         (ada_get_tsd_from_tag): New function.
3639         (ada_tag_name_from_tsd): New function.
3640         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3641         to determine the tag name.
3642
3643 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3644
3645         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3646         declaration.
3647         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3648         function.
3649
3650 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3651
3652         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3653
3654 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3655
3656         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3657         full searches.
3658
3659 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3660
3661         * ada-lang.c (constrained_packed_array_type): If there is a
3662         parallel XA type, use it to determine the array index type.
3663
3664 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3665
3666         * ada-valprint.c (ada_val_print_1): If our value is a reference
3667         to an array descriptor, dereference it before converting it
3668         to a simple array.
3669
3670 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3671
3672         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3673         creating fixed value.
3674         (ada_value_ind, ada_coerce_ref, assign_component)
3675         (ada_evaluate_subexp): Remove call to unwrap_value before
3676         call to ada_to_fixed_value.
3677
3678 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3679
3680         * ada-lang.c (to_fixed_array_type): Set result's type name.
3681
3682 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
3683
3684         * ada-lang.c (catch_ada_exception_command_split): Add new
3685         argument cond_string.  Add support for condition at end of
3686         "catch exception" commands.
3687         (ada_decode_exception_location): Add new argument cond_string.
3688         Update call to catch_ada_exception_command_split.
3689         (create_ada_exception_catchpoint): Add new argument cond_string.
3690         Set the breakpoint condition if needed.
3691         (catch_ada_exception_command): Update call to
3692         ada_decode_exception_location.
3693         (ada_decode_assert_location): Add function documentation.
3694         Add support for condition at end of "catch assert" command.
3695         (catch_assert_command): Update calls to ada_decode_assert_location
3696         and create_ada_exception_catchpoint.
3697
3698 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3699
3700         Fix disp-step-syscall.exp: fork: single step over fork.
3701         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3702         (i386_linux_get_syscall_number_from_regcache): ... here, new function
3703         comment, change parameters gdbarch and ptid to regcache.  Remove
3704         parameter regcache, initialize gdbarch from regcache here.
3705         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3706         New functions.
3707         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3708         instead.
3709         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3710         'syscall'.  Make the 'int' check more strict.
3711
3712 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3713
3714         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3715         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3716         (i386_linux_intx80_sysenter_syscall_record): ... here.
3717         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3718         Use the renamed function name.
3719
3720 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3721
3722         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3723         * breakpoint.c (until_break_command): Likewise.
3724         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3725         * infcall.c (call_function_by_hand): Likewise.
3726         * infcmd.c (finish_forward): Likewise.
3727         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3728
3729 2012-02-28  Tristan Gingold  <gingold@adacore.com>
3730
3731         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3732         avoid variable assignments inside condition.
3733
3734 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3735
3736         Fix static analysis issue found by cppcheck.
3737         * microblaze-tdep.c (microblaze_extract_return_value): Fix
3738         uninitialized BUF for size 2.
3739
3740 2012-02-27  Chris Dearman  <chris@mips.com>
3741             Nathan Froyd  <froydnj@codesourcery.com>
3742             Maciej W. Rozycki  <macro@codesourcery.com>
3743
3744         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3745         (mips16_instruction_has_delay_slot): Likewise.
3746         (mips_segment_boundary): Likewise.
3747         (mips_adjust_breakpoint_address): Likewise.
3748         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3749
3750 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
3751             Maciej W. Rozycki  <macro@codesourcery.com>
3752
3753         * infrun.c (handle_inferior_event): Don't proceed through
3754         shared library trampolines if stepping at the machine
3755         instruction level.
3756
3757 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
3758
3759         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3760         too.
3761
3762 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
3763
3764         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3765         (sh_stub_unwind_sniffer): New functions.
3766         (sh_stub_unwind): New variable.
3767         (sh_gdbarch_init): Wire everything.
3768
3769 2012-02-27  Pedro Alves  <palves@redhat.com>
3770
3771         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3772         (linux_nat_post_attach_wait): Adjust to use
3773         linux_proc_pid_is_stopped.
3774         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3775         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3776         based on pid_is_stopped from both linux-nat.c and
3777         gdbserver/linux-low.c, and renamed.
3778
3779 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
3780
3781         * remote.c (remote_watchpoint_addr_within_range): New function.
3782         (init_remote_ops): Use it.
3783
3784 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
3785
3786         * target.h (target_watchpoint_addr_within_range): Document macro.
3787
3788 2012-02-24  Pedro Alves  <palves@redhat.com>
3789
3790         * stack.c (set_last_displayed_sal): Issue internal_error instead
3791         of warning, and issue it after clearing the last displayed sal.
3792
3793 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3794             Pedro Alves  <palves@redhat.com>
3795
3796         * breakpoint.c (until_break_command): Install breakpoints after
3797         all frame manipulations.
3798
3799 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3800
3801         * remote.c (remote_supports_cond_breakpoints): New forward
3802         declaration.
3803         (remote_add_target_side_condition): New function.
3804         (remote_insert_breakpoint): Add target-side breakpoint
3805         conditional if supported.
3806         (remote_insert_hw_breakpoint): Likewise.
3807         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3808         hook.
3809
3810         * target.c (update_current_target): Inherit
3811         to_supports_evaluation_of_breakpoint_conditions.
3812         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3813
3814         * target.h (struct target_ops)
3815         <to_supports_evaluation_of_breakpoint_conditions>: New field.
3816         (target_supports_evaluation_of_breakpoint_conditions): New #define.
3817
3818         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3819         (condition_evaluation_both, condition_evaluation_auto,
3820         condition_evaluation_host, condition_evaluation_target,
3821         condition_evaluation_enums, condition_evaluation_mode_1,
3822         condition_evaluation_mode): New static globals.
3823         (translate_condition_evaluation_mode): New function.
3824         (breakpoint_condition_evaluation_mode): New function.
3825         (gdb_evaluates_breakpoint_condition_p): New function.
3826         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3827         (mark_breakpoint_modified): New function.
3828         (mark_breakpoint_location_modified): New function.
3829         (set_condition_evaluation_mode): New function.
3830         (show_condition_evaluation_mode): New function.
3831         (bp_location_compare_addrs): New function.
3832         (get_first_location_gte_addr): New helper function.
3833         (set_breakpoint_condition): Free condition bytecode if locations
3834         has become unconditional.  Call mark_breakpoint_modified (...).
3835         (condition_command): Call update_global_location_list (1) for
3836         breakpoints.
3837         (breakpoint_xfer_memory): Use is_breakpoint (...).
3838         (is_breakpoint): New function.
3839         (parse_cond_to_aexpr): New function.
3840         (build_target_condition_list): New function.
3841         (insert_bp_location): Handle target-side conditional
3842         breakpoints and call build_target_condition_list (...).
3843         (update_inserted_breakpoint_locations): New function.
3844         (insert_breakpoint_locations): Handle target-side conditional
3845         breakpoints.
3846         (bpstat_check_breakpoint_conditions): Add comment.
3847         (bp_condition_evaluator): New function.
3848         (bp_location_condition_evaluator): New function.
3849         (print_breakpoint_location): Print information on where the condition
3850         will be evaluated.
3851         (print_one_breakpoint_location): Likewise.
3852         (init_bp_location): Call mark_breakpoint_location_modified (...) for
3853         breakpoint location.
3854         (force_breakpoint_reinsertion): New functions.
3855         (update_global_location_list): Handle target-side breakpoint
3856         conditions.
3857         Reinsert locations that are already inserted if conditions have
3858         changed.
3859         (bp_location_dtor): Free agent expression bytecode.
3860         (disable_breakpoint): Call mark_breakpoint_modified (...).
3861         Call update_global_location_list (...) with parameter 1 for breakpoints.
3862         (disable_command): Call mark_breakpoint_location_modified (...).
3863         Call update_global_location_list (...) with parameter 1 for breakpoints.
3864         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3865         (enable_command): mark_breakpoint_location_modified (...).
3866         (_initialize_breakpoint): Update documentation and add
3867         condition-evaluation breakpoint subcommand.
3868
3869         * breakpoint.h: Include ax.h.
3870         (condition_list): New data structure.
3871         (condition_status): New enum.
3872         (bp_target_info) <cond_list>: New field.
3873         (bp_location) <condition_changed, cond_bytecode>: New fields.
3874         (is_breakpoint): New prototype.
3875
3876 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3877
3878         * remote.c (remote_state) <cond_breakpoints>: New field.
3879         (PACKET_ConditionalBreakpoints): New enum.
3880         (remote_cond_breakpoint_feature): New function.
3881         (remote_protocol_features): Add new ConditionalBreakpoints entry.
3882         (remote_supports_cond_breakpoints): New function.
3883         (_initialize_remote): Add new packet configuration for
3884         target-side conditional breakpoints.
3885
3886 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3887
3888         * NEWS: Mention target-side conditional breakpoint support,
3889         new condition-evaluation breakpoint subcommand and remote
3890         packet extensions.
3891
3892 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
3893
3894         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3895         number.
3896
3897 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
3898
3899         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3900         (after_prologue): Remove.
3901
3902 2012-02-23  Tom Tromey  <tromey@redhat.com>
3903
3904         * jv-valprint.c (java_val_print): Remove dead code.
3905
3906 2012-02-23  Tristan Gingold  <gingold@adacore.com>
3907
3908         * ada-tasks.c (struct ada_tasks_inferior_data): Add
3909         known_tasks_element and known_tasks_length fields.
3910         (read_known_tasks_array): Change argument type.  Use pointer type
3911         and number of elements from DATA.  Adjust.
3912         (read_known_tasks_list): Likewise.
3913         (get_known_tasks_addr): Remove.
3914         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3915         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
3916         type and array length.  Merge former get_known_tasks_addr code.
3917
3918 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3919
3920         PR backtrace/13716
3921         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3922         it after set_momentary_breakpoint.
3923
3924 2012-02-22  Sterling Augustine  <saugustine@google.com>
3925
3926         PR 13689:
3927         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3928
3929 2012-02-22  Gary Benson  <gbenson@redhat.com>
3930
3931         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3932         (find_slot_in_mapped_hash): Likewise.
3933
3934 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3935
3936         PR build/13638
3937         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3938         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3939         * configure: Regenerate.
3940
3941 2012-02-21  Tristan Gingold  <gingold@adacore.com>
3942             Pedro Alves  <palves@redhat.com>
3943
3944         * ia64-tdep.c: Do not include libunwind-ia64.h.
3945         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3946         Include libunwind-ia64.h instead of libunwind.h.
3947         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3948         for libunwind.h existence.
3949         * configure, config.in: Regenerate.
3950
3951 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
3952
3953         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3954         instead of value_rtti_target_type.
3955         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3956         instead of value_rtti_target_type.
3957         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3958         value_rtti_target_type.
3959         * valops.c (value_ind): Extract function readjust_indirect_value_type.
3960         (value_rtti_target_type): Rename to ...
3961         (value_rtti_indirect_type): ... here and make it indirect.  Update
3962         function comment.
3963         * value.c (readjust_indirect_value_type): New function.
3964         (coerce_ref): Support for enclosing type setting for references
3965         with readjust_indirect_value_type.
3966         * value.h (readjust_value_type): New declaration.
3967         (value_rtti_target_type): Rename to ...
3968         (value_rtti_indirect_type): ... here.
3969
3970 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
3971
3972         * MAINTAINERS (Write After Approval): Add myself to the list.
3973
3974 2012-02-20  Doug Evans  <dje@google.com>
3975
3976         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3977         Rename objfile_p_char parameter to objfilep.
3978         (build_objfile_section_table): Result is now void.  All callers
3979         updated.
3980         * objfiles.h (struct objfile): Tweak comments, whitespace.
3981         (build_objfile_section_table): Update.
3982
3983         * elfread.c (elf_symfile_segments): Fix warning text.
3984
3985 2012-02-20  Tom Tromey  <tromey@redhat.com>
3986
3987         PR gdb/13498:
3988         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3989         particular set of file names once.
3990         (dw2_map_symbol_filenames): Likewise.
3991
3992 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3993
3994         Code cleanup.
3995         * main.c (write_files): Remove the declaration.
3996         (external_editor_command): Move the declaration ...
3997         [GDBTK] (external_editor_command): ... here.  Fix the comment.
3998
3999 2012-02-20  Tom Tromey  <tromey@redhat.com>
4000
4001         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4002         extraneous block.
4003
4004 2012-02-20  Tristan Gingold  <gingold@adacore.com>
4005
4006         * darwin-nat.h (enum darwin_msg_state): Add comments.
4007
4008 2012-02-20  Tristan Gingold  <gingold@adacore.com>
4009
4010         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4011         value.
4012
4013 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
4014
4015         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4016         between function description and implementation.
4017
4018 2012-02-17  Tom Tromey  <tromey@redhat.com>
4019
4020         PR python/12070:
4021         * python/py-event.c (event_object_getset): New global.
4022         (event_object_type): Reference it.
4023         * python/py-type.c (field_object_getset): New global.
4024         (field_object_type): Reference it.
4025         * python/python-internal.h (gdb_py_generic_dict): Declare.
4026         * python/py-utils.c (gdb_py_generic_dict): New function.
4027
4028 2012-02-17  Tristan Gingold  <gingold@adacore.com>
4029
4030         * solib-darwin.c (darwin_current_sos): Check magic and filetype
4031
4032 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
4033
4034         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4035         TYPE_CALLING_CONVENTION annotation.
4036
4037 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
4038
4039         * MAINTAINERS: Add rx to target ISA section.
4040         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4041         (ALLDEPFILES): Add rx-tdep.c.
4042
4043 2012-02-16  Tom Tromey  <tromey@redhat.com>
4044
4045         * symfile.c (symbol_file_add_main_1): Use inferior's
4046         symfile_flags.
4047         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4048         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4049         inferior.
4050         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4051         inferior.
4052         (follow_exec): Use inferior's symfile_flags.
4053         * inferior.h (struct inferior) <symfile_flags>: New field.
4054
4055 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
4056
4057         PR gdb/9734:
4058         * remote-sim.c (gdbsim_create_inferior): Call error() when
4059         sim_create_inferior() fails.
4060
4061 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
4062
4063         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4064
4065 2012-02-16  Tom Tromey  <tromey@redhat.com>
4066
4067         PR c++/13653:
4068         * thread.c (struct current_thread_cleanup) <was_removable>: New
4069         field.
4070         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4071         (make_cleanup_restore_current_thread): Initialize new field.
4072
4073 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
4074
4075         * MAINTAINERS: Add rl78 to target ISA section.
4076         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4077         (ALLDEPFILES): Add rl78-tdep.c.
4078         * NEWS: Mention rl78 as a new target.
4079
4080 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
4081
4082         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4083         data.
4084         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4085
4086 2012-02-15  Tom Tromey  <tromey@redhat.com>
4087
4088         PR gdb/12659:
4089         * infcmd.c (registers_info): Print just the current register's
4090         name.
4091
4092 2012-02-15  Tom Tromey  <tromey@redhat.com>
4093
4094         * python/py-symbol.c (sympy_value): Use _().
4095
4096 2012-02-15  Pedro Alves  <palves@redhat.com>
4097
4098         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4099         output to be like native targets'.
4100         (remote_pid_to_str): Special case the null ptid.
4101
4102 2012-02-14  Stan Shebs  <stan@codesourcery.com>
4103
4104         * NEWS: Mention enable count command.
4105         * breakpoint.h (struct breakpoint): New field enable_count.
4106         * breakpoint.c (enable_breakpoint_disp): Add count argument.
4107         (enable_breakpoint): Add arg to call.
4108         (struct disp_data): New struct.
4109         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4110         (do_map_enable_once_breakpoint): Create a struct and pass it.
4111         (do_map_enable_delete_breakpoint): Ditto.
4112         (do_map_enable_count_breakpoint): New function.
4113         (enable_count_command): New function.
4114         (bpstat_stop_status): Decrement enable_count.
4115         (print_one_breakpoint_location): Report enable count.
4116         (_initialize_breakpoint): Add enable count command.
4117
4118 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
4119
4120         * rl78-tdep.c (reggroups.h): Include.
4121         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4122         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4123         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4124         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4125         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4126         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4127         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4128         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4129         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4130         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4131         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4132         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4133         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4134         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4135         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4136         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4137         beginning of register list.
4138         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4139         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4140         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4141         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4142         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4143         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4144         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4145         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4146         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4147         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4148         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4149         the pseudo registers.  Rearrange other pseudo registers too so
4150         that the bank registers appear at the end.
4151         (rl78_register_type): Account for the fact that the byte sized
4152         bank registers are now pseudo-registers.
4153         (rl78_register_name): Rearrange the register name array.  Make
4154         initial set of raw banked registers inaccessible.
4155         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4156         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4157         case for copying bytes back and forth between raw and pseudo
4158         versions of the banked registers.  Update other cases to reflect
4159         the changed names.
4160         (rl78_return_value): Update to account for changed names of
4161         raw registers.
4162         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4163         rl78_register_sim_regno().
4164
4165 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
4166
4167         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4168         the name parameter being passed to find_pc_partial_function().
4169
4170 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4171
4172         * MAINTAINERS: Step down from being ia64 target maintainer.
4173
4174 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4175
4176         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4177         compilation warning.
4178
4179 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
4180
4181         Fix crash on loaded shlibs without loaded exec_bfd.
4182         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4183         (set_section_command): Replace exec_bfd by p->bfd.
4184
4185 2012-02-10  Tom Tromey  <tromey@redhat.com>
4186
4187         * linespec.c (decode_line_internal): Skip symtabs_from_filename
4188         when we have a C++ qualified name.
4189
4190 2012-02-10  Pedro Alves  <palves@redhat.com>
4191
4192         * inferior.c (inferior_pid_to_str): New.
4193         (print_inferior, inferior_command): Use it.
4194
4195 2012-02-10  Pedro Alves  <palves@redhat.com>
4196
4197         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4198         the test CFLAGS.
4199         * configure: Regenerate.
4200
4201 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4202
4203         * linespec.c (decode_line_internal): Fix comment correctness.
4204
4205 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
4206
4207         PR gdb/12953
4208         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4209         * amd64bsd-nat.c: Add support for debug registers (adapted from
4210         i386bsd-nat.c).
4211         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4212         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4213         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4214         (amd64bsd_dr_get_control): New functions.
4215         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4216         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4217         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4218         watchpoints initialization.
4219         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4220
4221 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4222
4223         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4224         flds_bnds.fields.
4225         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4226
4227 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4228
4229         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
4230
4231 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
4232
4233         * language.h (symbol_name_cmp_ftype): Renames
4234         symbol_name_match_p_ftype.
4235         (struct language_defn)[la_get_symbol_name_cmp]: Renames
4236         la_get_symbol_name_match_p.
4237         * ada-lang.c (ada_get_symbol_name_cmp): Renames
4238         ada_get_symbol_name_match_p.  Update comment.
4239         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4240         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4241         Renames symbol_name_match_p.  Update field type.
4242         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4243         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4244         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4245         "la_get_symbol_name_cmp" in comments.
4246         * language.c: Likewise.
4247
4248 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4249
4250         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4251         %eflags offset.
4252         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4253         (amd64_sol2_gregset32_reg_offs): Likewise.
4254
4255 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
4256
4257         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4258         of the returned BFD is allocated by GDB.
4259
4260 2012-02-07  Tom Tromey  <tromey@redhat.com>
4261
4262         PR python/12027:
4263         * python/python-internal.h (frame_object_type): Declare.
4264         * python/py-symbol.c (sympy_needs_frame): New function.
4265         (sympy_value): New function.
4266         (symbol_object_getset): Add "needs_frame".
4267         (symbol_object_methods): Add "value".
4268         * python/py-frame.c (frame_object_type): No longer static.
4269
4270 2012-02-07  Tom Tromey  <tromey@redhat.com>
4271
4272         PR python/13599:
4273         * python/py-symbol.c (sympy_line): New function.
4274         (symbol_object_getset): Add "line".
4275
4276 2012-02-07  Tom Tromey  <tromey@redhat.com>
4277
4278         * charset.c (find_charset_names): Check 'in' against NULL.
4279
4280 2012-02-06  Doug Evans  <dje@google.com>
4281
4282         * gdbtypes.h (struct main_type): Change type of name,tag_name,
4283         and fields.name members from char * to const char *.  All uses updated.
4284         (struct cplus_struct_type): Change type of fn_fieldlists.name member
4285         from char * to const char *.  All uses updated.
4286         (type_name_no_tag): Update.
4287         (lookup_unsigned_typename, lookup_signed_typename): Update.
4288         * gdbtypes.c (type_name_no_tag): Change result type
4289         from char * to const char *.  All callers updated.
4290         (lookup_unsigned_typename, lookup_signed_typename): Change type of
4291         name parameter from char * to const char *.
4292         * symtab.h (struct cplus_specific): Change type of demangled_name
4293         member from char * to const char *.  All uses updated.
4294         (struct general_symbol_info): Change type of name and
4295         mangled_lang.demangled_name members from char * to const char *.
4296         All uses updated.
4297         (symbol_get_demangled_name, symbol_natural_name): Update.
4298         (symbol_demangled_name, symbol_search_name): Update.
4299         * symtab.c (symbol_get_demangled_name): Change result type
4300         from char * to const char *.  All callers updated.
4301         (symbol_natural_name, symbol_demangled_name): Ditto.
4302         (symbol_search_name): Ditto.
4303         (completion_list_add_name): Change type of symname,sym_text,
4304         text,word parameters from char * to const char *.
4305         (completion_list_objc_symbol): Change type of sym_text,
4306         text,word parameters from char * to const char *.
4307         * ada-lang.c (find_struct_field): Change type of name parameter
4308         from char * to const char *.
4309         (encoded_ordered_before): Similarly for N0,N1 parameters.
4310         (old_renaming_is_invisible): Similarly for function_name parameter.
4311         (ada_type_name): Change result type from char * to const char *.
4312         All callers updated.
4313         * ada-lang.h (ada_type_name): Update.
4314         * buildsym.c (hashname): Change type of name parameter
4315         from char * to const char *.
4316         * buildsym.h (hashname): Update.
4317         * dbxread.c (end_psymtab): Change type of include_list parameter
4318         from char ** to const char **.
4319         * dwarf2read.c (determine_prefix): Change result type
4320         from char * to const char *.  All callers updated.
4321         * f-lang.c (find_common_for_function): Change type of name, funcname
4322         parameters from char * to const char *.
4323         * f-lang.c (find_common_for_function): Update.
4324         * f-valprint.c (list_all_visible_commons): Change type of funcname
4325         parameters from char * to const char *.
4326         * gdbarch.sh (static_transform_name): Change type of name parameter
4327         and result from char * to const char *.
4328         * gdbarch.c: Regenerate.
4329         * gdbarch.h: Regenerate.
4330         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4331         of name parameter from char * to const char *.
4332         * jv-lang.c (java_primitive_type_from_name): Ditto.
4333         (java_demangled_signature_length): Similarly for signature parameter.
4334         (java_demangled_signature_copy): Ditto.
4335         (java_demangle_type_signature): Ditto.
4336         * jv-lang.h (java_primitive_type_from_name): Update.
4337         (java_demangle_type_signature): Update.
4338         * objc-lang.c (specialcmp): Change type of a,b parameters
4339         from char * to const char *.
4340         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4341         from char * to const char *.  All callers updated.
4342         * p-lang.h (is_pascal_string_type): Update.
4343         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4344         of name parameter from char * to const char *.
4345         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4346         * utils.c (fprintf_symbol_filtered): Ditto.
4347         * defs.h (fprintf_symbol_filtered): Update.
4348         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4349         * stabsread.h (end_psymtab): Update.
4350         * stack.c (find_frame_funname): Change type of funname parameter
4351         from char ** to const char **.
4352         * stack.h (find_frame_funname): Update.
4353         * typeprint.c (type_print): Change type of varstring parameter
4354         from char * to const char *.
4355         * value.h (type_print): Update.
4356         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4357         from char * to const char *.  All callers updated.
4358         (xcoff_end_psymtab): Change type of include_list parameter
4359         from char ** to const char **.  All callers updated.
4360         (swap_sym): Similarly for name parameter.  All callers updated.
4361         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4362         Use xstrdup.
4363         (process_coff_symbol): Use xstrdup.
4364         * stabsread.c (stabs_method_name_from_physname): Renamed from
4365         update_method_name_from_physname.  Change result type from void
4366         to char *.  All callers updated.
4367         (read_member_functions): In has_destructor case, store name in objfile
4368         obstack instead of malloc space.  In !has_stub case, fix mem leak.
4369
4370 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
4371
4372         * configure: Rebuild.
4373         * configure.ac: Put -L../bfd and -L../libiberty at the front of
4374         LDFLAGS.
4375
4376 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
4377
4378         * configure.tgt (rl78-*-elf): New target.
4379         * rl78-tdep.c: New file.
4380
4381 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
4382
4383         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4384         and continue the loop.  Add QUIT statement.
4385
4386 2012-02-03  Tom Tromey  <tromey@redhat.com>
4387
4388         PR gdb/13596:
4389         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4390         bfd_lookup_symbol_from_symtab.
4391         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4392         gdb_bfd_lookup_symbol_from_symtab.
4393
4394 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
4395
4396         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4397         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4398         symbol.  Add assertion that sym2 is never NULL.
4399
4400 2012-02-02  Doug Evans  <dje@google.com>
4401
4402         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4403         "name" parameter to const char ** from char **.  All callers updated.
4404         (find_pc_partial_function): Ditto.
4405         (cache_pc_function_name): Change type to const char * from char *.
4406         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4407         (find_pc_partial_function): Update.
4408         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4409         type of "name" parameter to const char * from char *.
4410         All uses updated.
4411         * arch-utils.c (generic_in_solib_return_trampoline): Change
4412         type of "name" parameter to const char * from char *.
4413         * arch-utils.h (generic_in_solib_return_trampoline): Update.
4414         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4415         type of "name" parameter to const char * from char *.
4416         * gdbarch.sh (in_solib_return_trampoline): Ditto.
4417         * gdbarch.c: Regenerate.
4418         * gdbarch.h: Regenerate.
4419         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4420         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4421         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4422         type of "name" parameter to const char * from char *.
4423         * skip.c (skip_function_pc): Ditto.
4424         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4425         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4426         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4427         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4428         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4429         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4430         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4431         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4432         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4433
4434 2012-02-02  Pedro Alves  <palves@redhat.com>
4435
4436         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4437         the current inferior has no execution.  Make sure the current
4438         remote process matches gdb's current inferior.
4439
4440 2012-02-02  Tom Tromey  <tromey@redhat.com>
4441
4442         PR gdb/13405:
4443         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4444         read-only memory.
4445
4446 2012-02-02  Tom Tromey  <tromey@redhat.com>
4447
4448         PR gdb/9307:
4449         * symtab.c (lookup_language_this): Set block_found.
4450
4451 2012-02-01  Tom Tromey  <tromey@redhat.com>
4452
4453         PR gdb/13431:
4454         * jit.c (struct jit_inferior_data): Rewrite.
4455         (struct jit_objfile_data): New.
4456         (get_jit_objfile_data): New function.
4457         (add_objfile_entry): Update.
4458         (jit_read_descriptor): Return int.  Replace descriptor_addr
4459         argument with inf_data.  Update.  Don't call error.
4460         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
4461         descriptor here.
4462         (jit_inferior_init): Don't look up descriptor.  Don't call error.
4463         (jit_reset_inferior_data_and_breakpoints)
4464         (jit_inferior_created_observer): Remove.
4465         (jit_inferior_exit_hook): Update.
4466         (jit_executable_changed_observer): Remove.
4467         (jit_event_handler): Update.
4468         (free_objfile_data): Reset inferior data if needed.
4469         (_initialize_jit): Update.
4470
4471 2012-02-01  Tom Tromey  <tromey@redhat.com>
4472
4473         * jit.c (bfd_open_from_target_memory): Move higher in file.
4474
4475 2012-02-01  Tristan Gingold  <gingold@adacore.com>
4476
4477         * libunwind-frame.c (libunwind_load): Display message if dlopen
4478         failed.
4479
4480 2012-02-01  Gary Benson  <gbenson@redhat.com>
4481
4482         * symtab.h (symbol_found_callback_ftype): New typedef.
4483         (iterate_over_symbols): Use the above.
4484         * symtab.c (iterate_over_symbols): Likewise.
4485         * language.h (language_defn->la_iterate_over_symbols): Likewise.
4486         * ada-lang.c (ada_iterate_over_symbols): Likewise.
4487         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4488         (iterate_name_matcher): Document return values.
4489         (collect_one_symbol): Likewise.
4490         (collect_function_symbols): Likewise.
4491         (collect_symbols): Likewise.
4492
4493 2012-02-01  Tom Tromey  <tromey@redhat.com>
4494
4495         * ada-lang.c (resolve_subexp): Update.
4496         (ada_lookup_symbol_list): Add 'full_search' argument.
4497         (ada_iterate_over_symbols): Pass 0 as full_search argument to
4498         ada_lookup_symbol_list.
4499         (ada_lookup_encoded_symbol): Update.
4500         (get_var_value): Update.
4501         * ada-exp.y (block_lookup): Update.
4502         (write_var_or_type): Update.
4503         (write_name_assoc): Update.
4504         * ada-lang.h (ada_lookup_symbol_list): Update.
4505
4506 2012-01-31  Tom Tromey  <tromey@redhat.com>
4507
4508         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4509         comment.
4510
4511 2012-01-31  Doug Evans  <dje@google.com>
4512
4513         * symtab.h: Remove outdated comment.
4514         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
4515
4516 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
4517
4518         Fix build error in Darwin port.
4519         * i386-darwin-nat.c: Include i386-nat.h.
4520
4521 2012-01-30  Tom Tromey  <tromey@redhat.com>
4522
4523         PR breakpoints/13568:
4524         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4525         argument.  Check for recursive includes.
4526         (dwarf_decode_macros): Create an include hash.
4527
4528 2012-01-30  Michael Eager  <eager@eagercon.com>
4529
4530         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4531         * ppc-linux-tdep.c: Include glibc-tdep.h.
4532         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
4533         (powerpc_linux_in_plt_stub): New function.
4534         (powerpc_linux_in_dynsym_resolve_code): New function.
4535         (ppc_skip_trampoline_code): New function.
4536         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4537         Use glibc_skip_solib_resolver.
4538
4539 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4540
4541         Code cleanup: Make 1440 bytes of data segment read-only.
4542         * arch-utils.c (endian_enum): Make it const char *const [].
4543         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4544         Likewise.
4545         * breakpoint.c (always_inserted_enums): Likewise.
4546         * cli/cli-cmds.c (script_ext_enums): Likewise.
4547         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4548         enumlist parameter const char *const *.
4549         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4550         const char *const *.
4551         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4552         parameter const char *const *.
4553         * cris-tdep.c (cris_modes): Make it const char *const [].
4554         * filesystem.c (target_file_system_kinds): Likewise.
4555         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4556         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4557         (can_use_displaced_stepping_enum, scheduler_enums)
4558         (exec_direction_names): Likewise.
4559         * language.c (_initialize_language): Make the type_or_range_names and
4560         case_sensitive_names variables const char *const [].
4561         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4562         * python/python.c (python_excp_enums): Likewise.
4563         * remote.c (interrupt_sequence_modes): Likewise.
4564         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4565         * serial.c (logbase_enums): Likewise.
4566         * sh-tdep.c (sh_cc_enum): Likewise.
4567         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4568         Likewise.
4569         * symtab.c (multiple_symbols_modes): Likewise.
4570         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4571         Likewise.
4572         * utils.c (internal_problem_modes): Likewise.
4573
4574 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4575
4576         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4577         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4578         result.
4579
4580 2012-01-27  Doug Evans  <dje@google.com>
4581
4582         * configure.ac (with_python): Fix absolute path handling for win32.
4583         * configure: Regenerate.
4584
4585 2012-01-26  Doug Evans  <dje@google.com>
4586
4587         * symtab.c: Whitespace cleanup, no code changes.
4588
4589         * symtab.c (lookup_symbol_in_language): Improve comment.
4590         (lookup_symbol_aux): Fix comment.
4591
4592         * psymtab.c (add_psymbol_to_list): Result is now "void".
4593         * psympriv.h (add_psymbol_to_list): Update.
4594
4595         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4596
4597 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4598
4599         Do not open script filenames twice.
4600         * cli/cli-cmds.c (source_script_from_stream): Pass to
4601         source_python_script also STREAM.
4602         * python/py-auto-load.c (source_section_scripts): Pass to
4603         source_python_script_for_objfile also STREAM.
4604         (auto_load_objfile_script): Pass to source_python_script_for_objfile
4605         also INPUT.
4606         * python/python-internal.h (source_python_script_for_objfile): New
4607         parameter file, rename parameter file to filename.
4608         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4609         instead if !_WIN32.  Update the function comment.
4610         (source_python_script, source_python_script_for_objfile)
4611         (source_python_script): New parameter file, rename parameter file to
4612         filename.  Pass FILENAME to python_run_simple_file.
4613         * python/python.h (source_python_script): New parameter file, rename
4614         parameter file to filename.
4615
4616 2012-01-26  Pedro Alves  <palves@redhat.com>
4617
4618         * corelow.c (core_has_fake_pid): Delete.
4619         (core_close): Delete references to `core_has_fake_pid'.
4620         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4621         (core_open): Delete references to `core_has_fake_pid'.
4622         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4623         the removed global.
4624
4625 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
4626
4627         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4628         Remove language parameter from name_matcher.  Adjust the comment.
4629         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4630         Remove language parameter.
4631         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4632         * linespec.c (iterate_name_matcher): Likewise.
4633         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4634         name_matcher.  Adjust call accordingly.
4635         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4636         (maintenance_check_symtabs): Adjust type of parameter "fun".
4637         * psymtab.h (maintenance_check_symtabs): Likewise.
4638
4639 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
4640
4641         * language.h (symbol_name_match_p_ftype): New typedef.
4642         (struct language_defn): Replace field la_symbol_name_compare
4643         by la_get_symbol_name_match_p.
4644         * ada-lang.c (ada_get_symbol_name_match_p): New function.
4645         (ada_language_defn): Use it.
4646         * linespec.c (struct symbol_matcher_data): New type.
4647         (iterate_name_matcher): Rewrite.
4648         (iterate_over_all_matching_symtabs): Pass a pointer to
4649         a symbol_matcher_data struct to expand_symtabs_matching
4650         instead of just the lookup name.
4651         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4652         opencl-lang.c, p-lang.c, language.c: Delete field
4653         la_symbol_name_compare, and replace by NULL for new field
4654         la_get_symbol_name_match_p.
4655         * symfile.h (struct quick_symbol_functions): Update comment.
4656
4657 2012-01-25  Tom Tromey  <tromey@redhat.com>
4658
4659         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4660         dereferencing.
4661
4662 2012-01-24  Tom Tromey  <tromey@redhat.com>
4663
4664         PR symtab/12406:
4665         * solib.c (update_solib_list): Update the program space's
4666         added_solibs and deleted_solibs fields.
4667         * progspace.h (struct program_space) <added_solibs,
4668         deleted_solibs>: New fields.
4669         (clear_program_space_solib_cache): Declare.
4670         * progspace.c (release_program_space): Call
4671         clear_program_space_solib_cache.
4672         (clear_program_space_solib_cache): New function.
4673         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4674         bpstat_stop_status.  Use handle_solib_event.
4675         * breakpoint.c: Include gdb_regex.h.
4676         (print_solib_event): New function.
4677         (bpstat_print): Use print_solib_event.
4678         (bpstat_stop_status): Add special case for bp_shlib_event.
4679         (handle_solib_event): New function.
4680         (bpstat_what): Use handle_solib_event.
4681         (struct solib_catchpoint): New.
4682         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4683         (breakpoint_hit_catch_solib, check_status_catch_solib)
4684         (print_it_catch_solib, print_one_catch_solib)
4685         (print_mention_catch_solib, print_recreate_catch_solib): New
4686         functions.
4687         (catch_solib_breakpoint_ops): New global.
4688         (catch_load_or_unload, catch_load_command_1)
4689         (catch_unload_command_1): New functions.
4690         (internal_bkpt_check_status): Add special case for
4691         bp_shlib_event.
4692         (internal_bkpt_print_it): Use print_solib_event.
4693         (initialize_breakpoint_ops): Initialize
4694         catch_solib_breakpoint_ops.
4695         (_initialize_breakpoint): Register "catch load" and "catch
4696         unload".
4697         * breakpoint.h (handle_solib_event): Declare.
4698         * NEWS: Add entry for "catch load" and "catch unload".
4699
4700 2012-01-24  Tom Tromey  <tromey@redhat.com>
4701
4702         * ada-lang.c: Include gdb_vecs.h.
4703         * charset.c: Include gdb_vecs.h.
4704         * tracepoint.h: Include gdb_vecs.h.
4705         * gdb_vecs.h: New file.
4706
4707 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
4708
4709         * breakpoint.c (breakpoint_hit_catch_fork)
4710         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4711         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4712         * infrun.c (inferior_has_forked, inferior_has_vforked)
4713         (inferior_has_execd, inferior_has_called_syscall): Delete.
4714         (handle_syscall_event): Get syscall_number from the execution
4715         control state's wait status.
4716         (wait_for_inferior): Don't clear syscall_number.
4717
4718 2012-01-24  Pedro Alves  <palves@redhat.com>
4719
4720         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4721         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4722         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4723         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4724         `ws' parameter.
4725         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
4726         false for events other than TARGET_SIGNAL_TRAP.
4727         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4728         Add `ws' parameter.
4729         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
4730         events other than TARGET_SIGNAL_TRAP.
4731         (tracepoint_breakpoint_hit): Add `ws' parameter.
4732         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4733         parameter.
4734         (bpstat_stop_status): Same.
4735         (pc_at_non_inline_function): Same.
4736         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4737         to pass the current event's waitstatus to bpstat_stop_status
4738         and pc_at_non_inline_function.
4739
4740 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4741
4742         Code cleanup.
4743         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4744         Update the function comment for it.
4745         (source_script_with_search): Call make_cleanup_fclose for STREAM.
4746         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4747         for STREAM.
4748
4749 2012-01-24  Pedro Alves  <palves@redhat.com>
4750
4751         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4752         outside `bs->stop' block.
4753         (bpstat_what): Rework bp_shlib_event handling.
4754         (internal_bkpt_check_status): If the breakpoint is a
4755         bp_shlib_event, then set bs->stop and bs->print if
4756         stop_on_solib_events is set.
4757
4758 2012-01-24  Gary Benson  <gbenson@redhat.com>
4759
4760         Delete #if 0'd out code.
4761         * stack.c (print_frame_label_vars): Remove.
4762         (catch_info): Likewise.
4763         (_initialize_stack): Remove "info catch" command.
4764         * NEWS: Mention the above.
4765
4766 2012-01-24  Pedro Alves  <palves@redhat.com>
4767
4768         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
4769         it.
4770         (remote_notice_new_inferior): If the remote end doesn't support
4771         the multiprocess extensions, then the PID is fake.
4772         (add_current_inferior_and_thread): New.
4773         (remote_start_remote): Use it.
4774         (extended_remote_attach_1): Adjust.
4775         (extended_remote_create_inferior_1): Use
4776         add_current_inferior_and_thread.
4777
4778 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4779
4780         Fix watchpoints to be specific for each inferior.
4781         * breakpoint.c (watchpoint_in_thread_scope): Verify also
4782         current_program_space.
4783         * i386-nat.c (i386_inferior_data_cleanup): New.
4784         (i386_inferior_data_get): Replace variable inf_data_local by an
4785         inferior_data call.
4786         (i386_use_watchpoints): Initialize i386_inferior_data.
4787         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4788         specific iterate_over_lwps.
4789
4790 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4791
4792         Fix watchpoints across inferior fork.
4793         * amd64-linux-nat.c (update_debug_registers_callback): Update the
4794         comment for linux_nat_iterate_watchpoint_lwps.
4795         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4796         linux_nat_iterate_watchpoint_lwps.
4797         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4798         * i386-linux-nat.c (update_debug_registers_callback): Update the
4799         comment for linux_nat_iterate_watchpoint_lwps.
4800         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4801         linux_nat_iterate_watchpoint_lwps.
4802         (i386_linux_prepare_to_resume): New comment on Linux kernel.
4803         * i386-nat.c: Include inferior.h.
4804         (dr_mirror): Remove.
4805         (i386_inferior_data, struct i386_inferior_data)
4806         (i386_inferior_data_get): New.
4807         (i386_debug_reg_state): Use i386_inferior_data_get.
4808         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4809         (i386_insert_watchpoint, i386_remove_watchpoint)
4810         (i386_stopped_data_address, i386_insert_hw_breakpoint)
4811         (i386_remove_hw_breakpoint): New variable state, use
4812         i386_debug_reg_state instead of DR_MIRROR.
4813         * linux-nat.c (delete_lwp): New declaration.
4814         (num_lwps): Move here from downwards.
4815         (delete_lwp_cleanup): New.
4816         (linux_child_follow_fork): Create new child_lp, call
4817         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4818         PTRACE_DETACH.
4819         (num_lwps): Move upwards.
4820         (linux_nat_iterate_watchpoint_lwps): New.
4821         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4822         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4823
4824 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
4825
4826         GDB 7.4 released.
4827
4828 2012-01-23  Pedro Alves  <palves@redhat.com>
4829
4830         * top.c (caution): Rename to ...
4831         (confirm): ... this.
4832         (show_caution): Rename to ...
4833         (show_confirm): ... this.
4834         (quit_cover): Adjust.
4835         (init_main): Adjust.
4836         * top.h (caution): Rename to ...
4837         (confirm): ... this.
4838         * utils.c (internal_vproblem, defaulted_query): Adjust.
4839
4840 2012-01-23  Pedro Alves  <palves@redhat.com>
4841
4842         * top.c (caution): Update comment.
4843         (execute_command): Don't consider the current value of `caution'.
4844
4845 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
4846
4847         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4848
4849 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
4850
4851         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4852         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4853         * target.c (target_fileio_pwrite): Remove buffer address from
4854         debug output.
4855         (target_fileio_pread): Likewise.
4856
4857 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4858
4859         * NEWS: Document remote "info proc" and "generate-core-file".
4860
4861 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4862
4863         * gdbarch.sh (find_memory_regions): New callback.
4864         * gdbarch.c, gdbarch.h: Regenerate.
4865
4866         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4867         callback before falling back to target method.
4868
4869         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4870         (linux_target_install_ops): No longer install it.
4871
4872         * linux-tdep.c (linux_find_memory_regions): New function.
4873         (linux_init_abi): Install it.
4874
4875 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4876
4877         * gdbarch.sh (make_corefile_notes): New architecture callback.
4878         * gdbarch.c: Regenerate.
4879         * gdbarch.h: Likewise.
4880
4881         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4882         before target_make_corefile_notes.  If NULL is returned, the
4883         target does not support core file generation.
4884
4885         * linux-nat.c: Include "linux-tdep.h".
4886         (find_signalled_thread, find_stop_signal): Remove.
4887         (linux_nat_do_thread_registers): Likewise.
4888         (struct linux_nat_corefile_thread_data): Likewise.
4889         (linux_nat_corefile_thread_callback): Likewise.
4890         (iterate_over_spus): Likewise.
4891         (struct linux_spu_corefile_data): Likewise.
4892         (linux_spu_corefile_callback): Likewise.
4893         (linux_spu_make_corefile_notes): Likewise.
4894         (linux_nat_collect_thread_registers): New function.
4895         (linux_nat_make_corefile_notes): Replace contents by call to
4896         linux_make_corefile_notes passing linux_nat_collect_thread_registers
4897         as native-only callback.
4898
4899         * linux-tdep.h: Include "bfd.h".
4900         (struct regcache): Add forward declaration.
4901         (linux_collect_thread_registers_ftype): New typedef.
4902         (linux_make_corefile_notes): Add prototype.
4903         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4904         "regset.h", and "elf-bfd.h".
4905         (find_signalled_thread, find_stop_signal): New functions.
4906         (linux_spu_make_corefile_notes): Likewise.
4907         (linux_collect_thread_registers): Likewise.
4908         (struct linux_corefile_thread_data): New data structure.
4909         (linux_corefile_thread_callback): New funcion.
4910         (linux_make_corefile_notes): Likewise.
4911         (linux_make_corefile_notes_1): Likewise.
4912         (linux_init_abi): Install it.
4913
4914 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4915
4916         * gdbarch.sh (info_proc): New callback.
4917         * gdbarch.c, gdbarch.h: Regenerate.
4918
4919         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4920         before falling back to the target info_proc callback.
4921
4922         * linux-nat.c: Do not include "cli/cli-utils.h".
4923         (linux_nat_info_proc): Remove.
4924         (linux_target_install_ops): No longer install it.
4925
4926         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4927         (read_mapping): New function.
4928         (linux_info_proc): Likewise.
4929         (linux_init_abi): Install it.
4930
4931 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4932
4933         * defs.h (enum info_proc_what): Moved here from linux-nat.c
4934         * infcmd.c: (info_proc_cmd_1): New function.
4935         (info_proc_cmd): New function, moved here from equivalent routine
4936         orignally in linux-nat.c.
4937         (info_proc_cmd_mappings): Likewise.
4938         (info_proc_cmd_stat): Likewise.
4939         (info_proc_cmd_status): Likewise.
4940         (info_proc_cmd_cwd): Likewise.
4941         (info_proc_cmd_cmdline): Likewise.
4942         (info_proc_cmd_exe): Likewise.
4943         (info_proc_cmd_all): Likewise.
4944         (_initialize_infcmd): Install "info proc" command and subcommands.
4945
4946         * target.h (struct target_ops): Add to_info_proc.
4947         (target_info_proc): Add prototype.
4948         * target.c (target_info_proc): New function.
4949
4950         * procfs.c (procfs_info_proc): Add prototype.
4951         (info_proc_cmd): Rename into ...
4952         (procfs_info_proc): ... this.  Update argument types as appropriate
4953         for a to_info_proc implementation.  Handle "what" argument.
4954         (procfs_target): Install procfs_info_proc.
4955         (_initialize_procfs): No longer install "info proc" command.
4956
4957         * linux-nat.c: (enum info_proc_what): Remove.
4958         (linux_nat_info_proc_cmd_1): Rename into ...
4959         (linux_nat_info_proc): ... this.  Update argument types as appropriate
4960         for a to_info_proc implementation.
4961         (linux_nat_info_proc_cmd): Remove.
4962         (linux_nat_info_proc_cmd_mappings): Likewise.
4963         (linux_nat_info_proc_cmd_stat): Likewise.
4964         (linux_nat_info_proc_cmd_status): Likewise.
4965         (linux_nat_info_proc_cmd_cwd): Likewise.
4966         (linux_nat_info_proc_cmd_cmdline): Likewise.
4967         (linux_nat_info_proc_cmd_exe): Likewise.
4968         (linux_nat_info_proc_cmd_all): Likewise.
4969         (linux_target_install_ops): Install linux_nat_info_proc.
4970         (_initialize_linux_nat): No longer install "info proc" command
4971         and subcommands.
4972
4973 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
4974
4975         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4976         * config.in, configure: Regenerate.
4977
4978         * target.h (struct target_ops): Add to_fileio_readlink.
4979         (target_fileio_readlink): Add prototype.
4980         * target.c (target_fileio_readlink): New function.
4981
4982         * inf-child.c: Conditionally include <sys/param.h>.
4983         (inf_child_fileio_readlink): New function.
4984         (inf_child_target): Install it.
4985
4986         * remote.c (PACKET_vFile_readlink): New enum value.
4987         (remote_hostio_readlink): New function.
4988         (init_remote_ops): Install it.
4989         (_initialize_remote): Handle vFile:readlink packet type.
4990
4991 2012-01-20  Pedro Alves  <palves@redhat.com>
4992             Ulrich Weigand  <ulrich.weigand@linaro.org>
4993
4994         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4995         * config.in, configure: Regenerate.
4996
4997         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4998         to_fileio_pread, to_fileio_close, to_fileio_unlink.
4999         (target_fileio_open): Add prototype.
5000         (target_fileio_pwrite): Likewise.
5001         (target_fileio_pread): Likewise.
5002         (target_fileio_close): Likewise.
5003         (target_fileio_unlink): Likewise.
5004         (target_fileio_read_alloc): Likewise.
5005         (target_fileio_read_stralloc): Likewise.
5006
5007         * target.c: Include "gdb/fileio.h".
5008         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5009         (default_fileio_target): New function.
5010         (target_fileio_open): Likewise.
5011         (target_fileio_pwrite): Likewise.
5012         (target_fileio_pread): Likewise.
5013         (target_fileio_close): Likewise.
5014         (target_fileio_unlink): Likewise.
5015         (target_fileio_close_cleanup): Likewise.
5016         (target_fileio_read_alloc_1): Likewise.
5017         (target_fileio_read_alloc): Likewise.
5018         (target_fileio_read_stralloc): Likewise.
5019
5020         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5021         <fcntl.h>, and <unistd.h>.
5022         (inf_child_fileio_open_flags_to_host): New function.
5023         (inf_child_errno_to_fileio_error): Likewise.
5024         (inf_child_fileio_open): Likewise.
5025         (inf_child_fileio_pwrite): Likewise.
5026         (inf_child_fileio_pread): Likewise.
5027         (inf_child_fileio_close): Likewise.
5028         (inf_child_fileio_unlink): Likewise.
5029         (inf_child_target): Install to_fileio routines.
5030
5031         * remote.c (init_remote_ops): Install to_fileio routines.
5032
5033 2012-01-20  Pedro Alves  <palves@redhat.com>
5034             Ulrich Weigand  <ulrich.weigand@linaro.org>
5035
5036         * remote.c (remote_multi_process_p): Only check for multi-process
5037         protocol feature, do not check for extended protocol.
5038         (remote_supports_multi_process): Check for extended protocol here.
5039         (set_general_process): Likewise.
5040         (extended_remote_kill): Likewise.
5041         (remote_pid_to_str): Likewise.
5042         (remote_query_supported): Always query multiprocess mode.
5043
5044 2012-01-20  Pedro Alves  <palves@redhat.com>
5045             Ulrich Weigand  <ulrich.weigand@linaro.org>
5046
5047         * inferior.h (struct inferior): Add fake_pid_p.
5048         * inferior.c (exit_inferior_1): Clear fake_pid_p.
5049         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5050         magic_null_ptid since the remote side doesn't provide a real PID.
5051
5052 2012-01-19  Tom Tromey  <tromey@redhat.com>
5053
5054         * NEWS: Combine the two Python sections.
5055
5056 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
5057
5058         * target.h (target_close): Update comment on the target's unpush state.
5059
5060 2012-01-19  Pedro Alves  <palves@redhat.com>
5061
5062         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5063         linux_nat_async directly instead of going through the target
5064         vector.
5065         * target.c (unpush_target): Close target after unpushing it, not
5066         before.
5067
5068 2012-01-19  Gary Benson  <gbenson@redhat.com>
5069
5070         * mdebugread.c (sort_blocks): Replace integer constants with ones
5071         derived from FIRST_LOCAL_BLOCK.
5072
5073 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5074             Jan Kratochvil  <jan.kratochvil@redhat.com>
5075
5076         PR gdb/9538
5077         * symfile.c (find_separate_debug_file): New function.
5078         (terminate_after_last_dir_separator): Likewise.
5079         (find_separate_debug_file_by_debuglink): Also try realpath.
5080         * configure.ac (AC_CHECK_FUNCS): Add lstat.
5081         * configure: Regenerate.
5082         * config.in: Regenerate.
5083
5084 2012-01-18  Doug Evans  <dje@google.com>
5085
5086         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5087         (main.o): Remove rule.
5088         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5089         (--with-sysroot): Rewrite.
5090         * configure: Regenerate.
5091         * config.in: Regenerate.
5092
5093 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5094
5095         * parse.c (initialize_expout): New function.
5096         (reallocate_expout): Likewise.
5097         (parse_exp_in_context): Use `initialize_expout' and
5098         `reallocate_expout' when appropriate.
5099
5100 2012-01-18  Pedro Alves  <palves@redhat.com>
5101
5102         * record.c (struct record_breakpoint, record_breakpoint_p)
5103         (record_breakpoints): New.
5104         (record_insert_breakpoint, record_remove_breakpoint): Manage
5105         record breakpoints list.  Only remove breakpoints from the
5106         inferior if they had been inserted there in the first place.
5107
5108 2012-01-17  Doug Evans  <dje@google.com>
5109
5110         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5111         if we know we don't have a file name to look for.
5112
5113 2012-01-17  Pedro Alves  <palves@redhat.com>
5114
5115         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5116         the frame's stop reason is UNWIND_UNAVAILABLE.
5117
5118 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
5119
5120         Fix compilation error.
5121         * m2-exp.y (yyerror): Use ANSI C prototype.
5122
5123 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5124
5125         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5126         (growbuf_by_size): Likewise.
5127         (yyerror): Likewise.
5128         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5129         (modblock): Remove variable (was #if 0'ed).
5130         (parse_number): Convert prototype from K&R to ANSI C.
5131         (yyerror): Likewise.
5132         * objc-exp.y (parse_number): Likewise.
5133         (yyerror): Likewise.
5134         (yylex): Remove #if 0'ed code.
5135         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5136         (yyerror): Likewise.
5137
5138 2012-01-16  Tom Tromey  <tromey@redhat.com>
5139
5140         * NEWS: Add item.
5141         * symtab.h (compare_filenames_for_search): Declare.
5142         * symtab.c (compare_filenames_for_search): New function.
5143         (iterate_over_some_symtabs): Use it.
5144         * symfile.h (struct quick_symbol_functions)
5145         <map_symtabs_matching_filename>: Change spec.
5146         * psymtab.c (partial_map_symtabs_matching_filename): Use
5147         compare_filenames_for_search.  Update for new spec.
5148         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5149         compare_filenames_for_search.  Update for new spec.
5150         * breakpoint.c (clear_command): Use compare_filenames_for_search.
5151
5152 2012-01-16  Tom Tromey  <tromey@redhat.com>
5153
5154         PR python/13281:
5155         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5156         (struct main_type) <flag_flag_enum>: New field.
5157         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5158         * NEWS: Add entries.
5159         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5160         enums.
5161         * python/lib/gdb/printing.py (_EnumInstance): New class.
5162         (FlagEnumerationPrinter): Likewise.
5163
5164 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5165
5166         * breakpoint.c (create_sals_from_address_default): New function.
5167         (create_breakpoints_sal_default): Likewise.
5168         (decode_linespec_default): Likewise.
5169         (is_marker_spec): Removed.
5170         (strace_marker_p): New function.
5171         (init_breakpoint_sal): Using `strace_marker_p' instead of
5172         `is_marker_spec'.
5173         (create_breakpoint): Call method `create_sals_from_address' from
5174         breakpoint_ops, replacing code that created SALs conditionally
5175         on the type of the breakpoint.  Call method `create_breakpoints_sal',
5176         replacing code that created breakpoints conditionally on the type
5177         wanted.
5178         (base_breakpoint_create_sals_from_address): New function.
5179         (base_breakpoint_create_breakpoints_sal): Likewise.
5180         (base_breakpoint_decode_linespec): Likewise.
5181         (base_breakpoint_ops): Add methods
5182         `base_breakpoint_create_sals_from_address',
5183         `base_breakpoint_create_breakpoints_sal' and
5184         `base_breakpoint_decode_linespec'.
5185         (bkpt_create_sals_from_address): New function.
5186         (bkpt_create_breakpoints_sal): Likewise.
5187         (bkpt_decode_linespec): Likewise.
5188         (tracepoint_create_sals_from_address): Likewise.
5189         (tracepoint_create_breakpoints_sal): Likewise.
5190         (tracepoint_decode_linespec): Likewise.
5191         (strace_marker_create_sals_from_address): Likewise.
5192         (strace_marker_create_breakpoints_sal): Likewise.
5193         (strace_marker_decode_linespec): Likewise.
5194         (strace_marker_breakpoint_ops): New variable.
5195         (addr_string_to_sals): Remove `marker_spec'.  Call method
5196         `decode_linespec' from breakpoint_ops, replacing code that decoded
5197         an address string into a SAL.  Use `strace_marker_p' instead of
5198         `marker_spec'.
5199         (strace_command): Decide whether we are dealing with a static
5200         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
5201         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5202         * breakpoint.h (linespec_result, linespec_sals): New forward
5203         declarations.
5204         (breakpoint_ops) <create_sals_from_address>,
5205         <create_breakpoints_sal>, <decode_linespec>: New methods.
5206
5207 2012-01-14  Doug Evans  <dje@google.com>
5208
5209         * NEWS: Update text for "maint set python print-stack".
5210         It is deprecated in gdb 7.4 and deleted in 7.5.
5211
5212 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
5213
5214         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5215         including curses.h.
5216
5217 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5218
5219         * configure: Regenerate.
5220         * config.in: Regenerate.
5221
5222 2012-01-12  Keith Seitz  <keiths@redhat.com>
5223
5224         PR mi/10586
5225         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5226         (ANONYMOUS_UNION_NAME): Define.
5227         (is_path_expr_parent): New function.
5228         (get_path_expr_parent): New function.
5229         (is_anonymous_child): New function.
5230         (create_child_with_value): If the child is anonymous and without
5231         a name, assign an object name to it.
5232         (c_describe_child): Use get_path_expr_parent to determine
5233         the parent expression.
5234         If there field represents an anonymous struct or union and
5235         has no name, set an appropriate display name and expression.
5236         (cplus_describe_child): Likewise.
5237
5238 2012-01-12  Pedro Alves  <palves@redhat.com>
5239
5240         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5241         available when %ebp is found to be zero (outermost).
5242
5243 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
5244
5245         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5246         an internal gdb_static_assert.
5247         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5248
5249 2012-01-11  Tom Tromey  <tromey@redhat.com>
5250
5251         PR gdb/9598:
5252         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5253         catch" and "catch throw".
5254
5255 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
5256
5257         * blockframe.c (block_innermost_frame): Start search from selected
5258         frame, if present, or otherwise the current frame.
5259
5260         * c-exp.y (variable): Update innermost_block for
5261         'block COLONCOLON NAME' clause.
5262         * m2-exp.y (variable): Ditto.
5263         * objc-exp.y (variable): Ditto.
5264
5265 2012-01-10  Tom Tromey  <tromey@redhat.com>
5266
5267         PR python/13199:
5268         * python/python.c (finish_python_initialization): Set sys.argv.
5269
5270 2012-01-10  Doug Evans  <dje@google.com>
5271
5272         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
5273         "want_line_info".  All callers updated.
5274         (dwarf_decode_lines_1): New function.
5275         (handle_DW_AT_stmt_list): Add function comment.
5276         New arg "want_line_info".  All callers updated.
5277         (read_file_scope,read_type_unit_scope): Move comment from
5278         handle_DW_AT_stmt_list to here.
5279
5280 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5281
5282         Fix regression after libiberty/ update for GCC PR 6057 and others.
5283         * c-exp.y (operator) <OPERATOR DELETE>
5284         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5285         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5286         (make_builtin_type, make_name): New variable i, add gdb_assert.
5287         (operator) <OPERATOR NEW>: Update ARGS to 3.
5288         (operator) <OPERATOR DELETE>: Add trailing space.
5289         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5290         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5291         * cp-support.c (cp_canonicalize_string): Check NULL from
5292         cp_comp_to_string, call warning and return.
5293
5294 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
5295
5296         Fix duplicate .o files after omitting libbfd.a.
5297         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5298         (SFILES): Add corelow.c.
5299         (COMMON_OBS): Add corelow.o.
5300         (ALLDEPFILES): Remove corelow.c.
5301         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5302         * config/alpha/alpha-osf3.mh: Likewise.
5303         * config/alpha/fbsd.mh: Likewise.
5304         * config/arm/nbsdaout.mh: Likewise.
5305         * config/arm/nbsdelf.mh: Likewise.
5306         * config/i386/i386gnu.mh: Likewise.
5307         * config/ia64/hpux.mh: Likewise.
5308         * config/ia64/linux.mh: Likewise.
5309         * config/m32r/linux.mh: Likewise.
5310         * config/m68k/linux.mh: Likewise.
5311         * config/mips/irix5.mh: Likewise.
5312         * config/mips/irix6.mh: Likewise.
5313         * config/pa/hpux.mh: Likewise.
5314         * config/pa/linux.mh: Likewise.
5315         * config/powerpc/aix.mh: Likewise.
5316         * config/sparc/linux.mh: Likewise.
5317         * config/sparc/linux64.mh: Likewise.
5318         * config/sparc/sol2.mh: Likewise.
5319         * config/vax/vax.mh: Likewise.
5320         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5321         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5322         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5323         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5324         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5325         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5326         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5327         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5328         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5329         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5330         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5331         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5332         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5333         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5334         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5335         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5336         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5337         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5338         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5339         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5340         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5341         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5342         corelow.o from gdb_target_obs.
5343         * corefile.c (core_target): Update the comment on NULL value.
5344         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5345         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5346         MATCHES.  Drop YUMMY set on NULL.
5347         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
5348         reclaim CORE_DATA if it is already NULL.
5349
5350 2012-01-09  Doug Evans  <dje@google.com>
5351
5352         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5353         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5354
5355 2012-01-09  Keith Seitz  <keiths@redhat.com>
5356
5357         * breakpoint.c (wrapper.h): Don't include.
5358
5359 2012-01-09  Keith Seitz  <keiths@redhat.com>
5360
5361         * Makefile.in (SFILES): Remove wrapper.c.
5362         (HFILES_NO_SRCDIR): Remove wrapper.h.
5363         (COMMON_OBS): Remove wrapper.o.
5364         * cli/cli-interp.c: Don't inlude wrapper.h.
5365         * corelow.c: Likewise.
5366         (core_open): Replace gdb_target_find_new_threads with
5367         TRY_CATCH around target_find_new_threads.
5368         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5369         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5370         * varobj.c (varobj_create): Likewise for parse_exp_1 and
5371         evaluate_expression.
5372         (varobj_set_value): Likewise for evaluate_expression and
5373         value_assign.
5374         (install_new_variable): Likewise for value_fetch_lazy.
5375         (adjust_value_for_child_access): Likewise for value_ind.
5376         (c_describe_child): Likewise for value_subscript and
5377         value_ind.
5378         (c_value_of_root): Likewise for evaluate_expression.
5379         * wrapper.c: Remove.
5380         * wrapper.h: Remove.
5381
5382 2012-01-09  Doug Evans  <dje@google.com>
5383
5384         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5385         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
5386         "abfd" args with "section".  All callers updated.
5387         Error checking code moved ...
5388         (error_check_comp_unit_head): ... here.  New function.
5389         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5390         Delete arg "abfd".  New arg "type_offset".  All callers updated.
5391         (create_debug_types_hash_table): Simplify by using
5392         read_and_check_type_unit_head.
5393
5394         * parser-defs.h (namecopy): Delete.
5395         * parse.c (namecopy, namecopy_size): Move into copy_name.
5396
5397 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5398
5399         Partially fix duplicate .o files after omitting libbfd.a.
5400         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5401         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5402         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5403         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5404         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5405         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5406         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5407
5408 2012-01-09  Pedro Alves  <palves@redhat.com>
5409
5410         * MAINTAINERS: Update my email address.
5411
5412 2012-01-08  Doug Evans  <dje@google.com>
5413
5414         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5415         n_type_units.  Rename type_comp_units to all_type_units.
5416         All uses updated.
5417         (add_signatured_type_cu_to_table): Renamed from
5418         add_signatured_type_cu_to_list.  All callers updated.
5419
5420         * gdbtypes.h (struct cplus_struct_type): Delete member
5421         nfn_fields_total.  All uses removed.
5422
5423 2012-01-06  Doug Evans  <dje@google.com>
5424
5425         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5426         to top of file.
5427         (dwarf2_find_comp_unit): Delete.
5428         (process_psymtab_comp_unit): Make result "void".
5429         Delete args buffer, info_ptr, buffer_size, and replace with
5430         "section".  All callers updated.
5431         (dwarf2_build_psymtabs_hard): Simplify.
5432
5433 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
5434             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5435
5436         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5437         before `struct gdb_exception'.
5438         * breakpoint.c (update_global_location_list_nothrow)
5439         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5440         * cp-abi.c (value_rtti_type): Likewise.
5441         * cp-support.c (cp_validate_operator): Likewise.
5442         * infrun.c (insert_exception_resume_breakpoint)
5443         (check_exception_resume, keep_going): Likewise.
5444         * mi-interp.c (mi_breakpoint_created)
5445         (mi_breakpoint_modified): Likewise.
5446         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5447         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5448         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5449
5450 2012-01-05  Doug Evans  <dje@google.com>
5451
5452         * dwarf2read.c (statement_prologue): Delete, unused.
5453
5454         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5455         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5456
5457         * dwarf2read.c (comp_unit_header): Delete, unused.
5458
5459 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
5460
5461         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5462         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5463
5464 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
5465
5466         * infrun.c (normal_stop): Don't skip calling the normal_stop
5467         observers if the thread was doing a multi-step, but stopped for
5468         some reason other than stepping.
5469
5470 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
5471
5472         * cli/cli-decode.h: Add comments.
5473         (CMD_LIST_AMBIGUOUS): Moved to command.h
5474         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5475         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5476         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5477         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5478         (add_com, add_com_alias, add_info, add_info_alias)
5479         (complete_on_cmdlist, complete_on_enum, help_list): Remove
5480         declarations.
5481         * command.h: Add and adjust comments.
5482         (CMD_LIST_AMBIGUOUS): Moved here.
5483         (help_cmd, help_cmd_list): Delete declarations.
5484
5485 2012-01-04  Doug Evans  <dje@google.com>
5486
5487         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5488         All callers updated.
5489         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5490         Replace all arguments with "per_cu".  All callers updated.
5491
5492         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5493
5494         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5495         New arg "per_cu".  All callers updated.
5496
5497         Delete #if 0'd out code.
5498         * language.c (binop_result_type): Delete.
5499         (simple_type, ordered_type, same_type, integral_type): Delete.
5500         (numeric_type, character_type, string_type, boolean_type): Delete.
5501         (float_type, structured_type): Delete.
5502         * language.h: Update.
5503
5504 2012-01-04  Tom Tromey  <tromey@redhat.com>
5505
5506         * python/py-value.c (valpy_binop): Initialize 'res_val'.
5507
5508 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5509
5510         * corefile.c (close_exec_file): Delete.
5511         (reopen_exec_file): Remove commented out code that seems related
5512         to close_exec_file, which is being deleted here.
5513         * inferior.h (close_exec_file): Delete.
5514         * fork-child.c (fork_inferior): Remove call to fork_inferior.
5515
5516 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5517
5518         * ada-lang.c: #include "cli/cli-utils.h".
5519         (get_selections): Use skip_spaces.
5520         (ada_get_next_arg): Use skip_spaces and skip_to_space.
5521         (catch_ada_exception_command_split): Use skip_spaces.
5522         (ada_decode_assert_location): Likewise.
5523
5524 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5525
5526         * linespec.c (decode_line_internal): Check for C++ or Java
5527         compound constructs only if the current language is C, C++
5528         or Java.
5529
5530 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5531
5532         Revert:
5533         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5534                     Joel Brobecker  <brobecker@adacore.com>
5535         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5536         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5537         3 times.
5538         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5539         fall through into AT_ENTRY_POINT.
5540         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
5541         DUMMY_ADDR with it.
5542         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5543         PPC_INSN_SIZE skip to 3 times.
5544
5545 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5546
5547         * linespec.c (add_minsym): Preserve function descriptors.
5548
5549 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
5550
5551         * breakpoint.c (all_locations_are_pending): Consider locations
5552         in program spaces executing during startup pending as well.
5553
5554 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5555
5556         Copyright year update in most files of the GDB Project.
5557
5558 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5559
5560         * copyright.sh: Delete.
5561         * copyright.py: Rewrite.
5562
5563 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5564
5565         * gnulib/extra/update-copyright: New file, imported from gnulib.
5566
5567 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
5568
5569         * README (Copyright and License Notices): New section.
5570
5571 2012-01-03  Tom Tromey  <tromey@redhat.com>
5572
5573         PR python/12533:
5574         * python/py-value.c (valpy_dereference, valpy_get_address
5575         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5576         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5577         (valpy_absolute, valpy_richcompare): Free intermediate values.
5578
5579 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
5580
5581         * ada-lang.c: Reformat the copyright notice.
5582
5583 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5584
5585         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5586         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5587         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5588         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5589         Revert this part of:
5590         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5591         Build gdb directly from *.o files not using libgdb.a.
5592         * Makefile.in (COMMON_OBS): Remove solib-target.o.
5593
5594 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5595
5596         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5597         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5598         Reformat the copyright header.
5599
5600 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5601
5602         Revert this part of:
5603         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5604         Remove the gdbtui binary.
5605         * gdb.c (main): Remove args.interpreter_p initialization.
5606         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5607         * main.h (struct captured_main_args): Remove interpreter_p.
5608
5609 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5610
5611         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5612
5613 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
5614
5615         * top.c (print_gdb_version): Update copyright year.
5616
5617 2012-01-02  Yao Qi  <yao@codesourcery.com>
5618
5619         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5620
5621 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5622             Joel Brobecker  <brobecker@adacore.com>
5623
5624         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5625         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5626         3 times.
5627         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5628         fall through into AT_ENTRY_POINT.
5629         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
5630         DUMMY_ADDR with it.
5631         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5632         PPC_INSN_SIZE skip to 3 times.
5633
5634 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5635
5636         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5637         the return value.
5638         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5639
5640 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5641
5642         Build gdb directly from *.o files not using libgdb.a.
5643         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5644         (COMMON_OBS): Remove solib-target.o.
5645         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5646         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5647         (LIBGDB_OBS, libgdb.a): Move it above.
5648         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5649         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5650         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5651         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5652         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5653         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5654         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5655         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5656         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5657         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5658         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5659         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5660         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5661         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5662         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5663         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5664         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5665         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5666         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5667         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5668         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5669         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5670         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5671         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5672         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5673         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5674         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5675
5676 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5677
5678         Remove the gdbtui binary.
5679         * .gitignore (/gdbtui): Remove.
5680         * Makefile.in (TUI): Remove.
5681         (SUBDIR_TUI_OBS): Remove tui-main.o.
5682         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5683         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5684         (tui-main.o): Remove.
5685         (all_object_files): Remove tui-main.o.
5686         * NEWS: New note for the gdbtui removal.
5687         * configure: Rebuilt.
5688         * configure.ac: No longer add all-tui, clean-tui, install-tui and
5689         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5690         CONFIG_UNINSTALL respectively.
5691         * gdb.c (main): Remove args.interpreter_p initialization.
5692         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5693         * main.h (struct captured_main_args): Remove interpreter_p.
5694         * tui/tui-main.c: Remove.
5695
5696 2012-01-01  Doug Evans  <dje@google.com>
5697
5698         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5699         (dwarf2_physname, read_import_statement): Ditto.
5700         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5701         (process_structure_scope read_subroutine_type): Ditto.
5702         (read_typedef, load_partial_dies, read_partial_die): Ditto.
5703         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5704         (dwarf2_fetch_die_location_block): Ditto.
5705         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5706
5707         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5708         All callers updated.
5709         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5710         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5711         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5712
5713         * dwarf2read.c (load_cu): Move assert to more useful location.
5714
5715         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5716         All callers updated.
5717
5718         * dwarf2read.c (dwarf2_per_objfile): Add comment.
5719         (dwarf2_elf_names): Minor reformat.
5720         (dwarf2_per_cu_data): Tweak comment.
5721         (dwarf2_read_section): Fix comment.
5722         (create_all_comp_units): Fix comment.
5723         (load_full_comp_unit): Fix comment.
5724         (process_full_comp_unit): Fix comment.
5725         (read_signatured_type): Fix comment.
5726
5727 For older changes see ChangeLog-2011.
5728 \f
5729 Local Variables:
5730 mode: change-log
5731 left-margin: 8
5732 fill-column: 74
5733 version-control: never
5734 coding: utf-8
5735 End: