gdb/
[external/binutils.git] / gdb / ChangeLog
1 2012-04-10  Yao Qi  <yao@codesourcery.com>
2
3         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4         and gnulib/m4/gnulib-tool.m4.
5
6 2012-04-10  Doug Evans  <dje@google.com>
7
8         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9         (load_partial_dies): Clarify comment.
10         (find_partial_die): Support rereading type units.
11         Clarify CU handling, if we know offset is in CU, don't search for the
12         containing CU.  Add comment regarding memory waste.
13
14 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15
16         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
17         i386/x32-avx and i386/x32-avx-linux.
18         (i386/x32-expedite): New.
19         (i386/x32-linux-expedite): Likewise.
20         (i386/x32-avx-expedite): Likewise.
21         (i386/x32-avx-linux-expedite): Likewise.
22         ($(outdir)/i386/x32.dat): Likewise.
23         ($(outdir)/i386/x32-linux.dat): Likewise.
24         ($(outdir)/i386/x32-avx.dat): Likewise.
25         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
26
27         * features/i386/x32-avx-linux.xml: New file.
28         * features/i386/x32-avx.xml: Likewise.
29         * features/i386/x32-core.xml: Likewise.
30         * features/i386/x32-linux.xml: Likewise.
31         * features/i386/x32.xml: Likewise.
32
33         * features/i386/x32-avx-linux.c: New.  Generated.
34         * features/i386/x32-avx.c: Likewise.
35         * features/i386/x32-linux.c: Likewise.
36         * features/i386/x32.c: Likewise.
37         * regformats/i386/x32-avx-linux.dat: Likewise.
38         * regformats/i386/x32-avx.dat: Likewise.
39         * regformats/i386/x32-linux.dat: Likewise.
40         * regformats/i386/x32.dat: Likewise.
41
42 2012-04-10  Tristan Gingold  <gingold@adacore.com>
43
44         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
45         code to kill the inferior.
46
47 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
48
49         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
50         defines.
51         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
52         defines.
53         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs) 
54         (yyvsp): New defines.
55         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
56         defines.
57         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
58         defines.
59         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
60         defines.
61         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
62         defines.
63         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
64         defines.
65
66 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
67
68         * sparc64-tdep.c (sparc64_store_arguments) 
69         (sparc64_store_arguments): Fix coding style.
70
71 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
72
73         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
74         complex floats, adjust some related comments and tighten a related
75         assertion.
76         (sparc64_extract_return_value): Handle complex floats.
77
78 2012-04-07  Doug Evans  <dje@google.com>
79
80         * dwarf2read.c (load_partial_dies): Change condition to assert.
81
82 2012-04-06  Doug Evans  <dje@google.com>
83
84         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
85         "mov %rsp,%rbp".
86
87 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
88
89         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
90         fencepost error.
91         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
92         (v850_gdbarch_init): Set `num_regs' as appropriate for the
93         architecture.
94
95 2012-04-05  Keith Seitz  <keiths@redhat.com>
96
97         * linespec.c (decode_compound): Remove.
98         (enum offset_relative_sign): New enum.
99         (struct line_offset): New struct.
100         (struct linespec): New struct.
101         (struct linespec_state): Move file_symtabs,
102         user_filename, and user_function into struct linespec.
103         Make result an anonymous struct holding vectors of
104         symbolp and minsym_and_objfile_d.
105         Add language member.
106         (enum ls_token_type): New enum.
107         (linespec_keywords): New array.
108         (struct ls_token): New struct.
109         (struct ls_parser): New struct.
110         (linespec_lexer_lex_number): New function.
111         (linespec_lexer_lex_keyword): New function.
112         (is_ada_operator): New function.
113         (skip_quote_char): New function.
114         (copy_token_string): New function.
115         (is_closing_quote_enclosed): New function.
116         (find_parameter_list_end): New function.
117         (linespec_lexer_lex_string): New function.
118         (linespec_lexer_lex_one): New function.
119         (linespec_lexer_consume_token): New function.
120         (linespec_lexer_peek_token): New function.
121         (cplusplus_error): Remove unused function.
122         (find_methods): Update comment.
123         (find_toplevel_char): Return const.
124         (is_objc_method_format): Remove unused function.
125         (find_toplevel_string): New function.
126         (is_linespec_boundary): Remove.
127         (symbol_not_found_error): New function.
128         (find_method_overload_end): Remove function.
129         (unexpected_linespec_error): New function.
130         (keep_name_info): Remove.
131         (linespec_parse_line_offset): New function.
132         (linespec_parse_basic): New function.
133         (canonicalize_linespec): New function.
134         (decode_line_internal): Remove.
135         (create_sals_line_offset): New function adapted from
136         decode_all_digits.
137         (convert_linespec_to_sals): New function.
138         (parse_linespec): New function.
139         (linespec_parser_new): New function.
140         (linespec_state_destructor): Change parameter type to
141         struct linespec_state *.
142         Add language parameter.
143         Remove freeing of moved members.
144         (linespec_parser_delete): New function.
145         (decode_line_full): Use parse_linespec and linespec_parser_new.
146         (decode_line_1): Likewise.
147         (decode_indirect): Rename to ...
148         (linespec_expression_to_pc): ... this and rewrite
149         to simply find CORE_ADDR, storing this result for later
150         conversion to SALs.
151         (locate_first_half): Remove.
152         (deocde_objc): Add parameter LS.
153         Initialize new struct collect_info members.
154         Handle minimal symbols, too.
155         (decode_compound): Delete.
156         (lookup_prefix_sym): Rewrite.
157         (compare_msymbols): New function.
158         (find_method): Rewrite.
159         Do not call cplusplus_error.
160         (symtabs_from_filename): Rewrite.
161         (collect_function_symbols): Delete.
162         (find_function_symbols): Rewrite without ARGPTR-style
163         processing.
164         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
165         (decode_dollar): Adapted and renamed to ...
166         (linespec_parse_variable): ... this.
167         (find_linespec_symbols): New function.
168         (decode_label): Adapted and renamed to ...
169         (find_label_symbols): ... this.
170         (decode_digits_list_mode): Add and use LS argument.
171         (decode_digits_ordinary): Likewise.
172         (collect_symbols): Do not collect SALs, just symbols and msymbols.
173         If in list mode, allow any symbol class.  Otherwise, only
174         permit LOC_BLOCK symbols.
175         (minsym_found): Update comments.
176         (search_minsyms_for_name): Do not convert the matching symbol
177         into a SAL.  Simply push the symbol and objfile into the
178         result vector.
179         (decode_variable): Delete. Contents adapted into
180         find_linespec_symbols.
181
182         * cp-support.c (SKIP_SPACE): Remove.
183         (operator_tokens): Remove unused global.
184         (cp_validate_operator): Remove.
185         * cp-support.h (cp_validate_operator): Remove declaration.
186
187 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
188
189         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
190         for TYPE_VPTR_FIELDNO.
191         * valprint.c (valprint_check_validity): Make it global, move the
192         function comment ...
193         * value.h (valprint_check_validity): ... to this new declaration.
194
195 2012-04-02  Tristan Gingold  <gingold@adacore.com>
196
197         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
198         the STATE32 api for i386 state.
199         (i386_darwin_store_inferior_registers): Likewise.
200
201 2012-04-02  Tristan Gingold  <gingold@adacore.com>
202
203         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
204         SS offset.
205         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
206         format_string.
207
208 2012-04-02  Tristan Gingold  <gingold@adacore.com>
209
210         PR gdb/13901
211         * darwin-nat.c (darwin_execvp): Sey binary preference.
212
213 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
214
215         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
216
217 2012-03-30  Tom Tromey  <tromey@redhat.com>
218
219         * python/python.c (gdbpy_decode_line): Move cleanup creation out
220         of TRY_CATCH.  Fix error handling.
221         * python/py-value.c (convert_value_from_python): Move 'old'
222         declaration to innermost scope.
223
224 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
225             Andrey Smirnov  <andrew.smirnov@gmail.com>
226
227         -Wshadow warning fix.
228         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
229         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
230         Adjust code accordingly.
231
232 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
233
234         * ada-lang.c (symbol_completion_add): Rename parameter
235         "encoded" into "encoded_p".  Ajust code and documentation
236         accordingly.
237
238 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
239             Andrey Smirnov  <andrew.smirnov@gmail.com>
240
241         -Wshadow warning fix.
242         * ada-lang.c (symbol_completion_add): Rename parameter
243         "wild_match" into wild_match_p.  Update code and documentation
244         accordingly.
245
246 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
247
248         * ada-lang.c (symbol_completion_match): Rename parameter
249         "encoded" into "encoded_p".  Ajust code and documentation
250         accordingly.
251
252 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
253             Andrey Smirnov  <andrew.smirnov@gmail.com>
254
255         -Wshadow warning fix.
256         * ada-lang.c (symbol_completion_match): Rename parameter
257         "wild_match" into "wild_match_p".  Adjust code and function
258         documentation accordingly.
259
260 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
261             Andrey Smirnov  <andrew.smirnov@gmail.com>
262
263         -Wshadow warning fix.
264         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
265         "symbol_info" into "info".  Adjust code accordingly.
266         (ada_lookup_symbol): Likewise.
267
268 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
269
270         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
271         of this function's documentation.
272
273 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
274             Andrey Smirnov  <andrew.smirnov@gmail.com>
275
276         -Wshadow warning fix.
277         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
278         variable into "wild_match_p".  Adjust code accordingly.
279
280 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
281             Andrey Smirnov  <andrew.smirnov@gmail.com>
282
283         -Wshadow warning fix.
284         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
285         parameter into "wild_match_p".  Adjust code accordingly.
286         Document this parameter in the function description.
287
288 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
289             Andrey Smirnov  <andrew.smirnov@gmail.com>
290
291         -Wshadow warning fix.
292         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
293         "wild_match" parameter to "wild_match_p" (-Wshadow).
294
295 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
296
297         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
298         in function documentation.
299
300 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
301             Andrey Smirnov  <andrew.smirnov@gmail.com>
302
303         -Wshadow warning fix.
304         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
305         variable into wild_match_p.  Adjust code accordingly.
306
307 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
308             Andrey Smirnov  <andrew.smirnov@gmail.com>
309
310         * ada-valprint.c (ada_val_print_1): Move the code handling
311         TYPE_CODE_ENUM inside its own lexical block.  Declare
312         variables len and val there, instead of in the function's
313         top level block.  Avoid declaring deref_val again in a way
314         that shadows another variable of the same name declared
315         in one of the up-level blocks.  Just re-use the up-level
316         variable instead.
317
318 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
319
320         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
321         Replace block_found argument by symbol_info.  Adjust
322         implementation accordingly.  Add function documentation.
323         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
324         Fix documentation.
325         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
326         * ada-exp.y (write_object_renaming): Adjust to new
327         ada_lookup_encoded_symbol API.
328
329 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
330
331         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
332         documentation.
333
334 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
335
336         * v850-tdep.c: Add the enum values for mpu and fpu registers.
337         (v850_register_name): Add the mpu and fpu register names.
338         (v850e_register_name): Add the mpu and fpu register names.
339         (v850e2_register_name): New function.
340         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and 
341         bfd_mach_v850e2v3.
342
343 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
344
345         * NEWS: Add entry for Ada varobj support.
346
347 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
348
349         * varobj.c (default_value_is_changeable_p): New function,
350         extracted from varobj_value_is_changeable_p.  Add declaration.
351         (ada_value_is_changeable_p): New function, extracted from
352         varobj_value_is_changeable_p.  Add declaration.
353         (struct language_specific): New field "value_is_changeable_p".
354         (languages): Add entries for new field.
355         (varobj_create): Set language before calling install_new_value.
356         (varobj_value_is_changeable_p): Reimplement to call the varobj's
357         "value_is_changeable_p" language callback.
358
359 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
360
361         * ada-varobj.h, ada-varobj.c: New files.
362         * Makefile.in (SFILES): Add ada-varobj.c.
363         (HFILES_NO_SRCDIR): Add ada-varobj.h.
364         (COMMON_OBS): Add ada-varobj.o.
365
366 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
367
368         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
369         (struct language_specific): New field "value_has_mutated".
370         (languages): Set field "value_has_mutated" in each entry of array.
371         (varobj_value_has_mutated): New function.
372         (varobj_udpdate): Add handling of type mutation.
373         (value_of_root): Add handling of type mutation.
374         (ada_value_has_mutated): New function.
375
376 2012-03-28  Pedro Alves  <palves@redhat.com>
377
378         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
379         Always supply $fr0 as 0.0 and $fr1 as 1.0.
380
381 2012-03-28  Tom Tromey  <tromey@redhat.com>
382
383         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
384         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
385         before returning.
386
387 2012-03-28  Tom Tromey  <tromey@redhat.com>
388
389         * .dir-locals.el: New file.
390
391 2012-03-28  Pedro Alves  <palves@redhat.com>
392
393         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
394
395 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
396
397         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
398         handling for r0.
399
400 2012-03-27  Pedro Alves  <palves@redhat.com>
401
402         Eliminate struct ui_stream.
403
404         * ui-out.h (struct ui_stream): Delete.
405         (ui_out_field_stream): Adjust prototype.
406         (ui_out_stream_new, ui_out_stream_delete)
407         (make_cleanup_ui_out_stream_delete): Delete declarations.
408         * ui-out.c (ui_out_field_stream): Change prototype to take a
409         ui_file instead of a ui_stream.  Adjust.
410         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
411         (make_cleanup_ui_out_stream_delete): Delete.
412         * breakpoint.c (print_breakpoint_location)
413         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
414         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
415         * disasm.c (dump_insns): Ditto.
416         (do_mixed_source_and_assembly, do_assembly_only): Adjust
417         prototype.
418         (gdb_disassembly): Use ui_file/mem_fileopen instead of
419         ui_stream/ui_out_stream_new.
420         * infcmd.c (print_return_value): Ditto.
421         * osdata.c (info_osdata_command): Don't allocate a local
422         ui_stream.
423         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
424         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
425         * tracepoint.c (print_one_static_tracepoint_marker): Don't
426         allocate a local ui_stream.
427         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
428         instead of ui_stream/ui_out_stream_new.
429         (list_args_or_locals): Don't allocate a local ui_stream.
430         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
431         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
432         ui_stream/ui_out_stream_new.
433         * cli/cli-setshow.c (do_setshow_command): Ditto.
434
435 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
436
437         * arm-linux-tdep.c (arm_linux_init_abi): Call
438         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
439         * arm-tdep.c (arm_process_record): New function.
440         (deallocate_reg_mem): New function.
441         (decode_insn): New function.
442         (thumb_record_branch): New function.
443         (thumb_record_ldm_stm_swi(): New function.
444         (thumb_record_misc): New function.
445         (thumb_record_ld_st_stack): New function.
446         (thumb_record_ld_st_imm_offset): New function.
447         (thumb_record_ld_st_reg_offset(): New function.
448         (thumb_record_add_sub_cmp_mov): New function.
449         (thumb_record_shift_add_sub): New function.
450         (arm_record_coproc_data_proc): New function.
451         (arm_record_coproc): New function.
452         (arm_record_b_bl): New function.
453         (arm_record_ld_st_multiple): New function.
454         (arm_record_ld_st_reg_offset): New function.
455         (arm_record_ld_st_imm_offset): New function.
456         (arm_record_data_proc_imm): New function.
457         (arm_record_data_proc_misc_ld_str): New function.
458         (arm_record_extension_space): New function.
459         (arm_record_strx): New function.
460         (sbo_sbz): New function.
461         (struct insn_decode_record): New structure for arm insn record.
462         (REG_ALLOC): New macro for reg allocations.
463         (MEM_ALLOC): New macro for memory allocations.
464         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
465
466 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
467
468         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
469         (store_register): Likewise.
470
471 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
472
473         * MAINTAINERS (Write After Approval): Add myself to the list.
474
475 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
476
477         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
478         Describe also the option "auto".
479
480 2012-03-22  Richard Henderson  <rth@redhat.com>
481
482         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
483         * sparc-nat.c (sparc_xfer_wcookie): Make static.
484
485 2012-03-22  Richard Henderson  <rth@redhat.com>
486
487         * jit.c (jit_read_code_entry): Compute alignment and offset of
488         int64_t member before computing entry_size.
489
490 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
491
492         Python scripting: Add new method Value.referenced_value to
493         gdb.Value which can dereference pointer as well as reference
494         values.
495         * NEWS: Add entry under 'Python scripting' about the new method
496         Value.referenced_value on gdb.Value objects.
497         * python/py-value.c (valpy_referenced_value): New function
498         defining a new method on gdb.Value objects which can dereference
499         pointer and reference values.
500
501 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
502
503         * MAINTAINERS (Write After Approval): Add myself to the list.
504
505 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
506
507         * symtab.c (skip_prologue_sal): Change test to check for "main()"
508         in addition to "main".
509
510 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
511
512         * expression.h (op_name): Add declaration.
513         * expprint.c (op_name): Remove declaration.  Make non-static.
514         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
515
516 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
517
518         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
519         of struct siginfo.
520         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
521         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
522         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
523         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
524         (linux_nat_get_siginfo): Likewise.
525         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
526         (linux_nat_get_siginfo): Likewise.
527         * linux-tdep.c (linux_get_siginfo_type): Likewise.
528         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
529         * procfs.c (gdb_siginfo_t): Likewise.
530
531 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
532
533         * .gitignore: Ignore more files.
534
535 2012-03-20  Pedro Alves  <palves@redhat.com>
536
537         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
538         returns.
539
540 2012-03-20  Yao Qi  <yao@codesourcery.com>
541
542         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
543         comment.
544
545 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
546
547         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
548         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
549         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
550         sect_offset.
551         * dwarf2expr.h (cu_offset, sect_offset): New types.
552         (struct dwarf_expr_context_funcs) <dwarf_call>
553         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
554         sect_offset.
555         (struct dwarf_expr_context) <len>: Improve the comment.
556         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
557         cu_offset and sect_offset.
558         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
559         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
560         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
561         * dwarf2loc.h: Include dwarf2expr.h.
562         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
563         and sect_offset.
564         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
565         Improve the comment.
566         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
567         (struct signatured_type, struct line_header, struct partial_die_info)
568         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
569         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
570         (get_die_type_at_offset, create_cus_from_index)
571         (create_signatured_type_table_from_index, dw2_get_file_names)
572         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
573         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
574         (create_debug_types_hash_table, process_psymtab_comp_unit)
575         (load_partial_comp_unit, create_all_comp_units)
576         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
577         (load_full_comp_unit, dwarf2_physname, read_import_statement)
578         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
579         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
580         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
581         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
582         (find_partial_die, read_attribute_value, lookup_die_type)
583         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
584         (is_ref_attr): New function comment.
585         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
586         Use cu_offset and sect_offset.
587         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
588         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
589         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
590         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
591         (offset_and_type_hash, offset_and_type_eq, set_die_type)
592         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
593         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
594         sect_offset.
595
596 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
597
598         Code cleanup.
599         * python/py-auto-load.c (source_section_scripts): New variable back_to.
600         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
601         with xfree.
602         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
603
604 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
605
606         * NEWS: Describe new options --init-command=FILE, -ix and
607         --init-eval-command=COMMAND, -iex.
608         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
609         CMDARG_INIT_COMMAND.
610         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
611         "init-command", "init-eval-command", "ix" and "iex" to the variable
612         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
613         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
614         (print_gdb_help): Describe --init-command=FILE, -ix and
615         --init-eval-command=COMMAND, -iex.
616
617 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
618
619         Code cleanup.
620         * main.c (struct cmdarg): Move it here from main.  Add more comments.
621         (cmdarg_s, VEC (cmdarg_s)): New.
622         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
623         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
624         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
625         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
626         of CMDARG.
627
628 2012-03-19  Tom Tromey  <tromey@redhat.com>
629
630         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
631
632 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
633
634         PR symtab/13777
635         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
636         GCC >=4.5.
637
638 2012-03-16  Chris January  <chris.january@allinea.com>
639
640         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
641         of clear.
642
643 2012-03-16  Chris January  <chris.january@allinea.com>
644
645         * source.c (add_path): Use memmove instead of strcpy because the
646         strings overlap.
647
648 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
649
650         * value.h (set_value_parent): Add declaration.
651         * value.c (set_value_parent): New function.
652         (value_address): If VALUE->PARENT is not NULL, then use it as
653         the base address instead of VALUE->LOCATION.address.
654         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
655         the same as OBJ's address.  Adjust V's offset accordingly.
656         Set V's parent.
657
658 2012-03-16  Gary Benson  <gbenson@redhat.com>
659
660         PR breakpoints/10738
661         * dwarf2read.c (use_deprecated_index_sections): New global.
662         (struct partial_die_info): New member may_be_inlined.
663         (read_partial_die): Set may_be_inlined where appropriate.
664         (add_partial_subprogram): Add partial symbols for partial
665         DIEs that may be inlined.
666         (new_symbol_full): Add inlined subroutines to the current
667         scope.
668         (write_psymtabs_to_index): Bump version number.
669         (dwarf2_read_index): Read only version 6 indices unless
670         use_deprecated_index_sections is set.
671         * linespec.c (symbol_and_data_callback): New structure.
672         (iterate_inline_only): New function.
673         (iterate_over_all_matching_symtabs): New argument
674         "include_inline".  If nonzero, also call the callback for
675         symbols representing inlined subroutines.
676         (lookup_prefix_sym): Pass extra argument to the above.
677         (find_function_symbols): Likewise.
678         (add_matching_symbols_to_info): Likewise.
679         * NEWS: Mention that GDB can now set breakpoints on inlined
680         functions.
681
682 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
683
684         * p-typeprint.c (pascal_type_print_method_args):
685         Fix display of parameter of methods.
686
687 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
688
689         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
690         Add missing prototype.
691
692 2012-03-16  Yao Qi  <yao@codesourcery.com>
693             Jan Kratochvil  <jan.kratochvil@redhat.com>
694
695         Fix false compilation warning.
696         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
697
698 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
699             Pedro Alves  <pedro@codesourcery.com>
700
701         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
702         (arm_register_g_packet_guesses): New function.
703         (arm_gdbarch_init): Don't force a target description with
704         registers when the executable is detected as M-profile.  Instead
705         set gdbarch->tdep->is_m.  Register `g' packet guesses.
706         (_initialize_arm_tdep): Initialize the new target description.
707         * features/arm-with-m-fpa-layout.xml: New description.
708         * features/arm-with-m-fpa-layout.c: New, generated.
709
710 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
711
712         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
713         Update function description.
714         (insert_bp_location): Do not wipe bl->target_info out.
715         * mem-break.c: #include "gdb_string.h".
716         (default_memory_insert_breakpoint): Do not call target_read_memory
717         with a pointer to the breakpoint's shadow_contents buffer.  Use
718         a local buffer instead.
719         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
720
721 2012-03-15  Tom Tromey  <tromey@redhat.com>
722
723         * NEWS: Mention "info vtbl", not "info vtable".
724         * cp-support.c (info_vtbl_command): Fix comment.
725         (_initialize_cp_support): Fix text.
726
727 2012-03-15  Tom Tromey  <tromey@redhat.com>
728
729         * cp-valprint.c (cp_print_value_fields): Use
730         print_function_pointer_address for vtable slot.
731
732 2012-03-15  Tom Tromey  <tromey@redhat.com>
733
734         * gnu-v3-abi.c (struct value_and_voffset): New.
735         (hash_value_and_voffset, eq_value_and_voffset)
736         (compare_value_and_voffset, compute_vtable_size)
737         (print_one_vtable, gnuv3_print_vtable): New functions.
738         (init_gnuv3_ops): Initialize 'print_vtable' field.
739         * cp-support.c (info_vtbl_command): New function.
740         (_initialize_cp_support): Add "info vtbl".
741         * cp-abi.h (cplus_print_vtable): Declare.
742         (struct cp_abi_ops) <print_vtable>: New field.
743         * cp-abi.c (cplus_print_vtable): New function.
744         * NEWS: Update.
745
746 2012-03-15  Tom Tromey  <tromey@redhat.com>
747
748         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
749         iterate_over_symbols.
750
751 2012-03-14  Doug Evans  <dje@google.com>
752
753         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
754         DW_OP_GNU_parameter_ref.
755
756 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
757
758         Fix double prompt of 'interpreter-exec mi'.
759         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
760         (mi_interpreter_resume): use it.
761         (mi_execute_command_input_handler): New function.
762         * mi/mi-main.c (mi_execute_command): Move prompt printing to
763         mi_execute_command_input_handler.
764
765 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
766
767         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
768         prototype.
769         (darwin_debug_port_info): Make static.
770         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
771         * machoread.c (_initialize_machoread): Add prototype.
772         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
773         (i386_darwin_set_control, i386_darwin_get_control)
774         i386_darwin_dr_set_addr, i386_darwin_get_addr)
775         i386_darwin_get_status, i386_darwin_get_control):
776         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
777
778 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
779
780         * ax-gdb.c (gen_usual_unary): Remove special handling of
781         enum and bool types.
782
783 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
784
785         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
786
787 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
788
789         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
790
791 2012-03-13  Chris January  <chris.january@allinea.com>
792
793         * aix-thread.c (fill_sprs): Store the floating point registers
794         at the correct offsets into vals.
795
796 2012-03-13  Doug Evans  <dje@google.com>
797
798         * NEWS: Mention symbol-reloading has been deleted.
799         * symfile.c (symbol_reloading): Delete.
800         (show_symbol_reloading): Delete.
801         (_initialize_symfile): Delete set/show symbol-reloading.
802
803         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
804         read_in_chain until we have successfully read it in.
805         (load_full_comp_unit): Ditto.
806         (read_signatured_type): Add comment.
807
808 2012-03-13  Chris January  <chris.january@allinea.com>
809
810         * stabsread.c (fix_common_block): Change type of valu argument
811         to CORE_ADDR.
812
813 2012-03-13  Chris January  <chris.january@allinea.com>
814
815         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
816         instruction.
817
818 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
819
820         * common/linux-procfs.c (linux_proc_get_int): New, from
821         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
822         field.
823         (linux_proc_get_tgid): Only call linux_proc_get_int.
824         (linux_proc_get_tracerpid): New.
825         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
826         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
827         linux_proc_pid_has_state.
828         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
829         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
830         (linux_ptrace_attach_warnings): New.
831         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
832         New declaration.
833         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
834         (linux_nat_attach): New variables ex, buffer, message and message_s.
835         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
836
837 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
838
839         * Makefile.in (linux-ptrace.o): New.
840         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
841         from linux-nat.c.
842         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
843         * common/linux-ptrace.c: New file.
844         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
845         * config/arm/linux.mh: Likewise.
846         * config/i386/linux.mh: Likewise.
847         * config/i386/linux64.mh: Likewise.
848         * config/ia64/linux.mh: Likewise.
849         * config/m32r/linux.mh: Likewise.
850         * config/m68k/linux.mh: Likewise.
851         * config/mips/linux.mh: Likewise.
852         * config/pa/linux.mh: Likewise.
853         * config/powerpc/linux.mh: Likewise.
854         * config/powerpc/ppc64-linux.mh: Likewise.
855         * config/powerpc/spu-linux.mh: Likewise.
856         * config/s390/s390.mh: Likewise.
857         * config/sparc/linux.mh: Likewise.
858         * config/sparc/linux64.mh: Likewise.
859         * config/xtensa/linux.mh: Likewise.
860         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
861         common/linux-procfs.c.
862         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
863
864 2012-03-13  Hui Zhu  <teawater@gmail.com>
865             Pedro Alves  <palves@redhat.com>
866
867         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
868         CREATE_BREAKPOINT_FLAGS_INSERTED.
869         (create_breakpoint_sal, create_breakpoints_sal)
870         (base_breakpoint_create_breakpoints_sal)
871         (tracepoint_create_breakpoints_sal)
872         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
873         down.
874         (break_command_1, handle_gnu_v3_exceptions, trace_command)
875         (ftrace_command, strace_command): Adjust.
876         (create_tracepoint_from_upload): Pass
877         CREATE_BREAKPOINT_FLAGS_INSERTED.
878         * breakpoint.h (enum breakpoint_create_flags): New.
879         (create_breakpoint): New flags parameter.
880         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
881         * python/py-breakpoint.c (bppy_init): Adjust.
882         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
883         * spu-tdep.c (spu_catch_start): Adjust.
884
885 2012-03-13  Pedro Alves  <palves@redhat.com>
886             Hui Zhu  <teawater@gmail.com>
887             Yao Qi  <yao@codesourcery.com>
888
889         * remote.c (struct remote_state): New field `starting_up'.
890         (remote_start_remote): Set and clear it.
891         (remote_can_download_tracepoint): If starting up, return false.
892
893 2012-03-13  Yao Qi  <yao@codesourcery.com>
894
895         * inferior.h (struct inferior): Remove fields any_syscall_count,
896         syscalls_counts and total_syscalls_count.  Move them to new
897         struct catch_syscall_inferior_data in breakpoint.c.
898         * breakpoint.c: Call DEF_VEC_I(int).
899         (struct catch_syscall_inferior_data): New.
900         (get_catch_syscall_inferior_data): New.
901         (catch_syscall_inferior_data_cleanup): New.
902         (insert_catch_syscall): Update to access data in
903         struct catch_syscall_inferior_data.
904         (insert_catch_syscall): Likewise.
905         (remove_catch_syscall): Likewise.
906         (remove_catch_syscall): Likewise.
907         (is_syscall_catchpoint_enabled): Likewise.
908         (add_catch_command): Likewise.
909         (_initialize_breakpoint): Register cleanup.
910         * breakpoint.h: Removed DEF_VEC_I(int).
911         * dwarf2loc.c: Call DEF_VEC_I(int).
912         * mi/mi-main.c: Likewise.
913
914 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
915
916         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
917
918 2012-03-12  Chris January  <chris.january@allinea.com>
919
920         * aix-thread.c (_initialize_aix_thread): Add prototype.
921         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
922         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
923
924 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
925
926         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
927         include of "amd64-nat.h".
928
929 2012-03-12  Tom Tromey  <tromey@redhat.com>
930
931         * buildsym.c (record_pending_block): Now static.
932         * buildsym.h: (record_pending_block): Remove.
933
934 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
935
936         * amd64bsd-nat.c: Include amd64bsd-nat.h.
937
938 2012-03-09  Tom Tromey  <tromey@redhat.com>
939
940         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
941         producer_is_gxx_lt_4_6>: New fields.
942         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
943
944 2012-03-09  Tom Tromey  <tromey@redhat.com>
945
946         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
947
948 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
949
950         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
951         prototype.
952
953 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
954
955         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
956
957 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
958
959         Fix -Wmissing-prototypes build.
960         * arm-linux-nat.c (get_thread_id): Make it static.
961         * xtensa-linux-nat.c (get_thread_id): Likewise.
962
963 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
964
965         * server.c (process_point_options): If a conditional expression
966         is found, only print a message if remote_debug is nonzero.
967
968 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
969
970         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
971         of internal error for unknown/unsupported types.
972
973 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
974
975         Fix CU relative vs. absolute DIE offsets.
976         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
977         offset to offset_in_cu.
978         * dwarf2read.c (process_enumeration_scope): Add CU offset to
979         TYPE_OFFSET.
980         (dwarf2_fetch_die_location_block): Rename parameter offset to
981         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
982
983 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
984
985         * libunwind-frame.c: Rename to ...
986         * ia64-libunwind-tdep.c: ... here.
987         * libunwind-frame.h: Rename to ...
988         * ia64-libunwind-tdep.h: ... here.
989         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
990         ia64-libunwind-tdep.h.
991         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
992         * README (--with-libunwind): Rename to ...
993         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
994         * config.in: Regenerate.
995         * configure: Regenerate.
996         * configure.ac: New option --with-libunwind-ia64, make the
997         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
998         Remove AC_DEFINE for HAVE_LIBUNWIND.
999         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
1000         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
1001         Rename libunwind-frame in the general comment.
1002         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
1003         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
1004         Move forward declarations inside #ifndef.  Rename libunwind-frame in
1005         the general comment.
1006         * ia64-tdep.c: Rename libunwind-frame.h #include to
1007         ia64-libunwind-tdep.h.
1008         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
1009         (ia64_libunwind_descr): Rename libunwind-frame to
1010         ia64-libunwind-tdep in these function comments.
1011         * ia64-tdep.h: Rename libunwind-frame.h #include to
1012         ia64-libunwind-tdep.h.
1013         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
1014         ia64-libunwind-tdep in that data comment.
1015
1016 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1017
1018         * libunwind-frame.h (struct frame_unwind): New declaration.
1019
1020 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
1021
1022         * breakpoint.c (_initialize_breakpoint): Fix error in help of
1023         "set breakpoint condition-evaluation" command.
1024
1025 2012-03-08  Tristan Gingold  <gingold@adacore.com>
1026
1027         * sparc-stub.c: Move to stubs/
1028         * sh-stub.c: Likewise.
1029         * m68k-stub.c: Likewise.
1030         * m32r-stub.c: Likewise.
1031         * i386-stub.c: Likewise.
1032
1033 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
1034
1035         * m68klinux-tdep.c (m68k_linux_init_abi): Register
1036         linux_get_siginfo_type.
1037
1038         * m68klinux-nat.c: Include "gdb_proc_service.h".
1039         (PTRACE_GET_THREAD_AREA): Define.
1040         (ps_get_thread_area): New function.
1041
1042 2012-03-08  Yao Qi  <yao@codesourcery.com>
1043
1044         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
1045         `xsnprintf'.
1046         (remote_query_attached): Likewise.
1047         (remote_static_tracepoint_marker_at): Likewise.
1048         (remote_set_permissions): Likewise.
1049         (remote_detach_1, extended_remote_attach_1): Likewise.
1050         (send_g_packet, remote_vkill): Likewise.
1051         (extended_remote_disable_randomization): Likewise.
1052         (remote_add_target_side_condition): Likewise.
1053         (remote_insert_breakpoint): Likewise.
1054         (remote_remove_breakpoint): Likewise.
1055         (remote_insert_watchpoint): Likewise.
1056         (remote_remove_watchpoint): Likewise.
1057         (remote_insert_hw_breakpoint): Likewise.
1058         (remote_insert_hw_breakpoint): Likewise.
1059         (remote_remove_hw_breakpoint): Likewise.
1060         (remote_download_command_source): Likewise.
1061         (remote_download_tracepoint): Likewise.
1062         (remote_download_trace_state_variable): Likewise.
1063         (remote_disable_tracepoint): Likewise.
1064         (remote_trace_set_readonly_regions): Likewise.
1065         (remote_get_tracepoint_status): Likewise.
1066         (remote_trace_find): Likewise.
1067         (remote_get_trace_state_variable_value): Likewise.
1068         (remote_set_disconnected_tracing): Likewise.
1069         (remote_set_circular_trace_buffer): Likewise.
1070         (remote_get_min_fast_tracepoint_insn_len): Likewise.
1071         (remote_use_agent): Likewise.
1072         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
1073         Update callers.
1074
1075 2012-03-07  Pedro Alves  <palves@redhat.com>
1076
1077         * NEWS: Mention QProgramSignals.
1078         * inferior.h (update_signals_program_target): Declare.
1079         * infrun.c: (update_signals_program_target): New.
1080         (handle_command): Update the target of the new program signals
1081         array changes.
1082         * remote.c (PACKET_QProgramSignals): New enum.
1083         (last_program_signals_packet): New global.
1084         (remote_program_signals): New.
1085         (remote_start_remote): Update the target with the program signals
1086         list.
1087         (remote_protocol_features): Add entry for QPassSignals.
1088         (remote_open_1): Free anc clear last_program_signals_packet.
1089         (init_remote_ops): Install remote_program_signals.
1090         * target.c (update_current_target): Adjust.
1091         (target_program_signals): New.
1092         * target.h (struct target_ops) <to_program_signals>: New field.
1093         (target_program_signals): Declare.
1094
1095 2012-03-07  Pedro Alves  <palves@redhat.com>
1096
1097         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
1098         extensions.
1099
1100 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
1101
1102         * m68klinux-nat.c (getregs_supplies): Make static.
1103         (getfpregs_supplies): Likewise.
1104         (have_ptrace_getregs): Likewise.
1105
1106 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
1107
1108         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
1109         in call to get_die_type_at_offset.
1110
1111 2012-03-06  Stan Shebs  <stan@codesourcery.com>
1112
1113         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
1114         * mi/mi-cmd-disas.c: Ditto.
1115         * mi/mi-cmd-env.c: Ditto.
1116         * mi/mi-cmd-file.c: Ditto.
1117         * mi/mi-cmd-stack.c: Ditto.
1118         * mi/mi-cmd-target.c: Ditto.
1119         * mi/mi-cmd-var.c: Ditto.
1120         * mi/mi-cmds.c: Ditto.
1121         * mi/mi-cmds.h: Ditto.
1122         * mi/mi-console.c: Ditto.
1123         * mi/mi-getopt.c: Ditto.
1124         * mi/mi-getopt.h: Ditto.
1125         * mi/mi-interp.c: Ditto.
1126         * mi/mi-main.c: Ditto.
1127         * mi/mi-out.c: Ditto.
1128         * mi/mi-parse.c: Ditto.
1129         * mi/mi-parse.h: Ditto.
1130         * mi/mi-symbol-cmds.c: Ditto.
1131
1132         * mi/mi-getopt.h: Move mi_opt struct up.
1133         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
1134         return.
1135         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
1136
1137 2012-03-06  Tom Tromey  <tromey@redhat.com>
1138
1139         * proc-service.c (ps_pglobal_lookup): Set the current program
1140         space.
1141
1142 2012-03-06  Pedro Alves  <palves@redhat.com>
1143
1144         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
1145
1146 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
1147
1148         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
1149
1150 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1151
1152         Code cleanup.
1153         * common/linux-osdata.c (linux_common_core_of_thread): New function
1154         comment.
1155         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
1156         call by linux_common_core_of_thread.
1157         (linux_nat_core_of_thread_1): Remove.
1158         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
1159         * linux-thread-db.c: Include linux-osdata.h.
1160         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
1161         linux_common_core_of_thread.
1162
1163 2012-03-05  Tom Tromey  <tromey@redhat.com>
1164
1165         * value.c (value_primitive_field): Don't fetch contents for
1166         non-virtual bases.
1167
1168 2012-03-05  Tom Tromey  <tromey@redhat.com>
1169
1170         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
1171
1172 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1173
1174         * s390-nat.c: Include "gregset.h".
1175
1176 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
1177
1178         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
1179         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
1180         (libunwind_load): New variable so_error, use it for dlerror.  Try to
1181         load also LIBUNWIND_SO_7.
1182
1183 2012-03-05  Pedro Alves  <palves@redhat.com>
1184
1185         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
1186         is not NULL, and remove resulting dead code.
1187
1188 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
1189
1190         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
1191         prologue to sh_analyze_prologue.
1192         (sh_analyze_prologue): Make better use of such an upper limit, and
1193         generally be more cautious about accessing memory.
1194
1195 2012-03-05  Tom Tromey  <tromey@redhat.com>
1196
1197         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
1198         _initialize_ia64_hpux_tdep.
1199
1200 2012-03-05  Pedro Alves  <palves@redhat.com>
1201
1202         PR gdb/13766
1203
1204         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
1205         the register state is clear, supply explicit zero, instead of
1206         marking the register unavailable.
1207
1208 2012-03-05  Tristan Gingold  <gingold@adacore.com>
1209
1210         * NEWS: Mention OpenVMS ia64 new target.
1211
1212 2012-03-05  Tristan Gingold  <gingold@adacore.com>
1213
1214         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
1215         (ia64_unw_accessors, ia64_unw_rse_accessors)
1216         (ia64_libunwind_descr): Declare.
1217         * ia64-vms-tdep.c: New file.
1218         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
1219         (ia64_libunwind_descr): Make them public.
1220         * configure.tgt: Add ia64-*-*vms*.
1221         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
1222         (ALLDEPFILES): Add ia64-vms-tdep.c
1223
1224 2012-03-05  Tristan Gingold  <gingold@adacore.com>
1225
1226         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
1227         * remote.c (PACKET_qXfer_uib): New enum value.
1228         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
1229         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
1230         (_initialize_remote): Call add_packet_config_cmd for
1231         xfer:uib packet.
1232
1233 2012-03-05  Tristan Gingold  <gingold@adacore.com>
1234
1235         * osabi.c (gdb_osabi_names): Add OpenVMS.
1236         (generic_elf_osabi_sniffer): Likewise.
1237         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
1238
1239 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1240
1241         Removed unused code.
1242         * libunwind-frame.c (libunwind_frame_unwind)
1243         (libunwind_frame_base_address): Remove.
1244         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
1245
1246 2012-03-04  Yao Qi  <yao@codesourcery.com>
1247
1248         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
1249         remove trailing new line.
1250         (agent_run_command, agent_run_command): Add _ markup.
1251         (agent_capability_check): Likewise.
1252
1253 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1254
1255         * breakpoint.c (set_condition_evaluation_mode): Set
1256         CONDITION_EVALUATION_MODE unconditionally.
1257
1258 2012-03-03  Yao Qi  <yao@codesourcery.com>
1259
1260         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
1261         * common/agent.h: Update declaration.
1262         * inf-child.c (inf_child_use_agent): New.
1263         (inf_child_can_use_agent): New.
1264         (inf_child_target): Initialize fields `to_use_agent'
1265         and `to_can_use_agent'.
1266         * agent.c (agent_new_objfile): New.
1267         (_initialize_agent): Add agent_new_objfile to new_objfile
1268         observer.
1269
1270         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1271         New.
1272         (linux_target_install_ops): Initialize field
1273         `to_static_tracepoint_markers_by_strid'.
1274         * remote.c (free_current_marker): Move it to ...
1275         * tracepoint.c (free_current_marker): ... here.  New.
1276         (cleanup_target_stop): New.
1277         * tracepoint.h: Declare free_current_marker.
1278         * NEWS: Add one entry about `info static-tracepoint-marker'.
1279
1280 2012-03-03  Yao Qi  <yao@codesourcery.com>
1281
1282         * common/agent.c (agent_loaded_p): New.
1283         (agent_look_up_symbols): New global.
1284         * common/agent.h: Declare agent_loaded_p.
1285
1286 2012-03-03  Yao Qi  <yao@codesourcery.com>
1287
1288         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
1289         (agent_capability_check, agent_capability_invalidate): New.
1290         (symbol_list): New array element.
1291         * common/agent.h (enum agent_capa): New.
1292         * target.c (target_pre_inferior): Call agent_capability_invalidate.
1293
1294 2012-03-03  Yao Qi  <yao@codesourcery.com>
1295
1296         * target.h (struct target_ops) <to_use_agent>: New field.
1297         (struct target_ops) <to_can_use_agent>: New field.
1298         (target_use_agent, target_can_use_agent): New macro.
1299         * target.c (update_current_target): Update.
1300         * remote.c: New enum `PACKET_QAgent'.
1301         (remote_protocol_features): Add a new element.
1302         (remote_use_agent, remote_can_use_agent): New.
1303         (init_remote_ops): Initialize field `can_use_agent' with
1304         remote_can_use_agent.  Intiailize field `use_agent' with
1305         remote_use_agent.
1306         * common/agent.c (use_agent): New global.
1307         * common/agent.h: Declare it.
1308         * tracepoint.c (info_static_tracepoint_markers_command): Add
1309         comment.
1310         * Makefile.in (SFILES): Add common/agent.c and agent.c.
1311         (COMMON_OBS): Add common/agent.o and agent.o
1312         (common-agent.o): New rule.
1313         * agent.c: New.
1314
1315 2012-03-03  Yao Qi  <yao@codesourcery.com>
1316
1317         * common/agent.c: New.
1318         * common/agent.h: New.
1319         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
1320         AC_CHECK_HEADERS.
1321         * configure, configh.in: Regenerated.
1322
1323 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
1324
1325         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
1326         unless it exists for this architecture.
1327
1328 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
1329
1330         * language.h (struct language_defn): New "method" la_read_var_value.
1331         * findvar.c: #include "language.h".
1332         (default_read_var_value): Renames read_var_value.  Rewrite
1333         function description.
1334         (read_var_value): New function.
1335         * value.h (default_read_var_value): Add prototype.
1336         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
1337         New functions.
1338         (ada_language_defn): Add entry for la_read_var_value.
1339         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
1340         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
1341         language_defn structures to add entry for new la_read_var_value
1342         field.
1343
1344 2012-03-02  Tom Tromey  <tromey@redhat.com>
1345             Pedro Alves  <palves@redhat.com>
1346
1347         PR breakpoints/13776:
1348         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
1349         breakpoints.
1350         (delete_longjmp_breakpoint_at_next_stop): New.
1351         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
1352         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
1353         before deleting the inferior.  Add comments.
1354         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
1355         breakpoints immediately, but only on next stop.  Move that code
1356         next to where we mark other breakpoints for deletion.
1357
1358 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
1359
1360         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
1361         marker.
1362         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1363         violation.
1364
1365 2012-03-02  Pedro Alves  <palves@redhat.com>
1366
1367         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1368
1369 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
1370
1371         Fix -Wmissing-prototypes build.
1372         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1373         * remote-sim.c (gdbsim_has_all_memory): Likewise.
1374         (gdbsim_has_memory): Likewise.
1375
1376 2012-03-02  Yao Qi  <yao@codesourcery.com>
1377
1378         Fix -Wmissing-prototypes build.
1379         * charset.c (phony_iconv_open): Make static.
1380         (phony_iconv_close, phony_iconv): Likewise.
1381         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1382         * i386-windows-nat.c (_initialize_i386_windows_nat): New
1383         prototype.
1384         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1385         * ser-mingw.c (create_select_thread): Make static.
1386         * windows-termcap.c (tgetent): New prototype.
1387         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1388
1389 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
1390
1391         Fix -Wmissing-prototypes build.
1392         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
1393         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
1394         (_initialize_loadable): New prototypes.
1395
1396 2012-03-02  Doug Evans  <dje@google.com>
1397
1398         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
1399         abbrev table, read_comp_unit will do it.
1400
1401 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1402
1403         Fix -Wmissing-prototypes build.
1404         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
1405         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
1406         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
1407         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
1408         (_initialize_arm_symbian_tdep): New prototype.
1409         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
1410         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
1411         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
1412         static.
1413         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
1414         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
1415         prototype.
1416         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
1417         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
1418         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
1419         static.
1420         * moxie-tdep.c (moxie_process_record): Likewise.
1421         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
1422         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
1423         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
1424         (_initialize_rl78_tdep): New prototype.
1425         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
1426         (_initialize_rx_tdep): New prototype.
1427         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
1428         (_initialize_darwin_solib): New prototype.
1429         * solib-spu.c: Include solib-spu.h.
1430         (_initialize_spu_solib): New prototype.
1431         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
1432         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
1433         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
1434         (tic6x_software_single_step): Make it static.
1435         (_initialize_tic6x_tdep): New prototype.
1436
1437 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1438
1439         Fix -Wmissing-prototypes build.
1440         * cris-tdep.c (cris_can_use_hardware_watchpoint)
1441         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
1442
1443 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1444
1445         Fix -Wmissing-prototypes build.
1446         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
1447         (frv_have_stopped_data_address): Remove.
1448
1449 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1450
1451         Fix -Wmissing-prototypes build.
1452         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
1453         * sh-tdep.c: Include sh64-tdep.h.
1454         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
1455         * sh64-tdep.c: Include sh64-tdep.h.
1456         * sh64-tdep.h: New file.
1457
1458 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
1459
1460         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
1461
1462 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
1463
1464         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
1465         sp_regnum once the gdbarch_init_osabi hook has been called.
1466
1467 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
1468
1469         * mips-tdep.c (mips32_bc1_pc): New function.
1470         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
1471         BPOSGE32 and BPOSGE64 instructions.
1472         (deal_with_atomic_sequence): Likewise.
1473         (mips32_instruction_has_delay_slot): Likewise.
1474
1475 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
1476             Chris Dearman  <chris@mips.com>
1477             Maciej W. Rozycki  <macro@codesourcery.com>
1478             Joseph Myers  <joseph@codesourcery.com>
1479
1480         * features/mips-dsp.xml: New file.
1481         * features/mips64-dsp.xml: New file.
1482         * features/mips-dsp-linux.xml: New file.
1483         * features/mips64-dsp-linux.xml: New file.
1484         * features/Makefile (WHICH): Add mips-dsp-linux and
1485         mips64-dsp-linux.
1486         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
1487         * features/mips-dsp-linux.c: New file.
1488         * features/mips64-dsp-linux.c: New file.
1489         * regformats/mips-dsp-linux.dat: New file.
1490         * regformats/mips64-dsp-linux.dat: New file.
1491         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
1492         registers.
1493         (mips64_linux_register_addr): Likewise.
1494         (mips64_linux_regsets_fetch_registers): Likewise.
1495         (mips64_linux_regsets_store_registers): Likewise.
1496         (mips64_linux_fetch_registers): Update call to
1497         mips64_linux_regsets_fetch_registers.
1498         (mips64_linux_store_registers): Update call to
1499         mips64_linux_regsets_store_registers.
1500         (mips_linux_read_description): Probe for DSP registers.
1501         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
1502         and initialize_tdesc_mips64_dsp_linux.
1503         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
1504         Remove padding of no longer used embedded register slots.
1505         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
1506         (MIPS_RESTART_REGNUM): Redefine enum value.
1507         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
1508         strings.
1509         (mips_tx39_reg_names): Likewise.
1510         (mips_linux_reg_names): New array of register names for Linux
1511         targets.
1512         (mips_register_name): Check for a null pointer in
1513         mips_processor_reg_names and return an empty string.
1514         (mips_register_type): Exclude embedded registers for the IRIX
1515         and Linux ABIs.
1516         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
1517         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
1518         DSP registers.
1519         (mips_stab_reg_to_regnum): Handle DSP accumulators.
1520         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1521         (mips_gdbarch_init): Likewise.  Initialize internal register
1522         indices for the Linux ABI.  Use dynamic numbers to refer to
1523         registers, as applicable, while parsing the target description.
1524         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1525
1526 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
1527
1528         * frame.h (read_frame_register_unsigned): Fix typo in function
1529         description.
1530
1531 2012-03-01  Pedro Alves  <palves@redhat.com>
1532
1533         * jit-reader.in [!__cplusplus]
1534         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1535
1536 2012-03-01  Pedro Alves  <palves@redhat.com>
1537
1538         * configure.ac (build_warnings): Add -Wmissing-prototypes.
1539         * configure: Regenerate.
1540
1541 2012-03-01  Pedro Alves  <palves@redhat.com>
1542
1543         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1544         * breakpoint.c (create_exception_master_breakpoint, trace_command)
1545         (ftrace_command, strace_command): Make static.
1546         * d-lang.c (_initialize_d_language): Declare.
1547         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1548         * dwarf2loc.c (_initialize_dwarf2loc):
1549         * dwarf2read.c (process_psymtab_comp_unit): Make static.
1550         * exec.c (exec_get_section_table): Make static.
1551         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1552         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1553         * inferior.c (remove_inferior_command, add_inferior_command)
1554         (clone_inferior_command): Make static.
1555         * linux-nat.c (linux_nat_thread_address_space)
1556         (linux_nat_core_of_thread): Make static.
1557         * linux-tdep.c (_initialize_linux_tdep): Declare.
1558         * objc-lang.c (_initialize_objc_lang): Declare.
1559         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1560         Make static.
1561         (_initialize_opencl_language): Declare.
1562         * record.c (_initialize_record): Declare.
1563         * remote.c (demand_private_info, remote_get_tib_address)
1564         (remote_supports_cond_tracepoints)
1565         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1566         Make static.
1567         * skip.c (_initialize_step_skip): Declare.
1568         * symtab.c (skip_prologue_using_lineinfo): Make static.
1569         * tracepoint.c (delete_trace_state_variable)
1570         (trace_variable_command, delete_trace_variable_command)
1571         (get_uploaded_tsv, find_matching_tracepoint_location)
1572         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1573         Make static.
1574         * value.c (pack_unsigned_long): Make static.
1575         * varobj.c (varobj_ensure_python_env): Make static.
1576         * windows-tdep.c (_initialize_windows_tdep): Declare.
1577         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1578
1579 2012-03-01  Pedro Alves  <palves@redhat.com>
1580
1581         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
1582         gdbarch parameter.
1583         (linux_init_abi): Install it as has_shared_address_space gdbarch
1584         callback.
1585
1586 2012-03-01  Pedro Alves  <palves@redhat.com>
1587
1588         * observer.c (observer_test_first_notification_function)
1589         (observer_test_second_notification_function)
1590         (observer_test_third_notification_function): Add declarations.
1591
1592 2012-03-01  Pedro Alves  <palves@redhat.com>
1593
1594         * common/signals.c (default_target_signal_to_host)
1595         (default_target_signal_from_host): Move ...
1596         * arch-utils.c: ... here.
1597         * arch-utils.h (default_target_signal_to_host)
1598         (default_target_signal_from_host): Declare.
1599
1600         * common/signals.c (target_signal_from_command): Move ...
1601         * infrun.c: ... here.
1602         * inferior.h (target_signal_from_command): Declare.
1603         * target.h (target_signal_from_command)
1604         (default_target_signal_from_host, default_target_signal_to_host):
1605         Delete declarations.
1606
1607         * common/signals.c (_initialize_signals): Delete.
1608
1609 2012-03-01  Pedro Alves  <palves@redhat.com>
1610
1611         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1612         both __cplusplus and !__cplusplus.
1613
1614 2012-03-01  Pedro Alves  <palves@redhat.com>
1615
1616         * psymtab.c (find_and_open_source): Delete declaration.
1617         * source.c (find_and_open_source): Move comment ...
1618         * source.h (find_and_open_source): ... to this new declaration.
1619
1620 2012-03-01  Pedro Alves  <palves@redhat.com>
1621
1622         * inline-frame.c: Include inline-frame.h.
1623
1624 2012-03-01  Pedro Alves  <palves@redhat.com>
1625
1626         * tui/tui-data.c (set_gen_win_origin): Delete.
1627         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1628         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1629
1630 2012-03-01  Pedro Alves  <palves@redhat.com>
1631
1632         * remote.c (encode_actions): Delete declaration.
1633         * tracepoint.c (encode_actions): Make extern.
1634         * tracepoint.h (encode_actions): Declare.
1635
1636 2012-03-01  Pedro Alves  <palves@redhat.com>
1637
1638         * python/py-breakpoint.c: Include python.h.
1639         * python/py-continueevent.c (create_continue_event_object): Make
1640         static.
1641         * python/py-lazy-string.c (stpy_get_type): Make static.
1642         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1643         Make static.
1644         * python/py-utils.c (unicode_to_target_python_string): Make
1645         static.
1646         * python/py-value.c: Include python.h.
1647
1648 2012-03-01  Pedro Alves  <palves@redhat.com>
1649
1650         * inferior.c (delete_threads_of_inferior): Delete.
1651
1652 2012-03-01  Pedro Alves  <palves@redhat.com>
1653
1654         Import fallback definitions from glibc.
1655
1656         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1657         ps_prochandle): Forward declare.
1658         (ps_err_e): Use glibc's comments.
1659         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1660         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1661         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1662         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1663         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1664         (struct ps_prochandle): Adjust comment.
1665
1666 2012-03-01  Pedro Alves  <palves@redhat.com>
1667
1668         * ada-lang.c (ada_modulus_from_name): Delete.
1669         * ada-lex.l (lexer_init): Make static.
1670
1671 2012-03-01  Pedro Alves  <palves@redhat.com>
1672
1673         PR gdb/13767
1674
1675         * frame.c (read_frame_register_unsigned): New.
1676         * frame.h (read_frame_register_unsigned): Declare.
1677         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1678         Handle it.
1679         (print_i387_control_word): New parameter `control_p'.  Handle it.
1680         (i387_print_float_info): Handle unavailable float registers.
1681
1682 2012-03-01  Keith Seitz  <keiths@redhat.com>
1683
1684         * linespec.c (decode_line_2): Sort the list of methods
1685         alphabetically before presenting the user with a selection
1686         menu.
1687
1688 2012-03-01  Doug Evans  <dje@google.com>
1689
1690         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1691         has_namespace_info.
1692         (dwarf2_read_abbrevs): Remove corresponding initialization.
1693
1694 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
1695
1696         * NEWS: Mention new python command class gdb.COMMAND_USER.
1697         * cli/cli-cmds.c (show_user): Print error when used on a python
1698         command.
1699         (init_cli_cmds): Update documentation strings for "show user" and
1700         "set/show max-user-call-depth" to clarify that it does not apply to
1701         python commands.
1702         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1703         error check.
1704         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1705         gdb python api.
1706         * top.c (execute_command): Only execute a user-defined command as a
1707         legacy macro if c->user_commands is set.
1708
1709 2012-03-01  Tom Tromey  <tromey@redhat.com>
1710
1711         * valprint.h (struct generic_val_print_decorations): New.
1712         (generic_val_print): Declare.
1713         * valprint.c (generic_val_print): New function.
1714         * p-valprint.c (p_decorations): New global.
1715         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1716         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1717         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1718         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1719         * m2-valprint.c (m2_decorations): New global.
1720         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1721         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1722         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1723         TYPE_CODE_ERROR>: Call generic_val_print.
1724         * f-valprint.c (f_decorations): New global.
1725         (f_val_print): Use print_function_pointer_address.
1726         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1727         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1728         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1729         generic_val_print.
1730         * c-valprint.c (c_decorations): New global.
1731         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1732         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1733         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1734         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1735         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1736         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1737         case.
1738
1739 2012-03-01  Tom Tromey  <tromey@redhat.com>
1740
1741         * valprint.c (val_print): Update.
1742         * p-valprint (pascal_val_print): Return void.
1743         * p-lang.h (pascal_val_print): Return void.
1744         * m2-valprint.c (m2_val_print): Return void.
1745         * m2-lang.h (m2_val_print): Return void.
1746         * language.h (struct language_defn) <la_val_print>: Return void.
1747         * language.c (unk_lang_val_print): Return void.
1748         * jv-valprint.c (java_val_print): Return void.
1749         * jv-lang.h (java_val_print): Return void.
1750         * f-valprint.c (f_val_print): Return void.
1751         * f-lang.h (f_val_print): Return void.
1752         * d-valprint.c (d_val_print): Return void.
1753         (dynamic_array_type): Update.
1754         * d-lang.h (d_val_print): Return void.
1755         * c-valprint.c (c_val_print): Return void.
1756         * c-lang.h (c_val_print): Return void.
1757         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1758         void.
1759         * ada-lang.h (ada_val_print): Return void.
1760
1761 2012-03-01  Tom Tromey  <tromey@redhat.com>
1762
1763         * value.h (val_print): Return void.
1764         * valprint.c (val_print): Return void.
1765
1766 2012-03-01  Tom Tromey  <tromey@redhat.com>
1767
1768         * value.h (common_val_print): Return void.
1769         * valprint.c (common_val_print): Return void.
1770
1771 2012-03-01  Tom Tromey  <tromey@redhat.com>
1772
1773         * value.h (value_print): Return void.
1774         * valprint.c (value_print): Return void.
1775         * p-valprint.c (pascal_value_print): Return void.
1776         * p-lang.h (pascal_value_print): Return void.
1777         * language.h (struct language_defn) <la_value_print>: Return
1778         void.
1779         * language.c (unk_lang_value_print): Return void.
1780         * jv-valprint.c (java_value_print): Return void.
1781         * jv-lang.h (java_value_print): Return void.
1782         * f-valprint.c (c_value_print): Don't declare.
1783         Include c-lang.h.
1784         * c-valprint.c (c_value_print): Return void.
1785         * c-lang.h (c_value_print): Return void.
1786         * ada-valprint.c (ada_value_print): Return void.
1787         * ada-lang.h (ada_value_print): Return void.
1788
1789 2012-03-01  Tom Tromey  <tromey@redhat.com>
1790
1791         * value.c (value_primitive_field): Handle virtual base classes.
1792
1793 2012-03-01  Tom Tromey  <tromey@redhat.com>
1794
1795         * gdbtypes.h (struct vbase): Remove.
1796
1797 2012-03-01  Tom Tromey  <tromey@redhat.com>
1798
1799         * c-valprint.c (print_function_pointer_address): Move...
1800         * valprint.c: ... here.  Make non-static.
1801         * m2-valprint.c (print_function_pointer_address): Remove.
1802         * valprint.h (print_function_pointer_address): Declare.
1803
1804 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
1805
1806         * NEWS: Document the fact that one can provide a condition when
1807         creating an Ada exception catchpoint.
1808
1809 2012-03-01  Tom Tromey  <tromey@redhat.com>
1810
1811         * valprint.c (val_print_type_code_flags): Fix placement of
1812         trailing brace.
1813
1814 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
1815
1816         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1817         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1818         environment variable before calling update-copyright.
1819
1820 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
1821
1822         * gnulib/extra/update-copyright: Update to the latest from
1823         gnulib's git repository.
1824         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1825         variable to 2 instead of 1.
1826
1827 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1828
1829         * varobj.c (c_value_of_variable): Remove dead code.
1830
1831 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1832
1833         * ada-lex.p (processId): Do not modify already encoded IDs.
1834         Update function documentation.
1835
1836 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1837
1838         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1839         "name" with "struct symbol *name_sym".
1840         * ada-exp.y (write_var_or_type): Update call to
1841         ada_find_renaming_symbol.
1842         "name" with "struct symbol *name_sym". Adjust Implementation
1843         accordingly.  Adjust the function documentation.
1844
1845 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1846
1847         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1848         * ada-lang.c (ada_find_any_type): Add advance declaration.
1849         Make static.  Replace ada_find_any_symbol by
1850         ada_find_any_type_symbol.
1851         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1852         Improve function description.  Make static.
1853         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1854         Replace ada_find_any_symbol by ada_find_any_type_symbol.
1855
1856 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1857
1858         * ada-lang.c (struct tag_args): Delete.
1859         (ada_get_tsd_type): Function body moved up in source file.
1860         (ada_tag_name_1, ada_tag_name_2): Delete.
1861         (ada_get_tsd_from_tag): New function.
1862         (ada_tag_name_from_tsd): New function.
1863         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1864         to determine the tag name.
1865
1866 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1867
1868         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1869         declaration.
1870         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1871         function.
1872
1873 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1874
1875         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1876
1877 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1878
1879         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1880         full searches.
1881
1882 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1883
1884         * ada-lang.c (constrained_packed_array_type): If there is a
1885         parallel XA type, use it to determine the array index type.
1886
1887 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1888
1889         * ada-valprint.c (ada_val_print_1): If our value is a reference
1890         to an array descriptor, dereference it before converting it
1891         to a simple array.
1892
1893 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1894
1895         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1896         creating fixed value.
1897         (ada_value_ind, ada_coerce_ref, assign_component)
1898         (ada_evaluate_subexp): Remove call to unwrap_value before
1899         call to ada_to_fixed_value.
1900
1901 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1902
1903         * ada-lang.c (to_fixed_array_type): Set result's type name.
1904
1905 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
1906
1907         * ada-lang.c (catch_ada_exception_command_split): Add new
1908         argument cond_string.  Add support for condition at end of
1909         "catch exception" commands.
1910         (ada_decode_exception_location): Add new argument cond_string.
1911         Update call to catch_ada_exception_command_split.
1912         (create_ada_exception_catchpoint): Add new argument cond_string.
1913         Set the breakpoint condition if needed.
1914         (catch_ada_exception_command): Update call to
1915         ada_decode_exception_location.
1916         (ada_decode_assert_location): Add function documentation.
1917         Add support for condition at end of "catch assert" command.
1918         (catch_assert_command): Update calls to ada_decode_assert_location
1919         and create_ada_exception_catchpoint.
1920
1921 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1922
1923         Fix disp-step-syscall.exp: fork: single step over fork.
1924         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1925         (i386_linux_get_syscall_number_from_regcache): ... here, new function
1926         comment, change parameters gdbarch and ptid to regcache.  Remove
1927         parameter regcache, initialize gdbarch from regcache here.
1928         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1929         New functions.
1930         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1931         instead.
1932         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1933         'syscall'.  Make the 'int' check more strict.
1934
1935 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1936
1937         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1938         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1939         (i386_linux_intx80_sysenter_syscall_record): ... here.
1940         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1941         Use the renamed function name.
1942
1943 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1944
1945         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1946         * breakpoint.c (until_break_command): Likewise.
1947         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1948         * infcall.c (call_function_by_hand): Likewise.
1949         * infcmd.c (finish_forward): Likewise.
1950         * infrun.c (insert_exception_resume_breakpoint): Likewise.
1951
1952 2012-02-28  Tristan Gingold  <gingold@adacore.com>
1953
1954         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1955         avoid variable assignments inside condition.
1956
1957 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1958
1959         Fix static analysis issue found by cppcheck.
1960         * microblaze-tdep.c (microblaze_extract_return_value): Fix
1961         uninitialized BUF for size 2.
1962
1963 2012-02-27  Chris Dearman  <chris@mips.com>
1964             Nathan Froyd  <froydnj@codesourcery.com>
1965             Maciej W. Rozycki  <macro@codesourcery.com>
1966
1967         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1968         (mips16_instruction_has_delay_slot): Likewise.
1969         (mips_segment_boundary): Likewise.
1970         (mips_adjust_breakpoint_address): Likewise.
1971         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1972
1973 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
1974             Maciej W. Rozycki  <macro@codesourcery.com>
1975
1976         * infrun.c (handle_inferior_event): Don't proceed through
1977         shared library trampolines if stepping at the machine
1978         instruction level.
1979
1980 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
1981
1982         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1983         too.
1984
1985 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
1986
1987         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1988         (sh_stub_unwind_sniffer): New functions.
1989         (sh_stub_unwind): New variable.
1990         (sh_gdbarch_init): Wire everything.
1991
1992 2012-02-27  Pedro Alves  <palves@redhat.com>
1993
1994         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1995         (linux_nat_post_attach_wait): Adjust to use
1996         linux_proc_pid_is_stopped.
1997         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1998         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1999         based on pid_is_stopped from both linux-nat.c and
2000         gdbserver/linux-low.c, and renamed.
2001
2002 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
2003
2004         * remote.c (remote_watchpoint_addr_within_range): New function.
2005         (init_remote_ops): Use it.
2006
2007 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
2008
2009         * target.h (target_watchpoint_addr_within_range): Document macro.
2010
2011 2012-02-24  Pedro Alves  <palves@redhat.com>
2012
2013         * stack.c (set_last_displayed_sal): Issue internal_error instead
2014         of warning, and issue it after clearing the last displayed sal.
2015
2016 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2017             Pedro Alves  <palves@redhat.com>
2018
2019         * breakpoint.c (until_break_command): Install breakpoints after
2020         all frame manipulations.
2021
2022 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
2023
2024         * remote.c (remote_supports_cond_breakpoints): New forward
2025         declaration.
2026         (remote_add_target_side_condition): New function.
2027         (remote_insert_breakpoint): Add target-side breakpoint
2028         conditional if supported.
2029         (remote_insert_hw_breakpoint): Likewise.
2030         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
2031         hook.
2032
2033         * target.c (update_current_target): Inherit
2034         to_supports_evaluation_of_breakpoint_conditions.
2035         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
2036
2037         * target.h (struct target_ops)
2038         <to_supports_evaluation_of_breakpoint_conditions>: New field.
2039         (target_supports_evaluation_of_breakpoint_conditions): New #define.
2040
2041         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
2042         (condition_evaluation_both, condition_evaluation_auto,
2043         condition_evaluation_host, condition_evaluation_target,
2044         condition_evaluation_enums, condition_evaluation_mode_1,
2045         condition_evaluation_mode): New static globals.
2046         (translate_condition_evaluation_mode): New function.
2047         (breakpoint_condition_evaluation_mode): New function.
2048         (gdb_evaluates_breakpoint_condition_p): New function.
2049         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
2050         (mark_breakpoint_modified): New function.
2051         (mark_breakpoint_location_modified): New function.
2052         (set_condition_evaluation_mode): New function.
2053         (show_condition_evaluation_mode): New function.
2054         (bp_location_compare_addrs): New function.
2055         (get_first_location_gte_addr): New helper function.
2056         (set_breakpoint_condition): Free condition bytecode if locations
2057         has become unconditional.  Call mark_breakpoint_modified (...).
2058         (condition_command): Call update_global_location_list (1) for
2059         breakpoints.
2060         (breakpoint_xfer_memory): Use is_breakpoint (...).
2061         (is_breakpoint): New function.
2062         (parse_cond_to_aexpr): New function.
2063         (build_target_condition_list): New function.
2064         (insert_bp_location): Handle target-side conditional
2065         breakpoints and call build_target_condition_list (...).
2066         (update_inserted_breakpoint_locations): New function.
2067         (insert_breakpoint_locations): Handle target-side conditional
2068         breakpoints.
2069         (bpstat_check_breakpoint_conditions): Add comment.
2070         (bp_condition_evaluator): New function.
2071         (bp_location_condition_evaluator): New function.
2072         (print_breakpoint_location): Print information on where the condition
2073         will be evaluated.
2074         (print_one_breakpoint_location): Likewise.
2075         (init_bp_location): Call mark_breakpoint_location_modified (...) for
2076         breakpoint location.
2077         (force_breakpoint_reinsertion): New functions.
2078         (update_global_location_list): Handle target-side breakpoint
2079         conditions.
2080         Reinsert locations that are already inserted if conditions have
2081         changed.
2082         (bp_location_dtor): Free agent expression bytecode.
2083         (disable_breakpoint): Call mark_breakpoint_modified (...).
2084         Call update_global_location_list (...) with parameter 1 for breakpoints.
2085         (disable_command): Call mark_breakpoint_location_modified (...).
2086         Call update_global_location_list (...) with parameter 1 for breakpoints.
2087         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
2088         (enable_command): mark_breakpoint_location_modified (...).
2089         (_initialize_breakpoint): Update documentation and add
2090         condition-evaluation breakpoint subcommand.
2091
2092         * breakpoint.h: Include ax.h.
2093         (condition_list): New data structure.
2094         (condition_status): New enum.
2095         (bp_target_info) <cond_list>: New field.
2096         (bp_location) <condition_changed, cond_bytecode>: New fields.
2097         (is_breakpoint): New prototype.
2098
2099 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
2100
2101         * remote.c (remote_state) <cond_breakpoints>: New field.
2102         (PACKET_ConditionalBreakpoints): New enum.
2103         (remote_cond_breakpoint_feature): New function.
2104         (remote_protocol_features): Add new ConditionalBreakpoints entry.
2105         (remote_supports_cond_breakpoints): New function.
2106         (_initialize_remote): Add new packet configuration for
2107         target-side conditional breakpoints.
2108
2109 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
2110
2111         * NEWS: Mention target-side conditional breakpoint support,
2112         new condition-evaluation breakpoint subcommand and remote
2113         packet extensions.
2114
2115 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
2116
2117         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
2118         number.
2119
2120 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
2121
2122         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
2123         (after_prologue): Remove.
2124
2125 2012-02-23  Tom Tromey  <tromey@redhat.com>
2126
2127         * jv-valprint.c (java_val_print): Remove dead code.
2128
2129 2012-02-23  Tristan Gingold  <gingold@adacore.com>
2130
2131        * ada-tasks.c (struct ada_tasks_inferior_data): Add
2132         known_tasks_element and known_tasks_length fields.
2133         (read_known_tasks_array): Change argument type.  Use pointer type
2134         and number of elements from DATA.  Adjust.
2135         (read_known_tasks_list): Likewise.
2136         (get_known_tasks_addr): Remove.
2137         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
2138         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
2139         type and array length.  Merge former get_known_tasks_addr code.
2140
2141 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
2142
2143         PR backtrace/13716
2144         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
2145         it after set_momentary_breakpoint.
2146
2147 2012-02-22  Sterling Augustine  <saugustine@google.com>
2148
2149         PR 13689:
2150         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
2151
2152 2012-02-22  Gary Benson  <gbenson@redhat.com>
2153
2154         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
2155         (find_slot_in_mapped_hash): Likewise.
2156
2157 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2158
2159         PR build/13638
2160         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
2161         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
2162         * configure: Regenerate.
2163
2164 2012-02-21  Tristan Gingold  <gingold@adacore.com>
2165             Pedro Alves  <palves@redhat.com>
2166
2167         * ia64-tdep.c: Do not include libunwind-ia64.h.
2168         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
2169         Include libunwind-ia64.h instead of libunwind.h.
2170         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
2171         for libunwind.h existence.
2172         * configure, config.in: Regenerate.
2173
2174 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
2175
2176         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
2177         instead of value_rtti_target_type.
2178         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
2179         instead of value_rtti_target_type.
2180         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
2181         value_rtti_target_type.
2182         * valops.c (value_ind): Extract function readjust_indirect_value_type.
2183         (value_rtti_target_type): Rename to ...
2184         (value_rtti_indirect_type): ... here and make it indirect.  Update
2185         function comment.
2186         * value.c (readjust_indirect_value_type): New function.
2187         (coerce_ref): Support for enclosing type setting for references
2188         with readjust_indirect_value_type.
2189         * value.h (readjust_value_type): New declaration.
2190         (value_rtti_target_type): Rename to ...
2191         (value_rtti_indirect_type): ... here.
2192
2193 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
2194
2195         * MAINTAINERS (Write After Approval): Add myself to the list.
2196
2197 2012-02-20  Doug Evans  <dje@google.com>
2198
2199         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
2200         Rename objfile_p_char parameter to objfilep.
2201         (build_objfile_section_table): Result is now void.  All callers
2202         updated.
2203         * objfiles.h (struct objfile): Tweak comments, whitespace.
2204         (build_objfile_section_table): Update.
2205
2206         * elfread.c (elf_symfile_segments): Fix warning text.
2207
2208 2012-02-20  Tom Tromey  <tromey@redhat.com>
2209
2210         PR gdb/13498:
2211         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
2212         particular set of file names once.
2213         (dw2_map_symbol_filenames): Likewise.
2214
2215 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2216
2217         Code cleanup.
2218         * main.c (write_files): Remove the declaration.
2219         (external_editor_command): Move the declaration ...
2220         [GDBTK] (external_editor_command): ... here.  Fix the comment.
2221
2222 2012-02-20  Tom Tromey  <tromey@redhat.com>
2223
2224         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
2225         extraneous block.
2226
2227 2012-02-20  Tristan Gingold  <gingold@adacore.com>
2228
2229         * darwin-nat.h (enum darwin_msg_state): Add comments.
2230
2231 2012-02-20  Tristan Gingold  <gingold@adacore.com>
2232
2233         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
2234         value.
2235
2236 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
2237
2238         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
2239         between function description and implementation.
2240
2241 2012-02-17  Tom Tromey  <tromey@redhat.com>
2242
2243         PR python/12070:
2244         * python/py-event.c (event_object_getset): New global.
2245         (event_object_type): Reference it.
2246         * python/py-type.c (field_object_getset): New global.
2247         (field_object_type): Reference it.
2248         * python/python-internal.h (gdb_py_generic_dict): Declare.
2249         * python/py-utils.c (gdb_py_generic_dict): New function.
2250
2251 2012-02-17  Tristan Gingold  <gingold@adacore.com>
2252
2253         * solib-darwin.c (darwin_current_sos): Check magic and filetype
2254
2255 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
2256
2257         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
2258         TYPE_CALLING_CONVENTION annotation.
2259
2260 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
2261
2262         * MAINTAINERS: Add rx to target ISA section.
2263         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
2264         (ALLDEPFILES): Add rx-tdep.c.
2265
2266 2012-02-16  Tom Tromey  <tromey@redhat.com>
2267
2268         * symfile.c (symbol_file_add_main_1): Use inferior's
2269         symfile_flags.
2270         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
2271         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
2272         inferior.
2273         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
2274         inferior.
2275         (follow_exec): Use inferior's symfile_flags.
2276         * inferior.h (struct inferior) <symfile_flags>: New field.
2277
2278 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
2279
2280         PR gdb/9734:
2281         * remote-sim.c (gdbsim_create_inferior): Call error() when
2282         sim_create_inferior() fails.
2283
2284 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
2285
2286         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
2287
2288 2012-02-16  Tom Tromey  <tromey@redhat.com>
2289
2290         PR c++/13653:
2291         * thread.c (struct current_thread_cleanup) <was_removable>: New
2292         field.
2293         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
2294         (make_cleanup_restore_current_thread): Initialize new field.
2295
2296 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
2297
2298         * MAINTAINERS: Add rl78 to target ISA section.
2299         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
2300         (ALLDEPFILES): Add rl78-tdep.c.
2301         * NEWS: Mention rl78 as a new target.
2302
2303 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
2304
2305         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
2306         data.
2307         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
2308
2309 2012-02-15  Tom Tromey  <tromey@redhat.com>
2310
2311         PR gdb/12659:
2312         * infcmd.c (registers_info): Print just the current register's
2313         name.
2314
2315 2012-02-15  Tom Tromey  <tromey@redhat.com>
2316
2317         * python/py-symbol.c (sympy_value): Use _().
2318
2319 2012-02-15  Pedro Alves  <palves@redhat.com>
2320
2321         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
2322         output to be like native targets'.
2323         (remote_pid_to_str): Special case the null ptid.
2324
2325 2012-02-14  Stan Shebs  <stan@codesourcery.com>
2326
2327         * NEWS: Mention enable count command.
2328         * breakpoint.h (struct breakpoint): New field enable_count.
2329         * breakpoint.c (enable_breakpoint_disp): Add count argument.
2330         (enable_breakpoint): Add arg to call.
2331         (struct disp_data): New struct.
2332         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
2333         (do_map_enable_once_breakpoint): Create a struct and pass it.
2334         (do_map_enable_delete_breakpoint): Ditto.
2335         (do_map_enable_count_breakpoint): New function.
2336         (enable_count_command): New function.
2337         (bpstat_stop_status): Decrement enable_count.
2338         (print_one_breakpoint_location): Report enable count.
2339         (_initialize_breakpoint): Add enable count command.
2340
2341 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
2342
2343         * rl78-tdep.c (reggroups.h): Include.
2344         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
2345         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
2346         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
2347         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
2348         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
2349         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
2350         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
2351         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
2352         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
2353         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
2354         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
2355         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
2356         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
2357         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
2358         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
2359         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
2360         beginning of register list.
2361         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
2362         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
2363         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
2364         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2365         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2366         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2367         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2368         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2369         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2370         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2371         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2372         the pseudo registers.  Rearrange other pseudo registers too so
2373         that the bank registers appear at the end.
2374         (rl78_register_type): Account for the fact that the byte sized
2375         bank registers are now pseudo-registers.
2376         (rl78_register_name): Rearrange the register name array.  Make
2377         initial set of raw banked registers inaccessible.
2378         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2379         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2380         case for copying bytes back and forth between raw and pseudo
2381         versions of the banked registers.  Update other cases to reflect
2382         the changed names.
2383         (rl78_return_value): Update to account for changed names of
2384         raw registers.
2385         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2386         rl78_register_sim_regno().
2387
2388 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
2389
2390         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
2391         the name parameter being passed to find_pc_partial_function().
2392
2393 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
2394
2395         * MAINTAINERS: Step down from being ia64 target maintainer.
2396
2397 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2398
2399         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
2400         compilation warning.
2401
2402 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
2403
2404         Fix crash on loaded shlibs without loaded exec_bfd.
2405         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
2406         (set_section_command): Replace exec_bfd by p->bfd.
2407
2408 2012-02-10  Tom Tromey  <tromey@redhat.com>
2409
2410         * linespec.c (decode_line_internal): Skip symtabs_from_filename
2411         when we have a C++ qualified name.
2412
2413 2012-02-10  Pedro Alves  <palves@redhat.com>
2414
2415         * inferior.c (inferior_pid_to_str): New.
2416         (print_inferior, inferior_command): Use it.
2417
2418 2012-02-10  Pedro Alves  <palves@redhat.com>
2419
2420         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
2421         the test CFLAGS.
2422         * configure: Regenerate.
2423
2424 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2425
2426         * linespec.c (decode_line_internal): Fix comment correctness.
2427
2428 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
2429
2430         PR gdb/12953
2431         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
2432         * amd64bsd-nat.c: Add support for debug registers (adapted from
2433         i386bsd-nat.c).
2434         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
2435         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
2436         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
2437         (amd64bsd_dr_get_control): New functions.
2438         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
2439         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
2440         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
2441         watchpoints initialization.
2442         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2443
2444 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2445
2446         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
2447         flds_bnds.fields.
2448         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2449
2450 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2451
2452         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
2453
2454 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
2455
2456         * language.h (symbol_name_cmp_ftype): Renames
2457         symbol_name_match_p_ftype.
2458         (struct language_defn)[la_get_symbol_name_cmp]: Renames
2459         la_get_symbol_name_match_p.
2460         * ada-lang.c (ada_get_symbol_name_cmp): Renames
2461         ada_get_symbol_name_match_p.  Update comment.
2462         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
2463         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
2464         Renames symbol_name_match_p.  Update field type.
2465         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
2466         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2467         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
2468         "la_get_symbol_name_cmp" in comments.
2469         * language.c: Likewise.
2470
2471 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2472
2473         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
2474         %eflags offset.
2475         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
2476         (amd64_sol2_gregset32_reg_offs): Likewise.
2477
2478 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
2479
2480         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
2481         of the returned BFD is allocated by GDB.
2482
2483 2012-02-07  Tom Tromey  <tromey@redhat.com>
2484
2485         PR python/12027:
2486         * python/python-internal.h (frame_object_type): Declare.
2487         * python/py-symbol.c (sympy_needs_frame): New function.
2488         (sympy_value): New function.
2489         (symbol_object_getset): Add "needs_frame".
2490         (symbol_object_methods): Add "value".
2491         * python/py-frame.c (frame_object_type): No longer static.
2492
2493 2012-02-07  Tom Tromey  <tromey@redhat.com>
2494
2495         PR python/13599:
2496         * python/py-symbol.c (sympy_line): New function.
2497         (symbol_object_getset): Add "line".
2498
2499 2012-02-07  Tom Tromey  <tromey@redhat.com>
2500
2501         * charset.c (find_charset_names): Check 'in' against NULL.
2502
2503 2012-02-06  Doug Evans  <dje@google.com>
2504
2505         * gdbtypes.h (struct main_type): Change type of name,tag_name,
2506         and fields.name members from char * to const char *.  All uses updated.
2507         (struct cplus_struct_type): Change type of fn_fieldlists.name member
2508         from char * to const char *.  All uses updated.
2509         (type_name_no_tag): Update.
2510         (lookup_unsigned_typename, lookup_signed_typename): Update.
2511         * gdbtypes.c (type_name_no_tag): Change result type
2512         from char * to const char *.  All callers updated.
2513         (lookup_unsigned_typename, lookup_signed_typename): Change type of
2514         name parameter from char * to const char *.
2515         * symtab.h (struct cplus_specific): Change type of demangled_name
2516         member from char * to const char *.  All uses updated.
2517         (struct general_symbol_info): Change type of name and
2518         mangled_lang.demangled_name members from char * to const char *.
2519         All uses updated.
2520         (symbol_get_demangled_name, symbol_natural_name): Update.
2521         (symbol_demangled_name, symbol_search_name): Update.
2522         * symtab.c (symbol_get_demangled_name): Change result type
2523         from char * to const char *.  All callers updated.
2524         (symbol_natural_name, symbol_demangled_name): Ditto.
2525         (symbol_search_name): Ditto.
2526         (completion_list_add_name): Change type of symname,sym_text,
2527         text,word parameters from char * to const char *.
2528         (completion_list_objc_symbol): Change type of sym_text,
2529         text,word parameters from char * to const char *.
2530         * ada-lang.c (find_struct_field): Change type of name parameter
2531         from char * to const char *.
2532         (encoded_ordered_before): Similarly for N0,N1 parameters.
2533         (old_renaming_is_invisible): Similarly for function_name parameter.
2534         (ada_type_name): Change result type from char * to const char *.
2535         All callers updated.
2536         * ada-lang.h (ada_type_name): Update.
2537         * buildsym.c (hashname): Change type of name parameter
2538         from char * to const char *.
2539         * buildsym.h (hashname): Update.
2540         * dbxread.c (end_psymtab): Change type of include_list parameter
2541         from char ** to const char **.
2542         * dwarf2read.c (determine_prefix): Change result type
2543         from char * to const char *.  All callers updated.
2544         * f-lang.c (find_common_for_function): Change type of name, funcname
2545         parameters from char * to const char *.
2546         * f-lang.c (find_common_for_function): Update.
2547         * f-valprint.c (list_all_visible_commons): Change type of funcname
2548         parameters from char * to const char *.
2549         * gdbarch.sh (static_transform_name): Change type of name parameter
2550         and result from char * to const char *.
2551         * gdbarch.c: Regenerate.
2552         * gdbarch.h: Regenerate.
2553         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2554         of name parameter from char * to const char *.
2555         * jv-lang.c (java_primitive_type_from_name): Ditto.
2556         (java_demangled_signature_length): Similarly for signature parameter.
2557         (java_demangled_signature_copy): Ditto.
2558         (java_demangle_type_signature): Ditto.
2559         * jv-lang.h (java_primitive_type_from_name): Update.
2560         (java_demangle_type_signature): Update.
2561         * objc-lang.c (specialcmp): Change type of a,b parameters
2562         from char * to const char *.
2563         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2564         from char * to const char *.  All callers updated.
2565         * p-lang.h (is_pascal_string_type): Update.
2566         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2567         of name parameter from char * to const char *.
2568         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2569         * utils.c (fprintf_symbol_filtered): Ditto.
2570         * defs.h (fprintf_symbol_filtered): Update.
2571         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2572         * stabsread.h (end_psymtab): Update.
2573         * stack.c (find_frame_funname): Change type of funname parameter
2574         from char ** to const char **.
2575         * stack.h (find_frame_funname): Update.
2576         * typeprint.c (type_print): Change type of varstring parameter
2577         from char * to const char *.
2578         * value.h (type_print): Update.
2579         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2580         from char * to const char *.  All callers updated.
2581         (xcoff_end_psymtab): Change type of include_list parameter
2582         from char ** to const char **.  All callers updated.
2583         (swap_sym): Similarly for name parameter.  All callers updated.
2584         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2585         Use xstrdup.
2586         (process_coff_symbol): Use xstrdup.
2587         * stabsread.c (stabs_method_name_from_physname): Renamed from
2588         update_method_name_from_physname.  Change result type from void
2589         to char *.  All callers updated.
2590         (read_member_functions): In has_destructor case, store name in objfile
2591         obstack instead of malloc space.  In !has_stub case, fix mem leak.
2592
2593 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
2594
2595         * configure: Rebuild.
2596         * configure.ac: Put -L../bfd and -L../libiberty at the front of
2597         LDFLAGS.
2598
2599 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
2600
2601         * configure.tgt (rl78-*-elf): New target.
2602         * rl78-tdep.c: New file.
2603
2604 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2605
2606         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2607         and continue the loop.  Add QUIT statement.
2608
2609 2012-02-03  Tom Tromey  <tromey@redhat.com>
2610
2611         PR gdb/13596:
2612         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2613         bfd_lookup_symbol_from_symtab.
2614         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2615         gdb_bfd_lookup_symbol_from_symtab.
2616
2617 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
2618
2619         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2620         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2621         symbol.  Add assertion that sym2 is never NULL.
2622
2623 2012-02-02  Doug Evans  <dje@google.com>
2624
2625         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2626         "name" parameter to const char ** from char **.  All callers updated.
2627         (find_pc_partial_function): Ditto.
2628         (cache_pc_function_name): Change type to const char * from char *.
2629         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2630         (find_pc_partial_function): Update.
2631         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2632         type of "name" parameter to const char * from char *.
2633         All uses updated.
2634         * arch-utils.c (generic_in_solib_return_trampoline): Change
2635         type of "name" parameter to const char * from char *.
2636         * arch-utils.h (generic_in_solib_return_trampoline): Update.
2637         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2638         type of "name" parameter to const char * from char *.
2639         * gdbarch.sh (in_solib_return_trampoline): Ditto.
2640         * gdbarch.c: Regenerate.
2641         * gdbarch.h: Regenerate.
2642         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2643         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2644         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2645         type of "name" parameter to const char * from char *.
2646         * skip.c (skip_function_pc): Ditto.
2647         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2648         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2649         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2650         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2651         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2652         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2653         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2654         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2655         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2656
2657 2012-02-02  Pedro Alves  <palves@redhat.com>
2658
2659         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2660         the current inferior has no execution.  Make sure the current
2661         remote process matches gdb's current inferior.
2662
2663 2012-02-02  Tom Tromey  <tromey@redhat.com>
2664
2665         PR gdb/13405:
2666         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2667         read-only memory.
2668
2669 2012-02-02  Tom Tromey  <tromey@redhat.com>
2670
2671         PR gdb/9307:
2672         * symtab.c (lookup_language_this): Set block_found.
2673
2674 2012-02-01  Tom Tromey  <tromey@redhat.com>
2675
2676         PR gdb/13431:
2677         * jit.c (struct jit_inferior_data): Rewrite.
2678         (struct jit_objfile_data): New.
2679         (get_jit_objfile_data): New function.
2680         (add_objfile_entry): Update.
2681         (jit_read_descriptor): Return int.  Replace descriptor_addr
2682         argument with inf_data.  Update.  Don't call error.
2683         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
2684         descriptor here.
2685         (jit_inferior_init): Don't look up descriptor.  Don't call error.
2686         (jit_reset_inferior_data_and_breakpoints)
2687         (jit_inferior_created_observer): Remove.
2688         (jit_inferior_exit_hook): Update.
2689         (jit_executable_changed_observer): Remove.
2690         (jit_event_handler): Update.
2691         (free_objfile_data): Reset inferior data if needed.
2692         (_initialize_jit): Update.
2693
2694 2012-02-01  Tom Tromey  <tromey@redhat.com>
2695
2696         * jit.c (bfd_open_from_target_memory): Move higher in file.
2697
2698 2012-02-01  Tristan Gingold  <gingold@adacore.com>
2699
2700         * libunwind-frame.c (libunwind_load): Display message if dlopen
2701         failed.
2702
2703 2012-02-01  Gary Benson  <gbenson@redhat.com>
2704
2705         * symtab.h (symbol_found_callback_ftype): New typedef.
2706         (iterate_over_symbols): Use the above.
2707         * symtab.c (iterate_over_symbols): Likewise.
2708         * language.h (language_defn->la_iterate_over_symbols): Likewise.
2709         * ada-lang.c (ada_iterate_over_symbols): Likewise.
2710         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2711         (iterate_name_matcher): Document return values.
2712         (collect_one_symbol): Likewise.
2713         (collect_function_symbols): Likewise.
2714         (collect_symbols): Likewise.
2715
2716 2012-02-01  Tom Tromey  <tromey@redhat.com>
2717
2718         * ada-lang.c (resolve_subexp): Update.
2719         (ada_lookup_symbol_list): Add 'full_search' argument.
2720         (ada_iterate_over_symbols): Pass 0 as full_search argument to
2721         ada_lookup_symbol_list.
2722         (ada_lookup_encoded_symbol): Update.
2723         (get_var_value): Update.
2724         * ada-exp.y (block_lookup): Update.
2725         (write_var_or_type): Update.
2726         (write_name_assoc): Update.
2727         * ada-lang.h (ada_lookup_symbol_list): Update.
2728
2729 2012-01-31  Tom Tromey  <tromey@redhat.com>
2730
2731         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2732         comment.
2733
2734 2012-01-31  Doug Evans  <dje@google.com>
2735
2736         * symtab.h: Remove outdated comment.
2737         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
2738
2739 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
2740
2741         Fix build error in Darwin port.
2742         * i386-darwin-nat.c: Include i386-nat.h.
2743
2744 2012-01-30  Tom Tromey  <tromey@redhat.com>
2745
2746         PR breakpoints/13568:
2747         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2748         argument.  Check for recursive includes.
2749         (dwarf_decode_macros): Create an include hash.
2750
2751 2012-01-30  Michael Eager  <eager@eagercon.com>
2752
2753         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2754         * ppc-linux-tdep.c: Include glibc-tdep.h.
2755         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
2756         (powerpc_linux_in_plt_stub): New function.
2757         (powerpc_linux_in_dynsym_resolve_code): New function.
2758         (ppc_skip_trampoline_code): New function.
2759         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2760         Use glibc_skip_solib_resolver.
2761
2762 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2763
2764         Code cleanup: Make 1440 bytes of data segment read-only.
2765         * arch-utils.c (endian_enum): Make it const char *const [].
2766         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2767         Likewise.
2768         * breakpoint.c (always_inserted_enums): Likewise.
2769         * cli/cli-cmds.c (script_ext_enums): Likewise.
2770         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2771         enumlist parameter const char *const *.
2772         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2773         const char *const *.
2774         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2775         parameter const char *const *.
2776         * cris-tdep.c (cris_modes): Make it const char *const [].
2777         * filesystem.c (target_file_system_kinds): Likewise.
2778         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2779         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2780         (can_use_displaced_stepping_enum, scheduler_enums)
2781         (exec_direction_names): Likewise.
2782         * language.c (_initialize_language): Make the type_or_range_names and
2783         case_sensitive_names variables const char *const [].
2784         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2785         * python/python.c (python_excp_enums): Likewise.
2786         * remote.c (interrupt_sequence_modes): Likewise.
2787         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2788         * serial.c (logbase_enums): Likewise.
2789         * sh-tdep.c (sh_cc_enum): Likewise.
2790         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2791         Likewise.
2792         * symtab.c (multiple_symbols_modes): Likewise.
2793         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2794         Likewise.
2795         * utils.c (internal_problem_modes): Likewise.
2796
2797 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2798
2799         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2800         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2801         result.
2802
2803 2012-01-27  Doug Evans  <dje@google.com>
2804
2805         * configure.ac (with_python): Fix absolute path handling for win32.
2806         * configure: Regenerate.
2807
2808 2012-01-26  Doug Evans  <dje@google.com>
2809
2810         * symtab.c: Whitespace cleanup, no code changes.
2811
2812         * symtab.c (lookup_symbol_in_language): Improve comment.
2813         (lookup_symbol_aux): Fix comment.
2814
2815         * psymtab.c (add_psymbol_to_list): Result is now "void".
2816         * psympriv.h (add_psymbol_to_list): Update.
2817
2818         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2819
2820 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2821
2822         Do not open script filenames twice.
2823         * cli/cli-cmds.c (source_script_from_stream): Pass to
2824         source_python_script also STREAM.
2825         * python/py-auto-load.c (source_section_scripts): Pass to
2826         source_python_script_for_objfile also STREAM.
2827         (auto_load_objfile_script): Pass to source_python_script_for_objfile
2828         also INPUT.
2829         * python/python-internal.h (source_python_script_for_objfile): New
2830         parameter file, rename parameter file to filename.
2831         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2832         instead if !_WIN32.  Update the function comment.
2833         (source_python_script, source_python_script_for_objfile)
2834         (source_python_script): New parameter file, rename parameter file to
2835         filename.  Pass FILENAME to python_run_simple_file.
2836         * python/python.h (source_python_script): New parameter file, rename
2837         parameter file to filename.
2838
2839 2012-01-26  Pedro Alves  <palves@redhat.com>
2840
2841         * corelow.c (core_has_fake_pid): Delete.
2842         (core_close): Delete references to `core_has_fake_pid'.
2843         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2844         (core_open): Delete references to `core_has_fake_pid'.
2845         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2846         the removed global.
2847
2848 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
2849
2850         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2851         Remove language parameter from name_matcher.  Adjust the comment.
2852         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2853         Remove language parameter.
2854         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2855         * linespec.c (iterate_name_matcher): Likewise.
2856         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2857         name_matcher.  Adjust call accordingly.
2858         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2859         (maintenance_check_symtabs): Adjust type of parameter "fun".
2860         * psymtab.h (maintenance_check_symtabs): Likewise.
2861
2862 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
2863
2864         * language.h (symbol_name_match_p_ftype): New typedef.
2865         (struct language_defn): Replace field la_symbol_name_compare
2866         by la_get_symbol_name_match_p.
2867         * ada-lang.c (ada_get_symbol_name_match_p): New function.
2868         (ada_language_defn): Use it.
2869         * linespec.c (struct symbol_matcher_data): New type.
2870         (iterate_name_matcher): Rewrite.
2871         (iterate_over_all_matching_symtabs): Pass a pointer to
2872         a symbol_matcher_data struct to expand_symtabs_matching
2873         instead of just the lookup name.
2874         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2875         opencl-lang.c, p-lang.c, language.c: Delete field
2876         la_symbol_name_compare, and replace by NULL for new field
2877         la_get_symbol_name_match_p.
2878         * symfile.h (struct quick_symbol_functions): Update comment.
2879
2880 2012-01-25  Tom Tromey  <tromey@redhat.com>
2881
2882         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2883         dereferencing.
2884
2885 2012-01-24  Tom Tromey  <tromey@redhat.com>
2886
2887         PR symtab/12406:
2888         * solib.c (update_solib_list): Update the program space's
2889         added_solibs and deleted_solibs fields.
2890         * progspace.h (struct program_space) <added_solibs,
2891         deleted_solibs>: New fields.
2892         (clear_program_space_solib_cache): Declare.
2893         * progspace.c (release_program_space): Call
2894         clear_program_space_solib_cache.
2895         (clear_program_space_solib_cache): New function.
2896         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2897         bpstat_stop_status.  Use handle_solib_event.
2898         * breakpoint.c: Include gdb_regex.h.
2899         (print_solib_event): New function.
2900         (bpstat_print): Use print_solib_event.
2901         (bpstat_stop_status): Add special case for bp_shlib_event.
2902         (handle_solib_event): New function.
2903         (bpstat_what): Use handle_solib_event.
2904         (struct solib_catchpoint): New.
2905         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2906         (breakpoint_hit_catch_solib, check_status_catch_solib)
2907         (print_it_catch_solib, print_one_catch_solib)
2908         (print_mention_catch_solib, print_recreate_catch_solib): New
2909         functions.
2910         (catch_solib_breakpoint_ops): New global.
2911         (catch_load_or_unload, catch_load_command_1)
2912         (catch_unload_command_1): New functions.
2913         (internal_bkpt_check_status): Add special case for
2914         bp_shlib_event.
2915         (internal_bkpt_print_it): Use print_solib_event.
2916         (initialize_breakpoint_ops): Initialize
2917         catch_solib_breakpoint_ops.
2918         (_initialize_breakpoint): Register "catch load" and "catch
2919         unload".
2920         * breakpoint.h (handle_solib_event): Declare.
2921         * NEWS: Add entry for "catch load" and "catch unload".
2922
2923 2012-01-24  Tom Tromey  <tromey@redhat.com>
2924
2925         * ada-lang.c: Include gdb_vecs.h.
2926         * charset.c: Include gdb_vecs.h.
2927         * tracepoint.h: Include gdb_vecs.h.
2928         * gdb_vecs.h: New file.
2929
2930 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
2931
2932         * breakpoint.c (breakpoint_hit_catch_fork)
2933         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2934         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2935         * infrun.c (inferior_has_forked, inferior_has_vforked)
2936         (inferior_has_execd, inferior_has_called_syscall): Delete.
2937         (handle_syscall_event): Get syscall_number from the execution
2938         control state's wait status.
2939         (wait_for_inferior): Don't clear syscall_number.
2940
2941 2012-01-24  Pedro Alves  <palves@redhat.com>
2942
2943         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2944         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2945         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2946         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2947         `ws' parameter.
2948         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
2949         false for events other than TARGET_SIGNAL_TRAP.
2950         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2951         Add `ws' parameter.
2952         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
2953         events other than TARGET_SIGNAL_TRAP.
2954         (tracepoint_breakpoint_hit): Add `ws' parameter.
2955         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2956         parameter.
2957         (bpstat_stop_status): Same.
2958         (pc_at_non_inline_function): Same.
2959         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2960         to pass the current event's waitstatus to bpstat_stop_status
2961         and pc_at_non_inline_function.
2962
2963 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
2964
2965         Code cleanup.
2966         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2967         Update the function comment for it.
2968         (source_script_with_search): Call make_cleanup_fclose for STREAM.
2969         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2970         for STREAM.
2971
2972 2012-01-24  Pedro Alves  <palves@redhat.com>
2973
2974         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2975         outside `bs->stop' block.
2976         (bpstat_what): Rework bp_shlib_event handling.
2977         (internal_bkpt_check_status): If the breakpoint is a
2978         bp_shlib_event, then set bs->stop and bs->print if
2979         stop_on_solib_events is set.
2980
2981 2012-01-24  Gary Benson  <gbenson@redhat.com>
2982
2983         Delete #if 0'd out code.
2984         * stack.c (print_frame_label_vars): Remove.
2985         (catch_info): Likewise.
2986         (_initialize_stack): Remove "info catch" command.
2987         * NEWS: Mention the above.
2988
2989 2012-01-24  Pedro Alves  <palves@redhat.com>
2990
2991         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
2992         it.
2993         (remote_notice_new_inferior): If the remote end doesn't support
2994         the multiprocess extensions, then the PID is fake.
2995         (add_current_inferior_and_thread): New.
2996         (remote_start_remote): Use it.
2997         (extended_remote_attach_1): Adjust.
2998         (extended_remote_create_inferior_1): Use
2999         add_current_inferior_and_thread.
3000
3001 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3002
3003         Fix watchpoints to be specific for each inferior.
3004         * breakpoint.c (watchpoint_in_thread_scope): Verify also
3005         current_program_space.
3006         * i386-nat.c (i386_inferior_data_cleanup): New.
3007         (i386_inferior_data_get): Replace variable inf_data_local by an
3008         inferior_data call.
3009         (i386_use_watchpoints): Initialize i386_inferior_data.
3010         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
3011         specific iterate_over_lwps.
3012
3013 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3014
3015         Fix watchpoints across inferior fork.
3016         * amd64-linux-nat.c (update_debug_registers_callback): Update the
3017         comment for linux_nat_iterate_watchpoint_lwps.
3018         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3019         linux_nat_iterate_watchpoint_lwps.
3020         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
3021         * i386-linux-nat.c (update_debug_registers_callback): Update the
3022         comment for linux_nat_iterate_watchpoint_lwps.
3023         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
3024         linux_nat_iterate_watchpoint_lwps.
3025         (i386_linux_prepare_to_resume): New comment on Linux kernel.
3026         * i386-nat.c: Include inferior.h.
3027         (dr_mirror): Remove.
3028         (i386_inferior_data, struct i386_inferior_data)
3029         (i386_inferior_data_get): New.
3030         (i386_debug_reg_state): Use i386_inferior_data_get.
3031         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
3032         (i386_insert_watchpoint, i386_remove_watchpoint)
3033         (i386_stopped_data_address, i386_insert_hw_breakpoint)
3034         (i386_remove_hw_breakpoint): New variable state, use
3035         i386_debug_reg_state instead of DR_MIRROR.
3036         * linux-nat.c (delete_lwp): New declaration.
3037         (num_lwps): Move here from downwards.
3038         (delete_lwp_cleanup): New.
3039         (linux_child_follow_fork): Create new child_lp, call
3040         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
3041         PTRACE_DETACH.
3042         (num_lwps): Move upwards.
3043         (linux_nat_iterate_watchpoint_lwps): New.
3044         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
3045         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
3046
3047 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
3048
3049         GDB 7.4 released.
3050
3051 2012-01-23  Pedro Alves  <palves@redhat.com>
3052
3053         * top.c (caution): Rename to ...
3054         (confirm): ... this.
3055         (show_caution): Rename to ...
3056         (show_confirm): ... this.
3057         (quit_cover): Adjust.
3058         (init_main): Adjust.
3059         * top.h (caution): Rename to ...
3060         (confirm): ... this.
3061         * utils.c (internal_vproblem, defaulted_query): Adjust.
3062
3063 2012-01-23  Pedro Alves  <palves@redhat.com>
3064
3065         * top.c (caution): Update comment.
3066         (execute_command): Don't consider the current value of `caution'.
3067
3068 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
3069
3070         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
3071
3072 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
3073
3074         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3075         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
3076         * target.c (target_fileio_pwrite): Remove buffer address from
3077         debug output.
3078         (target_fileio_pread): Likewise.
3079
3080 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3081
3082         * NEWS: Document remote "info proc" and "generate-core-file".
3083
3084 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3085
3086         * gdbarch.sh (find_memory_regions): New callback.
3087         * gdbarch.c, gdbarch.h: Regenerate.
3088
3089         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
3090         callback before falling back to target method.
3091
3092         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
3093         (linux_target_install_ops): No longer install it.
3094
3095         * linux-tdep.c (linux_find_memory_regions): New function.
3096         (linux_init_abi): Install it.
3097
3098 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3099
3100         * gdbarch.sh (make_corefile_notes): New architecture callback.
3101         * gdbarch.c: Regenerate.
3102         * gdbarch.h: Likewise.
3103
3104         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
3105         before target_make_corefile_notes.  If NULL is returned, the
3106         target does not support core file generation.
3107
3108         * linux-nat.c: Include "linux-tdep.h".
3109         (find_signalled_thread, find_stop_signal): Remove.
3110         (linux_nat_do_thread_registers): Likewise.
3111         (struct linux_nat_corefile_thread_data): Likewise.
3112         (linux_nat_corefile_thread_callback): Likewise.
3113         (iterate_over_spus): Likewise.
3114         (struct linux_spu_corefile_data): Likewise.
3115         (linux_spu_corefile_callback): Likewise.
3116         (linux_spu_make_corefile_notes): Likewise.
3117         (linux_nat_collect_thread_registers): New function.
3118         (linux_nat_make_corefile_notes): Replace contents by call to
3119         linux_make_corefile_notes passing linux_nat_collect_thread_registers
3120         as native-only callback.
3121
3122         * linux-tdep.h: Include "bfd.h".
3123         (struct regcache): Add forward declaration.
3124         (linux_collect_thread_registers_ftype): New typedef.
3125         (linux_make_corefile_notes): Add prototype.
3126         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
3127         "regset.h", and "elf-bfd.h".
3128         (find_signalled_thread, find_stop_signal): New functions.
3129         (linux_spu_make_corefile_notes): Likewise.
3130         (linux_collect_thread_registers): Likewise.
3131         (struct linux_corefile_thread_data): New data structure.
3132         (linux_corefile_thread_callback): New funcion.
3133         (linux_make_corefile_notes): Likewise.
3134         (linux_make_corefile_notes_1): Likewise.
3135         (linux_init_abi): Install it.
3136
3137 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3138
3139         * gdbarch.sh (info_proc): New callback.
3140         * gdbarch.c, gdbarch.h: Regenerate.
3141
3142         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
3143         before falling back to the target info_proc callback.
3144
3145         * linux-nat.c: Do not include "cli/cli-utils.h".
3146         (linux_nat_info_proc): Remove.
3147         (linux_target_install_ops): No longer install it.
3148
3149         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
3150         (read_mapping): New function.
3151         (linux_info_proc): Likewise.
3152         (linux_init_abi): Install it.
3153
3154 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3155
3156         * defs.h (enum info_proc_what): Moved here from linux-nat.c
3157         * infcmd.c: (info_proc_cmd_1): New function.
3158         (info_proc_cmd): New function, moved here from equivalent routine
3159         orignally in linux-nat.c.
3160         (info_proc_cmd_mappings): Likewise.
3161         (info_proc_cmd_stat): Likewise.
3162         (info_proc_cmd_status): Likewise.
3163         (info_proc_cmd_cwd): Likewise.
3164         (info_proc_cmd_cmdline): Likewise.
3165         (info_proc_cmd_exe): Likewise.
3166         (info_proc_cmd_all): Likewise.
3167         (_initialize_infcmd): Install "info proc" command and subcommands.
3168
3169         * target.h (struct target_ops): Add to_info_proc.
3170         (target_info_proc): Add prototype.
3171         * target.c (target_info_proc): New function.
3172
3173         * procfs.c (procfs_info_proc): Add prototype.
3174         (info_proc_cmd): Rename into ...
3175         (procfs_info_proc): ... this.  Update argument types as appropriate
3176         for a to_info_proc implementation.  Handle "what" argument.
3177         (procfs_target): Install procfs_info_proc.
3178         (_initialize_procfs): No longer install "info proc" command.
3179
3180         * linux-nat.c: (enum info_proc_what): Remove.
3181         (linux_nat_info_proc_cmd_1): Rename into ...
3182         (linux_nat_info_proc): ... this.  Update argument types as appropriate
3183         for a to_info_proc implementation.
3184         (linux_nat_info_proc_cmd): Remove.
3185         (linux_nat_info_proc_cmd_mappings): Likewise.
3186         (linux_nat_info_proc_cmd_stat): Likewise.
3187         (linux_nat_info_proc_cmd_status): Likewise.
3188         (linux_nat_info_proc_cmd_cwd): Likewise.
3189         (linux_nat_info_proc_cmd_cmdline): Likewise.
3190         (linux_nat_info_proc_cmd_exe): Likewise.
3191         (linux_nat_info_proc_cmd_all): Likewise.
3192         (linux_target_install_ops): Install linux_nat_info_proc.
3193         (_initialize_linux_nat): No longer install "info proc" command
3194         and subcommands.
3195
3196 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
3197
3198         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
3199         * config.in, configure: Regenerate.
3200
3201         * target.h (struct target_ops): Add to_fileio_readlink.
3202         (target_fileio_readlink): Add prototype.
3203         * target.c (target_fileio_readlink): New function.
3204
3205         * inf-child.c: Conditionally include <sys/param.h>.
3206         (inf_child_fileio_readlink): New function.
3207         (inf_child_target): Install it.
3208
3209         * remote.c (PACKET_vFile_readlink): New enum value.
3210         (remote_hostio_readlink): New function.
3211         (init_remote_ops): Install it.
3212         (_initialize_remote): Handle vFile:readlink packet type.
3213
3214 2012-01-20  Pedro Alves  <palves@redhat.com>
3215             Ulrich Weigand  <ulrich.weigand@linaro.org>
3216
3217         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
3218         * config.in, configure: Regenerate.
3219
3220         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
3221         to_fileio_pread, to_fileio_close, to_fileio_unlink.
3222         (target_fileio_open): Add prototype.
3223         (target_fileio_pwrite): Likewise.
3224         (target_fileio_pread): Likewise.
3225         (target_fileio_close): Likewise.
3226         (target_fileio_unlink): Likewise.
3227         (target_fileio_read_alloc): Likewise.
3228         (target_fileio_read_stralloc): Likewise.
3229
3230         * target.c: Include "gdb/fileio.h".
3231         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
3232         (default_fileio_target): New function.
3233         (target_fileio_open): Likewise.
3234         (target_fileio_pwrite): Likewise.
3235         (target_fileio_pread): Likewise.
3236         (target_fileio_close): Likewise.
3237         (target_fileio_unlink): Likewise.
3238         (target_fileio_close_cleanup): Likewise.
3239         (target_fileio_read_alloc_1): Likewise.
3240         (target_fileio_read_alloc): Likewise.
3241         (target_fileio_read_stralloc): Likewise.
3242
3243         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
3244         <fcntl.h>, and <unistd.h>.
3245         (inf_child_fileio_open_flags_to_host): New function.
3246         (inf_child_errno_to_fileio_error): Likewise.
3247         (inf_child_fileio_open): Likewise.
3248         (inf_child_fileio_pwrite): Likewise.
3249         (inf_child_fileio_pread): Likewise.
3250         (inf_child_fileio_close): Likewise.
3251         (inf_child_fileio_unlink): Likewise.
3252         (inf_child_target): Install to_fileio routines.
3253
3254         * remote.c (init_remote_ops): Install to_fileio routines.
3255
3256 2012-01-20  Pedro Alves  <palves@redhat.com>
3257             Ulrich Weigand  <ulrich.weigand@linaro.org>
3258
3259         * remote.c (remote_multi_process_p): Only check for multi-process
3260         protocol feature, do not check for extended protocol.
3261         (remote_supports_multi_process): Check for extended protocol here.
3262         (set_general_process): Likewise.
3263         (extended_remote_kill): Likewise.
3264         (remote_pid_to_str): Likewise.
3265         (remote_query_supported): Always query multiprocess mode.
3266
3267 2012-01-20  Pedro Alves  <palves@redhat.com>
3268             Ulrich Weigand  <ulrich.weigand@linaro.org>
3269
3270         * inferior.h (struct inferior): Add fake_pid_p.
3271         * inferior.c (exit_inferior_1): Clear fake_pid_p.
3272         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
3273         magic_null_ptid since the remote side doesn't provide a real PID.
3274
3275 2012-01-19  Tom Tromey  <tromey@redhat.com>
3276
3277         * NEWS: Combine the two Python sections.
3278
3279 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3280
3281         * target.h (target_close): Update comment on the target's unpush state.
3282
3283 2012-01-19  Pedro Alves  <palves@redhat.com>
3284
3285         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
3286         linux_nat_async directly instead of going through the target
3287         vector.
3288         * target.c (unpush_target): Close target after unpushing it, not
3289         before.
3290
3291 2012-01-19  Gary Benson  <gbenson@redhat.com>
3292
3293         * mdebugread.c (sort_blocks): Replace integer constants with ones
3294         derived from FIRST_LOCAL_BLOCK.
3295
3296 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
3297             Jan Kratochvil  <jan.kratochvil@redhat.com>
3298
3299         PR gdb/9538
3300         * symfile.c (find_separate_debug_file): New function.
3301         (terminate_after_last_dir_separator): Likewise.
3302         (find_separate_debug_file_by_debuglink): Also try realpath.
3303         * configure.ac (AC_CHECK_FUNCS): Add lstat.
3304         * configure: Regenerate.
3305         * config.in: Regenerate.
3306
3307 2012-01-18  Doug Evans  <dje@google.com>
3308
3309         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
3310         (main.o): Remove rule.
3311         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
3312         (--with-sysroot): Rewrite.
3313         * configure: Regenerate.
3314         * config.in: Regenerate.
3315
3316 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3317
3318         * parse.c (initialize_expout): New function.
3319         (reallocate_expout): Likewise.
3320         (parse_exp_in_context): Use `initialize_expout' and
3321         `reallocate_expout' when appropriate.
3322
3323 2012-01-18  Pedro Alves  <palves@redhat.com>
3324
3325         * record.c (struct record_breakpoint, record_breakpoint_p)
3326         (record_breakpoints): New.
3327         (record_insert_breakpoint, record_remove_breakpoint): Manage
3328         record breakpoints list.  Only remove breakpoints from the
3329         inferior if they had been inserted there in the first place.
3330
3331 2012-01-17  Doug Evans  <dje@google.com>
3332
3333         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
3334         if we know we don't have a file name to look for.
3335
3336 2012-01-17  Pedro Alves  <palves@redhat.com>
3337
3338         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
3339         the frame's stop reason is UNWIND_UNAVAILABLE.
3340
3341 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3342
3343         Fix compilation error.
3344         * m2-exp.y (yyerror): Use ANSI C prototype.
3345
3346 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3347
3348         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
3349         (growbuf_by_size): Likewise.
3350         (yyerror): Likewise.
3351         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
3352         (modblock): Remove variable (was #if 0'ed).
3353         (parse_number): Convert prototype from K&R to ANSI C.
3354         (yyerror): Likewise.
3355         * objc-exp.y (parse_number): Likewise.
3356         (yyerror): Likewise.
3357         (yylex): Remove #if 0'ed code.
3358         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
3359         (yyerror): Likewise.
3360
3361 2012-01-16  Tom Tromey  <tromey@redhat.com>
3362
3363         * NEWS: Add item.
3364         * symtab.h (compare_filenames_for_search): Declare.
3365         * symtab.c (compare_filenames_for_search): New function.
3366         (iterate_over_some_symtabs): Use it.
3367         * symfile.h (struct quick_symbol_functions)
3368         <map_symtabs_matching_filename>: Change spec.
3369         * psymtab.c (partial_map_symtabs_matching_filename): Use
3370         compare_filenames_for_search.  Update for new spec.
3371         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3372         compare_filenames_for_search.  Update for new spec.
3373         * breakpoint.c (clear_command): Use compare_filenames_for_search.
3374
3375 2012-01-16  Tom Tromey  <tromey@redhat.com>
3376
3377         PR python/13281:
3378         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3379         (struct main_type) <flag_flag_enum>: New field.
3380         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3381         * NEWS: Add entries.
3382         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3383         enums.
3384         * python/lib/gdb/printing.py (_EnumInstance): New class.
3385         (FlagEnumerationPrinter): Likewise.
3386
3387 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3388
3389         * breakpoint.c (create_sals_from_address_default): New function.
3390         (create_breakpoints_sal_default): Likewise.
3391         (decode_linespec_default): Likewise.
3392         (is_marker_spec): Removed.
3393         (strace_marker_p): New function.
3394         (init_breakpoint_sal): Using `strace_marker_p' instead of
3395         `is_marker_spec'.
3396         (create_breakpoint): Call method `create_sals_from_address' from
3397         breakpoint_ops, replacing code that created SALs conditionally
3398         on the type of the breakpoint.  Call method `create_breakpoints_sal',
3399         replacing code that created breakpoints conditionally on the type
3400         wanted.
3401         (base_breakpoint_create_sals_from_address): New function.
3402         (base_breakpoint_create_breakpoints_sal): Likewise.
3403         (base_breakpoint_decode_linespec): Likewise.
3404         (base_breakpoint_ops): Add methods
3405         `base_breakpoint_create_sals_from_address',
3406         `base_breakpoint_create_breakpoints_sal' and
3407         `base_breakpoint_decode_linespec'.
3408         (bkpt_create_sals_from_address): New function.
3409         (bkpt_create_breakpoints_sal): Likewise.
3410         (bkpt_decode_linespec): Likewise.
3411         (tracepoint_create_sals_from_address): Likewise.
3412         (tracepoint_create_breakpoints_sal): Likewise.
3413         (tracepoint_decode_linespec): Likewise.
3414         (strace_marker_create_sals_from_address): Likewise.
3415         (strace_marker_create_breakpoints_sal): Likewise.
3416         (strace_marker_decode_linespec): Likewise.
3417         (strace_marker_breakpoint_ops): New variable.
3418         (addr_string_to_sals): Remove `marker_spec'.  Call method
3419         `decode_linespec' from breakpoint_ops, replacing code that decoded
3420         an address string into a SAL.  Use `strace_marker_p' instead of
3421         `marker_spec'.
3422         (strace_command): Decide whether we are dealing with a static
3423         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
3424         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
3425         * breakpoint.h (linespec_result, linespec_sals): New forward
3426         declarations.
3427         (breakpoint_ops) <create_sals_from_address>,
3428         <create_breakpoints_sal>, <decode_linespec>: New methods.
3429
3430 2012-01-14  Doug Evans  <dje@google.com>
3431
3432         * NEWS: Update text for "maint set python print-stack".
3433         It is deprecated in gdb 7.4 and deleted in 7.5.
3434
3435 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
3436
3437         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
3438         including curses.h.
3439
3440 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3441
3442         * configure: Regenerate.
3443         * config.in: Regenerate.
3444
3445 2012-01-12  Keith Seitz  <keiths@redhat.com>
3446
3447         PR mi/10586
3448         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
3449         (ANONYMOUS_UNION_NAME): Define.
3450         (is_path_expr_parent): New function.
3451         (get_path_expr_parent): New function.
3452         (is_anonymous_child): New function.
3453         (create_child_with_value): If the child is anonymous and without
3454         a name, assign an object name to it.
3455         (c_describe_child): Use get_path_expr_parent to determine
3456         the parent expression.
3457         If there field represents an anonymous struct or union and
3458         has no name, set an appropriate display name and expression.
3459         (cplus_describe_child): Likewise.
3460
3461 2012-01-12  Pedro Alves  <palves@redhat.com>
3462
3463         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
3464         available when %ebp is found to be zero (outermost).
3465
3466 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
3467
3468         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
3469         an internal gdb_static_assert.
3470         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
3471
3472 2012-01-11  Tom Tromey  <tromey@redhat.com>
3473
3474         PR gdb/9598:
3475         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
3476         catch" and "catch throw".
3477
3478 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
3479
3480         * blockframe.c (block_innermost_frame): Start search from selected
3481         frame, if present, or otherwise the current frame.
3482
3483         * c-exp.y (variable): Update innermost_block for
3484         'block COLONCOLON NAME' clause.
3485         * m2-exp.y (variable): Ditto.
3486         * objc-exp.y (variable): Ditto.
3487
3488 2012-01-10  Tom Tromey  <tromey@redhat.com>
3489
3490         PR python/13199:
3491         * python/python.c (finish_python_initialization): Set sys.argv.
3492
3493 2012-01-10  Doug Evans  <dje@google.com>
3494
3495         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
3496         "want_line_info".  All callers updated.
3497         (dwarf_decode_lines_1): New function.
3498         (handle_DW_AT_stmt_list): Add function comment.
3499         New arg "want_line_info".  All callers updated.
3500         (read_file_scope,read_type_unit_scope): Move comment from
3501         handle_DW_AT_stmt_list to here.
3502
3503 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3504
3505         Fix regression after libiberty/ update for GCC PR 6057 and others.
3506         * c-exp.y (operator) <OPERATOR DELETE>
3507         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3508         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
3509         (make_builtin_type, make_name): New variable i, add gdb_assert.
3510         (operator) <OPERATOR NEW>: Update ARGS to 3.
3511         (operator) <OPERATOR DELETE>: Add trailing space.
3512         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
3513         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3514         * cp-support.c (cp_canonicalize_string): Check NULL from
3515         cp_comp_to_string, call warning and return.
3516
3517 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3518
3519         Fix duplicate .o files after omitting libbfd.a.
3520         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3521         (SFILES): Add corelow.c.
3522         (COMMON_OBS): Add corelow.o.
3523         (ALLDEPFILES): Remove corelow.c.
3524         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3525         * config/alpha/alpha-osf3.mh: Likewise.
3526         * config/alpha/fbsd.mh: Likewise.
3527         * config/arm/nbsdaout.mh: Likewise.
3528         * config/arm/nbsdelf.mh: Likewise.
3529         * config/i386/i386gnu.mh: Likewise.
3530         * config/ia64/hpux.mh: Likewise.
3531         * config/ia64/linux.mh: Likewise.
3532         * config/m32r/linux.mh: Likewise.
3533         * config/m68k/linux.mh: Likewise.
3534         * config/mips/irix5.mh: Likewise.
3535         * config/mips/irix6.mh: Likewise.
3536         * config/pa/hpux.mh: Likewise.
3537         * config/pa/linux.mh: Likewise.
3538         * config/powerpc/aix.mh: Likewise.
3539         * config/sparc/linux.mh: Likewise.
3540         * config/sparc/linux64.mh: Likewise.
3541         * config/sparc/sol2.mh: Likewise.
3542         * config/vax/vax.mh: Likewise.
3543         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3544         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3545         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3546         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3547         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3548         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3549         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3550         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3551         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3552         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3553         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3554         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3555         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3556         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3557         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3558         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3559         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3560         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3561         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3562         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3563         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3564         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3565         corelow.o from gdb_target_obs.
3566         * corefile.c (core_target): Update the comment on NULL value.
3567         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3568         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3569         MATCHES.  Drop YUMMY set on NULL.
3570         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
3571         reclaim CORE_DATA if it is already NULL.
3572
3573 2012-01-09  Doug Evans  <dje@google.com>
3574
3575         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3576         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3577
3578 2012-01-09  Keith Seitz  <keiths@redhat.com>
3579
3580         * breakpoint.c (wrapper.h): Don't include.
3581
3582 2012-01-09  Keith Seitz  <keiths@redhat.com>
3583
3584         * Makefile.in (SFILES): Remove wrapper.c.
3585         (HFILES_NO_SRCDIR): Remove wrapper.h.
3586         (COMMON_OBS): Remove wrapper.o.
3587         * cli/cli-interp.c: Don't inlude wrapper.h.
3588         * corelow.c: Likewise.
3589         (core_open): Replace gdb_target_find_new_threads with
3590         TRY_CATCH around target_find_new_threads.
3591         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3592         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3593         * varobj.c (varobj_create): Likewise for parse_exp_1 and
3594         evaluate_expression.
3595         (varobj_set_value): Likewise for evaluate_expression and
3596         value_assign.
3597         (install_new_variable): Likewise for value_fetch_lazy.
3598         (adjust_value_for_child_access): Likewise for value_ind.
3599         (c_describe_child): Likewise for value_subscript and
3600         value_ind.
3601         (c_value_of_root): Likewise for evaluate_expression.
3602         * wrapper.c: Remove.
3603         * wrapper.h: Remove.
3604
3605 2012-01-09  Doug Evans  <dje@google.com>
3606
3607         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3608         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
3609         "abfd" args with "section".  All callers updated.
3610         Error checking code moved ...
3611         (error_check_comp_unit_head): ... here.  New function.
3612         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3613         Delete arg "abfd".  New arg "type_offset".  All callers updated.
3614         (create_debug_types_hash_table): Simplify by using
3615         read_and_check_type_unit_head.
3616
3617         * parser-defs.h (namecopy): Delete.
3618         * parse.c (namecopy, namecopy_size): Move into copy_name.
3619
3620 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3621
3622         Partially fix duplicate .o files after omitting libbfd.a.
3623         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3624         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3625         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3626         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3627         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3628         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3629         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3630
3631 2012-01-09  Pedro Alves  <palves@redhat.com>
3632
3633         * MAINTAINERS: Update my email address.
3634
3635 2012-01-08  Doug Evans  <dje@google.com>
3636
3637         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3638         n_type_units.  Rename type_comp_units to all_type_units.
3639         All uses updated.
3640         (add_signatured_type_cu_to_table): Renamed from
3641         add_signatured_type_cu_to_list.  All callers updated.
3642
3643         * gdbtypes.h (struct cplus_struct_type): Delete member
3644         nfn_fields_total.  All uses removed.
3645
3646 2012-01-06  Doug Evans  <dje@google.com>
3647
3648         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3649         to top of file.
3650         (dwarf2_find_comp_unit): Delete.
3651         (process_psymtab_comp_unit): Make result "void".
3652         Delete args buffer, info_ptr, buffer_size, and replace with
3653         "section".  All callers updated.
3654         (dwarf2_build_psymtabs_hard): Simplify.
3655
3656 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
3657             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3658
3659         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3660         before `struct gdb_exception'.
3661         * breakpoint.c (update_global_location_list_nothrow)
3662         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3663         * cp-abi.c (value_rtti_type): Likewise.
3664         * cp-support.c (cp_validate_operator): Likewise.
3665         * infrun.c (insert_exception_resume_breakpoint)
3666         (check_exception_resume, keep_going): Likewise.
3667         * mi-interp.c (mi_breakpoint_created)
3668         (mi_breakpoint_modified): Likewise.
3669         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3670         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3671         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3672
3673 2012-01-05  Doug Evans  <dje@google.com>
3674
3675         * dwarf2read.c (statement_prologue): Delete, unused.
3676
3677         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3678         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3679
3680         * dwarf2read.c (comp_unit_header): Delete, unused.
3681
3682 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
3683
3684         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3685         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3686
3687 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
3688
3689         * infrun.c (normal_stop): Don't skip calling the normal_stop
3690         observers if the thread was doing a multi-step, but stopped for
3691         some reason other than stepping.
3692
3693 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
3694
3695         * cli/cli-decode.h: Add comments.
3696         (CMD_LIST_AMBIGUOUS): Moved to command.h
3697         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3698         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3699         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3700         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3701         (add_com, add_com_alias, add_info, add_info_alias)
3702         (complete_on_cmdlist, complete_on_enum, help_list): Remove
3703         declarations.
3704         * command.h: Add and adjust comments.
3705         (CMD_LIST_AMBIGUOUS): Moved here.
3706         (help_cmd, help_cmd_list): Delete declarations.
3707
3708 2012-01-04  Doug Evans  <dje@google.com>
3709
3710         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3711         All callers updated.
3712         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3713         Replace all arguments with "per_cu".  All callers updated.
3714
3715         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3716
3717         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3718         New arg "per_cu".  All callers updated.
3719
3720         Delete #if 0'd out code.
3721         * language.c (binop_result_type): Delete.
3722         (simple_type, ordered_type, same_type, integral_type): Delete.
3723         (numeric_type, character_type, string_type, boolean_type): Delete.
3724         (float_type, structured_type): Delete.
3725         * language.h: Update.
3726
3727 2012-01-04  Tom Tromey  <tromey@redhat.com>
3728
3729         * python/py-value.c (valpy_binop): Initialize 'res_val'.
3730
3731 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3732
3733         * corefile.c (close_exec_file): Delete.
3734         (reopen_exec_file): Remove commented out code that seems related
3735         to close_exec_file, which is being deleted here.
3736         * inferior.h (close_exec_file): Delete.
3737         * fork-child.c (fork_inferior): Remove call to fork_inferior.
3738
3739 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3740
3741         * ada-lang.c: #include "cli/cli-utils.h".
3742         (get_selections): Use skip_spaces.
3743         (ada_get_next_arg): Use skip_spaces and skip_to_space.
3744         (catch_ada_exception_command_split): Use skip_spaces.
3745         (ada_decode_assert_location): Likewise.
3746
3747 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3748
3749         * linespec.c (decode_line_internal): Check for C++ or Java
3750         compound constructs only if the current language is C, C++
3751         or Java.
3752
3753 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3754
3755         Revert:
3756         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757                     Joel Brobecker  <brobecker@adacore.com>
3758         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3759         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3760         3 times.
3761         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3762         fall through into AT_ENTRY_POINT.
3763         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
3764         DUMMY_ADDR with it.
3765         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3766         PPC_INSN_SIZE skip to 3 times.
3767
3768 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3769
3770         * linespec.c (add_minsym): Preserve function descriptors.
3771
3772 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
3773
3774         * breakpoint.c (all_locations_are_pending): Consider locations
3775         in program spaces executing during startup pending as well.
3776
3777 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3778
3779         Copyright year update in most files of the GDB Project.
3780
3781 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3782
3783         * copyright.sh: Delete.
3784         * copyright.py: Rewrite.
3785
3786 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3787
3788         * gnulib/extra/update-copyright: New file, imported from gnulib.
3789
3790 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
3791
3792         * README (Copyright and License Notices): New section.
3793
3794 2012-01-03  Tom Tromey  <tromey@redhat.com>
3795
3796         PR python/12533:
3797         * python/py-value.c (valpy_dereference, valpy_get_address
3798         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3799         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3800         (valpy_absolute, valpy_richcompare): Free intermediate values.
3801
3802 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
3803
3804         * ada-lang.c: Reformat the copyright notice.
3805
3806 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3807
3808         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3809         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3810         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3811         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3812         Revert this part of:
3813         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3814         Build gdb directly from *.o files not using libgdb.a.
3815         * Makefile.in (COMMON_OBS): Remove solib-target.o.
3816
3817 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
3818
3819         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3820         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3821         Reformat the copyright header.
3822
3823 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3824
3825         Revert this part of:
3826         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3827         Remove the gdbtui binary.
3828         * gdb.c (main): Remove args.interpreter_p initialization.
3829         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3830         * main.h (struct captured_main_args): Remove interpreter_p.
3831
3832 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
3833
3834         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3835
3836 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
3837
3838         * top.c (print_gdb_version): Update copyright year.
3839
3840 2012-01-02  Yao Qi  <yao@codesourcery.com>
3841
3842         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3843
3844 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3845             Joel Brobecker  <brobecker@adacore.com>
3846
3847         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3848         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3849         3 times.
3850         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3851         fall through into AT_ENTRY_POINT.
3852         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
3853         DUMMY_ADDR with it.
3854         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3855         PPC_INSN_SIZE skip to 3 times.
3856
3857 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3858
3859         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3860         the return value.
3861         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3862
3863 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3864
3865         Build gdb directly from *.o files not using libgdb.a.
3866         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3867         (COMMON_OBS): Remove solib-target.o.
3868         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3869         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3870         (LIBGDB_OBS, libgdb.a): Move it above.
3871         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3872         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3873         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3874         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3875         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3876         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3877         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3878         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3879         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3880         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3881         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3882         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3883         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3884         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3885         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3886         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3887         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3888         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3889         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3890         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3891         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3892         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3893         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3894         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3895         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3896         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3897         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3898
3899 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3900
3901         Remove the gdbtui binary.
3902         * .gitignore (/gdbtui): Remove.
3903         * Makefile.in (TUI): Remove.
3904         (SUBDIR_TUI_OBS): Remove tui-main.o.
3905         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3906         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3907         (tui-main.o): Remove.
3908         (all_object_files): Remove tui-main.o.
3909         * NEWS: New note for the gdbtui removal.
3910         * configure: Rebuilt.
3911         * configure.ac: No longer add all-tui, clean-tui, install-tui and
3912         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3913         CONFIG_UNINSTALL respectively.
3914         * gdb.c (main): Remove args.interpreter_p initialization.
3915         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3916         * main.h (struct captured_main_args): Remove interpreter_p.
3917         * tui/tui-main.c: Remove.
3918
3919 2012-01-01  Doug Evans  <dje@google.com>
3920
3921         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3922         (dwarf2_physname, read_import_statement): Ditto.
3923         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3924         (process_structure_scope read_subroutine_type): Ditto.
3925         (read_typedef, load_partial_dies, read_partial_die): Ditto.
3926         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3927         (dwarf2_fetch_die_location_block): Ditto.
3928         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3929
3930         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3931         All callers updated.
3932         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3933         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3934         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3935
3936         * dwarf2read.c (load_cu): Move assert to more useful location.
3937
3938         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3939         All callers updated.
3940
3941         * dwarf2read.c (dwarf2_per_objfile): Add comment.
3942         (dwarf2_elf_names): Minor reformat.
3943         (dwarf2_per_cu_data): Tweak comment.
3944         (dwarf2_read_section): Fix comment.
3945         (create_all_comp_units): Fix comment.
3946         (load_full_comp_unit): Fix comment.
3947         (process_full_comp_unit): Fix comment.
3948         (read_signatured_type): Fix comment.
3949
3950 For older changes see ChangeLog-2011.
3951 \f
3952 Local Variables:
3953 mode: change-log
3954 left-margin: 8
3955 fill-column: 74
3956 version-control: never
3957 coding: utf-8
3958 End: