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