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